* PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2
3 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4 workaround.
5
6 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
7 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
8 long long) to prevent compiler warning on 64-bit systems.
9
10 2002-08-23 Andrew Cagney <cagney@redhat.com>
11
12 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
13 (DEPRECATED_STORE_RETURN_VALUE): New method.
14 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
15 * gdbarch.h, gdbarch.c: Re-generate.
16
17 * values.c (set_return_value): Pass current_regcache to
18 STORE_RETURN_VALUE.
19 * arch-utils.h (legacy_store_return_value): Declare.
20 * arch-utils.c (legacy_store_return_value): New function.
21 (legacy_extract_return_value): Update parameters.
22
23 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
24 STORE_RETURN_VALUE.
25 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
26 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
27 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
28 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
29 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
30 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
31 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
32 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
33 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
34 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
35
36 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
37 * i386-tdep.c (i386_extract_return_value): Update.
38 * arch-utils.c (legacy_extract_return_value): Update.
39 * frv-tdep.c (frv_gdbarch_init): Update.
40 * cris-tdep.c (cris_gdbarch_init): Update.
41 * d10v-tdep.c (d10v_gdbarch_init): Update.
42 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
43 * m68k-tdep.c (m68k_gdbarch_init): Update.
44 * mcore-tdep.c (mcore_gdbarch_init): Update.
45 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
46 * s390-tdep.c (s390_gdbarch_init): Update.
47 * sparc-tdep.c (sparc_gdbarch_init): Update.
48 * sh-tdep.c (sh_gdbarch_init): Update.
49 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
50 * v850-tdep.c (v850_gdbarch_init): Update.
51 * avr-tdep.c (avr_gdbarch_init): Update.
52 * ia64-tdep.c (ia64_gdbarch_init): Update.
53 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
54 * vax-tdep.c (vax_gdbarch_init): Update.
55 * alpha-tdep.c (alpha_gdbarch_init): Update.
56 * arm-tdep.c (arm_gdbarch_init): Update.
57 * mips-tdep.c (mips_gdbarch_init): Update.
58 * i386-tdep.c (i386_gdbarch_init): Update.
59
60 2002-08-23 Andrew Cagney <ac131313@redhat.com>
61
62 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
63 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
64
65 2002-08-24 Mark Kettenis <kettenis@gnu.org>
66
67 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
68 problems.
69
70 2002-08-23 Joel Brobecker <brobecker@gnat.com>
71
72 * infrun.c (handle_inferior_event): Move a comment outside of a
73 function call, in order to avoid indent reformatting this part
74 of the code in an unreadable way.
75
76 2002-08-23 Grace Sainsbury <graces@redhat.com>
77
78 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
79 when breakpoints fail. Move general breakpoint error messages to
80 insert_breakpoints.
81 * breakpoint.c (insert_breakpoints): Change warnings when
82 breakpoints are nto inserted to specify the type. Remove call to
83 memory_error when hardware breakpoints can't be inserted. Remove
84 multiple calls to warning so all messages are sent to the user at
85 once.
86 (delete_breakpoints): Make insert error messsages more explicit.
87
88 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
89
90 * ChangeLog: Move gdbserver entries after GDB 5.2 to
91 gdbserver/ChangeLog.
92
93 2002-08-23 Mark Kettenis <kettenis@gnu.org>
94
95 * i386-tdep.c: Include "objfiles.h".
96 (i386_svr4_init_abi): Set in_solib_call_trampoline and
97 skip_trampoline_code.
98 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
99 (CPLUS_MARKER): Define to '.'.
100
101 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
102 member.
103 (linux_corefile_thread_callback): Increase args->num_notes.
104 (linux_make_note_section): Initialize thread_args.num_notes, and
105 use it to determine whether notes for any threads were created.
106
107 2002-08-23 Donn Terry <dterry@microsoft.com>
108
109 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
110 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
111 and PCUNKILL.
112 (write_with_trace): Conditionalize out the switch branch handling
113 PCSHOLD if the corresponding macro is not defined. Likewise for
114 PRSABORT and PRSTOP.
115 This change will be needed by the Interix port.
116
117 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
118
119 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
120 ev_offset fields.
121 (skip_prologue): Add support for BookE/e500 instructions.
122 (e500_extract_return_value): New function.
123 (frame_get_saved_regs): Add support for saving ev registers and
124 pseudo gpr's.
125 (e500_store_return_value): New function.
126 (rs6000_gdbarch_init): Move up default intializations of
127 deprecated_extract_return_value and store_return_value. Overwrite
128 init of store_return_value with e500 specific version.
129 Set extract_return_value for e500.
130
131 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
132
133 * blockframe.c (generic_call_dummy_register_unwind): Use
134 regcache_cooked_read to catch cases in which the variable is
135 stored in a pseudo register.
136
137 2002-08-22 Andrew Cagney <cagney@redhat.com>
138
139 * NEWS: Mention that the i960 has been made obsolete.
140 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
141 i960-tdep.c
142 (remote-nrom.o): Obsolete target.
143 (remote-nindy.o, i960-tdep.o): Ditto.
144 * remote-nrom.c: Make file obsolete.
145 * remote-nindy.c, remote-vx960.c: Ditto.
146 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
147 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
148 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
149 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
150 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
151 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
152 i960-*-vxworks* obsolete.
153 * MAINTAINERS: Note that the i960 is obsolete.
154
155 2002-08-21 Corinna Vinschen <vinschen@redhat.com
156
157 * aix-thread.c (aix_thread_detach): Disable thread debugging on
158 detach to allow reinitialization.
159
160 2002-08-22 Andrew Cagney <ac131313@redhat.com>
161
162 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
163 attempt).
164
165 2002-08-22 Jim Blandy <jimb@redhat.com>
166
167 * coffread.c (coff_symfile_read): Don't try to read the line
168 number table from disk if the image file doesn't have a symbol
169 table; we'll never actually look at the info anyway, and Windows
170 ships DLL's with bogus file offsets for the line number data.
171
172 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
173
174 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
175 an e500 executable.
176
177 2002-08-21 Michael Snyder <msnyder@redhat.com>
178
179 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
180 (MSYMBOL_SIZE): Replace macro with function.
181 (DEFAULT_MIPS_TYPE): Delete unused macro.
182 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
183 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
184
185 2002-08-21 Jim Blandy <jimb@redhat.com>
186
187 * valops.c (value_cast): Simplify and correct logic for doing a
188 static cast from a pointer to a base class to a pointer to a
189 derived class.
190
191 2002-08-21 Andrew Cagney <ac131313@redhat.com>
192
193 * infcmd.c (default_print_registers_info): Replace
194 do_registers_info.
195 (registers_info): Use gdbarch_print_registers_info instead of
196 DO_REGISTERS_INFO.
197 * inferior.h (default_print_registers_info): Replace
198 do_registers_info.
199 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
200 (DO_REGISTERS_INFO): Change to a predicate function.
201 * gdbarch.h, gdbarch.c: Regenerate.
202
203 2002-08-21 Keith Seitz <keiths@redhat.com>
204
205 * gdb-events.sh: Add target-changed event.
206 * gdb-events.c: Regenerated.
207 * gdb-events.c: Regenerated.
208 * valops.c (value_assign): Add target-changed event notification
209 to inlval_register, lval_memory, and lval_reg_frame_relative.
210
211 2002-08-21 Joel Brobecker <brobecker@gnat.com>
212
213 * NEWS: Add an entry regarding the improvement of the next/step
214 operation on Alpha Tru64 multi-processor machines.
215
216 2002-08-21 Andrew Cagney <ac131313@redhat.com>
217
218 * Makefile.in: Update dependencies for mi/ cli/ and tui/
219 directores.
220 * Makefile.in: Update all _h macro definitions.
221 * Makefile.in (install-gdbtk): Move to install section.
222 (rdi-share/libangsd.a): Move to end of file.
223
224 2002-08-19 Andrew Cagney <ac131313@redhat.com>
225
226 * frame.c (frame_register_unwind): When a register, set addrp to
227 the register's byte.
228
229 2002-08-20 Michael Snyder <msnyder@redhat.com>
230
231 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
232 used locally, so move them from the target machine header to here.
233 (mips_set_processor_type, mips_register_name, mips32_next_pc,
234 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
235 Make static.
236 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
237
238 2002-08-20 Andrew Cagney <cagney@redhat.com>
239
240 * NEWS: Mention that the Apollo line was made obsolete.
241 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
242 m68*-hp-hpux* obsolete.
243 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
244 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
245 * buildsym.c (make_blockvector): Make static.
246 * buildsym.h (make_blockvector): Make extern declaration obsolete.
247 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
248 (ALLDEPFILES): Remove dstread.c.
249 (dstread.o): Obsolete make rule.
250 * dstread.c: Makefile obsolete.
251 * dst.h: Ditto.
252 * config/m68k/hp300hpux.mt: Ditto.
253 * config/m68k/hp300hpux.mh: Ditto.
254 * config/m68k/hp300bsd.mt: Ditto.
255 * config/m68k/hp300bsd.mh: Ditto.
256 * config/m68k/apollo68b.mt: Ditto.
257 * config/m68k/apollo68v.mh: Ditto.
258 * config/m68k/apollo68b.mh: Ditto.
259
260 2002-08-20 Michael Snyder <msnyder@redhat.com>
261
262 * mips-tdep.c (mips_in_return_stub): Make static.
263 (mips_gdbarch_init): Set in_solib_return_trampoline.
264 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
265
266 2002-08-20 Michael Snyder <msnyder@redhat.com>
267
268 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
269 * gdbarch.c, gdbarch.h: Regenerate.
270 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
271 Add.
272 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
273
274 2002-08-20 Michael Snyder <msnyder@redhat.com>
275
276 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
277 (mips_gdbarch_init): Set skip_trampoline_code,
278 in_solib_call_trampoline.
279 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
280 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
281
282 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
283
284 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
285
286 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
287 vector type for ev registers.
288 (e500_pseudo_register_read): New function.
289 (e500_pseudo_register_write): New function.
290 (e500_dwarf2_reg_to_regnum): New function.
291 (PPC_UISA_NOFP_SPRS): New macro.
292 (PPC_EV_REGS): New macro.
293 (PPC_GPRS_PSEUDO_REGS): New macro.
294 (registers_e500): New register set for e500.
295 (variants): Add e500 variant.
296 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
297 before setting architectural dependent variations. Initialize ev
298 registers numbers. Add case for e500 architecture. Set the
299 number of pseudo registers.
300
301 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
302
303 * rs6000-tdep.c: Clean up comments.
304
305 2002-08-20 Andrew Cagney <cagney@redhat.com>
306
307 * h8300-tdep.c: Re-indent file.
308
309 2002-08-20 Jim Blandy <jimb@redhat.com>
310
311 * Makefile.in (LDFLAGS): Allow the configure script to establish a
312 default for this.
313
314 2002-08-20 Keith Seitz <keiths@redhat.com>
315
316 * breakpoints.c (watch_command_1): Use internal breakpoint
317 when setting a watchpoint_scope breakpoint.
318
319 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
320
321 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
322 (build_builtin_type_vec64i): Ditto.
323 (build_builtin_type_vec128): Ditto.
324 (build_builtin_type_vec128i): Ditto.
325
326 2002-08-19 Michael Snyder <msnyder@redhat.com>
327
328 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
329 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
330 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
331 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
332 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
333 CALL_DUMMY_ADDRESS): Delete.
334 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
335 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
336 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
337 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
338 push_return_address.
339 (mips_register_raw_size, mips_eabi_use_struct_convention,
340 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
341 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
342 mips_init_extra_frame_info, mips_eabi_push_arguments,
343 mips_n32n64_push_arguments, mips_push_return_address,
344 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
345 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
346
347 2002-08-19 Michael Snyder <msnyder@redhat.com>
348
349 * mips-tdep.c (mips_frame_num_args): New function.
350 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
351 frame_saved_pc, frame_args_address, frame_locals_address,
352 frame_num_args, and frame_args_skip.
353 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
354 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
355 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
356 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
357
358 2002-08-20 Michael Snyder <msnyder@redhat.com>
359
360 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
361 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
362 * mips-tdep.c (mips_store_struct_return): New function.
363 (mips_extract_struct_value_address): New function.
364 (mips_gdbarch_init): Set store_struct_return and
365 extract_struct_value_address.
366
367 2002-08-20 David Carlton <carlton@math.stanford.edu>
368
369 * dwarf2read.c (dwarf2_build_psymtabs): Check that
370 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
371 (read_file_scope): Check that line_header is nonzero before
372 decoding macro information.
373
374 2002-08-20 Mark Kettenis <kettenis@gnu.org>
375
376 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
377 flag the general-purpose registers as floating-point on targets
378 that don't support the floating-point registers.
379
380 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
381
382 * rs6000-tdep.c (altivec_register_p): Delete.
383 (rs6000_do_altivec_registers): Delete.
384 (rs6000_altivec_registers_info): Delete.
385 (rs6000_do_registers_info): Delete.
386 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
387 (rs6000_gdbarch_init): Remove setting of do_registers_info.
388
389 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
390
391 * infcmd.c (do_registers_info): Print vector registers in hex
392 format only.
393 (print_vector_info): Check that printing registers
394 makes sense.
395 (print_float_info): Ditto.
396
397 2002-08-20 Andrew Cagney <ac131313@redhat.com>
398
399 * mips-tdep.c (mips_gdbarch_init): Update.
400 (mips_o32_extract_return_value): Rewrite.
401 (mips_o32_store_return_value): Rewrite.
402 (mips_o32_xfer_return_value): New function.
403 (mips_xfer_register): Tweak debug print message. Allow for
404 buf_offset when dumping the value transfered.
405
406 2002-08-20 Andrew Cagney <ac131313@redhat.com>
407
408 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
409 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
410 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
411 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
412 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
413
414 2002-08-14 Michael Snyder <msnyder@redhat.com>
415
416 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
417
418 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
419
420 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
421 register.
422 (P): New macro to define a register as a pseudo register.
423 (R, R4, R8, R16, FR32, R64, R0): Updated.
424 (struct variant): Add new fields for number of pseudo registers
425 and number of total registers.
426 (tot_num_registers): New macro replacing....
427 (num_registers): ...deleted macro.
428 (num_registers): New function.
429 (num_pseudo_registers): New function.
430 (variants): Update all variants to intialize new fields correctly.
431 Postpone initialization of number of pseudo regs and real regs.
432 (init_variants): New function.
433 (rs6000_gdbarch_init): Initialize variants. Update calculation of
434 registers offsets.
435
436 2002-08-19 David Carlton <carlton@math.stanford.edu>
437
438 * valops.c (search_struct_field): Change error message to treat
439 return value of 0 from value_static_field as meaning that field is
440 optimized out.
441 (value_struct_elt_for_reference): Ditto.
442 * values.c (value_static_field): Treat an unresolved location the
443 same as a nonexistent symbol. Fix PR gdb/635.
444 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
445 enclosed. Fix PR gdb/574.
446 * MAINTAINERS: Add self to Write After Approval list.
447
448 2002-08-19 Andrew Cagney <ac131313@redhat.com>
449
450 * mips-tdep.c (mips_xfer_register): New function.
451 (mips_n32n64_extract_return_value): Rewrite.
452 (mips_gdbarch_init): For N32 and N64, set extract_return_value
453 instead of deprecated_extract_return_value.
454
455 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
456
457 * rs6000-tdep.c (TDEP): Delete macro.
458 (branch_dest): Replace use of TDEP macro with its body.
459 (rs6000_pop_frame): Ditto.
460 (rs6000_push_arguments): Ditto.
461 (rs6000_skip_trampoline_code): Ditto.
462 (rs6000_frame_saved_pc): Ditto.
463 (rs6000_frame_chain): Ditto.
464 (rs6000_register_name): Ditto.
465 (rs6000_register_byte): Ditto.
466 (rs6000_register_raw_size): Ditto.
467 (rs6000_register_virtual_type): Ditto.
468 (rs6000_register_convertible): Ditto.
469 (rs6000_convert_from_func_ptr_addr): Ditto.
470
471 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
472
473 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
474 conditionally.
475 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
476 MIPS_LINUX_JB_ELEMENT_SIZE.
477 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
478 for MAX_REGISTER_RAW_SIZE arrays.
479 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
480 MIPS_LINUX_JB_ELEMENT_SIZE.
481
482 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
483
484 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
485
486 2002-08-19 Aidan Skinner <aidan@velvet.net>
487
488 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
489 ada-valprint.c ada-tasks.c.
490 (YYFILES): Add ada-exp.y.
491 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
492 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
493 (ada-exp.tab.o): New target.
494
495 2002-08-18 Andrew Cagney <ac131313@redhat.com>
496
497 * regcache.c (regcache_xfer_part): New function.
498 (regcache_raw_read_part): New function.
499 (regcache_raw_write_part): New function.
500 (regcache_cooked_read_part): New function.
501 (regcache_cooked_write_part): New function.
502 * regcache.h (regcache_raw_read_part): Declare.
503 (regcache_raw_write_part): Declare.
504 (regcache_cooked_read_part): Declare.
505 (regcache_cooked_write_part): Declare.
506
507 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
508
509 * remote.c (remote_open_1): Add async_p.
510 (remote_async_open_1): Delete.
511 (open_remote_target): Delete.
512 (remote_open, extended_remote_open): Update calls to remote_open_1.
513 (remote_async_open, extended_remote_async_open): Call
514 remote_open_1 instead of remote_async_open_1.
515
516 2002-08-19 Mark Kettenis <kettenis@gnu.org>
517
518 * blockframe.c: Fix a few coding standard violations.
519
520 2002-08-19 Mark Kettenis <kettenis@gnu.org>
521
522 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
523 here from ...
524 * config/i386/tm-i386sco5.h: ... here. File removed.
525 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
526
527 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
528 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
529 (TM_FILE): Set to tm-i386.h.
530 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
531 * config/i386/tm-i386v.h: Remove file.
532 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
533 instead of "i386/tm-i386v.h".
534 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
535 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
536 "i386/tm-i386v.h".
537 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
538 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
539 "i386/tm-i386.h".
540
541 2002-08-18 Mark Kettenis <kettenis@gnu.org>
542
543 * config/i386/nm-i386v.h: Add protection against
544 multiple-inclusion.
545 (i386_register_u_addr): Remove prototype.
546 (register_u_addr): New prototype.
547 (REGISTER_U_ADDR): Redefine accordingly.
548 * i386v-nat.c: Improve several comments.
549 (i386_register_u_addr): Change signature and rename to
550 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
551 ubase variable.
552
553 2002-08-18 Andrew Cagney <ac131313@redhat.com>
554
555 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
556 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
557 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
558 deprecated_extract_return_value.
559 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
560 rename mips_o32o64_push_arguments.
561 (mips_gdbarch_init): Update.
562 (mips_extract_return_value): Delete.
563 (mips_o32_extract_return_value): Clone mips_extract_return_value.
564 (mips_o64_extract_return_value): Clone mips_extract_return_value.
565 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
566 (mips_n32n64_extract_return_value): Clone
567 mips_extract_return_value.
568 (mips_store_return_value): Delete.
569 (mips_o32_store_return_value): Clone mips_store_return_value.
570 (mips_o64_store_return_value): Clone mips_store_return_value.
571 (mips_eabi_store_return_value): Clone mips_store_return_value.
572 (mips_n32n64_store_return_value): Clone mips_store_return_value.
573
574 2002-08-18 Aidan Skinner <aidan@velvet.net>
575
576 * ada-lang.c: Use gdb_string.h instead of <string.h>.
577 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
578
579 2002-08-18 Aidan Skinner <aidan@velvet.net>
580
581 * ada-lang.c: Run through gdb_indent.sh.
582 * ada-lang.h: Run through gdb_indent.sh.
583 * ada-tasks.c: Run through gdb_indent.sh.
584 * ada-typeprint.c: Run through gdb_indent.sh.
585 * ada-valprint.c: Run through gdb_indent.sh.
586
587 2002-08-18 Andrew Cagney <ac131313@redhat.com>
588
589 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
590 ABI.
591
592 2002-08-18 Mark Kettenis <kettenis@gnu.org>
593
594 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
595
596 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
597 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
598
599 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
600 write_register_gen instead of write_register_bytes.
601
602 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
603 i[3456]-*-osf1mk* configurations have been made obsolete.
604 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
605 i[3456]86-*-osf1mk* hosts obsolete.
606 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
607 targets obsolete.
608 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
609 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
610 config/i386/i386m3.mt, config/i386/nm-m3.h,
611 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
612 config/i386/i386mk.mh, config/i386/i386mk.mt,
613 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
614 obsolete.
615 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
616 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
617 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
618
619 2002-08-18 Andrew Cagney <ac131313@redhat.com>
620
621 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
622 (hppa_value_returned_from_stack): Declare.
623 (hppa_extract_return_value): Declare.
624 * config/pa/hppa.mt: New file.
625 * configure.tgt: Recognize hppa*-*-*.
626 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
627
628 2002-08-18 Mark Kettenis <kettenis@gnu.org>
629
630 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
631 comment.
632
633 2002-08-17 Mark Kettenis <kettenis@gnu.org>
634
635 * top.c (gdb_rl_operate_and_get_next): Make sure
636 operate-and-get-next functions correctly even when the history
637 list is completely filled.
638
639 2002-08-18 Andrew Cagney <ac131313@redhat.com>
640
641 * MAINTAINERS (Target Instruction Set Architectures): Rename
642 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
643 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
644 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
645 already listed under Host/Native.
646
647 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
648 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
649 mips*-*-*.
650
651 2002-08-17 Andrew Cagney <ac131313@redhat.com>
652
653 * config/ia64/ia64.mt: New file.
654 * config/alpha/alpha.mt: New file.
655 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
656 ia64-linux-gnu. Mention that ia64-elf is broken.
657 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
658
659 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
660
661 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
662 generic_func_frame_valid instead of func_frame_valid.
663
664 2002-08-16 Joel Brobecker <brobecker@gnat.com>
665
666 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
667 procfs appears to be broken when debugging on multi-processor
668 machines. So enable software single stepping in order to avoid
669 using the procfs interface to do next/step operations, using
670 internal breakpoints instead.
671
672 * infrun.c (handle_inferior_event): Readjust the stop_pc by
673 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
674 make this pc address equal to the value it would have if the
675 system stepping capability was used. Also set a new flag used
676 to ensure that we don't readjust the PC one more time later.
677
678 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
679 address by DECR_PC_AFTER_BREAK when software single step is
680 in use for this architecture, as this has already been taken
681 care of in handle_inferior_event().
682
683 2002-08-16 Joel Brobecker <brobecker@gnat.com>
684
685 * infrun.c (handle_inferior_event): Minor reformatting, to make
686 a rather long condition expression easier to read.
687
688 2002-08-16 Andrew Cagney <ac131313@redhat.com>
689
690 * Makefile.in (gdbtk.o): Move to end of file.
691 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
692 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
693 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
694 (gdbtk-wrapper.o, gdbres.o): Ditto.
695
696 2002-08-16 Andrew Cagney <ac131313@redhat.com>
697
698 * Makefile.in (copying.o): Separate out compile rule.
699 (hpux-thread.o, procfs.o, signals.o): Ditto.
700 (v850ice.o, z8k-tdep.o): Ditto.
701 (tui-file.o): Move to TUI section.
702 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
703 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
704
705 2002-08-16 Joel Brobecker <brobecker@gnat.com>
706
707 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
708 skip_trampoline_code, for better namespace-proofing.
709
710 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
711
712 2002-08-16 Joel Brobecker <brobecker@gnat.com>
713
714 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
715
716 2002-08-16 Joel Brobecker <brobecker@gnat.com>
717
718 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
719 signal, check whether we hit a breakpoint before checking for a
720 single step breakpoint. Otherwise, GDB fails to notice that a
721 breakpoint has been hit when stepping onto a breakpoint.
722
723 2002-08-16 Keith Seitz <keiths@redhat.com>
724
725 * gdb-events.sh (clear_gdb_event_hooks): New function.
726 * gdb-events.c: Regenerate.
727 * gdb-events.h: Regenerate.
728
729 2002-08-16 Andrew Cagney <ac131313@redhat.com>
730
731 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
732 not_a_sw_breakpoint.
733 * breakpoint.h (bpstat_stop_status): Add parameter names.
734
735 2002-08-16 Grace Sainsbury <graces@redhat.com>
736
737 * remote.c (remote_insert_hw_breakpoint)
738 (remote_remove_hw_breakpoint): Fix calculation of length field
739 for Z-packet.
740
741 2002-08-15 Michael Snyder <msnyder@redhat.com>
742
743 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
744 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
745 (supply_fpregset): Ditto.
746
747 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
748 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
749 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
750 (TARGET_READ_SP): Delete.
751 (DO_REGISTERS_INFO): Delete.
752 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
753 Delete.
754 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
755 from macros to functions.
756
757 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
758 (mips_register_convertible, mips_register_convert_to_virtual,
759 mips_register_convert_to_raw): Make static.
760 (mips_read_sp): New function.
761 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
762 (mips_do_registers_info): Make static.
763 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
764 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
765 (mips_register_convert_from_type, mips_register_convert_to_type):
766 New functions.
767 (mips_gdbarch_init): Set up function_start_offset,
768 register_virtual_size, pc_in_sigtramp.
769
770 2002-08-15 Andrew Cagney <ac131313@redhat.com>
771
772 * infcmd.c (vector_info): New function.
773 (_initialize_infcmd): Add command "info vector".
774 (print_vector_info): New function.
775
776 * gdbarch.sh (PRINT_VECTOR_INFO): New method
777 * gdbarch.h, gdbarch.c: Regenerate.
778
779 2002-08-15 Andrew Cagney <ac131313@redhat.com>
780
781 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
782 ``print_all''. Only print vector registers when ``print_all''.
783
784 2002-08-15 Andrew Cagney <ac131313@redhat.com>
785
786 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
787 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
788
789 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
790 Add `args' parameter.
791 * gdbarch.h, gdbarch.c: Regenerate.
792
793 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
794
795 * infcmd.c (float_info): Call print_float_info.
796 (print_float_info): New function. By default, print the
797 floating-point registers.
798
799 * arch-utils.h (default_print_float_info): Delete declaration.
800 * arch-utils.c (default_print_float_info): Delete function.
801
802 2002-08-16 Mark Kettenis <kettenis@gnu.org>
803
804 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
805 out define.
806
807 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
808 FRAME.
809
810 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
811 * configure.host: Make i[3456]86-*-aix host obsolete.
812 * configure.tgt: Make i[3456]86-*-aix target obsolete.
813 * config/i386/i386aix.mh, config/i386/i386aix.mt,
814 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
815 config/i386/xm-i386aix.h: Make files obsolete.
816 * i386aix-nat.c: Make file obsolete.
817 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
818 (i386aix-nat.o): Make target obsolete.
819
820 * config/i386/nm-gnu.h: Removed.
821 * config/i386/nm-i386gnu.h: New file.
822 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
823 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
824 Moved here from ...
825 * config/i386/tm-i386gnu.h: ... here. Removed.
826 * config/i386/xm-i386gnu.h: Removed.
827 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
828 (NAT_FILE): Set to nm-i386gnu.h.
829 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
830 * i386-tdep.c: New file.
831 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
832 (i386gnu-tdep.o): Specify dependencies.
833
834 2002-08-15 Mark Kettenis <kettenis@gnu.org>
835
836 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
837 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
838 Adjust a few comments to reflect reality a bit closer.
839 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
840 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
841 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
842 target_insert_watchpoint, target_remove_watchpoint):
843 Move defines to ...
844 * config/i386/nm-i386sco5.h: ... here.
845 (kernel_u_size): Add prototype. Improve a few comments and add
846 protection against multiple inclusion.
847
848 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
849 out define.
850
851 * uw-thread.c (SP_ARG0): Define if not already defined.
852 * config/i386/tm-i386.h (SO_ARG0): Remove define.
853
854 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
855
856 * config/i386/tm-i386.h: Don't include "regcache.h".
857
858 * i387-tdep.h (i387_print_float_info): New prototype.
859 * i387-tdep.c (print_i387_value, print_i387_ext,
860 print_i387_status_word, print_i387_control_word): Add `struct
861 ui_file *' argument and use it for output.
862 (i387_print_float_info): Renamed from i387_float_info. Add
863 `struct gdbarch *' and `struct ui_file *' arguments and use the
864 latter for output.
865 * i386-tdep.c: Include "i387-tdep.h".
866 (i386_gdbarch_init): Set print_float_info.
867 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
868 (FLOAT_INFO): Remove define.
869
870 2002-08-13 Michael Snyder <msnyder@redhat.com>
871
872 * mips-tdep.c (mips_push_arguments): Rename to
873 mips_eabi_push_arguments, and tune for EABI.
874 (MIPS_REGS_HAVE_HOME_P): Delete.
875 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
876 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
877 Delete references to mips_regs_have_home_p.
878
879 2002-08-14 Keith Seitz <keiths@redhat.com>
880
881 * Makefile.in (install-gdbtk): Create insight plugin directory.
882 Install plugins.tcl file.
883
884 2002-08-14 Keith Seitz <keiths@redhat.com>
885
886 * configure.in: Move SUBDIRS to near top of the file so that
887 --enable options may add things to it.
888 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
889 * configure: Regenerate.
890
891 2002-08-13 Michael Snyder <msnyder@redhat.com>
892
893 * mips-tdep.c (mips_o32o64_push_arguments): New function,
894 cloned from mips_push_arguments, tuned for o32/o64 ABI.
895 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
896
897 2002-08-13 Andrew Cagney <ac131313@redhat.com>
898
899 * vax-tdep.c (vax_get_saved_register): Delete function.
900 (vax_gdbarch_init): Update.
901 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
902 (ns32k_gdbarch_init): Update.
903 * alpha-tdep.c (alpha_get_saved_register): Delete function.
904 (alpha_gdbarch_init): Update.
905
906 2002-08-13 Andrew Cagney <cagney@redhat.com>
907
908 * regcache.c (init_regcache_descr): Overallocate the
909 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
910 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
911 nr_raw_registers.
912 (set_register_cached): Add range checking assertions. Use
913 current_regcache.
914
915 2002-08-13 Mark Kettenis <kettenis@gnu.org>
916
917 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
918 numbers for MMX registers.
919
920 2002-08-13 Andrew Cagney <cagney@redhat.com>
921
922 * i386-tdep.c (i386_gdbarch_init): Use
923 generic_unwind_get_saved_register.
924
925 2002-08-13 Kevin Buettner <kevinb@redhat.com>
926
927 * procfs.c (procfs_can_use_hw_breakpoint): New function.
928 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
929 target vector.
930 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
931 Delete. Add comment regarding this now-deleted target method.
932
933 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
934
935 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
936 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
937 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
938 real PC and the page number (if it's within the memory bank window).
939 (m68hc11_pseudo_register_write): Likewise when saving.
940 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
941 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
942 (m68hc11_register_raw_size): And use 32-bit for it.
943 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
944 16K memory bank is used by the prog; also use the virtual pc.
945
946 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
947
948 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
949 (m68hc11_gdbarch_init): Install it in gdbarch.
950 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
951 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
952 (MSYMBOL_SIZE): New for documentation.
953 (insn_return_kind): Enum to specify how a function returns.
954 (frame_extra_info): Cleanup and record the return mode.
955 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
956 register in address computation.
957 (m68hc11_get_return_insn): New to obtain the return instruction used
958 by the function.
959 (m68hc11_frame_init_saved_regs): Take into account the return
960 instruction used by the function for far and interrupt functions.
961 (m68hc11_init_extra_frame_info): Take into account page register.
962 (m68hc11_frame_args_address): Adjust according to the return mode.
963 (show_regs): Print page register only when it's used.
964
965 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
966
967 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
968 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
969 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
970 registers.
971 (m68hc11_register_raw_size): Likewise.
972
973 2002-08-13 Andrew Cagney <cagney@redhat.com>
974
975 * i386-tdep.c (i386_register_name): Handle mmx registers.
976 (mmx_regnum_p): New function.
977 (i386_mmx_names): New array.
978 (mmx_num_regs): New variable.
979 (i386_pseudo_register_read): New function.
980 (i386_pseudo_register_write): New function.
981 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
982
983 * regcache.c (regcache_raw_read_unsigned): New function.
984 (regcache_raw_read_signed): New function.
985 * regcache.h (regcache_raw_read_unsigned): Declare.
986 (regcache_raw_read_signed): Declare.
987
988 2002-08-13 Andrew Cagney <cagney@redhat.com>
989
990 * regcache.c (regcache_raw_read_as_address): Delete function.
991 (regcache_cooked_read_signed): New function.
992 (regcache_cooked_read_unsigned): New function.
993 * regcache.h (regcache_cooked_read_signed): Declare.
994 (regcache_cooked_read_unsigned): Declare.
995 (regcache_raw_read_as_address): Delete declaration.
996
997 * blockframe.c (generic_read_register_dummy): Use
998 regcache_cooked_read_unsigned.
999 * i386-tdep.c (i386_extract_struct_value_address): Use
1000 regcache_cooked_read_unsigned.
1001
1002 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1003
1004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1005 double sizes according to ELF ABI flags.
1006 (gdbarch_tdep): Record elf_flags.
1007
1008 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1009
1010 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1011 (m6812_prolog): They can appear in 68HC12 function prologue.
1012 (m68hc11_frame_chain): Cleanup.
1013
1014 2002-08-12 Andrew Cagney <cagney@redhat.com>
1015
1016 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1017 declarations.
1018 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1019 (i386_linux_register_raw_size): Delete function.
1020 (i386_linux_init_abi): Update.
1021 * i386-tdep.c (i386_register_raw_size): Delete function.
1022 (i386_register_byte): Delete function.
1023 (i386_gdbarch_init): Update.
1024 (i386_register_size): Delete array.
1025 (i386_register_offset): Delete array.
1026
1027 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1028 (REGISTER_RAW_SIZE): Delete macro.
1029 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1030 (REGISTER_BYTE): Delete macro.
1031
1032 2002-08-11 Aidan Skinner <aidan@velvet.net>
1033
1034 * ada-lang.c (ada_lookup_partial_symbol)
1035 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1036 prototype names so that grep ^func works properly.
1037
1038 * ada-lang.c (ada_array_element_type)
1039 (ada_lookup_partial_symbol): Fix typos in parameter list.
1040
1041 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1042 Fix prototype names so that grep ^func works properly.
1043
1044 2002-08-10 Andrew Cagney <cagney@redhat.com>
1045 Elena Zannoni <ezannoni@redhat.com>
1046 Martin M. Hunt <hunt@redhat.com>
1047
1048 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1049 (build_builtin_type_vec128i): Set the vector bit.
1050 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1051 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1052 (build_builtin_type_vec64): New function.
1053 (build_builtin_type_vec64i): New function.
1054 (build_gdbtypes): Initialize builtin_type_vec64 and
1055 builtin_type_vec64i.
1056
1057 2002-08-09 Andrew Cagney <cagney@redhat.com>
1058
1059 * regcache.c (regcache_dump): Compare the register offset
1060 with REGISTER_BYTE.
1061 * arch-utils.c (generic_register_byte): New function.
1062 * arch-utils.h (generic_register_byte): Declare.
1063 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1064 * gdbarch.h, gdbarch.c: Regenerate.
1065
1066 2002-08-09 Andrew Cagney <cagney@redhat.com>
1067
1068 * regcache.c: Include "gdbcmd.h"
1069 (_initialize_regcache): Add commands "maintenance print
1070 registers", "maintenance print raw-registers" and "maintenance
1071 print cooked-registers".
1072 (enum regcache_dump_what): Define.
1073 (dump_endian_bytes): New function.
1074 (regcache_dump): New function.
1075 (regcache_print): New function.
1076 (maintenance_print_registers): New function.
1077 (maintenance_print_raw_registers): New function.
1078 (maintenance_print_cooked_registers): New function.
1079 * Makefile.in (regcache.o): Update dependencies.
1080
1081 2002-08-09 Michael Snyder <msnyder@redhat.com>
1082
1083 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1084 (mips_push_arguments): Correct some comments. Use paddr_nz
1085 for printing addresses in debug output. Replace static
1086 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1087 (mips_n32n64_push_arguments): New function, cloned from
1088 mips_push_arguments and tuned for the n32/n64 ABI.
1089 (mips_push_register): Buffer needs dynamic allocation.
1090 (mips_print_register): Ditto.
1091 (do_gp_register_row): Ditto.
1092 (mips_store_return_value): Ditto.
1093 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1094
1095 2002-08-09 Don Howard <dhoward@redhat.com>
1096
1097 * memattr.c (mem_info_command): Print special case of upper bound
1098 as max CORE_ADDR + 1.
1099
1100 2002-08-08 Michael Snyder <msnyder@redhat.com>
1101
1102 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1103 returns structs by ref if they're too big to fit in two registers.
1104
1105 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1106
1107 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1108 saved regs value.
1109 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1110 mips_find_saved_regs().
1111 (mips_pop_frame): Likewise.
1112
1113 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1114
1115 * blockframe.c (frame_saved_regs_register_unwind): Revise
1116 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1117 frames are in use.
1118
1119 2002-08-09 Grace Sainsbury <graces@redhat.com>
1120
1121 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1122 T-packets; the 'a' is not taken as a register number.
1123 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1124 (remote_stopped_data_address): New functions; add to target
1125 vector.
1126 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1127 prototypes to match other implementations of this
1128 function. replace integer argument with pointer -- the length
1129 field in the Z-packet is the length of what is pointed to or 1 if
1130 pointer is null. Add to target vector.
1131 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1132 target vector.
1133
1134 From Mark Salter:
1135 * remote.c (remote_wait): Add support to extract optional
1136 watchpoint information from T-packet. Ignore unrecognized
1137 optional info in T-packet.
1138 (remote_async_wait): Ditto.
1139
1140 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1141
1142 * cli/cli-dump.c: Change fopen modes to use binary open modes
1143 as defined in include/fopen-bin.h throughout.
1144
1145 2002-08-08 Michael Snyder <msnyder@redhat.com>
1146
1147 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1148
1149 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1150
1151 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1152 assertion failure by returning early after a warning.
1153
1154 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1155
1156 * mips-tdep.c (mips_find_saved_regs): Make static.
1157 (mips_frame_init_saved_regs): New function.
1158 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1159 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1160 (mips_find_saved_regs): Delete declaration.
1161
1162 2002-08-08 Grace Sainsbury <graces@redhat.com>
1163
1164 * remote.c (remote_wait, remote_async_wait): Change
1165 thread_num from int to ULONGEST.
1166 (unpack_varlen_hex): Change result parameter from
1167 int * to ULONGEST *.
1168
1169 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1170
1171 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1172 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1173 powerpc*-*-*.
1174 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1175
1176 2002-08-08 Andrew Cagney <cagney@redhat.com>
1177
1178 * gcore.c (override_derive_stack_segment): Delete variable.
1179 (preempt_derive_stack_segment): Delete function.
1180 (derive_stack_segment): Delete function.
1181 (default_derive_stack_segment): Renamed to derive_stack_segment.
1182 (override_derive_heap_segment): Delete variable.
1183 (preempt_derive_heap_segment): Delete function.
1184 (derive_heap_segment): Delete function.
1185 (default_derive_heap_segment): Rename to derive_heap_segment.
1186
1187 2002-08-06 Michael Snyder <msnyder@redhat.com>
1188
1189 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1190 * mips-tdep.c (mips_EABI_use_struct_convention,
1191 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1192 New functions. (mips_use_struct_convention): Delete.
1193 (mips_gdbarch_init): set use_gdbarch_convention.
1194
1195 2002-08-06 Michael Snyder <msnyder@redhat.com>
1196
1197 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1198 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1199 mips_o32_reg_struct_has_addr): New functions.
1200 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1201
1202 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1203
1204 * regcache.c (pseudo_register): Delete function.
1205 (fetch_register): Delete function.
1206 (store_register): Delete function.
1207 (regcache_raw_read, legacy_read_register_gen): Use
1208 target_fetch_registers instead of fetch_register.
1209 (legacy_write_register_gen, regcache_raw_write): Use
1210 target_store_register instead of store_register.
1211 (write_register_bytes): Ditto.
1212
1213 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1214 (STORE_PSEUDO_REGISTER): Delete.
1215 * gdbarch.h, gdbarch.c: Regenerate.
1216
1217 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1218
1219 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1220 write dump file binary.
1221
1222 2002-08-05 Michael Snyder <msnyder@redhat.com>
1223
1224 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1225 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1226 (mips_gdbarch_init): Set N32 target to be mips64.
1227
1228 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1229
1230 * frame.c (find_saved_register): Break out of loop once saved
1231 register address is found. Don't mention sparc in loop comment
1232 anymore.
1233
1234 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1235
1236 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1237 mips_default_saved_regsize to 8.
1238
1239 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1240
1241 * gcore.c: Do not include <sys/procfs.h>.
1242 * Makefile.in (gcore.o): Update dependencies.
1243
1244 2002-08-06 Andrew Cagney <cagney@redhat.com>
1245
1246 * configure.tgt: Make arc-*-* obsolete.
1247 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1248 * MAINTAINERS: Make arc-elf obsolete.
1249 * arc-tdep.c: Make file obsolete.
1250 * config/arc/arc.mt: Ditto.
1251 * config/arc/tm-arc.h: Ditto.
1252
1253 2002-08-05 Theodore A. Roth <troth@verinet.com>
1254
1255 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1256
1257 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1258
1259 * mcore-tdep.c (mcore_gdbarch_init): Use
1260 generic_unwind_get_saved_register instead of
1261 generic_get_saved_register.
1262 * v850-tdep.c (v850_gdbarch_init): Ditto.
1263 * frv-tdep.c (frv_gdbarch_init): Ditto.
1264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1265 * s390-tdep.c (s390_gdbarch_init): Ditto.
1266 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1267 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1268 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1269
1270 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1271
1272 * objfiles.h: Add missing #include "symfile.h"
1273
1274 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1275
1276 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1277
1278 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1279 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1280 of FIELD_BITSIZE.
1281
1282 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1283
1284 * NEWS: Cleanup and nitpick.
1285
1286 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1287
1288 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1289
1290 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1291
1292 * Makefile.in (gdbtk-bp.o): Update dependencies.
1293 (gdbtk-register.o): Ditto.
1294 (gdbtk-varobj.o): Ditto.
1295
1296 2002-08-03 Andrew Cagney <cagney@redhat.com>
1297
1298 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1299 m68hc11_fetch_pseudo_register.
1300 (m68hc11_pseudo_register_write): Replace
1301 m68hc11_store_pseudo_register.
1302 (m68hc11_gdbarch_init): Update.
1303
1304 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1305
1306 * gdbarch.sh: Include "gdb_string.h".
1307 * gdbarch.c: Regenerate.
1308
1309 * regcache.c: Include "gdb_string.h".
1310 * ax-general.c: Ditto.
1311 * varobj.c: Ditto.
1312 * std-regs.c: Ditto.
1313 * fbsd-proc.c: Ditto.
1314 * thread.c: Ditto.
1315
1316 * Makefile.in (regcache.o): Update dependencies.
1317 (thread.o, gdbarch.o): Ditto.
1318 (ax-general.o, gdbarch.o): Ditto.
1319 (varobj.o, std-regs.o): Ditto.
1320 (fbsd-proc.o): Specify dependencies.
1321
1322 2002-08-02 Andrew Cagney <cagney@redhat.com>
1323
1324 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1325 regnum.
1326 (regcache_cooked_write): Ditto.
1327
1328 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1329
1330 * regcache.c (regcache_cooked_read): New function.
1331 (regcache_cooked_write): New function.
1332 (read_register_gen): Rewrite using regcache_cooked_read.
1333 (write_register_gen): Rewrite using regcache_cooked_write.
1334
1335 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1336 Declare.
1337
1338 2002-08-02 Andrew Cagney <cagney@redhat.com>
1339
1340 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1341 Replace the architecture methods register_read and register_write.
1342 * gdbarch.h, gdbarch.c: Regenerate.
1343 * regcache.c (init_regcache_descr): Update.
1344 (read_register_gen): Update.
1345 (write_register_gen): Update.
1346 (supply_register): Update comment.
1347
1348 * sh-tdep.c (sh_gdbarch_init): Update.
1349 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1350 `regcache' and `gdbarch' parameters. Make `buffer' a void
1351 pointer. Update code.
1352 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1353 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1354 void pointer. Update code.
1355 (sh64_register_write): Delete.
1356 (sh4_register_read): Delete.
1357 (sh64_register_read): Delete.
1358 (sh4_register_write): Delete.
1359 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1360 void pointer, `to' parameter a void pointer.
1361 (sh_sh64_register_convert_to_raw): Ditto.
1362
1363 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1364
1365 * mips-tdep.c (mips_register_virtual_type): Use architecture
1366 invariant return values.
1367
1368 2002-08-01 Andrew Cagney <cagney@redhat.com>
1369
1370 * linux-proc.c: Include "gdb_string.h".
1371 * Makefile.in (linux-proc.o): Update dependency list.
1372
1373 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1374
1375 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1376 comment.
1377
1378 2002-08-01 Grace Sainsbury <graces@redhat.com>
1379
1380 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1381 to_insert_watchpoint, to_remove_watchpoint,
1382 to_stopped_by_watchpoint, to_stopped_data_address,
1383 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1384 target vecctor. Define their corresponding macros so they call
1385 them.
1386
1387 * target.c: Add default and debug versions of for
1388 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1389 to_insert_watchpoint, to_remove_watchpoint,
1390 to_stopped_by_watchpoint, to_stopped_data_address,
1391 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1392
1393 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1394
1395 * mips-tdep.c (mips_register_virtual_type): New function.
1396 (mips_gdbarch_init): Register mips_register_virtual_type()
1397 with gdbarch machinery.
1398 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1399 this file instead of tm-bigmips.h.
1400 (MIPS_REGSIZE): Delete this macro.
1401 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1402 multiarch version in mips-tdep.c will be found.
1403
1404 2002-08-01 Andrew Cagney <cagney@redhat.com>
1405
1406 * NEWS: Menion that CHILL has been made obsolete.
1407
1408 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1409 * stabsread.c (read_range_type): Ditto.
1410 * gdbtypes.h: Ditto.
1411 * language.c (binop_type_check): Ditto.
1412 (binop_result_type): Ditto.
1413 (integral_type): Ditto.
1414 (character_type): Ditto.
1415 (string_type): Ditto.
1416 (boolean_type): Ditto.
1417 (structured_type): Ditto.
1418 (lang_bool_type): Ditto.
1419 (binop_type_check): Ditto.
1420 * language.h (_LANG_chill): Ditto.
1421 * dwarfread.c (set_cu_language): Ditto.
1422 * dwarfread.c (CHILL_PRODUCER): Ditto.
1423 * dwarfread.c (handle_producer): Ditto.
1424 * expression.h (enum exp_opcode): Ditto.
1425 * eval.c: Ditto for comments.
1426 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1427 * expprint.c (print_subexp): Ditto.
1428 (print_subexp): Ditto.
1429 * valops.c (value_cast): Ditto.
1430 (search_struct_field): Ditto.
1431 * value.h (COERCE_VARYING_ARRAY): Ditto.
1432 * symfile.c (init_filename_language_table): Ditto.
1433 (add_psymbol_with_dem_name_to_list): Ditto.
1434 * valarith.c (value_binop): Ditto.
1435 (value_neg): Ditto.
1436 * valops.c (value_slice): Ditto.
1437 * symtab.h (union language_specific): Ditto.
1438 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1439 (SYMBOL_DEMANGLED_NAME): Ditto.
1440 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1441 * defs.h (enum language): Ditto.
1442 * symtab.c (got_symtab): Ditto.
1443 * utils.c (fprintf_symbol_filtered): Ditto.
1444
1445 * ch-typeprint.c: Make file obsolete.
1446 * ch-valprint.c: Make file obsolete.
1447 * ch-lang.h: Make file obsolete.
1448 * ch-exp.c: Make file obsolete.
1449 * ch-lang.c: Make file obsolete.
1450
1451 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1452 CHILL_LIB.
1453 (TARGET_FLAGS_TO_PASS): Ditto.
1454 (CHILLFLAGS): Obsolete.
1455 (CHILL): Obsolete.
1456 (CHILL_FOR_TARGET): Obsolete.
1457 (CHILL_LIB): Obsolete.
1458 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1459 ch-valprint.c.
1460 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1461 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1462 ch-lang.o.
1463 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1464 targets.
1465
1466 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1467
1468 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1469 This does not change anything at the moment, but will be helpful
1470 later when full Ada support is integrated.
1471
1472 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1473
1474 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1475 help message.
1476
1477 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1478
1479 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1480 and save it in a local variable. Use variable in later test.
1481
1482 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1483
1484 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1485 test. (Thanks to Daniel Jacobowitz.)
1486
1487 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1488
1489 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1490 (mips_abi_strings): Add "n64".
1491 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1492
1493 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1494
1495 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1496 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1497
1498 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1499
1500 * utils.c (host_pointer_to_address, address_to_host_pointer):
1501 Use gdb_assert() instead of explicit call to internal_error().
1502
1503 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1504
1505 * Makefile.in (rs6000-nat.o): Update dependencies.
1506
1507 From Nicholas Duffek:
1508 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1509 (aix-thread.o): New rule.
1510 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1511 * config/powerpc/aix432.mh: New file.
1512
1513 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1514
1515 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1516 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1517 (fetch_core_registers, ppc_linux_supply_gregset)
1518 (ppc_linux_supply_fpregset): New functions.
1519 (ppc_linux_regset_core_fns): New.
1520 (_initialize_ppc_linux_tdep): Call add_core_fns.
1521 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1522 and ppc_linux_supply_gregset.
1523 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1524 (supply_fpregset): Call ppc_linux_supply_fpregset.
1525 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1526 corelow.o.
1527 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1528
1529 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1530
1531 * symtab.c (lookup_symbol): Demangle before lowercasing.
1532
1533 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1534
1535 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1536 declaration.
1537 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1538 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1539 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1540 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1541 "gdb_string.h".
1542 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1543 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1544 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1545 (avr-tdep.o, mon960-rom.o): Ditto.
1546 (aout_stabs_gnu_h): Define.
1547 (symtab_h): Remove $(gdb_obstack_h).
1548
1549 2002-07-30 Jim Blandy <jimb@redhat.com>
1550
1551 Patch from David Carlton <carlton@math.stanford.edu>:
1552 * gdbinit.in: Move the `dir' commands that add GDB's own source
1553 directory to the search path to the end, so that the `gdb' source
1554 directory will be searched first.
1555
1556 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1557
1558 * gdb_obstack.h: New file.
1559 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1560 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1561 * objfiles.h: Include "gdb_obstack.h".
1562 * Makefile.in (gdb_obstack_h): Define.
1563 (symtab_h): Add $(gdb_obstack_h).
1564 (objfiles_h): Add $(gdb_obstack_h).
1565
1566 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1567 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1568 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1569 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1570 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1571 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1572 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1573 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1574
1575 * Makefile.in (bcache.o): Update dependencies.
1576 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1577 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1578 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1579 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1580 (stabsread.o, symfile.o, symmisc.o): Ditto.
1581 (symtab.o, typeprint.o, macroexp.o): Ditto.
1582 (macrotab.o, mdebugread.o): Ditto.
1583 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1584 (coff_ecoff_h, aout_aout64_h): Define.
1585 (aout_stabs_gnu_h, libaout_h): Define.
1586
1587 2002-07-29 Andrew Cagney <cagney@redhat.com>
1588
1589 * regcache.c (struct regcache_descr): Rename nr_registers to
1590 nr_cooked_registers. Revise comments describing the structure
1591 member fields.
1592 (init_regcache_descr): Update.
1593 (init_legacy_regcache_descr): Update.
1594 (read_register_gen, write_register_gen): When a cooked register in
1595 the raw register range, directly access the value from the raw
1596 register cache.
1597
1598 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1599
1600 * z8k-tdep.c: Do not include "obstack.h".
1601 * h8300-tdep.c, h8500-tdep.c: Ditto.
1602 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1603 * valprint.c, v850-tdep.c: Ditto.
1604 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1605 * mn10200-tdep.c: Ditto.
1606
1607 * Makefile.in (z8k-tdep.o): Update dependencies.
1608 (m68hc11-tdep.o, valprint.o): Ditto.
1609 (v850-tdep.o, d10v-tdep.o): Ditto.
1610 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1611 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1612 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1613 (sh_opc_h, gdb_sim_sh_h): Define.
1614 (elf_sh_h, elf_bfd_h): Define.
1615 (opcode_m68hc11_h): Define.
1616 (OPCODES_SRC, OPCODES_DIR): define.
1617 (OPCODES): Use $(OPCODES_DIR).
1618 (gdb_sim_d10v_h): Rename sim_d10v_h.
1619 (gdb_sim_arm_h): Rename sim_arm_h.
1620
1621 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1622
1623 * utils.c (host_pointer_to_address, address_to_host_pointer):
1624 Change internal_error() message to indicate function responsible
1625 for the error.
1626
1627 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1628
1629 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1630 calls to local_hex_string_custom().
1631
1632 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1633
1634 * irix5-nat.c: Move IRIX shared library support from here...
1635 * solib-irix.c: ...to here. Revised substantially to work with
1636 generic solib framework.
1637
1638 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1639 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1640 * mips-irix-tdep.c: New file.
1641
1642 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1643 (mips-irix-tdep.o, solib-irix.o): New rules.
1644 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1645 solib-irix.o.
1646 * config/mips/irix6.mt (TDEPFILES): Likewise.
1647 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1648
1649 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1650
1651 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1652 disabled (via ``#if 0'') includes.
1653
1654 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1655
1656 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1657 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1658 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1659 Add support for the fpscr register.
1660 * rs6000-nat.c (regmap, fetch_inferior_registers)
1661 (store_inferior_registers, fetch_core_registers): Likewise.
1662
1663 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1664
1665 * rs6000-nat.c (language.h): Include.
1666 (special_regs): Delete this array.
1667 (regmap): New function.
1668 (fetch_register, store_register): Use regmap() to map gdb
1669 register numbers to ptrace register numbers. Also, use
1670 outputs from regmap() to make decisions regarding type of
1671 ptrace() call to make. In particular, don't compare against
1672 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1673 (fetch_inferior_registers, store_inferior_registers): Where
1674 possible, obtain register numbers from tdep struct. Don't
1675 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1676 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1677 (LAST_UISA_SP_REGNUM): Delete.
1678
1679 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1680
1681 * rs6000-nat.c (ppc-tdep.h): Include.
1682 (fetch_registers, store_register, fetch_core_registers): Don't
1683 access registers[] directly. Instead, use supply_register() or
1684 regcache_collect() as appropriate.
1685 (find_toc_address): Format hex address with local_hex_string().
1686
1687 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1688
1689 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1690 bfd/elf32-frv.c.
1691
1692 2002-07-24 Tom Tromey <tromey@redhat.com>
1693
1694 * jv-exp.y: Marked all strings with _().
1695 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1696 internal_error.
1697 (MethodInvocation, CastExpression, parse_number, yyerror,
1698 java_type_from_name, push_expression_name, yylex): Typo fixes.
1699
1700 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1701
1702 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1703 (tee_file_flush, tee_file_write, tee_file_fputs)
1704 (tee_file_isatty): New.
1705 * ui-file.h (tee_file_new): Add prototype.
1706
1707 2002-07-24 Aidan Skinner <aidan@velvet.net>
1708
1709 * ada-lang.c: Change k&r style function definitions to prototyped
1710 form.
1711 * ada-typeprint.c: Change k&r style function definitions to prototyped
1712 form.
1713 * ada-valprint.c: Change k&r style function definitions to prototyped
1714 form.
1715
1716 2002-07-24 Andrew Cagney <cagney@redhat.com>
1717
1718 * README: Remove reference to remote-bug.
1719 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1720 remote-bug.c.
1721 (m88k-nat.o): Delete rule.
1722 (m88k-tdep.o): Delete rule.
1723 (remote-bug.o): Delete rule.
1724 * MAINTAINERS: Mark as obsolete.
1725 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1726 * m88k-tdep.c: Make file obsolete.
1727 * config/m88k/m88k.mh: Ditto.
1728 * config/m88k/delta88v4.mh: Ditto.
1729 * config/m88k/delta88v4.mt: Ditto.
1730 * config/m88k/delta88.mt: Ditto.
1731 * config/m88k/delta88.mh: Ditto.
1732 * remote-bug.c: Ditto.
1733 * config/m88k/tm-delta88.h: Ditto.
1734 * config/m88k/nm-delta88v4.h: Ditto.
1735 * config/m88k/xm-delta88.h: Ditto.
1736 * config/m88k/xm-dgux.h: Ditto.
1737 * config/m88k/tm-m88k.h: Ditto.
1738 * config/m88k/nm-m88k.h: Ditto.
1739 * config/m88k/tm-delta88v4.h: Ditto.
1740 * m88k-nat.c: Ditto.
1741 * cxux-nat.c: Ditto.
1742 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1743 and m88*-*-* obsolete.
1744 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1745 m88*-*-* obsolete.
1746
1747 2002-07-24 Andrew Cagney <cagney@redhat.com>
1748
1749 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1750 constant. Same for local pointer variables.
1751 (extract_signed_integer): Ditto.
1752 * defs.h (extract_unsigned_integer): Update.
1753 (extract_signed_integer): Update.
1754
1755 2002-07-24 Andrew Cagney <cagney@redhat.com>
1756
1757 * regcache.c (regcache_raw_write): Change buf parameter to a
1758 constant void pointer.
1759 (regcache_raw_read): Change buf parameter to a void pointer.
1760 (legacy_write_register_gen): Change myaddr parameter a constant
1761 void pointer.
1762 (supply_register): Change val parameter to a const void pointer.
1763 * regcache.h (regcache_raw_write): Update declaration.
1764 (regcache_raw_read): Update declaration.
1765 (supply_register): Update declaration.
1766
1767 2002-07-24 Tom Tromey <tromey@redhat.com>
1768
1769 * defs.h (gdb_readline_wrapper): Declare.
1770 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1771 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1772 * top.c (gdb_readline_wrapper): New function.
1773 (command_line_input): Use it.
1774
1775 2002-07-24 Andrew Cagney <cagney@redhat.com>
1776
1777 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1778 regcache_read and regcache_write.
1779 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1780 * regcache.c: Update.
1781 * sh-tdep.c (sh64_push_arguments): Update comment.
1782 (sh_pseudo_register_read): Update.
1783 (sh_pseudo_register_write): Update.
1784 (sh4_register_read): Update.
1785 (sh4_register_write): Update.
1786 (sh64_pseudo_register_read): Update.
1787 (sh64_pseudo_register_write): Update.
1788 (sh64_register_read): Update.
1789 (sh64_register_write): Update.
1790 * i386-tdep.c (i386_extract_return_value): Update.
1791 (i386_extract_struct_value_address): Update.
1792 (i386_extract_return_value): Update.
1793 * blockframe.c (generic_read_register_dummy): Update.
1794 (generic_call_dummy_register_unwind): Update
1795 * infrun.c (write_inferior_status_register): Update.
1796
1797 2002-07-23 Jim Blandy <jimb@redhat.com>
1798
1799 * parser-defs.h (expression_context_pc): Make this extern.
1800 (Thanks to Michael Snyder.)
1801
1802 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1803
1804 GDB 5.2.1 released from 5.2 branch.
1805 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1806 * README: Update to mention 5.2.1.
1807
1808 2002-07-23 Mark Salter <msalter@redhat.com>
1809
1810 * remote.c (remote_read_bytes): Fix check for error.
1811
1812 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1813
1814 * aix-thread.c (language.h): Include.
1815 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1816 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1817 Print newlines at end of debug messages.
1818 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1819 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1820
1821 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1822
1823 * aix-thread.c (ppc-tdep.h): Include.
1824 (special_register_p): New function.
1825 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1826 (store_regs_user_thread): Use register number information from
1827 gdbarch_tdep struct instead of hardcoded offsets relative to
1828 FIRST_UISA_SP_REGNUM.
1829 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1830 special_register_p() instead of using FPLAST_REGNUM and
1831 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1832 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1833 will be MQ's register number.
1834
1835 2002-07-22 Michael Snyder <msnyder@redhat.com>
1836
1837 * aix-thread.c (ops): Rename to aix_thread_ops.
1838 (base_ops): Rename to base_target.
1839 (ops_attach): Rename to aix_thread_attach.
1840 (ops_detach): Rename to aix_thread_detach.
1841 (ops_resume): Rename to aix_thread_detach.
1842 (ops_wait): Rename to aix_thread_wait.
1843 (ops_kill): Rename to aix_thread_kill.
1844 (init_ops): Rename to init_aix_thread_ops.
1845 (ops_fetch_register): Rename to aix_thread_fetch_register.
1846 (ops_store_register): Rename to aix_thread_store_register.
1847 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1848 (ops_thread_alive): Rename to aix_thread_thread_alive.
1849 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1850 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1851 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1852 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1853 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1854 (store_regs_lib): Rename to store_regs_user_thread.
1855 (store_regs_kern): Rename to store_regs_kernel_thread.
1856
1857 2002-07-22 Michael Snyder <msnyder@redhat.com>
1858
1859 * aix-thread.c (ops_prepare_to_store): Eliminate.
1860 (init_ops): Don't initialize ops.prepare_to_store.
1861 (store_regs_kern): Pre-fetch register buffers from child,
1862 because some registers may not be in the cache. Copy
1863 regs from register cache only if they are cached.
1864 (store_regs_lib): Copy regs from register cache only
1865 if they are cached.
1866 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1867 fill_gprs64): Ditto.
1868
1869 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1870
1871 * aix-thread.c (gdb_assert.h): Include.
1872 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1873 register sizes (from register cache) match size of buffer holding
1874 register data.
1875 (fill_sprs32): Change parameter types to match those in the ptrace()
1876 buffer.
1877 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1878 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1879
1880 2002-07-22 Michael Snyder <msnyder@redhat.com>
1881
1882 * aix-thread.c (supply_sprs64): Cosmetic change.
1883 (supply_sprs32): Cosmetic change.
1884 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1885 (fill_sprs64): Use regcache_collect instead of read_register.
1886 (store_regs_lib): Use regcache_collect instead of
1887 read_register. Use fill_sprs32 instead of fill_sprs64,
1888 if debugging a 32-bit architecture.
1889 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1890 out of the register cache, instead of passing a pointer into
1891 the register cache directly to ptrace. Use regcache_collect
1892 insteaad of read_register.
1893 (ops_prepare_to_store): Use target_read_registers instead
1894 of read_register_bytes.
1895
1896 2002-07-20 Aidan Skinner <aidan@velvet.net>
1897
1898 * MAINTAINERS: Add self under write after approval.
1899
1900 2002-07-20 Aidan Skinner <aidan@velvet.net>
1901
1902 * ada-tasks.c: Change k&r style function definitions to prototyped
1903 form.
1904
1905 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1906
1907 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1908 * x86-64-tdep.c: Include "objfiles.h".
1909 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1910 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1911
1912 2002-07-17 Michal Ludvig <michal@suse.cz>
1913
1914 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1915 (update_context): Initialise cfa variable.
1916
1917 2002-07-17 Michael Snyder <msnyder@redhat.com>
1918
1919 * aix-thread.c: Shorten some long lines.
1920 Bring comments into line with code spec.
1921
1922 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1923
1924 * infrun.c: Re-indent using gdb_indent.sh.
1925
1926 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1927
1928 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1929 Leave the indentation temporarily untouched, to minimize the diffs.
1930
1931 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1932
1933 * stabsread.c: Make os9k sections of the code obsolete,
1934 for real this time.
1935 * stabsread.h: Make os9k sections of the code obsolete.
1936
1937 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1938
1939 * linux-low.c (regsets_store_inferior_registers): Add free()
1940 at the end of a loop to prevent memory leak.
1941 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1942 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1943 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1944 line a comment.
1945 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1946
1947 2002-07-17 Jim Blandy <jimb@redhat.com>
1948
1949 * macrocmd.c (info_macro_command): Remove newline from error
1950 message.
1951
1952 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1953
1954 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1955 (sh_gdbarch_init): Use it for sh-dsp.
1956
1957 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1958
1959 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1960 64-bit DWARF2 format.
1961
1962 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1963
1964 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1965 <sys/proc.h> when not available.
1966
1967 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1968
1969 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1970 * stabsread.c: Make os9k sections of the code obsolete.
1971 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1972 * config/i386/i386os9k.mt: Make file obsolete.
1973 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1974 (COMMON_OBS): Remove os9kread.o
1975 (SFILES): Remove os9kread.c.
1976 (os9kread.o, remote-os9k.o): Make target obsolete.
1977 * remote-os9k.c: Make file obsolete.
1978 * os9kread.c: Make file obsolete.
1979 * Makefile.in
1980
1981 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1982
1983 * NEWS: Mention that the FR30 has been made obsolete.
1984 * fr30-tdep.c: Make file obsolete.
1985 * config/fr30/tm-fr30.h: Ditto.
1986 * config/fr30/fr30.mt: Ditto.
1987 * configure.tgt: Make fr30-*-elf obsolete.
1988 * MAINTAINERS: Make fr30-elf obsolete.
1989
1990 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1991
1992 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1993 found is not inside a section.
1994
1995 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1996
1997 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1998 strerror().
1999 (pdc_realloc): Use xrealloc() instead of realloc().
2000
2001 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2002
2003 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2004 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2005 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2006 macros.
2007
2008 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2009
2010 * aix-thread.c (ptrace_check): Eliminate goto.
2011 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2012 problem.
2013
2014 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2015
2016 * aix-thread.c (gdbcmd.h): Include.
2017 (DEBUG, DBG, DBG2, dbg): Eliminate.
2018 (debug_aix_thread): New static global.
2019 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2020 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2021 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2022 invocations to DBG and DBG2 macros to test against
2023 ``debug_aix_thread'' and call fprintf_unfiltered().
2024 (_initialize_aix_thread): Add new command "set debug aix-thread".
2025
2026 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2027
2028 From Gerhard Tonn <TON@de.ibm.com>:
2029 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2030 instead of supply_register.
2031
2032 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2033
2034 * dwarf2cfi.c: Include "gdb_assert.h".
2035 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2036 non-NULL.
2037 (update_context): Do not use __func__. Add missing ``break''.
2038 (update_context): Do not use __func__.
2039
2040 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2041
2042 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2043 and its setting. Set gdbarch instruction printing functions
2044 directly. For non-rs6000 case use new function
2045 gdb_print_insn_powerpc.
2046 (gdb_print_insn_powerpc): New function.
2047
2048 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2049
2050 * NEWS: Mention that the d30v has been marked obsolete.
2051 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2052 * configure.tgt: Mark d30v-*-* as obsolete.
2053 * d30v-tdep.c: Mark file as obsolete.
2054 * config/d30v/d30v.mt: Ditto.
2055 * config/d30v/tm-d30v.h: Ditto.
2056
2057 2002-07-13 Aidan Skinner <aidan@velvet.net>
2058
2059 * ada-tasks.c (add_task_entry): replace calls to
2060 malloc() with xmalloc
2061 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2062
2063 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2064 ada_finish_decode_line_1, all_sals_for_line
2065 ada_breakpoint_rewrite): replace calls to free() with xfree()
2066
2067 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2068
2069 From Nicholas Duffek (with minor changes by Martin Hunt,
2070 Louis Hamilton, and Kevin Buettner):
2071 * aix-thread.c: New file.
2072
2073 2002-07-12 Petr Sorfa <petrs@caldera.com>
2074
2075 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2076 complaint for invalid attribute class or form.
2077 (read_func_scope): DW_AT_frame_base
2078 better handling of DW_AT_block*.
2079 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2080 better handling of DW_AT_block*.
2081 (read_common_block): DW_AT_location
2082 better handling of DW_AT_block*.
2083 (read_partial_die): DW_AT_location better handling
2084 of DW_AT_block*.
2085 (new_symbol): DW_AT_external better handling of
2086 DW_AT_block*. Proper initialization of variable
2087 "addr".
2088 (attr_form_is_block): New function that returns true
2089 if the attribute's form is of DW_FORM_block*.
2090
2091 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2092
2093 * valops.c (find_method_list): Remove comment about
2094 removed STATIC_MEMFUNCP argument.
2095 (value_find_oload_method_list): Likewise.
2096
2097 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2098
2099 From Nicholas Duffek:
2100 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2101 target_new_objfile_hook.
2102
2103 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2104
2105 From Nicholas Duffek:
2106 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2107 csect.
2108
2109 2002-07-12 Andrew Cagney <cagney@redhat.com>
2110
2111 * MAINTAINERS: Mention --enable-sim-build-warnings.
2112 (m68hc11-elf): Disable sim build warnings.
2113 (m32r-elf): Mark as broken obsolete candidate.
2114 (x86_64-linux-gnu): Mark as buildable with -Werror.
2115 (arm-elf): Change -w to ``,'' which enables warnings but not
2116 -Werror.
2117
2118 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2119
2120 * bcache.h: Update copyright.
2121 (struct bstring, struct bcache): Move definition to "bcache.c".
2122 Replaced by opaque declaration.
2123 (bcache_xfree): Replace free_bcache.
2124 (bcache_xmalloc, bcache_memory_used): Declare.
2125
2126 * bcache.c: Update copyright.
2127 (struct bstring, struct bcache): Moved to here from "bcache.h".
2128 Update comments.
2129 (bcache_xmalloc, bcache_memory_used): New functions.
2130 (bcache_xfree): Replace function free_bcache.
2131
2132 * Makefile.in (objfiles.o): Add $(bcache_h).
2133 (objfiles_h): Remove $(bcache_h).
2134 (symfile.o): Add $(bcache_h).
2135
2136 * symmisc.c: Update copyright.
2137 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2138 (print_objfile_statistics): Use bcache_memory_used.
2139
2140 * symfile.c: Include "bcache.h".
2141 (reread_symbols): Use bcache_xfree.
2142 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2143 (add_psymbol_to_list): Pass psymbol_cache by value.
2144 (add_psymbol_with_dem_name_to_list): Ditto.
2145
2146 * objfiles.h: Update copyright.
2147 (struct bcache): Declare opaque. Do not include "bcache.h".
2148 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2149 bcache'' pointers.
2150 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2151
2152 * objfiles.c: Include "bcache.h". Update copyright.
2153 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2154 macro_cache.
2155 (free_objfile): Use bcache_xfree.
2156
2157 2002-07-11 Grace Sainsbury <graces@redhat.com>
2158
2159 * monitor.c (monitor_fetch_register): Make name a constant.
2160 (monitor_store_register): Same.
2161
2162 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2163
2164 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2165 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2166 (finish_block) For non-function blocks, hash the symbol table. For
2167 function blocks, mark the symbol table as unhashed.
2168 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2169 (msymbol_hash_iw): Likewise.
2170 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2171 value.
2172 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2173 (lookup_minimal_symbol): Likewise for both.
2174 * symtab.h (struct block): Add `hashtable' flag. Comment the
2175 hashtable.
2176 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2177 (ALL_BLOCK_SYMBOLS): Update.
2178 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2179 (struct symbol): Add `hash_next' pointer.
2180 * symtab.c (lookup_block_symbol): Search using the hash table when
2181 possible.
2182 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2183 (search_symbols, find_addr_symbol): Likewise.
2184
2185 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2186 (read_dst_symtab): Likewise.
2187 * jv-lang.c (get_java_class_symtab): Likewise.
2188 * mdebugread.c: Include "gdb_assert.h".
2189 (shrink_block): Assert that the block being modified is not hashed.
2190 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2191 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2192 symbols.
2193 (dump_symtab): Recognize hashed blocks.
2194 * printcmd.c (print_frame_args): Assert that function blocks do not
2195 have hashed symbol tables.
2196 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2197 (fill_in_ada_prototype, debug_print_block): Likewise.
2198 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2199
2200 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2201
2202 * stack.c (print_frame): Use result of frame_address_in_block()
2203 instead of fi->pc when evaluating symbols.
2204 (backtrace_command_1): Ditto.
2205
2206 2002-07-11 Andrew Cagney <cagney@redhat.com>
2207
2208 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2209 Make static.
2210
2211 * arm-tdep.c (arm_register_name): Make return type constant.
2212
2213 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2214
2215 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2216 prototype.
2217 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2218 * s390-tdep.c (s390_fp_regnum): Ditto.
2219 (s390_read_fp): Ditto.
2220 (s390_pop_frame): Ditto.
2221 (_initialize_s390_tdep): Ditto.
2222 * remote.c (get_remote_state): Ditto.
2223 * procfs.c (mappingflags): Ditto.
2224 * memattr.c (_initialize_mem): Ditto.
2225 * mcore-tdep.c (mcore_pop_frame): Ditto.
2226 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2227 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2228 * language.c (set_case_str): Ditto.
2229 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2230 * frv-tdep.c (new_variant): Ditto.
2231 (frv_stopped_data_address): Ditto.
2232 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2233 (context_alloc): Ditto.
2234 (frame_state_alloc): Ditto.
2235 (unwind_tmp_obstack_init): Ditto.
2236 (unwind_tmp_obstack_free): Ditto.
2237 (cfi_read_fp): Ditto.
2238 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2239 (cris_pop_frame): Ditto.
2240 * c-lang.c (scanning_macro_expansion): Ditto.
2241 (finished_macro_expansion): Ditto.
2242 (c_preprocess_and_parse): Ditto.
2243 * gdbarch.sh: Ditto.
2244 * gdbarch.h, gdbarch.c: Regenerate.
2245 * config/mn10200/tm-mn10200.h: Adjust indentation.
2246 * target.c: Adjust indentation.
2247 * symtab.h: Adjust indentation.
2248 * stabsread.h: Adjust indentation.
2249 * remote-es.c: Adjust indentation.
2250 * os9kread.c: Adjust indentation.
2251
2252 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2253
2254 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2255 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2256
2257 2002-07-10 Grace Sainsbury <graces@redhat.com>
2258
2259 * NEWS: Mention m68k, mcore multi-arching.
2260 * MAINTAINERS: Change status of m68k, mcore to reflect
2261 multi-arching.
2262
2263 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2264
2265 * valops.c (find_overload_match): Free oload_syms.
2266
2267 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2268
2269 Define HAVE_SYS_PROC_H if sys/proc.h exists
2270 * configure.in: Add check for sys/proc.h
2271 * config.in: Regenerate.
2272 * configure: Regenerate.
2273
2274 2002-07-09 Grace Sainsbury <graces@redhat.com>
2275
2276 * config/m68k/tm-m68k.h: Remove macros wrapped in
2277 #if !GDB_MULTI_ARCH.
2278
2279 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2280
2281 * config.in, configure: Regenerate.
2282
2283 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2284
2285 * dwarf2cfi.c: Include "gcore.h".
2286 (execute_stack_op): Fix implementation of the
2287 DW_OP_deref and DW_OP_deref_size operators by letting do their
2288 lookup in the target.
2289
2290 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2291
2292 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2293 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2294 tdep->sc_sp_offset.
2295
2296 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2297
2298 Fix PR gdb/595, gdb/602
2299 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2300 Don't call value_cast, just read the vtable pointer; update comments
2301 to match.
2302
2303 2002-07-05 Grace Sainsbury <graces@redhat.com>
2304
2305 * config/mcore/tm-mcore.h: Remove file.
2306 * config/mcore/mcore.mt: Remove definition of TM_FILE
2307 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2308
2309 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2310
2311 * i386bsd-tdep.c: Include "gdb_string.h".
2312
2313 2002-07-04 Grace Sainsbury <graces@redhat.com>
2314
2315 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2316 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2317 mcore-tdep.
2318 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2319 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2320 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2321 (RETVAL_REGNUM): Move macros from tm-mcore.h
2322 (mcore_reg_struct_has_addr): New function.
2323 (mcore_gdbarch_init): Added initializations for the macros removed
2324 from tm-mcore.h.
2325
2326 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2327
2328 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2329 traditonal string branding within the ELF header.
2330
2331 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2332
2333 * symtab.c (remove_params): New function.
2334 (make_symbol_overload_list): Use it instead of cplus_demangle.
2335 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2336
2337 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2338
2339 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2340
2341 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2342 New variables.
2343 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2344 and tdep->sigtramp_end.
2345 * i386obsd-nat.c: New file.
2346 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2347
2348 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2349 Don't call get_current_frame().
2350
2351 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2352
2353 * i386-nat.c (child_post_startup_inferior): New function
2354 calling i386_cleanup_dregs if
2355 I386_USE_GENERIC_WATCHPOINTS is defined.
2356 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2357 conditional to acknowledge that i386-nat.c has its
2358 own child_post_startup_inferior function.
2359
2360 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2361
2362 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2363 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2364 instead of MAX_REGISTER_RAW_SIZE.
2365 (i386_extract_return_value, i386_extract_struct_value_address):
2366 Convert to use regcache.
2367 (i386_gdbarch_init): Set max_register_raw_size and
2368 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2369 Set extract_return_value and extract_struct_value_address instead
2370 of their deprecated variants.
2371
2372 Convert i386 target to generic dummy frames.
2373 * i386-tdep.c: Include "symfile.h".
2374 (i386_frameless_signal_p): Consider a function to be frameless if
2375 the pc points at the first instruction of the function.
2376 (i386_frame_chain): Handle (generic) call dummies.
2377 (i386_frame_saved_pc): Likewise.
2378 (i386_frame_init_saved_regs): Remove code dealing with call
2379 dummies on the stack.
2380 (i386_push_dummy_frame): Removed.
2381 (i386_call_dummy_words): Removed.
2382 (i386_fix_call_dummy): Removed.
2383 (i386_push_return_address): New function.
2384 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2385 parameter, and don't call get_current_frame.
2386 (i386_pop_frame): New function.
2387 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2388 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2389 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2390 call_dummy_length to 0, set call_dummy_words to NULL, set
2391 sizeof_call_dummy_words to 0, set fix_call_dummy to
2392 generic_fix_call_dummy, set pc_in_call_dummy to
2393 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2394 generic_push_dummy_frame, set push_return_address to
2395 i386_push_return_address and set frame_chain_valid to
2396 generic_file_frame_chain_valid.
2397
2398 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2399
2400 * gdbarch.sh (struct regcache): Add opaque declaration.
2401 (EXTRACT_RETURN_VALUE): New architecture method.
2402 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2403 * gdbarch.h, gdbarch.c: Regenerate.
2404 * arch-utils.c (legacy_extract_return_value): New function.
2405 * arch-utils.h (legacy_extract_return_value): Declare.
2406 * values.c (value_being_returned): Re-enable code handling
2407 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2408 deprecated_grub_regcache_for_registers call to block handling
2409 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2410 (EXTRACT_RETURN_VALUE): Do not define.
2411
2412 2002-07-03 Grace Sainsbury <graces@redhat.com>
2413
2414 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2415 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2416 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2417 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2418 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2419 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2420 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2421 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2422 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2423 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2424 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2425 argument so the function fits the prototype in the architecture
2426 vector.
2427 (mcore_pop_frame): Remove argument so the function fits the
2428 prototype. Use get_current_frame instead of the argument.
2429 (mcore_push_arguments): Change type of struct_return so the
2430 function can be used in the architecture vector.
2431 (mcore_store_struct_return): Add.
2432 (mcore_frame_init_saved_regs): Add.
2433 (mcore_gdbarch_init): Add function calls to replace the macros
2434 removed from tm-mcore.h
2435
2436 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2437
2438 * infcmd.c (print_return_value): Remove compatibility code calling
2439 deprecated_grub_regcache_for_registers.
2440
2441 * values.c: Include "regcache.h".
2442 (value_being_returned): Update. Use
2443 deprecated_grub_regcache_for_registers to extract the register
2444 buffer address.
2445 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2446 ``struct regcache''.
2447 * Makefile.in (values.o): Add dependency on $(regcache_h).
2448
2449 * inferior.h (run_stack_dummy): Change type of second parameter to
2450 a ``struct regcache''.
2451 * valops.c (hand_function_call): Change type of retbuf to ``struct
2452 regcache''. Allocate using regcache_xmalloc, clean using
2453 make_cleanup_regcache_xfree.
2454 * infcmd.c (run_stack_dummy): Update. Use
2455 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2456
2457 * regcache.c (do_regcache_xfree): New function.
2458 (make_cleanup_regcache_xfree): New function.
2459 * regcache.h (make_cleanup_regcache_xfree): Declare.
2460
2461 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2462
2463 * event-top.c (command_line_handler): Don't read past
2464 beginning of buffer.
2465
2466 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2467
2468 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2469 struct frame_id.
2470 (varobj_create): Store frame_id for root.
2471 (varobj_gen_name): Use xasprintf.
2472 (varobj_update): Save and restore frame using get_frame_id() and
2473 frame_find_by_id().
2474 (create_child): Use xasprintf.
2475 (new_root_variable): Initialize frame_id.
2476 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2477 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2478 to prevent memory leak.
2479
2480 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2481
2482 * valops.c (hand_function_call): Move declaration of retbuf to
2483 start of function, allocate using malloc, add a cleanup but before
2484 the inf_status cleanup, cleanup the buffer. Rename local variable
2485 old_chain to inf_status_cleanup.
2486
2487 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2488
2489 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2490
2491 * cli/cli-decode.c (cmd_func_p): New function.
2492 (cmd_func): New function.
2493
2494 * command.h: Add cmd_func() and cmd_func_p().
2495
2496 2002-07-03 Grace Sainsbury <graces@redhat.com>
2497
2498 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2499 (REGISTER_SIZE): Remove.
2500 (MAX_REGISTER_RAW_SIZE): Remove.
2501 (REGISTER_VIRTUAL_TYPE): Remove.
2502 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2503 (REGISTER_NAME): Remove.
2504 (USE_GENERIC_DUMMY_FRAMES): Remove.
2505 (CALL_DUMMY): Remove.
2506 (CALL_DUMMY_START_OFFSET): Remove.
2507 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2508 (CALL_DUMMY_LOCATION): Remove.
2509 (FIX_CALL_DUMMY): Remove.
2510 (CALL_DUMMY_ADDRESS): Remove.
2511 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2512 (SAVE_DUMMY_FRAME_TOS): Remove.
2513 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2514 (mcore_register_virtual_type): New function.
2515 (mcore_register_byte): New function.
2516 (mcore_register_size): New function.
2517 (mcore_register_name): New function.
2518 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2519 macros removed from tm-mcore.h.
2520 (mcore_dump_tdep): Add.
2521 (_initialize_mcore_tdep): Add gdbarch_register call.
2522
2523 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2524
2525 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2526 frameless_look_for_prologue, such that we actually call this
2527 function.
2528
2529 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2530
2531 * frame.h (frame_address_in_block): New function.
2532
2533 * blockframe.c (frame_address_in_block): New function extracted
2534 from get_frame_block().
2535 (get_frame_block): Use frame_address_in_block().
2536 (block_innermost_frame): Use frame_address_in_block() to match
2537 the frame pc address against the block boundaries rather than
2538 the frame pc directly. This prevents a failure when a frame pc
2539 is actually a return-address pointing immediately after the end
2540 of the given block.
2541
2542 2002-07-02 Grace Sainsbury <graces@redhat.com>
2543
2544 * MAINTAINERS: Add self under write after approval.
2545
2546 2002-07-02 Grace Sainsbury <graces@redhat.com>
2547
2548 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2549 used in architecture vector. The default is
2550 m68k_local_breakpoint_from_pc.
2551 (m68k_local_breakpoint_from_pc): Add.
2552 (enum): Add register numbers from tm-m68k.h.
2553 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2554 vector.
2555 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2556 GDB_MULTI_ARCH_PARTIAL.
2557 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2558 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2559 m68k-tdep.c.
2560 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2561 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2562 to enum in m68k-tdep.c
2563
2564 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2565
2566 * solib-osf.c (open_map): Compute the list of shared libraries
2567 loaded by the inferior, rather than the list of libraries loaded
2568 by GDB itself. Otherwise, GDB ends up reading the symbols from
2569 the wrong shared libraries...
2570
2571 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2572
2573 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2574 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2575 macros.
2576 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2577 Remove functions.
2578 (FRAMELESS_SIGNAL): Remove function.
2579 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2580 i386_linux_saved_pc_after_call): Removed.
2581 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2582 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2583 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2584
2585 * i386-tdep.c (i386_frameless_signal_p): New function.
2586 (i386_frame_chain): Deal with frameless signals.
2587 (i386_sigtramp_saved_sp): New function.
2588 (i386_frame_saved_pc): Deal with frameless signals.
2589 (i386_saved_pc_after_call): Make sure the correct value is
2590 returned just after entry into a sigtramp.
2591 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2592 i386fbsd4_sc_sp_offset): New variables.
2593 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2594 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2595 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2596 similiar to what we already did for sc_pc_offset.
2597 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2598 tdep->sc_sp_offset.
2599
2600 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2601
2602 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2603
2604 * config/i386/tm-x86-64linux.h: New.
2605 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2606 definitions.
2607 * config/i386/nm-x86-64.h: Rename to ...
2608 * config/i386/nm-x86-64linux.h: ... this one.
2609 * config/i386/x86-64linux.mh: Reflect the above change.
2610
2611 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2612
2613 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2614 with sigcontext_addr. Add sc_sp_offset.
2615 (i386bsd_sigtramp_saved_pc): Remove prototype.
2616 (i386bsd_sicontext_addr): Add prototype.
2617 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2618 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2619 (i386_svr4_sigtramp_saved_pc): Removed.
2620 (i386_svr4_sigcontext_addr): New function.
2621 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2622 Initialize tdep->sigcontext_addr instead. Initialize
2623 tdep->sc_pc_offset and tdep->sc_sp_offset.
2624 (i386_gdbarch_init): Likewise.
2625 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2626 any more.
2627 (i386bsd_sigtramp_saved_pc): Remove function.
2628 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2629 Initialize tdep->sigcontext_addr instead. Initialize
2630 tdep->sc_pc_offset.
2631 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2632 of tdep->sigtramp_saved_pc.
2633 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2634 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2635 instead.
2636
2637 * i386-tdep.c (i386_frameless_function_invocation,
2638 i386_frame_num_args, i386_frame_init_saved_regs,
2639 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2640 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2641 i386_extract_return_value, i386_store_return_value,
2642 i386_extract_struct_value_address, i386_register_virtual_type,
2643 i386_register_convertible, i386_register_convert_to_virtual,
2644 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2645 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2646 static.
2647
2648 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2649
2650 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2651
2652 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2653 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2654 this macro. Include "value.h".
2655
2656 2002-06-30 Aidan Skinner <aidan@velvet.net>
2657
2658 * ada-exp.tab.c: remove as it's a generated file
2659 * ada-lex.c: remove as it's a generated file
2660
2661 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2662
2663 * config/i386/tm-i386.h (struct frame_info, struct
2664 frame_saved_regs, struct value, struct type): Remove forward
2665 declarations.
2666
2667 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2668 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2669 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2670 (FILL_FPXREGSET): Define.
2671
2672 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2673
2674 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2675 i[3456]86-*-netbsd* case.
2676 * config/i386/tm-obsd.h: Removed.
2677 * config/i386/obsd.mt: Removed.
2678 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2679 core-aout.o.
2680 (MH_CFLAGS): Add -DYYDEBUG=0.
2681
2682 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2683 i386nbsd_sc_pc_offset on OpenBSD too.
2684
2685 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2686 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2687 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2688 define.
2689 * i386bsd-tdep.c: Include "arch-utils.h".
2690 (i386bsd_aout_in_solib_call_trampoline): New function.
2691 (i386bsd_init_abi): Set in_solib_call_trampoline to
2692 i386bsd_aout_in_solib_call_trampoline.
2693 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2694 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2695
2696 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2697
2698 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2699 (struct obstack, struct bcache): Add opaque declarations.
2700 * Makefile.in (macrotab_h): Update
2701
2702 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2703
2704 * blockframe.c (generic_find_dummy_frame): Change return type to
2705 ``struct regcache''.
2706 (struct dummy_frame): Replace field ``registers'' with regcache, a
2707 struct regcache object.
2708 (generic_find_dummy_frame): Update.
2709 (generic_push_dummy_frame): Update. Use regcache_xfree,
2710 regcache_xmalloc and regcache_cpy.
2711 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2712 regcache_xfree.
2713 (deprecated_generic_find_dummy_frame): Update.
2714 (generic_read_register_dummy): Update. Use
2715 regcache_read_as_address.
2716 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2717 (generic_get_saved_register): Update. Use regcache_read.
2718
2719 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2720
2721 * Makefile.in (objfiles_h): Add $(bcache_h).
2722 * objfiles.h: Include "bcache.h".
2723
2724 * Makefile.in (symtab_h): Remove $(bcache_h).
2725 * symtab.h: Do not include "bcache.h".
2726
2727 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2728
2729 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2730 generic_func_frame_chain_valid.
2731
2732 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2733
2734 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2735 * config/i386/tm-fbsd.h: Likewise.
2736
2737 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2738
2739 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2740 generic_unwind_get_saved_register.
2741
2742 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2743
2744 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2745 * regcache.c (supply_register): Add missing argument to
2746 register_buffer call.
2747
2748 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2749
2750 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2751 Solaris /bin/grep does not not like it. From Peter Schauer.
2752
2753 2002-06-26 Tom Tromey <tromey@redhat.com>
2754
2755 * command.h (add_setshow_cmd): Declare.
2756 (add_setshow_cmd_full): Declare.
2757 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2758 returns void. Use add_setshow_cmd_full.
2759 (add_setshow_cmd_full): New function.
2760 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2761 (add_setshow_boolean_cmd): Likewise.
2762
2763 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2764
2765 * config/vax/tm-vax.h: Protect from multiple inclusion.
2766 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2767 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2768 * config/vax/tm-vaxbsd.h: ...here. New file.
2769 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2770
2771 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2772
2773 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2774 (BELIEVE_PCC_PROMOTION): Remove.
2775 (AP_REGNUM): Move to...
2776 * config/vax/nm-vax.h: ...here.
2777 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2778 (vax_breakpoint_from_pc): New function.
2779 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2780 and gdbarch_believe_pcc_promotion.
2781
2782 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2783
2784 * Makefile.in (vax_tdep_h): Define.
2785 (vax-tdep.o): Use $(vax_tdep_h).
2786 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2787 (vax_dump_tdep): New function.
2788 (_initialize_vax_tdep): Register vax_dump_tdep.
2789 * vax-tdep.h: Include osabi.h.
2790 (struct gdbarch_tdep): New.
2791
2792 2002-06-26 Andrew Cagney <cagney@redhat.com>
2793
2794 * frame.h (deprecated_generic_find_dummy_frame): Rename
2795 generic_find_dummy_frame.
2796 * blockframe.c (generic_find_dummy_frame): Make static.
2797 (deprecated_generic_find_dummy_frame): New function.
2798 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2799 generic_find_dummy_frame with deprecated_find_dummy_frame.
2800 (sh64_nofp_frame_init_saved_regs): Ditto.
2801 (sh_fp_frame_init_saved_regs): Ditto.
2802 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2803 (s390_frame_chain): Ditto.
2804 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2805
2806 2002-06-26 Grace Sainsbury <graces@redhat.com>
2807
2808 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2809 gdbarch vector are at the top.
2810 (NUM_REGS): Remove.
2811 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2812 (FRAME_ARGS_ADDRESS): Remove.
2813 (FRAME_LOCALS_ADDRESS): Remove.
2814 (FRAME_NUM_ARGS): Remove.
2815 (FRAME_ARGS_SKIP): Remove.
2816 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2817 (m68k_gdbarch_init): Add gdbarch initializations for macros
2818 undefined in tm-m68k.h
2819
2820 2002-06-26 Grace Sainsbury <graces@redhat.com>
2821
2822 * monitor.h: Add the function regname to monitor_ops
2823 structure. This way NUM_REGS does not have to be a constant.
2824 * monitor.c (monitor_fetch_register): Added support for regname
2825 function. The function is called if the array regnames is NULL.
2826 (monitor_store_register): Same.
2827 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2828 regnames array.
2829 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2830 cpu32bug_cmds.regname to point to new function.
2831 * abug-rom.c (abug_regname): Same as above.
2832 (init_abug_cmds): Same.
2833 * dbug-rom.c (dbug_regname): Same as above.
2834 (init_dbug_cmds): Same.
2835 * remote-est.c (est_regname): Same.
2836 (init_est_cmds): Same.
2837 * rom68k-rom.c (rom68k_regname): Same.
2838 (init_rom68k_cmds): Same.
2839
2840 2002-06-25 Tom Tromey <tromey@redhat.com>
2841
2842 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2843
2844 2002-06-25 Andrew Cagney <cagney@redhat.com>
2845
2846 * infrun.c (stop_registers): Change variable's type to ``struct
2847 regcache'''.
2848 (xmalloc_inferior_status): Delete function.
2849 (free_inferior_status): Delete function.
2850 (normal_stop): Use regcache_cpy.
2851 (struct inferior_status): Change type of fields ``stop_registers''
2852 and ``registers'' to ``struct regcache''.
2853 (write_inferior_status_register): Use regcache_write.
2854 (save_inferior_status): Instead of calling
2855 xmalloc_inferior_status, allocate the inf_status buffer directly.
2856 Use regcache_dup_no_passthrough and regcache_dup to save the
2857 buffers.
2858 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2859 Replace the stop_registers regcache instead of overriding it. Use
2860 regcache_xfree. Instead of calling free_inferior_status, xfree
2861 the buffer directly.
2862 (discard_inferior_status): Use regcache_xfree. Instead of calling
2863 free_inferior_status, xfree the buffer directly.
2864 (build_infrun): Use regcache_xmalloc.
2865 (_initialize_infrun): Delete redundant call to build_infrun.
2866
2867 * Makefile.in (infcmd.o): Add $(regcache_h).
2868
2869 * infcmd.c: Include "regcache.h".
2870 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2871 obtain the address of `stop_registers' register buffer.
2872 (print_return_value): Ditto.
2873
2874 * inferior.h (struct regcache): Add opaque declaration.
2875 (stop_registers): Change variable's declared type to ``struct
2876 regcache''.
2877
2878 2002-06-24 Tom Tromey <tromey@redhat.com>
2879
2880 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2881 * target.c (initialize_targets): Fixed typo in
2882 trust-readonly-sections `show' documentation.
2883
2884 * main.c: Marked all strings with _().
2885
2886 2002-06-24 Don Howard <dhoward@redhat.com>
2887
2888 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2889 that means max CORE_ADDR+1.
2890 (lookup_mem_region): Ditto.
2891 (mem_info_command): Ditto.
2892
2893 2002-06-24 Grace Sainsbury <graces@redhat.com>
2894
2895 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2896 (REGISTER_BYTES_OK): Remove.
2897 (REGISTER_BYTES): Remove.
2898 (STORE_STRUCT_RETURN): Remove.
2899 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2900 (STORE_RETURN_VALUE): Remove.
2901 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2902 (FRAME_CHAIN): Remove.
2903 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2904 (FRAME_SAVED_PC): Remove.
2905 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2906 (m68k_store_struct_return): Add.
2907 (m68k_deprecated_extract_return_value): Add.
2908 (m68k_deprecated_extract_struct_value_address): Add.
2909 (m68k_store_return_value): Add.
2910 (m68k_frame_chain): Add.
2911 (m68k_frameless_function_invocation): Add.
2912 (m68k_frame_saved_pc): Add.
2913 (m68k_gdbarch_init): added set_gdbarch calls for new
2914 functions and deleted macros.
2915
2916 2002-06-23 Tom Tromey <tromey@redhat.com>
2917
2918 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2919 (ALLDEPFILES): Likewise.
2920 (udiheaders): Removed.
2921 (udip2soc.o): Likewise.
2922 (udi2go32.o): Likewise.
2923 (udr.o): Likewise.
2924 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2925
2926 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2927
2928 * infrun.c (_initialize_infrun): Delete unnecessary call to
2929 build_infrun.
2930
2931 * regcache.h: Update comments describing the regcache_cpy family
2932 of functions.
2933 (regcache_save, regcache_restore): Delete declaration.
2934 (regcache_save_no_passthrough): Delete declaration.
2935 (regcache_restore_no_passthrough): Delete declaration.
2936 * regcache.c (regcache_save): Delete function.
2937 (regcache_save_no_passthrough): Delete function.
2938 (regcache_restore): Delete function.
2939 (regcache_restore_no_passthrough): Delete function.
2940
2941 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2942
2943 * config/m68k/tm-m68k.h: Fix typo.
2944 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2945 (m68k_frame_init_saved_regs): Declare.
2946
2947 2002-06-21 Jim Blandy <jimb@redhat.com>
2948
2949 Remove some vestiges of Harris 88k support.
2950 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2951 register numbering quirk.
2952 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2953 odd symbols occurring in Harris 88k ELF targets.
2954
2955 2002-06-21 Tom Tromey <tromey@redhat.com>
2956
2957 * gdb_locale.h: New file.
2958 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2959 (defs_h): Added gdb_locale.h.
2960 * configure, config.in: Rebuilt.
2961 * configure.in (PACKAGE): Define.
2962 * defs.h: Include gdb_locale.h.
2963 * main.c (captured_main): Call setlocale, bindtextdomain,
2964 textdomain.
2965
2966 2002-06-21 Dave Brolley <brolley@redhat.com>
2967
2968 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2969 * config/frv/frv.mt: New file.
2970 * config/frv/tm-frv.h: New file.
2971 * configure.tgt: Support frv-*-*.
2972 * Makefile.in (frv-tdep.o): New target.
2973 * frv-tdep.c: New file.
2974 * NEWS: Mention frv.
2975
2976 2002-06-21 Dave Brolley <brolley@redhat.com>
2977
2978 * MAINTAINERS: Add self to "Write After Approval" list.
2979
2980 2002-06-21 Grace Sainsbury <graces@redhat.com>
2981
2982 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2983 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2984 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2985 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2986 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2987
2988 * m68k-tdep.c: Include arch-utils.h
2989 (m68k_register_raw_size): Add.
2990 (m68k_register_virtual_size): Add.
2991 (m68k_register_virtual_type): Add.
2992 (m68k_register_name): Add.
2993 (m68k_stack_align): Add.
2994 (m68k_register_byte): Add.
2995 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2996 tm-m68k.h.
2997
2998 2002-06-21 Grace Sainsbury <graces@redhat.com>
2999
3000 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3001 m68k_find_saved_regs.
3002 (m68k_pop_frame): Removed saved_regs structure, and replaced
3003 references to it with frame->saved_regs.
3004 (m68k_gdbarch_init): Added function calls to initialize the
3005 gdbarch structure.
3006 (m68k_fix_call_dummy): Add.
3007 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3008 (CALL_DUMMY): Remove.
3009 (CALL_DUMMY_LENGTH): Remove.
3010 (CALL_DUMMY_START_OFFSET): Remove.
3011 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3012 (FIX_CALL_DUMMY): Remove.
3013 (PUSH_DUMMY_FRAME): Remove.
3014 (POP_FRAME): Remove.
3015
3016 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3017
3018 * parse.c (parse_fprintf): New function used to avoid calls to
3019 fprintf in bison parser generated debug code.
3020 * parser-defs.h: Declaration of new parse_fprintf function.
3021 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3022 Set YYDEBUG to 1 by default.
3023 Set YYFPRINTF as parse_fprintf.
3024
3025 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3026
3027 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3028 encoding anymore.
3029 (pointer_encoding, enum ptr_encoding): New.
3030 (execute_cfa_program): Take care about pointer encoding.
3031 (dwarf2_build_frame_info): Only call parse_frame_info for
3032 .debug_frame and .eh_frame.
3033 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3034 fixed augmentation handling, added relative addressing,
3035 ignore duplicate FDEs. Added comments.
3036 * dwarf2cfi.c: Reindented.
3037
3038 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3039
3040 * event-top.c (command_handler): Don't use space_at_cmd_start
3041 unless there is sbrk() on the host. Assign time and space data
3042 to union fields of the appropriate length.
3043
3044 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3045
3046 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3047 x86_64_register_name. Return type changed to 'const char *'.
3048 (x86_64_register_name2nr): Rename to x86_64_register_number.
3049 (x86_64_gdbarch_init): Update to reflect the change.
3050 * x86-64-tdep.h: Ditto.
3051 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3052 (supply_fpregset): Ditto.
3053
3054 2002-06-19 Andrew Cagney <cagney@redhat.com>
3055
3056 * regcache.h: Update copyright.
3057 (struct regcache, struct gdbarch): Add opaque declarations.
3058 (current_regcache): Declare global variable.
3059 (regcache_read, regcache_write): Add gdbarch parameter.
3060 (regcache_save, regcache_save_no_passthrough)
3061 (regcache_restore, regcache_restore_no_passthrough)
3062 (regcache_dup, regcache_dup_no_passthrough)
3063 (regcache_cpy, regcache_cpy_no_passthrough)
3064 (deprecated_grub_regcache_for_registers)
3065 (deprecated_grub_regcache_for_register_valid)
3066 (regcache_valid_p): Add function declarations.
3067
3068 * regcache.c: Update copyright.
3069 (regcache_descr_handle): New global variable.
3070 (struct regcache_descr): Define.
3071 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3072 (regcache_descr, xfree_regcache_descr): New functions.
3073 (struct regcache): Define.
3074 (regcache_xmalloc, regcache_xfree): New functions.
3075 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3076 (regcache_dup, regcache_dup_no_passthrough): New functions.
3077 (regcache_valid_p, regcache_read_as_address): New functions.
3078 (deprecated_grub_regcache_for_registers): New function.
3079 (deprecated_grub_regcache_for_register_valid): New function.
3080 (current_regcache): New global variable.
3081 (register_buffer): Add regcache parameter. Update calls.
3082 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3083 (read_register_gen, write_register_gen): Update register_buffer
3084 call. Test for legacy_p instead of gdbarch_register_read_p or
3085 gdbarch_register_write_p.
3086 (regcache_collect): Update register_buffer call.
3087 (build_regcache): Rewrite. Use deprecated grub functions.
3088 (regcache_save, regcache_save_no_passthrough): New functions.
3089 (regcache_restore, regcache_restore_no_passthrough): New
3090 functions.
3091 (_initialize_regcache): Create the regcache_data_handle. Swap
3092 current_regcache global variable.
3093
3094 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3095 parameter to regcache_read and regcache_write calls.
3096 (sh4_register_read): Ditto.
3097 (sh64_pseudo_register_read): Ditto.
3098 (sh64_register_read): Ditto.
3099 (sh_pseudo_register_write): Ditto.
3100 (sh4_register_write): Ditto.
3101 (sh64_pseudo_register_write): Ditto.
3102 (sh64_register_write): Ditto.
3103
3104 * defs.h (XCALLOC): Define.
3105
3106 2002-06-19 Grace Sainsbury <graces@redhat.com>
3107
3108 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3109 * m68k-tdep.c (m68k_gdbarch_init): Added.
3110 (m68k_dump_tdep): Added.
3111
3112 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3113
3114 * ada-lang.c (fill_in_ada_prototype): Update comment.
3115
3116 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3117
3118 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3119 MIPS_ABI_LAST.
3120 (mips_abi_string, mips_abi_strings): New.
3121 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3122 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3123 tdep->mips_abi_string. Honor mips_abi_string. Default to
3124 O32 if no ABI is found.
3125 (mips_dump_tdep): Use mips_abi_strings.
3126 (mips_abi_update): New function.
3127 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3128 ``set mips abi'' and ``show mips abi''. Check the size of
3129 mips_abi_strings.
3130
3131 2002-06-19 Andrew Cagney <cagney@redhat.com>
3132
3133 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3134 constant.
3135
3136 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3137
3138 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3139 current frame using only the first stack size adjustment. All
3140 subsequent size adjustments are not considered to be part of
3141 the "static" part of the current frame.
3142 Compute the address of the saved registers relative to the
3143 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3144 in use in this frame.
3145
3146 2002-06-18 Don Howard <dhoward@redhat.com>
3147
3148 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3149 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3150 suggesting this solution.
3151
3152 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3153
3154 * config/romp/xm-rtbsd.h: Delete file.
3155 * config/romp/rtbsd.mh: Delete file.
3156
3157 2002-06-18 Keith Seitz <keiths@redhat.com>
3158
3159 * breakpoint.c (condition_command): Post breakpoint_modify
3160 when a condition is added to an existing breakpoint.
3161 (commands_command): Likewise for commands.
3162 (set_ignore_count): Likewise for ignore counts.
3163 If no tty, do not simply return, still need to send event
3164 notification.
3165 (ignore_command): Only print a newline if the command came
3166 from a tty.
3167 Don't call breakpoints_changed, since this is now properly
3168 handled by set_ignore_count.
3169
3170 2002-06-18 Andrew Cagney <cagney@redhat.com>
3171
3172 * MAINTAINERS: Note that cris-elf target can be compiled with
3173 -Werror.
3174 * cris-tdep.c (cris_register_name): Make return type constant.
3175 (cris_breakpoint_from_pc): Ditto.
3176
3177 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3178
3179 * frame.h (struct frame_info): Change type of context to
3180 'struct context'.
3181
3182 2002-06-17 Andrew Cagney <cagney@redhat.com>
3183
3184 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3185 pointer.
3186 * gdbarch.h, gdbarch.c: Regenerate.
3187 * config/mips/tm-mips.h (mips_register_name): Update.
3188 * i386-tdep.h (i386_register_name): Update.
3189 * mips-tdep.c (mips_register_name): Update
3190 * alpha-tdep.c (alpha_register_name): Update.
3191 * arch-utils.c (legacy_register_name): Update.
3192 * arch-utils.h (legacy_register_name): Update.
3193 * avr-tdep.c (avr_register_name): Update.
3194 * ia64-tdep.c (ia64_register_name): Update.
3195 * i386-tdep.c (i386_register_name): Update.
3196 * sparc-tdep.c (sparc32_register_name): Update.
3197 (sparc64_register_name): Update.
3198 (sparclite_register_name): Update.
3199 (sparclet_register_name): Update.
3200 * sh-tdep.c (sh_generic_register_name): Update.
3201 (sh_sh_register_name): Update.
3202 (sh_sh3_register_name): Update.
3203 (sh_sh3e_register_name): Update.
3204 (sh_sh_dsp_register_name): Update.
3205 (sh_sh3_dsp_register_name): Update.
3206 (sh_sh4_register_name): Update.
3207 (sh_sh64_register_name): Update.
3208 * s390-tdep.c (s390_register_name): Update.
3209 * rs6000-tdep.c (rs6000_register_name): Update.
3210 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3211 (ns32k_register_name_32382): Update.
3212 * d10v-tdep.c (d10v_ts2_register_name): Update.
3213 (d10v_ts3_register_name): Update.
3214 * xstormy16-tdep.c (xstormy16_register_name): Update.
3215 * vax-tdep.c (vax_register_name): Update.
3216 * v850-tdep.c (v850_register_name): Update.
3217 * m68hc11-tdep.c (m68hc11_register_name): Update.
3218 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3219 (am33_register_name): Update.
3220
3221 2002-06-17 Grace Sainsbury <graces@redhat.com>
3222
3223 * m68k-tdep.c: Reindented.
3224
3225 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3226
3227 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3228 list of predefined types.
3229
3230 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3231
3232 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3233 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3234 REGISTER_CONVERT_TO_RAW): Remove defines.
3235 (i386_register_virtual_type, i386_register_convertible,
3236 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3237 Remove prototypes.
3238 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3239 macros mentioned above.
3240
3241 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3242 (i386lynx_saved_pc_after_call): Remove prototype.
3243 * i386ly-tdep.c: Include "i386-tdep.h".
3244 (i386lynx_saved_pc_after_call): Make static. Use
3245 read_memory_nobpt instead of read_memory. Use
3246 read_memory_unsigned_integer instead of read_memory_integer.
3247 (i386lynx_init_abi): New function.
3248 (i386lynx_coff_osabi_sniffer): New function.
3249 (_initialize_i386bsd_tdep): New function.
3250
3251 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3252 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3253 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3254 (i386_fix_call_dummy): Remove prototype.
3255 * i386-tdep.c (i386_call_dummy_words): New variable.
3256 (i386_gdbarch_init): Adjust for removal of the
3257 macros mentioned above.
3258
3259 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3260
3261 * command.h (add_setshow_auto_boolean_cmd): Replace
3262 add_set_auto_boolean_cmd.
3263 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3264 add_set_auto_boolean_cmd.
3265 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3266 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3267 mask-address'' command.
3268 (show_mask_address): Add cmd parameter.
3269 * remote.c (add_packet_config_cmd): Update. Change type of
3270 set_func and show_func to cmd_sfunc_ftype.
3271 (_initialize_remote): Update `set remote Z-packet'
3272 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3273 (show_remote_protocol_e_packet_cmd): Ditto.
3274 (show_remote_protocol_E_packet_cmd): Ditto.
3275 (show_remote_protocol_P_packet_cmd): Ditto.
3276 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3277 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3278 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3279 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3280 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3281 (show_remote_protocol_Z_packet_cmd): Ditto.
3282 (show_remote_protocol_binary_download_cmd): Ditto.
3283 (show_remote_cmd): Pass NULL to all of above.
3284
3285 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3286
3287 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3288 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3289 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3290 POP_FRAME): Remove defines.
3291 (i386_push_arguments, i386_store_struct_return,
3292 i386_extract_return_value, i386_store_return_value,
3293 i386_extract_struct_value_address, i386_push_dummy_frame,
3294 i386_pop_frame): Renove prototypes.
3295 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3296 macros mentioned above.
3297
3298 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3299
3300 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3301 add_set_boolean_cmd.
3302 (add_setshow_cmd): New function.
3303 * command.h (add_setshow_boolean_cmd): Replace
3304 add_set_boolean_cmd.
3305 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3306 and ``set rdiromatzero''.
3307 * maint.c (_initialize_maint_cmds): Update commented out code.
3308 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3309 * target.c (initialize_targets): Update `set
3310 trust-readonly-sections'.
3311 * remote.c (_initialize_remote): Update `set remotebreak'.
3312
3313 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3314
3315 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3316 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3317 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3318 fit into multi-arch framework.
3319 (i386_breakpoint_from_pc): New function.
3320 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3321 above.
3322
3323 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3324 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3325 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3326 (i386_frameless_function_invocation, i386_frame_num_args,
3327 i386_frame_init_saved_regs): Remove prototypes.
3328 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3329 macros mentioned above.
3330
3331 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3332
3333 * cli/cli-decode.c (set_cmd_cfunc): Update.
3334 (set_cmd_sfunc): Update.
3335 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3336 (set_cmd_sfunc, set_cmd_cfunc): Update.
3337 * cli/cli-decode.h: Update.
3338
3339 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3340
3341 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3342 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3343
3344 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3345
3346 * defs.h (auto_boolean): Declare enum.
3347 * command.h (cmd_auto_boolean): Delete enum.
3348 * mips-tdep.c (mask_address_var): Update.
3349 (mips_mask_address_p): Update.
3350 (show_mask_address): Update.
3351 * remote.c (struct packet_config): Update.
3352 (update_packet_config): Update.
3353 (show_packet_config_cmd): Update.
3354 (packet_ok): Update.
3355 (add_packet_config_cmd): Update.
3356 (_initialize_remote):
3357 * command.h: Update.
3358 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3359 (do_setshow_command): Update.
3360 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3361 * cli/cli-decode.h: Update.
3362
3363 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3364
3365 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3366 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3367 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3368 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3369 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3370 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3371
3372 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3373 list of DJGPP COFF targets.
3374
3375 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3376 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3377 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3378 (FP0_REGNUM): Remove define.
3379 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3380 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3381 (i386_register_virtual_size): Remove protoype.
3382 * i386-tdep.c (i386_register_virtual_size): Removed.
3383 (i386_extract_return_value, i386_store_return_value): Use
3384 FP0_REGNUM instead of NUM_FREGS to determine whether the
3385 floating-point registers are available.
3386 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3387 Adjust for removal of macros mentioned above.
3388
3389 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3390
3391 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3392 comments.
3393 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3394 Remove prototypes.
3395 (supply_gregset, fill_gregset): Remove use of register keyword and
3396 remove declaration for regmap. Use I386_NUM_GREGS instead of
3397 NUM_REGS and NUM_FREGS.
3398 (FPREGSET_FSAVE_OFFSET): Remove.
3399 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3400 NUM_FREGS to determine whether the floating-point registers are
3401 available.
3402
3403 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3404 gnu_store_registers): Replace usage of NUM_GREGS with
3405 I386_NUM_GREGS.
3406
3407 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3408 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3409 usage of NUM_GREGS with I386_NUM_GREGS.
3410
3411 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3412
3413 * i386bsd-nat.c: Include "i386-tdep.h".
3414 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3415 I386_NUM_GREGS.
3416
3417 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3418 and associated comment. They no longer make any sense, since we
3419 don't use this file anymore on Linux.
3420
3421 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3422 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3423 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3424 elements in these arrays.
3425 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3426 MAX_NUM_REGS.
3427
3428 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3429
3430 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3431 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3432
3433 2002-06-14 Andrew Cagney <cagney@redhat.com>
3434
3435 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3436 EXTRACT_RETURN_VALUE.
3437 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3438 EXTRACT_STRUCT_VALUE_ADDRESS.
3439 * gdbarch.h, gdbarch.c: Regenerate.
3440
3441 * values.c (value_being_returned): Handle
3442 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3443 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3444
3445 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3446 * arm-tdep.c (arm_gdbarch_init): Update.
3447 * avr-tdep.c (avr_gdbarch_init): Update.
3448 * cris-tdep.c (cris_gdbarch_init): Update.
3449 * d10v-tdep.c (d10v_gdbarch_init): Update.
3450 * ia64-tdep.c (ia64_gdbarch_init): Update.
3451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3452 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3453 * s390-tdep.c (s390_gdbarch_init): Update.
3454 * sh-tdep.c (sh_gdbarch_init): Update.
3455 * s390-tdep.c (s390_gdbarch_init): Update.
3456 * sparc-tdep.c (sparc_gdbarch_init): Update.
3457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3458 * v850-tdep.c (v850_gdbarch_init): Update.
3459 * vax-tdep.c (vax_gdbarch_init): Update.
3460 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3462
3463 * config/arc/tm-arc.h: Update.
3464 * config/d30v/tm-d30v.h: Update.
3465 * config/fr30/tm-fr30.h: Update.
3466 * config/h8300/tm-h8300.h: Update.
3467 * config/h8500/tm-h8500.h: Update.
3468 * config/i386/tm-i386.h: Update.
3469 * config/i386/tm-ptx.h: Update.
3470 * config/i386/tm-symmetry.h: Update.
3471 * config/i960/tm-i960.h: Update.
3472 * config/m32r/tm-m32r.h: Update.
3473 * config/m68k/tm-delta68.h: Update.
3474 * config/m68k/tm-linux.h: Update.
3475 * config/m68k/tm-m68k.h: Update.
3476 * config/m88k/tm-m88k.h: Update.
3477 * config/mcore/tm-mcore.h: Update.
3478 * config/mips/tm-mips.h: Update.
3479 * config/mn10200/tm-mn10200.h: Update.
3480 * config/pa/tm-hppa.h: Update.
3481 * config/pa/tm-hppa64.h: Update.
3482 * config/sparc/tm-sp64.h: Update.
3483 * config/sparc/tm-sparc.h: Update.
3484 * config/sparc/tm-sparclet.h: Update.
3485 * config/z8k/tm-z8k.h: Update.
3486
3487 2002-06-14 Andrew Cagney <cagney@redhat.com>
3488
3489 * Makefile.in (i386_linux_tdep_h): Define.
3490 (i386_tdep_h, i387_tdep_h): Define.
3491 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3492 $(i386_tdep_h) and $(i387_tdep_h).
3493 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3494
3495 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3496
3497 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3498 Already covered by the default.
3499
3500 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3501 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3502 (i386_gdbarch_init): Initialize long_double_format and long_double
3503 bit.
3504
3505 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3506 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3507 Move these to ...
3508 * config/i386/i386sol2.mh: ... here.
3509 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3510 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3511 (SIGCONTEXT_PC_OFFSET): Remove define.
3512 (IN_SIGTRAMP): Remove define.
3513 * i386-sol2-tdep.c: New file.
3514
3515 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3516 * config/i386/tm-i386nw.h: Removed.
3517
3518 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3519 USE_STRUCT_CONVENTION): Remove defines.
3520 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3521 (get_longjmp_target): Remove prototype.
3522 (IN_SIGTRAMP): Remove define.
3523 (i386bsd_in_sigtramp): Remove prototype.
3524 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3525 function. Update comment accordingly
3526 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3527 (FRAME_SAVED_PC): Remove define.
3528 (i386bsd_frame_saved_pc): Remove prototype.
3529 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3530 GET_LONGJMP_TARGET): Remove defines.
3531 (get_longjmp_target): Remove prototype.
3532 (IN_SIGTRAMP): Remove define.
3533 (i386bsd_in_sigtramp): Remove prototype.
3534 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3535 function. Update comment accordingly
3536 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3537 (FRAME_SAVED_PC): Remove define.
3538 (i386bsd_frame_saved_pc): Remove prototype.
3539 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3540 Remove prototype.
3541 (USE_STRUCT_CONVENTION): Remove prototype.
3542 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3543 declaration.
3544 (_initialize_i386bsd_nat): Revise logic to determine some
3545 constants at compile time when compiling a native GDB. Warn if
3546 things don't match up with what we expect.
3547 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3548 Remove variables.
3549 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3550 to use date stored in `struct gdbarch_tdep'.
3551 (i386bsd_sigcontext_offset): Remove varaible.
3552 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3553 stored in `struct gdbarch_tdep'.
3554 (i386bsd_frame_saved_pc): Make static.
3555 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3556 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3557 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3558 i386fbsd4_sc_pc_offset): New variables.
3559 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3560 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3561 functions.
3562 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3563 functions.
3564 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3565 Modify the value of i386fbsd_sigtramp_start and
3566 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3567 i386fbsd_sigtramp_end.
3568 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3569 function.
3570
3571 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3572 define to i386-linux-tdep.h.
3573 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3574 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3575 defines.
3576 (i386_linux_register_name, i386_linux_register_byte,
3577 i386_linux_register_raw_size): Remove prototypes.
3578 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3579 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3580 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3581 TARGET_WRITE_PC): Remove defines.
3582 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3583 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3584 i386_linux_write_pc): Remove prototypes.
3585 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3586 (get_longjmp_target): Remove prototype.
3587 * i386-linux-tdep.h: New file.
3588 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3589 * i386-linux-tdep.c: Include "i386-tdep.h" and
3590 "i386-linux-tdep.h".
3591 (i386_linux_register_name, i386_linux_register_byte,
3592 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3593 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3594 Make static.
3595 (i386_linux_init_abi): New function.
3596 (_initialize_i386_linux_tdep): New function.
3597
3598 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3599 (i386_saved_pc_after_call): Remove prototype.
3600 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3601 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3602 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3603 (i386_register_name, i386_stab_reg_to_regnum,
3604 i386_dwarf_reg_to_regnum): Remove prototypes.
3605 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3606 SIZEOF_SSE_REGS): Remove defines.
3607 (REGISTER_BYTES): Remove define.
3608 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3609 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3610 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3611 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3612 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3613 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3614 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3615 (get_longjmp_target): Remove prototype.
3616 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3617 (sigtramp_saved_pc): Remove define.
3618 (i386v4_sigtramp_saved_pc): Remove prototype.
3619 * config/i386/tm-go32.h (FRAME_CHAIN,
3620 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3621 (i386go32_frame_saved_pc): Remove prototype.
3622 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3623 (get_longjmp_target): Remove prototype.
3624 * i386-tdep.h: Include "osabi.h".
3625 (enum i386_abi): Removed.
3626 (enum struct_return): New enum.
3627 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3628 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3629 sc_pc_offset members.
3630 (i386_gdbarch_register_os_abi): Remove prototype.
3631 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3632 I386_SSE_NUM_REGS): New defines.
3633 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3634 I386_SSE_SIZEOF_REGS): New defines.
3635 (i386_register_name, i386_register_byte, i386_register_raw_size):
3636 New prototypes.
3637 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3638 (i386bsd_sigtramp_saved_pc): New prototype.
3639 * i386-tdep.c: Don't include "elf-bfd.h".
3640 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3641 i386_frame_chain, i386_saved_pc_after_call): Make static.
3642 (i386_frame_saved_pc): Rewrite to call architecture dependent
3643 function to deal with signal handlers. Make static.
3644 (i386go32_frame_saved_pc): Removed.
3645 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3646 Removed.
3647 (i386_get_longjmp_target): New function.
3648 (default_struct_convention, pcc_struct_convention,
3649 reg_struct_convention, valid_conventions, struct_convention): New
3650 variables.
3651 (i386_use_struct_convention): New function.
3652 (i386v4_sigtramp_saved_pc): Renamed to
3653 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3654 (i386_pc_in_sigtramp): New function.
3655 (i386_abi_names): Removed.
3656 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3657 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3658 Removed.
3659 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3660 i386_gdbarch_register_os_abi): Removed.
3661 (struct i386_abi_handler): Removed.
3662 (i386_abi_handler_list): Removed.
3663 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3664 functions.
3665 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3666 i386_nw_init_abi): New functions.
3667 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3668 Use set_gdbarch_xxx() calls instead of relying on macros for a
3669 number of calls.
3670 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3671 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3672 Register the various architecture variants defined in this file.
3673
3674 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3675
3676 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3677 (struct main_type): Remove arg_types member. Update comments for
3678 struct field.
3679 (TYPE_ARG_TYPES): Remove.
3680 (TYPE_FN_FIELD_ARGS): Update.
3681 (smash_to_method_type): Update prototype.
3682
3683 * c-typeprint.c (cp_type_print_method_args): Take method type
3684 instead of argument list. Use new argument layout. Simplify.
3685 (c_type_print_args): Use new argument layout. Simplify.
3686 (c_type_print_base): Update call to cp_type_print_method_args.
3687 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3688 argument; use die->type instead. Update call to
3689 smash_to_method_type.
3690 (read_structure_scope): Update call to dwarf2_add_member_fn.
3691 * gdbtypes.c (allocate_stub_method): Update comment.
3692 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3693 Use new argument layout.
3694 (check_stub_method): Use new argument layout. Don't count
3695 void as an argument.
3696 (print_arg_types): Update comments. Use new argument layout.
3697 (recursive_dump_type): Don't print arg_types member.
3698 * hpread.c (hpread_read_struct_type): Use new argument layout.
3699 (fixup_class_method_type): Likewise.
3700 (hpread_type_lookup): Likewise.
3701 * stabsread.c (read_type): Update calls to read_args and
3702 smash_to_method_type.
3703 (read_args): Use new argument layout. Simplify.
3704 * valops.c (typecmp): Use new argument layout. Update parameters
3705 and comments. Simplify.
3706 (hand_function_call): Use new argument layout.
3707 (search_struct_method): Update call to typecmp.
3708 (find_overload_match): Use new argument layout.
3709
3710 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3711
3712 * NEWS: Mention multithreaded debug support for gdbserver.
3713
3714 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3715
3716 * MAINTAINERS: Mention NEWS.
3717
3718 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3719
3720 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3721 (struct mips_objfile_private, compare_pdr_entries): New.
3722 (non_heuristic_proc_desc): Read the ".pdr" section if it
3723 is present.
3724
3725 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3726
3727 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3728 (arm_debug): New static variable.
3729 (_initialize_arm_tdep): Add ``set debug arm'' command.
3730
3731 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3732
3733 * Makefile.in (sim_arm_h): Define.
3734 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3735 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3736 (arm_register_sim_regno): New function, map an internal REGNUM
3737 onto a simulator register number.
3738 (arm_gdbarch_init): Set register_sim_regno.
3739
3740 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3741
3742 * MAINTAINERS: Add self.
3743
3744 2002-06-11 Jim Blandy <jimb@redhat.com>
3745
3746 * source.c (source_info): Mention whether the symtab has
3747 information about preprocessor macros.
3748
3749 Call the command `info macro', not `show macro'.
3750 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3751 Fix error message.
3752 (_initialize_macrocmd): Register `info_macro_command' in
3753 `infolist', not `showlist'.
3754
3755 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3756
3757 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3758 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3759 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3760 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3761 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3762 unconditionally.
3763 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3764 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3765 (_initialize_mips_tdep): Remove dead code.
3766 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3767 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3768 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3769 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3770 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3771 MIPS_LAST_FP_ARG_REGNUM): Remove.
3772
3773 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3774
3775 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3776 (unwind_tmp_obstack_free, parse_frame_info)
3777 (update_context, cfi_read_fp, cfi_write_fp)
3778 (cfi_frame_chain, cfi_init_extra_frame_info)
3779 (cfi_virtual_frame_pointer): Use the above function.
3780 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3781
3782 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3783
3784 * v850-tdep.c (v850_type_is_scalar): New function.
3785 (v850_use_struct_convention): Match current gcc implementation
3786 as close as possible.
3787 (v850_push_arguments): Fix stack_offset handling. Don't write
3788 struct_addr into register. This is done by v850_store_struct_return.
3789 (v850_extract_return_value): Care for structs.
3790 (v850_store_return_value): Ditto.
3791 (v850_store_struct_return): Actually write address.
3792
3793 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3794
3795 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3796 without debug information too.
3797
3798 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3799
3800 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3801 Make multi-arch pure.
3802 * gdbarch.h, gdbarch.c: Re-generate.
3803 * arm-tdep.c (arm_print_float_info): Update.
3804 * arch-utils.h (default_print_float_info): Update.
3805 * arch-utils.c (default_print_float_info): Update.
3806 * infcmd.c (float_info): Update call.
3807
3808 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3809
3810 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3811 the front of the initialize list.
3812
3813 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3814
3815 * infrun.c (struct inferior_status): Replace fields
3816 selected_frame_address and selected_level with field
3817 selected_frame_id.
3818 (save_inferior_status): Update. Use get_frame_id.
3819 (struct restore_selected_frame_args): Delete.
3820 (restore_selected_frame): Update. Use frame_find_by_id.
3821 (restore_inferior_status): Update.
3822
3823 * breakpoint.h (struct breakpoint): Change type of
3824 watchpoint_frame to frame_id.
3825 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3826 call to get_current_frame.
3827 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3828 get_current_frame.
3829 (watchpoint_check): Use frame_find_by_id.
3830
3831 * frame.h (record_selected_frame): Delete declaration.
3832 * stack.c (record_selected_frame): Delete function.
3833
3834 * frame.h (struct frame_id): Define.
3835 (get_frame_id): Declare.
3836 (frame_find_by_id): Declare.
3837 * frame.c (frame_find_by_id): New function.
3838 (get_frame_id): New function.
3839
3840 2002-06-10 Andrey Volkov <avolkov@transas.com>
3841
3842 * ser-e7kpc.c: Fix duplicated define and call of
3843 _initialize_ser_e7000pc
3844
3845 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3846
3847 * signals/signals.c (target_signal_from_host): Fix #ifdef
3848 SIGRTMIN case.
3849 (do_target_signal_to_host): Likewise.
3850
3851 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3852
3853 * mips-tdep.c (mips_find_abi_section): New function.
3854 (mips_gdbarch_init): Call it.
3855
3856 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3857
3858 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3859 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3860 after Andrew's 2002-06-08 gdbarch change.
3861
3862 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3863
3864 * i386-linux-nat.c (suppy_gregset): Don't supply
3865 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3866 register cache.
3867 (fill_gregset): Don't fetch it under the same circumstances.
3868
3869 2002-06-09 Andrew Cagney <cagney@redhat.com>
3870
3871 * Makefile.in (callback_h): Define.
3872 (remote_sim_h): Update path to remote-sim.h.
3873 (remote-rdp.o): Add $(callback_h).
3874 (remote-sim.o): Use $(callback_h).
3875 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3876 * remote-rdp.c: Include "gdb/callback.h".
3877
3878 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3879
3880 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3881 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3882
3883 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3884
3885 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3886 * rdi-share/serpardr.c: Ditto.
3887 * rdi-share/unixcomm.c: Ditto.
3888 * rdi-share/serdrv.c: Ditto.
3889 * rdi-share/hostchan.h: Ditto.
3890 * rdi-share/hostchan.c: Ditto.
3891 * rdi-share/host.h: Ditto.
3892 * rdi-share/devsw.c: Ditto.
3893
3894 * objfiles.h: Change type of obj_private to void pointer.
3895 * pa64solib.c: Update copyright. Don't include "assert.h", use
3896 strcmp instead of STREQ, use LONGEST, do not use PTR
3897 * somsolib.c: Ditto.
3898
3899 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3900 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3901 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3902
3903 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3904
3905 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3906 (default_get_saved_register): Delete function.
3907 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3908 generic_unwind_get_saved_register.
3909 * gdbarch.h, gdbarch.c: Re-generate.
3910
3911 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3912
3913 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3914 generic_func_frame_chain_valid.
3915 * gdbarch.h, gdbarch.c: Re-generate.
3916 * blockframe.c (generic_func_frame_chain_valid): Only check
3917 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3918 passing FP to PC_IN_CALL_DUMMY.
3919 Fix PR gdb/360.
3920
3921 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3922
3923 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3924 (register_gdbarch_data): Initialize init_p.
3925 (gdbarch_data): Initialize data pointer using the init function.
3926 (init_gdbarch_data): Delete function.
3927 (gdbarch_update_p): Update.
3928 (initialize_non_multiarch): Update.
3929 (struct gdbarch): Add field initialized_p.
3930 * gdbarch.h, gdbarch.c: Re-generate.
3931
3932 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3933
3934 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3935 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3936 better do the things actually here.
3937 * x86-64-tdep.c (x86_64_register_name2nr): New.
3938 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3939 (x86_64_gdbarch_init): Respect the above change.
3940 * x86-64-tdep.h (x86_64_register_name2nr)
3941 (x86_64_register_nr2name): Add prototypes.
3942 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3943
3944 2002-06-06 Michael Snyder <msnyder@redhat.com>
3945
3946 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3947 Delete extra braces and re-indent.
3948 (d10v_store_return_value): Char return values
3949 must be shifted over by one byte in R0.
3950 (d10v_extract_return_value): Delete extra braces, re-indent.
3951
3952 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3953
3954 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3955 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3956 (d10v_integer_to_address): Rewrite.
3957 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3958 the d10v specific functions which take care of converting to the
3959 correct space.
3960
3961 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3962
3963 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3964 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3965
3966 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3967
3968 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3969 includes.
3970 * config/tm-linux.h: Ditto.
3971 * config/alpha/tm-alphalinux.h: Ditto.
3972 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3973 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3974 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3975 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3976 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3977 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3978 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3979 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3980 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3981 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3982 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3983 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3984 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3985 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3986 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3987 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3988 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3989 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3990 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3991 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3992 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3993 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3994 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3995 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3996 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3997 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3998 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3999 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4000 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4001 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4002 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4003 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4004 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4005 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4006 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4007 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4008 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4009
4010 2002-05-04 Aidan Skinner <aidan@velvet.net>
4011
4012 * ada-exp.tab.c: New file
4013 * ada-exp.y: New file
4014 * ada-lang.c: New file
4015 * ada-lang.h: New file
4016 * ada-lex.c: New file
4017 * ada-lex.l: New file
4018 * ada-tasks.c: New file
4019 * ada-typeprint.c: New file
4020 * ada-valprint.c: New file
4021
4022 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4023
4024 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4025 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4026
4027 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4028
4029 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4030 insetead of ppc-linux-tdep.o.
4031 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4032 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4033
4034 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4035
4036 2002-05-07 Christian Groessler <chris@groessler.org>
4037 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4038 bit register contents for little endian hosts.
4039
4040 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4041
4042 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4043 any maintainer.
4044
4045 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4046
4047 * gdbarch.h: Regenerate.
4048
4049 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4050
4051 * MAINTAINERS: Add everyone to write-after-approval list.
4052
4053 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4054
4055 * stack.c (frame_info): Use frame_register_unwind instead of
4056 saved_regs. Mention when the SP is on the stack or in a register.
4057
4058 * frame.h (frame_register_unwind_ftype): Define. Document.
4059 (struct frame_info): Add field register_unwind and
4060 register_unwind_cache.
4061 (frame_register_unwind): Declare.
4062 (generic_unwind_get_saved_register): Declare.
4063
4064 * frame.c (frame_register_unwind): New function.
4065 (generic_unwind_get_saved_register): New function.
4066
4067 * blockframe.c (generic_call_dummy_register_unwind): New function.
4068 (frame_saved_regs_register_unwind): New function.
4069 (set_unwind_by_pc): New function.
4070 (create_new_frame): New function.
4071 (get_prev_frame): New function.
4072
4073 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4074
4075 * a29k-share/: Delete directory.
4076 * remote-vx29k.c: Delete file.
4077
4078 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4079
4080 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4081 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4082
4083 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4084
4085 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4086 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4087 (sparc64nbsd-nat.o)
4088 (sparcnbsd-nat.o)
4089 (sparcnbsd-tdep.o): New dependency lists.
4090 * NEWS: Note new UltraSPARC NetBSD native configuration.
4091 * configure.host (sparc64-*-netbsd*): New host.
4092 * configure.tgt (sparc-*-netbsdelf*)
4093 (sparc-*-netbsd*): Set gdb_target to nbsd.
4094 (sparc64-*-netbsd*): New target.
4095 * sparc64nbsd-nat.c: New file.
4096 * sparcnbsd-nat.c: New file.
4097 * sparcnbsd-tdep.c: New file.
4098 * sparcnbsd-tdep.h: New file.
4099 * config/sparc/nbsd.mt: New file.
4100 * config/sparc/nbsd64.mh: New file.
4101 * config/sparc/nbsd64.mt: New file.
4102 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4103 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4104 (HOST_IPC): Remove.
4105 * config/sparc/nbsdaout.mt: Remove.
4106 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4107 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4108 (HOST_IPC): Remove.
4109 * config/sparc/nbsdelf.mt: Remove.
4110 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4111 sparc-nat.c compatiblity defines.
4112 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4113 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4114 * config/sparc/tm-nbsd64.h: New file.
4115 * config/sparc/tm-nbsdaout.h: Remove.
4116 * config/sparc/xm-nbsd.h: Remove.
4117
4118 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4119
4120 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4121 * sparc-tdep.c: Include osabi.h.
4122 (gdbarch_tdep): Add osabi member.
4123 (_initialize_sparc_tdep): Use gdbarch_register.
4124 (sparc_gdbarch_init): Use generic OS ABI framework.
4125 (sparc_dump_tdep): New function.
4126
4127 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4128
4129 * corefile.c (do_captured_read_memory_integer): Return non-zero
4130 result.
4131 (safe_read_memory_integer): Copy result of memory read when
4132 status is non-zero. Also, add comments.
4133
4134 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4135
4136 * Makefile.in (ppc_tdep_h): Define.
4137 (ppc-linux-nat.o)
4138 (ppc-linux-tdep.o)
4139 (rs6000-tdep.o): Use $(ppc_tdep_h).
4140 (ppc-sysv-tdep.o)
4141 (ppcnbsd-nat.o)
4142 (ppcnbsd-tdep.o): New dependency lists.
4143 * ppc-tdep.h: Use generic OS ABI framework.
4144 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4145 (ppc_linux_init_abi): New functions.
4146 (ppc_sysv_abi_broken_use_struct_convention)
4147 (ppc_sysv_abi_use_struct_convention)
4148 (ppc_sysv_abi_push_arguments): Move to...
4149 * ppc-sysv-tdep.c: ...here.
4150 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4151 * rs6000-tdep.c (process_note_abi_tag_sections)
4152 (get_elfosabi): Remove.
4153 (rs6000_gdbarch_init): Use generic OS ABI framework.
4154 (rs6000_dump_tdep): New function.
4155 (_initialize_rs6000_tdep): Use gdbarch_register.
4156 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4157 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4158 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4159 of ppc-linux-tdep.o.
4160 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4161 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4162 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4163 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4164 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4165 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4166
4167 2002-05-29 Jim Blandy <jimb@redhat.com>
4168
4169 * macroscope.c (default_macro_scope): Put `void' in empty argument
4170 list.
4171
4172 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4173
4174 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4175 * arch-utils.c: Include "sim-regno.h".
4176 * gdbarch.sh: Don't include "sim-regno.h".
4177 * gdbarch.h, gdbarch.c: Regenerate.
4178 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4179 here.
4180 * arch-utils.h (legacy_register_sim_regno): To here.
4181 * remote-sim.c (legacy_register_sim_regno): Move function from
4182 here.
4183 * arch-utils.c (legacy_register_sim_regno): To here.
4184
4185 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4186
4187 * sim-regno.h: New file.
4188 * Makefile.in (sim_regno_h): Define.
4189 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4190 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4191 (legacy_register_sim_regno): New function.
4192 (one2one_register_sim_regno): New function.
4193 (gdbsim_fetch_register): Rewrite.
4194 (gdbsim_store_register): Only store a register when
4195 REGISTER_SIM_REGNO is valid.
4196 * d10v-tdep.c: Include "sim-regno.h".
4197 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4198 (d10v_ts3_register_sim_regno): Ditto.
4199 * gdbarch.sh: Include "sim-regno.h".
4200 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4201 * gdbarch.h, gdbarch.c: Regenerate.
4202 * arch-utils.h (default_register_sim_regno): Delete declaration.
4203 * arch-utils.c (default_register_sim_regno): Delete function.
4204
4205 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4206
4207 * ppcnbsd-nat.c: Rewrite.
4208 * ppcnbsd-tdep.c: New file.
4209 * ppcnbsd-tdep.h: New file.
4210 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4211 solib.o, and solib-svr4.o.
4212 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4213 nbsd-tdep.o, and corelow.o.
4214
4215 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4216
4217 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4218 `tr' and `sed'. Mention that `broken' targets are not expected to
4219 build.
4220
4221 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4222
4223 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4224 Let PC point right after the prologue before looking up symbols.
4225
4226 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4227
4228 * i386-tdep.c (i386_register_virtual_type): Return
4229 builtin_type_vec128i for SSE registers.
4230
4231 * gdbtypes.h (builtin_type_vec128i): Declare.
4232
4233 * gdbtypes.c (build_builtin_type_vec128i): New function.
4234 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4235 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4236 (build_gdbtypes): Initialize new builtin vector types.
4237 (_initialize_gdbtypes): Register new vector types with gdbarch.
4238
4239 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4240
4241 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4242 since it has been multi-arch'd.
4243 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4244 Move Alpha and VAX multi-arch news entries to same section
4245 as other multi-arch news.
4246
4247 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4248
4249 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4250 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4251 static. Rename some register numbers to put them in ns32k-tdep
4252 private namespace.
4253 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4254 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4255 functions.
4256 (_initialize_ns32k_tdep): Use gdbarch_register.
4257 * ns32k-tdep.h: New file.
4258 * ns32knbsd-tdep.c: New file.
4259 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4260 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4261 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4262 REGISTER_BYTES, REGISTER_BYTE): Remove.
4263 * config/ns32k/tm-ns32k.h: New file.
4264 * config/ns32k/tm-umax.h: Remove.
4265
4266 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4267
4268 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4269 ns32k_store_struct_return, ns32k_extract_return_value,
4270 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4271 functions.
4272 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4273 ns32k_saved_pc_after_call.
4274 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4275 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4276 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4277 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4278 ns32k_extract_struct_value_address.
4279
4280 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4281
4282 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4283 ns32k_fix_call_dummy): New.
4284 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4285 ns32k_call_dummy_words.
4286 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4287 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4288 CALL_DUMMY_NARGS): Remove.
4289 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4290
4291 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4292
4293 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4294 ns32k_frame_saved_pc, ns32k_frame_args_address,
4295 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4296 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4297 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4298 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4299 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4300 (BREAKPOINT): Remove..
4301 (FRAME_CHAIN): Define as ns32k_frame_chain.
4302 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4303 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4304 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4305 (FRAME_FIND_SAVED_REGS): Remove.
4306 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4307 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4308 (POP_FRAME): Define as ns32k_pop_frame.
4309
4310 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4311
4312 * ns32k-tdep.c (ns32k_register_byte_32082,
4313 ns32k_register_byte_32382, ns32k_register_raw_size,
4314 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4315 functions.
4316 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4317 ns32k_register_byte_32382.
4318 * config/ns32k/tm-umax.h: Update copyright years.
4319 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4320 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4321 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4322 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4323 (ns32k_get_enter_addr): Fix prototype.
4324
4325 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4326
4327 * ns32k-tdep.c: Update copyright years.
4328 (ns32k_register_name_32082): New function.
4329 (ns32k_register_name_32382): Ditto.
4330 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4331 (REGISTER_NAME): Define as ns32k_register_name_32382.
4332 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4333 (REGISTER_NAME): Define as ns32k_register_name_32082.
4334
4335 2002-05-24 Jim Blandy <jimb@redhat.com>
4336
4337 * dwarf2read.c (free_line_header): Use xfree, not free.
4338
4339 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4340
4341 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4342 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4343
4344 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4345
4346 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4347
4348 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4349
4350 From Ross Alexander at NEC Europe:
4351 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4352
4353 2002-05-23 Michael Snyder <msnyder@redhat.com>
4354
4355 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4356 for input, rather than parse_and_eval_address.
4357
4358 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4359
4360 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4361 * Makefile.in (sim_d10v_h): Update definition.
4362
4363 2002-05-24 Andrew Cagney <cagney@redhat.com>
4364
4365 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4366 change `2002-05-22 Michael Snyder' below.
4367 (d10v_push_arguments): Ditto.
4368 (d10v_extract_return_value): Ditto.
4369
4370 2002-05-23 Jim Blandy <jimb@redhat.com>
4371
4372 * macrotab.c (check_for_redefinition): Don't complain if the new
4373 definition is the same as the previous one. Take more arguments
4374 to allow the comparison.
4375 (macro_define_object, macro_define_function): Pass more arguments
4376 to check_for_redefinition.
4377
4378 2002-05-22 Michael Snyder <msnyder@redhat.com>
4379
4380 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4381 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4382 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4383 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4384 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4385 Add a temp variable to save a call (and a memory read).
4386 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4387 if possible (so that PC_IN_CALL_DUMMY will work).
4388
4389 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4390
4391 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4392
4393 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4394
4395 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4396 fde->cie_ptr.
4397 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4398 (dwarf2_build_frame_info): Add offset to fde->initial_location
4399 so that frames of shared libraries are mapped correctly.
4400 (execute_stack_op): Change type of 'result' from ULONGEST to
4401 CORE_ADDR.
4402
4403 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4404
4405 * config/alpha/tm-nbsd.h: Include solib.h.
4406
4407 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4408
4409 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4410 assumptions about the host's byte order.
4411
4412 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4413
4414 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4415 to dependency list.
4416 * alphanbsd-tdep.c: Include solib-svr4.h.
4417 * shnbsd-tdep.c: Ditto.
4418
4419 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4420
4421 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4422 nbsd-tdep.h to dependency list.
4423 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4424 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4425 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4426 nbsdaout.mh and nbsdelf.mh consistently.
4427 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4428 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4429 nbsdaout.mt and nbsdelf.mh consistently.
4430 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4431 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4432 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4433 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4434 a.out shared library stuff from here...
4435 * config/nm-nbsdaout.h: ...to here.
4436 * config/tm-nbsd.h: Remove.
4437 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4438 * config/arm/nbsd.mh: Remove.
4439 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4440 nbsd-tdep.o.
4441 * config/arm/nbsdaout.mh: New file.
4442 * config/arm/nbsdelf.mh: New file.
4443 * config/arm/nm-nbsdaout.h: New file.
4444 * config/i386/nbsd.mh: Remove.
4445 * config/i386/nbsd.mt: Remove.
4446 * config/i386/nbsdaout.mh: New file.
4447 * config/i386/nbsdaout.mt: New file.
4448 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4449 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4450 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4451 i386_register_u_addr): Remove.
4452 * config/i386/nm-nbsdaout.h: New file.
4453 * config/i386/nm-nbsdelf.h: Remove.
4454 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4455 (USE_STRUCT_CONVENTION): Remove.
4456 * config/i386/tm-nbsdaout.h: New file.
4457 * config/i386/tm-nbsdelf.h: Remove.
4458 * config/m68k/nbsd.mh: Remove.
4459 * config/m68k/nbsd.mt: Remove.
4460 * config/m68k/nbsdaout.mh: New file.
4461 * config/m68k/nbsdaout.mt: New file.
4462 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4463 * config/m68k/nm-nbsdaout.h: New file.
4464 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4465 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4466 * config/ns32k/nbsd.mh: Remove.
4467 * config/ns32k/nbsd.mt: Remove.
4468 * config/ns32k/nbsdaout.mh: New file.
4469 * config/ns32k/nbsdaout.mt: New file.
4470 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4471 * config/ns32k/nm-nbsdaout.h: New file.
4472 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4473 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4474 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4475 (SVR4_SHARED_LIBS): Remove.
4476 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4477 * config/sparc/nbsd.mh: Remove.
4478 * config/sparc/nbsd.mt: Remove.
4479 * config/sparc/nbsdaout.mh: New file.
4480 * config/sparc/nbsdaout.mt: New file.
4481 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4482 * config/sparc/nbsdelf.mt: New file.
4483 * config/sparc/nm-nbsdaout.h: New file.
4484 * config/sparc/nm-nbsdelf.h: Remove.
4485 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4486 * config/sparc/tm-nbsdaout.h: New file.
4487
4488 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4489
4490 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4491 mipsnbsd-tdep.c
4492 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4493
4494 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4495
4496 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4497 shnbsd-nat.c.
4498 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4499
4500 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4501
4502 * NEWS: Note new MIPS NetBSD native configuration.
4503 * configure.host (mips*-*-netbsd*): New host.
4504 * configure.tgt (mips*-*-netbsd*): New target.
4505 * mipsnbsd-nat.c: New file.
4506 * mipsnbsd-tdep.c: New file.
4507 * mipsnbsd-tdep.h: New file.
4508 * config/mips/nbsd.mh: New file.
4509 * config/mips/nbsd.mt: New file.
4510 * config/mips/nm-nbsd.h: New file.
4511 * config/mips/tm-nbsd.h: New file.
4512
4513 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4514
4515 * Makefile.in (SFILES): Add osabi.c.
4516 (COMMON_OBS): Add osabi.o.
4517 (osabi.o): New dependency list.
4518 * osabi.c: New file.
4519 * osabi.h: New file.
4520 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4521
4522 * Makefile.in (alpha_tdep_h): Define and use instead of
4523 alpha-tdep.h.
4524 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4525 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4526 Remove.
4527 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4528 * alpha-tdep.h: Include osabi.h.
4529 (alpha_abi): Remove.
4530 (gdbarch_tdep): Use generic OS ABI framework.
4531 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4532 gdbarch_register_osabi.
4533 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4534 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4535 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4536
4537 * Makefile.in (sh_tdep_h): Add osabi.h.
4538 * sh-tdep.h (sh_osabi): Remove.
4539 (gdbarch_tdep): Use generic OS ABI framework.
4540 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4541 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4542 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4543 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4544
4545 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4546 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4547 gdbarch_register_osabi.
4548 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4549 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4550 (get_elfosabi): Rename to...
4551 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4552 ABI framework support routines.
4553 (arm_gdbarch_init): Use generic OS ABI framework.
4554 (arm_dump_tdep): Likewise.
4555 (_initialize_arm_tdep): Likewise.
4556 * arm-tdep.h: Include osabi.h.
4557 (arm_abi): Remove.
4558 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4559 osabi member.
4560 (arm_gdbarch_register_os_abi): Remove prototype.
4561 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4562 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4563
4564 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4565 * mips-tdep.c: Include osabi.h.
4566 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4567 OS ABI framework.
4568
4569 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4570
4571 * h8300-tdep.c: Fix formatting.
4572
4573 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4574
4575 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4576 printing vector registers.
4577
4578 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4579
4580 From Fernando Nasser:
4581 * remote.c (remote_async_open_1): Re-throw the exception when the
4582 connection fails.
4583 (remote_cisco_open): Ditto.
4584 (remote_open_1): Ditto.
4585
4586 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4587
4588 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4589 (remote_start_remote): Add uiout parameter. Pass through to
4590 remote_start_remote_dummy.
4591 (remote_open_1): Use catch_exception instead of catch_errors.
4592 (remote_async_open_1): Ditto.
4593 (remote_cisco_open): Ditto.
4594
4595 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4596
4597 * remote.c (remote_start_remote): Replace PTR with void pointer.
4598 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4599 static.
4600
4601 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4602
4603 * gdb_indent.sh: Allow the script to be run in the sim directory.
4604
4605 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4606
4607 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4608 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4609
4610 * corelow.c (core_open): Only call set_gdbarch_from_file if
4611 exec_bfd is NULL.
4612
4613 2002-05-17 Andrey Volkov <avolkov@transas.com>
4614
4615 * h8300-tdep.c: Add support of EXR register
4616 * config/h8300/tm-h8300.h: Ditto.
4617
4618 2002-05-17 Andrey Volkov <avolkov@transas.com>
4619
4620 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4621
4622 2002-05-17 Andrey Volkov <avolkov@transas.com>
4623
4624 * h8300-tdep.c: Change literal regnums to REGNO.
4625
4626 2002-05-17 Jim Blandy <jimb@redhat.com>
4627
4628 * NEWS: Note addition of macro support.
4629
4630 Expand preprocessor macros in C expressions.
4631 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4632 (scan_macro_expansion, scanning_macro_expansion,
4633 finished_macro_expansion): New function declarations.
4634 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4635 variable declarations.
4636 * parser-defs.h (expression_context_pc): New declaration.
4637 * parse.c (expression_context_pc): New variable.
4638 (parse_exp_1): Set expression_context_pc, as well as
4639 expression_context_block.
4640 * c-exp.y (yylex): If we're not already reading the result of a
4641 macro expansion, try to macro-expand the next token. When we're
4642 done scanning a macro expansion, switch back to the mainline text.
4643 Commas and `if's in a macro's expansion don't terminate the input.
4644 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4645 (macro_original_text, macro_expanded_text,
4646 expression_macro_lookup_func, expression_macro_lookup_baton): New
4647 variables.
4648 (scan_macro_expansion, scanning_macro_expansion,
4649 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4650 c_preprocess_and_parse): New functions.
4651 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4652 c_preprocess_and_parse, instead of c_parse.
4653 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4654 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4655
4656 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4657
4658 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4659 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4660 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4661
4662 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4663
4664 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4665
4666 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4667
4668 * Makefile.in (sh_tdep_h): Define and use.
4669 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4670 register enum): Move to...
4671 * * sh-tdep.h: ...here.
4672 * sh-tdep.c: Include sh-tdep.h.
4673 * sh3-rom.c: Likewise.
4674 * shnbsd-tdep.c: Likewise.
4675
4676 2002-05-16 Michael Snyder <msnyder@redhat.com>
4677
4678 * arm-tdep.c: Spelling fix in comment.
4679
4680 2002-05-16 Jim Blandy <jimb@redhat.com>
4681
4682 Add commands for manually expanding macros and showing their
4683 definitions.
4684 * macrocmd.c, macroscope.c, macroscope.h: New files.
4685 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4686 (macroscope_h): New variable.
4687 (HFILES_NO_SRCDIR): Add macroscope.h.
4688 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4689 (macroscope.o, macrocmd.o): New rules.
4690
4691 Teach the Dwarf 2 reader to read macro information.
4692 * dwarf2read.c: #include "macrotab.h".
4693 (dwarf_macinfo_buffer): New variable.
4694 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4695 dwarf_macinfo_size.
4696 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4697 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4698 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4699 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4700 dwarf2_macro_spaces_in_definition): New complaints.
4701 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4702 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4703 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4704 the partial symbol table.
4705 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4706 from what's recorded in the partial symbol table.
4707 (read_file_scope): If the compilation unit has a
4708 `DW_AT_macro_info' attribute, read its macro information.
4709 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4710
4711 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4712
4713 Fix PR gdb/546
4714 * ser-tcp.c: Don't include <netinet/udp.h>.
4715
4716 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4717
4718 * MAINTAINERS: Update my email address.
4719
4720 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4721
4722 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4723 include file of the same name.
4724
4725 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4726
4727 * configure.tgt: Mark v850 as multi-arched.
4728 * config/v850/tm-v850.h: Remove file.
4729 * config/v850/v850.mt: Eliminate TM_FILE.
4730
4731 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4732
4733 * v850-tdep.c: Full multi-arch.
4734 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4735 Define GDB_MULTI_ARCH to 2.
4736
4737 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4738
4739 * p-exp.y (current_type): New static variable.
4740 Carries the type of the expression at the position that is parsed.
4741 (push_current_type, pop_current_type): Two new functions. Used
4742 to store/restore current_type in expression on specific tokens.
4743 (search_field): New static variable. Set to one after parsing a point
4744 as at that point only a FIELDNAME token should be searched.
4745 (FIELDNAME): New token. After a point only a token belonging to
4746 current_type type definition is allowed.
4747 (all over token rules): reset and change current_type according
4748 to rules.
4749 (exp '[' rule): insert implicit array index field if
4750 exp is a pascal string type.
4751
4752 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4753
4754 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4755 frame info. Use frame_info's saved_regs instead of matching member
4756 in extra_frame_info throughout.
4757 (v850_frame_init_saved_regs): New function.
4758 (v850_init_extra_frame_info): Move most functionality into
4759 v850_frame_init_saved_regs().
4760 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4761 (v850_frame_find_saved_regs): Remove declaration.
4762 (FRAME_FIND_SAVED_REGS): Remove definition.
4763 (v850_frame_init_saved_regs): Add declaration.
4764 (FRAME_INIT_SAVED_REGS): Add definition.
4765
4766 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4767
4768 * v850-tdep.c: Begin multi-arch'ing v850.
4769 (v850_target_architecture_hook): Remove function.
4770 (v850_gdbarch_init): New function. Add code previously in
4771 v850_target_architecture_hook().
4772 (_initialize_v850_tdep): Don't set target_architecture_hook.
4773 Call register_gdbarch_init() instead.
4774
4775 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4776
4777 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4778 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4779 (fixup_class_method_type): Likewise.
4780
4781 2002-05-15 Jim Blandy <jimb@redhat.com>
4782
4783 Add macro structures to GDB's symbol tables. Nobody puts anything
4784 in them yet.
4785 * symtab.h (struct symtab): New member: `macro_table'.
4786 * buildsym.h (pending_macros): New global variable.
4787 * buildsym.c: #include "macrotab.h".
4788 (buildsym_init): Initialize `pending_macros'.
4789 (end_symtab): If we found macro information while reading a CU's
4790 debugging info, do build a symtab structure for it. Make the
4791 symtab point to the macro information, and clear the
4792 `pending_macros' pointer which held it while we were reading the
4793 debug info.
4794 (really_free_pendings): Free any pending macro table.
4795 * objfiles.h (struct objfile): New member: `macro_cache'.
4796 * objfiles.c (allocate_objfile): Set allocate and free functions
4797 for the macro cache's objstack.
4798 (free_objfile): Empty the macro cache's obstack.
4799 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4800 set new allocate and free functions for it.
4801 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4802 free functions for the macro cache's objstack. (Why is this
4803 function building its own objfile?)
4804 * symmisc.c (print_objfile_statistics): Print statistics on the
4805 macro bcache.
4806 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4807
4808 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4809
4810 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4811 (REGISTER_U_ADDR): Delete definition.
4812 (arm_register_u_addr): Delete declaration.
4813
4814 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4815
4816 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4817 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4818
4819 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4820
4821 * regcache.c (register_valid): Revise comments refering to "Not
4822 available" and "unavailable".
4823 * frame.c (frame_register_read): Ditto.
4824 * findvar.c (value_of_register): Ditto.
4825
4826 2002-05-15 Andrew Cagney <cagney@redhat.com>
4827
4828 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4829 (remote-sim.o): Update dependencies.
4830 (d10v-tdep.o): Specify dependencies.
4831 (sim_d10v_h): Define.
4832
4833 2002-05-14 Jim Blandy <jimb@redhat.com>
4834
4835 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4836 * macrotab.c (macro_lookup_inclusion, find_definition,
4837 new_macro_table): Same.
4838
4839 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4840 not `! strcmp ()'. This is a dubious improvement.
4841 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4842
4843 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4844 although it's not necessary, to avoid a warning.
4845
4846 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4847
4848 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4849 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4850 TYPE_INSTANCE_FLAGS.
4851 (struct main_type): New.
4852 (struct type): Move most members to struct main_type. Change
4853 cv_type and as_type to new type_chain member. Add instance_flags.
4854 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4855 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4856 (finish_cv_type): Remove prototype.
4857 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4858 Set TYPE_CHAIN.
4859 (alloc_type_instance): New function.
4860 (smash_type): New function.
4861 (make_pointer_type, make_reference_type, make_function_type)
4862 (smash_to_member_type, smash_to_method_type): Call smash_type.
4863 (make_qualified_type): New function.
4864 (make_type_with_address_space): Call make_qualified_type.
4865 (make_cv_type): Likewise.
4866 (finish_cv_type): Remove unnecessary function.
4867 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4868 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4869 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4870 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4871 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4872 * hpread.c (hpread_read_struct_type): Likewise.
4873 * stabsread.c (read_struct_type): Likewise.
4874
4875 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4876
4877 * configure.tgt: Add a catch all sh* target, for cases like
4878 sh[2,3,4]-elf and sh-hms.
4879
4880 2002-05-14 Keith Seitz <keiths@redhat.com>
4881
4882 * event-loop.c (create_file_handler): Don't do anything but
4883 update data when we are given a fd which we are already
4884 monitoring.
4885
4886 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4887
4888 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4889 (update_context): Use __func__ in warnings.
4890
4891 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4892
4893 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4894 and tcp_close to net_open and net_close.
4895 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4896 using UDP if requested. Don't try to disable Nagle on UDP
4897 sockets.
4898 * remote.c (remote_serial_open): New function. Warn about UDP.
4899 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4900
4901 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4902
4903 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4904
4905 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4906
4907 * configure.tgt: Remove sh-hms target.
4908 * MAINTAINERS: Don't list sh-hms as a separate target.
4909
4910 2002-05-13 Jim Blandy <jimb@redhat.com>
4911
4912 Add first preprocessor macro-expansion files.
4913 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4914 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4915 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4916 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4917 (COMMON_OBS): Add macrotab.o, macroexp.o.
4918 (macroexp.o, macrotab.o): New rules.
4919
4920 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4921
4922 * config/m88k/tm-m88k.h: Update copyright.
4923 (m88k_target_write_pc): Declare
4924 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4925 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4926 (SHIFT_INST_REGS): Update definition.
4927 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4928 using old definition of TARGET_WRITE_PC.
4929 * regcache.c (generic_target_write_pc): Delete code handling
4930 NNPC_REGNUM.
4931 * gdbarch.sh (NNPC_REGNUM): Delete.
4932 * gdbarch.h, gdbarch.c: Regenerate.
4933
4934 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4935
4936 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4937 builtin reg number.
4938
4939 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4940
4941 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4942 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4943 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4944 access macros.
4945 * c-typeprint.c (cp_type_print_method_args): Likewise.
4946 (c_type_print_args): Likewise.
4947 * d10v-tdep.c (d10v_push_arguments): Likewise.
4948 (d10v_extract_return_value): Likewise.
4949 * expprint.c (print_subexp): Likewise.
4950 * gdbtypes.c (lookup_primitive_typename): Likewise.
4951 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4952 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4953 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4954 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4955 (TYPE_VECTOR): Likewise.
4956 * hpread.c (hpread_read_struct_type)
4957 (fix_static_member_physnames, fixup_class_method_type)
4958 (hpread_type_lookup): Likewise.
4959 * mdebugread.c (parse_symbol, parse_type): Likewise.
4960 * p-lang.c (is_pascal_string_type): Likewise.
4961 * valops.c (hand_function_call): Likewise.
4962 * x86-64-tdep.c (classify_argument): Likewise.
4963
4964 * hpread.c (hpread_read_function_type)
4965 (hpread_read_doc_function_type): Call replace_type.
4966 * dstread.c (create_new_type): Delete.
4967 (decode_dst_structure, process_dst_function): Call alloc_type.
4968 Use type access macros.
4969
4970 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4971
4972 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4973 the're not supported by the current architecture.
4974 (i387_fill_fxsave): Likewise.
4975
4976 2002-05-12 Fred Fish <fnf@redhat.com>
4977
4978 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4979 sect_index_xxx members to index the first slot in section_offsets
4980 if all of the section_offsets are zero.
4981
4982 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4983
4984 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4985 checked in with last change.
4986
4987 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4988
4989 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4990 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4991 config.sub.
4992
4993 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4994
4995 * Makefile.in: Update dependencies.
4996
4997 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4998
4999 * language.c (local_hex_string_custom): Simplify. Do not depend
5000 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5001
5002 * memattr.c (mem_info_command): Replace calls to
5003 longest_local_hex_string and longest_local_hex_string_custom.
5004 * buildsym.c (make_blockvector): Ditto.
5005 * solib.c (info_sharedlibrary_command): Ditto.
5006 * tracepoint.c (tracepoints_info): Ditto.
5007 * symtab.c (print_msymbol_info): Ditto.
5008
5009 * language.c (local_hex_string): Delete.
5010 (local_hex_string_custom): Delete.
5011 (longest_local_hex_string): Rename to local_hex_string.
5012 (longest_local_hex_string_custom): Rename to
5013 local_hex_string_custom.
5014 * language.h (local_hex_string): Change parameter type to LONGEST.
5015 (local_hex_string_custom): Ditto.
5016 (longest_local_hex_string): Delete declaration.
5017 (longest_local_hex_string_custom): Ditto.
5018
5019 * solib.c: Update copyright.
5020 * memattr.c: Update copyright.
5021
5022 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5023
5024 * arch-utils.h (legacy_register_to_value): Declare.
5025 (legacy_value_to_register): Declare.
5026 (legacy_convert_register_p): Declare.
5027 * arch-utils.c (legacy_register_to_value): New function.
5028 (legacy_value_to_register): New function.
5029 (legacy_convert_register_p): New function.
5030
5031 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5032 (VALUE_TO_REGISTER): Define.
5033 (CONVERT_REGISTER_P): Define.
5034 * gdbarch.h, gdbarch.c: Regenerate.
5035
5036 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5037 VALUE_TO_REGISTER.
5038 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5039 CONVERT_REGISTER_P.
5040
5041 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5042 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5043
5044 * Makefile.in: Update dependencies for valops.c.
5045 * valops.c: Include "gdb_assert.h".
5046 (typecmp): Skip THIS parameter to methods.
5047 (find_method_list): Remove static_memfuncp argument,
5048 update callers. Check for stub methods.
5049 (find_value_oload_method_list): Don't set *static_memfuncp.
5050 (find_overload_match): Don't check for stub methods. Assert
5051 that methods are not stubbed. Handle static methods.
5052 (value_find_oload_method_list): Remove static_memfuncp argument.
5053 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5054 to the argument list for static stub methods.
5055 * value.h (value_find_oload_method_list): Update prototype.
5056
5057 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5058
5059 * arch-utils.h (generic_register_size): Declare.
5060 (generic_register_raw_size, generic_register_virtual_size): Delete
5061 declarations.
5062 * arch-utils.c (generic_register_raw_size): Delete.
5063 (generic_register_size): New function.
5064 (generic_register_virtual_size): Delete.
5065
5066 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5067 default generic_register_size.
5068 * gdbarch.h, gdbarch.c: Re-generate.
5069
5070 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5071 register_virtual_size.
5072 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5073 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5074
5075 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5076
5077 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5078 * gdbarch.h, gdbarch.c: Regenerate.
5079 * gnu-v3-abi.c: Update copyright.
5080 (vtable_address_point_offset): Update.
5081 (gnuv3_rtti_type): Update.
5082 (gnuv3_baseclass_offset): Update.
5083 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5084 (init_fetch_link_map_offsets): Update.
5085 * remote.c (get_remote_state): Update.
5086
5087 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5088
5089 * TODO: Remove value_headof/value_from_vtable_info comment.
5090 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5091 * values.c (value_headof, value_from_vtable_info): Delete.
5092 * value.h (value_from_vtable_info): Delete prototype.
5093
5094 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5095
5096 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5097 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5098 $(gdb_regex_h).
5099 (gdb_assert_h): Define.
5100 (gdb_wait_h): Define.
5101 (gdb_regex_h): Define.
5102
5103 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5104
5105 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5106 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5107
5108 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5109
5110 * nbsd-tdep.c: Fix comment.
5111
5112 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5113
5114 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5115 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5116 (nbsd-tdep.o): New dependency list.
5117 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5118 nbsd-tdep.h.
5119 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5120 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5121 * nbsd-tdep.c: New file.
5122 * nbsd-tdep.h: New file.
5123 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5124 nbsd-tdep.h.
5125 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5126 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5127 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5128 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5129
5130 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5131
5132 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5133 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5134 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5135 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5136 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5137 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5138
5139 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5140
5141 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5142 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5143 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5144 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5145 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5146 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5147 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5148
5149 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5150
5151 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5152 fetch_elfcore_registers to...
5153 * i386nbsd-tdep.c: ...here.
5154 (i386nbsd_use_struct_convention): Rename to...
5155 (i386nbsd_aout_use_struct_convention): ...this.
5156 (i386nbsd_supply_reg): New function.
5157 (i386nbsd_fill_reg): New function.
5158 (fetch_core_registers): Use i386nbsd_supply_reg.
5159 (fetch_elfcore_registers): Likewise.
5160 (_initialize_i386nbsd_tdep): New function.
5161 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5162 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5163 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5164 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5165 (i386nbsd_aout_use_struct_convention): ...this.
5166
5167 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5168
5169 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5170 (store_inferior_registers): Use shnbsd_fill_reg.
5171 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5172 sh_nbsd_supply_register): Collapse into...
5173 (shnbsd_supply_reg): ...this.
5174 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5175 (shnbsd_fill_reg): ...this.
5176 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5177 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5178 (fetch_core_registers): Use shnbsd_supply_reg.
5179 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5180 (sh_nbsd_core_fns): Rename to...
5181 (shnbsd_core_fns): ...this.
5182 (sh_nbsd_elfcore_fns): Rename to...
5183 (shnbsd_elfcore_fns): ...this.
5184 (sh_nbsd_init_abi): Rename to...
5185 (shnbsd_init_abi): ...this.
5186 (_initialize_sh_nbsd_tdep): Rename to...
5187 (_initialize_shnbsd_tdep): ...this.
5188 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5189 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5190 sh_nbsd_fill_register): Remove prototypes.
5191 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5192
5193 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5194
5195 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5196 (i387-nat.o): Delete dependency list.
5197 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5198 (x86-64-linux-nat.o): Likewise.
5199 * i387-nat.c: Delete file, moving contents to...
5200 * i387-tdep.c: ...here.
5201 * i387-nat.h: Rename...
5202 * i387-tdep.h: ...to this.
5203 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5204 * i386-linux-nat.c: Likewise.
5205 * i386bsd-nat.c: Likewise.
5206 * i386gnu-nat.c: Likewise.
5207 * i386nbsd-nat.c: Likewise.
5208 * i386v4-nat.c: Likewise.
5209 * x86-64-linux-nat.c: Likewise.
5210 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5211 * config/i386/go32.mh (NATDEPFILES): Likewise.
5212 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5213 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5214 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5215 * config/i386/linux.mh (NATDEPFILES): Likewise.
5216 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5217 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5218 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5219 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5220
5221 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5222
5223 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5224 (alphanbsd-nat.o): Remove dependency list.
5225 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5226 * alphanbsd-nat.c: Delete. Contents moved to...
5227 * alphanbsd-tdep.c: ...here.
5228 (_initialize_alphanbsd_tdep): Register core functions.
5229 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5230
5231 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5232
5233 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5234 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5235 (alphanbsd-nat.o): Likewise.
5236 (alphabsd-tdep.o): New dependency list.
5237 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5238 (fill_gregset): Use alphabsd_fill_reg.
5239 (supply_fpregset): Use alphabsd_supply_fpreg.
5240 (fill_fpregset): Use alphabsd_fill_fpreg.
5241 (fetch_inferior_registers): Use struct reg and struct fpreg
5242 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5243 and alphabsd_supply_fpreg.
5244 (store_inferior_registers): Use struct reg and struct fpreg
5245 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5246 and alphabsd_fill_fpreg.
5247 * alphabsd-tdep.c: New file.
5248 * alphabsd-tdep.h: New file.
5249 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5250 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5251 alphabsd_supply_fpreg.
5252 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5253 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5254
5255 2002-05-11 Eric Christopher <echristo@redhat.com>
5256
5257 * mips-tdep.c (mips_double_register_type): Fix thinko.
5258 (mips_single_register_type): Ditto.
5259 * MAINTAINERS: Add self.
5260
5261 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5262
5263 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5264 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5265 right thing on architectures with different endianness and/or
5266 integer sizes.
5267
5268 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5269
5270 From Christian Limpach <chris@Pin.LU>
5271 * configure.in: Change sed expression which comments out
5272 NATDEPFILES to also comment out continuation lines.
5273 * configure: Regenerate.
5274
5275 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5276
5277 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5278 big patch.
5279
5280 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5281
5282 * sh-tdep.c: Include correct file.
5283
5284 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5285
5286 New support for sh64-elf (sh5) target.
5287
5288 * configure.tgt: For sh64-elf target, default to sh-elf.
5289
5290 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5291 (struct gdbarch_tdep): Add new fields for new registers and ABI
5292 info.
5293
5294 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5295 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5296 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5297 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5298 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5299 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5300 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5301 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5302 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5303 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5304 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5305 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5306 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5307 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5308 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5309 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5310 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5311 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5312 sign_extend, sh64_nofp_frame_init_saved_regs,
5313 sh64_init_extra_frame_info, sh64_get_saved_register,
5314 sh64_extract_struct_value_address, sh64_pop_frame,
5315 sh64_push_arguments, sh64_extract_return_value,
5316 sh64_store_return_value, sh64_show_media_regs,
5317 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5318 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5319 sh_sh64_register_virtual_type,
5320 sh_sh64_register_convert_to_virtual,
5321 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5322 sh64_register_read, sh64_pseudo_register_write,
5323 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5324 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5325 sh64_do_pseudo_register, sh_compact_do_registers_info,
5326 sh64_do_registers_info, sh_gdbarch_init): New functions.
5327
5328 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5329
5330 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5331
5332 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5333
5334 * linespec.c (decode_line_1): Check for a double quote after
5335 a filename correctly.
5336
5337 2002-05-10 Jim Blandy <jimb@redhat.com>
5338
5339 Properly track the size of the current objfile's .debug_line section.
5340 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5341 (DWARF_LINE_SIZE): New macro.
5342 (dwarf2_build_psymtabs_hard): Record the line section's size in
5343 the partial symbol table.
5344 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5345 symbol table.
5346
5347 2002-05-10 Petr Sorfa <petrs@caldera.com>
5348
5349 * ia64-tdep.c: Handle breakpoints on L instruction type
5350 in MLX instruction bundle by moving the breakpoint to
5351 the third slot (X instruction type) as L holds only data.
5352
5353 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5354
5355 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5356 (process_one_symbol): Complain about discarding local symbols
5357 due to a misplaced N_LBRAC entry.
5358
5359 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5360
5361 From Daniel Berlin <dan@cgsoftware.com>
5362 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5363 decrease the depth we are at, in the case of templates.
5364
5365 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5366
5367 * mips-tdep.c (mips_float_register_type): New function.
5368 (mips_double_register_type): New function.
5369 (mips_print_register): Use them.
5370 (do_fp_register_row): Likewise.
5371
5372 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5373
5374 * signals/signals.c (signals): Remove conditional compilation around
5375 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5376 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5377
5378 2002-05-09 Michael Snyder <msnyder@redhat.com>
5379
5380 * remote-rdp.c (remote_rdp_can_run): Remove.
5381
5382 2002-05-09 Tom Tromey <tromey@redhat.com>
5383
5384 * jv-valprint.c (java_val_print): Handle `char' as a special case
5385 of TYPE_CODE_INT.
5386
5387 2002-05-09 Michael Snyder <msnyder@redhat.com>
5388
5389 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5390 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5391 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5392 str r(0123),[sp,#nn].
5393 (arm_skip_prologue): Ditto. Also make disassembly
5394 order-independent by placing it in a loop.
5395
5396 2002-05-06 Michael Snyder <msnyder@redhat.com>
5397
5398 * stabsread.c (read_type): Add recognition for new attribute:
5399 "@V;" means that an array type is actually a vector.
5400 This is analogous to the vector flag that's been added to dwarf2.
5401
5402 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5403
5404 * i386-tdep.h (i386_abi): New enum.
5405 (struct gdbarch_tdep): Replace os_ident member with abi.
5406 (i386_gdbarch_register_os_abi): New prototype.
5407 * i386-tdep.c (i386_abi_names): New array.
5408 (process_note_abi_tag_sections): Removed.
5409 (process_note_sections): New function.
5410 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5411 (struct i386_abi_handler): New struct.
5412 (i386_abi_handler_list): New variable.
5413 (i386_gdbarch_register_os_abi): New function.
5414 (i386_gdbarch_init): Adapt for the changes given above.
5415
5416 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5417
5418 * gregset.h: Say "GNU/Linux".
5419
5420 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5421
5422 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5423 (build_gdbtypes): Build builtin_type_v2_float.
5424 (_initialize_gdbtypes): Register new builtin type.
5425
5426 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5427
5428 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5429 (clear_gdbarch_swap): New function.
5430 (initialize_non_multiarch): Call.
5431 (gdbarch_update_p): Before calling init(), swap out and clear the
5432 existing architecture.
5433 * gdbarch.c: Regenerate.
5434
5435 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5436
5437 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5438 alphanbsd-tdep.c.
5439
5440 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5441
5442 * sh-nbsd-nat.c: Rename to...
5443 * shnbsd-nat.c: ...this.
5444 * sh-nbsd-tdep.c: Rename to...
5445 * shnbsd-tdep.c: ...this.
5446 * sh-nbsd-tdep.h: Rename to...
5447 * shnbsd-tdep.h: ...this.
5448 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5449 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5450
5451 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5452
5453 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5454 concatenation for command help messages.
5455
5456 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5457
5458 * NEWS: Note new sh*-*-netbsdelf* configuration.
5459 * configure.host: Set gdb_host_cpu to sh for all sh*.
5460 (sh*-*-netbsdelf*): New host.
5461 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5462 (sh*-*-netbsdelf*): New target.
5463 * sh-nbsd-nat.c: New file.
5464 * sh-nbsd-tdep.c: New file.
5465 * sh-nbsd-tdep.h: New file.
5466 * config/sh/nbsd.mh: New file.
5467 * config/sh/nbsd.mt: New file.
5468 * config/sh/nm-nbsd.h: New file.
5469 * config/sh/tm-nbsd.h: New file.
5470
5471 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5472
5473 * sh-tdep.c (sh_osabi_names): Declare.
5474 (process_note_abi_tag_sections): New function.
5475 (get_elfosabi): Ditto.
5476 (sh_gdbarch_register_os_abi): Ditto.
5477 (sh_dump_tdep): Ditto.
5478 _initialize_sh_tdep): Use gdbarch_register to register
5479 sh_gdbarch_init and sh_dump_tdep.
5480 * config/sh/tm-sh.h (sh_osabi): Declare.
5481 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5482
5483 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5484
5485 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5486 (thumb_scan_prologue): Ditto.
5487 (arm_find_callers_reg): Ditto.
5488 (arm_frame_chain): Ditto.
5489 (arm_init_extra_frame_info): Ditto.
5490 (arm_frame_saved_pc): Ditto.
5491 (arm_pop_frame): Ditto.
5492 (arm_push_return_address): New function.
5493 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5494 call_dummy_location, call_dummy_breakpoint_offset_p,
5495 call_dummy_breakpoint_offset, call_dummy_p,
5496 call_dummy_stack_adjust_p, call_dummy_words,
5497 sizeof_call_dummy_words, call_dummy_start_offset,
5498 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5499 call_dummy_address, push_return_address and push_dummy_frame for
5500 generic dummy frames.
5501
5502 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5503
5504 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5505 size computation for alloca.
5506 (sh_fp_frame_init_saved_regs): Likewise.
5507
5508 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5509
5510 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5511 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5512 * arm-tdep.c (arm_store_return_value): Use them.
5513 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5514 * remote-rdp.c (remote_rdp_fetch_register): Use
5515 ARM_MAX_REGISTER_RAW_SIZE.
5516 (remote_rdp_store_register): Likewise.
5517
5518 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5519
5520 * dwarf2cfi.c: Code cleanup, removed unused variables,
5521 added default labels to switch {} statements.
5522 * x86-64-tdep.c: Ditto.
5523 * x86-64-linux-nat.c: Ditto.
5524
5525 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5526
5527 * solib.h: Protect against multiple inclusion.
5528
5529 2002-05-06 Jim Blandy <jimb@redhat.com>
5530
5531 Add first preprocessor macro-expansion files.
5532 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5533 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5534 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5535 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5536 (COMMON_OBS): Add macrotab.o, macroexp.o.
5537 (macroexp.o, macrotab.o): New rules.
5538
5539 Separate the job of reading the line number info statement program
5540 header (...expialidocious) out into its own function.
5541 * dwarf2read.c (struct line_head, struct filenames, struct
5542 directories): Replace with...
5543 (struct line_header): New structure, containing the full
5544 contents of the statement program header, including the
5545 include directory and file name tables.
5546 (read_file_scope): If we have line number info, instead of just
5547 calling dwarf_decode_lines to do all the work, call
5548 dwarf_decode_line_header first to get a `struct line_header'
5549 containing the data in the statement program header, and then
5550 pass that to dwarf_decode_lines, which will pick up where that
5551 left off. Be sure to clean up the `struct line_header' object.
5552 (dwarf_decode_line_header, free_line_header, add_include_dir,
5553 add_file_name): New functions.
5554 (dwarf_decode_lines): Move all the code to read the statement
5555 program header into dwarf_decode_line_header. Take the line
5556 header it built as the first argument, instead of the offset to
5557 the compilation unit's line number info. Use the new `struct
5558 line_header' type instead of the old structures. No need to do
5559 cleanups here now, since we don't allocate anything.
5560 (dwarf2_statement_list_fits_in_line_number_section,
5561 dwarf2_line_header_too_long): New complaints.
5562
5563 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5564
5565 * gdbtypes.c (init_vector_type): New function.
5566 (build_builtin_type_vec128): Simplify the representation of SIMD
5567 registers.
5568 (build_gdbtypes): Initialize new builtin vector types.
5569 (_initialize_gdbtypes): Register new vector types with gdbarch.
5570 (builtin_type_v4_float, builtin_type_v4_int32,
5571 builtin_type_v8_int16, builtin_type_v16_int8,
5572 builtin_type_v2_int32, builtin_type_v4_int16,
5573 builtin_type_v8_int8): New (renamed) SIMD types.
5574
5575 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5576
5577 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5578 (i387_fill_fxsave): Likewise.
5579
5580 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5581
5582 * alpha-tdep.c (alpha_extract_return_value): Don't use
5583 non-constant array size in prototype.
5584
5585 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5586
5587 From Brian Taylor <briant at model dot com>:
5588 * ui-out.c (ui_out_field_core_addr): Use the function
5589 longest_local_hex_string_custom'to format addresses > 32 bits
5590 wide.
5591
5592 * ui-out.c (ui_out_field_core_addr): Update comment.
5593
5594 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5595
5596 * stack.c (select_and_print_frame): Make static. Delete the
5597 parameter `level'.
5598 (func_command): Update call.
5599 (select_frame_command): Delete code computing the frame level.
5600 * frame.h (select_and_print_frame): Delete declaration.
5601
5602 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5603
5604 * sparc-tdep.c (sparc_get_saved_register): Comment why
5605 get_prev_frame call is safe.
5606
5607 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5608
5609 * frame.h (select_frame): Delete level parameter.
5610 * stack.c (select_frame): Update. Use frame_relative_level to
5611 obtain the frame's level.
5612 (select_and_print_frame): Update call.
5613 (select_frame_command): Ditto.
5614 (up_silently_base): Ditto.
5615 (down_silently_base): Ditto.
5616 * ocd.c (ocd_start_remote): Ditto.
5617 * remote-rdp.c (remote_rdp_open): Ditto.
5618 * remote-mips.c (mips_initialize): Ditto.
5619 (common_open): Ditto.
5620 * remote-e7000.c (e7000_start_remote): Ditto.
5621 * m3-nat.c (select_thread): Ditto.
5622 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5623 (child_get_current_exception_event): Ditto.
5624 * varobj.c (varobj_create): Ditto.
5625 (varobj_update): Ditto.
5626 (c_value_of_root): Ditto.
5627 * tracepoint.c (finish_tfind_command): Ditto.
5628 * corelow.c (core_open): Ditto.
5629 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5630 * thread.c (info_threads_command): Ditto.
5631 (switch_to_thread): Ditto.
5632 * infrun.c (normal_stop): Ditto.
5633 (restore_selected_frame): Ditto.
5634 (restore_inferior_status): Ditto.
5635 * breakpoint.c (insert_breakpoints): Ditto.
5636 (watchpoint_check): Ditto.
5637 (bpstat_stop_status): Ditto.
5638 (do_enable_breakpoint): Ditto.
5639 * blockframe.c (flush_cached_frames): Ditto.
5640 (reinit_frame_cache): Ditto.
5641
5642 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5643
5644 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5645 maintainer.
5646
5647 2002-05-04 Jim Blandy <jimb@redhat.com>
5648
5649 * gdbtypes.c (replace_type): Doc fix.
5650
5651 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5652
5653 * valprint.c (strcat_longest): Delete commented out function.
5654 Update copyright.
5655
5656 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5657
5658 * MAINTAINERS: Mark a29k as deleted.
5659 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5660 Move new configurations to the top.
5661 * configure.tgt: Remove a29k.
5662 * config/a29k/tm-vx29k.h: Delete.
5663 * config/a29k/vx29k.mt: Delete.
5664 * config/a29k/tm-a29k.h: Delete.
5665 * config/a29k/a29k-udi.mt: Delete.
5666 * config/a29k/a29k.mt: Delete.
5667 * a29k-tdep.c: Delete.
5668 * remote-udi.c: Delete.
5669 * remote-mm.c: Delete.
5670 * remote-eb.c: Delete.
5671 * remote-adapt.c: Delete.
5672 * Makefile.in: Remove obsolete code.
5673 * config/s390/s390x.mt: Ditto.
5674 * config/s390/s390.mt: Ditto.
5675 * config/sparc/sparclynx.mh: Ditto.
5676 * config/sparc/linux.mh: Ditto.
5677 * config/pa/hppaosf.mh: Ditto.
5678 * config/pa/hppabsd.mh: Ditto.
5679 * config/ns32k/nbsd.mt: Ditto.
5680 * config/mips/vr5000.mt: Ditto.
5681 * config/m68k/sun3os4.mh: Ditto.
5682 * config/m68k/nbsd.mt: Ditto.
5683 * config/m68k/m68klynx.mh: Ditto.
5684 * config/m32r/m32r.mt: Ditto.
5685 * config/i386/x86-64linux.mt: Ditto.
5686 * config/i386/nbsdelf.mt: Ditto.
5687 * config/i386/nbsd.mt: Ditto.
5688 * config/i386/i386lynx.mh: Ditto.
5689
5690 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5691
5692 * target.c (debug_print_register): New function. Handle oversize
5693 registers.
5694 (debug_to_fetch_registers): Call.
5695 (debug_to_store_registers): Call.
5696
5697 2002-05-03 Jim Blandy <jimb@redhat.com>
5698
5699 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5700 (read_type): Doc fix.
5701 * gdbtypes.c (replace_type): Doc fix.
5702
5703 * stabsread.c (multiply_defined_struct): New complaint.
5704 (read_struct_type): If the type we were passed isn't empty, or
5705 incomplete, don't read the new struct type into it; complain,
5706 and return the original type unchanged. Take a new `type_code'
5707 argument, which is the type code for the new type.
5708 (read_type): Rather than storing the type's type code here, pass
5709 it as an argument to read_struct_type, and let that take care of
5710 storing it. That way, we don't overwrite the original type code,
5711 so read_struct_type can use it to decide whether we're overwriting
5712 something we shouldn't.
5713 (complain_about_struct_wipeout): New function.
5714
5715 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5716
5717 * gdbarch.sh: Assert that gdbarch is non-NULL.
5718 * gdbarch.c: Regenerate.
5719
5720 2002-05-03 Jason Merrill <jason@redhat.com>
5721
5722 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5723 and return NULL.
5724
5725 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5726
5727 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5728 (x86_64_dwarf2gdb_regno_map_length),
5729 (x86_64_dwarf2_reg_to_regnum): Added.
5730 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5731 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5732 (_initialize_x86_64_tdep): Synced with the change above.
5733 (x86_64_skip_prologue): Reformulated message.
5734
5735 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5736
5737 * f-exp.y: Also use new prev_lexptr variable
5738 to improve error reporting. Based on Michael Snyder
5739 2002-04-24 dated patch to c-exp.y.
5740 * jv-exp.y: Likewise.
5741 * m2-exp.y: Likewise.
5742
5743 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5744
5745 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5746 we are dealing with vectors.
5747
5748 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5749
5750 * config/m68k/tm-nbsd.h: Obvious fix,
5751 correct machine name.
5752
5753 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5754
5755 * p-typeprint.c (pascal_type_print_base): Add support
5756 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5757
5758 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5759
5760 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5761 for fondamental pascal 'char' type.
5762
5763 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5764
5765 * p-lang.h (is_pascal_string_type): Declaration changed,
5766 new sixth argument of type char ** added.
5767 * p-lang.c (is_pascal_string_type): Implementation
5768 changed. Args length_pos, length_size, string_pos, char_size
5769 can now be NULL. New argument arrayname set to the field
5770 name of the char array. Return value set to char array
5771 field index plus one.
5772 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5773 is_pascal_string_type function.
5774
5775 2002-05-02 Andrew Cagney <cagney@redhat.com>
5776
5777 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5778 <cagney@redhat.com> change.
5779 * gdbarch.c: Regenerate.
5780
5781 2002-05-02 Andrew Cagney <cagney@redhat.com>
5782
5783 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5784 before probing for a new one. Detect errorenous gdbarch_init
5785 functions.
5786 * gdbarch.c: Regenerate.
5787
5788 2002-05-01 Andrew Cagney <cagney@redhat.com>
5789
5790 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5791 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5792 * config/v850/tm-v850.h: Ditto. Update copyright.
5793
5794 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5795
5796 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5797 current_gdbarch.
5798
5799 2002-04-30 Michael Snyder <msnyder@redhat.com>
5800
5801 * arm-tdep.c: Whitespace clean-ups.
5802 (arm_skip_prologue): Fix thinko; two lines
5803 should have been removed as part of 4/24 change.
5804
5805 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5806
5807 * rs6000-tdep.c: Added comment describing how fpscr register
5808 numbers were chosen.
5809
5810 2002-04-30 Michael Snyder <msnyder@redhat.com>
5811
5812 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5813
5814 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5815
5816 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5817 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5818 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5819
5820 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5821
5822 From Louis Hamilton <hamilton@redhat.com>:
5823 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5824 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5825 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5826 not bfd-private xcoff data, to determine wordsize.
5827 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5828
5829 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5830
5831 GDB 5.2 released from 5.2 branch.
5832
5833 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5834
5835 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5836 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5837 (x86_64_register_info_table): Added comments with register numbers.
5838
5839 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5840
5841 * rs6000-tdep.c (rs6000_extract_return_value,
5842 rs6000_store_return_value): Handle returning vectors.
5843 (rs6000_gdbarch_init): Use
5844 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5845 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5846 New function.
5847 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5848 vectors.
5849 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5850 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5851
5852 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5853
5854 * hpread.c (hpread_psymtab_to_symtab_1,
5855 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5856 with fprintf_unfiltered (gdb_stderr,...).
5857
5858 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5859
5860 * remote-array.c (printf_monitor, write_monitor,
5861 array_insert_breakpoint, array_remove_breakpoint ):
5862 Replace fprintf (stderr,...
5863 with fprintf_unfiltered (gdb_stderr,....
5864 * remote-es.c: Likewise.
5865 * remote-os9k.c: Likewise.
5866 * remote-st.c: Likewise.
5867
5868 2002-04-28 Andreas Schwab <schwab@suse.de>
5869
5870 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5871 linux-proc.o and gcore.o.
5872
5873 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5874
5875 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5876 code without frame pointers.
5877
5878 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5879
5880 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5881 ON_STACK is needed.
5882
5883 2002-04-26 Ben Elliston <bje@redhat.com>
5884
5885 * target.c (do_xfer_memory): Correct reference to the new option
5886 "trust-readonly-sections".
5887
5888 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5889
5890 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5891 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5892 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5893 vectors.
5894 (read_array_type): Record the fact that this array type is really a
5895 vector (i.e. are passed in by value).
5896
5897 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5898
5899 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5900 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5901 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5902 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5903 * alpha-linux-tdep.c: Include frame.h.
5904 (alpha_linux_sigcontext_addr): New function.
5905 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5906 alpha_linux_sigcontext_addr.
5907 * alpha-osf1-tdep.c: Include gdbcore.h.
5908 (alpha_osf1_sigcontext_addr): New function.
5909 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5910 alpha_osf1_sigcontext_addr.
5911 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5912 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5913
5914 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5915
5916 * stack.c (selected_frame_level):
5917 (select_frame): Do not set selected_frame_level.
5918 * frame.h (selected_frame_level): Delete declaration.
5919
5920 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5921
5922 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5923 convert_from_func_ptr-addr when AIX / PowerOpen.
5924
5925 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5926
5927 * valops.c (hand_function_call): Call
5928 generic_save_call_dummy_addr.
5929 * frame.h (generic_save_call_dummy_addr): Declare.
5930 * blockframe.c (struct dummy_frame): Add fields call_lo and
5931 call_hi.
5932 (generic_find_dummy_frame): Check for PC in range call_lo to
5933 call_hi instead of entry_point_address.
5934 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5935 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5936 (generic_save_call_dummy_addr): New function.
5937
5938 2002-04-24 David S. Miller <davem@redhat.com>
5939
5940 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5941 sparc_skip_prologue.
5942 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5943 information to find prologue when possible.
5944 (sparc_prologue_frameless_p): Call examine_prologue directly.
5945 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5946 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5947 second argument.
5948 (SKIP_PROLOGUE): Likewise.
5949
5950 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5951
5952 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5953 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5954 indicate that the condition it was testing is always true.
5955 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5956 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5957 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5958
5959 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5960
5961 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5962 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5963 tdep->jb_pc and tdep->jb_elt_size.
5964 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5965 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5966 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5967 * alpha-nat.c (get_longjmp_target): Remove.
5968 (JB_ELEMENT_SIZE): Ditto.
5969 (JB_PC): Ditto.
5970 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5971 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5972 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5973 to alpha_get_longjmp_target.
5974 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5975 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5976 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5977
5978 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5979
5980 * README: Update to GDB 5.2.
5981
5982 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5983
5984 * gdbarch.sh (LC_ALL): Set to `c'.
5985
5986 2002-04-25 Theodore A. Roth <troth@verinet.com>
5987
5988 * avr-tdep.c: Ran through gdb_indent.sh.
5989
5990 2002-04-25 Theodore A. Roth <troth@verinet.com>
5991
5992 * MAINTAINERS: Add myself as AVR maintainer.
5993 * NEWS: Note new target avr.
5994
5995 2002-04-25 Theodore A. Roth <troth@verinet.com>
5996
5997 * Makefile.in: Add support for AVR target.
5998 * configure.tgt: Add support for AVR target.
5999 * avr-tdep.c: New file
6000 * config/avr/avr.mt: New file.
6001
6002 2002-04-25 Theodore A. Roth <troth@verinet.com>
6003
6004 * MAINTAINERS: Add myself to write-after-approval.
6005
6006 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6007
6008 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6009 with fprintf_unfiltered (gdb_stderr,....
6010
6011 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6012
6013 Fix PR gdb/508.
6014 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6015
6016 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6017
6018 * p-exp.y: Also use new prev_lexptr variable
6019 to improve error reporting. Based on Michael Snyder
6020 2002-04-24 dated patch to c-exp.y.
6021
6022 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6023
6024 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6025 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6026 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6027 to 0.
6028 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6029 and struct value.
6030 (FUNCTION_START_OFFSET): Remove.
6031 (BREAKPOINT): Ditto.
6032
6033 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6034
6035 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6036 * NEWS: Ditto.
6037
6038 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6039
6040 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6041 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6042 alpha_linux_pc_in_sigtramp.
6043 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6044 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6045 alpha_osf1_pc_in_sigtramp.
6046 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6047 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6048 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6049 alphafbsd_pc_in_sigtramp.
6050 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6051 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6052 alphanbsd_pc_in_sigtramp.
6053 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6054 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6055
6056 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6057
6058 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6059
6060 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6061
6062 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6063 alphanbsd-tdep.c.
6064 (alphanbsd-nat.o): New dependency list.
6065 (alphanbsd-tdep.o): Ditto.
6066 * NEWS: Note new native NetBSD/alpha configuration.
6067 * alphanbsd-nat.c: New file.
6068 * alphanbsd-tdep.c: Ditto.
6069 * configure.host (alpha*-*-netbsd*): New host.
6070 * configure.tgt (alpha*-*-netbsd*): New target.
6071 * config/alpha/nbsd.mh: New file.
6072 * config/alpha/nbsd.mt: Ditto.
6073 * config/alpha/nm-nbsd.h: Ditto.
6074 * config/alpha/tm-nbsd.h: Ditto.
6075
6076 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6079 (alpha-osf1-tdep.o): New dependency list.
6080 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6081 and skip_sigtramp_frame members.
6082 * alpha-linux-tdep.c: Include gdbcore.h.
6083 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6084 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6085 * alpha-osf1-tdep.c: New file.
6086 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6087 alpha-osf1-dep.c.
6088 (alpha_frame_past_sigtramp_frame): New function.
6089 (alpha_dynamic_sigtramp_offset): Ditto.
6090 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6091 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6092 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6093 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6094 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6095 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6096 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6097 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6098 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6099 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6100 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6101 to find_solib_trampoline_target.
6102 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6103 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6104 (SKIP_TRAMPOLINE_CODE): Remove.
6105 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6106 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6107 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6108 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6109 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6110 (PROC_SIGTRAMP_MAGIC): Ditto.
6111 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6112 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6113 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6114 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6115 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6116
6117 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6118
6119 * NEWS: Note that Alpha targets are now multi-arch.
6120
6121 2002-04-24 Michael Snyder <msnyder@redhat.com>
6122
6123 * parser-defs.h (prev_lexptr): New external variable.
6124 * parse.c (parse_exp_1): Set prev_lexptr to null before
6125 calling the language-specific parser.
6126 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6127 (yyerror): Use prev_lexptr in error reporting.
6128
6129 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6130
6131 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6132 * gregset.h: If FILL_FPXREGSET is defined, provide
6133 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6134 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6135 is defined, call fill_fpxregset.
6136
6137 2002-04-24 Roland McGrath <roland@frob.com>
6138
6139 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6140 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6141 (supply_gregset, supply_fpregset): New functions.
6142
6143 * gnu-nat.c (gnu_find_memory_regions): New function.
6144 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6145 (gnu_xfer_memory): Add a cast.
6146
6147 2002-04-24 Michael Snyder <msnyder@redhat.com>
6148
6149 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6150 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6151 of argument regs ("str r(0123), [r11, #-nn"]).
6152 (arm_skip_prologue): Better handling for frameless functions.
6153 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6154 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6155
6156 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6157
6158 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6159 NUM_PSEUDO_REGS can be used.
6160
6161 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6162
6163 * arch-utils.h: Update copyright.
6164
6165 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167
6168 * inferior.h (IN_SIGTRAMP): Delete definition.
6169 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6170 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6171
6172 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6173 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6174 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6175 (find_proc_framesize): Ditto.
6176 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6177 (alpha_init_extra_frame_info): Ditto.
6178 * infrun.c (handle_inferior_event): Ditto.
6179 (handle_inferior_event): Ditto.
6180 (check_sigtramp2): Ditto.
6181 * blockframe.c (create_new_frame): Ditto.
6182 (get_prev_frame): Ditto.
6183 * ppc-linux-tdep.c: Update comments.
6184 * i386-linux-tdep.c: Update comments.
6185 * breakpoint.c (bpstat_what): Update comment.
6186
6187 2002-04-24 David S. Miller <davem@redhat.com>
6188
6189 * i960-tdep.c (register_in_window_p): New function.
6190 (i960_find_saved_register): Use it instead of
6191 REGISTER_IN_WINDOW_P.
6192 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6193
6194 * symtab.h (find_stab_function_addr): Kill extern.
6195 * minsyms.c (find_stab_function_addr): Remove from here...
6196 * dbxread.c: ... to here, and mark it static.
6197
6198 2002-04-20 David S. Miller <davem@redhat.com>
6199
6200 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6201 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6202
6203 2002-04-21 David S. Miller <davem@redhat.com>
6204
6205 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6206 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6207 (vx_write_register): Likewise.
6208
6209 2002-04-23 J. Brobecker <brobecker@gnat.com>
6210
6211 * source.c (is_regular_file): New function.
6212 (openp): Check wether file to open is a regular file
6213 to avoid opening directories.
6214
6215 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6216
6217 * findvar.c (extract_signed_integer): Cast printf argument
6218 to suppress format warning.
6219 (extract_unsigned_integer): Likewise.
6220 * infcmd.c (registers_info): Likewise.
6221 * top.c (get_prompt_1): Likewise.
6222 * valops.c (value_assign): Likewise.
6223 * valprint.c (print_decimal): Likewise.
6224
6225 2002-04-22 H.J. Lu (hjl@gnu.org)
6226
6227 * c-exp.y (typebase): Support
6228
6229 [long|long long|short] [signed|unsigned] [int|]
6230
6231 and
6232
6233 signed [long|long long|short] int
6234
6235 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6236
6237 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6238 and vax-tdep.h.
6239 * vax-tdep.h: New file.
6240 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6241 Make several routines static.
6242 (vax_get_saved_register): New function.
6243 (vax_gdbarch_init): New function.
6244 (_initialize_vax_tdep): Register vax_gdbarch_init.
6245 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6246 Remove macros now under the control of gdbarch.
6247
6248 2002-04-22 Michael Snyder <msnyder@redhat.com>
6249
6250 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6251 Some whitespace and coding standards tweaks.
6252
6253 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * vax-tdep.c: Include regcache.h.
6256 (vax_call_dummy_words): New.
6257 (sizeof_vax_call_dummy_words): New.
6258 (vax_fix_call_dummy): New function.
6259 (vax_saved_pc_after_call): Ditto.
6260 * config/vax/tm-vax.h: Don't include regcache.h.
6261 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6262 (CALL_DUMMY): Remove.
6263 (CALL_DUMMY_WORDS): Define.
6264 (SIZEOF_CALL_DUMMY_WORDS): Define.
6265 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6266
6267 2002-04-18 Michael Snyder <msnyder@redhat.com>
6268
6269 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6270
6271 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6272
6273 * vax-tdep.c (vax_frame_chain): New function.
6274 (vax_push_dummy_frame): Ditto.
6275 (vax_pop_frame): Ditto.
6276 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6277 (FRAMELESS_FUNCTION_INVOCATION): Use
6278 generic_frameless_function_invocation_not.
6279 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6280 (POP_FRAME): Use vax_pop_frame.
6281
6282 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6283
6284 * vax-tdep.c (vax_store_struct_return): New function.
6285 (vax_extract_return_value): Ditto.
6286 (vax_store_return_value): Ditto.
6287 (vax_extract_struct_value_address): Ditto.
6288 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6289 vax_store_struct_return.
6290 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6291 (STORE_RETURN_VALUE): Use vax_store_return_value.
6292 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6293
6294 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6295
6296 * vax-tdep.c (vax_frame_saved_pc): New function.
6297 (vax_frame_args_address_correct): Ditto.
6298 (vax_frame_args_address): Ditto.
6299 (vax_frame_locals_address): Ditto.
6300 (vax_frame_num_args): Move code to be in proximity to
6301 other frame-related functions.
6302 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6303 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6304 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6305 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6306 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6307
6308 2002-04-22 H.J. Lu (hjl@gnu.org)
6309
6310 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6311 includedir.
6312
6313 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6314
6315 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6316 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6317 (FRAME_INIT_SAVED_REGS): New macro.
6318
6319 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6320
6321 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6322
6323 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6324
6325 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6326 where needed.
6327 (fetch_osf_core_registers): Likewise.
6328 (supply_gregset): Likewise.
6329
6330 2002-04-22 J. Brobecker <brobecker@gnat.com>
6331
6332 * symfile.h (get_section_index): Define.
6333 * symfile.c (get_section_index): New function.
6334 * mdebugread.c (SC_IS_SBSS): New macro.
6335 (SC_IS_BSS): Return true for the scBss storage class only, as
6336 the scSBss storage class refers to the .sbss section.
6337 (parse_partial_symbols): Discard the symbols which associated
6338 section does not exist.
6339 Make sure to use the .sbss section index for symbols which
6340 storage class is scBss, rather than using the .bss section index.
6341
6342 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * vax-tdep.c: Update copyright years.
6345 (vax_register_name): New function.
6346 (vax_register_byte): Ditto.
6347 (vax_register_raw_size): Ditto.
6348 (vax_register_virtual_size): Ditto.
6349 (vax_register_virtual_type): Ditto.
6350 * config/vax/tm-vax.h: Update copyright years.
6351 (REGISTER_NAMES): Remove.
6352 (REGISTER_NAME): Define.
6353 (REGISTER_BYTE): Use vax_register_byte.
6354 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6355 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6356 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6357
6358 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6359
6360 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6361 declaration
6362 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6363
6364 2002-04-21 David S. Miller <davem@redhat.com>
6365
6366 * arch-utils.c (generic_prologue_frameless_p): Kill
6367 SKIP_PROLOGUE_FRAMELESS_P code.
6368 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6369 references.
6370 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6371 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6372 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6373 references.
6374 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6375 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6376 (sparc_gdbarch_init): Pass it to
6377 set_gdbarch_prologue_frameless_p.
6378
6379 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6380
6381 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6382 (alphabsd-nat.o): New dependency list.
6383
6384 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6385
6386 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6387 alphafbsd-tdep.c.
6388 (alpha-linux-tdep.o): New dependency list.
6389 (alphafbsd-tdep.o): Likewise.
6390
6391 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6392
6393 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6394 to here...
6395 * alpha-tdep.c: ...from here.
6396 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6397
6398 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6399
6400 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6401 prototype from here...
6402 * alpha-tdep.h: ...to here.
6403
6404 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6405
6406 * frame.h (selected_frame_level): Document as deprecated.
6407 (frame_relative_level): Declare.
6408 * stack.c (frame_relative_level): New function.
6409 (selected_frame_level): Document as deprecated.
6410 (select_frame): Do not set the selected_frame_level.
6411
6412 * stack.c (frame_info, record_selected_frame): Update.
6413 (frame_command, current_frame_command): Update.
6414 (up_silently_base, up_command, down_silently_base): Update.
6415 (down_command): Update.
6416 * inflow.c (kill_command): Update.
6417 * tracepoint.c (finish_tfind_command): Update.
6418 * corelow.c (core_open): Update.
6419 * thread.c (info_threads_command): Update.
6420 (do_captured_thread_select): Update.
6421 * infcmd.c (finish_command): Update.
6422 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6423
6424 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6425
6426 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6427
6428 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6429
6430 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6431 type const.
6432
6433 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6434
6435 * alphafbsd-tdep.c: Update copyright years. Include
6436 alpha-tdep.h.
6437 (alphafbsd_use_struct_convention): Make static.
6438 (alphafbsd_init_abi): New function.
6439 (_initialize_alphafbsd_tdep): New function.
6440 * config/alpha/tm-fbsd.h: Update copyright years.
6441 (USE_STRUCT_CONVENTION): Remove.
6442
6443 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6444
6445 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6446 an Alpha ABI variant.
6447 (alpha_abi_handler_list): Declare.
6448 (alpha_gdbarch_register_os_abi): New function.
6449 (alpha_gdbarch_init): Give registered ABI variant handlers a
6450 chance to tweak the gdbarch once we have set up defaults.
6451 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6452
6453 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6454
6455 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6456 to standard_coerce_float_to_double.
6457 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6458
6459 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6460
6461 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6462 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6463 from gdbarch_tdep rather than a constant.
6464 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6465 the default text address for all Alpha Unix ABIs.
6466 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6467 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6468
6469 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6470
6471 * alpha-tdep.h: New file. Includes several Alpha target constants
6472 taken from...
6473 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6474 let gdbarch deal with.
6475 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6476 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6477 to dependency list.
6478 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6479 Alpha target register names.
6480 * alphabsd-nat.c: Likewise.
6481 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6482 Alpha target register names. Make serveral routines static.
6483 (alpha_get_saved_register): New function.
6484 (alpha_abi_names): New.
6485 (process_note_abi_tag_sections): New function.
6486 (get_elfosabi): New function.
6487 (alpha_gdbarch_init): New function.
6488 (alpha_dump_tdep): New function.
6489 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6490
6491 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6492
6493 * frame.c (find_saved_register): Delete #ifdef
6494 HAVE_REGISTER_WINDOWS code.
6495 * config/sparc/tm-sparc.h: Update comments.
6496 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6497
6498 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6499
6500 * i960-tdep.c (i960_find_saved_register): New function.
6501 (i960_get_saved_register): New function.
6502 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6503 (i960_get_saved_register): Declare.
6504 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6505
6506 2002-04-20 David S. Miller <davem@redhat.com>
6507
6508 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6509
6510 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6511
6512 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6513 instead of NUM_PSEUDO_REGS.
6514
6515 2002-04-20 David S. Miller <davem@redhat.com>
6516
6517 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6518 GDB_MULTI_ARCH_PARTIAL
6519 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6520 define, let tm-sp64.h do it.
6521
6522 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6523
6524 * frame.c (find_saved_register): Avoid a NULL pointer
6525 dereference and actually walk the frame list.
6526
6527 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6528
6529 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6530 sorted in most most-recent-used order. Document.
6531 * gdbarch.h, gdbarch.c: Regenerate.
6532
6533 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6534
6535 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6536 instead of ->prev.
6537 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6538 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6539 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6540 instead of ->prev.
6541
6542 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6543
6544 Fix PR gdb/471.
6545 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6546 (build_builtin_type_vec128): Ditto.
6547 (append_composite_type_field): Fix calculation of type length in
6548 union case.
6549
6550 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6551
6552 * config/djgpp/README: Update.
6553
6554 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6555 compiler warnings.
6556
6557 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6558
6559 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6560 (alpha_setup_arbitrary_frame): ...to this.
6561 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6562 for alpha_setup_arbitrary_frame.
6563
6564 2002-04-18 Andrew Cagney <cagney@redhat.com>
6565
6566 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6567 * gdbarch.h, gdbarch.c: Regenerate.
6568
6569 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6570 * target.h (memory_breakpoint_from_pc): Update declaration.
6571 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6572
6573 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6574 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6575 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6576 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6577 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6578 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6579 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6580 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6581 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6582 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6583 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6584 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6585
6586 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6587 const pointer.
6588 * monitor.c (monitor_insert_breakpoint): Ditto.
6589 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6590
6591 * config/mcore/tm-mcore.h: Update copyright.
6592 * mem-break.c: Ditto.
6593 * xstormy16-tdep.c: Ditto.
6594
6595 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6596
6597 * p-exp.y: Add precedence rule for '^' token.
6598 This removes the shift/reduce conflicts.
6599 Remove the comment concerning these shift/reduce conflicts.
6600
6601 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6602
6603 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6604 (registers_powerpc_nofp): New register set for processors
6605 without floating point unit.
6606
6607 2002-04-18 David S. Miller <davem@redhat.com>
6608
6609 * MAINTAINERS: Add myself to write-after-approval.
6610
6611 2002-04-17 Michael Snyder <msnyder@redhat.com>
6612
6613 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6614
6615 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6616
6617 * rs6000-tdep.c (frame_initial_stack_address): Use
6618 frame_register_read to read the alloca_reg.
6619
6620 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6621
6622 * frame.c (find_saved_register): Find saved registers in the next
6623 not prev frame.
6624 Fix PR gdb/365.
6625
6626 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6627
6628 * gdbarch.sh (LANG): Set to ``c''.
6629
6630 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6631
6632 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6633
6634 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6635
6636 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6637 Update copyright.
6638
6639 * hpread.c (hpread_get_lntt): Add declaration.
6640 Also fix PR gdb/391.
6641
6642 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6643
6644 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6645 * aclocal.m4, configure: Re-generate.
6646 Fix PR gdb/391.
6647
6648 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6649
6650 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6651 instead of tm_print_insn.
6652
6653 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6654
6655 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6656
6657 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6658
6659 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6660 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6661 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6662
6663 2002-04-12 Don Howard <dhoward@redhat.com>
6664
6665 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6666 max_user_call_depth.
6667 (init_cmd_lists): Initialize the new value;
6668 * cli/cli-script.c (execute_user_command): Limit the call depth of
6669 user defined commands. This avoids a core-dump when user commands
6670 are infinitly recursive.
6671
6672 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6673
6674 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6675 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6676 from tdep struct instead of DEFAULT_LR_SAVE.
6677 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6678 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6679 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6680
6681 2002-04-12 Michael Snyder <msnyder@redhat.com>
6682
6683 * Remote.c: Spelling fix.
6684 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6685 If no symbol found for "sbrk", try "_sbrk".
6686 (make_output_phdrs): Use bfd_section_name.
6687 (gcore_copy_callback): Use bfd_section_name.
6688 * eval.c: Indentation fix-ups.
6689 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6690 in case it gets applied to an address that is already
6691 in the instruction space.
6692 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6693 * symfile.c: Fix indentation, long lines.
6694 * source.c: White space fix-up.
6695
6696 2002-04-12 Andrew Cagney <cagney@redhat.com>
6697
6698 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6699 * frame.c (frame_register_read): New function. Return non-zero on
6700 success.
6701 (read_relative_register_raw_bytes_for_frame): Delete.
6702 (read_relative_register_raw_bytes): Delete.
6703 * frame.h (frame_register_read): Declare.
6704 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6705 * sh-tdep.c: Ditto.
6706 * infcmd.c (do_registers_info): Ditto.
6707 * hppa-tdep.c: Ditto.
6708 * rs6000-tdep.c: Ditto.
6709 * h8500-tdep.c: Ditto.
6710 * mips-tdep.c: Ditto.
6711 * h8300-tdep.c: Ditto.
6712 * z8k-tdep.c: Ditto.
6713
6714 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6715
6716 From Jimi X <jimix@watson.ibm.com>:
6717 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6718 64-bit SysV ABI.
6719
6720 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6721
6722 From Jimi X <jimix@watson.ibm.com>:
6723 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6724 bfd info.
6725
6726 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6727
6728 From Jimi X <jimix@watson.ibm.com>:
6729 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6730 register sets for these processor variants.
6731
6732 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6733
6734 * regformats/reg-ppc.dat: Support FPSCR.
6735
6736 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6737
6738 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6739 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6740 Add fpscr as an invalid/unfetchable register.
6741 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6742 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6743 (fill_fpregset): Add support for register fpscr.
6744 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6745 (fill_gregset): Account for the fact that register ``mq'' might
6746 not exist.
6747 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6748 (registers_power): Add fpscr to register set at slot 71.
6749 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6750 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6751
6752 2002-04-11 Michael Snyder <msnyder@redhat.com>
6753
6754 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6755 * configure: Regenerate.
6756 * config.in: Regenerate.
6757 * acconfig.h: Add define for _SYSCALL32.
6758 * core-sol2.c: Remove #define _SYSCALL32.
6759 * solib-legacy.c: Remove #define _SYSCALL32.
6760
6761 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6762
6763 * stack.c (select_frame): Cleanup internal error message, do not
6764 use %p.
6765
6766 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6767
6768 * stack.c (select_frame): Check that selected_frame and the
6769 specified level are as expected.
6770 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6771 Update copyright.
6772 * frame.h (struct frame_info): Add field `level'. Update
6773 copyright.
6774 Work-in-progress PR gdb/464.
6775
6776 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6777
6778 * maint.c (maint_print_section_info): Rename print_section_info.
6779 (print_bfd_section_info, print_objfile_section_info): Update.
6780 * inferior.h (struct gdbarch): Add opaque declaration.
6781 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6782 * gdbarch.h: Regenerate.
6783
6784 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6785
6786 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6787 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6788 (kernel_u_size): Added.
6789 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6790 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6791
6792 2002-04-04 Jim Ingham <jingham@apple.com>
6793
6794 * valarith.c (find_size_for_pointer_math): New function, either returns
6795 the size for a pointer's target, returns 1 for void *, or errors for
6796 incomplete types.
6797 (value_add, value_sub): use find_size_for_pointer_math.
6798
6799 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6800
6801 * linux-low.c (linux_look_up_symbols): New hook.
6802 (linux_target_ops): Add linux_look_up_symbols.
6803 * remote-utils.c (decode_address): New function.
6804 (look_up_one_symbol): New function.
6805 * server.c (handle_query): Call target look_up_symbols hook.
6806 * server.h (look_up_one_symbol): Add prototype.
6807 * target.h (struct target_ops): Add look_up_symbols hook.
6808
6809 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6810
6811 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6812 override FP_REGNUM with frame->fp. Update copyright.
6813 * parse.c (num_std_regs, std_regs): Delete.
6814 (target_map_name_to_register): Do not search std_regs. Update
6815 function description.
6816 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6817 declarations. Update copyright.
6818 Fix PR gdb/251.
6819
6820 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6821
6822 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6823 after the last symbol in a block.
6824
6825 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6826
6827 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6828 is non zero as a found symbol.
6829
6830 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6831
6832 * findvar.c: Include "builtin-regs.h".
6833 (value_of_register): Call value_of_builtin_reg when applicable.
6834 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6835 (target_map_name_to_register): Call
6836 builtin_reg_map_name_to_regnum.
6837 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6838 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6839 (builtin_regs_h): Define.
6840 (builtin-regs.o): New target.
6841 (findvar.o): Add $(builtin_regs_h).
6842 * builtin-regs.c, builtin-regs.h: New files.
6843 * std-regs.c: New file.
6844 Partial fix for PR gdb/251.
6845
6846 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6847
6848 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6849 it's no longer required.
6850
6851 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6852
6853 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6854
6855 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6856
6857 From Jimi X <jimix@watson.ibm.com>:
6858 * rs6000-tdep.c (rs6000_software_single_step): Use
6859 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6860 and size. Use target_insert_breakpoint() and
6861 target_remove_breakpoint() to insert and remove breakpoints
6862 instead of explicit memory reads and writes.
6863
6864 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6865
6866 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6867 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6868 ELF_OBJECT_FORMAT ifdef.
6869
6870 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6871
6872 From Jimi X <jimix@watson.ibm.com>:
6873 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6874
6875 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6876
6877 From Jimi X <jimix@watson.ibm.com>:
6878 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6879 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6880
6881 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6882
6883 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6884 s/asprintf/xasprintf/.
6885 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6886
6887 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6888
6889 I believe Jeff Law denies responsability for this one:
6890 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6891 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6892 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6893 Work-around for PR gdb/366.
6894
6895 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6896
6897 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6898 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6899 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6900
6901 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6902
6903 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6904 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6905 information.
6906
6907 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6908
6909 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6910 maintainer.
6911
6912 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6913
6914 * README (Reporting Bugs in GDB): Document the bug web page as the
6915 prefered way of submitting bugs.
6916 Fix PR gdb/402.
6917
6918 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6919
6920 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6921 -1. Update comment.
6922 * gdbarch.h, gdbarch.c: Re-generate.
6923
6924 2002-04-07 Andreas Schwab <schwab@suse.de>
6925
6926 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6927 buffer to regcache_collect.
6928
6929 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6930
6931 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6932 * gdbarch.c, gdbarch.h: Re-generate.
6933
6934 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6935
6936 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6937 declaration. Fix -Werror.
6938
6939 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6940
6941 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6942 * gdbarch.c: Regenerate.
6943
6944 2002-04-05 Michael Snyder <msnyder@redhat.com>
6945
6946 * breakpoint.c (clear_command): Rewrite middle section to
6947 combine two loops with identical control conditions.
6948 Add a cleanup to eliminate a memory leak.
6949 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6950
6951 2002-04-05 H.J. Lu (hjl@gnu.org)
6952
6953 * solib-svr4.c (bkpt_names): Add "__start".
6954
6955 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6956
6957 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6958 as test for 64 bit target.
6959
6960 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6961
6962 * h8500-tdep.c (h8500_write_fp): Delete function.
6963 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6964 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6965 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6967 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6968 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6969 (s390_write_fp):
6970 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6971 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6972 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6973 (d10v_write_fp): Delete function.
6974 * inferior.h (write_fp, generic_target_write_fp): Delete
6975 declarations.
6976 * regcache.c (generic_target_write_fp): Delete function.
6977 (write_fp): Delete function.
6978 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6979 * gdbarch.h, gdbarch.c: Regenerate.
6980 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6981 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6982 (sparc64_write_fp): Delete declaration.
6983 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6984 (h8500_write_fp): Delete declaration.
6985
6986 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6987
6988 * sparc-tdep.c (sparc64_write_fp): Delete.
6989 (sparc_push_dummy_frame): Replace write_fp call with code to store
6990 the FP directly.
6991 (sparc_gdbarch_init): Do not initialize write_fp.
6992
6993 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6994
6995 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6996 clause.
6997
6998 2002-03-29 Jim Blandy <jimb@redhat.com>
6999
7000 * stack.c (get_selected_block): Add new argument `addr_in_block',
7001 used to return the exact code address we used to select the block,
7002 not just the block.
7003 * blockframe.c (get_frame_block, get_current_block): Same.
7004 * frame.h (get_frame_block, get_current_block,
7005 get_selected_block): Update declarations.
7006 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7007 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7008
7009 2002-04-05 Michael Snyder <msnyder@redhat.com>
7010
7011 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7012 warning message.
7013
7014 2002-04-05 J. Brobecker <brobecker@gnat.com>
7015
7016 * utils.c (xfullpath): New function.
7017 * defs.h (xfullpath): Add declaration.
7018 * source.c (openp): Use xfullpath in place of gdb_realpath to
7019 avoid resolving the basename part of filenames when the
7020 associated file is a symbolic link. This fixes a potential
7021 inconsistency between the filenames known to GDB and the
7022 filenames it prints in the annotations.
7023 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7024 to be able to match a filename with either the real filename, or
7025 the name of any symbolic link to this file.
7026 (lookup_partial_symtab): Ditto.
7027
7028 2002-04-04 Michael Snyder <msnyder@redhat.com>
7029
7030 * breakpoint.c: Add support for hardware breakpoints in overlays.
7031 (overlay_events_enabled): New state variable.
7032 (insert_breakpoints): Use overlay_events_enabled to decide
7033 whether to attempt to set a breakpoint at the overlay load addr.
7034 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7035 (remove_breakpoint): Use overlay_events_enabled to decide
7036 whether breakpoints need to be removed from overlay load addr.
7037 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7038 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7039 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7040 disable_overlay_breakpoints): Update overlay_events_enabled.
7041
7042 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7043
7044 * dwarf2read.c (struct function_range): New.
7045 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7046 (check_cu_functions): New.
7047 (read_file_scope): Initialize global function lists.
7048 Call dwarf_decode_line after processing children.
7049 (read_func_scope): Add to global function list.
7050 (dwarf_decode_lines): Call check_cu_functions everywhere
7051 record_line is called. Call record_line with a linenumber
7052 of 0 to mark sequence ends.
7053
7054 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7055
7056 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7057 change sync with glibc.
7058
7059 2002-04-03 Jim Blandy <jimb@redhat.com>
7060
7061 * configure.in: Call AC_C_INLINE.
7062 * configure: Regenerated.
7063
7064 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7065
7066 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7067 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7068
7069 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7070
7071 * NEWS: Mention gcore support on FreeBSD/i386.
7072
7073 * fbsd-proc.c: New file.
7074 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7075 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7076
7077 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7078 while statement.
7079
7080 2002-03-29 Jim Blandy <jimb@redhat.com>
7081
7082 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7083 unescaped newlines in string literals, but newer ones don't. So
7084 escape them.
7085
7086 2002-03-26 Michael Snyder <msnyder@redhat.com>
7087 Andrew Cagney <cagney@redhat.com>
7088
7089 * cli/cli-dump.c: New file. Dump memory to file,
7090 restore file to memory.
7091 * cli/cli-dump.h: New file.
7092 * Makefile.in: Add rules, dependencies for cli-dump.o.
7093 * NEWS: Mention new commands.
7094
7095 2002-03-28 Michael Snyder <msnyder@redhat.com>
7096
7097 * symfile.c (symbol_file_add): Move test for null symbols to later.
7098
7099 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7100
7101 From veksler at il.ibm.com:
7102 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7103 the xstrduped original path.
7104 Fix PR gdb/417.
7105
7106 2002-03-27 Michael Snyder <msnyder@redhat.com>
7107
7108 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7109 * infcmd.c (_initialize_infcmd): Ditto.
7110 * language.c (_initialize_language): Ditto.
7111 * symfile.c (_initialize_symfile): Ditto.
7112 * top.c (_init_main): Ditto.
7113 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7114
7115 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7116
7117 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7118 vector registers handling.
7119 (skip_prologue): Handle new AltiVec instructions. Fill in new
7120 fields of frame data.
7121 (frame_get_saved_regs): Fill in information for AltiVec registers.
7122
7123 2002-03-27 Jim Blandy <jimb@redhat.com>
7124
7125 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7126 a function; leave this macro here to invoke that function.
7127 (symbol_init_mangled_name): Declaration for that function.
7128 * symtab.c (symbol_init_mangled_name): New function.
7129
7130 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7131
7132 * valarith.c: Replace strerror with safe_strerror.
7133 * tracepoint.c: Ditto.
7134 * lin-lwp.c: Ditto.
7135 * go32-nat.c: Ditto.
7136 * inflow.c: Ditto.
7137 * gnu-nat.c: Ditto.
7138
7139 2002-03-27 Andreas Schwab <schwab@suse.de>
7140
7141 * event-top.c (command_line_handler): Remove useless if.
7142
7143 2002-03-27 Andreas Jaeger <aj@suse.de>
7144
7145 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7146 comment.
7147
7148 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7149
7150 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7151 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7152 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7153 (x86_64_linux_dr_get_status, supply_gregset),
7154 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7155 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7156 (x86_64_register_info_table): Add.
7157 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7158 (x86_64_register_raw_size, x86_64_register_virtual_type),
7159 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7160 general x86_64_register_info_table.
7161 (i386_gdbarch_init): gdbarch_register_bytes is now set
7162 dynamicaly during initialization.
7163 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7164 * gdbserver/linux-x86-64-low.c: Ditto.
7165
7166 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7167
7168 * gdbserver/server.c (main): Call target_signal_to_host_p
7169 and target_signal_to_host on signals received from the remote.
7170 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7171 target_signal_from_host on signals sent to the remote.
7172 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7173 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7174
7175 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7176
7177 * signals/signals.c: Include "server.h" in gdbserver build.
7178 (target_signal_from_name): Don't use STREQ.
7179 (_initialize_signals): Likewise. Don't include function in
7180 gdbserver build.
7181
7182 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7183
7184 * signals.c: Moved to...
7185 * signals/signals.c: Here.
7186 * Makefile (signals.o): Update.
7187
7188 2002-03-26 Jeff Law (law@redhat.com)
7189
7190 * somread.c (som_symtab_read): Remove some commented out code and
7191 updated related comments. Do not set the minimal symbol table to
7192 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7193 in a dynamic executable.
7194 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7195 where we are unable to find the minimal symbol for the given
7196 PC value.
7197
7198 2002-03-25 Jeff Law (law@redhat.com)
7199
7200 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7201
7202 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7203
7204 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7205
7206 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7207
7208 * command.h: Update copyright.
7209 (struct cmd_list_element): Replace definition with opaque
7210 declaration.
7211 (enum cmd_types): Document that it will eventually be moved to
7212 cli/cli-decode.h
7213 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7214 (MALLOCED_REPLACEMENT): Delete macro.
7215 * Makefile.in (cli_decode_h): Add $(command_h).
7216 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7217 * top.c: Include "cli/cli-decode.h".
7218 * completer.c: Include "cli/cli-decode.h".
7219 * maint.c: Include "cli/cli-decode.h".
7220 * cli/cli-decode.h: Include "command.h".
7221 (enum command_class): Delete.
7222 (enum cmd_types): Comment out.
7223 (enum cmd_auto_boolean): Delete.
7224 (enum var_types): Delete.
7225
7226 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7227
7228 * cli/cli-decode.c: Include "gdb_assert.h".
7229 (add_set_or_show_cmd): New static function.
7230 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7231 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7232 all fields, such as func, from the set command.
7233
7234 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7235
7236 * MAINTAINERS (sh-elf): Change warning flag to -w.
7237
7238 2002-03-23 Andrew Cagney <cagney@redhat.com>
7239
7240 * defs.h (error): Add printf format attribute.
7241 * thread-db.c (thread_from_lwp): Fix error format string.
7242 * stack.c (parse_frame_specification): Ditto.
7243 * cli/cli-decode.c (undef_cmd_error): Ditto.
7244 * scm-lang.c (scm_lookup_name): Ditto.
7245 * tracepoint.c (trace_error): Ditto.
7246 * remote-utils.c (usage): Ditto.
7247 * remote.c (compare_sections_command): Ditto.
7248 Fix PR gdb/328.
7249
7250 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7251
7252 * gdbtypes.c (append_composite_type_field): New function.
7253 (init_composite_type): New function.
7254 * gdbtypes.h (append_composite_type_field): Declare.
7255 (init_composite_type): Ditto.
7256
7257 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7258
7259 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7260 function.
7261 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7262 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7263 structure returning convention for SYSV ABI case, but not
7264 for GNU/Linux, FreeBSD, or NetBSD.
7265
7266 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7267
7268 * symtab.h (lookup_block_symbol): Add mangled_name argument
7269 to prototype.
7270
7271 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7272 with new mangled_name argument.
7273 * linespec.c (decode_line_1): Likewise.
7274 * valops (value_of_this): Likewise.
7275 * symtab.c (lookup_transparent_type): Likewise.
7276 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7277 (lookup_symbol): If we are given a mangled name, pass it down
7278 to lookup_symbol_aux.
7279 (lookup_block_symbol): If we are given a mangled name to check
7280 against, only return symbols which match it.
7281
7282 2002-03-22 Christopher Faylor <cgf@redhat.com>
7283
7284 * win32-nat.c (child_create_inferior): Check for proper shell to use
7285 here, in case the user changes it on the fly.
7286 (_initialize_inftarg): Remove shell path considerations.
7287
7288 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7289
7290 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7291 for gdbarch_max_register_raw_size and max_register_virtual_size.
7292 Adjust copyright year.
7293
7294 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7295
7296 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7297 in a function to cover the entire beginning of the function
7298 as well if it does not already.
7299
7300 2002-03-21 Tom Rix <trix@redhat.com>
7301
7302 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7303 (rs6000_ptrace64): Renamed from ptrace64.
7304
7305 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7306
7307 * gdbserver/remote-utils.c (remote_open): Don't call
7308 getprotobyname, we're all using TCP here so just use
7309 IPPROTO_TCP.
7310 * gdbserver/gdbreplay.c (remote_open): Ditto.
7311
7312 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7313
7314 * regcache.c (_initialize_regcache): No need to call
7315 build_regcache() at this time; it gets called whenever
7316 the gdbarch changes.
7317
7318 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7319
7320 * sparc-nat.c: Include sys/param.h where possible.
7321
7322 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7323
7324 Fix PR gdb/422.
7325 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7326 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7327 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7328 complex types.
7329 * stabsread.c (rs6000_builtin_type): Likewise.
7330 (read_sun_floating_type): Likewise.
7331
7332 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7333
7334 * stabsread.c (read_member_functions): Remove skip code for duplicate
7335 constructor/destructor methods. Use standard parsing for these
7336 methods and just do not chain them to the list of methods after
7337 parsing.
7338
7339 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7340
7341 * coffread.c: Remove redundant static declarations. Replace
7342 occurrences of `PTR' with `void *'.
7343 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7344 * top.h (quit_cover): Likewise.
7345 * defs.h (catch_errors): Likewise.
7346
7347 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7348
7349 * defs.h (XMALLOC): Define.
7350 * gdb-events.sh (XMALLOC): Delete macro.
7351 * gdb-events.c, gdb-events.h: Regenerate.
7352 * gdbarch.sh (XMALLOC): Delete macro.
7353 * gdbarch.c: Regenerate.
7354 * serial.c (XMALLOC): Delete macro.
7355 * ui-file.c (XMALLOC): Ditto.
7356 * ser-unix.h (XMALLOC): Ditto.
7357 * sh-tdep.c (XMALLOC): Ditto.
7358 * ui-out.c (XMALLOC): Ditto.
7359 * utils.c (XMALLOC): Ditto.
7360 * i386-tdep.c (XMALLOC): Ditto.
7361 * gdb-events.c (XMALLOC): Ditto.
7362 * d10v-tdep.c (XMALLOC): Ditto.
7363 * cli-out.c (XMALLOC): Ditto.
7364
7365 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7366 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7367 * ui-file.c, ui-out.c: Ditto.
7368
7369 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7370
7371 * command.h (struct cmd_list_element): Add field context.
7372 (set_cmd_context, get_cmd_context): Declare.
7373 * cli/cli-decode.h: Ditto.
7374 * cli/cli-decode.c (get_cmd_context): New function.
7375 (set_cmd_context): New function.
7376 (add_cmd): Initialize context.
7377 Part of fixing PR gdb/145 and PR gdb/146.
7378
7379 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7380
7381 * cli/cli-decode.c (cmd_type): New function.
7382 * command.h (cmd_type): Declare.
7383 * infrun.c (set_schedlock_func): Call function cmd_type.
7384 * kod.c (kod_set_os): Call cmd_type.
7385 * cris-tdep.c (cris_version_update): Use function cmd_type.
7386 (cris_mode_update, cris_abi_update): Ditto.
7387
7388 * command.h: (execute_cmd_post_hook): Declare.
7389 (execute_cmd_pre_hook): Declare.
7390 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7391 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7392 functions. Execute pre/post hook while ensuring that afterwords
7393 hook_in is cleared.
7394 * top.c (execute_command): Use execute_cmd_post_hook, and
7395 execute_cmd_pre_hook to execute pre/post commands.
7396 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7397 hook_stop_stub.
7398 (hook_stop_stub): Call execute_cmd_pre_hook.
7399
7400 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7401
7402 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7403 set'' and this leads to a core dump. Move xstrdup of
7404 operating_system to after check that it is not NULL.
7405
7406 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7407
7408 * kod.c (kod_set_os): Remove unnecessary check that
7409 ``command->type'' is set_cmd.
7410
7411 * valprint.c (set_input_radix): Use input_radix.
7412 (set_output_radix): Use output_radix.
7413 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7414 isn't reverted.
7415
7416 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7417
7418 * value.h (struct value): Delete field ``substring_addr''. Change
7419 aligner fields to force_doublest_align, force_longest_align,
7420 force_core_addr_align and force_pointer_aligh.
7421
7422 * value.h (struct value): Fix typo in above change.
7423
7424 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7425
7426 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7427 to fix internal_error from ``maintenance print architecture''.
7428
7429 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7430
7431 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7432 for gcc versions after gcc-2.8.1.
7433
7434 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7435
7436 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7437 for method resolution. Restore adjustment of ``this'' pointer after
7438 calling value_struct_elt, which was accidentally removed during the
7439 HP merge.
7440
7441 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7442
7443 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7444 value_of_register.
7445 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7446 get_saved_register.
7447 * value.h (value_of_register): Update.
7448
7449 2002-03-14 Richard Henderson <rth@redhat.com>
7450
7451 * configure.in: Detect declaration for canonicalize_file_name.
7452 * utils.c (canonicalize_file_name): Declare, if needed.
7453 (gdb_realpath): Prefer realpath if available and usable.
7454 * config.in, configure: Rebuild.
7455
7456 2002-03-14 Richard Henderson <rth@redhat.com>
7457
7458 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7459 a constant array bound.
7460
7461 * MAINTAINERS: Add myself to write-after-approval.
7462
7463 2002-03-14 Michael Snyder <msnyder@redhat.com>
7464
7465 * symfile.c (syms_from_objfile): Return immediately if no syms.
7466 (symbol_file_add): Return immediately if no syms.
7467 (find_sym_fns): Return immediately if no syms.
7468
7469 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7470
7471 * gdbserver/remote-util.c (remote_open): Print remote-side's
7472 IP address when remote debugging over the network.
7473
7474 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7475
7476 * config/sparc/fbsd.mh: Fix copyright.
7477 * config/sparc/fbsd.mt: Likewise.
7478
7479 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7480
7481 * MAINTAINERS: Fix typo in name of gdb warnings option.
7482 (x86-64): Fix formating so that this can be parsed by awk.
7483
7484 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7485
7486 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7487 * defs.h: Include "gdb/signals.h".
7488 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7489
7490 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7491
7492 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7493 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7494 from x86-64-tdep.h
7495
7496 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7497 Don Howard <dhoward@redhat.com>
7498
7499 * mips-tdep.c (ST0_FR): Define.
7500 (mips2_fp_compat): New function, temporarily disabled.
7501 (mips_read_fp_register_single): New function.
7502 (mips_read_fp_register_double): New function.
7503 (mips_print_register): Use them.
7504 (do_fp_register_row): Likewise.
7505
7506 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7507
7508 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7509 approval''.
7510
7511 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7512
7513 * stabsread.c (read_member_functions): Fix is_stub test for
7514 static member functions, improve comment.
7515
7516 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7517
7518 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7519 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7520 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7521 commands that set boolean values.
7522 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7523 (arm_rdi_resume): Always initialize PC.
7524 (arm_rdi_open): Don't use rslt as a boolean.
7525 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7526 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7527 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7528 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7529
7530 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7531
7532 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7533 * configure: Rebuilt.
7534
7535 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7536
7537 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7538 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7539
7540 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7541
7542 * cli/cli-decode.c (set_cmd_completer): New function.
7543 * command.h (set_cmd_completer): Declare.
7544 * cli/cli-decode.h (set_cmd_completer): Ditto.
7545
7546 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7547 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7548 * win32-nat.c (_initialize_inftarg): Ditto.
7549 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7550 * proc-api.c (_initialize_proc_api): Ditto.
7551 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7552 * source.c (_initialize_source): Ditto.
7553 * exec.c (_initialize_exec): Ditto.
7554 * solib.c (_initialize_solib): Ditto.
7555 * top.c (init_main): Ditto.
7556 * tracepoint.c (_initialize_tracepoint): Ditto.
7557 * symfile.c (_initialize_symfile): Ditto.
7558 * printcmd.c (_initialize_printcmd): Ditto.
7559 * infcmd.c (_initialize_infcmd): Ditto.
7560 * corefile.c (_initialize_core): Ditto.
7561
7562 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7563
7564 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7565
7566 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7567
7568 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7569
7570 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7571
7572 * NEWS: Update headings, 5.2 has branched.
7573
7574 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7575
7576 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7577 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7578 (register_addr, REGISTER_RAW_SIZE): Likewise.
7579 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7580 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7581
7582 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7583
7584 * MAINTAINERS (x86-64): Add myself.
7585 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7586 changed value_ptr -> struct value *
7587
7588 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7589
7590 * configure.host (sparc64-*-freebsd): Add.
7591 * configure.tgt: Likewise.
7592 * config/sparc/fbsd.mh: New file.
7593 * config/sparc/fbsd.mt: Likewise.
7594 * config/sparc/nm-fbsd.h: Likewise.
7595 * config/sparc/tm-fbsd.h: Likewise.
7596
7597 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7598
7599 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7600 regformats/reg-s390x.dat.
7601
7602 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7603
7604 * utils.c: Add FIXME explaining true/false problem.
7605
7606 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7607
7608 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7609
7610 2002-02-28 Michael Chastain <mec@shout.net>
7611
7612 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7613
7614 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7615
7616 * gdbserver/linux-s390-low.c: New file.
7617 * regformats/reg-s390.dat: New file.
7618 * regformats/reg-s390x.dat: New file.
7619 * gdbserver/configure.srv: Add S/390.
7620 * gdbserver/Makefile.in: Add S/390.
7621 * configure.tgt: Enable gdbserver for S/390.
7622
7623 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7624
7625 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7626 first line of the doc string for "info dos", except at the end of
7627 the sentence, since the short help stops at the first period.
7628
7629 2002-02-28 Jason Merrill <jason@redhat.com>
7630
7631 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7632
7633 2002-02-27 Fred Fish <fnf@redhat.com>
7634
7635 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7636 comment (dumy -> dummy).
7637
7638 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7639
7640 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7641
7642 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7643
7644 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7645
7646 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7647
7648 * gdbserver/acconfig.h: New file.
7649 * gdbserver/i387-fp.c: New file.
7650 * gdbserver/i387-fp.h: New file.
7651 * gdbserver/linux-x86-64.c: New file.
7652 * regformats/reg-x86-64.dat: New file.
7653 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7654 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7655 * gdbserver/configure.in: Add support for regsets.
7656 * gdbserver/config.in: Regenerate.
7657 * gdbserver/configure: Regenerate.
7658 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7659 * gdbserver/linux-low.h: New file.
7660 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7661 for regsets.
7662 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7663 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7664 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7665 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7666 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7667 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7668 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7669 "i387-fp.h". Add PTRACE_GETREGS and friends.
7670 * gdbserver/regcache.c (supply_register): New function.
7671 (supply_register_by_name): New function.
7672 (collect_register): New function.
7673 (collect_register_by_name): New function.
7674
7675 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7676
7677 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7678 (config.status): Add configure.srv dependency.
7679 (server_h): Add config.h dependency.
7680
7681 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7682
7683 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7684 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7685 * gdbserver/configure.srv: Change i386-*-linux* to use
7686 reg-i386-linux.o.
7687
7688 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7689
7690 * x86-64-tdep.c: Re-indent. Update copyright date.
7691
7692 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7693
7694 From Michal Ludvig <mludvig@suse.cz>:
7695 * x86-64-tdep.c (value.h): Delete.
7696 (gdb_assert.h): Include.
7697 (x86_64_register_convert_to_virtual,
7698 x86_64_register_convert_to_raw ): Add check which lets only
7699 floating-point values to be converted.
7700 (value_push): Delete.
7701 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7702 (i386_gdbarch_init): Number of register_bytes fixed.
7703
7704 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7705
7706 * MAINTAINERS: Add x86-64 target.
7707
7708 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7709
7710 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7711 * osfsolib.c (solib_map_sections): Ditto.
7712 * irix5-nat.c (solib_map_sections): Ditto.
7713 * corelow.c (gdb_check_format): Ditto.
7714 * symfile.c (symfile_bfd_open): Ditto.
7715 * solib.c (solib_map_sections): Ditto.
7716 Fix PR gdb/354.
7717
7718 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7719
7720 * remote.c (_initialize_remote): By default, disable ``e'' and
7721 ``E'' step out-of-range packets.
7722
7723 2002-02-26 Andreas Schwab <schwab@suse.de>
7724
7725 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7726 m68k_linux_frame_saved_pc.
7727 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7728 in_sigtramp.
7729 (SIGCONTEXT_PC_OFFSET): Remove.
7730 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7731 m68k_linux_sigtramp_saved_pc): New functions.
7732 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7733 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7734 (UCONTEXT_PC_OFFSET): Define.
7735 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7736 non-RT and RT signal trampolines.
7737
7738 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7739
7740 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7741 (TARGET_NBPG, STACK_END_ADDR): Delete
7742 (VARIABLES_INSIDE_BLOCK): Delete.
7743
7744 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7745
7746 * utils.c (perror_with_name): Make string parameter constant.
7747 (print_sys_errmsg): Ditto.
7748 (query): Ditto.
7749 * defs.h (perror_with_name): Update.
7750 (print_sys_errmsg): Update.
7751 (query): Update.
7752
7753 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7754
7755 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7756 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7757
7758 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7759
7760 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7761 if it already matches the current architecture from the exec file.
7762 Include arch-utils.h for gdbarch_info_init prototype.
7763 * Makefile.in (rs6000-nat.o): Update dependencies.
7764
7765 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7766
7767 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7768 list of exported variables.
7769
7770 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7771
7772 * gdbserver/configure.srv: New file.
7773 * gdbserver/configure.in: Use configure.srv instead
7774 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7775 from it.
7776 * gdbserver/configure: Regenerated.
7777 * gdbserver/terminal.h: New file.
7778 * gdbserver/Makefile.in: Update for configure changes. Remove
7779 more unneeded include paths.
7780
7781 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7782
7783 From wiz at danbala:
7784 * config/sparc/tm-sp64.h: Fix grammar and typos.
7785 Fix PR gdb/287.
7786
7787 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7788
7789 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7790 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7791 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7792 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7793 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7794 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7795 * s390-tdep.c: Ditto.
7796 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7797 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7798 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7799 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7800 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7801 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7802 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7803 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7804 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7805 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7806 Fix PR gdb/378.
7807
7808 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7809
7810 * lin-thread.c: Delete file.
7811 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7812 to gdb_proc_service.h.
7813 * configure: Re-generate.
7814
7815 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7816 * serial.c (serial_open): Delete check for "ocd".
7817 Fix PR gdb/349.
7818
7819 * Makefile.in (linux-thread.o): Delete target.
7820 * linux-thread.c: Delete file.
7821
7822 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7823 renamed SH files to be consistent.
7824
7825 * symtab.c (sort_search_symbols): Use xfree.
7826
7827 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7828
7829 * arm-linux-tdep.c (arm_linux_init_abi): Register
7830 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7831 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7832 definition with undef, since we don't want the sysvr4 definition.
7833 (SKIP_TRAMPOLINE_CODE): Likewise.
7834
7835 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7836
7837 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7838
7839 * configure.in: (AC_CHECK_FUNCS) Added test for
7840 canonicalize_file_name Regenerated.
7841 * config.in, configure: Regenerated.
7842 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7843 defined use canonicalize_file_name.
7844
7845 2002-02-23 Michael Chastain <mec@shout.net>
7846
7847 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7848
7849 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7850
7851 * README: Remove references to cygnus.com.
7852 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7853 dot com'' form. Remove references to cygnus.com and sourceware.
7854
7855 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7856
7857 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7858 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7859 1003.1-2001 no longer allows "head -1".
7860 * gdb/Makefile.in (version.c): Likewise.
7861 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7862 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7863 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7864
7865 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7866
7867 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7868 * command.h (cmd_cfunc_eq): Declare.
7869 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7870
7871 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7872 ``struct cmd_list_element *''.
7873 * cli/cli-cmds.c (is_complete_command): Update. Use
7874 cmd_cfunc_eq.
7875 * top.c (execute_command): Pass the command to
7876 is_complete_command.
7877 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7878
7879 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7880
7881 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7882 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7883 architecture defines.
7884 * s390-tdep.c (s390_gdbarch_init): Likewise.
7885
7886 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7887
7888 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7889 (arm_linux_push_arguments): Likewise.
7890 (arm_linux_init_abi): Register them. Also register linux-specific
7891 call_dummy_words.
7892 (find_minsym_and_objfile): Use strcmp, not STREQ.
7893 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7894 (arm_linux_call_dummy_words): Delete declaration.
7895 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7896 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7897 declarations.
7898 (LOWEST_PC): Delete.
7899
7900 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7901
7902 * maint.c (print_section_info): Do not prepend `0x' to filepos
7903 output, it will be handled by local_hex_string_custom.
7904
7905 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7908 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7909 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7910
7911 2002-02-22 Jim Blandy <jimb@redhat.com>
7912
7913 Indicate that the bcache functions don't change the strings
7914 they're passed.
7915 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7916 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7917
7918 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7919
7920 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7921
7922 2002-02-21 Christopher Faylor <cgf@redhat.com>
7923
7924 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7925 find the complete path to a loaded DLL.
7926
7927 2002-02-21 Fred Fish <fnf@redhat.com>
7928
7929 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7930 that marks the end of the range of a function, enter a line number
7931 entry that has a line number of zero and a PC offset that matches
7932 the end of the function. This starts a range of PC's for which no
7933 line number information is known.
7934 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7935 PC's for which no line number info is found (line number is zero)
7936 then we didn't find any valid line information.
7937 * symtab.h: Document use of zero line number entry.
7938
7939 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7940
7941 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7942 (have_ptrace_getvrregs): Define for run time checks.
7943 (gdb_vrregset_t): New type for Altivec register handling.
7944 (fetch_register, store_register): Fetch/store altivec register
7945 when needed.
7946 (fetch_altivec_register, store_altivec_register): New functions.
7947 (supply_vrregset, fill_vrregset): New functions.
7948 (fetch_altivec_registers, store_altivec_registers): New functions.
7949 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7950 registers as well.
7951
7952 2002-02-21 Jiri Smid <smid@suse.cz>
7953
7954 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7955
7956 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7957
7958 * Makefile.in (armnbsd-nat.o): Update dependencies.
7959 * armnbsd-nat.c (supply_gregset): New function. Common code to
7960 supply the integer register set.
7961 (supply_fparegset): New function. Similar for FPA registers.
7962 (fetch_regs, fetch_fp_regs): Use them.
7963 (fetch_core_registers): Likewise.
7964 (fetch_elfcore_registers): New function.
7965 (arm_netbsd_elfcore_fns): New core-file type specification.
7966 (_initialize_arm_netbsd_nat): Register it.
7967
7968 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7969
7970 * armnbsd-nat.c: Include gdbcore.h.
7971 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7972 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7973 'void' to declaration, to shut up ARI.
7974 (fetch_core_registers): Make static. Rewrite using supply_register.
7975 (arm_netbsd_core_fns): New core-file type specification.
7976 (_initialize_arm_netbsd_nat): New function.
7977
7978 2002-02-21 Christopher Faylor <cgf@redhat.com>
7979
7980 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7981 value.
7982
7983 2002-02-20 Christopher Faylor <cgf@redhat.com>
7984
7985 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7986 fails.
7987
7988 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7989
7990 * jv-exp.y (parse_number): Change type of implicit longs
7991 to builtin_type_uint64.
7992
7993 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7994
7995 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7996 to be an integer instead of a `union wait'.
7997
7998 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7999
8000 * mips-linux-nat.c: Call the operating system GNU/Linux.
8001 * mips-linux-tdep.c: Likewise.
8002 * mips-tdep.c: Likewise.
8003
8004 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8005
8006 Fix PR gdb/265.
8007 * jv-exp.y (parse_number): Handle 64-bit integers.
8008
8009 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8010
8011 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8012 AC_STDC_HEADERS to AC_HEADER_STDC.
8013 * gdbserver/configure: Regenerated.
8014
8015 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8016
8017 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8018 is defined.
8019 * sparc-tdep.c (get_longjmp_target): Likewise.
8020
8021 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8022
8023 * News: Add news about ARM and Multi-arch. Mention the new target
8024 arm*-*-netbsd*.
8025
8026 2002-02-19 Jim Blandy <jimb@redhat.com>
8027
8028 * stabsread.c (error_type_complaint): Improve error message.
8029
8030 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8031
8032 * gdbserver/README: Update documentation.
8033 * gdbserver/configure.in: Update configury to match documentation.
8034 * gdbserver/Makefile.in: Likewise.
8035 * gdbserver/configure: Regenerated.
8036 * gdbserver/aclocal.m4: New file, generated by aclocal.
8037 * gdbserver/config.in: New file, generated by autoheader.
8038
8039 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8040
8041 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8042 armnbsd-nat.c.
8043
8044 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8045
8046 * arm-tdep.h (enum arm_float_model): New enum.
8047 (struct gdbarch_tdep): Add fp_model.
8048 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8049 up floating-point conversions until we know the floating-point model
8050 in use by the inferior. Don't complain about being unable to
8051 determine the ABI of the inferior when we don't have one.
8052 (arm_extract_return_value): Support different floating-point models.
8053 (arm_store_return_value): Likewise.
8054 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8055 ARM_FLOAT_SOFT.
8056 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8057
8058 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8059
8060 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8061 of ``current_gdbarch''.
8062
8063 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * armnbsd-nat.c : ANSIfy all function declarations.
8066 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8067 (fetch_inferior_registers): Re-implement in terms of above.
8068 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8069 (store_inferior_registers): Re-implement in terms of above.
8070
8071 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8072
8073 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8074 kernel.
8075 * arm-linux-tdep.c: Likewise.
8076 * config/arm/tm-linux.h: Likewise.
8077
8078 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8079
8080 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8081 * config/arm/nbsd.mt (TM_FILE): Delete.
8082 * config/arm/tm-nbsd.h: Delete.
8083
8084 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8085
8086 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8087 Initialize CALL_DUMMY_LENGTH.
8088
8089 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8090
8091 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8092 function.
8093 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8094 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8095 defines one thing and that is incorrect for this port.
8096 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8097
8098 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8099
8100 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8101
8102 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8103
8104 * win32-nat.c (display_selector): New function. Displays information
8105 about the information returned by GetThreadSelectorEntry API function.
8106 (display_selectors): New function. Displays the infomation of
8107 the selector given as argument, or of CS, DS ans FS selectors
8108 if no argument is given.
8109 ( _initialize_inftarg): Add "w32" as info prefix command.
8110 Add "info w32 selector" as command calling display_selectors.
8111
8112 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8113
8114 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8115 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8116 if not defined.
8117
8118 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8121
8122 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8123
8124 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8125 (arm_fix_call_dummy): Call it.
8126 (arm_call_dummy_breakpoint_offset): Delete.
8127 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8128 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8129
8130 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8131
8132 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8133 Default to func_frame_chain_valid.
8134 * gdbarch.h, gdbarch.c: Re-generate.
8135 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8136
8137 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8138
8139 * ppc-linux-nat.c: Update copyright.
8140 (fetch_register, store_register): Add tid parameter, don't compute
8141 tid here.
8142 (fetch_ppc_registers, store_ppc_registers): Add tid
8143 parameter. Pass it along to callees.
8144 (fetch_inferior_registers, store_inferior_registers): Compute tid
8145 here, and pass it to calleed functions.
8146 (fill_gregset, supply_fpregset): Clean up formatting.
8147
8148 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8149
8150 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8151 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8152
8153 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8154
8155 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8156 * gdbarch.c gdbarch.h: Regenerate.
8157 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8158 function.
8159 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8160 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8161 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8162
8163 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8164 * arm-tdep.c (arm_get_longjmp_target): New function.
8165 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8166 this to a positive value register arm_get_longjmp_target as the
8167 longjmp handler.
8168 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8169 (arm_linux_init_abi): Set up longjmp description in tdep.
8170 * armnbsd-nat.c (get_longjmp_target): Delete.
8171 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8172 description in tdep.
8173 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8174 (get_longjmp_target): Delete declaration.
8175 (GET_LONGJMP_TARGET): Delete.
8176 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8177 (GET_LONGJMP_TARGET): Delete.
8178
8179 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8180
8181 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8182 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8183 of ``current_gdbarch''.
8184
8185 2002-02-17 Tom Tromey <tromey@redhat.com>
8186
8187 * cli/cli-cmds.c (compare_strings): New function.
8188 (complete_command): Only print each unique item once.
8189 * completer.h (complete_line): Declare.
8190 * completer.c (complete_line): New function.
8191 (line_completion_function): Use it.
8192
8193 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8194
8195 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8196 * gdbarch.h, gdbarch.c: Re-generate.
8197
8198 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8199
8200 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8201
8202 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8203
8204 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8205 * valops.c (value_arg_coerce): Don't take the address of a reference
8206 to convert an argument to a reference.
8207
8208 2002-02-15 Christopher Faylor <cgf@redhat.com>
8209
8210 * win32-nat.c (get_image_name): New function.
8211 (handle_load_dll): Use get_image_name function.
8212 (get_child_debug_event): Avoid registering debug events until possibly
8213 execed process is started.
8214 (child_create_inferior): Allow invocation via shell so that command
8215 line redirection, etc. works ok.
8216 (_initialize_inftarg): Add new command: "set shell" to control whether
8217 a shell is used to start a process.
8218
8219 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8220
8221 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8222 instead of find_register_by_number.
8223 (cannot_store_register): Likewise.
8224
8225 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8226
8227 * dwarf2read.c: Replace fprintf (stderr, ...) by
8228 fprintf_unfiltered (gdb_stderr, ...).
8229
8230 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8231
8232 * gdbserver/gdbserver.1: Document --attach.
8233
8234 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8235
8236 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8237 descriptions.
8238 * arm-tdep.c (arm_default_arm_le_breakpoint)
8239 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8240 (arm_default_thumb_be_breakpoint): New. Initialize them from
8241 traditional breakpoint defines.
8242 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8243 (arm_gdbarch_init): Initialize new breakpoint variables.
8244 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8245 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8246 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8247 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8248 code out to ...
8249 (arm_netbsd_init_abi_common): ... here; new function.
8250 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8251 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8252 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8253 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8254
8255 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8256
8257 * arm-tdep.h (enum arm_abi): New enum.
8258 (struct gdbarch_tdep): New structure.
8259 (LOWEST_PC): Provide a default.
8260 (arm_gdbarch_register_os_abi): Declare new function.
8261 * arm-tdep.c (arm_abi_names): New array.
8262 (process_note_abi_tag_sections): New function.
8263 (get_elfosabi): New function.
8264 (arm_gdbarch_register_os_abi): New function.
8265 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8266 support for that ABI has been built in, then call the appropriate
8267 configuration routine. Use gdbarch_num_regs() to get the number
8268 of registers.
8269 (arm_dump_tdep): New function.
8270 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8271 place-holder functions.
8272 (_initialize_arm_tdep): Register them.
8273 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8274
8275 * armnbsd-tdep.c: New file.
8276 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8277 * config/arm/nbsd.mt (TDEPFILES): Add it.
8278 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8279
8280 * armnbsd-nat.c: Include regcache.h.
8281 * Makefile.in (armnbsd-nat.o): Update dependency list.
8282
8283 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8284
8285 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * gdbserver/Makefile.in: Fix typos in target rules.
8288
8289 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8290
8291 Fix part of PR gdb/267.
8292 * linespec.c (find_methods): Handle constructors specially for now.
8293
8294 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8295
8296 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8297 handling.
8298 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8299 standard_coerce_float_to_double().
8300
8301 2002-02-14 Christopher Faylor <cgf@redhat.com>
8302
8303 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8304 GDBINIT_FILENAME.
8305
8306 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8307
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8309 find_variant_by_name, because it confuses the multiarch
8310 framework. Return NULL if there isn't an architecture with the
8311 user supplied name, instead of forcing a different one without
8312 recording the change with the multiarch machinery.
8313 (find_variant_by_name): Delete.
8314
8315 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8316
8317 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8318 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8319
8320 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8321
8322 * stack.c (print_frame_info_base): When calling
8323 print_frame_info_listing_hook, set current_source_symtab.
8324
8325 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8326
8327 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8328 and remove unused $(INCLUDE_DIR).
8329 Add regcache.c to OBS.
8330 Add generated register protocol files to clean target.
8331 Update dependencies for new objects, obsolete old target code.
8332
8333 * gdbserver/linux-low.c: Remove all platform-specific code to
8334 new files. Remove various dead code. Update to use regcache
8335 functionality.
8336 * gdbserver/remote-utils.c (fromhex): Add return statement
8337 to quiet warning.
8338 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8339 constant.
8340 (input_interrupt): Add integer parameter to match prototype
8341 of a signal handler.
8342 (outreg): Use register_data ().
8343 (prepare_resume_reply): Use gdbserver_expedite_regs.
8344 * gdbserver/server.c (main): Dynamically allocate own_buf because
8345 PBUFSIZ is no longer constant. Use registers_to_string () and
8346 registers_from_string ().
8347 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8348 for error (), fatal (), and warning (). Update definition of
8349 PBUFSIZ to use regcache functionality. Add include guard.
8350 * gdbserver/utils.c (fatal): Add missing ``const''.
8351 (warning): New function.
8352
8353 * regformats/regdat.sh: Include "regcache.h" in generated files.
8354 Provide init_registers () function.
8355 * regformats/regdef.h: Add prototype for set_register_cache ().
8356 Add include guard.
8357
8358 * gdbserver/linux-arm-low.c: New file.
8359 * gdbserver/linux-i386-low.c: New file.
8360 * gdbserver/linux-ia64-low.c: New file.
8361 * gdbserver/linux-m68k-low.c: New file.
8362 * gdbserver/linux-mips-low.c: New file.
8363 * gdbserver/linux-ppc-low.c: New file.
8364 * gdbserver/linux-sh-low.c: New file.
8365
8366 * gdbserver/regcache.c: New file.
8367 * gdbserver/regcache.h: New file.
8368
8369 * gdbserver/low-linux.c: Removed obsolete file.
8370
8371 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8372
8373 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8374 * config/i386/linux.mt: Likewise.
8375 * config/ia64/linux.mt: Likewise.
8376 * config/m68k/linux.mh: Likewise.
8377 * config/powerpc/linux.mh: Likewise.
8378 * config/mips/linux.mt: Likewise.
8379
8380 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8381
8382 * config/i386/i386lynx.mh: Mark gdbserver variables
8383 as (currently) obsolete for this target.
8384 * config/i386/nbsd.mt: Likewise.
8385 * config/i386/nbsdelf.mt: Likewise.
8386 * config/m32r/m32r.mt: Likewise.
8387 * config/m68k/m68klynx.mh: Likewise.
8388 * config/m68k/nbsd.mt: Likewise.
8389 * config/m68k/sun3os4.mh: Likewise.
8390 * config/mips/vr5000.mt: Likewise.
8391 * config/ns32k/nbsd.mt: Likewise.
8392 * config/pa/hppabsd.mh: Likewise.
8393 * config/pa/hppaosf.mh: Likewise.
8394 * config/powerpc/nbsd.mt: Likewise.
8395 * config/rs6000/rs6000lynx.mh: Likewise.
8396 * config/s390/s390.mt: Likewise.
8397 * config/s390/s390x.mt: Likewise.
8398 * config/sparc/sparclynx.mh: Likewise.
8399 * config/sparc/sun4os4.mh: Likewise.
8400 * config/i386/x86-64linux.mt: Likewise.
8401 * config/sparc/linux.mh: Likewise.
8402
8403 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8404
8405 * configure.tgt: Configure gdbserver only for known working
8406 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8407 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8408 SUBDIRS if it is configured. Update comment for ${nativefile}.
8409 * configure: Regenerated.
8410
8411 2002-02-13 Michael Snyder <msnyder@redhat.com>
8412
8413 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8414
8415 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8416 (default_gcore_mach): Just return 0, work around a problem in bfd.
8417 (default_gcore_target): OK to return NULL if exec_bfd is null.
8418 (make_mem_sec): Use a cast, avoid a warning.
8419
8420 * procfs.c (find_memory_regions_callback): Use a cast instead of
8421 calling host_pointer_to_address (which complains if
8422 sizeof (host pointer) != sizeof (target pointer)).
8423 (procfs_make_note_section): Avoid overflow in psargs string.
8424
8425 * procfs.c (procfs_make_note_section): Make the default
8426 implementation return an error.
8427
8428 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8429
8430 * procfs.c (procfs_make_note_section): Provide a default definition
8431 (for alpha-dec-osf4.0f). Fix typos.
8432
8433 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8434
8435 * linux-proc.c: Add include of regcache.h.
8436 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8437
8438 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8439
8440 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8441 * memattr.c (create_mem_region): Disallow useless empty region.
8442 Regions are half-open intervals, so allow [A..B) [B..C) as
8443 non-overlapping.
8444
8445 2002-02-13 Michael Chastain <mec@shout.net>
8446
8447 * defs.h: Kill CONST_PTR.
8448 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8449 * c-lang.c (c_builtin_types): Likewise.
8450 * ch-lang.c (ch_builtin_types): Likewise.
8451 * f-lang.c (f_builtin_types): Likewise.
8452 * language.c (unknown_builtin_types): Likewise.
8453 * m2-lang.c (m2_builtin_types): Likewise.
8454 * p-lang.c (pascal_builtin_types): Likewise.
8455 * scm-lang.c (c_builtin_types): Likewise.
8456
8457 2002-02-13 Keith Seitz <keiths@redhat.com>
8458
8459 * arm-tdep.h (arm_get_next_pc): Add declaration.
8460
8461 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8462
8463 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8464 with other related struct-returning functions.
8465 (arm_extract_struct_value_address): New function.
8466 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8467 initialize float_format, double_format and long_double_format as
8468 appropriate to the endianness of the target.
8469 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8470 (arm_use_struct_convention): Delete declaration.
8471 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8472
8473 2002-02-13 Keith Seitz <keiths@redhat.com>
8474
8475 * defs.h (core_addr_to_string_nz): New function.
8476
8477 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8478
8479 Apply missing bits of 2002-01-15 patch.
8480 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8481 (fill_fpregset): Use i387_fill_fsave.
8482
8483 2002-02-12 Keith Seitz <keiths@redhat.com>
8484
8485 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8486 (core_addr_to_string_nz): New function.
8487
8488 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8489
8490 * arm-linux-nat.c: Really include arm-tdep.h.
8491 * config/arm/tm-linux.h (struct type, struct value): Declare.
8492
8493 2002-02-11 Michael Snyder <msnyder@redhat.com>
8494
8495 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8496 (gcore section): Ifdef for Solaris and Unixware only.
8497 (procfs_do_thread_registers): Unixware needs one lwpstatus
8498 per thread (not one prstatus or pstatus).
8499 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8500 not over all gdb threads. For unixware, call elfcore_write_pstatus
8501 once before iterating over threads.
8502
8503 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8504
8505 * arm-tdep.h: New file.
8506 * arm-tdep.c: Include arm-tdep.h.
8507 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8508 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8509 (arm_print_float_info, arm_register_type, convert_to_extended)
8510 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8511 (arm_extract_return_value, arm_register_name): Make static.
8512 (arm_software_single_step): Similarly. Fix types in declaration.
8513 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8514 (arm_store_return_value, arm_store_struct_return): New functions.
8515 (arm_gdbarch_init): Register the above functions. Also register
8516 call_dummy_start_offset, sizeof_call_dummy_words,
8517 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8518 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8519 max_register_virtual_size, register_size. Set up
8520 prologue_cache.saved_regs here, rather than ...
8521 (_initialize_arm_tdep): ... here.
8522 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8523 declarations.
8524 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8525 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8526 (arm_print_float_info, arm_register_type, convert_to_extended)
8527 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8528 (arm_extract_return_value, arm_register_name): Delete declarations.
8529 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8530 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8531 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8532 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8533 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8534 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8535 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8536 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8537 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8538 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8539 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8540 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8541 interface.
8542 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8543 * remote-rdi.c remote-rdp.c: Likewise.
8544 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8545 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8546 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8547 definition.
8548
8549 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8550 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8551 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8552 from non-ARM_ prefixed definitions.
8553 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8554 all uses of above.
8555 * remote-rdi.c remote-rdp.c: Likewise.
8556 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8557
8558 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8559
8560 * arm-tdep.c (arm_frameless_function_invocation)
8561 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8562 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8563 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8564 (arm_pop_frame, arm_get_next_pc): Make static.
8565 (arm_gdbarch_init): Register above in gdbarch structure.
8566 (arm_read_fp): Renamed from arm_target_read_fp.
8567 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8568 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8569 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8570 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8571 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8572 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8573 (arm_pc_is_thumb_dummy): Delete declarations.
8574 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8575 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8576 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8577 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8578
8579 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8580
8581 * symtab.c (compare_search_syms): New function.
8582 (sort_search_symbols): New function.
8583 (search_symbols): Sort symbols after searching rather than
8584 before.
8585
8586 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8587
8588 * NEWS: Linux -> GNU/Linux.
8589
8590 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8591
8592 * gdbarch.sh: For for level one methods, disallow a definition
8593 when partially multi-arched. Add comments explaining rationale.
8594 * gdbarch.h: Re-generate.
8595
8596 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8597
8598 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8599 multi-arch partial.
8600
8601 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8602
8603 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8604 field. Use diff -u.
8605 * gdbarch.c: Re-generate.
8606
8607 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8608
8609 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8610 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8611 partial.
8612
8613 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8614
8615 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8616 multi-arch partial.
8617 (PUSH_ARGUMENTS): Switch to using predefault.
8618 * gdbarch.c: Regenerate.
8619
8620 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8621
8622 * valops.c (PUSH_ARGUMENTS): Delete definition.
8623 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8624 partial. Default to default_push_arguments.
8625 * gdbarch.h, gdbarch.c: Regenerate.
8626
8627 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8628
8629 * defs.h (throw_exception): Rename return_to_top_level. Update
8630 comments.
8631 * utils.c (error_stream, internal_verror, quit): Ditto.
8632 * top.c (throw_exception, catcher): Ditto.
8633 * sparclet-rom.c (sparclet_load): Ditto.
8634 * remote.c (interrupt_query, minitelnet): Ditto.
8635 * remote-sds.c (interrupt_query): Ditto.
8636 * remote-mips.c (mips_error, mips_kill): Ditto.
8637 * ocd.c (interrupt_query): Ditto.
8638 * monitor.c (monitor_interrupt_query): Ditto.
8639 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8640 * target.h: Update comment.
8641
8642 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8643
8644 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8645
8646 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8647 default_double_format.
8648 * gdbarch.h, gdbarch.c: Re-generate.
8649 * findvar.c (floatformat_unknown): Delete variable definition.
8650 * doublest.h (floatformat_unknown): Delete variable declaration.
8651
8652 2002-02-09 Jim Blandy <jimb@redhat.com>
8653
8654 * stabsread.c (read_type): Add code to parse Sun's syntax for
8655 prototyped function types.
8656
8657 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8658
8659 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8660 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8661
8662 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8663
8664 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8665 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8666 now _initialize_xcoffsolib gets called again and overrides the
8667 commands from solib.c in a native configuration.
8668
8669 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8670
8671 * doublest.c (store_typed_floating): Don't try to return a value.
8672 Fixes PR gdb/290.
8673
8674 2002-02-08 Jim Blandy <jimb@redhat.com>
8675
8676 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8677 is prototyped and has no arguments, print its argument list as
8678 `(void)'.
8679
8680 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8681
8682 * MAINTAINERS (write-after-approval): Add myself.
8683 (paper-trail): I've escaped!
8684
8685 2002-02-08 Christopher Faylor <cgf@redhat.com>
8686
8687 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8688 changes.
8689 (_initialize_check_for_gdb_ini): Ditto.
8690
8691 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8692
8693 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8694 xaprintf -> xasprintf.
8695
8696 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8697
8698 * win32-nat.c: Remove use of printf and sprintf functions.
8699
8700 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * arm-tdep.c (arm_frame_chain_valid): Make static.
8703 (arm_push_arguments): Likewise.
8704 (arm_gdbarch_init): New function.
8705 (_initialize_arm_tdep): Call it.
8706 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8707 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8708 (FRAME_CHAIN_VALID): Delete.
8709 (arm_frame_chain_valid): Delete declaration.
8710 (PUSH_ARGUMENTS): Delete.
8711 (arm_push_arguments): Delete declaration.
8712 (CALL_DUMMY_P): Delete.
8713
8714 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8715 Corinna Vinschen <vinschen@redhat.com>
8716
8717 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8718 on builtin float types.
8719
8720 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8721
8722 * utils.c: Include <curses.h> before "bfd.h".
8723 * tui/tui-hooks.c: Likewise.
8724 * tui/tui.c: Likewise.
8725 * tui/tuiCommand.c: Likewise.
8726 * tui/tuiData.c: Likewise.
8727 * tui/tuiDataWin.c: Likewise.
8728 * tui/tuiDisassem.c: Likewise.
8729 * tui/tuiGeneralWin.c: Likewise.
8730 * tui/tuiIO.c: Likewise.
8731 * tui/tuiLayout.c: Likewise.
8732 * tui/tuiRegs.c: Likewise.
8733 * tui/tuiSource.c: Likewise.
8734 * tui/tuiSourceWin.c: Likewise.
8735 * tui/tuiStack.c: Likewise.
8736 * tui/tuiWin.c: Likewise.
8737
8738 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8739
8740 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8741 to include space for pseudoregs as well. Update loops accordingly.
8742 (sh_fp_frame_init_saved_regs): Ditto.
8743 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8744
8745 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8746
8747 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8748 Add Richard Earnshaw to Arm maintainers.
8749
8750 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8751
8752 * defs.h (warning_begin): Delete declaration.
8753
8754 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8755 Delete macro.
8756
8757 2002-02-07 Michael Snyder <msnyder@redhat.com>
8758
8759 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8760 Logic bug, remove misplaced else.
8761
8762 2002-02-07 Klee Dienes <klee@apple.com>
8763
8764 * fork-inferior.c (fork_inferior): Add '!' to the list of
8765 characters that need to be quoted when building a string for the
8766 shell. Quote '!' specifically with a backslash, since CSH chokes
8767 when trying to evaluate "str!str".
8768
8769 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8770
8771 * rdi-share/host.h: Only provide a typedef for bool if it is not
8772 defined.
8773
8774 2002-02-04 Michael Snyder <msnyder@redhat.com>
8775
8776 * breakpoint.h (enum bptype): Add new overlay event bp type.
8777 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8778
8779 * breakpoint.c (create_internal_breakpoint): New function.
8780 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8781 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8782 (create_thread_event_breakpoint): Ditto.
8783 (create_solib_event_breakpoint): Ditto.
8784 (create_overlay_event_breakpoint): New function.
8785 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8786 (update_breakpoints_after_exec): Delete and re-initialize
8787 overlay event breakpoints after an exec. Add FIXME comment
8788 about longjmp breakpoint.
8789 (print_it_typical): Ignore overlay event breakpoints.
8790 (print_one_breakpoint): Ditto.
8791 (mention): Ditto.
8792 (bpstat_what): Do not stop for overlay event breakpoints.
8793 (delete_breakpoint): Don't delete overlay event breakpoints.
8794 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8795 (breakpoint_re_set): Re-create overlay event breakpoint.
8796
8797 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8798 (overlay_manual_command): Disable overlay breakpoints.
8799 (overlay_off_command): Disable overlay breakpoints.
8800
8801 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8802
8803 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8804 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8805 to here from config/tm-arm.h.
8806 (coff_sym_is_thumb): Make static.
8807 (arm_elf_make_msymbol_special): New function.
8808 (arm_coff_make_msymbol_special): New function.
8809 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8810 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8811 (coff_sym_is_thumb): Delete declaration.
8812 (arm_elf_make_msymbol_special): Declare.
8813 (arm_coff_make_msymbol_special): Declare.
8814 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8815 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8816
8817 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8818
8819 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8820
8821 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8822
8823 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8824 * gdbarch.c gdbarch.h: Regenerate.
8825 * arch-utils.c (default_print_float_info): New function.
8826 * arch-utils.h (default_print_float_info): Prototype it.
8827 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8828 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8829 (PRINT_FLOAT_INFO): Document it.
8830
8831 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8832 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8833 (PRINT_FLOAT_INFO): Define.
8834
8835 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8836
8837 * win32-nat.c (_initialize_check_for_gdb_ini):
8838 Add typecast to sprintf argument to suppress a warning.
8839
8840 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8841
8842 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8843 to allow easier handling of pass state.
8844 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8845 that gives exception name and address.
8846 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8847 and set last_sig value to ourstatus->value.sig. Some missing
8848 exceptions added.
8849 (child_continue): Correctly report continue_status.
8850 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8851 TARGET_SIGNAL_0 (new default value).
8852 (child_resume): consider sig argument passed to decide if
8853 the exception should be passed to debuggee or not.
8854
8855 2002-02-05 Michael Snyder <msnyder@redhat.com>
8856
8857 * regcache.c (fetch_register): Call target_fetch_register
8858 only if we don't call FETCH_PSEUDO_REGISTER.
8859 (store_register): Call target_store_register only if we
8860 don't call STORE_PSEUDO_REGISTER.
8861
8862 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8863
8864 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8865 ELF_MAKE_MSYMBOL_SPECIAL.
8866 * gdbarch.c, gdbarch.h: Regenerate.
8867 * arch-utils.c (default_make_msymbol_special): New function.
8868 * arch-utils.h (default_make_msymbol_special): Export.
8869 * elfread.c (elf_symtab_read): Compile use of
8870 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8871 multiarched.
8872 * coffread.c (coff_symtab_read): Ditto, for
8873 COFF_MAKE_MSYMBOL_SPECIAL.
8874
8875 2002-02-05 Jim Blandy <jimb@redhat.com>
8876
8877 * solib-svr4.c (svr4_truncate_ptr): New function.
8878 (svr4_relocate_section_addresses): Do the address arithmetic with
8879 the appropriate truncation for target addresses, even when
8880 CORE_ADDR is larger than a target address.
8881
8882 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8883
8884 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8885 to (int *).
8886
8887 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8888
8889 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8890 code.
8891
8892 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8893
8894 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8895
8896 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * gdbserver/linux-low.c: Remove unused include files.
8899
8900 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8901
8902 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8903 (read_inferior_memory): Use it.
8904 (write_inferior_memory): Likewise.
8905
8906 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8907
8908 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8909 grubbing through sys_errlist.
8910
8911 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8912
8913 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8914
8915 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8916 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8917
8918 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8919
8920 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8921 (do_sfunc, set_cmd_sfunc): New functions.
8922
8923 * command.h (struct cmd_list_element): Add field func.
8924 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8925 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8926 * cli/cli-decode.h: Ditto.
8927
8928 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8929 (help_all, help_cmd_list): Ditto.
8930 (find_cmd, complete_on_cmdlist): Ditto.
8931 * top.c (execute_command): Ditto.
8932
8933 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8934 function.sfunc.
8935
8936 * infcmd.c (notice_args_read): Fix function signature.
8937
8938 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8939 * cli/cli-decode.c (add_set_cmd): Ditto.
8940 * utils.c (initialize_utils): Ditto.
8941 * maint.c (_initialize_maint_cmds): Ditto.
8942 * infrun.c (_initialize_infrun): Ditto.
8943 * demangle.c (_initialize_demangler): Ditto.
8944 * remote.c (add_packet_config_cmd): Ditto.
8945 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8946 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8947 * proc-api.c (_initialize_proc_api): Ditto.
8948 * kod.c (_initialize_kod): Ditto.
8949 * valprint.c (_initialize_valprint): Ditto.
8950 * top.c (init_main): Ditto.
8951 * infcmd.c (_initialize_infcmd): Ditto.
8952 * corefile.c (_initialize_core): Ditto.
8953 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8954 * arch-utils.c (initialize_current_architecture): Ditto.
8955 (_initialize_gdbarch_utils): Ditto.
8956 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8957
8958 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8959 * wince.c (_initialize_inftarg): Ditto.
8960 * symfile.c (_initialize_symfile): Ditto.
8961 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8962 * language.c (_initialize_language): Ditto.
8963 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8964
8965 2002-02-04 Michael Snyder <msnyder@redhat.com>
8966
8967 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8968
8969 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8970
8971 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8972 Add rules for building the register data files.
8973
8974 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8975
8976 * regformats/regdat.sh: Add braces to the definition of
8977 expedite_regs_${arch}.
8978
8979 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8980
8981 * regformats/regdef.h (struct reg): Add comment describing the
8982 requirements for offset and size fields.
8983
8984 2002-02-04 Andreas Schwab <schwab@suse.de>
8985
8986 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8987 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8988
8989 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8990
8991 * gdbarch.sh (copyright): Update years in generated header.
8992 (SMASH_TEXT_ADDRESS): Add rule.
8993 * gdbarch.h, gdbarch.c: Re-generate.
8994 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8995 * dbxread.c: Likewise.
8996 * dwarfread.c: Likewise.
8997 * elfread.c: Likewise.
8998 * somread.c: Likewise.
8999
9000 * arm-tdep.c (arm_smash_text_address): New function.
9001 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9002
9003 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9004
9005 Add support for hardware watchpoints on win32 native.
9006 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9007 CONTEXT_DEBUG_REGISTERS.
9008 (dr variable): New variable. Static array containing a local copy
9009 of debug registers.
9010 (debug_registers_changed): New variable. Reflects when debug registers
9011 are changed and need to be written to inferior.
9012 (debug_registers_used): New variable. Reflects when any debug register
9013 was set, used when new threads are created.
9014 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9015 i386-nat code.
9016 (thread_rec): Set dr array if id is the thread of current_event .
9017 (child_continue, child_resume): Change the debug registers for all
9018 threads if debug_registers_changed.
9019 (child_add_thread): Change the debug registers if debug_registers_used.
9020 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9021 Link nm.h to new nm-cygwin.h file.
9022 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9023 of hardware registers.
9024
9025 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9026
9027 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9028 Restore behavour broken by 2002-01-20 Andrew Cagney
9029 <ac131313@redhat.com> IEEE_FLOAT removal.
9030
9031 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9032
9033 * c-valprint.c (c_val_print): Pass a proper valaddr to
9034 cp_print_class_method.
9035 * valops.c (search_struct_method): If there is only one method
9036 and args is NULL, return that method.
9037
9038 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9039
9040 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9041 accessing tag_name directly.
9042
9043 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9044
9045 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9046 of accessing tag_name directly.
9047
9048 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9049
9050 PR gdb/280
9051 * gdbtypes.c (replace_type): New function.
9052 * gdbtypes.h (replace_type): Add prototype.
9053 * stabsread.c (read_type): Use replace_type.
9054
9055 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9056
9057 * Makefile.in (memattr.o): Add missing dependencies rule.
9058
9059 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9060
9061 * breakpoint.c (break_at_finish_command): Really export.
9062 (break_at_finish_at_depth_command): Ditto.
9063 (tbreak_at_finish_command): Ditto.
9064 * hppa-tdep.c: Include completer.h.
9065 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9066 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9067
9068 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9069
9070 * utils.c (do_write): New function.
9071 (error_stream): Rewrite combining the code from error_begin and
9072 verror.
9073 (verror): Rewrite using error_stream.
9074 (error_begin): Delete function.
9075
9076 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9077
9078 * utils.c (error_begin): Make static.
9079 * defs.h (error_begin): Delete declaration.
9080
9081 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9082 (decode_line_1): Use cplusplus_error instead of error_begin,
9083 cplusplus_hint and return_to_top_level.
9084 * coffread.c (coff_symfile_read): Use error instead of error_begin
9085 and return_to_top_level.
9086 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9087
9088 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9089
9090 * language.h (type_error, range_error): Make string parameter
9091 constant.
9092 * language.c (warning_pre_print): Delete extern declaration.
9093 * dwarfread.c (warning_pre_print): Ditto.
9094 * language.c (type_error, range_error): Rewrite to use verror and
9095 vwarning instead of warning_begin.
9096
9097 2002-02-01 Michael Snyder <msnyder@redhat.com>
9098
9099 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9100 (set_ignore_count): Move misplaced comment back where it belongs.
9101
9102 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9103
9104 * command.h (NO_FUNCTION): Delete macro.
9105 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9106 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9107 * tracepoint.c (_initialize_tracepoint): Ditto.
9108 * cli/cli-decode.c (add_set_cmd): Ditto.
9109 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9110
9111 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9112
9113 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9114 Update ``this'' pointer when calling virtual functions.
9115
9116 2002-02-01 Michael Snyder <msnyder@redhat.com>
9117
9118 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9119 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9120
9121 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9122
9123 * regformats/reg-arm.dat: New file.
9124 * regformats/reg-i386.dat: New file.
9125 * regformats/reg-ia64.dat: New file.
9126 * regformats/reg-m68k.dat: New file.
9127 * regformats/reg-mips.dat: New file.
9128 * regformats/reg-ppc.dat: New file.
9129 * regformats/reg-sh.dat: New file.
9130 * regformats/regdef.h: New file.
9131 * regformats/regdat.sh: New file.
9132
9133 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9134
9135 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9136 (arm_frame_args_address, arm_frame_locals_address): New functions.
9137 (arm_frame_num_args): New function.
9138 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9139 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9140 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9141
9142 2002-01-31 Michael Snyder <msnyder@redhat.com>
9143
9144 * breakpoint.c (break_at_finish_command): Export.
9145 (break_at_finish_at_depth_command): Export.
9146 (tbreak_at_finish_command): Export.
9147 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9148 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9149 "tbreak" commands, which are HPPA specific.
9150
9151 * printcmd.c (disassemble_command): Remove an ancient
9152 artifact of an old merge.
9153
9154 * symfile.h (enum overlay_debugging_state):
9155 Define enum constant values for overlay mode.
9156 * symfile.c (overlay_debugging): Use enums instead of literals.
9157 (overlay_is_mapped, overlay_auto_command,
9158 overlay_manual_command): Ditto.
9159
9160 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9161 breakpoint_here_p, breakpoint_inserted_here_p,
9162 breakpoint_thread_match, bpstat_stop_status,
9163 describe_other_breakpoints, check_duplicates, clear_command):
9164 Coding standard fixes.
9165
9166 * target.c (target_xfer_memory): Add spaces, coding standard.
9167 (do_xfer_memory): Add missing line to trust-readonly
9168 code: check bfd SEC_READONLY flag for section.
9169
9170 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9171
9172 * PROBLEMS: Fix typo, 5.1->5.1.1.
9173
9174 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9177 data symbols, since we search based on textlow and texthigh.
9178 (find_pc_sect_symtab): Likewise.
9179
9180 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9181
9182 * defs.h (vwarning): Declare.
9183 * utils.c (vwarning): New function.
9184 (warning): Call vwarning.
9185 (warning_begin): Delete function.
9186
9187 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9188 the warning message.
9189 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9190 warning_begin.
9191
9192 2002-01-30 Michael Snyder <msnyder@redhat.com>
9193
9194 * NEWS: Mention "set trust-readonly-sections" command.
9195 Mention generate-core-file command.
9196
9197 2002-01-15 Michael Snyder <msnyder@redhat.com>
9198
9199 * target.c: New command, "set trust-readonly-sections on".
9200 (do_xfer_memory): Honor the suggestion to trust readonly sections
9201 by reading them from the object file instead of from the target.
9202 (initialize_targets): Register command "set trust-readonly-sections".
9203
9204 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9205
9206 * parse.c (target_map_name_to_register): Simplify, search regs and
9207 pseudo-regs using a single loop.
9208
9209 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9210
9211 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9212
9213 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9214
9215 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9216 * config/i386/i386v42mp.mh: Add i387-nat.o .
9217 * i386v4-nat.c: Include i387-nat.h.
9218 (supply_fpregset): Use i387_supply_fsave.
9219 (fill_fpregset): Use i387_fill_fsave.
9220
9221 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9222
9223 * arm-tdep.c (arm_call_dummy_words): Define.
9224 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9225 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9226 (CALL_DUMMY_WORDS): Define.
9227 (arm_call_dummy_words): Declare.
9228 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9229 (arm_linux_call_dummy_words): Declare.
9230
9231 2002-01-30 Andreas Schwab <schwab@suse.de>
9232
9233 * m68klinux-nat.c: Fix last change to use regcache_collect
9234 instead of referencing registers[] directly.
9235
9236 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9237
9238 * parse.c (target_map_name_to_register): Delete code wrapped in
9239 #ifdef REGISTER_NAME_ALIAS_HOOK.
9240
9241 2002-01-28 Michael Snyder <msnyder@redhat.com>
9242
9243 * regcache.c (legacy_read_register_gen): Need to be able to
9244 read pseudo-register as well as real register.
9245 (legacy_write_register_gen): Ditto.
9246
9247 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9248
9249 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9250 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9251 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9252 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9253 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9254 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9255 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9256 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9257 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9258 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9259 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9260 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9261 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9262 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9263 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9264 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9265 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9266 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9267 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9268 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9269
9270 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9271
9272 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9273 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9274 (initialize_current_architecture): Update target_byte_order using
9275 information from BFD.
9276 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9277 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9278
9279 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9280
9281 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9282 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9283
9284 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9285 #ifdef INVALID_FLOAT.
9286 * infcmd.c (do_registers_info): Ditto.
9287 * values.c (unpack_double): Ditto. Add comment.
9288
9289 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9290 already commented out.
9291
9292 2002-01-26 Andreas Schwab <schwab@suse.de>
9293
9294 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9295 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9296 registers and add support for PTRACE_GETREGS.
9297
9298 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9299
9300 GDB 5.1.1 released from 5.1 branch.
9301 * NEWS: Add 5.1.1 news.
9302 * README: Sync with 5.1 branch.
9303
9304 2002-01-23 Fred Fish <fnf@redhat.com>
9305
9306 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9307 stabstring on initial malloc. Reallocing will copy it for us,
9308 if necessary.
9309
9310 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9311
9312 * Makefile.in (hpread_h): Delete.
9313 (HFILES_NO_SRCDIR): Remove hpread.h.
9314 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9315 (hpread.o): Update dependencies.
9316 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9317
9318 * hp-psymtab-read.c: Remove file.
9319 * hp-symtab-read.c: Remove file.
9320 * hpread.h: Remove file.
9321
9322 * hpread.c: Merge all contents of hp-psymtab-read.c,
9323 hp-symtab-read.c and hpread.h into this file, as it was prior to
9324 January 1999.
9325
9326 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9327 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9328 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9329 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9330
9331 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9332
9333 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9334 fill_gregset): Call gdbarch_tdep() just once, assign result to
9335 variable and use that, instead of calling the function several
9336 times.
9337
9338 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9339
9340 * configure.host: Accept sparcv9 as alias for sparc64.
9341 * configure.tgt: Likewise.
9342
9343 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9344
9345 * solib-aix5.c (build_so_list_from_mapfile)
9346 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9347 arguments is not reversed.
9348 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9349 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9350
9351 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9352
9353 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9354 modified version of obsolete sh_fetch_pseudo_register.
9355 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9356 (sh4_register_read): New function.
9357 (sh_pseudo_register_write): New function. Renamed and modified
9358 version of obsolete sh_store_pseudo_register.
9359 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9360 (sh4_register_write): New function.
9361 (sh_gdbarch_init): Remove setting of gdbarch function
9362 fetch_pseudo_register and store_pseudo_register. Remove setting of
9363 register_convert_to_raw, register_convert_to_virtual,
9364 register_convertible.
9365 (sh_sh4_register_convertible): Delete. No longer needed. All is
9366 taken care by architecture specific functions
9367 register_read/register_write.
9368 (sh_sh4_register_convert_to_virtual): Make static.
9369 (sh_sh4_register_convert_to_raw): Ditto.
9370
9371 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9372
9373 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9374 (floatformat_is_nan, floatformat_mantissa): Ditto.
9375
9376 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9377 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9378 builtin_type_ieee_double_little,
9379 builtin_type_ieee_double_littlebyte_bigword,
9380 builtin_type_m68881_ext, builtin_type_i960_ext,
9381 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9382 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9383 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9384 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9385
9386 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9387
9388 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9389 parameter. Set frameless flag if it exists and depended of
9390 whether the scanned function is frameless or not.
9391 (xstormy16_skip_prologue): If function is frameless, return
9392 result of xstormy16_scan_prologue().
9393 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9394 call.
9395
9396 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9397
9398 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9399 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9400 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9401 sh_sh4_register_byte, sh_sh4_register_raw_size,
9402 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9403 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9404 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9405 sh_store_pseudo_register, sh_do_pseudo_register): Call
9406 gdbarch_tdep() just once, assign result to variable and use that,
9407 instead of calling the function several times.
9408
9409 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9410
9411 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9412 macros instead of LAST_FPU_CTRL_REGNUM.
9413 (store_register): Likewise.
9414
9415 2002-01-21 Jim Blandy <jimb@redhat.com>
9416
9417 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9418 is up-to-date before running the program, not just when a program
9419 exits.
9420
9421 2002-01-21 Fred Fish <fnf@redhat.com>
9422
9423 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9424 when we have found all instructions we are looking for.
9425
9426 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9427
9428 * arm-tdep.c (arm_register_name): New function.
9429 (arm_registers_names): Make static.
9430 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9431 (arm_register_name): Declare.
9432 (REGISTER_NAME): Use it.
9433
9434 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9435 Kevin Buettner <kevinb@redhat.com>
9436
9437 Convert arm targets to new FRAME interface.
9438 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9439 (arm_frame_find_save_regs): Delete.
9440 (arm_frame_init_saved_regs): New.
9441 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9442 Allocate extra_info as required. Convert all uses of fsr.regs
9443 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9444 to use extra_info.
9445 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9446 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9447 (check_prologue_cache, save_prologue_cache): Likewise.
9448 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9449 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9450 (FRAME_FIND_SAVED_REGS): Delete.
9451 (arm_frame_find_saved_regs): Delete prototype.
9452 (arm_frame_init_saved_regs): New prototype.
9453 (FRAME_INIT_SAVED_REGS): Define.
9454
9455 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9456
9457 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9458
9459 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9460
9461 From Jeff Law <law@redhat.com>:
9462 * infttrace.c: Include <sys/pstat.h>.
9463 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9464 exec file if the ttrace equivalent fails.
9465
9466 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9467
9468 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9469 (closeLogFile): Ditto.
9470
9471 2002-01-20 Michael Chastain <mec@shout.net>
9472
9473 * top.c (print_gdb_version): Bump copyright year to 2002.
9474
9475 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9476
9477 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9478 Zannoni and Eli Zaretskii.
9479
9480 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9481
9482 * buildsym.c: Update copyright years.
9483 * c-typeprint.c: Likewise.
9484 * dwarf2read.c: Likewise.
9485 * f-typeprint.c: Likewise.
9486 * gdbtypes.c: Likewise.
9487 * gdbtypes.h: Likewise.
9488 * hp-symtab-read.c: Likewise.
9489 * hpread.c: Likewise.
9490 * mdebugread.c: Likewise.
9491 * p-typeprint.c: Likewise.
9492
9493 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9494
9495 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9496 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9497 byte-order selectable.
9498 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9499 * arch-utils.c: Ditto.
9500 (set_endian): Ditto.
9501 (set_endian_from_file): Ditto.
9502 * gdbserver/low-sim.c (create_inferior): Ditto.
9503 * gdbarch.sh: Ditto.
9504 * gdbarch.h: Re-generate.
9505 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9506 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9507 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9508 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9509 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9510 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9511 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9512 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9513 macro definition.
9514 * config/mips/tm-wince.h: Remove #undef of macro
9515 TARGET_BYTE_ORDER_SELECTABLE.
9516 * config/sh/tm-wince.h: Ditto.
9517
9518 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9519
9520 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9521 member function fields. Add accessor macro
9522 TYPE_FN_FIELD_ARTIFICIAL.
9523 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9524 * c-typeprint.c (c_type_print_base): Skip artificial member
9525 functions.
9526
9527 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9528
9529 * f-typeprint.c: Delete unused function f_type_print_args.
9530 * p-typeprint.c: Delete unused function pascal_type_print_args.
9531
9532 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9533
9534 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9535 comment. Add ``artificial'' to ``union field_location''.
9536
9537 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9538
9539 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9540 * mdebugread.c (parse_symbol): Likewise.
9541 * stabsread.c (define_symbol): Likewise.
9542 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9543 initializing TYPE_FIELD_BITPOS to n (obsolete).
9544 (hpread_doc_function_type): Likewise.
9545 * hpread.c (hpread_function_type): Likewise.
9546
9547 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9548
9549 * configure.in (host_makefile_frag): Only require a host makefile
9550 fragment when a native build.
9551 * configure: Re-generate.
9552
9553 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9554
9555 * doublest.h (floatformat_from_type): Declare.
9556 * doublest.c (floatformat_from_type): New function.
9557 (convert_typed_floating): Use.
9558
9559 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9560 call to function floatformat_from_type.
9561
9562 * gdbarch.sh (IEEE_FLOAT): Delete.
9563 * gdbarch.h, gdbarch.c: Re-generate.
9564 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9565 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9566 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9567 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9568 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9569 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9570 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9571 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9572 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9573 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9574 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9575 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9576
9577 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9578 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9579 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9580 * sh-tdep.c (sh_gdbarch_init): Ditto.
9581 * mips-tdep.c (mips_gdbarch_init): Ditto.
9582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9583 * cris-tdep.c (cris_gdbarch_init): Ditto.
9584
9585 2002-01-20 Jiri Smid <smid@suse.cz>
9586
9587 * configure.host, configure.tgt: Support x86-64.
9588 * NEWS: Note new target x86-64.
9589
9590 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9591 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9592 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9593 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9594 x86-64-linux-nat.o): Fix dependencies.
9595
9596 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9597
9598 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9599 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9600 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9601 * config/sparc/xm-sun4os4.h: Delete file.
9602 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9603
9604 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9605
9606 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9607 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9608 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9609 * config/i386/i386lynx.mh (XM_FILE): Delete.
9610 * config/rs6000/xm-rs6000ly.h: Delete file.
9611 * config/sparc/xm-sparclynx.h: Delete file.
9612 * config/m68k/xm-m68klynx.h: Delete file.
9613 * config/i386/xm-i386lynx.h: Delete file.
9614 * config/xm-lynx.h: Delete file.
9615 * config/djgpp/fnchange.lst: Update.
9616
9617 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9618
9619 * alpha-tdep.c (alpha_register_byte): New function.
9620 (alpha_register_raw_size): Ditto.
9621 (alpha_register_virtual_size): Ditto.
9622 (alpha_skip_prologue_internal): Renamed from
9623 alpha_skip_prologue.
9624 (alpha_skip_prologue): New version that calls
9625 alpha_skip_prologue_internal.
9626 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9627 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9628 second argument from alpha_skip_prologue.
9629 (REGISTER_BYTE): Use alpha_register_byte.
9630 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9631 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9632 (FRAMELESS_FUNCTION_INVOCATION): Use
9633 generic_frameless_function_invocation_not.
9634 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9635 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9636
9637 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9638
9639 * config/mips/xm-news-mips.h: Delete file.
9640 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9641
9642 * config/m88k/xm-m88k.h: Delete file.
9643 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9644 * config/m88k/xm-delta88v4.h: Ditto.
9645 * config/m88k/xm-delta88.h: Ditto.
9646
9647 * config/alpha/xm-fbsd.h: Delete file.
9648 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9649
9650 * config/sparc/xm-sparc.h: Delete file.
9651 * Makefile.in (xm-sun4os4.h): Delete dependency.
9652 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9653 * config/sparc/xm-sun4os4.h: Ditto.
9654 * config/sparc/xm-linux.h: Ditto.
9655
9656 * config/i386/xm-windows.h: Delete file.
9657
9658 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9659
9660 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9661 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9662
9663 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9664
9665 * alpha-tdep.c (alpha_call_dummy_words): New.
9666 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9667 (CALL_DUMMY_P): Define.
9668 (CALL_DUMMY_WORDS): Define.
9669 (SIZEOF_CALL_DUMMY_WORDS): Define.
9670
9671 2002-01-19 Per Bothner <per@bothner.com>
9672
9673 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9674 isn't NULL, which can happen with some gcj-3.x-produced code.
9675
9676 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9677
9678 * alpha-tdep.c (alpha_register_virtual_type): New function.
9679 (alpha_init_frame_pc_first): Ditto.
9680 (alpha_fix_call_dummy): Ditto.
9681 (alpha_store_struct_return): Ditto.
9682 (alpha_extract_struct_value_address): Ditto.
9683 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9684 alpha_register_virtual_type.
9685 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9686 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9687 alpha_extract_struct_value_address.
9688 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9689 (INIT_FRAME_PC): Use init_frame_pc_noop.
9690 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9691
9692 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9693
9694 * i386gnu-nat.c: Include "i386-tdep.h".
9695 (fetch_fpregs): Simplify code dealing with uninitialized floating
9696 point states such that it doesn't require FP7_REGNUM.
9697
9698 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9699
9700 * alpha-tdep.c (frame_extra_info): New.
9701 (alpha_find_saved_regs): Make static. Use
9702 frame->extra_info.
9703 (alpha_frame_init_saved_regs): New function.
9704 (alpha_frame_saved_pc): Use frame->extra_info.
9705 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9706 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9707 (init_extra_frame_info): Rename to...
9708 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9709 (alpha_print_extra_frame_info): New function.
9710 (alpha_frame_locals_address): Ditto.
9711 (alpha_frame_args_address): Ditto.
9712 (alpha_pop_frame): Use frame->extra_info.
9713 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9714 alpha_frame_args_address.
9715 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9716 (alpha_find_saved_regs): Remove prototype.
9717 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9718 (EXTRA_FRAME_INFO): Remove.
9719 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9720 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9721
9722 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9723
9724 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9725 (alpha_cannot_fetch_register): Ditto.
9726 (alpha_cannot_store_register): Ditto.
9727 (alpha_register_convertible): Ditto.
9728 (alpha_use_struct_convention): Ditto.
9729 * config/alpha/tm-alpha.h: Update copyright years.
9730 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9731 (INNER_THAN): Use core_addr_lessthan.
9732 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9733 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9734 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9735 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9736 (FRAME_CHAIN): Remove unnecessary cast.
9737
9738 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9739
9740 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9741 obsolete.
9742
9743 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9744
9745 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9746 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9747 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9748 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9749 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9750 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9751 * x86-64-linux-nat.c: Ditto.
9752
9753 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9754
9755 * alpha-tdep.c (alpha_register_name): New function.
9756 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9757 (REGISTER_NAME): Define.
9758
9759 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9760
9761 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9762
9763 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9764
9765 * alpha-tdep.c: Update copyright years.
9766 (alpha_next_pc): New function.
9767 (alpha_software_single_step): Ditto.
9768 * config/alpha/tm-alpha.h: Add prototype for
9769 alpha_software_single_step.
9770
9771 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9772
9773 * alphabsd-nat.c: Update copyright years.
9774 (fill_gregset): Use regcache_collect.
9775 (fill_fpregset): Likewise.
9776 (fetch_inferior_registers): Only fetch integer registers
9777 if requested to do so.
9778 (store_inferior_registers): Only store integer registers
9779 if requested to do so.
9780
9781 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9782
9783 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9784 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9785 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9786 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9787 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9788 * config/arm/linux.mh (XDEPFILES): Delete.
9789 * config/arm/nbsd.mh (XDEPFILES): Delete.
9790 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9791 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9792 * config/i386/i386m3.mh (XDEPFILES): Delete.
9793 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9794 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9795 * config/i386/fbsd.mh (XDEPFILES): Delete.
9796 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9797 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9798 * config/i386/i386v4.mh (XDEPFILES): Delete.
9799 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9800 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9801 * config/i386/i386aix.mh (XDEPFILES): Delete.
9802 * config/i386/go32.mh (XDEPFILES): Delete.
9803 * config/i386/cygwin.mh (XDEPFILES): Delete.
9804 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9805 * config/i386/i386mach.mh (XDEPFILES): Delete.
9806 * config/i386/i386v32.mh (XDEPFILES): Delete.
9807 * config/i386/linux.mh (XDEPFILES): Delete.
9808 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9809 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9810 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9811 * config/i386/i386sco.mh (XDEPFILES): Delete.
9812 * config/i386/i386v.mh (XDEPFILES): Delete.
9813 * config/i386/nbsd.mh (XDEPFILES): Delete.
9814 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9815 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9816 * config/i386/symmetry.mh (XDEPFILES): Delete.
9817 * config/i386/obsd.mh (XDEPFILES): Delete.
9818 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9819 * config/ia64/linux.mh (XDEPFILES): Delete.
9820 * config/ia64/aix.mh (XDEPFILES): Delete.
9821 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9822 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9823 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9824 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9825 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9826 * config/m68k/linux.mh (XDEPFILES): Delete.
9827 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9828 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9829 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9830 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9831 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9832 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9833 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9834 * config/m88k/delta88.mh (XDEPFILES): Delete.
9835 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9836 * config/m88k/m88k.mh (XDEPFILES): Delete.
9837 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9838 * config/mips/linux.mh (XDEPFILES): Delete.
9839 * config/mips/irix6.mh (XDEPFILES): Delete.
9840 * config/mips/irix5.mh (XDEPFILES): Delete.
9841 * config/mips/irix4.mh (XDEPFILES): Delete.
9842 * config/mips/irix3.mh (XDEPFILES): Delete.
9843 * config/mips/decstation.mh (XDEPFILES): Delete.
9844 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9845 (NATDEPFILES): Move core-aout.o to here.
9846 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9847 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9848 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9849 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9850 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9851 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9852 * config/pa/hpux11.mh (XDEPFILES): Delete.
9853 * config/powerpc/aix.mh (XDEPFILES): Delete.
9854 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9855 * config/powerpc/linux.mh (XDEPFILES): Delete.
9856 * config/romp/rtbsd.mh: Rename XDEPFILES.
9857 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9858 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9859 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9860 * config/s390/s390.mh (XDEPFILES): Delete.
9861 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9862 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9863 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9864 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9865 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9866 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9867 * config/sparc/linux.mh (XDEPFILES): Delete.
9868 * config/vax/vaxult.mh (XDEPFILES): Delete.
9869 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9870 * Makefile.in (DEPFILES): Remove XDEPFILES.
9871
9872 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9873
9874 * utils.c (internal_verror): Fix comments, default is yes not no.
9875 Update queries to match. Default to quit and dump core.
9876
9877 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9878
9879 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9880 copyright.
9881 * defs.h, event-top.c, gdbcmd.h: Ditto.
9882 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9883 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9884 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9885 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9886 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9887 * mi/mi-main.c:Ditto.
9888
9889 * stack.c, symfile.c: Update copyright.
9890
9891 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9892
9893 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9894 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9895 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9896 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9897
9898 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9901 * gdbserver/low-lynx.c (myattach): Likewise.
9902 * gdbserver/low-nbsd.c (myattach): Likewise.
9903 * gdbserver/low-sim.c (myattach): Likewise.
9904 * gdbserver/low-sparc.c (myattach): Likewise.
9905 * gdbserver/low-sun3.c (myattach): Likewise.
9906
9907 * gdbserver/low-linux.c (myattach): New function.
9908
9909 * gdbserver/server.c (attach_inferior): New function.
9910 (main): Handle "--attach".
9911
9912 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9913
9914 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9915 maintainer.
9916
9917 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * c-typeprint.c (is_type_conversion_operator): Add additional
9920 check for non-conversion operators.
9921
9922 2002-01-15 Michael Snyder <msnyder@redhat.com>
9923
9924 * linux-proc.c: Add "info proc" command, a la procfs.c.
9925 (read_mapping): New function, abstract and re-use code.
9926 (linux_find_memory_regions): Use new func read_mapping.
9927 (linux_info_proc_cmd): New function, implement "info proc".
9928 (_initialize_linux_proc): Add new command "info proc".
9929
9930 2002-01-15 Michael Snyder <msnyder@redhat.com>
9931
9932 * symfile.c (generic_load): Use bfd_map_over_sections method
9933 instead of manipulating bfd structure members directly.
9934 (add_section_size_callback): New function, bfd sections callback
9935 used by generic_load.
9936 (load_sections_callback): New function, bfd sections callback
9937 used by generic_load.
9938
9939 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9940
9941 [Based on work by Jim Blandy]
9942 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9943 (builtin_type_vec128): Export.
9944 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9945 types.
9946 (builtin_type_vec128): New builtin type for 128 bit vector
9947 registers.
9948 (build_gdbtypes): Initialize builtin_type_v16qi and
9949 builtin_type_v8hi. Create the vec128 register builtin type
9950 structure.
9951 (build_builtin_type_vec128): New function.
9952 (_initialize_gdbtypes): Register builtin_type_v16qi and
9953 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9954 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9955 AltiVec register to new builtin type.
9956
9957 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9960 to make_cv_type.
9961
9962 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9963
9964 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9965 CLEAN_UP_REGISTER_VALUE.
9966 * regcache.c (supply_register): Update only call.
9967
9968 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9969
9970 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9971 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9972 a29k-*-vxworks* targets as obsolete.
9973
9974 2002-01-14 Michael Snyder <msnyder@redhat.com>
9975
9976 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9977 until we can resolve portability issues.
9978 * gregset.h: Remove references to fpxregs.
9979 * gcore.c (gcore_command): Initialize note_sec to NULL.
9980
9981 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9982
9983 * signals.c (target_signal_to_name): Rewrite. Only use
9984 signals[].name when in bounds and non-NULL.
9985
9986 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9987
9988 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9989 * signals.c (target_signal_to_name): Verify that SIG is within the
9990 bounds of the signals array.
9991
9992 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9993
9994 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9995
9996 2002-01-13 Keith Seitz <keiths@redhat.com>
9997
9998 * stack.c (print_frame_info_base): Print the frame's pc
9999 only if when print_frame_info_listing_hook is not defined.
10000
10001 2002-01-13 Keith Seitz <keiths@redhat.com>
10002
10003 * varobj.c (varobj_set_value): Make sure that there were no
10004 errors evaluating the object before attempting to set its
10005 value.
10006 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10007 so this offset adjustment is no longer necessary.
10008 (create_child): Don't set the error flag if the child is
10009 a CPLUS_FAKE_CHILD.
10010 (value_of_child): If value_fetch_lazy fails, return NULL
10011 so that callers will be notified that an error occurred.
10012 (c_value_of_variable): Delay check of variable's validity
10013 until later. We actually want all structs and unions to have
10014 the value "{...}".
10015 Do not return "???" for variables which could not be evaluated.
10016 This error condition must be returned to the caller so that it
10017 can get the error condition from gdb.
10018 (cplus_name_of_child): Adjust index for vptr before figuring
10019 out the name of the child.
10020 (cplus_value_of_child): If a child's (real) parent is not valid,
10021 don't even bother trying to give a value for it. Just return
10022 an error. Change all instances in this function.
10023 (cplus_type_of_child): If our parent is one of the "fake"
10024 parents, we need to get at the type of the real parent, and
10025 derive the child's true type using this information.
10026
10027 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10028
10029 From 2002-01-09 John Marshall <johnm@falch.net>:
10030 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10031 sources.redhat.com, and tweak some related URLs which had
10032 suffered from linkrot.
10033
10034 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10035
10036 From Jeff law:
10037 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10038 structures passed in registers.
10039
10040 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10041
10042 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10043 white space which prevented compilation. Reported by DSK
10044 <dsk@student.unsw.edu.au>.
10045
10046 2002-01-11 Michael Snyder <msnyder@redhat.com>
10047
10048 * symfile.c (build_section_addr_info_from_section_tab):
10049 Use bfd access method instead of manipulating bfd directly.
10050 (syms_from_objfile): Ditto.
10051 (simple_overlay_update_1): Ditto.
10052 (simple_overlay_update): Ditto.
10053 (generic_load): Ditto.
10054 (overlay_unmapped_address): FIXME comment, bfd access methods.
10055 (sections_overlap): FIXME comment, bfd access methods.
10056 (pc_in_mapped_range): FIXME comment, bfd access methods.
10057 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10058 (section_is_mapped): FIXME comment, bfd access methods.
10059 (section_is_overlay): FIXME comment, bfd access methods.
10060
10061 * symfile.c (generic_load): Whitespace and long line cleanups.
10062 Remove duplicate variable, change several local variables to
10063 more appropriate data types.
10064 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10065
10066 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10067
10068 From Peter Schauer:
10069 * language.c (longest_local_hex_string_custom): Use phex_nz to
10070 convert NUM to a hex string.
10071
10072 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10073
10074 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10075 the function.
10076 Update Copyright year.
10077
10078 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10079
10080 * language.c (longest_raw_hex_string): Delete unused function.
10081
10082 2002-01-11 Petr Sorfa <petrs@caldera.com>
10083
10084 * MAINTAINERS (write-after-approval): Add myself.
10085 * dwarf2read.c (read_tag_string_type): Handling of
10086 DW_AT_byte_size.
10087 (read_tag_string_type): FORTRAN fix to prevent propagation of
10088 first string size.
10089 (set_cu_language): Handling of DW_LANG_Fortran95
10090
10091 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10092
10093 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10094 GETPID(inferior_ptid).
10095 (store_inferior_registers): Likewise.
10096
10097 2002-01-10 Jason Merrill <jason@redhat.com>
10098
10099 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10100 Fix DW_OP_minus.
10101
10102 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10103
10104 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10105 and bfd/elf32-sh-nbsd.c.
10106
10107 2002-01-10 Michael Snyder <msnyder@redhat.com>
10108
10109 * NEWS: Mention --pid and corefile/proc-id behavior change.
10110
10111 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10112 * gcore.c: Include cli/cli-decode.h instead of command.h.
10113
10114 * main.c (captured_main): Add new command line option "--pid".
10115 If the second command line argument (following the symbol-file)
10116 begins with a digit, try to attach to it before trying to open
10117 it as a corefile.
10118 (print_gdb_help): Document the "--pid" argument.
10119
10120 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10121
10122 * completer.c (command_completer): New function.
10123
10124 * completer.h <command_completer>: Add prototype.
10125
10126 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10127 completer for the "help" command.
10128
10129 2002-01-09 Jason Merrill <jason@redhat.com>
10130
10131 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10132
10133 2002-01-09 Michael Snyder <msnyder@redhat.com>
10134
10135 * i386-linux-nat.c (fill_fpxregset): Make global.
10136 (store_fpxregset): Ditto.
10137
10138 * gregset.h (gdb_fpxregset_t): Define.
10139 (supply_fpxregset): Prototype.
10140 (fill_fpxregset): Prototype.
10141
10142 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10143
10144 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10145
10146 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10147 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10148 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10149
10150 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10151
10152 * MAINTAINERS: Update target maintainer rules so that any
10153 Maintainer can approve a tested patch for a maintenance-only
10154 target.
10155
10156 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10157
10158 * MAINTAINERS (write-after-approval): Add myself.
10159
10160 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10161 IN_SIGTRAMP.
10162
10163 2002-01-08 Michael Snyder <msnyder@redhat.com>
10164
10165 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10166 real name of the executable, rather than the /proc name.
10167
10168 2002-01-03 Michael Snyder <msnyder@redhat.com>
10169
10170 Implement a "generate-core-file" command in gdb, save target state.
10171 * gcore.c: New file. Implement new command 'generate-core-file'.
10172 Save a corefile image of the current state of the inferior.
10173 * linux-proc.c: Add linux-specific code for saving corefiles.
10174 * target.h (struct target_ops): Add new target vectors for saving
10175 corefiles; to_find_memory_regions and to_make_corefile_notes.
10176 (target_find_memory_regions): New macro.
10177 (target_make_corefile_notes): New macro.
10178 * target.c (update_current_target): Inherit new target methods.
10179 (dummy_find_memory_regions): New place-holder method.
10180 (dummy_make_corefile_notes): New place-holder method.
10181 (init_dummy_target): Initialize new dummy target vectors.
10182 * exec.c (exec_set_find_memory_regions): New function.
10183 Allow the exec_ops vector for memory regions to be taken over.
10184 (exec_make_note_section): New function, target vector method.
10185 * defs.h (exec_set_find_memory_regions): Export prototype.
10186 * procfs.c (proc_find_memory_regions): New function, corefile method.
10187 (procfs_make_note_section): New function, corefile method.
10188 (init_procfs_ops): Set new target vector pointers.
10189 (find_memory_regions_callback): New function.
10190 (procfs_do_thread_registers): New function.
10191 (procfs_corefile_thread_callback): New function.
10192 * sol-thread.c (sol_find_memory_regions): New function.
10193 (sol_make_note_section): New function.
10194 (init_sol_thread_ops): Initialize new target vectors.
10195 * inftarg.c (inftarg_set_find_memory_regions): New function.
10196 Allow to_find_memory_regions vector to be taken over.
10197 (inftarg_set_make_corefile_notes): New function.
10198 Allow to_make_corefile_notes vector to be taken over.
10199 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10200 interface layer if not target_has_execution (may be a corefile).
10201 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10202 * config/sparc/sun4sol2.mh: Ditto.
10203 * config/alpha/alpha-linux.mh: Ditto.
10204 * config/arm/linux.mh: Ditto.
10205 * config/i386/x86-64linux.mh: Ditto.
10206 * config/ia64/linux.mh: Ditto.
10207 * config/m68k/linux.mh: Ditto.
10208 * config/mips/linux.mh: Ditto.
10209 * config/powerpc/linux.mh: Ditto.
10210 * config/sparc/linux.mh: Ditto.
10211
10212 2002-01-07 Michael Snyder <msnyder@redhat.com>
10213
10214 * arm-linux-nat.c: Remove references to regcache.c internal data
10215 (registers[] and register_valid[]).
10216
10217 2002-01-07 Michael Snyder <msnyder@redhat.com>
10218
10219 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10220 so that attaching to a pid will automatically read the process's
10221 symbol file and shlibs.
10222 * Makefile.in: Add rule for linux-proc.o.
10223 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10224 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10225 * config/arm/linux.mh: Ditto.
10226 * config/i386/linux.mh: Ditto.
10227 * config/i386/x86-64linux.mh: Ditto.
10228 * config/ia64/linux.mh: Ditto.
10229 * config/m68k/linux.mh: Ditto.
10230 * config/mips/linux.mh: Ditto.
10231 * config/powerpc/linux.mh: Ditto.
10232 * config/sparc/linux.mh: Ditto.
10233
10234 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10235
10236 * win32-nat.c: Add i386-tdep.h dependency.
10237
10238 2002-01-07 Michael Snyder <msnyder@redhat.com>
10239
10240 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10241 instead of bfd_get_arch_size. Don't bail out just because
10242 there's no exec_bfd.
10243
10244 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10245 * p-valprint.c (pascal_object_print_value): Ditto.
10246 * somread.c (som_symtab_read): Ditto.
10247 * symfile.c (simple_free_overlay_region_table): Ditto.
10248 * valops.c (value_assign): Ditto.
10249
10250 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10251 use tilde_expand and strerror for opening save-tracepoints file.
10252
10253 * thread-db.c (thread_db_new_objfile): Indendation fix.
10254
10255 * infptrace.c (GDB_MAX_ALLOCA): New define.
10256 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10257 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10258 can be overridden with whatever value is appropriate to the host).
10259 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10260 alloca to allocate potentially large buffer.
10261 * rs6000-nat.c (child_xfer_memory): Ditto.
10262 * symm-nat.c (child_xfer_memory): Ditto.
10263 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10264
10265 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10266
10267 From Nick Clifton <nickc@redhat.com>
10268 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10269
10270 2002-01-07 Michael Snyder <msnyder@redhat.com>
10271
10272 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10273 Don't use exec_bfd if it's NULL.
10274
10275 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10276
10277 * valops.c (value_arg_coerce): Fix formatting.
10278
10279 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10280
10281 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10282 * gnu-nat.c: Ditto.
10283
10284 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10285
10286 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10287 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10288 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10289 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10290 z8k-coff have not been multi-arched. Update z8k-coff build
10291 status.
10292
10293 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10294
10295 * MAINTAINERS: Mark a29k target as obsolete.
10296 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10297 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10298 comments.
10299 * NEWS: Note that a29k targets are obsolete.
10300 * a29k-tdep.c: Mark as obsolete.
10301 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10302 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10303 a29k-*-vxworks* targets as obsolete.
10304 * remote-adapt.c: Obsolete.
10305 * remote-eb.c: Obsolete.
10306 * remote-mm.c: Obsolete.
10307 * remote-udi.c: Obsolete.
10308 * config/a29k/a29k-udi.mt: Obsolete.
10309 * config/a29k/a29k.mt: Obsolete.
10310 * config/a29k/tm-a29k.h: Obsolete.
10311 * config/a29k/tm-vx29k.h: Obsolete.
10312 * config/a29k/vx29k.mt: Obsolete.
10313
10314 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10315
10316 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10317 with BFD_ENDIAN_BIG.
10318
10319 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10320
10321 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10322 * configure, config.in: Re-generate.
10323 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10324 * defs.h: Do not include <endian.h>.
10325
10326 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10327
10328 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10329 * config.in: Regenerate.
10330 * configure.in: Update copyright years.
10331 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10332 * configure: Regenerate.
10333 * i386bsd-nat.c: Update copyright years.
10334 (fill_gregset): Use regcache_collect.
10335 (fetch_inferior_registers): Only fetch integer registers
10336 if requested to do so. Add support for XMM registers
10337 using PT_GETXMMREGS.
10338 (store_inferior_registers): Only store integer registers
10339 if requested to do so. Add support for XMM registers
10340 using PT_SETXMMREGS.
10341 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10342 (store_inferior_registers): Remove.
10343 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10344 (fetch_elfcore_registers): New function.
10345 (i386nbsd_elfcore_fns): New.
10346 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10347 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10348 i386bsd-nat.o.
10349 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10350 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10351 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10352 * config/i386/tm-nbsd.h: Update copyright years.
10353 (HAVE_SSE_REGS): Define.
10354 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10355 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10356 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10357 (SIGCONTEXT_PC_OFFSET): Remove.
10358 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10359
10360 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10361
10362 * configure.tgt: Remove powerpc-*-macos* target.
10363 * config/m68k/xm-mpw.h: Delete file.
10364 * config/xm-mpw.h: Delete file.
10365 * ser-mac.c: Delete file.
10366 * mpw-make.sed: Delete file.
10367 * mpw-config.in: Delete file.
10368 * mac-xdep.c: Delete file.
10369 * mac-gdb.r: Delete file.
10370 * mac-defs.h: Delete file.
10371 * mac-nat.c: Delete file.
10372 * config/powerpc/macos.mh: Delete file.
10373 * config/powerpc/macos.mt: Delete file.
10374 * config/powerpc/nm-macos.h: Delete file.
10375 * config/powerpc/tm-macos.h: Delete file.
10376 * source.c (openp, open_source_file): Remove obsolete code.
10377 * top.c (gdb_readline): Ditto.
10378 * utils.c (query): Ditto.
10379 * event-top.c (display_gdb_prompt): Ditto.
10380 * Makefile.in (ser-mac.o): Delete obsolete target.
10381 * NEWS: Update.
10382
10383 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10384
10385 * defs.h (BIG_ENDIAN): Delete macro definition.
10386 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10387 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10388 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10389 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10390 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10391 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10392 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10393 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10394 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10395 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10396 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10397 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10398 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10399 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10400 * gdbarch.c: Re-generate.
10401
10402 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10403
10404 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10405 for core files.
10406
10407 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10408
10409 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10410
10411 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10412
10413 * value.h (value_ptr): Delete typedef.
10414
10415 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10416
10417 * i386nbsd-nat.c: Update copyright years.
10418 Include i386-tdep.h.
10419
10420 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10421
10422 * stabsread.c: Update copyright years.
10423
10424 From Debashis Mahata <debashis.mahata@wipro.com>:
10425 (read_struct_fields): Deal with Sun C compiler erroneous stab
10426 output for structs and unions.
10427 Fix PR gdb/269.
10428
10429 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10430
10431 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10432 prototype.
10433
10434 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10435
10436 * cp-abi.c: Fix whitespace.
10437 (baseclass_offset): New wrapper function.
10438 * cp-abi.h (baseclass_offset): Add prototype.
10439 (struct cp_abi_ops): Add baseclass_offset pointer.
10440
10441 * valops.c (vb_match): Move to...
10442 * gnu-v2-abi.c (vb_match): here.
10443 * valops.c (baseclass_offset): Move to...
10444 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10445
10446 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10447
10448 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10449 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10450 * hpacc-abi.c (init_hpacc_ops): Likewise.
10451
10452 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10453
10454 * valops.c (find_overload_match): Accept obj as a
10455 reference parameter. Update it before returning.
10456 * value.h (find_overload_match): Update prototype.
10457 * eval.c (evaluate_subexp_standard): Pass object to
10458 find_overload_match by reference.
10459
10460 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10461
10462 * valarith.c: Replace value_ptr with struct value pointer. Remove
10463 register attribute from value declarations.
10464 * valops.c: Ditto.
10465 * value.h: Ditto.
10466 * scm-lang.c (scm_lookup_name): Ditto.
10467
10468 2002-01-03 Michael Snyder <msnyder@redhat.com>
10469
10470 Abstract the functionality of iterating over mapped memory
10471 regions into a general purpose iterator function.
10472 * procfs.c (iterate_over_mappings): New function, general purpose
10473 iterator for memory sections.
10474 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10475 (solib_mappings_callback): New function, callback for above.
10476 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10477 (info_mappings_callback): New function, callback for above.
10478
10479 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10480
10481 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10482
10483 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10484 * i386-tdep.c: Include "elf-bfd.h".
10485 (process_note_abi_tag_sections): New function.
10486 (i386_gdbarch_init): Add code to recognize various OS/ABI
10487 combinations.
10488
10489 * maint.c (_initialize_maint_cmds): Add missing \ in
10490 string-literal.
10491
10492 For older changes see ChangeLog-2001
10493 \f
10494 Local Variables:
10495 mode: change-log
10496 left-margin: 8
10497 fill-column: 74
10498 version-control: never
10499 End:
This page took 0.234386 seconds and 5 git commands to generate.