27d9d3021027dd104ed519a419fec085613840c7
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-20 Jim Blandy <jimb@redhat.com>
2
3 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4 default for this.
5 * gdbserver/Makefile.in (LDFLAGS): Same.
6
7 2002-08-20 Keith Seitz <keiths@redhat.com>
8
9 * breakpoints.c (watch_command_1): Use internal breakpoint
10 when setting a watchpoint_scope breakpoint.
11
12 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
13
14 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
15 (build_builtin_type_vec64i): Ditto.
16 (build_builtin_type_vec128): Ditto.
17 (build_builtin_type_vec128i): Ditto.
18
19 2002-08-19 Michael Snyder <msnyder@redhat.com>
20
21 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
22 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
23 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
24 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
25 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
26 CALL_DUMMY_ADDRESS): Delete.
27 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
28 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
29 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
30 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
31 push_return_address.
32 (mips_register_raw_size, mips_eabi_use_struct_convention,
33 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
34 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
35 mips_init_extra_frame_info, mips_eabi_push_arguments,
36 mips_n32n64_push_arguments, mips_push_return_address,
37 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
38 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
39
40 2002-08-19 Michael Snyder <msnyder@redhat.com>
41
42 * mips-tdep.c (mips_frame_num_args): New function.
43 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
44 frame_saved_pc, frame_args_address, frame_locals_address,
45 frame_num_args, and frame_args_skip.
46 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
47 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
48 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
49 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
50
51 2002-08-20 Michael Snyder <msnyder@redhat.com>
52
53 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
54 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
55 * mips-tdep.c (mips_store_struct_return): New function.
56 (mips_extract_struct_value_address): New function.
57 (mips_gdbarch_init): Set store_struct_return and
58 extract_struct_value_address.
59
60 2002-08-20 David Carlton <carlton@math.stanford.edu>
61
62 * dwarf2read.c (dwarf2_build_psymtabs): Check that
63 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
64 (read_file_scope): Check that line_header is nonzero before
65 decoding macro information.
66
67 2002-08-20 Mark Kettenis <kettenis@gnu.org>
68
69 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
70 flag the general-purpose registers as floating-point on targets
71 that don't support the floating-point registers.
72
73 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
74
75 * rs6000-tdep.c (altivec_register_p): Delete.
76 (rs6000_do_altivec_registers): Delete.
77 (rs6000_altivec_registers_info): Delete.
78 (rs6000_do_registers_info): Delete.
79 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
80 (rs6000_gdbarch_init): Remove setting of do_registers_info.
81
82 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
83
84 * infcmd.c (do_registers_info): Print vector registers in hex
85 format only.
86 (print_vector_info): Check that printing registers
87 makes sense.
88 (print_float_info): Ditto.
89
90 2002-08-20 Andrew Cagney <ac131313@redhat.com>
91
92 * mips-tdep.c (mips_gdbarch_init): Update.
93 (mips_o32_extract_return_value): Rewrite.
94 (mips_o32_store_return_value): Rewrite.
95 (mips_o32_xfer_return_value): New function.
96 (mips_xfer_register): Tweak debug print message. Allow for
97 buf_offset when dumping the value transfered.
98
99 2002-08-20 Andrew Cagney <ac131313@redhat.com>
100
101 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
102 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
103 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
104 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
105 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
106
107 2002-08-14 Michael Snyder <msnyder@redhat.com>
108
109 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
110
111 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
112
113 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
114 register.
115 (P): New macro to define a register as a pseudo register.
116 (R, R4, R8, R16, FR32, R64, R0): Updated.
117 (struct variant): Add new fields for number of pseudo registers
118 and number of total registers.
119 (tot_num_registers): New macro replacing....
120 (num_registers): ...deleted macro.
121 (num_registers): New function.
122 (num_pseudo_registers): New function.
123 (variants): Update all variants to intialize new fields correctly.
124 Postpone initialization of number of pseudo regs and real regs.
125 (init_variants): New function.
126 (rs6000_gdbarch_init): Initialize variants. Update calculation of
127 registers offsets.
128
129 2002-08-19 David Carlton <carlton@math.stanford.edu>
130
131 * valops.c (search_struct_field): Change error message to treat
132 return value of 0 from value_static_field as meaning that field is
133 optimized out.
134 (value_struct_elt_for_reference): Ditto.
135 * values.c (value_static_field): Treat an unresolved location the
136 same as a nonexistent symbol. Fix PR gdb/635.
137 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
138 enclosed. Fix PR gdb/574.
139 * MAINTAINERS: Add self to Write After Approval list.
140
141 2002-08-19 Andrew Cagney <ac131313@redhat.com>
142
143 * mips-tdep.c (mips_xfer_register): New function.
144 (mips_n32n64_extract_return_value): Rewrite.
145 (mips_gdbarch_init): For N32 and N64, set extract_return_value
146 instead of deprecated_extract_return_value.
147
148 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
149
150 * rs6000-tdep.c (TDEP): Delete macro.
151 (branch_dest): Replace use of TDEP macro with its body.
152 (rs6000_pop_frame): Ditto.
153 (rs6000_push_arguments): Ditto.
154 (rs6000_skip_trampoline_code): Ditto.
155 (rs6000_frame_saved_pc): Ditto.
156 (rs6000_frame_chain): Ditto.
157 (rs6000_register_name): Ditto.
158 (rs6000_register_byte): Ditto.
159 (rs6000_register_raw_size): Ditto.
160 (rs6000_register_virtual_type): Ditto.
161 (rs6000_register_convertible): Ditto.
162 (rs6000_convert_from_func_ptr_addr): Ditto.
163
164 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
165
166 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
167 conditionally.
168 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
169 MIPS_LINUX_JB_ELEMENT_SIZE.
170 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
171 for MAX_REGISTER_RAW_SIZE arrays.
172 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
173 MIPS_LINUX_JB_ELEMENT_SIZE.
174
175 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
176
177 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
178
179 2002-08-19 Aidan Skinner <aidan@velvet.net>
180
181 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
182 ada-valprint.c ada-tasks.c.
183 (YYFILES): Add ada-exp.y.
184 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
185 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
186 (ada-exp.tab.o): New target.
187
188 2002-08-18 Andrew Cagney <ac131313@redhat.com>
189
190 * regcache.c (regcache_xfer_part): New function.
191 (regcache_raw_read_part): New function.
192 (regcache_raw_write_part): New function.
193 (regcache_cooked_read_part): New function.
194 (regcache_cooked_write_part): New function.
195 * regcache.h (regcache_raw_read_part): Declare.
196 (regcache_raw_write_part): Declare.
197 (regcache_cooked_read_part): Declare.
198 (regcache_cooked_write_part): Declare.
199
200 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
201
202 * remote.c (remote_open_1): Add async_p.
203 (remote_async_open_1): Delete.
204 (open_remote_target): Delete.
205 (remote_open, extended_remote_open): Update calls to remote_open_1.
206 (remote_async_open, extended_remote_async_open): Call
207 remote_open_1 instead of remote_async_open_1.
208
209 2002-08-19 Mark Kettenis <kettenis@gnu.org>
210
211 * blockframe.c: Fix a few coding standard violations.
212
213 2002-08-19 Mark Kettenis <kettenis@gnu.org>
214
215 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
216 here from ...
217 * config/i386/tm-i386sco5.h: ... here. File removed.
218 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
219
220 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
221 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
222 (TM_FILE): Set to tm-i386.h.
223 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
224 * config/i386/tm-i386v.h: Remove file.
225 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
226 instead of "i386/tm-i386v.h".
227 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
228 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
229 "i386/tm-i386v.h".
230 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
231 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
232 "i386/tm-i386.h".
233
234 2002-08-18 Mark Kettenis <kettenis@gnu.org>
235
236 * config/i386/nm-i386v.h: Add protection against
237 multiple-inclusion.
238 (i386_register_u_addr): Remove prototype.
239 (register_u_addr): New prototype.
240 (REGISTER_U_ADDR): Redefine accordingly.
241 * i386v-nat.c: Improve several comments.
242 (i386_register_u_addr): Change signature and rename to
243 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
244 ubase variable.
245
246 2002-08-18 Andrew Cagney <ac131313@redhat.com>
247
248 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
249 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
250 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
251 deprecated_extract_return_value.
252 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
253 rename mips_o32o64_push_arguments.
254 (mips_gdbarch_init): Update.
255 (mips_extract_return_value): Delete.
256 (mips_o32_extract_return_value): Clone mips_extract_return_value.
257 (mips_o64_extract_return_value): Clone mips_extract_return_value.
258 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
259 (mips_n32n64_extract_return_value): Clone
260 mips_extract_return_value.
261 (mips_store_return_value): Delete.
262 (mips_o32_store_return_value): Clone mips_store_return_value.
263 (mips_o64_store_return_value): Clone mips_store_return_value.
264 (mips_eabi_store_return_value): Clone mips_store_return_value.
265 (mips_n32n64_store_return_value): Clone mips_store_return_value.
266
267 2002-08-18 Aidan Skinner <aidan@velvet.net>
268
269 * ada-lang.c: Use gdb_string.h instead of <string.h>.
270 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
271
272 2002-08-18 Aidan Skinner <aidan@velvet.net>
273
274 * ada-lang.c: Run through gdb_indent.sh.
275 * ada-lang.h: Run through gdb_indent.sh.
276 * ada-tasks.c: Run through gdb_indent.sh.
277 * ada-typeprint.c: Run through gdb_indent.sh.
278 * ada-valprint.c: Run through gdb_indent.sh.
279
280 2002-08-18 Andrew Cagney <ac131313@redhat.com>
281
282 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
283 ABI.
284
285 2002-08-18 Mark Kettenis <kettenis@gnu.org>
286
287 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
288
289 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
290 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
291
292 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
293 write_register_gen instead of write_register_bytes.
294
295 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
296 i[3456]-*-osf1mk* configurations have been made obsolete.
297 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
298 i[3456]86-*-osf1mk* hosts obsolete.
299 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
300 targets obsolete.
301 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
302 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
303 config/i386/i386m3.mt, config/i386/nm-m3.h,
304 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
305 config/i386/i386mk.mh, config/i386/i386mk.mt,
306 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
307 obsolete.
308 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
309 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
310 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
311
312 2002-08-18 Andrew Cagney <ac131313@redhat.com>
313
314 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
315 (hppa_value_returned_from_stack): Declare.
316 (hppa_extract_return_value): Declare.
317 * config/pa/hppa.mt: New file.
318 * configure.tgt: Recognize hppa*-*-*.
319 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
320
321 2002-08-18 Mark Kettenis <kettenis@gnu.org>
322
323 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
324 comment.
325
326 2002-08-17 Mark Kettenis <kettenis@gnu.org>
327
328 * top.c (gdb_rl_operate_and_get_next): Make sure
329 operate-and-get-next functions correctly even when the history
330 list is completely filled.
331
332 2002-08-18 Andrew Cagney <ac131313@redhat.com>
333
334 * MAINTAINERS (Target Instruction Set Architectures): Rename
335 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
336 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
337 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
338 already listed under Host/Native.
339
340 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
341 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
342 mips*-*-*.
343
344 2002-08-17 Andrew Cagney <ac131313@redhat.com>
345
346 * config/ia64/ia64.mt: New file.
347 * config/alpha/alpha.mt: New file.
348 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
349 ia64-linux-gnu. Mention that ia64-elf is broken.
350 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
351
352 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
353
354 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
355 generic_func_frame_valid instead of func_frame_valid.
356
357 2002-08-16 Joel Brobecker <brobecker@gnat.com>
358
359 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
360 procfs appears to be broken when debugging on multi-processor
361 machines. So enable software single stepping in order to avoid
362 using the procfs interface to do next/step operations, using
363 internal breakpoints instead.
364
365 * infrun.c (handle_inferior_event): Readjust the stop_pc by
366 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
367 make this pc address equal to the value it would have if the
368 system stepping capability was used. Also set a new flag used
369 to ensure that we don't readjust the PC one more time later.
370
371 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
372 address by DECR_PC_AFTER_BREAK when software single step is
373 in use for this architecture, as this has already been taken
374 care of in handle_inferior_event().
375
376 2002-08-16 Joel Brobecker <brobecker@gnat.com>
377
378 * infrun.c (handle_inferior_event): Minor reformatting, to make
379 a rather long condition expression easier to read.
380
381 2002-08-16 Andrew Cagney <ac131313@redhat.com>
382
383 * Makefile.in (gdbtk.o): Move to end of file.
384 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
385 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
386 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
387 (gdbtk-wrapper.o, gdbres.o): Ditto.
388
389 2002-08-16 Andrew Cagney <ac131313@redhat.com>
390
391 * Makefile.in (copying.o): Separate out compile rule.
392 (hpux-thread.o, procfs.o, signals.o): Ditto.
393 (v850ice.o, z8k-tdep.o): Ditto.
394 (tui-file.o): Move to TUI section.
395 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
396 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
397
398 2002-08-16 Joel Brobecker <brobecker@gnat.com>
399
400 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
401 skip_trampoline_code, for better namespace-proofing.
402
403 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
404
405 2002-08-16 Joel Brobecker <brobecker@gnat.com>
406
407 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
408
409 2002-08-16 Joel Brobecker <brobecker@gnat.com>
410
411 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
412 signal, check whether we hit a breakpoint before checking for a
413 single step breakpoint. Otherwise, GDB fails to notice that a
414 breakpoint has been hit when stepping onto a breakpoint.
415
416 2002-08-16 Keith Seitz <keiths@redhat.com>
417
418 * gdb-events.sh (clear_gdb_event_hooks): New function.
419 * gdb-events.c: Regenerate.
420 * gdb-events.h: Regenerate.
421
422 2002-08-16 Andrew Cagney <ac131313@redhat.com>
423
424 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
425 not_a_sw_breakpoint.
426 * breakpoint.h (bpstat_stop_status): Add parameter names.
427
428 2002-08-16 Grace Sainsbury <graces@redhat.com>
429
430 * remote.c (remote_insert_hw_breakpoint)
431 (remote_remove_hw_breakpoint): Fix calculation of length field
432 for Z-packet.
433
434 2002-08-15 Michael Snyder <msnyder@redhat.com>
435
436 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
437 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
438 (supply_fpregset): Ditto.
439
440 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
441 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
442 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
443 (TARGET_READ_SP): Delete.
444 (DO_REGISTERS_INFO): Delete.
445 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
446 Delete.
447 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
448 from macros to functions.
449
450 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
451 (mips_register_convertible, mips_register_convert_to_virtual,
452 mips_register_convert_to_raw): Make static.
453 (mips_read_sp): New function.
454 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
455 (mips_do_registers_info): Make static.
456 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
457 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
458 (mips_register_convert_from_type, mips_register_convert_to_type):
459 New functions.
460 (mips_gdbarch_init): Set up function_start_offset,
461 register_virtual_size, pc_in_sigtramp.
462
463 2002-08-15 Andrew Cagney <ac131313@redhat.com>
464
465 * infcmd.c (vector_info): New function.
466 (_initialize_infcmd): Add command "info vector".
467 (print_vector_info): New function.
468
469 * gdbarch.sh (PRINT_VECTOR_INFO): New method
470 * gdbarch.h, gdbarch.c: Regenerate.
471
472 2002-08-15 Andrew Cagney <ac131313@redhat.com>
473
474 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
475 ``print_all''. Only print vector registers when ``print_all''.
476
477 2002-08-15 Andrew Cagney <ac131313@redhat.com>
478
479 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
480 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
481
482 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
483 Add `args' parameter.
484 * gdbarch.h, gdbarch.c: Regenerate.
485
486 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
487
488 * infcmd.c (float_info): Call print_float_info.
489 (print_float_info): New function. By default, print the
490 floating-point registers.
491
492 * arch-utils.h (default_print_float_info): Delete declaration.
493 * arch-utils.c (default_print_float_info): Delete function.
494
495 2002-08-16 Mark Kettenis <kettenis@gnu.org>
496
497 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
498 out define.
499
500 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
501 FRAME.
502
503 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
504 * configure.host: Make i[3456]86-*-aix host obsolete.
505 * configure.tgt: Make i[3456]86-*-aix target obsolete.
506 * config/i386/i386aix.mh, config/i386/i386aix.mt,
507 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
508 config/i386/xm-i386aix.h: Make files obsolete.
509 * i386aix-nat.c: Make file obsolete.
510 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
511 (i386aix-nat.o): Make target obsolete.
512
513 * config/i386/nm-gnu.h: Removed.
514 * config/i386/nm-i386gnu.h: New file.
515 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
516 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
517 Moved here from ...
518 * config/i386/tm-i386gnu.h: ... here. Removed.
519 * config/i386/xm-i386gnu.h: Removed.
520 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
521 (NAT_FILE): Set to nm-i386gnu.h.
522 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
523 * i386-tdep.c: New file.
524 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
525 (i386gnu-tdep.o): Specify dependencies.
526
527 2002-08-15 Mark Kettenis <kettenis@gnu.org>
528
529 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
530 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
531 Adjust a few comments to reflect reality a bit closer.
532 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
533 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
534 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
535 target_insert_watchpoint, target_remove_watchpoint):
536 Move defines to ...
537 * config/i386/nm-i386sco5.h: ... here.
538 (kernel_u_size): Add prototype. Improve a few comments and add
539 protection against multiple inclusion.
540
541 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
542 out define.
543
544 * uw-thread.c (SP_ARG0): Define if not already defined.
545 * config/i386/tm-i386.h (SO_ARG0): Remove define.
546
547 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
548
549 * config/i386/tm-i386.h: Don't include "regcache.h".
550
551 * i387-tdep.h (i387_print_float_info): New prototype.
552 * i387-tdep.c (print_i387_value, print_i387_ext,
553 print_i387_status_word, print_i387_control_word): Add `struct
554 ui_file *' argument and use it for output.
555 (i387_print_float_info): Renamed from i387_float_info. Add
556 `struct gdbarch *' and `struct ui_file *' arguments and use the
557 latter for output.
558 * i386-tdep.c: Include "i387-tdep.h".
559 (i386_gdbarch_init): Set print_float_info.
560 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
561 (FLOAT_INFO): Remove define.
562
563 2002-08-13 Michael Snyder <msnyder@redhat.com>
564
565 * mips-tdep.c (mips_push_arguments): Rename to
566 mips_eabi_push_arguments, and tune for EABI.
567 (MIPS_REGS_HAVE_HOME_P): Delete.
568 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
569 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
570 Delete references to mips_regs_have_home_p.
571
572 2002-08-14 Keith Seitz <keiths@redhat.com>
573
574 * Makefile.in (install-gdbtk): Create insight plugin directory.
575 Install plugins.tcl file.
576
577 2002-08-14 Keith Seitz <keiths@redhat.com>
578
579 * configure.in: Move SUBDIRS to near top of the file so that
580 --enable options may add things to it.
581 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
582 * configure: Regenerate.
583
584 2002-08-13 Michael Snyder <msnyder@redhat.com>
585
586 * mips-tdep.c (mips_o32o64_push_arguments): New function,
587 cloned from mips_push_arguments, tuned for o32/o64 ABI.
588 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
589
590 2002-08-13 Andrew Cagney <ac131313@redhat.com>
591
592 * vax-tdep.c (vax_get_saved_register): Delete function.
593 (vax_gdbarch_init): Update.
594 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
595 (ns32k_gdbarch_init): Update.
596 * alpha-tdep.c (alpha_get_saved_register): Delete function.
597 (alpha_gdbarch_init): Update.
598
599 2002-08-13 Andrew Cagney <cagney@redhat.com>
600
601 * regcache.c (init_regcache_descr): Overallocate the
602 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
603 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
604 nr_raw_registers.
605 (set_register_cached): Add range checking assertions. Use
606 current_regcache.
607
608 2002-08-13 Mark Kettenis <kettenis@gnu.org>
609
610 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
611 numbers for MMX registers.
612
613 2002-08-13 Andrew Cagney <cagney@redhat.com>
614
615 * i386-tdep.c (i386_gdbarch_init): Use
616 generic_unwind_get_saved_register.
617
618 2002-08-13 Kevin Buettner <kevinb@redhat.com>
619
620 * procfs.c (procfs_can_use_hw_breakpoint): New function.
621 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
622 target vector.
623 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
624 Delete. Add comment regarding this now-deleted target method.
625
626 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
627
628 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
629 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
630 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
631 real PC and the page number (if it's within the memory bank window).
632 (m68hc11_pseudo_register_write): Likewise when saving.
633 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
634 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
635 (m68hc11_register_raw_size): And use 32-bit for it.
636 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
637 16K memory bank is used by the prog; also use the virtual pc.
638
639 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
640
641 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
642 (m68hc11_gdbarch_init): Install it in gdbarch.
643 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
644 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
645 (MSYMBOL_SIZE): New for documentation.
646 (insn_return_kind): Enum to specify how a function returns.
647 (frame_extra_info): Cleanup and record the return mode.
648 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
649 register in address computation.
650 (m68hc11_get_return_insn): New to obtain the return instruction used
651 by the function.
652 (m68hc11_frame_init_saved_regs): Take into account the return
653 instruction used by the function for far and interrupt functions.
654 (m68hc11_init_extra_frame_info): Take into account page register.
655 (m68hc11_frame_args_address): Adjust according to the return mode.
656 (show_regs): Print page register only when it's used.
657
658 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
659
660 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
661 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
662 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
663 registers.
664 (m68hc11_register_raw_size): Likewise.
665
666 2002-08-13 Andrew Cagney <cagney@redhat.com>
667
668 * i386-tdep.c (i386_register_name): Handle mmx registers.
669 (mmx_regnum_p): New function.
670 (i386_mmx_names): New array.
671 (mmx_num_regs): New variable.
672 (i386_pseudo_register_read): New function.
673 (i386_pseudo_register_write): New function.
674 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
675
676 * regcache.c (regcache_raw_read_unsigned): New function.
677 (regcache_raw_read_signed): New function.
678 * regcache.h (regcache_raw_read_unsigned): Declare.
679 (regcache_raw_read_signed): Declare.
680
681 2002-08-13 Andrew Cagney <cagney@redhat.com>
682
683 * regcache.c (regcache_raw_read_as_address): Delete function.
684 (regcache_cooked_read_signed): New function.
685 (regcache_cooked_read_unsigned): New function.
686 * regcache.h (regcache_cooked_read_signed): Declare.
687 (regcache_cooked_read_unsigned): Declare.
688 (regcache_raw_read_as_address): Delete declaration.
689
690 * blockframe.c (generic_read_register_dummy): Use
691 regcache_cooked_read_unsigned.
692 * i386-tdep.c (i386_extract_struct_value_address): Use
693 regcache_cooked_read_unsigned.
694
695 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
696
697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
698 double sizes according to ELF ABI flags.
699 (gdbarch_tdep): Record elf_flags.
700
701 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
702
703 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
704 (m6812_prolog): They can appear in 68HC12 function prologue.
705 (m68hc11_frame_chain): Cleanup.
706
707 2002-08-12 Andrew Cagney <cagney@redhat.com>
708
709 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
710 declarations.
711 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
712 (i386_linux_register_raw_size): Delete function.
713 (i386_linux_init_abi): Update.
714 * i386-tdep.c (i386_register_raw_size): Delete function.
715 (i386_register_byte): Delete function.
716 (i386_gdbarch_init): Update.
717 (i386_register_size): Delete array.
718 (i386_register_offset): Delete array.
719
720 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
721 (REGISTER_RAW_SIZE): Delete macro.
722 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
723 (REGISTER_BYTE): Delete macro.
724
725 2002-08-11 Aidan Skinner <aidan@velvet.net>
726
727 * ada-lang.c (ada_lookup_partial_symbol)
728 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
729 prototype names so that grep ^func works properly.
730
731 * ada-lang.c (ada_array_element_type)
732 (ada_lookup_partial_symbol): Fix typos in parameter list.
733
734 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
735 Fix prototype names so that grep ^func works properly.
736
737 2002-08-10 Andrew Cagney <cagney@redhat.com>
738 Elena Zannoni <ezannoni@redhat.com>
739 Martin M. Hunt <hunt@redhat.com>
740
741 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
742 (build_builtin_type_vec128i): Set the vector bit.
743 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
744 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
745 (build_builtin_type_vec64): New function.
746 (build_builtin_type_vec64i): New function.
747 (build_gdbtypes): Initialize builtin_type_vec64 and
748 builtin_type_vec64i.
749
750 2002-08-09 Andrew Cagney <cagney@redhat.com>
751
752 * regcache.c (regcache_dump): Compare the register offset
753 with REGISTER_BYTE.
754 * arch-utils.c (generic_register_byte): New function.
755 * arch-utils.h (generic_register_byte): Declare.
756 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
757 * gdbarch.h, gdbarch.c: Regenerate.
758
759 2002-08-09 Andrew Cagney <cagney@redhat.com>
760
761 * regcache.c: Include "gdbcmd.h"
762 (_initialize_regcache): Add commands "maintenance print
763 registers", "maintenance print raw-registers" and "maintenance
764 print cooked-registers".
765 (enum regcache_dump_what): Define.
766 (dump_endian_bytes): New function.
767 (regcache_dump): New function.
768 (regcache_print): New function.
769 (maintenance_print_registers): New function.
770 (maintenance_print_raw_registers): New function.
771 (maintenance_print_cooked_registers): New function.
772 * Makefile.in (regcache.o): Update dependencies.
773
774 2002-08-09 Michael Snyder <msnyder@redhat.com>
775
776 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
777 (mips_push_arguments): Correct some comments. Use paddr_nz
778 for printing addresses in debug output. Replace static
779 allocation using MAX_REGISTER_RAW_SIZE with alloca.
780 (mips_n32n64_push_arguments): New function, cloned from
781 mips_push_arguments and tuned for the n32/n64 ABI.
782 (mips_push_register): Buffer needs dynamic allocation.
783 (mips_print_register): Ditto.
784 (do_gp_register_row): Ditto.
785 (mips_store_return_value): Ditto.
786 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
787
788 2002-08-09 Don Howard <dhoward@redhat.com>
789
790 * memattr.c (mem_info_command): Print special case of upper bound
791 as max CORE_ADDR + 1.
792
793 2002-08-08 Michael Snyder <msnyder@redhat.com>
794
795 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
796 returns structs by ref if they're too big to fit in two registers.
797
798 2002-08-09 Kevin Buettner <kevinb@redhat.com>
799
800 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
801 saved regs value.
802 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
803 mips_find_saved_regs().
804 (mips_pop_frame): Likewise.
805
806 2002-08-09 Kevin Buettner <kevinb@redhat.com>
807
808 * blockframe.c (frame_saved_regs_register_unwind): Revise
809 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
810 frames are in use.
811
812 2002-08-09 Grace Sainsbury <graces@redhat.com>
813
814 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
815 T-packets; the 'a' is not taken as a register number.
816 (remote_check_watch_resources, remote_stopped_by_watchpoint)
817 (remote_stopped_data_address): New functions; add to target
818 vector.
819 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
820 prototypes to match other implementations of this
821 function. replace integer argument with pointer -- the length
822 field in the Z-packet is the length of what is pointed to or 1 if
823 pointer is null. Add to target vector.
824 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
825 target vector.
826
827 From Mark Salter:
828 * remote.c (remote_wait): Add support to extract optional
829 watchpoint information from T-packet. Ignore unrecognized
830 optional info in T-packet.
831 (remote_async_wait): Ditto.
832
833 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
834
835 * cli/cli-dump.c: Change fopen modes to use binary open modes
836 as defined in include/fopen-bin.h throughout.
837
838 2002-08-08 Michael Snyder <msnyder@redhat.com>
839
840 * mips-tdep.c: Minor whitespace and indentation clean-ups.
841
842 2002-08-08 Kevin Buettner <kevinb@redhat.com>
843
844 * doublest.c (store_floating): Avoid floatformat_from_doublest()
845 assertion failure by returning early after a warning.
846
847 2002-08-08 Kevin Buettner <kevinb@redhat.com>
848
849 * mips-tdep.c (mips_find_saved_regs): Make static.
850 (mips_frame_init_saved_regs): New function.
851 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
852 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
853 (mips_find_saved_regs): Delete declaration.
854
855 2002-08-08 Grace Sainsbury <graces@redhat.com>
856
857 * remote.c (remote_wait, remote_async_wait): Change
858 thread_num from int to ULONGEST.
859 (unpack_varlen_hex): Change result parameter from
860 int * to ULONGEST *.
861
862 2002-08-08 Andrew Cagney <ac131313@redhat.com>
863
864 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
865 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
866 powerpc*-*-*.
867 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
868
869 2002-08-08 Andrew Cagney <cagney@redhat.com>
870
871 * gcore.c (override_derive_stack_segment): Delete variable.
872 (preempt_derive_stack_segment): Delete function.
873 (derive_stack_segment): Delete function.
874 (default_derive_stack_segment): Renamed to derive_stack_segment.
875 (override_derive_heap_segment): Delete variable.
876 (preempt_derive_heap_segment): Delete function.
877 (derive_heap_segment): Delete function.
878 (default_derive_heap_segment): Rename to derive_heap_segment.
879
880 2002-08-06 Michael Snyder <msnyder@redhat.com>
881
882 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
883 * mips-tdep.c (mips_EABI_use_struct_convention,
884 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
885 New functions. (mips_use_struct_convention): Delete.
886 (mips_gdbarch_init): set use_gdbarch_convention.
887
888 2002-08-06 Michael Snyder <msnyder@redhat.com>
889
890 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
891 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
892 mips_o32_reg_struct_has_addr): New functions.
893 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
894
895 2002-08-07 Andrew Cagney <ac131313@redhat.com>
896
897 * regcache.c (pseudo_register): Delete function.
898 (fetch_register): Delete function.
899 (store_register): Delete function.
900 (regcache_raw_read, legacy_read_register_gen): Use
901 target_fetch_registers instead of fetch_register.
902 (legacy_write_register_gen, regcache_raw_write): Use
903 target_store_register instead of store_register.
904 (write_register_bytes): Ditto.
905
906 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
907 (STORE_PSEUDO_REGISTER): Delete.
908 * gdbarch.h, gdbarch.c: Regenerate.
909
910 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
911
912 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
913 write dump file binary.
914
915 2002-08-05 Michael Snyder <msnyder@redhat.com>
916
917 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
918 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
919 (mips_gdbarch_init): Set N32 target to be mips64.
920
921 2002-08-06 Kevin Buettner <kevinb@redhat.com>
922
923 * frame.c (find_saved_register): Break out of loop once saved
924 register address is found. Don't mention sparc in loop comment
925 anymore.
926
927 2002-08-06 Kevin Buettner <kevinb@redhat.com>
928
929 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
930 mips_default_saved_regsize to 8.
931
932 2002-08-06 Andrew Cagney <ac131313@redhat.com>
933
934 * gcore.c: Do not include <sys/procfs.h>.
935 * Makefile.in (gcore.o): Update dependencies.
936
937 2002-08-06 Andrew Cagney <cagney@redhat.com>
938
939 * configure.tgt: Make arc-*-* obsolete.
940 * NEWS: Mention that arc-*-* has been identifed as obsolete.
941 * MAINTAINERS: Make arc-elf obsolete.
942 * arc-tdep.c: Make file obsolete.
943 * config/arc/arc.mt: Ditto.
944 * config/arc/tm-arc.h: Ditto.
945
946 2002-08-05 Theodore A. Roth <troth@verinet.com>
947
948 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
949
950 2002-08-05 Andrew Cagney <ac131313@redhat.com>
951
952 * mcore-tdep.c (mcore_gdbarch_init): Use
953 generic_unwind_get_saved_register instead of
954 generic_get_saved_register.
955 * v850-tdep.c (v850_gdbarch_init): Ditto.
956 * frv-tdep.c (frv_gdbarch_init): Ditto.
957 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
958 * s390-tdep.c (s390_gdbarch_init): Ditto.
959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
960 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
961 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
962
963 2002-08-05 Joel Brobecker <brobecker@gnat.com>
964
965 * objfiles.h: Add missing #include "symfile.h"
966
967 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
968
969 2002-08-04 Andrew Cagney <ac131313@redhat.com>
970
971 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
972 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
973 of FIELD_BITSIZE.
974
975 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
976
977 * NEWS: Cleanup and nitpick.
978
979 2002-08-03 Andrew Cagney <ac131313@redhat.com>
980
981 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
982
983 2002-08-03 Andrew Cagney <ac131313@redhat.com>
984
985 * Makefile.in (gdbtk-bp.o): Update dependencies.
986 (gdbtk-register.o): Ditto.
987 (gdbtk-varobj.o): Ditto.
988
989 2002-08-03 Andrew Cagney <cagney@redhat.com>
990
991 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
992 m68hc11_fetch_pseudo_register.
993 (m68hc11_pseudo_register_write): Replace
994 m68hc11_store_pseudo_register.
995 (m68hc11_gdbarch_init): Update.
996
997 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
998
999 * gdbarch.sh: Include "gdb_string.h".
1000 * gdbarch.c: Regenerate.
1001
1002 * regcache.c: Include "gdb_string.h".
1003 * ax-general.c: Ditto.
1004 * varobj.c: Ditto.
1005 * std-regs.c: Ditto.
1006 * fbsd-proc.c: Ditto.
1007 * thread.c: Ditto.
1008
1009 * Makefile.in (regcache.o): Update dependencies.
1010 (thread.o, gdbarch.o): Ditto.
1011 (ax-general.o, gdbarch.o): Ditto.
1012 (varobj.o, std-regs.o): Ditto.
1013 (fbsd-proc.o): Specify dependencies.
1014
1015 2002-08-02 Andrew Cagney <cagney@redhat.com>
1016
1017 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1018 regnum.
1019 (regcache_cooked_write): Ditto.
1020
1021 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1022
1023 * regcache.c (regcache_cooked_read): New function.
1024 (regcache_cooked_write): New function.
1025 (read_register_gen): Rewrite using regcache_cooked_read.
1026 (write_register_gen): Rewrite using regcache_cooked_write.
1027
1028 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1029 Declare.
1030
1031 2002-08-02 Andrew Cagney <cagney@redhat.com>
1032
1033 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1034 Replace the architecture methods register_read and register_write.
1035 * gdbarch.h, gdbarch.c: Regenerate.
1036 * regcache.c (init_regcache_descr): Update.
1037 (read_register_gen): Update.
1038 (write_register_gen): Update.
1039 (supply_register): Update comment.
1040
1041 * sh-tdep.c (sh_gdbarch_init): Update.
1042 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1043 `regcache' and `gdbarch' parameters. Make `buffer' a void
1044 pointer. Update code.
1045 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1046 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1047 void pointer. Update code.
1048 (sh64_register_write): Delete.
1049 (sh4_register_read): Delete.
1050 (sh64_register_read): Delete.
1051 (sh4_register_write): Delete.
1052 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1053 void pointer, `to' parameter a void pointer.
1054 (sh_sh64_register_convert_to_raw): Ditto.
1055
1056 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1057
1058 * mips-tdep.c (mips_register_virtual_type): Use architecture
1059 invariant return values.
1060
1061 2002-08-01 Andrew Cagney <cagney@redhat.com>
1062
1063 * linux-proc.c: Include "gdb_string.h".
1064 * Makefile.in (linux-proc.o): Update dependency list.
1065
1066 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1067
1068 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1069 comment.
1070
1071 2002-08-01 Grace Sainsbury <graces@redhat.com>
1072
1073 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1074 to_insert_watchpoint, to_remove_watchpoint,
1075 to_stopped_by_watchpoint, to_stopped_data_address,
1076 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1077 target vecctor. Define their corresponding macros so they call
1078 them.
1079
1080 * target.c: Add default and debug versions of for
1081 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1082 to_insert_watchpoint, to_remove_watchpoint,
1083 to_stopped_by_watchpoint, to_stopped_data_address,
1084 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1085
1086 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1087
1088 * mips-tdep.c (mips_register_virtual_type): New function.
1089 (mips_gdbarch_init): Register mips_register_virtual_type()
1090 with gdbarch machinery.
1091 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1092 this file instead of tm-bigmips.h.
1093 (MIPS_REGSIZE): Delete this macro.
1094 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1095 multiarch version in mips-tdep.c will be found.
1096
1097 2002-08-01 Andrew Cagney <cagney@redhat.com>
1098
1099 * NEWS: Menion that CHILL has been made obsolete.
1100
1101 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1102 * gdbserver/Makefile.in: Ditto.
1103 * stabsread.c (read_range_type): Ditto.
1104 * gdbtypes.h: Ditto.
1105 * language.c (binop_type_check): Ditto.
1106 (binop_result_type): Ditto.
1107 (integral_type): Ditto.
1108 (character_type): Ditto.
1109 (string_type): Ditto.
1110 (boolean_type): Ditto.
1111 (structured_type): Ditto.
1112 (lang_bool_type): Ditto.
1113 (binop_type_check): Ditto.
1114 * language.h (_LANG_chill): Ditto.
1115 * dwarfread.c (set_cu_language): Ditto.
1116 * dwarfread.c (CHILL_PRODUCER): Ditto.
1117 * dwarfread.c (handle_producer): Ditto.
1118 * expression.h (enum exp_opcode): Ditto.
1119 * eval.c: Ditto for comments.
1120 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1121 * expprint.c (print_subexp): Ditto.
1122 (print_subexp): Ditto.
1123 * valops.c (value_cast): Ditto.
1124 (search_struct_field): Ditto.
1125 * value.h (COERCE_VARYING_ARRAY): Ditto.
1126 * symfile.c (init_filename_language_table): Ditto.
1127 (add_psymbol_with_dem_name_to_list): Ditto.
1128 * valarith.c (value_binop): Ditto.
1129 (value_neg): Ditto.
1130 * valops.c (value_slice): Ditto.
1131 * symtab.h (union language_specific): Ditto.
1132 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1133 (SYMBOL_DEMANGLED_NAME): Ditto.
1134 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1135 * defs.h (enum language): Ditto.
1136 * symtab.c (got_symtab): Ditto.
1137 * utils.c (fprintf_symbol_filtered): Ditto.
1138
1139 * ch-typeprint.c: Make file obsolete.
1140 * ch-valprint.c: Make file obsolete.
1141 * ch-lang.h: Make file obsolete.
1142 * ch-exp.c: Make file obsolete.
1143 * ch-lang.c: Make file obsolete.
1144
1145 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1146 CHILL_LIB.
1147 (TARGET_FLAGS_TO_PASS): Ditto.
1148 (CHILLFLAGS): Obsolete.
1149 (CHILL): Obsolete.
1150 (CHILL_FOR_TARGET): Obsolete.
1151 (CHILL_LIB): Obsolete.
1152 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1153 ch-valprint.c.
1154 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1155 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1156 ch-lang.o.
1157 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1158 targets.
1159
1160 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1161
1162 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1163 This does not change anything at the moment, but will be helpful
1164 later when full Ada support is integrated.
1165
1166 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1167
1168 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1169 help message.
1170
1171 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1172
1173 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1174 and save it in a local variable. Use variable in later test.
1175
1176 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1177
1178 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1179 test. (Thanks to Daniel Jacobowitz.)
1180
1181 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1182
1183 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1184 (mips_abi_strings): Add "n64".
1185 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1186
1187 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1188
1189 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1190 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1191
1192 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1193
1194 * utils.c (host_pointer_to_address, address_to_host_pointer):
1195 Use gdb_assert() instead of explicit call to internal_error().
1196
1197 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1198
1199 * Makefile.in (rs6000-nat.o): Update dependencies.
1200
1201 From Nicholas Duffek:
1202 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1203 (aix-thread.o): New rule.
1204 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1205 * config/powerpc/aix432.mh: New file.
1206
1207 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1208
1209 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1210 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1211 (fetch_core_registers, ppc_linux_supply_gregset)
1212 (ppc_linux_supply_fpregset): New functions.
1213 (ppc_linux_regset_core_fns): New.
1214 (_initialize_ppc_linux_tdep): Call add_core_fns.
1215 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1216 and ppc_linux_supply_gregset.
1217 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1218 (supply_fpregset): Call ppc_linux_supply_fpregset.
1219 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1220 corelow.o.
1221 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1222
1223 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * symtab.c (lookup_symbol): Demangle before lowercasing.
1226
1227 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1228
1229 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1230 declaration.
1231 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1232 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1233 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1234 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1235 "gdb_string.h".
1236 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1237 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1238 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1239 (avr-tdep.o, mon960-rom.o): Ditto.
1240 (aout_stabs_gnu_h): Define.
1241 (symtab_h): Remove $(gdb_obstack_h).
1242
1243 2002-07-30 Jim Blandy <jimb@redhat.com>
1244
1245 Patch from David Carlton <carlton@math.stanford.edu>:
1246 * gdbinit.in: Move the `dir' commands that add GDB's own source
1247 directory to the search path to the end, so that the `gdb' source
1248 directory will be searched first.
1249
1250 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1251
1252 * gdb_obstack.h: New file.
1253 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1254 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1255 * objfiles.h: Include "gdb_obstack.h".
1256 * Makefile.in (gdb_obstack_h): Define.
1257 (symtab_h): Add $(gdb_obstack_h).
1258 (objfiles_h): Add $(gdb_obstack_h).
1259
1260 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1261 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1262 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1263 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1264 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1265 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1266 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1267 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1268
1269 * Makefile.in (bcache.o): Update dependencies.
1270 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1271 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1272 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1273 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1274 (stabsread.o, symfile.o, symmisc.o): Ditto.
1275 (symtab.o, typeprint.o, macroexp.o): Ditto.
1276 (macrotab.o, mdebugread.o): Ditto.
1277 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1278 (coff_ecoff_h, aout_aout64_h): Define.
1279 (aout_stabs_gnu_h, libaout_h): Define.
1280
1281 2002-07-29 Andrew Cagney <cagney@redhat.com>
1282
1283 * regcache.c (struct regcache_descr): Rename nr_registers to
1284 nr_cooked_registers. Revise comments describing the structure
1285 member fields.
1286 (init_regcache_descr): Update.
1287 (init_legacy_regcache_descr): Update.
1288 (read_register_gen, write_register_gen): When a cooked register in
1289 the raw register range, directly access the value from the raw
1290 register cache.
1291
1292 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1293
1294 * z8k-tdep.c: Do not include "obstack.h".
1295 * h8300-tdep.c, h8500-tdep.c: Ditto.
1296 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1297 * valprint.c, v850-tdep.c: Ditto.
1298 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1299 * mn10200-tdep.c: Ditto.
1300
1301 * Makefile.in (z8k-tdep.o): Update dependencies.
1302 (m68hc11-tdep.o, valprint.o): Ditto.
1303 (v850-tdep.o, d10v-tdep.o): Ditto.
1304 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1305 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1306 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1307 (sh_opc_h, gdb_sim_sh_h): Define.
1308 (elf_sh_h, elf_bfd_h): Define.
1309 (opcode_m68hc11_h): Define.
1310 (OPCODES_SRC, OPCODES_DIR): define.
1311 (OPCODES): Use $(OPCODES_DIR).
1312 (gdb_sim_d10v_h): Rename sim_d10v_h.
1313 (gdb_sim_arm_h): Rename sim_arm_h.
1314
1315 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1316
1317 * utils.c (host_pointer_to_address, address_to_host_pointer):
1318 Change internal_error() message to indicate function responsible
1319 for the error.
1320
1321 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1322
1323 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1324 calls to local_hex_string_custom().
1325
1326 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1327
1328 * irix5-nat.c: Move IRIX shared library support from here...
1329 * solib-irix.c: ...to here. Revised substantially to work with
1330 generic solib framework.
1331
1332 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1333 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1334 * mips-irix-tdep.c: New file.
1335
1336 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1337 (mips-irix-tdep.o, solib-irix.o): New rules.
1338 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1339 solib-irix.o.
1340 * config/mips/irix6.mt (TDEPFILES): Likewise.
1341 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1342
1343 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1344
1345 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1346 disabled (via ``#if 0'') includes.
1347
1348 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1349
1350 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1351 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1352 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1353 Add support for the fpscr register.
1354 * rs6000-nat.c (regmap, fetch_inferior_registers)
1355 (store_inferior_registers, fetch_core_registers): Likewise.
1356
1357 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1358
1359 * rs6000-nat.c (language.h): Include.
1360 (special_regs): Delete this array.
1361 (regmap): New function.
1362 (fetch_register, store_register): Use regmap() to map gdb
1363 register numbers to ptrace register numbers. Also, use
1364 outputs from regmap() to make decisions regarding type of
1365 ptrace() call to make. In particular, don't compare against
1366 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1367 (fetch_inferior_registers, store_inferior_registers): Where
1368 possible, obtain register numbers from tdep struct. Don't
1369 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1370 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1371 (LAST_UISA_SP_REGNUM): Delete.
1372
1373 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1374
1375 * rs6000-nat.c (ppc-tdep.h): Include.
1376 (fetch_registers, store_register, fetch_core_registers): Don't
1377 access registers[] directly. Instead, use supply_register() or
1378 regcache_collect() as appropriate.
1379 (find_toc_address): Format hex address with local_hex_string().
1380
1381 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1382
1383 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1384 bfd/elf32-frv.c.
1385
1386 2002-07-24 Tom Tromey <tromey@redhat.com>
1387
1388 * jv-exp.y: Marked all strings with _().
1389 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1390 internal_error.
1391 (MethodInvocation, CastExpression, parse_number, yyerror,
1392 java_type_from_name, push_expression_name, yylex): Typo fixes.
1393
1394 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1395
1396 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1397 (tee_file_flush, tee_file_write, tee_file_fputs)
1398 (tee_file_isatty): New.
1399 * ui-file.h (tee_file_new): Add prototype.
1400
1401 2002-07-24 Aidan Skinner <aidan@velvet.net>
1402
1403 * ada-lang.c: Change k&r style function definitions to prototyped
1404 form.
1405 * ada-typeprint.c: Change k&r style function definitions to prototyped
1406 form.
1407 * ada-valprint.c: Change k&r style function definitions to prototyped
1408 form.
1409
1410 2002-07-24 Andrew Cagney <cagney@redhat.com>
1411
1412 * README: Remove reference to remote-bug.
1413 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1414 remote-bug.c.
1415 (m88k-nat.o): Delete rule.
1416 (m88k-tdep.o): Delete rule.
1417 (remote-bug.o): Delete rule.
1418 * MAINTAINERS: Mark as obsolete.
1419 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1420 * m88k-tdep.c: Make file obsolete.
1421 * config/m88k/m88k.mh: Ditto.
1422 * config/m88k/delta88v4.mh: Ditto.
1423 * config/m88k/delta88v4.mt: Ditto.
1424 * config/m88k/delta88.mt: Ditto.
1425 * config/m88k/delta88.mh: Ditto.
1426 * remote-bug.c: Ditto.
1427 * config/m88k/tm-delta88.h: Ditto.
1428 * config/m88k/nm-delta88v4.h: Ditto.
1429 * config/m88k/xm-delta88.h: Ditto.
1430 * config/m88k/xm-dgux.h: Ditto.
1431 * config/m88k/tm-m88k.h: Ditto.
1432 * config/m88k/nm-m88k.h: Ditto.
1433 * config/m88k/tm-delta88v4.h: Ditto.
1434 * m88k-nat.c: Ditto.
1435 * cxux-nat.c: Ditto.
1436 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1437 and m88*-*-* obsolete.
1438 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1439 m88*-*-* obsolete.
1440
1441 2002-07-24 Andrew Cagney <cagney@redhat.com>
1442
1443 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1444 constant. Same for local pointer variables.
1445 (extract_signed_integer): Ditto.
1446 * defs.h (extract_unsigned_integer): Update.
1447 (extract_signed_integer): Update.
1448
1449 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1450
1451 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1452 * gdbserver/configure: Regenerate.
1453 * gdbserver/config.in: Regenerate.
1454
1455 2002-07-24 Andrew Cagney <cagney@redhat.com>
1456
1457 * regcache.c (regcache_raw_write): Change buf parameter to a
1458 constant void pointer.
1459 (regcache_raw_read): Change buf parameter to a void pointer.
1460 (legacy_write_register_gen): Change myaddr parameter a constant
1461 void pointer.
1462 (supply_register): Change val parameter to a const void pointer.
1463 * regcache.h (regcache_raw_write): Update declaration.
1464 (regcache_raw_read): Update declaration.
1465 (supply_register): Update declaration.
1466
1467 2002-07-24 Tom Tromey <tromey@redhat.com>
1468
1469 * defs.h (gdb_readline_wrapper): Declare.
1470 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1471 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1472 * top.c (gdb_readline_wrapper): New function.
1473 (command_line_input): Use it.
1474
1475 2002-07-24 Andrew Cagney <cagney@redhat.com>
1476
1477 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1478 regcache_read and regcache_write.
1479 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1480 * regcache.c: Update.
1481 * sh-tdep.c (sh64_push_arguments): Update comment.
1482 (sh_pseudo_register_read): Update.
1483 (sh_pseudo_register_write): Update.
1484 (sh4_register_read): Update.
1485 (sh4_register_write): Update.
1486 (sh64_pseudo_register_read): Update.
1487 (sh64_pseudo_register_write): Update.
1488 (sh64_register_read): Update.
1489 (sh64_register_write): Update.
1490 * i386-tdep.c (i386_extract_return_value): Update.
1491 (i386_extract_struct_value_address): Update.
1492 (i386_extract_return_value): Update.
1493 * blockframe.c (generic_read_register_dummy): Update.
1494 (generic_call_dummy_register_unwind): Update
1495 * infrun.c (write_inferior_status_register): Update.
1496
1497 2002-07-23 Jim Blandy <jimb@redhat.com>
1498
1499 * parser-defs.h (expression_context_pc): Make this extern.
1500 (Thanks to Michael Snyder.)
1501
1502 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1503
1504 GDB 5.2.1 released from 5.2 branch.
1505 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1506 * README: Update to mention 5.2.1.
1507
1508 2002-07-23 Mark Salter <msalter@redhat.com>
1509
1510 * remote.c (remote_read_bytes): Fix check for error.
1511
1512 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1513
1514 * aix-thread.c (language.h): Include.
1515 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1516 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1517 Print newlines at end of debug messages.
1518 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1519 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1520
1521 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1522
1523 * aix-thread.c (ppc-tdep.h): Include.
1524 (special_register_p): New function.
1525 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1526 (store_regs_user_thread): Use register number information from
1527 gdbarch_tdep struct instead of hardcoded offsets relative to
1528 FIRST_UISA_SP_REGNUM.
1529 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1530 special_register_p() instead of using FPLAST_REGNUM and
1531 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1532 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1533 will be MQ's register number.
1534
1535 2002-07-22 Michael Snyder <msnyder@redhat.com>
1536
1537 * aix-thread.c (ops): Rename to aix_thread_ops.
1538 (base_ops): Rename to base_target.
1539 (ops_attach): Rename to aix_thread_attach.
1540 (ops_detach): Rename to aix_thread_detach.
1541 (ops_resume): Rename to aix_thread_detach.
1542 (ops_wait): Rename to aix_thread_wait.
1543 (ops_kill): Rename to aix_thread_kill.
1544 (init_ops): Rename to init_aix_thread_ops.
1545 (ops_fetch_register): Rename to aix_thread_fetch_register.
1546 (ops_store_register): Rename to aix_thread_store_register.
1547 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1548 (ops_thread_alive): Rename to aix_thread_thread_alive.
1549 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1550 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1551 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1552 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1553 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1554 (store_regs_lib): Rename to store_regs_user_thread.
1555 (store_regs_kern): Rename to store_regs_kernel_thread.
1556
1557 2002-07-22 Michael Snyder <msnyder@redhat.com>
1558
1559 * aix-thread.c (ops_prepare_to_store): Eliminate.
1560 (init_ops): Don't initialize ops.prepare_to_store.
1561 (store_regs_kern): Pre-fetch register buffers from child,
1562 because some registers may not be in the cache. Copy
1563 regs from register cache only if they are cached.
1564 (store_regs_lib): Copy regs from register cache only
1565 if they are cached.
1566 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1567 fill_gprs64): Ditto.
1568
1569 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1570
1571 * aix-thread.c (gdb_assert.h): Include.
1572 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1573 register sizes (from register cache) match size of buffer holding
1574 register data.
1575 (fill_sprs32): Change parameter types to match those in the ptrace()
1576 buffer.
1577 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1578 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1579
1580 2002-07-22 Michael Snyder <msnyder@redhat.com>
1581
1582 * aix-thread.c (supply_sprs64): Cosmetic change.
1583 (supply_sprs32): Cosmetic change.
1584 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1585 (fill_sprs64): Use regcache_collect instead of read_register.
1586 (store_regs_lib): Use regcache_collect instead of
1587 read_register. Use fill_sprs32 instead of fill_sprs64,
1588 if debugging a 32-bit architecture.
1589 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1590 out of the register cache, instead of passing a pointer into
1591 the register cache directly to ptrace. Use regcache_collect
1592 insteaad of read_register.
1593 (ops_prepare_to_store): Use target_read_registers instead
1594 of read_register_bytes.
1595
1596 2002-07-20 Aidan Skinner <aidan@velvet.net>
1597
1598 * MAINTAINERS: Add self under write after approval.
1599
1600 2002-07-20 Aidan Skinner <aidan@velvet.net>
1601
1602 * ada-tasks.c: Change k&r style function definitions to prototyped
1603 form.
1604
1605 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1606
1607 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1608 * x86-64-tdep.c: Include "objfiles.h".
1609 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1610 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1611
1612 2002-07-17 Michal Ludvig <michal@suse.cz>
1613
1614 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1615 (update_context): Initialise cfa variable.
1616
1617 2002-07-17 Michael Snyder <msnyder@redhat.com>
1618
1619 * aix-thread.c: Shorten some long lines.
1620 Bring comments into line with code spec.
1621
1622 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1623
1624 * infrun.c: Re-indent using gdb_indent.sh.
1625
1626 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1627
1628 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1629 Leave the indentation temporarily untouched, to minimize the diffs.
1630
1631 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1632
1633 * stabsread.c: Make os9k sections of the code obsolete,
1634 for real this time.
1635 * stabsread.h: Make os9k sections of the code obsolete.
1636
1637 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1638
1639 * linux-low.c (regsets_store_inferior_registers): Add free()
1640 at the end of a loop to prevent memory leak.
1641 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1642 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1643 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1644 line a comment.
1645 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1646
1647 2002-07-17 Jim Blandy <jimb@redhat.com>
1648
1649 * macrocmd.c (info_macro_command): Remove newline from error
1650 message.
1651
1652 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1653
1654 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1655 (sh_gdbarch_init): Use it for sh-dsp.
1656
1657 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1658
1659 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1660 64-bit DWARF2 format.
1661
1662 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1663
1664 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1665 <sys/proc.h> when not available.
1666
1667 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1668
1669 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1670 * stabsread.c: Make os9k sections of the code obsolete.
1671 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1672 * config/i386/i386os9k.mt: Make file obsolete.
1673 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1674 (COMMON_OBS): Remove os9kread.o
1675 (SFILES): Remove os9kread.c.
1676 (os9kread.o, remote-os9k.o): Make target obsolete.
1677 * remote-os9k.c: Make file obsolete.
1678 * os9kread.c: Make file obsolete.
1679 * Makefile.in
1680
1681 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1682
1683 * NEWS: Mention that the FR30 has been made obsolete.
1684 * fr30-tdep.c: Make file obsolete.
1685 * config/fr30/tm-fr30.h: Ditto.
1686 * config/fr30/fr30.mt: Ditto.
1687 * configure.tgt: Make fr30-*-elf obsolete.
1688 * MAINTAINERS: Make fr30-elf obsolete.
1689
1690 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1691
1692 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1693 found is not inside a section.
1694
1695 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1696
1697 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1698 strerror().
1699 (pdc_realloc): Use xrealloc() instead of realloc().
1700
1701 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1702
1703 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1704 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1705 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1706 macros.
1707
1708 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1709
1710 * aix-thread.c (ptrace_check): Eliminate goto.
1711 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1712 problem.
1713
1714 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1715
1716 * aix-thread.c (gdbcmd.h): Include.
1717 (DEBUG, DBG, DBG2, dbg): Eliminate.
1718 (debug_aix_thread): New static global.
1719 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1720 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1721 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1722 invocations to DBG and DBG2 macros to test against
1723 ``debug_aix_thread'' and call fprintf_unfiltered().
1724 (_initialize_aix_thread): Add new command "set debug aix-thread".
1725
1726 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1727
1728 From Gerhard Tonn <TON@de.ibm.com>:
1729 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1730 instead of supply_register.
1731
1732 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1733
1734 * dwarf2cfi.c: Include "gdb_assert.h".
1735 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1736 non-NULL.
1737 (update_context): Do not use __func__. Add missing ``break''.
1738 (update_context): Do not use __func__.
1739
1740 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1741
1742 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1743 and its setting. Set gdbarch instruction printing functions
1744 directly. For non-rs6000 case use new function
1745 gdb_print_insn_powerpc.
1746 (gdb_print_insn_powerpc): New function.
1747
1748 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1749
1750 * NEWS: Mention that the d30v has been marked obsolete.
1751 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1752 * configure.tgt: Mark d30v-*-* as obsolete.
1753 * d30v-tdep.c: Mark file as obsolete.
1754 * config/d30v/d30v.mt: Ditto.
1755 * config/d30v/tm-d30v.h: Ditto.
1756
1757 2002-07-13 Aidan Skinner <aidan@velvet.net>
1758
1759 * ada-tasks.c (add_task_entry): replace calls to
1760 malloc() with xmalloc
1761 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1762
1763 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1764 ada_finish_decode_line_1, all_sals_for_line
1765 ada_breakpoint_rewrite): replace calls to free() with xfree()
1766
1767 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1768
1769 From Nicholas Duffek (with minor changes by Martin Hunt,
1770 Louis Hamilton, and Kevin Buettner):
1771 * aix-thread.c: New file.
1772
1773 2002-07-12 Petr Sorfa <petrs@caldera.com>
1774
1775 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1776 complaint for invalid attribute class or form.
1777 (read_func_scope): DW_AT_frame_base
1778 better handling of DW_AT_block*.
1779 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1780 better handling of DW_AT_block*.
1781 (read_common_block): DW_AT_location
1782 better handling of DW_AT_block*.
1783 (read_partial_die): DW_AT_location better handling
1784 of DW_AT_block*.
1785 (new_symbol): DW_AT_external better handling of
1786 DW_AT_block*. Proper initialization of variable
1787 "addr".
1788 (attr_form_is_block): New function that returns true
1789 if the attribute's form is of DW_FORM_block*.
1790
1791 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1792
1793 * valops.c (find_method_list): Remove comment about
1794 removed STATIC_MEMFUNCP argument.
1795 (value_find_oload_method_list): Likewise.
1796
1797 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1798
1799 From Nicholas Duffek:
1800 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1801 target_new_objfile_hook.
1802
1803 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1804
1805 From Nicholas Duffek:
1806 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1807 csect.
1808
1809 2002-07-12 Andrew Cagney <cagney@redhat.com>
1810
1811 * MAINTAINERS: Mention --enable-sim-build-warnings.
1812 (m68hc11-elf): Disable sim build warnings.
1813 (m32r-elf): Mark as broken obsolete candidate.
1814 (x86_64-linux-gnu): Mark as buildable with -Werror.
1815 (arm-elf): Change -w to ``,'' which enables warnings but not
1816 -Werror.
1817
1818 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1819
1820 * bcache.h: Update copyright.
1821 (struct bstring, struct bcache): Move definition to "bcache.c".
1822 Replaced by opaque declaration.
1823 (bcache_xfree): Replace free_bcache.
1824 (bcache_xmalloc, bcache_memory_used): Declare.
1825
1826 * bcache.c: Update copyright.
1827 (struct bstring, struct bcache): Moved to here from "bcache.h".
1828 Update comments.
1829 (bcache_xmalloc, bcache_memory_used): New functions.
1830 (bcache_xfree): Replace function free_bcache.
1831
1832 * Makefile.in (objfiles.o): Add $(bcache_h).
1833 (objfiles_h): Remove $(bcache_h).
1834 (symfile.o): Add $(bcache_h).
1835
1836 * symmisc.c: Update copyright.
1837 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1838 (print_objfile_statistics): Use bcache_memory_used.
1839
1840 * symfile.c: Include "bcache.h".
1841 (reread_symbols): Use bcache_xfree.
1842 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1843 (add_psymbol_to_list): Pass psymbol_cache by value.
1844 (add_psymbol_with_dem_name_to_list): Ditto.
1845
1846 * objfiles.h: Update copyright.
1847 (struct bcache): Declare opaque. Do not include "bcache.h".
1848 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1849 bcache'' pointers.
1850 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1851
1852 * objfiles.c: Include "bcache.h". Update copyright.
1853 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1854 macro_cache.
1855 (free_objfile): Use bcache_xfree.
1856
1857 2002-07-11 Grace Sainsbury <graces@redhat.com>
1858
1859 * monitor.c (monitor_fetch_register): Make name a constant.
1860 (monitor_store_register): Same.
1861
1862 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1863
1864 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1865 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1866 (finish_block) For non-function blocks, hash the symbol table. For
1867 function blocks, mark the symbol table as unhashed.
1868 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1869 (msymbol_hash_iw): Likewise.
1870 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1871 value.
1872 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1873 (lookup_minimal_symbol): Likewise for both.
1874 * symtab.h (struct block): Add `hashtable' flag. Comment the
1875 hashtable.
1876 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1877 (ALL_BLOCK_SYMBOLS): Update.
1878 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1879 (struct symbol): Add `hash_next' pointer.
1880 * symtab.c (lookup_block_symbol): Search using the hash table when
1881 possible.
1882 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1883 (search_symbols, find_addr_symbol): Likewise.
1884
1885 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1886 (read_dst_symtab): Likewise.
1887 * jv-lang.c (get_java_class_symtab): Likewise.
1888 * mdebugread.c: Include "gdb_assert.h".
1889 (shrink_block): Assert that the block being modified is not hashed.
1890 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1891 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1892 symbols.
1893 (dump_symtab): Recognize hashed blocks.
1894 * printcmd.c (print_frame_args): Assert that function blocks do not
1895 have hashed symbol tables.
1896 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1897 (fill_in_ada_prototype, debug_print_block): Likewise.
1898 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1899
1900 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1901
1902 * stack.c (print_frame): Use result of frame_address_in_block()
1903 instead of fi->pc when evaluating symbols.
1904 (backtrace_command_1): Ditto.
1905
1906 2002-07-11 Andrew Cagney <cagney@redhat.com>
1907
1908 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1909 Make static.
1910
1911 * arm-tdep.c (arm_register_name): Make return type constant.
1912
1913 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1914
1915 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1916 prototype.
1917 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1918 * s390-tdep.c (s390_fp_regnum): Ditto.
1919 (s390_read_fp): Ditto.
1920 (s390_pop_frame): Ditto.
1921 (_initialize_s390_tdep): Ditto.
1922 * remote.c (get_remote_state): Ditto.
1923 * procfs.c (mappingflags): Ditto.
1924 * memattr.c (_initialize_mem): Ditto.
1925 * mcore-tdep.c (mcore_pop_frame): Ditto.
1926 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1927 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1928 * language.c (set_case_str): Ditto.
1929 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1930 * frv-tdep.c (new_variant): Ditto.
1931 (frv_stopped_data_address): Ditto.
1932 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1933 (context_alloc): Ditto.
1934 (frame_state_alloc): Ditto.
1935 (unwind_tmp_obstack_init): Ditto.
1936 (unwind_tmp_obstack_free): Ditto.
1937 (cfi_read_fp): Ditto.
1938 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1939 (cris_pop_frame): Ditto.
1940 * c-lang.c (scanning_macro_expansion): Ditto.
1941 (finished_macro_expansion): Ditto.
1942 (c_preprocess_and_parse): Ditto.
1943 * gdbarch.sh: Ditto.
1944 * gdbarch.h, gdbarch.c: Regenerate.
1945 * config/mn10200/tm-mn10200.h: Adjust indentation.
1946 * target.c: Adjust indentation.
1947 * symtab.h: Adjust indentation.
1948 * stabsread.h: Adjust indentation.
1949 * remote-es.c: Adjust indentation.
1950 * os9kread.c: Adjust indentation.
1951
1952 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1953
1954 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1955 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1956
1957 2002-07-10 Grace Sainsbury <graces@redhat.com>
1958
1959 * NEWS: Mention m68k, mcore multi-arching.
1960 * MAINTAINERS: Change status of m68k, mcore to reflect
1961 multi-arching.
1962
1963 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1964
1965 * valops.c (find_overload_match): Free oload_syms.
1966
1967 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1968
1969 Define HAVE_SYS_PROC_H if sys/proc.h exists
1970 * configure.in: Add check for sys/proc.h
1971 * config.in: Regenerate.
1972 * configure: Regenerate.
1973
1974 2002-07-09 Grace Sainsbury <graces@redhat.com>
1975
1976 * config/m68k/tm-m68k.h: Remove macros wrapped in
1977 #if !GDB_MULTI_ARCH.
1978
1979 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1980
1981 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1982 (perror_with_name, remote_close, remote_open, expect, play): Static.
1983
1984 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1985
1986 * config.in, configure: Regenerate.
1987
1988 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1989
1990 * dwarf2cfi.c: Include "gcore.h".
1991 (execute_stack_op): Fix implementation of the
1992 DW_OP_deref and DW_OP_deref_size operators by letting do their
1993 lookup in the target.
1994
1995 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1996
1997 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1998 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1999 tdep->sc_sp_offset.
2000
2001 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2002
2003 Fix PR gdb/595, gdb/602
2004 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2005 Don't call value_cast, just read the vtable pointer; update comments
2006 to match.
2007
2008 2002-07-05 Grace Sainsbury <graces@redhat.com>
2009
2010 * config/mcore/tm-mcore.h: Remove file.
2011 * config/mcore/mcore.mt: Remove definition of TM_FILE
2012 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2013
2014 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2015
2016 * i386bsd-tdep.c: Include "gdb_string.h".
2017
2018 2002-07-04 Grace Sainsbury <graces@redhat.com>
2019
2020 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2021 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2022 mcore-tdep.
2023 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2024 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2025 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2026 (RETVAL_REGNUM): Move macros from tm-mcore.h
2027 (mcore_reg_struct_has_addr): New function.
2028 (mcore_gdbarch_init): Added initializations for the macros removed
2029 from tm-mcore.h.
2030
2031 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2032
2033 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2034 traditonal string branding within the ELF header.
2035
2036 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2037
2038 * symtab.c (remove_params): New function.
2039 (make_symbol_overload_list): Use it instead of cplus_demangle.
2040 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2041
2042 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2043
2044 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2045
2046 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2047 New variables.
2048 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2049 and tdep->sigtramp_end.
2050 * i386obsd-nat.c: New file.
2051 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2052
2053 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2054 Don't call get_current_frame().
2055
2056 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2057
2058 * i386-nat.c (child_post_startup_inferior): New function
2059 calling i386_cleanup_dregs if
2060 I386_USE_GENERIC_WATCHPOINTS is defined.
2061 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2062 conditional to acknowledge that i386-nat.c has its
2063 own child_post_startup_inferior function.
2064
2065 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2066
2067 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2068 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2069 instead of MAX_REGISTER_RAW_SIZE.
2070 (i386_extract_return_value, i386_extract_struct_value_address):
2071 Convert to use regcache.
2072 (i386_gdbarch_init): Set max_register_raw_size and
2073 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2074 Set extract_return_value and extract_struct_value_address instead
2075 of their deprecated variants.
2076
2077 Convert i386 target to generic dummy frames.
2078 * i386-tdep.c: Include "symfile.h".
2079 (i386_frameless_signal_p): Consider a function to be frameless if
2080 the pc points at the first instruction of the function.
2081 (i386_frame_chain): Handle (generic) call dummies.
2082 (i386_frame_saved_pc): Likewise.
2083 (i386_frame_init_saved_regs): Remove code dealing with call
2084 dummies on the stack.
2085 (i386_push_dummy_frame): Removed.
2086 (i386_call_dummy_words): Removed.
2087 (i386_fix_call_dummy): Removed.
2088 (i386_push_return_address): New function.
2089 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2090 parameter, and don't call get_current_frame.
2091 (i386_pop_frame): New function.
2092 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2093 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2094 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2095 call_dummy_length to 0, set call_dummy_words to NULL, set
2096 sizeof_call_dummy_words to 0, set fix_call_dummy to
2097 generic_fix_call_dummy, set pc_in_call_dummy to
2098 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2099 generic_push_dummy_frame, set push_return_address to
2100 i386_push_return_address and set frame_chain_valid to
2101 generic_file_frame_chain_valid.
2102
2103 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2104
2105 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2106 byte offsets instead of an array of indexes.
2107 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2108
2109 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2110
2111 * gdbarch.sh (struct regcache): Add opaque declaration.
2112 (EXTRACT_RETURN_VALUE): New architecture method.
2113 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2114 * gdbarch.h, gdbarch.c: Regenerate.
2115 * arch-utils.c (legacy_extract_return_value): New function.
2116 * arch-utils.h (legacy_extract_return_value): Declare.
2117 * values.c (value_being_returned): Re-enable code handling
2118 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2119 deprecated_grub_regcache_for_registers call to block handling
2120 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2121 (EXTRACT_RETURN_VALUE): Do not define.
2122
2123 2002-07-03 Grace Sainsbury <graces@redhat.com>
2124
2125 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2126 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2127 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2128 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2129 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2130 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2131 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2132 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2133 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2134 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2135 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2136 argument so the function fits the prototype in the architecture
2137 vector.
2138 (mcore_pop_frame): Remove argument so the function fits the
2139 prototype. Use get_current_frame instead of the argument.
2140 (mcore_push_arguments): Change type of struct_return so the
2141 function can be used in the architecture vector.
2142 (mcore_store_struct_return): Add.
2143 (mcore_frame_init_saved_regs): Add.
2144 (mcore_gdbarch_init): Add function calls to replace the macros
2145 removed from tm-mcore.h
2146
2147 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2148
2149 * infcmd.c (print_return_value): Remove compatibility code calling
2150 deprecated_grub_regcache_for_registers.
2151
2152 * values.c: Include "regcache.h".
2153 (value_being_returned): Update. Use
2154 deprecated_grub_regcache_for_registers to extract the register
2155 buffer address.
2156 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2157 ``struct regcache''.
2158 * Makefile.in (values.o): Add dependency on $(regcache_h).
2159
2160 * inferior.h (run_stack_dummy): Change type of second parameter to
2161 a ``struct regcache''.
2162 * valops.c (hand_function_call): Change type of retbuf to ``struct
2163 regcache''. Allocate using regcache_xmalloc, clean using
2164 make_cleanup_regcache_xfree.
2165 * infcmd.c (run_stack_dummy): Update. Use
2166 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2167
2168 * regcache.c (do_regcache_xfree): New function.
2169 (make_cleanup_regcache_xfree): New function.
2170 * regcache.h (make_cleanup_regcache_xfree): Declare.
2171
2172 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2173
2174 * event-top.c (command_line_handler): Don't read past
2175 beginning of buffer.
2176
2177 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2178
2179 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2180 struct frame_id.
2181 (varobj_create): Store frame_id for root.
2182 (varobj_gen_name): Use xasprintf.
2183 (varobj_update): Save and restore frame using get_frame_id() and
2184 frame_find_by_id().
2185 (create_child): Use xasprintf.
2186 (new_root_variable): Initialize frame_id.
2187 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2188 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2189 to prevent memory leak.
2190
2191 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2192
2193 * valops.c (hand_function_call): Move declaration of retbuf to
2194 start of function, allocate using malloc, add a cleanup but before
2195 the inf_status cleanup, cleanup the buffer. Rename local variable
2196 old_chain to inf_status_cleanup.
2197
2198 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2199
2200 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2201
2202 * cli/cli-decode.c (cmd_func_p): New function.
2203 (cmd_func): New function.
2204
2205 * command.h: Add cmd_func() and cmd_func_p().
2206
2207 2002-07-03 Grace Sainsbury <graces@redhat.com>
2208
2209 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2210 (REGISTER_SIZE): Remove.
2211 (MAX_REGISTER_RAW_SIZE): Remove.
2212 (REGISTER_VIRTUAL_TYPE): Remove.
2213 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2214 (REGISTER_NAME): Remove.
2215 (USE_GENERIC_DUMMY_FRAMES): Remove.
2216 (CALL_DUMMY): Remove.
2217 (CALL_DUMMY_START_OFFSET): Remove.
2218 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2219 (CALL_DUMMY_LOCATION): Remove.
2220 (FIX_CALL_DUMMY): Remove.
2221 (CALL_DUMMY_ADDRESS): Remove.
2222 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2223 (SAVE_DUMMY_FRAME_TOS): Remove.
2224 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2225 (mcore_register_virtual_type): New function.
2226 (mcore_register_byte): New function.
2227 (mcore_register_size): New function.
2228 (mcore_register_name): New function.
2229 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2230 macros removed from tm-mcore.h.
2231 (mcore_dump_tdep): Add.
2232 (_initialize_mcore_tdep): Add gdbarch_register call.
2233
2234 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2235
2236 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2237 frameless_look_for_prologue, such that we actually call this
2238 function.
2239
2240 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2241
2242 * frame.h (frame_address_in_block): New function.
2243
2244 * blockframe.c (frame_address_in_block): New function extracted
2245 from get_frame_block().
2246 (get_frame_block): Use frame_address_in_block().
2247 (block_innermost_frame): Use frame_address_in_block() to match
2248 the frame pc address against the block boundaries rather than
2249 the frame pc directly. This prevents a failure when a frame pc
2250 is actually a return-address pointing immediately after the end
2251 of the given block.
2252
2253 2002-07-02 Grace Sainsbury <graces@redhat.com>
2254
2255 * MAINTAINERS: Add self under write after approval.
2256
2257 2002-07-02 Grace Sainsbury <graces@redhat.com>
2258
2259 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2260 used in architecture vector. The default is
2261 m68k_local_breakpoint_from_pc.
2262 (m68k_local_breakpoint_from_pc): Add.
2263 (enum): Add register numbers from tm-m68k.h.
2264 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2265 vector.
2266 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2267 GDB_MULTI_ARCH_PARTIAL.
2268 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2269 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2270 m68k-tdep.c.
2271 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2272 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2273 to enum in m68k-tdep.c
2274
2275 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2276
2277 * solib-osf.c (open_map): Compute the list of shared libraries
2278 loaded by the inferior, rather than the list of libraries loaded
2279 by GDB itself. Otherwise, GDB ends up reading the symbols from
2280 the wrong shared libraries...
2281
2282 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2283
2284 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2285 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2286 macros.
2287 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2288 Remove functions.
2289 (FRAMELESS_SIGNAL): Remove function.
2290 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2291 i386_linux_saved_pc_after_call): Removed.
2292 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2293 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2294 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2295
2296 * i386-tdep.c (i386_frameless_signal_p): New function.
2297 (i386_frame_chain): Deal with frameless signals.
2298 (i386_sigtramp_saved_sp): New function.
2299 (i386_frame_saved_pc): Deal with frameless signals.
2300 (i386_saved_pc_after_call): Make sure the correct value is
2301 returned just after entry into a sigtramp.
2302 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2303 i386fbsd4_sc_sp_offset): New variables.
2304 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2305 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2306 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2307 similiar to what we already did for sc_pc_offset.
2308 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2309 tdep->sc_sp_offset.
2310
2311 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2312
2313 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2314
2315 * config/i386/tm-x86-64linux.h: New.
2316 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2317 definitions.
2318 * config/i386/nm-x86-64.h: Rename to ...
2319 * config/i386/nm-x86-64linux.h: ... this one.
2320 * config/i386/x86-64linux.mh: Reflect the above change.
2321
2322 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2323
2324 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2325 with sigcontext_addr. Add sc_sp_offset.
2326 (i386bsd_sigtramp_saved_pc): Remove prototype.
2327 (i386bsd_sicontext_addr): Add prototype.
2328 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2329 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2330 (i386_svr4_sigtramp_saved_pc): Removed.
2331 (i386_svr4_sigcontext_addr): New function.
2332 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2333 Initialize tdep->sigcontext_addr instead. Initialize
2334 tdep->sc_pc_offset and tdep->sc_sp_offset.
2335 (i386_gdbarch_init): Likewise.
2336 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2337 any more.
2338 (i386bsd_sigtramp_saved_pc): Remove function.
2339 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2340 Initialize tdep->sigcontext_addr instead. Initialize
2341 tdep->sc_pc_offset.
2342 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2343 of tdep->sigtramp_saved_pc.
2344 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2345 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2346 instead.
2347
2348 * i386-tdep.c (i386_frameless_function_invocation,
2349 i386_frame_num_args, i386_frame_init_saved_regs,
2350 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2351 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2352 i386_extract_return_value, i386_store_return_value,
2353 i386_extract_struct_value_address, i386_register_virtual_type,
2354 i386_register_convertible, i386_register_convert_to_virtual,
2355 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2356 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2357 static.
2358
2359 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2360
2361 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2362
2363 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2364 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2365 this macro. Include "value.h".
2366
2367 2002-06-30 Aidan Skinner <aidan@velvet.net>
2368
2369 * ada-exp.tab.c: remove as it's a generated file
2370 * ada-lex.c: remove as it's a generated file
2371
2372 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2373
2374 * config/i386/tm-i386.h (struct frame_info, struct
2375 frame_saved_regs, struct value, struct type): Remove forward
2376 declarations.
2377
2378 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2379 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2380 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2381 (FILL_FPXREGSET): Define.
2382
2383 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2384
2385 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2386 i[3456]86-*-netbsd* case.
2387 * config/i386/tm-obsd.h: Removed.
2388 * config/i386/obsd.mt: Removed.
2389 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2390 core-aout.o.
2391 (MH_CFLAGS): Add -DYYDEBUG=0.
2392
2393 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2394 i386nbsd_sc_pc_offset on OpenBSD too.
2395
2396 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2397 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2398 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2399 define.
2400 * i386bsd-tdep.c: Include "arch-utils.h".
2401 (i386bsd_aout_in_solib_call_trampoline): New function.
2402 (i386bsd_init_abi): Set in_solib_call_trampoline to
2403 i386bsd_aout_in_solib_call_trampoline.
2404 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2405 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2406
2407 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2408
2409 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2410 (struct obstack, struct bcache): Add opaque declarations.
2411 * Makefile.in (macrotab_h): Update
2412
2413 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2414
2415 * blockframe.c (generic_find_dummy_frame): Change return type to
2416 ``struct regcache''.
2417 (struct dummy_frame): Replace field ``registers'' with regcache, a
2418 struct regcache object.
2419 (generic_find_dummy_frame): Update.
2420 (generic_push_dummy_frame): Update. Use regcache_xfree,
2421 regcache_xmalloc and regcache_cpy.
2422 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2423 regcache_xfree.
2424 (deprecated_generic_find_dummy_frame): Update.
2425 (generic_read_register_dummy): Update. Use
2426 regcache_read_as_address.
2427 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2428 (generic_get_saved_register): Update. Use regcache_read.
2429
2430 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2431
2432 * Makefile.in (objfiles_h): Add $(bcache_h).
2433 * objfiles.h: Include "bcache.h".
2434
2435 * Makefile.in (symtab_h): Remove $(bcache_h).
2436 * symtab.h: Do not include "bcache.h".
2437
2438 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2439
2440 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2441 generic_func_frame_chain_valid.
2442
2443 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2444
2445 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2446 * config/i386/tm-fbsd.h: Likewise.
2447
2448 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2449
2450 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2451 generic_unwind_get_saved_register.
2452
2453 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2454
2455 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2456 * regcache.c (supply_register): Add missing argument to
2457 register_buffer call.
2458
2459 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2460
2461 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2462 Solaris /bin/grep does not not like it. From Peter Schauer.
2463
2464 2002-06-26 Tom Tromey <tromey@redhat.com>
2465
2466 * command.h (add_setshow_cmd): Declare.
2467 (add_setshow_cmd_full): Declare.
2468 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2469 returns void. Use add_setshow_cmd_full.
2470 (add_setshow_cmd_full): New function.
2471 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2472 (add_setshow_boolean_cmd): Likewise.
2473
2474 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2475
2476 * config/vax/tm-vax.h: Protect from multiple inclusion.
2477 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2478 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2479 * config/vax/tm-vaxbsd.h: ...here. New file.
2480 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2481
2482 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2483
2484 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2485 (BELIEVE_PCC_PROMOTION): Remove.
2486 (AP_REGNUM): Move to...
2487 * config/vax/nm-vax.h: ...here.
2488 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2489 (vax_breakpoint_from_pc): New function.
2490 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2491 and gdbarch_believe_pcc_promotion.
2492
2493 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2494
2495 * Makefile.in (vax_tdep_h): Define.
2496 (vax-tdep.o): Use $(vax_tdep_h).
2497 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2498 (vax_dump_tdep): New function.
2499 (_initialize_vax_tdep): Register vax_dump_tdep.
2500 * vax-tdep.h: Include osabi.h.
2501 (struct gdbarch_tdep): New.
2502
2503 2002-06-26 Andrew Cagney <cagney@redhat.com>
2504
2505 * frame.h (deprecated_generic_find_dummy_frame): Rename
2506 generic_find_dummy_frame.
2507 * blockframe.c (generic_find_dummy_frame): Make static.
2508 (deprecated_generic_find_dummy_frame): New function.
2509 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2510 generic_find_dummy_frame with deprecated_find_dummy_frame.
2511 (sh64_nofp_frame_init_saved_regs): Ditto.
2512 (sh_fp_frame_init_saved_regs): Ditto.
2513 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2514 (s390_frame_chain): Ditto.
2515 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2516
2517 2002-06-26 Grace Sainsbury <graces@redhat.com>
2518
2519 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2520 gdbarch vector are at the top.
2521 (NUM_REGS): Remove.
2522 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2523 (FRAME_ARGS_ADDRESS): Remove.
2524 (FRAME_LOCALS_ADDRESS): Remove.
2525 (FRAME_NUM_ARGS): Remove.
2526 (FRAME_ARGS_SKIP): Remove.
2527 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2528 (m68k_gdbarch_init): Add gdbarch initializations for macros
2529 undefined in tm-m68k.h
2530
2531 2002-06-26 Grace Sainsbury <graces@redhat.com>
2532
2533 * monitor.h: Add the function regname to monitor_ops
2534 structure. This way NUM_REGS does not have to be a constant.
2535 * monitor.c (monitor_fetch_register): Added support for regname
2536 function. The function is called if the array regnames is NULL.
2537 (monitor_store_register): Same.
2538 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2539 regnames array.
2540 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2541 cpu32bug_cmds.regname to point to new function.
2542 * abug-rom.c (abug_regname): Same as above.
2543 (init_abug_cmds): Same.
2544 * dbug-rom.c (dbug_regname): Same as above.
2545 (init_dbug_cmds): Same.
2546 * remote-est.c (est_regname): Same.
2547 (init_est_cmds): Same.
2548 * rom68k-rom.c (rom68k_regname): Same.
2549 (init_rom68k_cmds): Same.
2550
2551 2002-06-25 Tom Tromey <tromey@redhat.com>
2552
2553 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2554
2555 2002-06-25 Andrew Cagney <cagney@redhat.com>
2556
2557 * infrun.c (stop_registers): Change variable's type to ``struct
2558 regcache'''.
2559 (xmalloc_inferior_status): Delete function.
2560 (free_inferior_status): Delete function.
2561 (normal_stop): Use regcache_cpy.
2562 (struct inferior_status): Change type of fields ``stop_registers''
2563 and ``registers'' to ``struct regcache''.
2564 (write_inferior_status_register): Use regcache_write.
2565 (save_inferior_status): Instead of calling
2566 xmalloc_inferior_status, allocate the inf_status buffer directly.
2567 Use regcache_dup_no_passthrough and regcache_dup to save the
2568 buffers.
2569 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2570 Replace the stop_registers regcache instead of overriding it. Use
2571 regcache_xfree. Instead of calling free_inferior_status, xfree
2572 the buffer directly.
2573 (discard_inferior_status): Use regcache_xfree. Instead of calling
2574 free_inferior_status, xfree the buffer directly.
2575 (build_infrun): Use regcache_xmalloc.
2576 (_initialize_infrun): Delete redundant call to build_infrun.
2577
2578 * Makefile.in (infcmd.o): Add $(regcache_h).
2579
2580 * infcmd.c: Include "regcache.h".
2581 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2582 obtain the address of `stop_registers' register buffer.
2583 (print_return_value): Ditto.
2584
2585 * inferior.h (struct regcache): Add opaque declaration.
2586 (stop_registers): Change variable's declared type to ``struct
2587 regcache''.
2588
2589 2002-06-24 Tom Tromey <tromey@redhat.com>
2590
2591 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2592 * target.c (initialize_targets): Fixed typo in
2593 trust-readonly-sections `show' documentation.
2594
2595 * main.c: Marked all strings with _().
2596
2597 2002-06-24 Don Howard <dhoward@redhat.com>
2598
2599 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2600 that means max CORE_ADDR+1.
2601 (lookup_mem_region): Ditto.
2602 (mem_info_command): Ditto.
2603
2604 2002-06-24 Grace Sainsbury <graces@redhat.com>
2605
2606 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2607 (REGISTER_BYTES_OK): Remove.
2608 (REGISTER_BYTES): Remove.
2609 (STORE_STRUCT_RETURN): Remove.
2610 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2611 (STORE_RETURN_VALUE): Remove.
2612 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2613 (FRAME_CHAIN): Remove.
2614 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2615 (FRAME_SAVED_PC): Remove.
2616 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2617 (m68k_store_struct_return): Add.
2618 (m68k_deprecated_extract_return_value): Add.
2619 (m68k_deprecated_extract_struct_value_address): Add.
2620 (m68k_store_return_value): Add.
2621 (m68k_frame_chain): Add.
2622 (m68k_frameless_function_invocation): Add.
2623 (m68k_frame_saved_pc): Add.
2624 (m68k_gdbarch_init): added set_gdbarch calls for new
2625 functions and deleted macros.
2626
2627 2002-06-23 Tom Tromey <tromey@redhat.com>
2628
2629 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2630 (ALLDEPFILES): Likewise.
2631 (udiheaders): Removed.
2632 (udip2soc.o): Likewise.
2633 (udi2go32.o): Likewise.
2634 (udr.o): Likewise.
2635 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2636
2637 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2638
2639 * infrun.c (_initialize_infrun): Delete unnecessary call to
2640 build_infrun.
2641
2642 * regcache.h: Update comments describing the regcache_cpy family
2643 of functions.
2644 (regcache_save, regcache_restore): Delete declaration.
2645 (regcache_save_no_passthrough): Delete declaration.
2646 (regcache_restore_no_passthrough): Delete declaration.
2647 * regcache.c (regcache_save): Delete function.
2648 (regcache_save_no_passthrough): Delete function.
2649 (regcache_restore): Delete function.
2650 (regcache_restore_no_passthrough): Delete function.
2651
2652 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2653
2654 * config/m68k/tm-m68k.h: Fix typo.
2655 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2656 (m68k_frame_init_saved_regs): Declare.
2657
2658 2002-06-21 Jim Blandy <jimb@redhat.com>
2659
2660 Remove some vestiges of Harris 88k support.
2661 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2662 register numbering quirk.
2663 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2664 odd symbols occurring in Harris 88k ELF targets.
2665
2666 2002-06-21 Tom Tromey <tromey@redhat.com>
2667
2668 * gdb_locale.h: New file.
2669 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2670 (defs_h): Added gdb_locale.h.
2671 * configure, config.in: Rebuilt.
2672 * configure.in (PACKAGE): Define.
2673 * defs.h: Include gdb_locale.h.
2674 * main.c (captured_main): Call setlocale, bindtextdomain,
2675 textdomain.
2676
2677 2002-06-21 Dave Brolley <brolley@redhat.com>
2678
2679 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2680 * config/frv/frv.mt: New file.
2681 * config/frv/tm-frv.h: New file.
2682 * configure.tgt: Support frv-*-*.
2683 * Makefile.in (frv-tdep.o): New target.
2684 * frv-tdep.c: New file.
2685 * NEWS: Mention frv.
2686
2687 2002-06-21 Dave Brolley <brolley@redhat.com>
2688
2689 * MAINTAINERS: Add self to "Write After Approval" list.
2690
2691 2002-06-21 Grace Sainsbury <graces@redhat.com>
2692
2693 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2694 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2695 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2696 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2697 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2698
2699 * m68k-tdep.c: Include arch-utils.h
2700 (m68k_register_raw_size): Add.
2701 (m68k_register_virtual_size): Add.
2702 (m68k_register_virtual_type): Add.
2703 (m68k_register_name): Add.
2704 (m68k_stack_align): Add.
2705 (m68k_register_byte): Add.
2706 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2707 tm-m68k.h.
2708
2709 2002-06-21 Grace Sainsbury <graces@redhat.com>
2710
2711 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2712 m68k_find_saved_regs.
2713 (m68k_pop_frame): Removed saved_regs structure, and replaced
2714 references to it with frame->saved_regs.
2715 (m68k_gdbarch_init): Added function calls to initialize the
2716 gdbarch structure.
2717 (m68k_fix_call_dummy): Add.
2718 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2719 (CALL_DUMMY): Remove.
2720 (CALL_DUMMY_LENGTH): Remove.
2721 (CALL_DUMMY_START_OFFSET): Remove.
2722 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2723 (FIX_CALL_DUMMY): Remove.
2724 (PUSH_DUMMY_FRAME): Remove.
2725 (POP_FRAME): Remove.
2726
2727 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2728
2729 * parse.c (parse_fprintf): New function used to avoid calls to
2730 fprintf in bison parser generated debug code.
2731 * parser-defs.h: Declaration of new parse_fprintf function.
2732 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2733 Set YYDEBUG to 1 by default.
2734 Set YYFPRINTF as parse_fprintf.
2735
2736 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2737
2738 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2739 encoding anymore.
2740 (pointer_encoding, enum ptr_encoding): New.
2741 (execute_cfa_program): Take care about pointer encoding.
2742 (dwarf2_build_frame_info): Only call parse_frame_info for
2743 .debug_frame and .eh_frame.
2744 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2745 fixed augmentation handling, added relative addressing,
2746 ignore duplicate FDEs. Added comments.
2747 * dwarf2cfi.c: Reindented.
2748
2749 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2750
2751 * event-top.c (command_handler): Don't use space_at_cmd_start
2752 unless there is sbrk() on the host. Assign time and space data
2753 to union fields of the appropriate length.
2754
2755 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2756
2757 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2758 x86_64_register_name. Return type changed to 'const char *'.
2759 (x86_64_register_name2nr): Rename to x86_64_register_number.
2760 (x86_64_gdbarch_init): Update to reflect the change.
2761 * x86-64-tdep.h: Ditto.
2762 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2763 (supply_fpregset): Ditto.
2764
2765 2002-06-19 Andrew Cagney <cagney@redhat.com>
2766
2767 * regcache.h: Update copyright.
2768 (struct regcache, struct gdbarch): Add opaque declarations.
2769 (current_regcache): Declare global variable.
2770 (regcache_read, regcache_write): Add gdbarch parameter.
2771 (regcache_save, regcache_save_no_passthrough)
2772 (regcache_restore, regcache_restore_no_passthrough)
2773 (regcache_dup, regcache_dup_no_passthrough)
2774 (regcache_cpy, regcache_cpy_no_passthrough)
2775 (deprecated_grub_regcache_for_registers)
2776 (deprecated_grub_regcache_for_register_valid)
2777 (regcache_valid_p): Add function declarations.
2778
2779 * regcache.c: Update copyright.
2780 (regcache_descr_handle): New global variable.
2781 (struct regcache_descr): Define.
2782 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2783 (regcache_descr, xfree_regcache_descr): New functions.
2784 (struct regcache): Define.
2785 (regcache_xmalloc, regcache_xfree): New functions.
2786 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2787 (regcache_dup, regcache_dup_no_passthrough): New functions.
2788 (regcache_valid_p, regcache_read_as_address): New functions.
2789 (deprecated_grub_regcache_for_registers): New function.
2790 (deprecated_grub_regcache_for_register_valid): New function.
2791 (current_regcache): New global variable.
2792 (register_buffer): Add regcache parameter. Update calls.
2793 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2794 (read_register_gen, write_register_gen): Update register_buffer
2795 call. Test for legacy_p instead of gdbarch_register_read_p or
2796 gdbarch_register_write_p.
2797 (regcache_collect): Update register_buffer call.
2798 (build_regcache): Rewrite. Use deprecated grub functions.
2799 (regcache_save, regcache_save_no_passthrough): New functions.
2800 (regcache_restore, regcache_restore_no_passthrough): New
2801 functions.
2802 (_initialize_regcache): Create the regcache_data_handle. Swap
2803 current_regcache global variable.
2804
2805 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2806 parameter to regcache_read and regcache_write calls.
2807 (sh4_register_read): Ditto.
2808 (sh64_pseudo_register_read): Ditto.
2809 (sh64_register_read): Ditto.
2810 (sh_pseudo_register_write): Ditto.
2811 (sh4_register_write): Ditto.
2812 (sh64_pseudo_register_write): Ditto.
2813 (sh64_register_write): Ditto.
2814
2815 * defs.h (XCALLOC): Define.
2816
2817 2002-06-19 Grace Sainsbury <graces@redhat.com>
2818
2819 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2820 * m68k-tdep.c (m68k_gdbarch_init): Added.
2821 (m68k_dump_tdep): Added.
2822
2823 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2824
2825 * ada-lang.c (fill_in_ada_prototype): Update comment.
2826
2827 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2828
2829 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2830 MIPS_ABI_LAST.
2831 (mips_abi_string, mips_abi_strings): New.
2832 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2833 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2834 tdep->mips_abi_string. Honor mips_abi_string. Default to
2835 O32 if no ABI is found.
2836 (mips_dump_tdep): Use mips_abi_strings.
2837 (mips_abi_update): New function.
2838 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2839 ``set mips abi'' and ``show mips abi''. Check the size of
2840 mips_abi_strings.
2841
2842 2002-06-19 Andrew Cagney <cagney@redhat.com>
2843
2844 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2845 constant.
2846
2847 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2848
2849 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2850 current frame using only the first stack size adjustment. All
2851 subsequent size adjustments are not considered to be part of
2852 the "static" part of the current frame.
2853 Compute the address of the saved registers relative to the
2854 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2855 in use in this frame.
2856
2857 2002-06-18 Don Howard <dhoward@redhat.com>
2858
2859 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2860 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2861 suggesting this solution.
2862
2863 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2864
2865 * config/romp/xm-rtbsd.h: Delete file.
2866 * config/romp/rtbsd.mh: Delete file.
2867
2868 2002-06-18 Keith Seitz <keiths@redhat.com>
2869
2870 * breakpoint.c (condition_command): Post breakpoint_modify
2871 when a condition is added to an existing breakpoint.
2872 (commands_command): Likewise for commands.
2873 (set_ignore_count): Likewise for ignore counts.
2874 If no tty, do not simply return, still need to send event
2875 notification.
2876 (ignore_command): Only print a newline if the command came
2877 from a tty.
2878 Don't call breakpoints_changed, since this is now properly
2879 handled by set_ignore_count.
2880
2881 2002-06-18 Andrew Cagney <cagney@redhat.com>
2882
2883 * MAINTAINERS: Note that cris-elf target can be compiled with
2884 -Werror.
2885 * cris-tdep.c (cris_register_name): Make return type constant.
2886 (cris_breakpoint_from_pc): Ditto.
2887
2888 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2889
2890 * frame.h (struct frame_info): Change type of context to
2891 'struct context'.
2892
2893 2002-06-17 Andrew Cagney <cagney@redhat.com>
2894
2895 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2896 pointer.
2897 * gdbarch.h, gdbarch.c: Regenerate.
2898 * config/mips/tm-mips.h (mips_register_name): Update.
2899 * i386-tdep.h (i386_register_name): Update.
2900 * mips-tdep.c (mips_register_name): Update
2901 * alpha-tdep.c (alpha_register_name): Update.
2902 * arch-utils.c (legacy_register_name): Update.
2903 * arch-utils.h (legacy_register_name): Update.
2904 * avr-tdep.c (avr_register_name): Update.
2905 * ia64-tdep.c (ia64_register_name): Update.
2906 * i386-tdep.c (i386_register_name): Update.
2907 * sparc-tdep.c (sparc32_register_name): Update.
2908 (sparc64_register_name): Update.
2909 (sparclite_register_name): Update.
2910 (sparclet_register_name): Update.
2911 * sh-tdep.c (sh_generic_register_name): Update.
2912 (sh_sh_register_name): Update.
2913 (sh_sh3_register_name): Update.
2914 (sh_sh3e_register_name): Update.
2915 (sh_sh_dsp_register_name): Update.
2916 (sh_sh3_dsp_register_name): Update.
2917 (sh_sh4_register_name): Update.
2918 (sh_sh64_register_name): Update.
2919 * s390-tdep.c (s390_register_name): Update.
2920 * rs6000-tdep.c (rs6000_register_name): Update.
2921 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2922 (ns32k_register_name_32382): Update.
2923 * d10v-tdep.c (d10v_ts2_register_name): Update.
2924 (d10v_ts3_register_name): Update.
2925 * xstormy16-tdep.c (xstormy16_register_name): Update.
2926 * vax-tdep.c (vax_register_name): Update.
2927 * v850-tdep.c (v850_register_name): Update.
2928 * m68hc11-tdep.c (m68hc11_register_name): Update.
2929 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2930 (am33_register_name): Update.
2931
2932 2002-06-17 Grace Sainsbury <graces@redhat.com>
2933
2934 * m68k-tdep.c: Reindented.
2935
2936 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2937
2938 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2939 list of predefined types.
2940
2941 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2942
2943 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2944 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2945 REGISTER_CONVERT_TO_RAW): Remove defines.
2946 (i386_register_virtual_type, i386_register_convertible,
2947 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2948 Remove prototypes.
2949 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2950 macros mentioned above.
2951
2952 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2953 (i386lynx_saved_pc_after_call): Remove prototype.
2954 * i386ly-tdep.c: Include "i386-tdep.h".
2955 (i386lynx_saved_pc_after_call): Make static. Use
2956 read_memory_nobpt instead of read_memory. Use
2957 read_memory_unsigned_integer instead of read_memory_integer.
2958 (i386lynx_init_abi): New function.
2959 (i386lynx_coff_osabi_sniffer): New function.
2960 (_initialize_i386bsd_tdep): New function.
2961
2962 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2963 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2964 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2965 (i386_fix_call_dummy): Remove prototype.
2966 * i386-tdep.c (i386_call_dummy_words): New variable.
2967 (i386_gdbarch_init): Adjust for removal of the
2968 macros mentioned above.
2969
2970 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2971
2972 * command.h (add_setshow_auto_boolean_cmd): Replace
2973 add_set_auto_boolean_cmd.
2974 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2975 add_set_auto_boolean_cmd.
2976 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2977 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2978 mask-address'' command.
2979 (show_mask_address): Add cmd parameter.
2980 * remote.c (add_packet_config_cmd): Update. Change type of
2981 set_func and show_func to cmd_sfunc_ftype.
2982 (_initialize_remote): Update `set remote Z-packet'
2983 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2984 (show_remote_protocol_e_packet_cmd): Ditto.
2985 (show_remote_protocol_E_packet_cmd): Ditto.
2986 (show_remote_protocol_P_packet_cmd): Ditto.
2987 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2988 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2989 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2990 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2991 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2992 (show_remote_protocol_Z_packet_cmd): Ditto.
2993 (show_remote_protocol_binary_download_cmd): Ditto.
2994 (show_remote_cmd): Pass NULL to all of above.
2995
2996 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2997
2998 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2999 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3000 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3001 POP_FRAME): Remove defines.
3002 (i386_push_arguments, i386_store_struct_return,
3003 i386_extract_return_value, i386_store_return_value,
3004 i386_extract_struct_value_address, i386_push_dummy_frame,
3005 i386_pop_frame): Renove prototypes.
3006 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3007 macros mentioned above.
3008
3009 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3010
3011 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3012 add_set_boolean_cmd.
3013 (add_setshow_cmd): New function.
3014 * command.h (add_setshow_boolean_cmd): Replace
3015 add_set_boolean_cmd.
3016 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3017 and ``set rdiromatzero''.
3018 * maint.c (_initialize_maint_cmds): Update commented out code.
3019 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3020 * target.c (initialize_targets): Update `set
3021 trust-readonly-sections'.
3022 * remote.c (_initialize_remote): Update `set remotebreak'.
3023
3024 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3025
3026 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3027 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3028 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3029 fit into multi-arch framework.
3030 (i386_breakpoint_from_pc): New function.
3031 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3032 above.
3033
3034 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3035 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3036 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3037 (i386_frameless_function_invocation, i386_frame_num_args,
3038 i386_frame_init_saved_regs): Remove prototypes.
3039 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3040 macros mentioned above.
3041
3042 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3043
3044 * cli/cli-decode.c (set_cmd_cfunc): Update.
3045 (set_cmd_sfunc): Update.
3046 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3047 (set_cmd_sfunc, set_cmd_cfunc): Update.
3048 * cli/cli-decode.h: Update.
3049
3050 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3051
3052 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3053 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3054
3055 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3056
3057 * defs.h (auto_boolean): Declare enum.
3058 * command.h (cmd_auto_boolean): Delete enum.
3059 * mips-tdep.c (mask_address_var): Update.
3060 (mips_mask_address_p): Update.
3061 (show_mask_address): Update.
3062 * remote.c (struct packet_config): Update.
3063 (update_packet_config): Update.
3064 (show_packet_config_cmd): Update.
3065 (packet_ok): Update.
3066 (add_packet_config_cmd): Update.
3067 (_initialize_remote):
3068 * command.h: Update.
3069 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3070 (do_setshow_command): Update.
3071 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3072 * cli/cli-decode.h: Update.
3073
3074 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3075
3076 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3077 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3078 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3079 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3080 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3081 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3082
3083 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3084 list of DJGPP COFF targets.
3085
3086 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3087 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3088 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3089 (FP0_REGNUM): Remove define.
3090 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3091 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3092 (i386_register_virtual_size): Remove protoype.
3093 * i386-tdep.c (i386_register_virtual_size): Removed.
3094 (i386_extract_return_value, i386_store_return_value): Use
3095 FP0_REGNUM instead of NUM_FREGS to determine whether the
3096 floating-point registers are available.
3097 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3098 Adjust for removal of macros mentioned above.
3099
3100 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3101
3102 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3103 comments.
3104 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3105 Remove prototypes.
3106 (supply_gregset, fill_gregset): Remove use of register keyword and
3107 remove declaration for regmap. Use I386_NUM_GREGS instead of
3108 NUM_REGS and NUM_FREGS.
3109 (FPREGSET_FSAVE_OFFSET): Remove.
3110 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3111 NUM_FREGS to determine whether the floating-point registers are
3112 available.
3113
3114 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3115 gnu_store_registers): Replace usage of NUM_GREGS with
3116 I386_NUM_GREGS.
3117
3118 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3119 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3120 usage of NUM_GREGS with I386_NUM_GREGS.
3121
3122 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3123
3124 * i386bsd-nat.c: Include "i386-tdep.h".
3125 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3126 I386_NUM_GREGS.
3127
3128 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3129 and associated comment. They no longer make any sense, since we
3130 don't use this file anymore on Linux.
3131
3132 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3133 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3134 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3135 elements in these arrays.
3136 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3137 MAX_NUM_REGS.
3138
3139 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3140
3141 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3142 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3143
3144 2002-06-14 Andrew Cagney <cagney@redhat.com>
3145
3146 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3147 EXTRACT_RETURN_VALUE.
3148 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3149 EXTRACT_STRUCT_VALUE_ADDRESS.
3150 * gdbarch.h, gdbarch.c: Regenerate.
3151
3152 * values.c (value_being_returned): Handle
3153 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3154 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3155
3156 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3157 * arm-tdep.c (arm_gdbarch_init): Update.
3158 * avr-tdep.c (avr_gdbarch_init): Update.
3159 * cris-tdep.c (cris_gdbarch_init): Update.
3160 * d10v-tdep.c (d10v_gdbarch_init): Update.
3161 * ia64-tdep.c (ia64_gdbarch_init): Update.
3162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3163 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3164 * s390-tdep.c (s390_gdbarch_init): Update.
3165 * sh-tdep.c (sh_gdbarch_init): Update.
3166 * s390-tdep.c (s390_gdbarch_init): Update.
3167 * sparc-tdep.c (sparc_gdbarch_init): Update.
3168 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3169 * v850-tdep.c (v850_gdbarch_init): Update.
3170 * vax-tdep.c (vax_gdbarch_init): Update.
3171 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3173
3174 * config/arc/tm-arc.h: Update.
3175 * config/d30v/tm-d30v.h: Update.
3176 * config/fr30/tm-fr30.h: Update.
3177 * config/h8300/tm-h8300.h: Update.
3178 * config/h8500/tm-h8500.h: Update.
3179 * config/i386/tm-i386.h: Update.
3180 * config/i386/tm-ptx.h: Update.
3181 * config/i386/tm-symmetry.h: Update.
3182 * config/i960/tm-i960.h: Update.
3183 * config/m32r/tm-m32r.h: Update.
3184 * config/m68k/tm-delta68.h: Update.
3185 * config/m68k/tm-linux.h: Update.
3186 * config/m68k/tm-m68k.h: Update.
3187 * config/m88k/tm-m88k.h: Update.
3188 * config/mcore/tm-mcore.h: Update.
3189 * config/mips/tm-mips.h: Update.
3190 * config/mn10200/tm-mn10200.h: Update.
3191 * config/pa/tm-hppa.h: Update.
3192 * config/pa/tm-hppa64.h: Update.
3193 * config/sparc/tm-sp64.h: Update.
3194 * config/sparc/tm-sparc.h: Update.
3195 * config/sparc/tm-sparclet.h: Update.
3196 * config/z8k/tm-z8k.h: Update.
3197
3198 2002-06-14 Andrew Cagney <cagney@redhat.com>
3199
3200 * Makefile.in (i386_linux_tdep_h): Define.
3201 (i386_tdep_h, i387_tdep_h): Define.
3202 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3203 $(i386_tdep_h) and $(i387_tdep_h).
3204 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3205
3206 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3207
3208 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3209 Already covered by the default.
3210
3211 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3212 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3213 (i386_gdbarch_init): Initialize long_double_format and long_double
3214 bit.
3215
3216 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3217 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3218 Move these to ...
3219 * config/i386/i386sol2.mh: ... here.
3220 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3221 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3222 (SIGCONTEXT_PC_OFFSET): Remove define.
3223 (IN_SIGTRAMP): Remove define.
3224 * i386-sol2-tdep.c: New file.
3225
3226 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3227 * config/i386/tm-i386nw.h: Removed.
3228
3229 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3230 USE_STRUCT_CONVENTION): Remove defines.
3231 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3232 (get_longjmp_target): Remove prototype.
3233 (IN_SIGTRAMP): Remove define.
3234 (i386bsd_in_sigtramp): Remove prototype.
3235 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3236 function. Update comment accordingly
3237 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3238 (FRAME_SAVED_PC): Remove define.
3239 (i386bsd_frame_saved_pc): Remove prototype.
3240 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3241 GET_LONGJMP_TARGET): Remove defines.
3242 (get_longjmp_target): Remove prototype.
3243 (IN_SIGTRAMP): Remove define.
3244 (i386bsd_in_sigtramp): Remove prototype.
3245 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3246 function. Update comment accordingly
3247 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3248 (FRAME_SAVED_PC): Remove define.
3249 (i386bsd_frame_saved_pc): Remove prototype.
3250 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3251 Remove prototype.
3252 (USE_STRUCT_CONVENTION): Remove prototype.
3253 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3254 declaration.
3255 (_initialize_i386bsd_nat): Revise logic to determine some
3256 constants at compile time when compiling a native GDB. Warn if
3257 things don't match up with what we expect.
3258 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3259 Remove variables.
3260 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3261 to use date stored in `struct gdbarch_tdep'.
3262 (i386bsd_sigcontext_offset): Remove varaible.
3263 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3264 stored in `struct gdbarch_tdep'.
3265 (i386bsd_frame_saved_pc): Make static.
3266 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3267 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3268 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3269 i386fbsd4_sc_pc_offset): New variables.
3270 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3271 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3272 functions.
3273 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3274 functions.
3275 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3276 Modify the value of i386fbsd_sigtramp_start and
3277 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3278 i386fbsd_sigtramp_end.
3279 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3280 function.
3281
3282 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3283 define to i386-linux-tdep.h.
3284 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3285 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3286 defines.
3287 (i386_linux_register_name, i386_linux_register_byte,
3288 i386_linux_register_raw_size): Remove prototypes.
3289 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3290 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3291 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3292 TARGET_WRITE_PC): Remove defines.
3293 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3294 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3295 i386_linux_write_pc): Remove prototypes.
3296 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3297 (get_longjmp_target): Remove prototype.
3298 * i386-linux-tdep.h: New file.
3299 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3300 * i386-linux-tdep.c: Include "i386-tdep.h" and
3301 "i386-linux-tdep.h".
3302 (i386_linux_register_name, i386_linux_register_byte,
3303 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3304 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3305 Make static.
3306 (i386_linux_init_abi): New function.
3307 (_initialize_i386_linux_tdep): New function.
3308
3309 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3310 (i386_saved_pc_after_call): Remove prototype.
3311 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3312 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3313 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3314 (i386_register_name, i386_stab_reg_to_regnum,
3315 i386_dwarf_reg_to_regnum): Remove prototypes.
3316 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3317 SIZEOF_SSE_REGS): Remove defines.
3318 (REGISTER_BYTES): Remove define.
3319 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3320 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3321 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3322 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3323 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3324 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3325 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3326 (get_longjmp_target): Remove prototype.
3327 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3328 (sigtramp_saved_pc): Remove define.
3329 (i386v4_sigtramp_saved_pc): Remove prototype.
3330 * config/i386/tm-go32.h (FRAME_CHAIN,
3331 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3332 (i386go32_frame_saved_pc): Remove prototype.
3333 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3334 (get_longjmp_target): Remove prototype.
3335 * i386-tdep.h: Include "osabi.h".
3336 (enum i386_abi): Removed.
3337 (enum struct_return): New enum.
3338 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3339 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3340 sc_pc_offset members.
3341 (i386_gdbarch_register_os_abi): Remove prototype.
3342 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3343 I386_SSE_NUM_REGS): New defines.
3344 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3345 I386_SSE_SIZEOF_REGS): New defines.
3346 (i386_register_name, i386_register_byte, i386_register_raw_size):
3347 New prototypes.
3348 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3349 (i386bsd_sigtramp_saved_pc): New prototype.
3350 * i386-tdep.c: Don't include "elf-bfd.h".
3351 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3352 i386_frame_chain, i386_saved_pc_after_call): Make static.
3353 (i386_frame_saved_pc): Rewrite to call architecture dependent
3354 function to deal with signal handlers. Make static.
3355 (i386go32_frame_saved_pc): Removed.
3356 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3357 Removed.
3358 (i386_get_longjmp_target): New function.
3359 (default_struct_convention, pcc_struct_convention,
3360 reg_struct_convention, valid_conventions, struct_convention): New
3361 variables.
3362 (i386_use_struct_convention): New function.
3363 (i386v4_sigtramp_saved_pc): Renamed to
3364 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3365 (i386_pc_in_sigtramp): New function.
3366 (i386_abi_names): Removed.
3367 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3368 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3369 Removed.
3370 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3371 i386_gdbarch_register_os_abi): Removed.
3372 (struct i386_abi_handler): Removed.
3373 (i386_abi_handler_list): Removed.
3374 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3375 functions.
3376 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3377 i386_nw_init_abi): New functions.
3378 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3379 Use set_gdbarch_xxx() calls instead of relying on macros for a
3380 number of calls.
3381 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3382 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3383 Register the various architecture variants defined in this file.
3384
3385 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3388 (struct main_type): Remove arg_types member. Update comments for
3389 struct field.
3390 (TYPE_ARG_TYPES): Remove.
3391 (TYPE_FN_FIELD_ARGS): Update.
3392 (smash_to_method_type): Update prototype.
3393
3394 * c-typeprint.c (cp_type_print_method_args): Take method type
3395 instead of argument list. Use new argument layout. Simplify.
3396 (c_type_print_args): Use new argument layout. Simplify.
3397 (c_type_print_base): Update call to cp_type_print_method_args.
3398 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3399 argument; use die->type instead. Update call to
3400 smash_to_method_type.
3401 (read_structure_scope): Update call to dwarf2_add_member_fn.
3402 * gdbtypes.c (allocate_stub_method): Update comment.
3403 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3404 Use new argument layout.
3405 (check_stub_method): Use new argument layout. Don't count
3406 void as an argument.
3407 (print_arg_types): Update comments. Use new argument layout.
3408 (recursive_dump_type): Don't print arg_types member.
3409 * hpread.c (hpread_read_struct_type): Use new argument layout.
3410 (fixup_class_method_type): Likewise.
3411 (hpread_type_lookup): Likewise.
3412 * stabsread.c (read_type): Update calls to read_args and
3413 smash_to_method_type.
3414 (read_args): Use new argument layout. Simplify.
3415 * valops.c (typecmp): Use new argument layout. Update parameters
3416 and comments. Simplify.
3417 (hand_function_call): Use new argument layout.
3418 (search_struct_method): Update call to typecmp.
3419 (find_overload_match): Use new argument layout.
3420
3421 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3422
3423 * NEWS: Mention multithreaded debug support for gdbserver.
3424
3425 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3426
3427 * MAINTAINERS: Mention NEWS.
3428
3429 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3430
3431 * gdbserver/regcache.c: Add comment.
3432
3433 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3434
3435 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3436 (struct mips_objfile_private, compare_pdr_entries): New.
3437 (non_heuristic_proc_desc): Read the ".pdr" section if it
3438 is present.
3439
3440 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3441
3442 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3443 (arm_debug): New static variable.
3444 (_initialize_arm_tdep): Add ``set debug arm'' command.
3445
3446 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3447
3448 * Makefile.in (sim_arm_h): Define.
3449 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3450 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3451 (arm_register_sim_regno): New function, map an internal REGNUM
3452 onto a simulator register number.
3453 (arm_gdbarch_init): Set register_sim_regno.
3454
3455 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3456
3457 * MAINTAINERS: Add self.
3458
3459 2002-06-11 Jim Blandy <jimb@redhat.com>
3460
3461 * source.c (source_info): Mention whether the symtab has
3462 information about preprocessor macros.
3463
3464 Call the command `info macro', not `show macro'.
3465 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3466 Fix error message.
3467 (_initialize_macrocmd): Register `info_macro_command' in
3468 `infolist', not `showlist'.
3469
3470 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3471
3472 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3473 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3474 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3475 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3476 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3477 unconditionally.
3478 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3479 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3480 (_initialize_mips_tdep): Remove dead code.
3481 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3482 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3483 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3484 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3485 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3486 MIPS_LAST_FP_ARG_REGNUM): Remove.
3487
3488 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3489
3490 * gdbserver/thread-db.c: New file.
3491 * gdbserver/proc-service.c: New file.
3492 * gdbserver/acinclude.m4: New file.
3493 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3494 proc-service.o, and thread-db.o.
3495 (linux-low.o): Add USE_THREAD_DB.
3496 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3497 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3498 * gdbserver/aclocal.m4: Regenerated.
3499 * gdbserver/config.in: Regenerated.
3500 * gdbserver/configure: Regenerated.
3501 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3502 thread_db.h, and linux/elf.h headrs.
3503 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3504 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3505 Check for -lthread_db and thread support.
3506 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3507 PowerPC, and SuperH.
3508 * gdbserver/i387-fp.c: Constify arguments.
3509 * gdbserver/i387-fp.h: Likewise.
3510 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3511 `struct inferior_info'. Remove PID member. Use generic inferior
3512 list header. All uses updated.
3513 (inferiors, signal_pid): Removed.
3514 (all_threads): New variable.
3515 (get_thread): Define.
3516 (add_inferior_to_list): New function.
3517 (for_each_inferior): New function.
3518 (change_inferior_id): New function.
3519 (add_inferior): Removed.
3520 (remove_inferior): New function.
3521 (add_thread): New function.
3522 (free_one_thread): New function.
3523 (remove_thread): New function.
3524 (clear_inferiors): Use for_each_inferior and free_one_thread.
3525 (find_inferior): New function.
3526 (find_inferior_id): New function.
3527 (inferior_target_data): Update argument type.
3528 (set_inferior_target_data): Likewise.
3529 (inferior_regcache_data): Likewise.
3530 (set_inferior_regcache_data): Likewise.
3531 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3532 (all_processes, stopping_threads, using_thrads)
3533 (struct pending_signals, debug_threads, pid_of): New.
3534 (inferior_pid): Replace with macro.
3535 (struct inferior_linux_data): Remove.
3536 (get_stop_pc, add_process): New functions.
3537 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3538 Use add_process and add_thread.
3539 (linux_attach_lwp): New function, based on old linux_attach. Use
3540 add_process and add_thread. Set stop_expected for new threads.
3541 (linux_attach): New function.
3542 (linux_kill_one_process): New function.
3543 (linux_kill): Kill all LWPs.
3544 (linux_thread_alive): Use find_inferior_id.
3545 (check_removed_breakpoints, status_pending_p): New functions.
3546 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3547 Update. Use WNOHANG. Wait for cloned processes also. Update process
3548 struct for the found process.
3549 (linux_wait_for_event): New function.
3550 (linux_wait): Use it. Support LWPs.
3551 (send_sigstop, wait_for_sigstop, stop_all_processes)
3552 (linux_resume_one_process, linux_continue_one_process): New functions.
3553 (linux_resume): Support LWPs.
3554 (REGISTER_RAW_SIZE): Remove.
3555 (fetch_register): Use register_size instead. Call supply_register.
3556 (usr_store_inferior_registers): Likewise. Call collect_register.
3557 Fix recursive case.
3558 (regsets_fetch_inferior_registers): Improve error message.
3559 (regsets_store_inferior_registers): Add debugging.
3560 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3561 (unstopped_p, linux_signal_pid): New functions.
3562 (linux_target_ops): Add linux_signal_pid.
3563 (linux_init_signals): New function.
3564 (initialize_low): Call it. Initialize using_threads.
3565 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3566 flag.
3567 (get_regcache): Fetch registers lazily. Add fetch argument
3568 and update all callers.
3569 (regcache_invalidate_one, regcache_invalidate): New
3570 functions.
3571 (new_register_cache): Renamed from create_register_cache.
3572 Return the new regcache.
3573 (free_register_cache): Change argument to a void *.
3574 (registers_to_string, registers_from_string): Call get_regcache
3575 with fetch flag set.
3576 (register_data): Make static. Pass fetch flag to get_regcache.
3577 (supply_register): Call get_regcache with fetch flag clear.
3578 (collect_register): Call get_regcache with fetch flag set.
3579 (collect_register_as_string): New function.
3580 * gdbserver/regcache.h: Update.
3581 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3582 stderr.
3583 Handle input interrupts while waiting for an ACK.
3584 (input_interrupt): Use signal_pid method.
3585 (getpkt): Flush after debug output and use stderr.
3586 (outreg): Use collect_register_as_string.
3587 (new_thread_notify, dead_thread_notify): New functions.
3588 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3589 and general_thread.
3590 (look_up_one_symbol): Flush after debug output.
3591 * gdbserver/server.c (step_thread, server_waiting): New variables.
3592 (start_inferior): Don't use signal_pid. Update call to mywait.
3593 (attach_inferior): Update call to mywait.
3594 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3595 (main): Don't fetch/store registers explicitly. Use
3596 set_desired_inferior. Support proposed ``Hs'' packet. Update
3597 calls to mywait.
3598 * gdbserver/server.h: Update.
3599 (struct inferior_list, struct_inferior_list_entry): New.
3600 * gdbserver/target.c (set_desired_inferior): New.
3601 (write_inferior_memory): Constify.
3602 (mywait): New function.
3603 * gdbserver/target.h: Update.
3604 (struct target_ops): New signal_pid method.
3605 (mywait): Removed macro, added prototype.
3606
3607 * gdbserver/linux-low.h (regset_func): Removed.
3608 (regset_fill_func, regset_store_func): New.
3609 (enum regset_type): New.
3610 (struct regset_info): Add type field. Use new operation types.
3611 (struct linux_target_ops): stop_pc renamed to get_pc.
3612 Add decr_pc_after_break and breakpoint_at.
3613 (get_process, get_thread_proess, get_process_thread)
3614 (strut process_info, all_processes, linux_attach_lwp)
3615 (thread_db_init): New.
3616
3617 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3618 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3619 (the_low_target): Add new members.
3620 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3621 (i386_store_fpxregset): Constify.
3622 (target_regsets): Add new kind identifier.
3623 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3624 (i386_set_pc): Add debugging.
3625 (i386_breakpoint_at): New function.
3626 (the_low_target): Add new members.
3627 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3628 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3629 (mips_breakpoint_at): New.
3630 (the_low_target): Add new members.
3631 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3632 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3633 (the_low_target): Add new members.
3634 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3635 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3636 (the_low_target): Add new members.
3637 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3638 identifier.
3639
3640 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3641
3642 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3643 (unwind_tmp_obstack_free, parse_frame_info)
3644 (update_context, cfi_read_fp, cfi_write_fp)
3645 (cfi_frame_chain, cfi_init_extra_frame_info)
3646 (cfi_virtual_frame_pointer): Use the above function.
3647 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3648
3649 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3650
3651 * v850-tdep.c (v850_type_is_scalar): New function.
3652 (v850_use_struct_convention): Match current gcc implementation
3653 as close as possible.
3654 (v850_push_arguments): Fix stack_offset handling. Don't write
3655 struct_addr into register. This is done by v850_store_struct_return.
3656 (v850_extract_return_value): Care for structs.
3657 (v850_store_return_value): Ditto.
3658 (v850_store_struct_return): Actually write address.
3659
3660 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3661
3662 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3663 without debug information too.
3664
3665 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3666
3667 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3668 Make multi-arch pure.
3669 * gdbarch.h, gdbarch.c: Re-generate.
3670 * arm-tdep.c (arm_print_float_info): Update.
3671 * arch-utils.h (default_print_float_info): Update.
3672 * arch-utils.c (default_print_float_info): Update.
3673 * infcmd.c (float_info): Update call.
3674
3675 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3676
3677 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3678 the front of the initialize list.
3679
3680 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3681
3682 * infrun.c (struct inferior_status): Replace fields
3683 selected_frame_address and selected_level with field
3684 selected_frame_id.
3685 (save_inferior_status): Update. Use get_frame_id.
3686 (struct restore_selected_frame_args): Delete.
3687 (restore_selected_frame): Update. Use frame_find_by_id.
3688 (restore_inferior_status): Update.
3689
3690 * breakpoint.h (struct breakpoint): Change type of
3691 watchpoint_frame to frame_id.
3692 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3693 call to get_current_frame.
3694 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3695 get_current_frame.
3696 (watchpoint_check): Use frame_find_by_id.
3697
3698 * frame.h (record_selected_frame): Delete declaration.
3699 * stack.c (record_selected_frame): Delete function.
3700
3701 * frame.h (struct frame_id): Define.
3702 (get_frame_id): Declare.
3703 (frame_find_by_id): Declare.
3704 * frame.c (frame_find_by_id): New function.
3705 (get_frame_id): New function.
3706
3707 2002-06-10 Andrey Volkov <avolkov@transas.com>
3708
3709 * ser-e7kpc.c: Fix duplicated define and call of
3710 _initialize_ser_e7000pc
3711
3712 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3713
3714 * signals/signals.c (target_signal_from_host): Fix #ifdef
3715 SIGRTMIN case.
3716 (do_target_signal_to_host): Likewise.
3717
3718 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3719
3720 * mips-tdep.c (mips_find_abi_section): New function.
3721 (mips_gdbarch_init): Call it.
3722
3723 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3724
3725 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3726 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3727 after Andrew's 2002-06-08 gdbarch change.
3728
3729 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3730
3731 * i386-linux-nat.c (suppy_gregset): Don't supply
3732 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3733 register cache.
3734 (fill_gregset): Don't fetch it under the same circumstances.
3735
3736 2002-06-09 Andrew Cagney <cagney@redhat.com>
3737
3738 * Makefile.in (callback_h): Define.
3739 (remote_sim_h): Update path to remote-sim.h.
3740 (remote-rdp.o): Add $(callback_h).
3741 (remote-sim.o): Use $(callback_h).
3742 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3743 * remote-rdp.c: Include "gdb/callback.h".
3744
3745 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3746
3747 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3748 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3749
3750 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3751
3752 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3753 * rdi-share/serpardr.c: Ditto.
3754 * rdi-share/unixcomm.c: Ditto.
3755 * rdi-share/serdrv.c: Ditto.
3756 * rdi-share/hostchan.h: Ditto.
3757 * rdi-share/hostchan.c: Ditto.
3758 * rdi-share/host.h: Ditto.
3759 * rdi-share/devsw.c: Ditto.
3760
3761 * objfiles.h: Change type of obj_private to void pointer.
3762 * pa64solib.c: Update copyright. Don't include "assert.h", use
3763 strcmp instead of STREQ, use LONGEST, do not use PTR
3764 * somsolib.c: Ditto.
3765
3766 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3767 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3768 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3769
3770 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3771
3772 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3773 (default_get_saved_register): Delete function.
3774 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3775 generic_unwind_get_saved_register.
3776 * gdbarch.h, gdbarch.c: Re-generate.
3777
3778 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3779
3780 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3781 generic_func_frame_chain_valid.
3782 * gdbarch.h, gdbarch.c: Re-generate.
3783 * blockframe.c (generic_func_frame_chain_valid): Only check
3784 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3785 passing FP to PC_IN_CALL_DUMMY.
3786 Fix PR gdb/360.
3787
3788 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3789
3790 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3791 (register_gdbarch_data): Initialize init_p.
3792 (gdbarch_data): Initialize data pointer using the init function.
3793 (init_gdbarch_data): Delete function.
3794 (gdbarch_update_p): Update.
3795 (initialize_non_multiarch): Update.
3796 (struct gdbarch): Add field initialized_p.
3797 * gdbarch.h, gdbarch.c: Re-generate.
3798
3799 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3800
3801 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3802 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3803 better do the things actually here.
3804 * x86-64-tdep.c (x86_64_register_name2nr): New.
3805 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3806 (x86_64_gdbarch_init): Respect the above change.
3807 * x86-64-tdep.h (x86_64_register_name2nr)
3808 (x86_64_register_nr2name): Add prototypes.
3809 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3810
3811 2002-06-06 Michael Snyder <msnyder@redhat.com>
3812
3813 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3814 Delete extra braces and re-indent.
3815 (d10v_store_return_value): Char return values
3816 must be shifted over by one byte in R0.
3817 (d10v_extract_return_value): Delete extra braces, re-indent.
3818
3819 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3820
3821 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3822 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3823 (d10v_integer_to_address): Rewrite.
3824 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3825 the d10v specific functions which take care of converting to the
3826 correct space.
3827
3828 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3829
3830 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3831 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3832
3833 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3834
3835 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3836 includes.
3837 * config/tm-linux.h: Ditto.
3838 * config/alpha/tm-alphalinux.h: Ditto.
3839 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3840 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3841 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3842 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3843 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3844 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3845 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3846 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3847 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3848 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3849 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3850 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3851 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3852 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3853 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3854 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3855 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3856 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3857 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3858 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3859 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3860 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3861 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3862 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3863 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3864 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3865 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3866 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3867 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3868 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3869 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3870 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3871 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3872 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3873 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3874 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3875 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3876
3877 2002-05-04 Aidan Skinner <aidan@velvet.net>
3878
3879 * ada-exp.tab.c: New file
3880 * ada-exp.y: New file
3881 * ada-lang.c: New file
3882 * ada-lang.h: New file
3883 * ada-lex.c: New file
3884 * ada-lex.l: New file
3885 * ada-tasks.c: New file
3886 * ada-typeprint.c: New file
3887 * ada-valprint.c: New file
3888
3889 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3890
3891 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3892 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3893
3894 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3895
3896 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3897 insetead of ppc-linux-tdep.o.
3898 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3899 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3900
3901 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3902
3903 2002-05-07 Christian Groessler <chris@groessler.org>
3904 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3905 bit register contents for little endian hosts.
3906
3907 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3908
3909 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3910 any maintainer.
3911
3912 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3913
3914 * gdbarch.h: Regenerate.
3915
3916 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3917
3918 * MAINTAINERS: Add everyone to write-after-approval list.
3919
3920 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3921
3922 * stack.c (frame_info): Use frame_register_unwind instead of
3923 saved_regs. Mention when the SP is on the stack or in a register.
3924
3925 * frame.h (frame_register_unwind_ftype): Define. Document.
3926 (struct frame_info): Add field register_unwind and
3927 register_unwind_cache.
3928 (frame_register_unwind): Declare.
3929 (generic_unwind_get_saved_register): Declare.
3930
3931 * frame.c (frame_register_unwind): New function.
3932 (generic_unwind_get_saved_register): New function.
3933
3934 * blockframe.c (generic_call_dummy_register_unwind): New function.
3935 (frame_saved_regs_register_unwind): New function.
3936 (set_unwind_by_pc): New function.
3937 (create_new_frame): New function.
3938 (get_prev_frame): New function.
3939
3940 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3941
3942 * a29k-share/: Delete directory.
3943 * remote-vx29k.c: Delete file.
3944
3945 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3946
3947 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3948 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3949
3950 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3951
3952 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3953 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3954 (sparc64nbsd-nat.o)
3955 (sparcnbsd-nat.o)
3956 (sparcnbsd-tdep.o): New dependency lists.
3957 * NEWS: Note new UltraSPARC NetBSD native configuration.
3958 * configure.host (sparc64-*-netbsd*): New host.
3959 * configure.tgt (sparc-*-netbsdelf*)
3960 (sparc-*-netbsd*): Set gdb_target to nbsd.
3961 (sparc64-*-netbsd*): New target.
3962 * sparc64nbsd-nat.c: New file.
3963 * sparcnbsd-nat.c: New file.
3964 * sparcnbsd-tdep.c: New file.
3965 * sparcnbsd-tdep.h: New file.
3966 * config/sparc/nbsd.mt: New file.
3967 * config/sparc/nbsd64.mh: New file.
3968 * config/sparc/nbsd64.mt: New file.
3969 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3970 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3971 (HOST_IPC): Remove.
3972 * config/sparc/nbsdaout.mt: Remove.
3973 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3974 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3975 (HOST_IPC): Remove.
3976 * config/sparc/nbsdelf.mt: Remove.
3977 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3978 sparc-nat.c compatiblity defines.
3979 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3980 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3981 * config/sparc/tm-nbsd64.h: New file.
3982 * config/sparc/tm-nbsdaout.h: Remove.
3983 * config/sparc/xm-nbsd.h: Remove.
3984
3985 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3986
3987 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3988 * sparc-tdep.c: Include osabi.h.
3989 (gdbarch_tdep): Add osabi member.
3990 (_initialize_sparc_tdep): Use gdbarch_register.
3991 (sparc_gdbarch_init): Use generic OS ABI framework.
3992 (sparc_dump_tdep): New function.
3993
3994 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3995
3996 * corefile.c (do_captured_read_memory_integer): Return non-zero
3997 result.
3998 (safe_read_memory_integer): Copy result of memory read when
3999 status is non-zero. Also, add comments.
4000
4001 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4002
4003 * Makefile.in (ppc_tdep_h): Define.
4004 (ppc-linux-nat.o)
4005 (ppc-linux-tdep.o)
4006 (rs6000-tdep.o): Use $(ppc_tdep_h).
4007 (ppc-sysv-tdep.o)
4008 (ppcnbsd-nat.o)
4009 (ppcnbsd-tdep.o): New dependency lists.
4010 * ppc-tdep.h: Use generic OS ABI framework.
4011 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4012 (ppc_linux_init_abi): New functions.
4013 (ppc_sysv_abi_broken_use_struct_convention)
4014 (ppc_sysv_abi_use_struct_convention)
4015 (ppc_sysv_abi_push_arguments): Move to...
4016 * ppc-sysv-tdep.c: ...here.
4017 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4018 * rs6000-tdep.c (process_note_abi_tag_sections)
4019 (get_elfosabi): Remove.
4020 (rs6000_gdbarch_init): Use generic OS ABI framework.
4021 (rs6000_dump_tdep): New function.
4022 (_initialize_rs6000_tdep): Use gdbarch_register.
4023 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4024 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4025 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4026 of ppc-linux-tdep.o.
4027 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4028 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4029 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4030 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4031 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4032 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4033
4034 2002-05-29 Jim Blandy <jimb@redhat.com>
4035
4036 * macroscope.c (default_macro_scope): Put `void' in empty argument
4037 list.
4038
4039 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4040
4041 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4042 * arch-utils.c: Include "sim-regno.h".
4043 * gdbarch.sh: Don't include "sim-regno.h".
4044 * gdbarch.h, gdbarch.c: Regenerate.
4045 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4046 here.
4047 * arch-utils.h (legacy_register_sim_regno): To here.
4048 * remote-sim.c (legacy_register_sim_regno): Move function from
4049 here.
4050 * arch-utils.c (legacy_register_sim_regno): To here.
4051
4052 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4053
4054 * sim-regno.h: New file.
4055 * Makefile.in (sim_regno_h): Define.
4056 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4057 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4058 (legacy_register_sim_regno): New function.
4059 (one2one_register_sim_regno): New function.
4060 (gdbsim_fetch_register): Rewrite.
4061 (gdbsim_store_register): Only store a register when
4062 REGISTER_SIM_REGNO is valid.
4063 * d10v-tdep.c: Include "sim-regno.h".
4064 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4065 (d10v_ts3_register_sim_regno): Ditto.
4066 * gdbarch.sh: Include "sim-regno.h".
4067 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4068 * gdbarch.h, gdbarch.c: Regenerate.
4069 * arch-utils.h (default_register_sim_regno): Delete declaration.
4070 * arch-utils.c (default_register_sim_regno): Delete function.
4071
4072 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4073
4074 * ppcnbsd-nat.c: Rewrite.
4075 * ppcnbsd-tdep.c: New file.
4076 * ppcnbsd-tdep.h: New file.
4077 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4078 solib.o, and solib-svr4.o.
4079 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4080 nbsd-tdep.o, and corelow.o.
4081
4082 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4083
4084 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4085 `tr' and `sed'. Mention that `broken' targets are not expected to
4086 build.
4087
4088 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4089
4090 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4091 Let PC point right after the prologue before looking up symbols.
4092
4093 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4094
4095 * i386-tdep.c (i386_register_virtual_type): Return
4096 builtin_type_vec128i for SSE registers.
4097
4098 * gdbtypes.h (builtin_type_vec128i): Declare.
4099
4100 * gdbtypes.c (build_builtin_type_vec128i): New function.
4101 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4102 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4103 (build_gdbtypes): Initialize new builtin vector types.
4104 (_initialize_gdbtypes): Register new vector types with gdbarch.
4105
4106 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4107
4108 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4109 since it has been multi-arch'd.
4110 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4111 Move Alpha and VAX multi-arch news entries to same section
4112 as other multi-arch news.
4113
4114 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4115
4116 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4117 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4118 static. Rename some register numbers to put them in ns32k-tdep
4119 private namespace.
4120 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4121 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4122 functions.
4123 (_initialize_ns32k_tdep): Use gdbarch_register.
4124 * ns32k-tdep.h: New file.
4125 * ns32knbsd-tdep.c: New file.
4126 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4127 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4128 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4129 REGISTER_BYTES, REGISTER_BYTE): Remove.
4130 * config/ns32k/tm-ns32k.h: New file.
4131 * config/ns32k/tm-umax.h: Remove.
4132
4133 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4134
4135 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4136 ns32k_store_struct_return, ns32k_extract_return_value,
4137 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4138 functions.
4139 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4140 ns32k_saved_pc_after_call.
4141 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4142 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4143 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4144 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4145 ns32k_extract_struct_value_address.
4146
4147 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4148
4149 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4150 ns32k_fix_call_dummy): New.
4151 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4152 ns32k_call_dummy_words.
4153 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4154 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4155 CALL_DUMMY_NARGS): Remove.
4156 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4157
4158 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4159
4160 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4161 ns32k_frame_saved_pc, ns32k_frame_args_address,
4162 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4163 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4164 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4165 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4166 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4167 (BREAKPOINT): Remove..
4168 (FRAME_CHAIN): Define as ns32k_frame_chain.
4169 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4170 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4171 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4172 (FRAME_FIND_SAVED_REGS): Remove.
4173 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4174 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4175 (POP_FRAME): Define as ns32k_pop_frame.
4176
4177 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4178
4179 * ns32k-tdep.c (ns32k_register_byte_32082,
4180 ns32k_register_byte_32382, ns32k_register_raw_size,
4181 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4182 functions.
4183 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4184 ns32k_register_byte_32382.
4185 * config/ns32k/tm-umax.h: Update copyright years.
4186 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4187 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4188 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4189 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4190 (ns32k_get_enter_addr): Fix prototype.
4191
4192 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4193
4194 * ns32k-tdep.c: Update copyright years.
4195 (ns32k_register_name_32082): New function.
4196 (ns32k_register_name_32382): Ditto.
4197 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4198 (REGISTER_NAME): Define as ns32k_register_name_32382.
4199 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4200 (REGISTER_NAME): Define as ns32k_register_name_32082.
4201
4202 2002-05-24 Jim Blandy <jimb@redhat.com>
4203
4204 * dwarf2read.c (free_line_header): Use xfree, not free.
4205
4206 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4207
4208 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4209 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4210
4211 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4212
4213 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4214
4215 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4216
4217 From Ross Alexander at NEC Europe:
4218 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4219
4220 2002-05-23 Michael Snyder <msnyder@redhat.com>
4221
4222 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4223 for input, rather than parse_and_eval_address.
4224
4225 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4226
4227 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4228 * Makefile.in (sim_d10v_h): Update definition.
4229
4230 2002-05-24 Andrew Cagney <cagney@redhat.com>
4231
4232 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4233 change `2002-05-22 Michael Snyder' below.
4234 (d10v_push_arguments): Ditto.
4235 (d10v_extract_return_value): Ditto.
4236
4237 2002-05-23 Jim Blandy <jimb@redhat.com>
4238
4239 * macrotab.c (check_for_redefinition): Don't complain if the new
4240 definition is the same as the previous one. Take more arguments
4241 to allow the comparison.
4242 (macro_define_object, macro_define_function): Pass more arguments
4243 to check_for_redefinition.
4244
4245 2002-05-22 Michael Snyder <msnyder@redhat.com>
4246
4247 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4248 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4249 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4250 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4251 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4252 Add a temp variable to save a call (and a memory read).
4253 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4254 if possible (so that PC_IN_CALL_DUMMY will work).
4255
4256 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4257
4258 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4259
4260 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4261
4262 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4263 fde->cie_ptr.
4264 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4265 (dwarf2_build_frame_info): Add offset to fde->initial_location
4266 so that frames of shared libraries are mapped correctly.
4267 (execute_stack_op): Change type of 'result' from ULONGEST to
4268 CORE_ADDR.
4269
4270 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4271
4272 * config/alpha/tm-nbsd.h: Include solib.h.
4273
4274 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4275
4276 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4277 assumptions about the host's byte order.
4278
4279 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4280
4281 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4282 to dependency list.
4283 * alphanbsd-tdep.c: Include solib-svr4.h.
4284 * shnbsd-tdep.c: Ditto.
4285
4286 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4287
4288 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4289 nbsd-tdep.h to dependency list.
4290 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4291 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4292 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4293 nbsdaout.mh and nbsdelf.mh consistently.
4294 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4295 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4296 nbsdaout.mt and nbsdelf.mh consistently.
4297 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4298 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4299 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4300 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4301 a.out shared library stuff from here...
4302 * config/nm-nbsdaout.h: ...to here.
4303 * config/tm-nbsd.h: Remove.
4304 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4305 * config/arm/nbsd.mh: Remove.
4306 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4307 nbsd-tdep.o.
4308 * config/arm/nbsdaout.mh: New file.
4309 * config/arm/nbsdelf.mh: New file.
4310 * config/arm/nm-nbsdaout.h: New file.
4311 * config/i386/nbsd.mh: Remove.
4312 * config/i386/nbsd.mt: Remove.
4313 * config/i386/nbsdaout.mh: New file.
4314 * config/i386/nbsdaout.mt: New file.
4315 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4316 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4317 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4318 i386_register_u_addr): Remove.
4319 * config/i386/nm-nbsdaout.h: New file.
4320 * config/i386/nm-nbsdelf.h: Remove.
4321 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4322 (USE_STRUCT_CONVENTION): Remove.
4323 * config/i386/tm-nbsdaout.h: New file.
4324 * config/i386/tm-nbsdelf.h: Remove.
4325 * config/m68k/nbsd.mh: Remove.
4326 * config/m68k/nbsd.mt: Remove.
4327 * config/m68k/nbsdaout.mh: New file.
4328 * config/m68k/nbsdaout.mt: New file.
4329 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4330 * config/m68k/nm-nbsdaout.h: New file.
4331 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4332 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4333 * config/ns32k/nbsd.mh: Remove.
4334 * config/ns32k/nbsd.mt: Remove.
4335 * config/ns32k/nbsdaout.mh: New file.
4336 * config/ns32k/nbsdaout.mt: New file.
4337 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4338 * config/ns32k/nm-nbsdaout.h: New file.
4339 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4340 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4341 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4342 (SVR4_SHARED_LIBS): Remove.
4343 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4344 * config/sparc/nbsd.mh: Remove.
4345 * config/sparc/nbsd.mt: Remove.
4346 * config/sparc/nbsdaout.mh: New file.
4347 * config/sparc/nbsdaout.mt: New file.
4348 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4349 * config/sparc/nbsdelf.mt: New file.
4350 * config/sparc/nm-nbsdaout.h: New file.
4351 * config/sparc/nm-nbsdelf.h: Remove.
4352 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4353 * config/sparc/tm-nbsdaout.h: New file.
4354
4355 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4356
4357 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4358 mipsnbsd-tdep.c
4359 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4360
4361 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4362
4363 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4364 shnbsd-nat.c.
4365 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4366
4367 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4368
4369 * NEWS: Note new MIPS NetBSD native configuration.
4370 * configure.host (mips*-*-netbsd*): New host.
4371 * configure.tgt (mips*-*-netbsd*): New target.
4372 * mipsnbsd-nat.c: New file.
4373 * mipsnbsd-tdep.c: New file.
4374 * mipsnbsd-tdep.h: New file.
4375 * config/mips/nbsd.mh: New file.
4376 * config/mips/nbsd.mt: New file.
4377 * config/mips/nm-nbsd.h: New file.
4378 * config/mips/tm-nbsd.h: New file.
4379
4380 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4381
4382 * Makefile.in (SFILES): Add osabi.c.
4383 (COMMON_OBS): Add osabi.o.
4384 (osabi.o): New dependency list.
4385 * osabi.c: New file.
4386 * osabi.h: New file.
4387 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4388
4389 * Makefile.in (alpha_tdep_h): Define and use instead of
4390 alpha-tdep.h.
4391 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4392 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4393 Remove.
4394 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4395 * alpha-tdep.h: Include osabi.h.
4396 (alpha_abi): Remove.
4397 (gdbarch_tdep): Use generic OS ABI framework.
4398 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4399 gdbarch_register_osabi.
4400 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4401 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4402 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4403
4404 * Makefile.in (sh_tdep_h): Add osabi.h.
4405 * sh-tdep.h (sh_osabi): Remove.
4406 (gdbarch_tdep): Use generic OS ABI framework.
4407 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4408 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4409 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4410 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4411
4412 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4413 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4414 gdbarch_register_osabi.
4415 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4416 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4417 (get_elfosabi): Rename to...
4418 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4419 ABI framework support routines.
4420 (arm_gdbarch_init): Use generic OS ABI framework.
4421 (arm_dump_tdep): Likewise.
4422 (_initialize_arm_tdep): Likewise.
4423 * arm-tdep.h: Include osabi.h.
4424 (arm_abi): Remove.
4425 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4426 osabi member.
4427 (arm_gdbarch_register_os_abi): Remove prototype.
4428 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4429 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4430
4431 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4432 * mips-tdep.c: Include osabi.h.
4433 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4434 OS ABI framework.
4435
4436 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4437
4438 * h8300-tdep.c: Fix formatting.
4439
4440 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4441
4442 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4443 printing vector registers.
4444
4445 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4446
4447 From Fernando Nasser:
4448 * remote.c (remote_async_open_1): Re-throw the exception when the
4449 connection fails.
4450 (remote_cisco_open): Ditto.
4451 (remote_open_1): Ditto.
4452
4453 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4454
4455 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4456 (remote_start_remote): Add uiout parameter. Pass through to
4457 remote_start_remote_dummy.
4458 (remote_open_1): Use catch_exception instead of catch_errors.
4459 (remote_async_open_1): Ditto.
4460 (remote_cisco_open): Ditto.
4461
4462 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4463
4464 * remote.c (remote_start_remote): Replace PTR with void pointer.
4465 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4466 static.
4467
4468 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4469
4470 * gdb_indent.sh: Allow the script to be run in the sim directory.
4471
4472 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4473
4474 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4475 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4476
4477 * corelow.c (core_open): Only call set_gdbarch_from_file if
4478 exec_bfd is NULL.
4479
4480 2002-05-17 Andrey Volkov <avolkov@transas.com>
4481
4482 * h8300-tdep.c: Add support of EXR register
4483 * config/h8300/tm-h8300.h: Ditto.
4484
4485 2002-05-17 Andrey Volkov <avolkov@transas.com>
4486
4487 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4488
4489 2002-05-17 Andrey Volkov <avolkov@transas.com>
4490
4491 * h8300-tdep.c: Change literal regnums to REGNO.
4492
4493 2002-05-17 Jim Blandy <jimb@redhat.com>
4494
4495 * NEWS: Note addition of macro support.
4496
4497 Expand preprocessor macros in C expressions.
4498 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4499 (scan_macro_expansion, scanning_macro_expansion,
4500 finished_macro_expansion): New function declarations.
4501 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4502 variable declarations.
4503 * parser-defs.h (expression_context_pc): New declaration.
4504 * parse.c (expression_context_pc): New variable.
4505 (parse_exp_1): Set expression_context_pc, as well as
4506 expression_context_block.
4507 * c-exp.y (yylex): If we're not already reading the result of a
4508 macro expansion, try to macro-expand the next token. When we're
4509 done scanning a macro expansion, switch back to the mainline text.
4510 Commas and `if's in a macro's expansion don't terminate the input.
4511 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4512 (macro_original_text, macro_expanded_text,
4513 expression_macro_lookup_func, expression_macro_lookup_baton): New
4514 variables.
4515 (scan_macro_expansion, scanning_macro_expansion,
4516 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4517 c_preprocess_and_parse): New functions.
4518 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4519 c_preprocess_and_parse, instead of c_parse.
4520 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4521 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4522
4523 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4524
4525 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4526 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4527 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4528
4529 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4530
4531 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4532
4533 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4534
4535 * Makefile.in (sh_tdep_h): Define and use.
4536 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4537 register enum): Move to...
4538 * * sh-tdep.h: ...here.
4539 * sh-tdep.c: Include sh-tdep.h.
4540 * sh3-rom.c: Likewise.
4541 * shnbsd-tdep.c: Likewise.
4542
4543 2002-05-16 Michael Snyder <msnyder@redhat.com>
4544
4545 * arm-tdep.c: Spelling fix in comment.
4546
4547 2002-05-16 Jim Blandy <jimb@redhat.com>
4548
4549 Add commands for manually expanding macros and showing their
4550 definitions.
4551 * macrocmd.c, macroscope.c, macroscope.h: New files.
4552 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4553 (macroscope_h): New variable.
4554 (HFILES_NO_SRCDIR): Add macroscope.h.
4555 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4556 (macroscope.o, macrocmd.o): New rules.
4557
4558 Teach the Dwarf 2 reader to read macro information.
4559 * dwarf2read.c: #include "macrotab.h".
4560 (dwarf_macinfo_buffer): New variable.
4561 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4562 dwarf_macinfo_size.
4563 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4564 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4565 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4566 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4567 dwarf2_macro_spaces_in_definition): New complaints.
4568 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4569 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4570 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4571 the partial symbol table.
4572 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4573 from what's recorded in the partial symbol table.
4574 (read_file_scope): If the compilation unit has a
4575 `DW_AT_macro_info' attribute, read its macro information.
4576 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4577
4578 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4579
4580 Fix PR gdb/546
4581 * ser-tcp.c: Don't include <netinet/udp.h>.
4582
4583 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4584
4585 * MAINTAINERS: Update my email address.
4586
4587 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4588
4589 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4590 include file of the same name.
4591
4592 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4593
4594 * configure.tgt: Mark v850 as multi-arched.
4595 * config/v850/tm-v850.h: Remove file.
4596 * config/v850/v850.mt: Eliminate TM_FILE.
4597
4598 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4599
4600 * v850-tdep.c: Full multi-arch.
4601 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4602 Define GDB_MULTI_ARCH to 2.
4603
4604 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4605
4606 * p-exp.y (current_type): New static variable.
4607 Carries the type of the expression at the position that is parsed.
4608 (push_current_type, pop_current_type): Two new functions. Used
4609 to store/restore current_type in expression on specific tokens.
4610 (search_field): New static variable. Set to one after parsing a point
4611 as at that point only a FIELDNAME token should be searched.
4612 (FIELDNAME): New token. After a point only a token belonging to
4613 current_type type definition is allowed.
4614 (all over token rules): reset and change current_type according
4615 to rules.
4616 (exp '[' rule): insert implicit array index field if
4617 exp is a pascal string type.
4618
4619 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4620
4621 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4622 frame info. Use frame_info's saved_regs instead of matching member
4623 in extra_frame_info throughout.
4624 (v850_frame_init_saved_regs): New function.
4625 (v850_init_extra_frame_info): Move most functionality into
4626 v850_frame_init_saved_regs().
4627 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4628 (v850_frame_find_saved_regs): Remove declaration.
4629 (FRAME_FIND_SAVED_REGS): Remove definition.
4630 (v850_frame_init_saved_regs): Add declaration.
4631 (FRAME_INIT_SAVED_REGS): Add definition.
4632
4633 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4634
4635 * v850-tdep.c: Begin multi-arch'ing v850.
4636 (v850_target_architecture_hook): Remove function.
4637 (v850_gdbarch_init): New function. Add code previously in
4638 v850_target_architecture_hook().
4639 (_initialize_v850_tdep): Don't set target_architecture_hook.
4640 Call register_gdbarch_init() instead.
4641
4642 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4643
4644 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4645 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4646 (fixup_class_method_type): Likewise.
4647
4648 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4649
4650 From Martin Pool <mbp@samba.org>:
4651 * gdbserver/server.c (gdbserver_usage): New function.
4652 (main): Call it.
4653
4654 2002-05-15 Jim Blandy <jimb@redhat.com>
4655
4656 Add macro structures to GDB's symbol tables. Nobody puts anything
4657 in them yet.
4658 * symtab.h (struct symtab): New member: `macro_table'.
4659 * buildsym.h (pending_macros): New global variable.
4660 * buildsym.c: #include "macrotab.h".
4661 (buildsym_init): Initialize `pending_macros'.
4662 (end_symtab): If we found macro information while reading a CU's
4663 debugging info, do build a symtab structure for it. Make the
4664 symtab point to the macro information, and clear the
4665 `pending_macros' pointer which held it while we were reading the
4666 debug info.
4667 (really_free_pendings): Free any pending macro table.
4668 * objfiles.h (struct objfile): New member: `macro_cache'.
4669 * objfiles.c (allocate_objfile): Set allocate and free functions
4670 for the macro cache's objstack.
4671 (free_objfile): Empty the macro cache's obstack.
4672 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4673 set new allocate and free functions for it.
4674 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4675 free functions for the macro cache's objstack. (Why is this
4676 function building its own objfile?)
4677 * symmisc.c (print_objfile_statistics): Print statistics on the
4678 macro bcache.
4679 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4680
4681 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4682
4683 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4684 (REGISTER_U_ADDR): Delete definition.
4685 (arm_register_u_addr): Delete declaration.
4686
4687 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4688
4689 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4690 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4691
4692 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4693
4694 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4695 stop_at -> stop_pc.
4696
4697 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4698
4699 * regcache.c (register_valid): Revise comments refering to "Not
4700 available" and "unavailable".
4701 * frame.c (frame_register_read): Ditto.
4702 * findvar.c (value_of_register): Ditto.
4703
4704 2002-05-15 Andrew Cagney <cagney@redhat.com>
4705
4706 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4707 (remote-sim.o): Update dependencies.
4708 (d10v-tdep.o): Specify dependencies.
4709 (sim_d10v_h): Define.
4710
4711 2002-05-14 Jim Blandy <jimb@redhat.com>
4712
4713 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4714 * macrotab.c (macro_lookup_inclusion, find_definition,
4715 new_macro_table): Same.
4716
4717 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4718 not `! strcmp ()'. This is a dubious improvement.
4719 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4720
4721 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4722 although it's not necessary, to avoid a warning.
4723
4724 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4725
4726 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4727 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4728 TYPE_INSTANCE_FLAGS.
4729 (struct main_type): New.
4730 (struct type): Move most members to struct main_type. Change
4731 cv_type and as_type to new type_chain member. Add instance_flags.
4732 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4733 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4734 (finish_cv_type): Remove prototype.
4735 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4736 Set TYPE_CHAIN.
4737 (alloc_type_instance): New function.
4738 (smash_type): New function.
4739 (make_pointer_type, make_reference_type, make_function_type)
4740 (smash_to_member_type, smash_to_method_type): Call smash_type.
4741 (make_qualified_type): New function.
4742 (make_type_with_address_space): Call make_qualified_type.
4743 (make_cv_type): Likewise.
4744 (finish_cv_type): Remove unnecessary function.
4745 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4746 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4747 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4748 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4749 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4750 * hpread.c (hpread_read_struct_type): Likewise.
4751 * stabsread.c (read_struct_type): Likewise.
4752
4753 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4754
4755 * configure.tgt: Add a catch all sh* target, for cases like
4756 sh[2,3,4]-elf and sh-hms.
4757
4758 2002-05-14 Keith Seitz <keiths@redhat.com>
4759
4760 * event-loop.c (create_file_handler): Don't do anything but
4761 update data when we are given a fd which we are already
4762 monitoring.
4763
4764 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4765
4766 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4767 (update_context): Use __func__ in warnings.
4768
4769 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4770
4771 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4772 and tcp_close to net_open and net_close.
4773 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4774 using UDP if requested. Don't try to disable Nagle on UDP
4775 sockets.
4776 * remote.c (remote_serial_open): New function. Warn about UDP.
4777 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4778
4779 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4780
4781 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4782
4783 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4784
4785 * configure.tgt: Remove sh-hms target.
4786 * MAINTAINERS: Don't list sh-hms as a separate target.
4787
4788 2002-05-13 Jim Blandy <jimb@redhat.com>
4789
4790 Add first preprocessor macro-expansion files.
4791 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4792 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4793 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4794 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4795 (COMMON_OBS): Add macrotab.o, macroexp.o.
4796 (macroexp.o, macrotab.o): New rules.
4797
4798 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4799
4800 * config/m88k/tm-m88k.h: Update copyright.
4801 (m88k_target_write_pc): Declare
4802 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4803 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4804 (SHIFT_INST_REGS): Update definition.
4805 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4806 using old definition of TARGET_WRITE_PC.
4807 * regcache.c (generic_target_write_pc): Delete code handling
4808 NNPC_REGNUM.
4809 * gdbarch.sh (NNPC_REGNUM): Delete.
4810 * gdbarch.h, gdbarch.c: Regenerate.
4811
4812 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4813
4814 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4815 builtin reg number.
4816
4817 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4818
4819 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4820 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4821 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4822 access macros.
4823 * c-typeprint.c (cp_type_print_method_args): Likewise.
4824 (c_type_print_args): Likewise.
4825 * d10v-tdep.c (d10v_push_arguments): Likewise.
4826 (d10v_extract_return_value): Likewise.
4827 * expprint.c (print_subexp): Likewise.
4828 * gdbtypes.c (lookup_primitive_typename): Likewise.
4829 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4830 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4831 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4832 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4833 (TYPE_VECTOR): Likewise.
4834 * hpread.c (hpread_read_struct_type)
4835 (fix_static_member_physnames, fixup_class_method_type)
4836 (hpread_type_lookup): Likewise.
4837 * mdebugread.c (parse_symbol, parse_type): Likewise.
4838 * p-lang.c (is_pascal_string_type): Likewise.
4839 * valops.c (hand_function_call): Likewise.
4840 * x86-64-tdep.c (classify_argument): Likewise.
4841
4842 * hpread.c (hpread_read_function_type)
4843 (hpread_read_doc_function_type): Call replace_type.
4844 * dstread.c (create_new_type): Delete.
4845 (decode_dst_structure, process_dst_function): Call alloc_type.
4846 Use type access macros.
4847
4848 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4849
4850 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4851 the're not supported by the current architecture.
4852 (i387_fill_fxsave): Likewise.
4853
4854 2002-05-12 Fred Fish <fnf@redhat.com>
4855
4856 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4857 sect_index_xxx members to index the first slot in section_offsets
4858 if all of the section_offsets are zero.
4859
4860 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4861
4862 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4863 checked in with last change.
4864
4865 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4866
4867 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4868 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4869 config.sub.
4870
4871 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4872
4873 * Makefile.in: Update dependencies.
4874
4875 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4876
4877 * language.c (local_hex_string_custom): Simplify. Do not depend
4878 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4879
4880 * memattr.c (mem_info_command): Replace calls to
4881 longest_local_hex_string and longest_local_hex_string_custom.
4882 * buildsym.c (make_blockvector): Ditto.
4883 * solib.c (info_sharedlibrary_command): Ditto.
4884 * tracepoint.c (tracepoints_info): Ditto.
4885 * symtab.c (print_msymbol_info): Ditto.
4886
4887 * language.c (local_hex_string): Delete.
4888 (local_hex_string_custom): Delete.
4889 (longest_local_hex_string): Rename to local_hex_string.
4890 (longest_local_hex_string_custom): Rename to
4891 local_hex_string_custom.
4892 * language.h (local_hex_string): Change parameter type to LONGEST.
4893 (local_hex_string_custom): Ditto.
4894 (longest_local_hex_string): Delete declaration.
4895 (longest_local_hex_string_custom): Ditto.
4896
4897 * solib.c: Update copyright.
4898 * memattr.c: Update copyright.
4899
4900 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4901
4902 * arch-utils.h (legacy_register_to_value): Declare.
4903 (legacy_value_to_register): Declare.
4904 (legacy_convert_register_p): Declare.
4905 * arch-utils.c (legacy_register_to_value): New function.
4906 (legacy_value_to_register): New function.
4907 (legacy_convert_register_p): New function.
4908
4909 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4910 (VALUE_TO_REGISTER): Define.
4911 (CONVERT_REGISTER_P): Define.
4912 * gdbarch.h, gdbarch.c: Regenerate.
4913
4914 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4915 VALUE_TO_REGISTER.
4916 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4917 CONVERT_REGISTER_P.
4918
4919 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4920 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4921
4922 * Makefile.in: Update dependencies for valops.c.
4923 * valops.c: Include "gdb_assert.h".
4924 (typecmp): Skip THIS parameter to methods.
4925 (find_method_list): Remove static_memfuncp argument,
4926 update callers. Check for stub methods.
4927 (find_value_oload_method_list): Don't set *static_memfuncp.
4928 (find_overload_match): Don't check for stub methods. Assert
4929 that methods are not stubbed. Handle static methods.
4930 (value_find_oload_method_list): Remove static_memfuncp argument.
4931 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4932 to the argument list for static stub methods.
4933 * value.h (value_find_oload_method_list): Update prototype.
4934
4935 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4936
4937 * arch-utils.h (generic_register_size): Declare.
4938 (generic_register_raw_size, generic_register_virtual_size): Delete
4939 declarations.
4940 * arch-utils.c (generic_register_raw_size): Delete.
4941 (generic_register_size): New function.
4942 (generic_register_virtual_size): Delete.
4943
4944 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4945 default generic_register_size.
4946 * gdbarch.h, gdbarch.c: Re-generate.
4947
4948 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4949 register_virtual_size.
4950 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4951 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4952
4953 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4954
4955 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4956 * gdbarch.h, gdbarch.c: Regenerate.
4957 * gnu-v3-abi.c: Update copyright.
4958 (vtable_address_point_offset): Update.
4959 (gnuv3_rtti_type): Update.
4960 (gnuv3_baseclass_offset): Update.
4961 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4962 (init_fetch_link_map_offsets): Update.
4963 * remote.c (get_remote_state): Update.
4964
4965 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4966
4967 * TODO: Remove value_headof/value_from_vtable_info comment.
4968 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4969 * values.c (value_headof, value_from_vtable_info): Delete.
4970 * value.h (value_from_vtable_info): Delete prototype.
4971
4972 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4973
4974 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4975 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4976 $(gdb_regex_h).
4977 (gdb_assert_h): Define.
4978 (gdb_wait_h): Define.
4979 (gdb_regex_h): Define.
4980
4981 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4982
4983 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4984 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4985
4986 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4987
4988 * nbsd-tdep.c: Fix comment.
4989
4990 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4991
4992 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4993 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4994 (nbsd-tdep.o): New dependency list.
4995 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4996 nbsd-tdep.h.
4997 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4998 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4999 * nbsd-tdep.c: New file.
5000 * nbsd-tdep.h: New file.
5001 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5002 nbsd-tdep.h.
5003 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5004 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5005 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5006 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5007
5008 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5009
5010 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5011 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5012 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5013 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5014 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5015 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5016
5017 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5018
5019 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5020 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5021 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5022 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5023 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5024 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5025 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5026
5027 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5028
5029 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5030 fetch_elfcore_registers to...
5031 * i386nbsd-tdep.c: ...here.
5032 (i386nbsd_use_struct_convention): Rename to...
5033 (i386nbsd_aout_use_struct_convention): ...this.
5034 (i386nbsd_supply_reg): New function.
5035 (i386nbsd_fill_reg): New function.
5036 (fetch_core_registers): Use i386nbsd_supply_reg.
5037 (fetch_elfcore_registers): Likewise.
5038 (_initialize_i386nbsd_tdep): New function.
5039 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5040 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5041 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5042 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5043 (i386nbsd_aout_use_struct_convention): ...this.
5044
5045 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5046
5047 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5048 (store_inferior_registers): Use shnbsd_fill_reg.
5049 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5050 sh_nbsd_supply_register): Collapse into...
5051 (shnbsd_supply_reg): ...this.
5052 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5053 (shnbsd_fill_reg): ...this.
5054 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5055 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5056 (fetch_core_registers): Use shnbsd_supply_reg.
5057 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5058 (sh_nbsd_core_fns): Rename to...
5059 (shnbsd_core_fns): ...this.
5060 (sh_nbsd_elfcore_fns): Rename to...
5061 (shnbsd_elfcore_fns): ...this.
5062 (sh_nbsd_init_abi): Rename to...
5063 (shnbsd_init_abi): ...this.
5064 (_initialize_sh_nbsd_tdep): Rename to...
5065 (_initialize_shnbsd_tdep): ...this.
5066 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5067 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5068 sh_nbsd_fill_register): Remove prototypes.
5069 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5070
5071 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5072
5073 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5074 (i387-nat.o): Delete dependency list.
5075 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5076 (x86-64-linux-nat.o): Likewise.
5077 * i387-nat.c: Delete file, moving contents to...
5078 * i387-tdep.c: ...here.
5079 * i387-nat.h: Rename...
5080 * i387-tdep.h: ...to this.
5081 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5082 * i386-linux-nat.c: Likewise.
5083 * i386bsd-nat.c: Likewise.
5084 * i386gnu-nat.c: Likewise.
5085 * i386nbsd-nat.c: Likewise.
5086 * i386v4-nat.c: Likewise.
5087 * x86-64-linux-nat.c: Likewise.
5088 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5089 * config/i386/go32.mh (NATDEPFILES): Likewise.
5090 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5091 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5092 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5093 * config/i386/linux.mh (NATDEPFILES): Likewise.
5094 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5095 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5096 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5097 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5098
5099 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5100
5101 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5102 (alphanbsd-nat.o): Remove dependency list.
5103 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5104 * alphanbsd-nat.c: Delete. Contents moved to...
5105 * alphanbsd-tdep.c: ...here.
5106 (_initialize_alphanbsd_tdep): Register core functions.
5107 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5108
5109 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5110
5111 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5112 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5113 (alphanbsd-nat.o): Likewise.
5114 (alphabsd-tdep.o): New dependency list.
5115 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5116 (fill_gregset): Use alphabsd_fill_reg.
5117 (supply_fpregset): Use alphabsd_supply_fpreg.
5118 (fill_fpregset): Use alphabsd_fill_fpreg.
5119 (fetch_inferior_registers): Use struct reg and struct fpreg
5120 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5121 and alphabsd_supply_fpreg.
5122 (store_inferior_registers): Use struct reg and struct fpreg
5123 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5124 and alphabsd_fill_fpreg.
5125 * alphabsd-tdep.c: New file.
5126 * alphabsd-tdep.h: New file.
5127 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5128 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5129 alphabsd_supply_fpreg.
5130 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5131 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5132
5133 2002-05-11 Eric Christopher <echristo@redhat.com>
5134
5135 * mips-tdep.c (mips_double_register_type): Fix thinko.
5136 (mips_single_register_type): Ditto.
5137 * MAINTAINERS: Add self.
5138
5139 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5140
5141 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5142 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5143 right thing on architectures with different endianness and/or
5144 integer sizes.
5145
5146 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5147
5148 From Christian Limpach <chris@Pin.LU>
5149 * configure.in: Change sed expression which comments out
5150 NATDEPFILES to also comment out continuation lines.
5151 * configure: Regenerate.
5152
5153 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5154
5155 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5156 big patch.
5157
5158 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5159
5160 * sh-tdep.c: Include correct file.
5161
5162 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5163
5164 New support for sh64-elf (sh5) target.
5165
5166 * configure.tgt: For sh64-elf target, default to sh-elf.
5167
5168 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5169 (struct gdbarch_tdep): Add new fields for new registers and ABI
5170 info.
5171
5172 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5173 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5174 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5175 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5176 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5177 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5178 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5179 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5180 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5181 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5182 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5183 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5184 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5185 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5186 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5187 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5188 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5189 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5190 sign_extend, sh64_nofp_frame_init_saved_regs,
5191 sh64_init_extra_frame_info, sh64_get_saved_register,
5192 sh64_extract_struct_value_address, sh64_pop_frame,
5193 sh64_push_arguments, sh64_extract_return_value,
5194 sh64_store_return_value, sh64_show_media_regs,
5195 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5196 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5197 sh_sh64_register_virtual_type,
5198 sh_sh64_register_convert_to_virtual,
5199 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5200 sh64_register_read, sh64_pseudo_register_write,
5201 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5202 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5203 sh64_do_pseudo_register, sh_compact_do_registers_info,
5204 sh64_do_registers_info, sh_gdbarch_init): New functions.
5205
5206 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5207
5208 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5209
5210 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5211
5212 * linespec.c (decode_line_1): Check for a double quote after
5213 a filename correctly.
5214
5215 2002-05-10 Jim Blandy <jimb@redhat.com>
5216
5217 Properly track the size of the current objfile's .debug_line section.
5218 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5219 (DWARF_LINE_SIZE): New macro.
5220 (dwarf2_build_psymtabs_hard): Record the line section's size in
5221 the partial symbol table.
5222 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5223 symbol table.
5224
5225 2002-05-10 Petr Sorfa <petrs@caldera.com>
5226
5227 * ia64-tdep.c: Handle breakpoints on L instruction type
5228 in MLX instruction bundle by moving the breakpoint to
5229 the third slot (X instruction type) as L holds only data.
5230
5231 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5232
5233 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5234 (process_one_symbol): Complain about discarding local symbols
5235 due to a misplaced N_LBRAC entry.
5236
5237 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5238
5239 From Daniel Berlin <dan@cgsoftware.com>
5240 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5241 decrease the depth we are at, in the case of templates.
5242
5243 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5244
5245 * mips-tdep.c (mips_float_register_type): New function.
5246 (mips_double_register_type): New function.
5247 (mips_print_register): Use them.
5248 (do_fp_register_row): Likewise.
5249
5250 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5251
5252 * signals/signals.c (signals): Remove conditional compilation around
5253 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5254 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5255
5256 2002-05-09 Michael Snyder <msnyder@redhat.com>
5257
5258 * remote-rdp.c (remote_rdp_can_run): Remove.
5259
5260 2002-05-09 Tom Tromey <tromey@redhat.com>
5261
5262 * jv-valprint.c (java_val_print): Handle `char' as a special case
5263 of TYPE_CODE_INT.
5264
5265 2002-05-09 Michael Snyder <msnyder@redhat.com>
5266
5267 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5268 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5269 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5270 str r(0123),[sp,#nn].
5271 (arm_skip_prologue): Ditto. Also make disassembly
5272 order-independent by placing it in a loop.
5273
5274 2002-05-06 Michael Snyder <msnyder@redhat.com>
5275
5276 * stabsread.c (read_type): Add recognition for new attribute:
5277 "@V;" means that an array type is actually a vector.
5278 This is analogous to the vector flag that's been added to dwarf2.
5279
5280 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5281
5282 * i386-tdep.h (i386_abi): New enum.
5283 (struct gdbarch_tdep): Replace os_ident member with abi.
5284 (i386_gdbarch_register_os_abi): New prototype.
5285 * i386-tdep.c (i386_abi_names): New array.
5286 (process_note_abi_tag_sections): Removed.
5287 (process_note_sections): New function.
5288 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5289 (struct i386_abi_handler): New struct.
5290 (i386_abi_handler_list): New variable.
5291 (i386_gdbarch_register_os_abi): New function.
5292 (i386_gdbarch_init): Adapt for the changes given above.
5293
5294 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5295
5296 * gregset.h: Say "GNU/Linux".
5297
5298 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5299
5300 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5301 (build_gdbtypes): Build builtin_type_v2_float.
5302 (_initialize_gdbtypes): Register new builtin type.
5303
5304 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5305
5306 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5307 (clear_gdbarch_swap): New function.
5308 (initialize_non_multiarch): Call.
5309 (gdbarch_update_p): Before calling init(), swap out and clear the
5310 existing architecture.
5311 * gdbarch.c: Regenerate.
5312
5313 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5314
5315 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5316 alphanbsd-tdep.c.
5317
5318 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5319
5320 * sh-nbsd-nat.c: Rename to...
5321 * shnbsd-nat.c: ...this.
5322 * sh-nbsd-tdep.c: Rename to...
5323 * shnbsd-tdep.c: ...this.
5324 * sh-nbsd-tdep.h: Rename to...
5325 * shnbsd-tdep.h: ...this.
5326 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5327 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5328
5329 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5330
5331 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5332 concatenation for command help messages.
5333
5334 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5335
5336 * NEWS: Note new sh*-*-netbsdelf* configuration.
5337 * configure.host: Set gdb_host_cpu to sh for all sh*.
5338 (sh*-*-netbsdelf*): New host.
5339 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5340 (sh*-*-netbsdelf*): New target.
5341 * sh-nbsd-nat.c: New file.
5342 * sh-nbsd-tdep.c: New file.
5343 * sh-nbsd-tdep.h: New file.
5344 * config/sh/nbsd.mh: New file.
5345 * config/sh/nbsd.mt: New file.
5346 * config/sh/nm-nbsd.h: New file.
5347 * config/sh/tm-nbsd.h: New file.
5348
5349 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5350
5351 * sh-tdep.c (sh_osabi_names): Declare.
5352 (process_note_abi_tag_sections): New function.
5353 (get_elfosabi): Ditto.
5354 (sh_gdbarch_register_os_abi): Ditto.
5355 (sh_dump_tdep): Ditto.
5356 _initialize_sh_tdep): Use gdbarch_register to register
5357 sh_gdbarch_init and sh_dump_tdep.
5358 * config/sh/tm-sh.h (sh_osabi): Declare.
5359 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5360
5361 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5362
5363 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5364 (thumb_scan_prologue): Ditto.
5365 (arm_find_callers_reg): Ditto.
5366 (arm_frame_chain): Ditto.
5367 (arm_init_extra_frame_info): Ditto.
5368 (arm_frame_saved_pc): Ditto.
5369 (arm_pop_frame): Ditto.
5370 (arm_push_return_address): New function.
5371 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5372 call_dummy_location, call_dummy_breakpoint_offset_p,
5373 call_dummy_breakpoint_offset, call_dummy_p,
5374 call_dummy_stack_adjust_p, call_dummy_words,
5375 sizeof_call_dummy_words, call_dummy_start_offset,
5376 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5377 call_dummy_address, push_return_address and push_dummy_frame for
5378 generic dummy frames.
5379
5380 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5381
5382 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5383 size computation for alloca.
5384 (sh_fp_frame_init_saved_regs): Likewise.
5385
5386 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5387
5388 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5389 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5390 * arm-tdep.c (arm_store_return_value): Use them.
5391 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5392 * remote-rdp.c (remote_rdp_fetch_register): Use
5393 ARM_MAX_REGISTER_RAW_SIZE.
5394 (remote_rdp_store_register): Likewise.
5395
5396 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5397
5398 * dwarf2cfi.c: Code cleanup, removed unused variables,
5399 added default labels to switch {} statements.
5400 * x86-64-tdep.c: Ditto.
5401 * x86-64-linux-nat.c: Ditto.
5402
5403 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5404
5405 * solib.h: Protect against multiple inclusion.
5406
5407 2002-05-06 Jim Blandy <jimb@redhat.com>
5408
5409 Add first preprocessor macro-expansion files.
5410 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5411 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5412 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5413 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5414 (COMMON_OBS): Add macrotab.o, macroexp.o.
5415 (macroexp.o, macrotab.o): New rules.
5416
5417 Separate the job of reading the line number info statement program
5418 header (...expialidocious) out into its own function.
5419 * dwarf2read.c (struct line_head, struct filenames, struct
5420 directories): Replace with...
5421 (struct line_header): New structure, containing the full
5422 contents of the statement program header, including the
5423 include directory and file name tables.
5424 (read_file_scope): If we have line number info, instead of just
5425 calling dwarf_decode_lines to do all the work, call
5426 dwarf_decode_line_header first to get a `struct line_header'
5427 containing the data in the statement program header, and then
5428 pass that to dwarf_decode_lines, which will pick up where that
5429 left off. Be sure to clean up the `struct line_header' object.
5430 (dwarf_decode_line_header, free_line_header, add_include_dir,
5431 add_file_name): New functions.
5432 (dwarf_decode_lines): Move all the code to read the statement
5433 program header into dwarf_decode_line_header. Take the line
5434 header it built as the first argument, instead of the offset to
5435 the compilation unit's line number info. Use the new `struct
5436 line_header' type instead of the old structures. No need to do
5437 cleanups here now, since we don't allocate anything.
5438 (dwarf2_statement_list_fits_in_line_number_section,
5439 dwarf2_line_header_too_long): New complaints.
5440
5441 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5442
5443 * gdbtypes.c (init_vector_type): New function.
5444 (build_builtin_type_vec128): Simplify the representation of SIMD
5445 registers.
5446 (build_gdbtypes): Initialize new builtin vector types.
5447 (_initialize_gdbtypes): Register new vector types with gdbarch.
5448 (builtin_type_v4_float, builtin_type_v4_int32,
5449 builtin_type_v8_int16, builtin_type_v16_int8,
5450 builtin_type_v2_int32, builtin_type_v4_int16,
5451 builtin_type_v8_int8): New (renamed) SIMD types.
5452
5453 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5454
5455 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5456 (i387_fill_fxsave): Likewise.
5457
5458 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5459
5460 * alpha-tdep.c (alpha_extract_return_value): Don't use
5461 non-constant array size in prototype.
5462
5463 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5464
5465 From Brian Taylor <briant at model dot com>:
5466 * ui-out.c (ui_out_field_core_addr): Use the function
5467 longest_local_hex_string_custom'to format addresses > 32 bits
5468 wide.
5469
5470 * ui-out.c (ui_out_field_core_addr): Update comment.
5471
5472 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5473
5474 * stack.c (select_and_print_frame): Make static. Delete the
5475 parameter `level'.
5476 (func_command): Update call.
5477 (select_frame_command): Delete code computing the frame level.
5478 * frame.h (select_and_print_frame): Delete declaration.
5479
5480 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5481
5482 * sparc-tdep.c (sparc_get_saved_register): Comment why
5483 get_prev_frame call is safe.
5484
5485 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5486
5487 * frame.h (select_frame): Delete level parameter.
5488 * stack.c (select_frame): Update. Use frame_relative_level to
5489 obtain the frame's level.
5490 (select_and_print_frame): Update call.
5491 (select_frame_command): Ditto.
5492 (up_silently_base): Ditto.
5493 (down_silently_base): Ditto.
5494 * ocd.c (ocd_start_remote): Ditto.
5495 * remote-rdp.c (remote_rdp_open): Ditto.
5496 * remote-mips.c (mips_initialize): Ditto.
5497 (common_open): Ditto.
5498 * remote-e7000.c (e7000_start_remote): Ditto.
5499 * m3-nat.c (select_thread): Ditto.
5500 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5501 (child_get_current_exception_event): Ditto.
5502 * varobj.c (varobj_create): Ditto.
5503 (varobj_update): Ditto.
5504 (c_value_of_root): Ditto.
5505 * tracepoint.c (finish_tfind_command): Ditto.
5506 * corelow.c (core_open): Ditto.
5507 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5508 * thread.c (info_threads_command): Ditto.
5509 (switch_to_thread): Ditto.
5510 * infrun.c (normal_stop): Ditto.
5511 (restore_selected_frame): Ditto.
5512 (restore_inferior_status): Ditto.
5513 * breakpoint.c (insert_breakpoints): Ditto.
5514 (watchpoint_check): Ditto.
5515 (bpstat_stop_status): Ditto.
5516 (do_enable_breakpoint): Ditto.
5517 * blockframe.c (flush_cached_frames): Ditto.
5518 (reinit_frame_cache): Ditto.
5519
5520 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5521
5522 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5523 maintainer.
5524
5525 2002-05-04 Jim Blandy <jimb@redhat.com>
5526
5527 * gdbtypes.c (replace_type): Doc fix.
5528
5529 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5530
5531 * valprint.c (strcat_longest): Delete commented out function.
5532 Update copyright.
5533
5534 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5535
5536 * MAINTAINERS: Mark a29k as deleted.
5537 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5538 Move new configurations to the top.
5539 * configure.tgt: Remove a29k.
5540 * config/a29k/tm-vx29k.h: Delete.
5541 * config/a29k/vx29k.mt: Delete.
5542 * config/a29k/tm-a29k.h: Delete.
5543 * config/a29k/a29k-udi.mt: Delete.
5544 * config/a29k/a29k.mt: Delete.
5545 * a29k-tdep.c: Delete.
5546 * remote-udi.c: Delete.
5547 * remote-mm.c: Delete.
5548 * remote-eb.c: Delete.
5549 * remote-adapt.c: Delete.
5550 * Makefile.in: Remove obsolete code.
5551 * gdbserver/Makefile.in: Ditto.
5552 * config/s390/s390x.mt: Ditto.
5553 * config/s390/s390.mt: Ditto.
5554 * config/sparc/sparclynx.mh: Ditto.
5555 * config/sparc/linux.mh: Ditto.
5556 * config/pa/hppaosf.mh: Ditto.
5557 * config/pa/hppabsd.mh: Ditto.
5558 * config/ns32k/nbsd.mt: Ditto.
5559 * config/mips/vr5000.mt: Ditto.
5560 * config/m68k/sun3os4.mh: Ditto.
5561 * config/m68k/nbsd.mt: Ditto.
5562 * config/m68k/m68klynx.mh: Ditto.
5563 * config/m32r/m32r.mt: Ditto.
5564 * config/i386/x86-64linux.mt: Ditto.
5565 * config/i386/nbsdelf.mt: Ditto.
5566 * config/i386/nbsd.mt: Ditto.
5567 * config/i386/i386lynx.mh: Ditto.
5568
5569 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5570
5571 * target.c (debug_print_register): New function. Handle oversize
5572 registers.
5573 (debug_to_fetch_registers): Call.
5574 (debug_to_store_registers): Call.
5575
5576 2002-05-03 Jim Blandy <jimb@redhat.com>
5577
5578 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5579 (read_type): Doc fix.
5580 * gdbtypes.c (replace_type): Doc fix.
5581
5582 * stabsread.c (multiply_defined_struct): New complaint.
5583 (read_struct_type): If the type we were passed isn't empty, or
5584 incomplete, don't read the new struct type into it; complain,
5585 and return the original type unchanged. Take a new `type_code'
5586 argument, which is the type code for the new type.
5587 (read_type): Rather than storing the type's type code here, pass
5588 it as an argument to read_struct_type, and let that take care of
5589 storing it. That way, we don't overwrite the original type code,
5590 so read_struct_type can use it to decide whether we're overwriting
5591 something we shouldn't.
5592 (complain_about_struct_wipeout): New function.
5593
5594 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5595
5596 * gdbarch.sh: Assert that gdbarch is non-NULL.
5597 * gdbarch.c: Regenerate.
5598
5599 2002-05-03 Jason Merrill <jason@redhat.com>
5600
5601 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5602 and return NULL.
5603
5604 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5605
5606 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5607 (x86_64_dwarf2gdb_regno_map_length),
5608 (x86_64_dwarf2_reg_to_regnum): Added.
5609 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5610 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5611 (_initialize_x86_64_tdep): Synced with the change above.
5612 (x86_64_skip_prologue): Reformulated message.
5613
5614 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5615
5616 * f-exp.y: Also use new prev_lexptr variable
5617 to improve error reporting. Based on Michael Snyder
5618 2002-04-24 dated patch to c-exp.y.
5619 * jv-exp.y: Likewise.
5620 * m2-exp.y: Likewise.
5621
5622 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5623
5624 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5625 we are dealing with vectors.
5626
5627 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5628
5629 * config/m68k/tm-nbsd.h: Obvious fix,
5630 correct machine name.
5631
5632 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5633
5634 * p-typeprint.c (pascal_type_print_base): Add support
5635 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5636
5637 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5638
5639 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5640 for fondamental pascal 'char' type.
5641
5642 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5643
5644 * p-lang.h (is_pascal_string_type): Declaration changed,
5645 new sixth argument of type char ** added.
5646 * p-lang.c (is_pascal_string_type): Implementation
5647 changed. Args length_pos, length_size, string_pos, char_size
5648 can now be NULL. New argument arrayname set to the field
5649 name of the char array. Return value set to char array
5650 field index plus one.
5651 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5652 is_pascal_string_type function.
5653
5654 2002-05-02 Andrew Cagney <cagney@redhat.com>
5655
5656 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5657 <cagney@redhat.com> change.
5658 * gdbarch.c: Regenerate.
5659
5660 2002-05-02 Andrew Cagney <cagney@redhat.com>
5661
5662 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5663 before probing for a new one. Detect errorenous gdbarch_init
5664 functions.
5665 * gdbarch.c: Regenerate.
5666
5667 2002-05-01 Andrew Cagney <cagney@redhat.com>
5668
5669 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5670 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5671 * config/v850/tm-v850.h: Ditto. Update copyright.
5672
5673 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5674
5675 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5676 current_gdbarch.
5677
5678 2002-04-30 Michael Snyder <msnyder@redhat.com>
5679
5680 * arm-tdep.c: Whitespace clean-ups.
5681 (arm_skip_prologue): Fix thinko; two lines
5682 should have been removed as part of 4/24 change.
5683
5684 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5685
5686 * rs6000-tdep.c: Added comment describing how fpscr register
5687 numbers were chosen.
5688
5689 2002-04-30 Michael Snyder <msnyder@redhat.com>
5690
5691 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5692
5693 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5694
5695 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5696 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5697 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5698
5699 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5700
5701 From Louis Hamilton <hamilton@redhat.com>:
5702 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5703 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5704 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5705 not bfd-private xcoff data, to determine wordsize.
5706 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5707
5708 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5709
5710 GDB 5.2 released from 5.2 branch.
5711
5712 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5713
5714 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5715 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5716 (x86_64_register_info_table): Added comments with register numbers.
5717
5718 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5719
5720 * rs6000-tdep.c (rs6000_extract_return_value,
5721 rs6000_store_return_value): Handle returning vectors.
5722 (rs6000_gdbarch_init): Use
5723 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5724 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5725 New function.
5726 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5727 vectors.
5728 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5729 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5730
5731 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5732
5733 * hpread.c (hpread_psymtab_to_symtab_1,
5734 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5735 with fprintf_unfiltered (gdb_stderr,...).
5736
5737 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5738
5739 * remote-array.c (printf_monitor, write_monitor,
5740 array_insert_breakpoint, array_remove_breakpoint ):
5741 Replace fprintf (stderr,...
5742 with fprintf_unfiltered (gdb_stderr,....
5743 * remote-es.c: Likewise.
5744 * remote-os9k.c: Likewise.
5745 * remote-st.c: Likewise.
5746
5747 2002-04-28 Andreas Schwab <schwab@suse.de>
5748
5749 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5750 linux-proc.o and gcore.o.
5751
5752 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5753
5754 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5755 code without frame pointers.
5756
5757 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5758
5759 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5760 ON_STACK is needed.
5761
5762 2002-04-26 Ben Elliston <bje@redhat.com>
5763
5764 * target.c (do_xfer_memory): Correct reference to the new option
5765 "trust-readonly-sections".
5766
5767 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5768
5769 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5770 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5771 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5772 vectors.
5773 (read_array_type): Record the fact that this array type is really a
5774 vector (i.e. are passed in by value).
5775
5776 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5777
5778 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5779 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5780 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5781 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5782 * alpha-linux-tdep.c: Include frame.h.
5783 (alpha_linux_sigcontext_addr): New function.
5784 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5785 alpha_linux_sigcontext_addr.
5786 * alpha-osf1-tdep.c: Include gdbcore.h.
5787 (alpha_osf1_sigcontext_addr): New function.
5788 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5789 alpha_osf1_sigcontext_addr.
5790 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5791 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5792
5793 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5794
5795 * stack.c (selected_frame_level):
5796 (select_frame): Do not set selected_frame_level.
5797 * frame.h (selected_frame_level): Delete declaration.
5798
5799 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5800
5801 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5802 convert_from_func_ptr-addr when AIX / PowerOpen.
5803
5804 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5805
5806 * valops.c (hand_function_call): Call
5807 generic_save_call_dummy_addr.
5808 * frame.h (generic_save_call_dummy_addr): Declare.
5809 * blockframe.c (struct dummy_frame): Add fields call_lo and
5810 call_hi.
5811 (generic_find_dummy_frame): Check for PC in range call_lo to
5812 call_hi instead of entry_point_address.
5813 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5814 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5815 (generic_save_call_dummy_addr): New function.
5816
5817 2002-04-24 David S. Miller <davem@redhat.com>
5818
5819 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5820 sparc_skip_prologue.
5821 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5822 information to find prologue when possible.
5823 (sparc_prologue_frameless_p): Call examine_prologue directly.
5824 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5825 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5826 second argument.
5827 (SKIP_PROLOGUE): Likewise.
5828
5829 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5830
5831 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5832 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5833 indicate that the condition it was testing is always true.
5834 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5835 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5836 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5837
5838 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5839
5840 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5841 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5842 tdep->jb_pc and tdep->jb_elt_size.
5843 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5844 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5845 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5846 * alpha-nat.c (get_longjmp_target): Remove.
5847 (JB_ELEMENT_SIZE): Ditto.
5848 (JB_PC): Ditto.
5849 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5850 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5851 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5852 to alpha_get_longjmp_target.
5853 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5854 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5855 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5856
5857 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5858
5859 * README: Update to GDB 5.2.
5860
5861 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5862
5863 * gdbarch.sh (LC_ALL): Set to `c'.
5864
5865 2002-04-25 Theodore A. Roth <troth@verinet.com>
5866
5867 * avr-tdep.c: Ran through gdb_indent.sh.
5868
5869 2002-04-25 Theodore A. Roth <troth@verinet.com>
5870
5871 * MAINTAINERS: Add myself as AVR maintainer.
5872 * NEWS: Note new target avr.
5873
5874 2002-04-25 Theodore A. Roth <troth@verinet.com>
5875
5876 * Makefile.in: Add support for AVR target.
5877 * configure.tgt: Add support for AVR target.
5878 * avr-tdep.c: New file
5879 * config/avr/avr.mt: New file.
5880
5881 2002-04-25 Theodore A. Roth <troth@verinet.com>
5882
5883 * MAINTAINERS: Add myself to write-after-approval.
5884
5885 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5886
5887 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5888 with fprintf_unfiltered (gdb_stderr,....
5889
5890 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5891
5892 Fix PR gdb/508.
5893 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5894
5895 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5896
5897 * p-exp.y: Also use new prev_lexptr variable
5898 to improve error reporting. Based on Michael Snyder
5899 2002-04-24 dated patch to c-exp.y.
5900
5901 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5902
5903 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5904 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5905 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5906 to 0.
5907 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5908 and struct value.
5909 (FUNCTION_START_OFFSET): Remove.
5910 (BREAKPOINT): Ditto.
5911
5912 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5913
5914 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5915 * NEWS: Ditto.
5916
5917 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5920 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5921 alpha_linux_pc_in_sigtramp.
5922 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5923 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5924 alpha_osf1_pc_in_sigtramp.
5925 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5926 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5927 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5928 alphafbsd_pc_in_sigtramp.
5929 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5930 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5931 alphanbsd_pc_in_sigtramp.
5932 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5933 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5934
5935 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5936
5937 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5938
5939 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5940
5941 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5942 alphanbsd-tdep.c.
5943 (alphanbsd-nat.o): New dependency list.
5944 (alphanbsd-tdep.o): Ditto.
5945 * NEWS: Note new native NetBSD/alpha configuration.
5946 * alphanbsd-nat.c: New file.
5947 * alphanbsd-tdep.c: Ditto.
5948 * configure.host (alpha*-*-netbsd*): New host.
5949 * configure.tgt (alpha*-*-netbsd*): New target.
5950 * config/alpha/nbsd.mh: New file.
5951 * config/alpha/nbsd.mt: Ditto.
5952 * config/alpha/nm-nbsd.h: Ditto.
5953 * config/alpha/tm-nbsd.h: Ditto.
5954
5955 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5956
5957 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5958 (alpha-osf1-tdep.o): New dependency list.
5959 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5960 and skip_sigtramp_frame members.
5961 * alpha-linux-tdep.c: Include gdbcore.h.
5962 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5963 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5964 * alpha-osf1-tdep.c: New file.
5965 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5966 alpha-osf1-dep.c.
5967 (alpha_frame_past_sigtramp_frame): New function.
5968 (alpha_dynamic_sigtramp_offset): Ditto.
5969 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5970 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5971 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5972 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5973 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5974 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5975 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5976 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5977 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5978 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5979 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5980 to find_solib_trampoline_target.
5981 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5982 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5983 (SKIP_TRAMPOLINE_CODE): Remove.
5984 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5985 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5986 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5987 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5988 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5989 (PROC_SIGTRAMP_MAGIC): Ditto.
5990 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5991 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5992 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5993 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5994 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5995
5996 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5997
5998 * NEWS: Note that Alpha targets are now multi-arch.
5999
6000 2002-04-24 Michael Snyder <msnyder@redhat.com>
6001
6002 * parser-defs.h (prev_lexptr): New external variable.
6003 * parse.c (parse_exp_1): Set prev_lexptr to null before
6004 calling the language-specific parser.
6005 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6006 (yyerror): Use prev_lexptr in error reporting.
6007
6008 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6009
6010 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6011 * gregset.h: If FILL_FPXREGSET is defined, provide
6012 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6013 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6014 is defined, call fill_fpxregset.
6015
6016 2002-04-24 Roland McGrath <roland@frob.com>
6017
6018 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6019 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6020 (supply_gregset, supply_fpregset): New functions.
6021
6022 * gnu-nat.c (gnu_find_memory_regions): New function.
6023 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6024 (gnu_xfer_memory): Add a cast.
6025
6026 2002-04-24 Michael Snyder <msnyder@redhat.com>
6027
6028 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6029 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6030 of argument regs ("str r(0123), [r11, #-nn"]).
6031 (arm_skip_prologue): Better handling for frameless functions.
6032 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6033 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6034
6035 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6036
6037 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6038 NUM_PSEUDO_REGS can be used.
6039
6040 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6041
6042 * arch-utils.h: Update copyright.
6043
6044 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6045 * gdbarch.h, gdbarch.c: Re-generate.
6046
6047 * inferior.h (IN_SIGTRAMP): Delete definition.
6048 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6049 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6050
6051 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6052 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6053 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6054 (find_proc_framesize): Ditto.
6055 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6056 (alpha_init_extra_frame_info): Ditto.
6057 * infrun.c (handle_inferior_event): Ditto.
6058 (handle_inferior_event): Ditto.
6059 (check_sigtramp2): Ditto.
6060 * blockframe.c (create_new_frame): Ditto.
6061 (get_prev_frame): Ditto.
6062 * ppc-linux-tdep.c: Update comments.
6063 * i386-linux-tdep.c: Update comments.
6064 * breakpoint.c (bpstat_what): Update comment.
6065
6066 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6067
6068 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6069 (regsets_store_inferior_registers): Removed cast to int from
6070 ptrace() calls.
6071 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6072
6073 2002-04-24 David S. Miller <davem@redhat.com>
6074
6075 * i960-tdep.c (register_in_window_p): New function.
6076 (i960_find_saved_register): Use it instead of
6077 REGISTER_IN_WINDOW_P.
6078 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6079
6080 * symtab.h (find_stab_function_addr): Kill extern.
6081 * minsyms.c (find_stab_function_addr): Remove from here...
6082 * dbxread.c: ... to here, and mark it static.
6083
6084 2002-04-20 David S. Miller <davem@redhat.com>
6085
6086 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6087 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6088
6089 2002-04-21 David S. Miller <davem@redhat.com>
6090
6091 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6092 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6093 (vx_write_register): Likewise.
6094
6095 2002-04-23 J. Brobecker <brobecker@gnat.com>
6096
6097 * source.c (is_regular_file): New function.
6098 (openp): Check wether file to open is a regular file
6099 to avoid opening directories.
6100
6101 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * findvar.c (extract_signed_integer): Cast printf argument
6104 to suppress format warning.
6105 (extract_unsigned_integer): Likewise.
6106 * infcmd.c (registers_info): Likewise.
6107 * top.c (get_prompt_1): Likewise.
6108 * valops.c (value_assign): Likewise.
6109 * valprint.c (print_decimal): Likewise.
6110
6111 2002-04-22 H.J. Lu (hjl@gnu.org)
6112
6113 * c-exp.y (typebase): Support
6114
6115 [long|long long|short] [signed|unsigned] [int|]
6116
6117 and
6118
6119 signed [long|long long|short] int
6120
6121 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6122
6123 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6124 and vax-tdep.h.
6125 * vax-tdep.h: New file.
6126 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6127 Make several routines static.
6128 (vax_get_saved_register): New function.
6129 (vax_gdbarch_init): New function.
6130 (_initialize_vax_tdep): Register vax_gdbarch_init.
6131 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6132 Remove macros now under the control of gdbarch.
6133
6134 2002-04-22 Michael Snyder <msnyder@redhat.com>
6135
6136 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6137 Some whitespace and coding standards tweaks.
6138
6139 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6140
6141 * vax-tdep.c: Include regcache.h.
6142 (vax_call_dummy_words): New.
6143 (sizeof_vax_call_dummy_words): New.
6144 (vax_fix_call_dummy): New function.
6145 (vax_saved_pc_after_call): Ditto.
6146 * config/vax/tm-vax.h: Don't include regcache.h.
6147 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6148 (CALL_DUMMY): Remove.
6149 (CALL_DUMMY_WORDS): Define.
6150 (SIZEOF_CALL_DUMMY_WORDS): Define.
6151 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6152
6153 2002-04-18 Michael Snyder <msnyder@redhat.com>
6154
6155 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6156
6157 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6158
6159 * vax-tdep.c (vax_frame_chain): New function.
6160 (vax_push_dummy_frame): Ditto.
6161 (vax_pop_frame): Ditto.
6162 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6163 (FRAMELESS_FUNCTION_INVOCATION): Use
6164 generic_frameless_function_invocation_not.
6165 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6166 (POP_FRAME): Use vax_pop_frame.
6167
6168 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6169
6170 * vax-tdep.c (vax_store_struct_return): New function.
6171 (vax_extract_return_value): Ditto.
6172 (vax_store_return_value): Ditto.
6173 (vax_extract_struct_value_address): Ditto.
6174 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6175 vax_store_struct_return.
6176 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6177 (STORE_RETURN_VALUE): Use vax_store_return_value.
6178 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6179
6180 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6181
6182 * vax-tdep.c (vax_frame_saved_pc): New function.
6183 (vax_frame_args_address_correct): Ditto.
6184 (vax_frame_args_address): Ditto.
6185 (vax_frame_locals_address): Ditto.
6186 (vax_frame_num_args): Move code to be in proximity to
6187 other frame-related functions.
6188 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6189 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6190 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6191 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6192 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6193
6194 2002-04-22 H.J. Lu (hjl@gnu.org)
6195
6196 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6197 includedir.
6198
6199 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6200
6201 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6202 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6203 (FRAME_INIT_SAVED_REGS): New macro.
6204
6205 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6206
6207 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6208
6209 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6210
6211 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6212 where needed.
6213 (fetch_osf_core_registers): Likewise.
6214 (supply_gregset): Likewise.
6215
6216 2002-04-22 J. Brobecker <brobecker@gnat.com>
6217
6218 * symfile.h (get_section_index): Define.
6219 * symfile.c (get_section_index): New function.
6220 * mdebugread.c (SC_IS_SBSS): New macro.
6221 (SC_IS_BSS): Return true for the scBss storage class only, as
6222 the scSBss storage class refers to the .sbss section.
6223 (parse_partial_symbols): Discard the symbols which associated
6224 section does not exist.
6225 Make sure to use the .sbss section index for symbols which
6226 storage class is scBss, rather than using the .bss section index.
6227
6228 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6229
6230 * vax-tdep.c: Update copyright years.
6231 (vax_register_name): New function.
6232 (vax_register_byte): Ditto.
6233 (vax_register_raw_size): Ditto.
6234 (vax_register_virtual_size): Ditto.
6235 (vax_register_virtual_type): Ditto.
6236 * config/vax/tm-vax.h: Update copyright years.
6237 (REGISTER_NAMES): Remove.
6238 (REGISTER_NAME): Define.
6239 (REGISTER_BYTE): Use vax_register_byte.
6240 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6241 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6242 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6243
6244 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6245
6246 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6247 declaration
6248 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6249
6250 2002-04-21 David S. Miller <davem@redhat.com>
6251
6252 * arch-utils.c (generic_prologue_frameless_p): Kill
6253 SKIP_PROLOGUE_FRAMELESS_P code.
6254 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6255 references.
6256 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6257 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6258 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6259 references.
6260 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6261 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6262 (sparc_gdbarch_init): Pass it to
6263 set_gdbarch_prologue_frameless_p.
6264
6265 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6266
6267 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6268 (alphabsd-nat.o): New dependency list.
6269
6270 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6271
6272 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6273 alphafbsd-tdep.c.
6274 (alpha-linux-tdep.o): New dependency list.
6275 (alphafbsd-tdep.o): Likewise.
6276
6277 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6278
6279 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6280 to here...
6281 * alpha-tdep.c: ...from here.
6282 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6283
6284 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6285
6286 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6287 prototype from here...
6288 * alpha-tdep.h: ...to here.
6289
6290 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6291
6292 * frame.h (selected_frame_level): Document as deprecated.
6293 (frame_relative_level): Declare.
6294 * stack.c (frame_relative_level): New function.
6295 (selected_frame_level): Document as deprecated.
6296 (select_frame): Do not set the selected_frame_level.
6297
6298 * stack.c (frame_info, record_selected_frame): Update.
6299 (frame_command, current_frame_command): Update.
6300 (up_silently_base, up_command, down_silently_base): Update.
6301 (down_command): Update.
6302 * inflow.c (kill_command): Update.
6303 * tracepoint.c (finish_tfind_command): Update.
6304 * corelow.c (core_open): Update.
6305 * thread.c (info_threads_command): Update.
6306 (do_captured_thread_select): Update.
6307 * infcmd.c (finish_command): Update.
6308 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6309
6310 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6311
6312 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6313
6314 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6315
6316 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6317 type const.
6318
6319 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6320
6321 * alphafbsd-tdep.c: Update copyright years. Include
6322 alpha-tdep.h.
6323 (alphafbsd_use_struct_convention): Make static.
6324 (alphafbsd_init_abi): New function.
6325 (_initialize_alphafbsd_tdep): New function.
6326 * config/alpha/tm-fbsd.h: Update copyright years.
6327 (USE_STRUCT_CONVENTION): Remove.
6328
6329 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6330
6331 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6332 an Alpha ABI variant.
6333 (alpha_abi_handler_list): Declare.
6334 (alpha_gdbarch_register_os_abi): New function.
6335 (alpha_gdbarch_init): Give registered ABI variant handlers a
6336 chance to tweak the gdbarch once we have set up defaults.
6337 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6338
6339 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6340
6341 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6342 to standard_coerce_float_to_double.
6343 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6344
6345 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6346
6347 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6348 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6349 from gdbarch_tdep rather than a constant.
6350 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6351 the default text address for all Alpha Unix ABIs.
6352 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6353 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6354
6355 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6356
6357 * alpha-tdep.h: New file. Includes several Alpha target constants
6358 taken from...
6359 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6360 let gdbarch deal with.
6361 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6362 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6363 to dependency list.
6364 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6365 Alpha target register names.
6366 * alphabsd-nat.c: Likewise.
6367 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6368 Alpha target register names. Make serveral routines static.
6369 (alpha_get_saved_register): New function.
6370 (alpha_abi_names): New.
6371 (process_note_abi_tag_sections): New function.
6372 (get_elfosabi): New function.
6373 (alpha_gdbarch_init): New function.
6374 (alpha_dump_tdep): New function.
6375 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6376
6377 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6378
6379 * frame.c (find_saved_register): Delete #ifdef
6380 HAVE_REGISTER_WINDOWS code.
6381 * config/sparc/tm-sparc.h: Update comments.
6382 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6383
6384 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6385
6386 * i960-tdep.c (i960_find_saved_register): New function.
6387 (i960_get_saved_register): New function.
6388 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6389 (i960_get_saved_register): Declare.
6390 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6391
6392 2002-04-20 David S. Miller <davem@redhat.com>
6393
6394 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6395
6396 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6397
6398 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6399 instead of NUM_PSEUDO_REGS.
6400
6401 2002-04-20 David S. Miller <davem@redhat.com>
6402
6403 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6404 GDB_MULTI_ARCH_PARTIAL
6405 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6406 define, let tm-sp64.h do it.
6407
6408 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6409
6410 * frame.c (find_saved_register): Avoid a NULL pointer
6411 dereference and actually walk the frame list.
6412
6413 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6414
6415 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6416 sorted in most most-recent-used order. Document.
6417 * gdbarch.h, gdbarch.c: Regenerate.
6418
6419 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6420
6421 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6422 (add_inferior): Call create_register_cache.
6423 (clear_inferiors): Call free_register_cache.
6424 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6425 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6426 (registers): Remove.
6427 (get_regcache): New function.
6428 (create_register_cache, free_register_cache): New functions.
6429 (set_register_cache): Don't initialize the register cache here.
6430 (registers_to_string, registers_from_string, register_data): Call
6431 get_regcache.
6432 * gdbserver/regcache.h: Add prototypes.
6433 * gdbserver/server.h: Likewise.
6434
6435 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6436
6437 * gdbserver/mem-break.c: New file.
6438 * gdbserver/mem-break.h: New file.
6439 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6440 dependencies.
6441 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6442 member.
6443 (clear_inferiors): Free target_data member if set.
6444 (inferior_target_data, set_inferior_target_data): New functions.
6445 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6446 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6447 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6448 (struct inferior_linux_data): New.
6449 (linux_create_inferior): Use set_inferior_target_data.
6450 (linux_attach): Likewise. Call add_inferior.
6451 (linux_wait_for_one_inferior): New function.
6452 (linux_wait): Call it.
6453 (linux_write_memory): Add const.
6454 (initialize_low): Call set_breakpoint_data.
6455 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6456 handling members.
6457 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6458 call.
6459 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6460 prototypes.
6461 * gdbserver/target.c (read_inferior_memory)
6462 (write_inferior_memory): New functions.
6463 * gdbserver/target.h (read_inferior_memory)
6464 (write_inferior_memory): Change macros to prototypes.
6465 (struct target_ops): Update comments. Add const to write_memory
6466 definition.
6467
6468 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6469
6470 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6471 instead of ->prev.
6472 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6473 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6474 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6475 instead of ->prev.
6476
6477 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6478
6479 Fix PR gdb/471.
6480 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6481 (build_builtin_type_vec128): Ditto.
6482 (append_composite_type_field): Fix calculation of type length in
6483 union case.
6484
6485 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6486
6487 * config/djgpp/README: Update.
6488
6489 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6490 compiler warnings.
6491
6492 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6493
6494 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6495 (alpha_setup_arbitrary_frame): ...to this.
6496 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6497 for alpha_setup_arbitrary_frame.
6498
6499 2002-04-18 Andrew Cagney <cagney@redhat.com>
6500
6501 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6502 * gdbarch.h, gdbarch.c: Regenerate.
6503
6504 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6505 * target.h (memory_breakpoint_from_pc): Update declaration.
6506 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6507
6508 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6509 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6510 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6511 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6512 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6513 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6514 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6515 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6516 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6517 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6518 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6519 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6520
6521 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6522 const pointer.
6523 * monitor.c (monitor_insert_breakpoint): Ditto.
6524 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6525
6526 * config/mcore/tm-mcore.h: Update copyright.
6527 * mem-break.c: Ditto.
6528 * xstormy16-tdep.c: Ditto.
6529
6530 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6531
6532 * p-exp.y: Add precedence rule for '^' token.
6533 This removes the shift/reduce conflicts.
6534 Remove the comment concerning these shift/reduce conflicts.
6535
6536 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6537
6538 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6539 (registers_powerpc_nofp): New register set for processors
6540 without floating point unit.
6541
6542 2002-04-18 David S. Miller <davem@redhat.com>
6543
6544 * MAINTAINERS: Add myself to write-after-approval.
6545
6546 2002-04-17 Michael Snyder <msnyder@redhat.com>
6547
6548 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6549
6550 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6551
6552 * rs6000-tdep.c (frame_initial_stack_address): Use
6553 frame_register_read to read the alloca_reg.
6554
6555 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6556
6557 * frame.c (find_saved_register): Find saved registers in the next
6558 not prev frame.
6559 Fix PR gdb/365.
6560
6561 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6562
6563 * gdbarch.sh (LANG): Set to ``c''.
6564
6565 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6566
6567 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6568
6569 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6570
6571 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6572 Update copyright.
6573
6574 * hpread.c (hpread_get_lntt): Add declaration.
6575 Also fix PR gdb/391.
6576
6577 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6578
6579 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6580 * aclocal.m4, configure: Re-generate.
6581 Fix PR gdb/391.
6582
6583 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6584
6585 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6586 instead of tm_print_insn.
6587
6588 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6589
6590 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6591
6592 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6593
6594 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6595 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6596 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6597
6598 2002-04-12 Don Howard <dhoward@redhat.com>
6599
6600 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6601 max_user_call_depth.
6602 (init_cmd_lists): Initialize the new value;
6603 * cli/cli-script.c (execute_user_command): Limit the call depth of
6604 user defined commands. This avoids a core-dump when user commands
6605 are infinitly recursive.
6606
6607 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6608
6609 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6610 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6611 from tdep struct instead of DEFAULT_LR_SAVE.
6612 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6613 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6614 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6615
6616 2002-04-12 Michael Snyder <msnyder@redhat.com>
6617
6618 * Remote.c: Spelling fix.
6619 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6620 If no symbol found for "sbrk", try "_sbrk".
6621 (make_output_phdrs): Use bfd_section_name.
6622 (gcore_copy_callback): Use bfd_section_name.
6623 * eval.c: Indentation fix-ups.
6624 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6625 in case it gets applied to an address that is already
6626 in the instruction space.
6627 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6628 * symfile.c: Fix indentation, long lines.
6629 * source.c: White space fix-up.
6630
6631 2002-04-12 Andrew Cagney <cagney@redhat.com>
6632
6633 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6634 * frame.c (frame_register_read): New function. Return non-zero on
6635 success.
6636 (read_relative_register_raw_bytes_for_frame): Delete.
6637 (read_relative_register_raw_bytes): Delete.
6638 * frame.h (frame_register_read): Declare.
6639 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6640 * sh-tdep.c: Ditto.
6641 * infcmd.c (do_registers_info): Ditto.
6642 * hppa-tdep.c: Ditto.
6643 * rs6000-tdep.c: Ditto.
6644 * h8500-tdep.c: Ditto.
6645 * mips-tdep.c: Ditto.
6646 * h8300-tdep.c: Ditto.
6647 * z8k-tdep.c: Ditto.
6648
6649 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6650
6651 From Jimi X <jimix@watson.ibm.com>:
6652 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6653 64-bit SysV ABI.
6654
6655 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6656
6657 From Jimi X <jimix@watson.ibm.com>:
6658 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6659 bfd info.
6660
6661 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6662
6663 From Jimi X <jimix@watson.ibm.com>:
6664 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6665 register sets for these processor variants.
6666
6667 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6668
6669 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6670 registers which are allowed to fail to store.
6671 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6672 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6673 (ppc_cannot_store_register): FPSCR may not be storable.
6674 * regformats/reg-ppc.dat: Support FPSCR.
6675
6676 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6677
6678 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6679 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6680 Add fpscr as an invalid/unfetchable register.
6681 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6682 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6683 (fill_fpregset): Add support for register fpscr.
6684 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6685 (fill_gregset): Account for the fact that register ``mq'' might
6686 not exist.
6687 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6688 (registers_power): Add fpscr to register set at slot 71.
6689 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6690 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6691
6692 2002-04-11 Michael Snyder <msnyder@redhat.com>
6693
6694 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6695 * configure: Regenerate.
6696 * config.in: Regenerate.
6697 * acconfig.h: Add define for _SYSCALL32.
6698 * core-sol2.c: Remove #define _SYSCALL32.
6699 * solib-legacy.c: Remove #define _SYSCALL32.
6700
6701 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6702
6703 * stack.c (select_frame): Cleanup internal error message, do not
6704 use %p.
6705
6706 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6707
6708 * stack.c (select_frame): Check that selected_frame and the
6709 specified level are as expected.
6710 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6711 Update copyright.
6712 * frame.h (struct frame_info): Add field `level'. Update
6713 copyright.
6714 Work-in-progress PR gdb/464.
6715
6716 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6717
6718 * maint.c (maint_print_section_info): Rename print_section_info.
6719 (print_bfd_section_info, print_objfile_section_info): Update.
6720 * inferior.h (struct gdbarch): Add opaque declaration.
6721 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6722 * gdbarch.h: Regenerate.
6723
6724 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6725
6726 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6727 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6728 (kernel_u_size): Added.
6729 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6730 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6731
6732 2002-04-04 Jim Ingham <jingham@apple.com>
6733
6734 * valarith.c (find_size_for_pointer_math): New function, either returns
6735 the size for a pointer's target, returns 1 for void *, or errors for
6736 incomplete types.
6737 (value_add, value_sub): use find_size_for_pointer_math.
6738
6739 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6740
6741 * linux-low.c (linux_look_up_symbols): New hook.
6742 (linux_target_ops): Add linux_look_up_symbols.
6743 * remote-utils.c (decode_address): New function.
6744 (look_up_one_symbol): New function.
6745 * server.c (handle_query): Call target look_up_symbols hook.
6746 * server.h (look_up_one_symbol): Add prototype.
6747 * target.h (struct target_ops): Add look_up_symbols hook.
6748
6749 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6750
6751 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6752 * ChangeLog: Correct paths in last ChangeLog entry.
6753
6754 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6755
6756 * gdbserver/linux-low.h: Remove obsolete prototypes.
6757 (struct linux_target_ops): New.
6758 (extern the_low_target): New.
6759 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6760 (register_addr): Use the_low_target explicitly.
6761 (fetch_register): Likewise.
6762 (usr_fetch_inferior_registers): Likewise.
6763 (usr_store_inferior_registers): Likewise.
6764 * gdbserver/linux-arm-low.c (num_regs): Remove.
6765 (arm_num_regs): Define.
6766 (arm_regmap): Renamed from regmap, made static.
6767 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6768 made static.
6769 (arm_cannot_store_register): Renamed from cannot_store_register,
6770 made static.
6771 (the_low_target): New.
6772 * gdbserver/linux-i386-low.c (num_regs): Remove.
6773 (i386_num_regs): Define.
6774 (i386_regmap): Renamed from regmap, made static.
6775 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6776 made static.
6777 (i386_cannot_store_register): Renamed from cannot_store_register,
6778 made static.
6779 (the_low_target): New.
6780 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6781 (ia64_num_regs): Define.
6782 (ia64_regmap): Renamed from regmap, made static.
6783 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6784 made static.
6785 (ia64_cannot_store_register): Renamed from cannot_store_register,
6786 made static.
6787 (the_low_target): New.
6788 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6789 (m68k_num_regs): Define.
6790 (m68k_regmap): Renamed from regmap, made static.
6791 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6792 made static.
6793 (m68k_cannot_store_register): Renamed from cannot_store_register,
6794 made static.
6795 (the_low_target): New.
6796 * gdbserver/linux-mips-low.c (num_regs): Remove.
6797 (mips_num_regs): Define.
6798 (mips_regmap): Renamed from regmap, made static.
6799 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6800 made static.
6801 (mips_cannot_store_register): Renamed from cannot_store_register,
6802 made static.
6803 (the_low_target): New.
6804 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6805 (ppc_num_regs): Define.
6806 (ppc_regmap): Renamed from regmap, made static.
6807 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6808 made static.
6809 (ppc_cannot_store_register): Renamed from cannot_store_register,
6810 made static.
6811 (the_low_target): New.
6812 * gdbserver/linux-s390-low.c (num_regs): Remove.
6813 (s390_num_regs): Define.
6814 (s390_regmap): Renamed from regmap, made static.
6815 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6816 made static.
6817 (s390_cannot_store_register): Renamed from cannot_store_register,
6818 made static.
6819 (the_low_target): New.
6820 * gdbserver/linux-sh-low.c (num_regs): Remove.
6821 (sh_num_regs): Define.
6822 (sh_regmap): Renamed from regmap, made static.
6823 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6824 made static.
6825 (sh_cannot_store_register): Renamed from cannot_store_register,
6826 made static.
6827 (the_low_target): New.
6828 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6829 (the_low_target): New.
6830
6831 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6832
6833 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6834 override FP_REGNUM with frame->fp. Update copyright.
6835 * parse.c (num_std_regs, std_regs): Delete.
6836 (target_map_name_to_register): Do not search std_regs. Update
6837 function description.
6838 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6839 declarations. Update copyright.
6840 Fix PR gdb/251.
6841
6842 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6843
6844 * gdbserver/Makefile.in: Add stamp-h target.
6845 * gdbserver/configure.in: Create stamp-h.
6846 * gdbserver/configure: Regenerated.
6847
6848 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6849
6850 * gdbserver/inferiors.c: New file.
6851 * gdbserver/target.c: New file.
6852 * gdbserver/target.h: New file.
6853 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6854 dependencies.
6855 * gdbserver/linux-low.c (inferior_pid): New static variable,
6856 moved from server.c.
6857 (linux_create_inferior): Renamed from create_inferior.
6858 Call add_inferior. Return 0 on success instead of a PID.
6859 (linux_attach): Renamed from myattach.
6860 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6861 (linux_thread_alive): Renamed from mythread_alive.
6862 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6863 child dies.
6864 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6865 (regsets_store_inferior_registers): Correct error message.
6866 Add missing ``return 0''.
6867 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6868 (linux_store_registers): Renamed from store_inferior_registers.
6869 (linux_read_memory): Renamed from read_inferior_memory.
6870 (linux_write_memory): Renamed from write_inferior_memory.
6871 (linux_target_ops): New structure.
6872 (initialize_low): Call set_target_ops ().
6873 * gdbserver/remote-utils.c (unhexify): New function.
6874 (hexify): New function.
6875 (input_interrupt): Send signals to ``signal_pid''.
6876 * gdbserver/server.c (inferior_pid): Remove.
6877 (start_inferior): Update create_inferior call.
6878 (attach_inferior): Call add_inferior.
6879 (handle_query): New function.
6880 (main): Call handle_query for `q' packets.
6881 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6882 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6883
6884 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6885
6886 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6887 dependencies.
6888 * gdbserver/configure.in: Check for <string.h>
6889 * gdbserver/configure: Regenerate.
6890 * gdbserver/config.in: Regenerate.
6891 * gdbserver/gdbreplay.c: Include needed system headers.
6892 (remote_open): Remove strchr prototype.
6893 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6894 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6895 (supply_register_by_name): Likewise.
6896 (collect_register): Change buf argument to void *.
6897 (collect_register_by_name): Likewise.
6898 * gdbserver/regcache.h: Add missing prototypes.
6899 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6900 * gdbserver/server.c (handle_query): New function.
6901 (attached): New static variable, moved out of main.
6902 (main): Quiet longjmp clobber warnings.
6903 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6904 * gdbserver/utils.c (error): Remove NORETURN.
6905 (fatal): Likewise.
6906
6907 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6908
6909 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6910 after the last symbol in a block.
6911
6912 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6913
6914 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6915 is non zero as a found symbol.
6916
6917 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6918
6919 * findvar.c: Include "builtin-regs.h".
6920 (value_of_register): Call value_of_builtin_reg when applicable.
6921 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6922 (target_map_name_to_register): Call
6923 builtin_reg_map_name_to_regnum.
6924 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6925 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6926 (builtin_regs_h): Define.
6927 (builtin-regs.o): New target.
6928 (findvar.o): Add $(builtin_regs_h).
6929 * builtin-regs.c, builtin-regs.h: New files.
6930 * std-regs.c: New file.
6931 Partial fix for PR gdb/251.
6932
6933 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6934
6935 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6936 it's no longer required.
6937
6938 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6939
6940 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6941
6942 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6943
6944 From Jimi X <jimix@watson.ibm.com>:
6945 * rs6000-tdep.c (rs6000_software_single_step): Use
6946 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6947 and size. Use target_insert_breakpoint() and
6948 target_remove_breakpoint() to insert and remove breakpoints
6949 instead of explicit memory reads and writes.
6950
6951 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6952
6953 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6954 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6955 ELF_OBJECT_FORMAT ifdef.
6956
6957 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6958
6959 From Jimi X <jimix@watson.ibm.com>:
6960 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6961
6962 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6963
6964 From Jimi X <jimix@watson.ibm.com>:
6965 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6966 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6967
6968 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6969
6970 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6971 s/asprintf/xasprintf/.
6972 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6973
6974 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6975
6976 I believe Jeff Law denies responsability for this one:
6977 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6978 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6979 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6980 Work-around for PR gdb/366.
6981
6982 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6983
6984 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6985 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6986 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6987
6988 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6989
6990 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6991 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6992 information.
6993
6994 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6995
6996 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6997 maintainer.
6998
6999 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7000
7001 * README (Reporting Bugs in GDB): Document the bug web page as the
7002 prefered way of submitting bugs.
7003 Fix PR gdb/402.
7004
7005 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7006
7007 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7008 -1. Update comment.
7009 * gdbarch.h, gdbarch.c: Re-generate.
7010
7011 2002-04-07 Andreas Schwab <schwab@suse.de>
7012
7013 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7014 buffer to regcache_collect.
7015
7016 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7017
7018 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7019 * gdbarch.c, gdbarch.h: Re-generate.
7020
7021 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7022
7023 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7024 declaration. Fix -Werror.
7025
7026 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7027
7028 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7029 * gdbarch.c: Regenerate.
7030
7031 2002-04-05 Michael Snyder <msnyder@redhat.com>
7032
7033 * breakpoint.c (clear_command): Rewrite middle section to
7034 combine two loops with identical control conditions.
7035 Add a cleanup to eliminate a memory leak.
7036 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7037
7038 2002-04-05 H.J. Lu (hjl@gnu.org)
7039
7040 * solib-svr4.c (bkpt_names): Add "__start".
7041
7042 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7043
7044 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7045 as test for 64 bit target.
7046
7047 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7048
7049 * h8500-tdep.c (h8500_write_fp): Delete function.
7050 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7051 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7052 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7054 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7055 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7056 (s390_write_fp):
7057 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7058 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7059 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7060 (d10v_write_fp): Delete function.
7061 * inferior.h (write_fp, generic_target_write_fp): Delete
7062 declarations.
7063 * regcache.c (generic_target_write_fp): Delete function.
7064 (write_fp): Delete function.
7065 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7066 * gdbarch.h, gdbarch.c: Regenerate.
7067 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7068 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7069 (sparc64_write_fp): Delete declaration.
7070 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7071 (h8500_write_fp): Delete declaration.
7072
7073 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7074
7075 * sparc-tdep.c (sparc64_write_fp): Delete.
7076 (sparc_push_dummy_frame): Replace write_fp call with code to store
7077 the FP directly.
7078 (sparc_gdbarch_init): Do not initialize write_fp.
7079
7080 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7081
7082 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7083 clause.
7084
7085 2002-03-29 Jim Blandy <jimb@redhat.com>
7086
7087 * stack.c (get_selected_block): Add new argument `addr_in_block',
7088 used to return the exact code address we used to select the block,
7089 not just the block.
7090 * blockframe.c (get_frame_block, get_current_block): Same.
7091 * frame.h (get_frame_block, get_current_block,
7092 get_selected_block): Update declarations.
7093 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7094 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7095
7096 2002-04-05 Michael Snyder <msnyder@redhat.com>
7097
7098 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7099 warning message.
7100
7101 2002-04-05 J. Brobecker <brobecker@gnat.com>
7102
7103 * utils.c (xfullpath): New function.
7104 * defs.h (xfullpath): Add declaration.
7105 * source.c (openp): Use xfullpath in place of gdb_realpath to
7106 avoid resolving the basename part of filenames when the
7107 associated file is a symbolic link. This fixes a potential
7108 inconsistency between the filenames known to GDB and the
7109 filenames it prints in the annotations.
7110 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7111 to be able to match a filename with either the real filename, or
7112 the name of any symbolic link to this file.
7113 (lookup_partial_symtab): Ditto.
7114
7115 2002-04-04 Michael Snyder <msnyder@redhat.com>
7116
7117 * breakpoint.c: Add support for hardware breakpoints in overlays.
7118 (overlay_events_enabled): New state variable.
7119 (insert_breakpoints): Use overlay_events_enabled to decide
7120 whether to attempt to set a breakpoint at the overlay load addr.
7121 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7122 (remove_breakpoint): Use overlay_events_enabled to decide
7123 whether breakpoints need to be removed from overlay load addr.
7124 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7125 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7126 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7127 disable_overlay_breakpoints): Update overlay_events_enabled.
7128
7129 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7130
7131 * dwarf2read.c (struct function_range): New.
7132 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7133 (check_cu_functions): New.
7134 (read_file_scope): Initialize global function lists.
7135 Call dwarf_decode_line after processing children.
7136 (read_func_scope): Add to global function list.
7137 (dwarf_decode_lines): Call check_cu_functions everywhere
7138 record_line is called. Call record_line with a linenumber
7139 of 0 to mark sequence ends.
7140
7141 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7142
7143 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7144 change sync with glibc.
7145
7146 2002-04-03 Jim Blandy <jimb@redhat.com>
7147
7148 * configure.in: Call AC_C_INLINE.
7149 * configure: Regenerated.
7150
7151 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7152
7153 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7154 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7155
7156 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7157
7158 * NEWS: Mention gcore support on FreeBSD/i386.
7159
7160 * fbsd-proc.c: New file.
7161 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7162 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7163
7164 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7165 while statement.
7166
7167 2002-03-29 Jim Blandy <jimb@redhat.com>
7168
7169 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7170 unescaped newlines in string literals, but newer ones don't. So
7171 escape them.
7172
7173 2002-03-26 Michael Snyder <msnyder@redhat.com>
7174 Andrew Cagney <cagney@redhat.com>
7175
7176 * cli/cli-dump.c: New file. Dump memory to file,
7177 restore file to memory.
7178 * cli/cli-dump.h: New file.
7179 * Makefile.in: Add rules, dependencies for cli-dump.o.
7180 * NEWS: Mention new commands.
7181
7182 2002-03-28 Michael Snyder <msnyder@redhat.com>
7183
7184 * symfile.c (symbol_file_add): Move test for null symbols to later.
7185
7186 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7187
7188 From veksler at il.ibm.com:
7189 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7190 the xstrduped original path.
7191 Fix PR gdb/417.
7192
7193 2002-03-27 Michael Snyder <msnyder@redhat.com>
7194
7195 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7196 * infcmd.c (_initialize_infcmd): Ditto.
7197 * language.c (_initialize_language): Ditto.
7198 * symfile.c (_initialize_symfile): Ditto.
7199 * top.c (_init_main): Ditto.
7200 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7201
7202 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7203
7204 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7205 vector registers handling.
7206 (skip_prologue): Handle new AltiVec instructions. Fill in new
7207 fields of frame data.
7208 (frame_get_saved_regs): Fill in information for AltiVec registers.
7209
7210 2002-03-27 Jim Blandy <jimb@redhat.com>
7211
7212 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7213 a function; leave this macro here to invoke that function.
7214 (symbol_init_mangled_name): Declaration for that function.
7215 * symtab.c (symbol_init_mangled_name): New function.
7216
7217 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7218
7219 * valarith.c: Replace strerror with safe_strerror.
7220 * tracepoint.c: Ditto.
7221 * lin-lwp.c: Ditto.
7222 * go32-nat.c: Ditto.
7223 * inflow.c: Ditto.
7224 * gnu-nat.c: Ditto.
7225
7226 2002-03-27 Andreas Schwab <schwab@suse.de>
7227
7228 * event-top.c (command_line_handler): Remove useless if.
7229
7230 2002-03-27 Andreas Jaeger <aj@suse.de>
7231
7232 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7233 comment.
7234
7235 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7236
7237 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7238 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7239 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7240 (x86_64_linux_dr_get_status, supply_gregset),
7241 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7242 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7243 (x86_64_register_info_table): Add.
7244 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7245 (x86_64_register_raw_size, x86_64_register_virtual_type),
7246 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7247 general x86_64_register_info_table.
7248 (i386_gdbarch_init): gdbarch_register_bytes is now set
7249 dynamicaly during initialization.
7250 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7251 * gdbserver/linux-x86-64-low.c: Ditto.
7252
7253 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7254
7255 * gdbserver/server.c (main): Call target_signal_to_host_p
7256 and target_signal_to_host on signals received from the remote.
7257 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7258 target_signal_from_host on signals sent to the remote.
7259 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7260 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7261
7262 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7263
7264 * signals/signals.c: Include "server.h" in gdbserver build.
7265 (target_signal_from_name): Don't use STREQ.
7266 (_initialize_signals): Likewise. Don't include function in
7267 gdbserver build.
7268
7269 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7270
7271 * signals.c: Moved to...
7272 * signals/signals.c: Here.
7273 * Makefile (signals.o): Update.
7274
7275 2002-03-26 Jeff Law (law@redhat.com)
7276
7277 * somread.c (som_symtab_read): Remove some commented out code and
7278 updated related comments. Do not set the minimal symbol table to
7279 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7280 in a dynamic executable.
7281 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7282 where we are unable to find the minimal symbol for the given
7283 PC value.
7284
7285 2002-03-25 Jeff Law (law@redhat.com)
7286
7287 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7288
7289 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7290
7291 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7292
7293 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7294
7295 * command.h: Update copyright.
7296 (struct cmd_list_element): Replace definition with opaque
7297 declaration.
7298 (enum cmd_types): Document that it will eventually be moved to
7299 cli/cli-decode.h
7300 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7301 (MALLOCED_REPLACEMENT): Delete macro.
7302 * Makefile.in (cli_decode_h): Add $(command_h).
7303 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7304 * top.c: Include "cli/cli-decode.h".
7305 * completer.c: Include "cli/cli-decode.h".
7306 * maint.c: Include "cli/cli-decode.h".
7307 * cli/cli-decode.h: Include "command.h".
7308 (enum command_class): Delete.
7309 (enum cmd_types): Comment out.
7310 (enum cmd_auto_boolean): Delete.
7311 (enum var_types): Delete.
7312
7313 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7314
7315 * cli/cli-decode.c: Include "gdb_assert.h".
7316 (add_set_or_show_cmd): New static function.
7317 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7318 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7319 all fields, such as func, from the set command.
7320
7321 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7322
7323 * MAINTAINERS (sh-elf): Change warning flag to -w.
7324
7325 2002-03-23 Andrew Cagney <cagney@redhat.com>
7326
7327 * defs.h (error): Add printf format attribute.
7328 * thread-db.c (thread_from_lwp): Fix error format string.
7329 * stack.c (parse_frame_specification): Ditto.
7330 * cli/cli-decode.c (undef_cmd_error): Ditto.
7331 * scm-lang.c (scm_lookup_name): Ditto.
7332 * tracepoint.c (trace_error): Ditto.
7333 * remote-utils.c (usage): Ditto.
7334 * remote.c (compare_sections_command): Ditto.
7335 Fix PR gdb/328.
7336
7337 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7338
7339 * gdbtypes.c (append_composite_type_field): New function.
7340 (init_composite_type): New function.
7341 * gdbtypes.h (append_composite_type_field): Declare.
7342 (init_composite_type): Ditto.
7343
7344 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7345
7346 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7347 function.
7348 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7349 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7350 structure returning convention for SYSV ABI case, but not
7351 for GNU/Linux, FreeBSD, or NetBSD.
7352
7353 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7354
7355 * symtab.h (lookup_block_symbol): Add mangled_name argument
7356 to prototype.
7357
7358 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7359 with new mangled_name argument.
7360 * linespec.c (decode_line_1): Likewise.
7361 * valops (value_of_this): Likewise.
7362 * symtab.c (lookup_transparent_type): Likewise.
7363 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7364 (lookup_symbol): If we are given a mangled name, pass it down
7365 to lookup_symbol_aux.
7366 (lookup_block_symbol): If we are given a mangled name to check
7367 against, only return symbols which match it.
7368
7369 2002-03-22 Christopher Faylor <cgf@redhat.com>
7370
7371 * win32-nat.c (child_create_inferior): Check for proper shell to use
7372 here, in case the user changes it on the fly.
7373 (_initialize_inftarg): Remove shell path considerations.
7374
7375 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7376
7377 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7378 for gdbarch_max_register_raw_size and max_register_virtual_size.
7379 Adjust copyright year.
7380
7381 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7382
7383 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7384 in a function to cover the entire beginning of the function
7385 as well if it does not already.
7386
7387 2002-03-21 Tom Rix <trix@redhat.com>
7388
7389 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7390 (rs6000_ptrace64): Renamed from ptrace64.
7391
7392 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7393
7394 * gdbserver/remote-utils.c (remote_open): Don't call
7395 getprotobyname, we're all using TCP here so just use
7396 IPPROTO_TCP.
7397 * gdbserver/gdbreplay.c (remote_open): Ditto.
7398
7399 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7400
7401 * regcache.c (_initialize_regcache): No need to call
7402 build_regcache() at this time; it gets called whenever
7403 the gdbarch changes.
7404
7405 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7406
7407 * sparc-nat.c: Include sys/param.h where possible.
7408
7409 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7410
7411 Fix PR gdb/422.
7412 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7413 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7414 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7415 complex types.
7416 * stabsread.c (rs6000_builtin_type): Likewise.
7417 (read_sun_floating_type): Likewise.
7418
7419 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7420
7421 * stabsread.c (read_member_functions): Remove skip code for duplicate
7422 constructor/destructor methods. Use standard parsing for these
7423 methods and just do not chain them to the list of methods after
7424 parsing.
7425
7426 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7427
7428 * coffread.c: Remove redundant static declarations. Replace
7429 occurrences of `PTR' with `void *'.
7430 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7431 * top.h (quit_cover): Likewise.
7432 * defs.h (catch_errors): Likewise.
7433
7434 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7435
7436 * defs.h (XMALLOC): Define.
7437 * gdb-events.sh (XMALLOC): Delete macro.
7438 * gdb-events.c, gdb-events.h: Regenerate.
7439 * gdbarch.sh (XMALLOC): Delete macro.
7440 * gdbarch.c: Regenerate.
7441 * serial.c (XMALLOC): Delete macro.
7442 * ui-file.c (XMALLOC): Ditto.
7443 * ser-unix.h (XMALLOC): Ditto.
7444 * sh-tdep.c (XMALLOC): Ditto.
7445 * ui-out.c (XMALLOC): Ditto.
7446 * utils.c (XMALLOC): Ditto.
7447 * i386-tdep.c (XMALLOC): Ditto.
7448 * gdb-events.c (XMALLOC): Ditto.
7449 * d10v-tdep.c (XMALLOC): Ditto.
7450 * cli-out.c (XMALLOC): Ditto.
7451
7452 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7453 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7454 * ui-file.c, ui-out.c: Ditto.
7455
7456 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7457
7458 * command.h (struct cmd_list_element): Add field context.
7459 (set_cmd_context, get_cmd_context): Declare.
7460 * cli/cli-decode.h: Ditto.
7461 * cli/cli-decode.c (get_cmd_context): New function.
7462 (set_cmd_context): New function.
7463 (add_cmd): Initialize context.
7464 Part of fixing PR gdb/145 and PR gdb/146.
7465
7466 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7467
7468 * cli/cli-decode.c (cmd_type): New function.
7469 * command.h (cmd_type): Declare.
7470 * infrun.c (set_schedlock_func): Call function cmd_type.
7471 * kod.c (kod_set_os): Call cmd_type.
7472 * cris-tdep.c (cris_version_update): Use function cmd_type.
7473 (cris_mode_update, cris_abi_update): Ditto.
7474
7475 * command.h: (execute_cmd_post_hook): Declare.
7476 (execute_cmd_pre_hook): Declare.
7477 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7478 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7479 functions. Execute pre/post hook while ensuring that afterwords
7480 hook_in is cleared.
7481 * top.c (execute_command): Use execute_cmd_post_hook, and
7482 execute_cmd_pre_hook to execute pre/post commands.
7483 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7484 hook_stop_stub.
7485 (hook_stop_stub): Call execute_cmd_pre_hook.
7486
7487 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7488
7489 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7490 set'' and this leads to a core dump. Move xstrdup of
7491 operating_system to after check that it is not NULL.
7492
7493 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7494
7495 * kod.c (kod_set_os): Remove unnecessary check that
7496 ``command->type'' is set_cmd.
7497
7498 * valprint.c (set_input_radix): Use input_radix.
7499 (set_output_radix): Use output_radix.
7500 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7501 isn't reverted.
7502
7503 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7504
7505 * value.h (struct value): Delete field ``substring_addr''. Change
7506 aligner fields to force_doublest_align, force_longest_align,
7507 force_core_addr_align and force_pointer_aligh.
7508
7509 * value.h (struct value): Fix typo in above change.
7510
7511 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7512
7513 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7514 to fix internal_error from ``maintenance print architecture''.
7515
7516 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7517
7518 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7519 for gcc versions after gcc-2.8.1.
7520
7521 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7522
7523 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7524 for method resolution. Restore adjustment of ``this'' pointer after
7525 calling value_struct_elt, which was accidentally removed during the
7526 HP merge.
7527
7528 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7529
7530 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7531 value_of_register.
7532 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7533 get_saved_register.
7534 * value.h (value_of_register): Update.
7535
7536 2002-03-14 Richard Henderson <rth@redhat.com>
7537
7538 * configure.in: Detect declaration for canonicalize_file_name.
7539 * utils.c (canonicalize_file_name): Declare, if needed.
7540 (gdb_realpath): Prefer realpath if available and usable.
7541 * config.in, configure: Rebuild.
7542
7543 2002-03-14 Richard Henderson <rth@redhat.com>
7544
7545 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7546 a constant array bound.
7547
7548 * MAINTAINERS: Add myself to write-after-approval.
7549
7550 2002-03-14 Michael Snyder <msnyder@redhat.com>
7551
7552 * symfile.c (syms_from_objfile): Return immediately if no syms.
7553 (symbol_file_add): Return immediately if no syms.
7554 (find_sym_fns): Return immediately if no syms.
7555
7556 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7557
7558 * gdbserver/remote-util.c (remote_open): Print remote-side's
7559 IP address when remote debugging over the network.
7560
7561 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7562
7563 * config/sparc/fbsd.mh: Fix copyright.
7564 * config/sparc/fbsd.mt: Likewise.
7565
7566 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7567
7568 * MAINTAINERS: Fix typo in name of gdb warnings option.
7569 (x86-64): Fix formating so that this can be parsed by awk.
7570
7571 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7572
7573 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7574 * defs.h: Include "gdb/signals.h".
7575 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7576
7577 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7578
7579 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7580 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7581 from x86-64-tdep.h
7582
7583 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7584 Don Howard <dhoward@redhat.com>
7585
7586 * mips-tdep.c (ST0_FR): Define.
7587 (mips2_fp_compat): New function, temporarily disabled.
7588 (mips_read_fp_register_single): New function.
7589 (mips_read_fp_register_double): New function.
7590 (mips_print_register): Use them.
7591 (do_fp_register_row): Likewise.
7592
7593 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7594
7595 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7596 approval''.
7597
7598 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7599
7600 * stabsread.c (read_member_functions): Fix is_stub test for
7601 static member functions, improve comment.
7602
7603 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7604
7605 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7606 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7607 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7608 commands that set boolean values.
7609 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7610 (arm_rdi_resume): Always initialize PC.
7611 (arm_rdi_open): Don't use rslt as a boolean.
7612 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7613 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7614 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7615 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7616
7617 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7618
7619 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7620 * configure: Rebuilt.
7621
7622 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7623
7624 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7625 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7626
7627 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7628
7629 * cli/cli-decode.c (set_cmd_completer): New function.
7630 * command.h (set_cmd_completer): Declare.
7631 * cli/cli-decode.h (set_cmd_completer): Ditto.
7632
7633 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7634 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7635 * win32-nat.c (_initialize_inftarg): Ditto.
7636 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7637 * proc-api.c (_initialize_proc_api): Ditto.
7638 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7639 * source.c (_initialize_source): Ditto.
7640 * exec.c (_initialize_exec): Ditto.
7641 * solib.c (_initialize_solib): Ditto.
7642 * top.c (init_main): Ditto.
7643 * tracepoint.c (_initialize_tracepoint): Ditto.
7644 * symfile.c (_initialize_symfile): Ditto.
7645 * printcmd.c (_initialize_printcmd): Ditto.
7646 * infcmd.c (_initialize_infcmd): Ditto.
7647 * corefile.c (_initialize_core): Ditto.
7648
7649 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7650
7651 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7652
7653 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7654
7655 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7656
7657 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7658
7659 * NEWS: Update headings, 5.2 has branched.
7660
7661 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7662
7663 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7664 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7665 (register_addr, REGISTER_RAW_SIZE): Likewise.
7666 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7667 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7668
7669 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7670
7671 * MAINTAINERS (x86-64): Add myself.
7672 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7673 changed value_ptr -> struct value *
7674
7675 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7676
7677 * configure.host (sparc64-*-freebsd): Add.
7678 * configure.tgt: Likewise.
7679 * config/sparc/fbsd.mh: New file.
7680 * config/sparc/fbsd.mt: Likewise.
7681 * config/sparc/nm-fbsd.h: Likewise.
7682 * config/sparc/tm-fbsd.h: Likewise.
7683
7684 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7685
7686 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7687 regformats/reg-s390x.dat.
7688
7689 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7690
7691 * utils.c: Add FIXME explaining true/false problem.
7692
7693 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7694
7695 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7696
7697 2002-02-28 Michael Chastain <mec@shout.net>
7698
7699 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7700
7701 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7702
7703 * gdbserver/linux-s390-low.c: New file.
7704 * regformats/reg-s390.dat: New file.
7705 * regformats/reg-s390x.dat: New file.
7706 * gdbserver/configure.srv: Add S/390.
7707 * gdbserver/Makefile.in: Add S/390.
7708 * configure.tgt: Enable gdbserver for S/390.
7709
7710 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7711
7712 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7713 first line of the doc string for "info dos", except at the end of
7714 the sentence, since the short help stops at the first period.
7715
7716 2002-02-28 Jason Merrill <jason@redhat.com>
7717
7718 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7719
7720 2002-02-27 Fred Fish <fnf@redhat.com>
7721
7722 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7723 comment (dumy -> dummy).
7724
7725 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7726
7727 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7728
7729 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7730
7731 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7732
7733 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7734
7735 * gdbserver/acconfig.h: New file.
7736 * gdbserver/i387-fp.c: New file.
7737 * gdbserver/i387-fp.h: New file.
7738 * gdbserver/linux-x86-64.c: New file.
7739 * regformats/reg-x86-64.dat: New file.
7740 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7741 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7742 * gdbserver/configure.in: Add support for regsets.
7743 * gdbserver/config.in: Regenerate.
7744 * gdbserver/configure: Regenerate.
7745 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7746 * gdbserver/linux-low.h: New file.
7747 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7748 for regsets.
7749 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7750 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7751 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7752 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7753 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7754 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7755 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7756 "i387-fp.h". Add PTRACE_GETREGS and friends.
7757 * gdbserver/regcache.c (supply_register): New function.
7758 (supply_register_by_name): New function.
7759 (collect_register): New function.
7760 (collect_register_by_name): New function.
7761
7762 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7763
7764 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7765 (config.status): Add configure.srv dependency.
7766 (server_h): Add config.h dependency.
7767
7768 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7769
7770 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7771 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7772 * gdbserver/configure.srv: Change i386-*-linux* to use
7773 reg-i386-linux.o.
7774
7775 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7776
7777 * x86-64-tdep.c: Re-indent. Update copyright date.
7778
7779 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7780
7781 From Michal Ludvig <mludvig@suse.cz>:
7782 * x86-64-tdep.c (value.h): Delete.
7783 (gdb_assert.h): Include.
7784 (x86_64_register_convert_to_virtual,
7785 x86_64_register_convert_to_raw ): Add check which lets only
7786 floating-point values to be converted.
7787 (value_push): Delete.
7788 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7789 (i386_gdbarch_init): Number of register_bytes fixed.
7790
7791 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7792
7793 * MAINTAINERS: Add x86-64 target.
7794
7795 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7796
7797 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7798 * osfsolib.c (solib_map_sections): Ditto.
7799 * irix5-nat.c (solib_map_sections): Ditto.
7800 * corelow.c (gdb_check_format): Ditto.
7801 * symfile.c (symfile_bfd_open): Ditto.
7802 * solib.c (solib_map_sections): Ditto.
7803 Fix PR gdb/354.
7804
7805 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7806
7807 * remote.c (_initialize_remote): By default, disable ``e'' and
7808 ``E'' step out-of-range packets.
7809
7810 2002-02-26 Andreas Schwab <schwab@suse.de>
7811
7812 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7813 m68k_linux_frame_saved_pc.
7814 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7815 in_sigtramp.
7816 (SIGCONTEXT_PC_OFFSET): Remove.
7817 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7818 m68k_linux_sigtramp_saved_pc): New functions.
7819 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7820 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7821 (UCONTEXT_PC_OFFSET): Define.
7822 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7823 non-RT and RT signal trampolines.
7824
7825 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7826
7827 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7828 (TARGET_NBPG, STACK_END_ADDR): Delete
7829 (VARIABLES_INSIDE_BLOCK): Delete.
7830
7831 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7832
7833 * utils.c (perror_with_name): Make string parameter constant.
7834 (print_sys_errmsg): Ditto.
7835 (query): Ditto.
7836 * defs.h (perror_with_name): Update.
7837 (print_sys_errmsg): Update.
7838 (query): Update.
7839
7840 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7841
7842 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7843 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7844
7845 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7846
7847 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7848 if it already matches the current architecture from the exec file.
7849 Include arch-utils.h for gdbarch_info_init prototype.
7850 * Makefile.in (rs6000-nat.o): Update dependencies.
7851
7852 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7853
7854 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7855 list of exported variables.
7856
7857 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7858
7859 * gdbserver/configure.srv: New file.
7860 * gdbserver/configure.in: Use configure.srv instead
7861 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7862 from it.
7863 * gdbserver/configure: Regenerated.
7864 * gdbserver/terminal.h: New file.
7865 * gdbserver/Makefile.in: Update for configure changes. Remove
7866 more unneeded include paths.
7867
7868 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7869
7870 From wiz at danbala:
7871 * config/sparc/tm-sp64.h: Fix grammar and typos.
7872 Fix PR gdb/287.
7873
7874 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7875
7876 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7877 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7878 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7879 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7880 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7881 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7882 * s390-tdep.c: Ditto.
7883 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7884 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7885 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7886 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7887 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7888 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7889 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7890 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7891 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7892 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7893 Fix PR gdb/378.
7894
7895 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7896
7897 * lin-thread.c: Delete file.
7898 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7899 to gdb_proc_service.h.
7900 * configure: Re-generate.
7901
7902 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7903 * serial.c (serial_open): Delete check for "ocd".
7904 Fix PR gdb/349.
7905
7906 * Makefile.in (linux-thread.o): Delete target.
7907 * linux-thread.c: Delete file.
7908
7909 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7910 renamed SH files to be consistent.
7911
7912 * symtab.c (sort_search_symbols): Use xfree.
7913
7914 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7915
7916 * arm-linux-tdep.c (arm_linux_init_abi): Register
7917 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7918 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7919 definition with undef, since we don't want the sysvr4 definition.
7920 (SKIP_TRAMPOLINE_CODE): Likewise.
7921
7922 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7923
7924 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7925
7926 * configure.in: (AC_CHECK_FUNCS) Added test for
7927 canonicalize_file_name Regenerated.
7928 * config.in, configure: Regenerated.
7929 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7930 defined use canonicalize_file_name.
7931
7932 2002-02-23 Michael Chastain <mec@shout.net>
7933
7934 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7935
7936 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7937
7938 * README: Remove references to cygnus.com.
7939 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7940 dot com'' form. Remove references to cygnus.com and sourceware.
7941
7942 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7943
7944 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7945 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7946 1003.1-2001 no longer allows "head -1".
7947 * gdb/Makefile.in (version.c): Likewise.
7948 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7949 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7950 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7951
7952 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7953
7954 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7955 * command.h (cmd_cfunc_eq): Declare.
7956 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7957
7958 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7959 ``struct cmd_list_element *''.
7960 * cli/cli-cmds.c (is_complete_command): Update. Use
7961 cmd_cfunc_eq.
7962 * top.c (execute_command): Pass the command to
7963 is_complete_command.
7964 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7965
7966 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7967
7968 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7969 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7970 architecture defines.
7971 * s390-tdep.c (s390_gdbarch_init): Likewise.
7972
7973 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7974
7975 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7976 (arm_linux_push_arguments): Likewise.
7977 (arm_linux_init_abi): Register them. Also register linux-specific
7978 call_dummy_words.
7979 (find_minsym_and_objfile): Use strcmp, not STREQ.
7980 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7981 (arm_linux_call_dummy_words): Delete declaration.
7982 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7983 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7984 declarations.
7985 (LOWEST_PC): Delete.
7986
7987 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7988
7989 * maint.c (print_section_info): Do not prepend `0x' to filepos
7990 output, it will be handled by local_hex_string_custom.
7991
7992 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7993
7994 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7995 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7996 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7997
7998 2002-02-22 Jim Blandy <jimb@redhat.com>
7999
8000 Indicate that the bcache functions don't change the strings
8001 they're passed.
8002 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8003 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8004
8005 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8006
8007 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8008
8009 2002-02-21 Christopher Faylor <cgf@redhat.com>
8010
8011 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8012 find the complete path to a loaded DLL.
8013
8014 2002-02-21 Fred Fish <fnf@redhat.com>
8015
8016 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8017 that marks the end of the range of a function, enter a line number
8018 entry that has a line number of zero and a PC offset that matches
8019 the end of the function. This starts a range of PC's for which no
8020 line number information is known.
8021 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8022 PC's for which no line number info is found (line number is zero)
8023 then we didn't find any valid line information.
8024 * symtab.h: Document use of zero line number entry.
8025
8026 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8027
8028 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8029 (have_ptrace_getvrregs): Define for run time checks.
8030 (gdb_vrregset_t): New type for Altivec register handling.
8031 (fetch_register, store_register): Fetch/store altivec register
8032 when needed.
8033 (fetch_altivec_register, store_altivec_register): New functions.
8034 (supply_vrregset, fill_vrregset): New functions.
8035 (fetch_altivec_registers, store_altivec_registers): New functions.
8036 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8037 registers as well.
8038
8039 2002-02-21 Jiri Smid <smid@suse.cz>
8040
8041 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8042
8043 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8044
8045 * Makefile.in (armnbsd-nat.o): Update dependencies.
8046 * armnbsd-nat.c (supply_gregset): New function. Common code to
8047 supply the integer register set.
8048 (supply_fparegset): New function. Similar for FPA registers.
8049 (fetch_regs, fetch_fp_regs): Use them.
8050 (fetch_core_registers): Likewise.
8051 (fetch_elfcore_registers): New function.
8052 (arm_netbsd_elfcore_fns): New core-file type specification.
8053 (_initialize_arm_netbsd_nat): Register it.
8054
8055 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8056
8057 * armnbsd-nat.c: Include gdbcore.h.
8058 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8059 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8060 'void' to declaration, to shut up ARI.
8061 (fetch_core_registers): Make static. Rewrite using supply_register.
8062 (arm_netbsd_core_fns): New core-file type specification.
8063 (_initialize_arm_netbsd_nat): New function.
8064
8065 2002-02-21 Christopher Faylor <cgf@redhat.com>
8066
8067 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8068 value.
8069
8070 2002-02-20 Christopher Faylor <cgf@redhat.com>
8071
8072 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8073 fails.
8074
8075 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8076
8077 * jv-exp.y (parse_number): Change type of implicit longs
8078 to builtin_type_uint64.
8079
8080 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8081
8082 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8083 to be an integer instead of a `union wait'.
8084
8085 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8086
8087 * mips-linux-nat.c: Call the operating system GNU/Linux.
8088 * mips-linux-tdep.c: Likewise.
8089 * mips-tdep.c: Likewise.
8090
8091 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8092
8093 Fix PR gdb/265.
8094 * jv-exp.y (parse_number): Handle 64-bit integers.
8095
8096 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8097
8098 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8099 AC_STDC_HEADERS to AC_HEADER_STDC.
8100 * gdbserver/configure: Regenerated.
8101
8102 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8103
8104 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8105 is defined.
8106 * sparc-tdep.c (get_longjmp_target): Likewise.
8107
8108 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8109
8110 * News: Add news about ARM and Multi-arch. Mention the new target
8111 arm*-*-netbsd*.
8112
8113 2002-02-19 Jim Blandy <jimb@redhat.com>
8114
8115 * stabsread.c (error_type_complaint): Improve error message.
8116
8117 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8118
8119 * gdbserver/README: Update documentation.
8120 * gdbserver/configure.in: Update configury to match documentation.
8121 * gdbserver/Makefile.in: Likewise.
8122 * gdbserver/configure: Regenerated.
8123 * gdbserver/aclocal.m4: New file, generated by aclocal.
8124 * gdbserver/config.in: New file, generated by autoheader.
8125
8126 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8127
8128 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8129 armnbsd-nat.c.
8130
8131 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8132
8133 * arm-tdep.h (enum arm_float_model): New enum.
8134 (struct gdbarch_tdep): Add fp_model.
8135 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8136 up floating-point conversions until we know the floating-point model
8137 in use by the inferior. Don't complain about being unable to
8138 determine the ABI of the inferior when we don't have one.
8139 (arm_extract_return_value): Support different floating-point models.
8140 (arm_store_return_value): Likewise.
8141 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8142 ARM_FLOAT_SOFT.
8143 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8144
8145 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8146
8147 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8148 of ``current_gdbarch''.
8149
8150 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8151
8152 * armnbsd-nat.c : ANSIfy all function declarations.
8153 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8154 (fetch_inferior_registers): Re-implement in terms of above.
8155 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8156 (store_inferior_registers): Re-implement in terms of above.
8157
8158 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8159
8160 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8161 kernel.
8162 * arm-linux-tdep.c: Likewise.
8163 * config/arm/tm-linux.h: Likewise.
8164
8165 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8166
8167 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8168 * config/arm/nbsd.mt (TM_FILE): Delete.
8169 * config/arm/tm-nbsd.h: Delete.
8170
8171 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8172
8173 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8174 Initialize CALL_DUMMY_LENGTH.
8175
8176 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8177
8178 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8179 function.
8180 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8181 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8182 defines one thing and that is incorrect for this port.
8183 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8184
8185 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8186
8187 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8188
8189 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8190
8191 * win32-nat.c (display_selector): New function. Displays information
8192 about the information returned by GetThreadSelectorEntry API function.
8193 (display_selectors): New function. Displays the infomation of
8194 the selector given as argument, or of CS, DS ans FS selectors
8195 if no argument is given.
8196 ( _initialize_inftarg): Add "w32" as info prefix command.
8197 Add "info w32 selector" as command calling display_selectors.
8198
8199 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8200
8201 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8202 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8203 if not defined.
8204
8205 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8206
8207 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8208
8209 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8210
8211 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8212 (arm_fix_call_dummy): Call it.
8213 (arm_call_dummy_breakpoint_offset): Delete.
8214 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8215 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8216
8217 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8218
8219 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8220 Default to func_frame_chain_valid.
8221 * gdbarch.h, gdbarch.c: Re-generate.
8222 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8223
8224 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8225
8226 * ppc-linux-nat.c: Update copyright.
8227 (fetch_register, store_register): Add tid parameter, don't compute
8228 tid here.
8229 (fetch_ppc_registers, store_ppc_registers): Add tid
8230 parameter. Pass it along to callees.
8231 (fetch_inferior_registers, store_inferior_registers): Compute tid
8232 here, and pass it to calleed functions.
8233 (fill_gregset, supply_fpregset): Clean up formatting.
8234
8235 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8236
8237 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8238 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8239
8240 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8241
8242 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8243 * gdbarch.c gdbarch.h: Regenerate.
8244 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8245 function.
8246 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8247 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8248 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8249
8250 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8251 * arm-tdep.c (arm_get_longjmp_target): New function.
8252 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8253 this to a positive value register arm_get_longjmp_target as the
8254 longjmp handler.
8255 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8256 (arm_linux_init_abi): Set up longjmp description in tdep.
8257 * armnbsd-nat.c (get_longjmp_target): Delete.
8258 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8259 description in tdep.
8260 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8261 (get_longjmp_target): Delete declaration.
8262 (GET_LONGJMP_TARGET): Delete.
8263 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8264 (GET_LONGJMP_TARGET): Delete.
8265
8266 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8267
8268 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8269 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8270 of ``current_gdbarch''.
8271
8272 2002-02-17 Tom Tromey <tromey@redhat.com>
8273
8274 * cli/cli-cmds.c (compare_strings): New function.
8275 (complete_command): Only print each unique item once.
8276 * completer.h (complete_line): Declare.
8277 * completer.c (complete_line): New function.
8278 (line_completion_function): Use it.
8279
8280 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8281
8282 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8283 * gdbarch.h, gdbarch.c: Re-generate.
8284
8285 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8288
8289 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8290
8291 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8292 * valops.c (value_arg_coerce): Don't take the address of a reference
8293 to convert an argument to a reference.
8294
8295 2002-02-15 Christopher Faylor <cgf@redhat.com>
8296
8297 * win32-nat.c (get_image_name): New function.
8298 (handle_load_dll): Use get_image_name function.
8299 (get_child_debug_event): Avoid registering debug events until possibly
8300 execed process is started.
8301 (child_create_inferior): Allow invocation via shell so that command
8302 line redirection, etc. works ok.
8303 (_initialize_inftarg): Add new command: "set shell" to control whether
8304 a shell is used to start a process.
8305
8306 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8307
8308 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8309 instead of find_register_by_number.
8310 (cannot_store_register): Likewise.
8311
8312 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8313
8314 * dwarf2read.c: Replace fprintf (stderr, ...) by
8315 fprintf_unfiltered (gdb_stderr, ...).
8316
8317 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8318
8319 * gdbserver/gdbserver.1: Document --attach.
8320
8321 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8322
8323 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8324 descriptions.
8325 * arm-tdep.c (arm_default_arm_le_breakpoint)
8326 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8327 (arm_default_thumb_be_breakpoint): New. Initialize them from
8328 traditional breakpoint defines.
8329 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8330 (arm_gdbarch_init): Initialize new breakpoint variables.
8331 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8332 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8333 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8334 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8335 code out to ...
8336 (arm_netbsd_init_abi_common): ... here; new function.
8337 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8338 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8339 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8340 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8341
8342 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * arm-tdep.h (enum arm_abi): New enum.
8345 (struct gdbarch_tdep): New structure.
8346 (LOWEST_PC): Provide a default.
8347 (arm_gdbarch_register_os_abi): Declare new function.
8348 * arm-tdep.c (arm_abi_names): New array.
8349 (process_note_abi_tag_sections): New function.
8350 (get_elfosabi): New function.
8351 (arm_gdbarch_register_os_abi): New function.
8352 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8353 support for that ABI has been built in, then call the appropriate
8354 configuration routine. Use gdbarch_num_regs() to get the number
8355 of registers.
8356 (arm_dump_tdep): New function.
8357 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8358 place-holder functions.
8359 (_initialize_arm_tdep): Register them.
8360 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8361
8362 * armnbsd-tdep.c: New file.
8363 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8364 * config/arm/nbsd.mt (TDEPFILES): Add it.
8365 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8366
8367 * armnbsd-nat.c: Include regcache.h.
8368 * Makefile.in (armnbsd-nat.o): Update dependency list.
8369
8370 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8371
8372 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8373
8374 * gdbserver/Makefile.in: Fix typos in target rules.
8375
8376 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8377
8378 Fix part of PR gdb/267.
8379 * linespec.c (find_methods): Handle constructors specially for now.
8380
8381 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8382
8383 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8384 handling.
8385 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8386 standard_coerce_float_to_double().
8387
8388 2002-02-14 Christopher Faylor <cgf@redhat.com>
8389
8390 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8391 GDBINIT_FILENAME.
8392
8393 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8394
8395 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8396 find_variant_by_name, because it confuses the multiarch
8397 framework. Return NULL if there isn't an architecture with the
8398 user supplied name, instead of forcing a different one without
8399 recording the change with the multiarch machinery.
8400 (find_variant_by_name): Delete.
8401
8402 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8403
8404 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8405 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8406
8407 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8408
8409 * stack.c (print_frame_info_base): When calling
8410 print_frame_info_listing_hook, set current_source_symtab.
8411
8412 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8413
8414 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8415 and remove unused $(INCLUDE_DIR).
8416 Add regcache.c to OBS.
8417 Add generated register protocol files to clean target.
8418 Update dependencies for new objects, obsolete old target code.
8419
8420 * gdbserver/linux-low.c: Remove all platform-specific code to
8421 new files. Remove various dead code. Update to use regcache
8422 functionality.
8423 * gdbserver/remote-utils.c (fromhex): Add return statement
8424 to quiet warning.
8425 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8426 constant.
8427 (input_interrupt): Add integer parameter to match prototype
8428 of a signal handler.
8429 (outreg): Use register_data ().
8430 (prepare_resume_reply): Use gdbserver_expedite_regs.
8431 * gdbserver/server.c (main): Dynamically allocate own_buf because
8432 PBUFSIZ is no longer constant. Use registers_to_string () and
8433 registers_from_string ().
8434 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8435 for error (), fatal (), and warning (). Update definition of
8436 PBUFSIZ to use regcache functionality. Add include guard.
8437 * gdbserver/utils.c (fatal): Add missing ``const''.
8438 (warning): New function.
8439
8440 * regformats/regdat.sh: Include "regcache.h" in generated files.
8441 Provide init_registers () function.
8442 * regformats/regdef.h: Add prototype for set_register_cache ().
8443 Add include guard.
8444
8445 * gdbserver/linux-arm-low.c: New file.
8446 * gdbserver/linux-i386-low.c: New file.
8447 * gdbserver/linux-ia64-low.c: New file.
8448 * gdbserver/linux-m68k-low.c: New file.
8449 * gdbserver/linux-mips-low.c: New file.
8450 * gdbserver/linux-ppc-low.c: New file.
8451 * gdbserver/linux-sh-low.c: New file.
8452
8453 * gdbserver/regcache.c: New file.
8454 * gdbserver/regcache.h: New file.
8455
8456 * gdbserver/low-linux.c: Removed obsolete file.
8457
8458 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8459
8460 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8461 * config/i386/linux.mt: Likewise.
8462 * config/ia64/linux.mt: Likewise.
8463 * config/m68k/linux.mh: Likewise.
8464 * config/powerpc/linux.mh: Likewise.
8465 * config/mips/linux.mt: Likewise.
8466
8467 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8468
8469 * config/i386/i386lynx.mh: Mark gdbserver variables
8470 as (currently) obsolete for this target.
8471 * config/i386/nbsd.mt: Likewise.
8472 * config/i386/nbsdelf.mt: Likewise.
8473 * config/m32r/m32r.mt: Likewise.
8474 * config/m68k/m68klynx.mh: Likewise.
8475 * config/m68k/nbsd.mt: Likewise.
8476 * config/m68k/sun3os4.mh: Likewise.
8477 * config/mips/vr5000.mt: Likewise.
8478 * config/ns32k/nbsd.mt: Likewise.
8479 * config/pa/hppabsd.mh: Likewise.
8480 * config/pa/hppaosf.mh: Likewise.
8481 * config/powerpc/nbsd.mt: Likewise.
8482 * config/rs6000/rs6000lynx.mh: Likewise.
8483 * config/s390/s390.mt: Likewise.
8484 * config/s390/s390x.mt: Likewise.
8485 * config/sparc/sparclynx.mh: Likewise.
8486 * config/sparc/sun4os4.mh: Likewise.
8487 * config/i386/x86-64linux.mt: Likewise.
8488 * config/sparc/linux.mh: Likewise.
8489
8490 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8491
8492 * configure.tgt: Configure gdbserver only for known working
8493 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8494 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8495 SUBDIRS if it is configured. Update comment for ${nativefile}.
8496 * configure: Regenerated.
8497
8498 2002-02-13 Michael Snyder <msnyder@redhat.com>
8499
8500 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8501
8502 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8503 (default_gcore_mach): Just return 0, work around a problem in bfd.
8504 (default_gcore_target): OK to return NULL if exec_bfd is null.
8505 (make_mem_sec): Use a cast, avoid a warning.
8506
8507 * procfs.c (find_memory_regions_callback): Use a cast instead of
8508 calling host_pointer_to_address (which complains if
8509 sizeof (host pointer) != sizeof (target pointer)).
8510 (procfs_make_note_section): Avoid overflow in psargs string.
8511
8512 * procfs.c (procfs_make_note_section): Make the default
8513 implementation return an error.
8514
8515 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8516
8517 * procfs.c (procfs_make_note_section): Provide a default definition
8518 (for alpha-dec-osf4.0f). Fix typos.
8519
8520 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8521
8522 * linux-proc.c: Add include of regcache.h.
8523 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8524
8525 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8526
8527 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8528 * memattr.c (create_mem_region): Disallow useless empty region.
8529 Regions are half-open intervals, so allow [A..B) [B..C) as
8530 non-overlapping.
8531
8532 2002-02-13 Michael Chastain <mec@shout.net>
8533
8534 * defs.h: Kill CONST_PTR.
8535 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8536 * c-lang.c (c_builtin_types): Likewise.
8537 * ch-lang.c (ch_builtin_types): Likewise.
8538 * f-lang.c (f_builtin_types): Likewise.
8539 * language.c (unknown_builtin_types): Likewise.
8540 * m2-lang.c (m2_builtin_types): Likewise.
8541 * p-lang.c (pascal_builtin_types): Likewise.
8542 * scm-lang.c (c_builtin_types): Likewise.
8543
8544 2002-02-13 Keith Seitz <keiths@redhat.com>
8545
8546 * arm-tdep.h (arm_get_next_pc): Add declaration.
8547
8548 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8549
8550 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8551 with other related struct-returning functions.
8552 (arm_extract_struct_value_address): New function.
8553 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8554 initialize float_format, double_format and long_double_format as
8555 appropriate to the endianness of the target.
8556 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8557 (arm_use_struct_convention): Delete declaration.
8558 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8559
8560 2002-02-13 Keith Seitz <keiths@redhat.com>
8561
8562 * defs.h (core_addr_to_string_nz): New function.
8563
8564 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8565
8566 Apply missing bits of 2002-01-15 patch.
8567 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8568 (fill_fpregset): Use i387_fill_fsave.
8569
8570 2002-02-12 Keith Seitz <keiths@redhat.com>
8571
8572 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8573 (core_addr_to_string_nz): New function.
8574
8575 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8576
8577 * arm-linux-nat.c: Really include arm-tdep.h.
8578 * config/arm/tm-linux.h (struct type, struct value): Declare.
8579
8580 2002-02-11 Michael Snyder <msnyder@redhat.com>
8581
8582 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8583 (gcore section): Ifdef for Solaris and Unixware only.
8584 (procfs_do_thread_registers): Unixware needs one lwpstatus
8585 per thread (not one prstatus or pstatus).
8586 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8587 not over all gdb threads. For unixware, call elfcore_write_pstatus
8588 once before iterating over threads.
8589
8590 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8591
8592 * arm-tdep.h: New file.
8593 * arm-tdep.c: Include arm-tdep.h.
8594 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8595 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8596 (arm_print_float_info, arm_register_type, convert_to_extended)
8597 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8598 (arm_extract_return_value, arm_register_name): Make static.
8599 (arm_software_single_step): Similarly. Fix types in declaration.
8600 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8601 (arm_store_return_value, arm_store_struct_return): New functions.
8602 (arm_gdbarch_init): Register the above functions. Also register
8603 call_dummy_start_offset, sizeof_call_dummy_words,
8604 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8605 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8606 max_register_virtual_size, register_size. Set up
8607 prologue_cache.saved_regs here, rather than ...
8608 (_initialize_arm_tdep): ... here.
8609 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8610 declarations.
8611 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8612 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8613 (arm_print_float_info, arm_register_type, convert_to_extended)
8614 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8615 (arm_extract_return_value, arm_register_name): Delete declarations.
8616 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8617 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8618 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8619 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8620 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8621 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8622 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8623 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8624 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8625 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8626 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8627 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8628 interface.
8629 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8630 * remote-rdi.c remote-rdp.c: Likewise.
8631 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8632 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8633 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8634 definition.
8635
8636 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8637 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8638 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8639 from non-ARM_ prefixed definitions.
8640 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8641 all uses of above.
8642 * remote-rdi.c remote-rdp.c: Likewise.
8643 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8644
8645 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8646
8647 * arm-tdep.c (arm_frameless_function_invocation)
8648 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8649 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8650 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8651 (arm_pop_frame, arm_get_next_pc): Make static.
8652 (arm_gdbarch_init): Register above in gdbarch structure.
8653 (arm_read_fp): Renamed from arm_target_read_fp.
8654 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8655 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8656 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8657 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8658 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8659 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8660 (arm_pc_is_thumb_dummy): Delete declarations.
8661 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8662 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8663 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8664 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8665
8666 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * symtab.c (compare_search_syms): New function.
8669 (sort_search_symbols): New function.
8670 (search_symbols): Sort symbols after searching rather than
8671 before.
8672
8673 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8674
8675 * NEWS: Linux -> GNU/Linux.
8676
8677 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8678
8679 * gdbarch.sh: For for level one methods, disallow a definition
8680 when partially multi-arched. Add comments explaining rationale.
8681 * gdbarch.h: Re-generate.
8682
8683 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8684
8685 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8686 multi-arch partial.
8687
8688 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8689
8690 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8691 field. Use diff -u.
8692 * gdbarch.c: Re-generate.
8693
8694 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8695
8696 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8697 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8698 partial.
8699
8700 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8701
8702 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8703 multi-arch partial.
8704 (PUSH_ARGUMENTS): Switch to using predefault.
8705 * gdbarch.c: Regenerate.
8706
8707 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8708
8709 * valops.c (PUSH_ARGUMENTS): Delete definition.
8710 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8711 partial. Default to default_push_arguments.
8712 * gdbarch.h, gdbarch.c: Regenerate.
8713
8714 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8715
8716 * defs.h (throw_exception): Rename return_to_top_level. Update
8717 comments.
8718 * utils.c (error_stream, internal_verror, quit): Ditto.
8719 * top.c (throw_exception, catcher): Ditto.
8720 * sparclet-rom.c (sparclet_load): Ditto.
8721 * remote.c (interrupt_query, minitelnet): Ditto.
8722 * remote-sds.c (interrupt_query): Ditto.
8723 * remote-mips.c (mips_error, mips_kill): Ditto.
8724 * ocd.c (interrupt_query): Ditto.
8725 * monitor.c (monitor_interrupt_query): Ditto.
8726 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8727 * target.h: Update comment.
8728
8729 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8730
8731 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8732
8733 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8734 default_double_format.
8735 * gdbarch.h, gdbarch.c: Re-generate.
8736 * findvar.c (floatformat_unknown): Delete variable definition.
8737 * doublest.h (floatformat_unknown): Delete variable declaration.
8738
8739 2002-02-09 Jim Blandy <jimb@redhat.com>
8740
8741 * stabsread.c (read_type): Add code to parse Sun's syntax for
8742 prototyped function types.
8743
8744 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8745
8746 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8747 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8748
8749 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8750
8751 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8752 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8753 now _initialize_xcoffsolib gets called again and overrides the
8754 commands from solib.c in a native configuration.
8755
8756 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8757
8758 * doublest.c (store_typed_floating): Don't try to return a value.
8759 Fixes PR gdb/290.
8760
8761 2002-02-08 Jim Blandy <jimb@redhat.com>
8762
8763 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8764 is prototyped and has no arguments, print its argument list as
8765 `(void)'.
8766
8767 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8768
8769 * MAINTAINERS (write-after-approval): Add myself.
8770 (paper-trail): I've escaped!
8771
8772 2002-02-08 Christopher Faylor <cgf@redhat.com>
8773
8774 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8775 changes.
8776 (_initialize_check_for_gdb_ini): Ditto.
8777
8778 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8779
8780 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8781 xaprintf -> xasprintf.
8782
8783 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8784
8785 * win32-nat.c: Remove use of printf and sprintf functions.
8786
8787 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8788
8789 * arm-tdep.c (arm_frame_chain_valid): Make static.
8790 (arm_push_arguments): Likewise.
8791 (arm_gdbarch_init): New function.
8792 (_initialize_arm_tdep): Call it.
8793 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8794 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8795 (FRAME_CHAIN_VALID): Delete.
8796 (arm_frame_chain_valid): Delete declaration.
8797 (PUSH_ARGUMENTS): Delete.
8798 (arm_push_arguments): Delete declaration.
8799 (CALL_DUMMY_P): Delete.
8800
8801 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8802 Corinna Vinschen <vinschen@redhat.com>
8803
8804 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8805 on builtin float types.
8806
8807 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8808
8809 * utils.c: Include <curses.h> before "bfd.h".
8810 * tui/tui-hooks.c: Likewise.
8811 * tui/tui.c: Likewise.
8812 * tui/tuiCommand.c: Likewise.
8813 * tui/tuiData.c: Likewise.
8814 * tui/tuiDataWin.c: Likewise.
8815 * tui/tuiDisassem.c: Likewise.
8816 * tui/tuiGeneralWin.c: Likewise.
8817 * tui/tuiIO.c: Likewise.
8818 * tui/tuiLayout.c: Likewise.
8819 * tui/tuiRegs.c: Likewise.
8820 * tui/tuiSource.c: Likewise.
8821 * tui/tuiSourceWin.c: Likewise.
8822 * tui/tuiStack.c: Likewise.
8823 * tui/tuiWin.c: Likewise.
8824
8825 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8826
8827 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8828 to include space for pseudoregs as well. Update loops accordingly.
8829 (sh_fp_frame_init_saved_regs): Ditto.
8830 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8831
8832 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8833
8834 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8835 Add Richard Earnshaw to Arm maintainers.
8836
8837 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8838
8839 * defs.h (warning_begin): Delete declaration.
8840
8841 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8842 Delete macro.
8843
8844 2002-02-07 Michael Snyder <msnyder@redhat.com>
8845
8846 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8847 Logic bug, remove misplaced else.
8848
8849 2002-02-07 Klee Dienes <klee@apple.com>
8850
8851 * fork-inferior.c (fork_inferior): Add '!' to the list of
8852 characters that need to be quoted when building a string for the
8853 shell. Quote '!' specifically with a backslash, since CSH chokes
8854 when trying to evaluate "str!str".
8855
8856 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8857
8858 * rdi-share/host.h: Only provide a typedef for bool if it is not
8859 defined.
8860
8861 2002-02-04 Michael Snyder <msnyder@redhat.com>
8862
8863 * breakpoint.h (enum bptype): Add new overlay event bp type.
8864 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8865
8866 * breakpoint.c (create_internal_breakpoint): New function.
8867 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8868 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8869 (create_thread_event_breakpoint): Ditto.
8870 (create_solib_event_breakpoint): Ditto.
8871 (create_overlay_event_breakpoint): New function.
8872 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8873 (update_breakpoints_after_exec): Delete and re-initialize
8874 overlay event breakpoints after an exec. Add FIXME comment
8875 about longjmp breakpoint.
8876 (print_it_typical): Ignore overlay event breakpoints.
8877 (print_one_breakpoint): Ditto.
8878 (mention): Ditto.
8879 (bpstat_what): Do not stop for overlay event breakpoints.
8880 (delete_breakpoint): Don't delete overlay event breakpoints.
8881 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8882 (breakpoint_re_set): Re-create overlay event breakpoint.
8883
8884 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8885 (overlay_manual_command): Disable overlay breakpoints.
8886 (overlay_off_command): Disable overlay breakpoints.
8887
8888 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8889
8890 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8891 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8892 to here from config/tm-arm.h.
8893 (coff_sym_is_thumb): Make static.
8894 (arm_elf_make_msymbol_special): New function.
8895 (arm_coff_make_msymbol_special): New function.
8896 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8897 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8898 (coff_sym_is_thumb): Delete declaration.
8899 (arm_elf_make_msymbol_special): Declare.
8900 (arm_coff_make_msymbol_special): Declare.
8901 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8902 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8903
8904 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8905
8906 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8907
8908 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8909
8910 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8911 * gdbarch.c gdbarch.h: Regenerate.
8912 * arch-utils.c (default_print_float_info): New function.
8913 * arch-utils.h (default_print_float_info): Prototype it.
8914 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8915 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8916 (PRINT_FLOAT_INFO): Document it.
8917
8918 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8919 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8920 (PRINT_FLOAT_INFO): Define.
8921
8922 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8923
8924 * win32-nat.c (_initialize_check_for_gdb_ini):
8925 Add typecast to sprintf argument to suppress a warning.
8926
8927 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8928
8929 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8930 to allow easier handling of pass state.
8931 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8932 that gives exception name and address.
8933 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8934 and set last_sig value to ourstatus->value.sig. Some missing
8935 exceptions added.
8936 (child_continue): Correctly report continue_status.
8937 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8938 TARGET_SIGNAL_0 (new default value).
8939 (child_resume): consider sig argument passed to decide if
8940 the exception should be passed to debuggee or not.
8941
8942 2002-02-05 Michael Snyder <msnyder@redhat.com>
8943
8944 * regcache.c (fetch_register): Call target_fetch_register
8945 only if we don't call FETCH_PSEUDO_REGISTER.
8946 (store_register): Call target_store_register only if we
8947 don't call STORE_PSEUDO_REGISTER.
8948
8949 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8950
8951 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8952 ELF_MAKE_MSYMBOL_SPECIAL.
8953 * gdbarch.c, gdbarch.h: Regenerate.
8954 * arch-utils.c (default_make_msymbol_special): New function.
8955 * arch-utils.h (default_make_msymbol_special): Export.
8956 * elfread.c (elf_symtab_read): Compile use of
8957 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8958 multiarched.
8959 * coffread.c (coff_symtab_read): Ditto, for
8960 COFF_MAKE_MSYMBOL_SPECIAL.
8961
8962 2002-02-05 Jim Blandy <jimb@redhat.com>
8963
8964 * solib-svr4.c (svr4_truncate_ptr): New function.
8965 (svr4_relocate_section_addresses): Do the address arithmetic with
8966 the appropriate truncation for target addresses, even when
8967 CORE_ADDR is larger than a target address.
8968
8969 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8970
8971 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8972 to (int *).
8973
8974 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8975
8976 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8977 code.
8978
8979 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8980
8981 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8982
8983 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * gdbserver/linux-low.c: Remove unused include files.
8986
8987 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8990 (read_inferior_memory): Use it.
8991 (write_inferior_memory): Likewise.
8992
8993 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8994
8995 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8996 grubbing through sys_errlist.
8997
8998 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8999
9000 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9001
9002 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9003 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9004
9005 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9006
9007 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9008 (do_sfunc, set_cmd_sfunc): New functions.
9009
9010 * command.h (struct cmd_list_element): Add field func.
9011 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9012 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9013 * cli/cli-decode.h: Ditto.
9014
9015 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9016 (help_all, help_cmd_list): Ditto.
9017 (find_cmd, complete_on_cmdlist): Ditto.
9018 * top.c (execute_command): Ditto.
9019
9020 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9021 function.sfunc.
9022
9023 * infcmd.c (notice_args_read): Fix function signature.
9024
9025 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9026 * cli/cli-decode.c (add_set_cmd): Ditto.
9027 * utils.c (initialize_utils): Ditto.
9028 * maint.c (_initialize_maint_cmds): Ditto.
9029 * infrun.c (_initialize_infrun): Ditto.
9030 * demangle.c (_initialize_demangler): Ditto.
9031 * remote.c (add_packet_config_cmd): Ditto.
9032 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9033 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9034 * proc-api.c (_initialize_proc_api): Ditto.
9035 * kod.c (_initialize_kod): Ditto.
9036 * valprint.c (_initialize_valprint): Ditto.
9037 * top.c (init_main): Ditto.
9038 * infcmd.c (_initialize_infcmd): Ditto.
9039 * corefile.c (_initialize_core): Ditto.
9040 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9041 * arch-utils.c (initialize_current_architecture): Ditto.
9042 (_initialize_gdbarch_utils): Ditto.
9043 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9044
9045 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9046 * wince.c (_initialize_inftarg): Ditto.
9047 * symfile.c (_initialize_symfile): Ditto.
9048 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9049 * language.c (_initialize_language): Ditto.
9050 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9051
9052 2002-02-04 Michael Snyder <msnyder@redhat.com>
9053
9054 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9055
9056 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9057
9058 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9059 Add rules for building the register data files.
9060
9061 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9062
9063 * regformats/regdat.sh: Add braces to the definition of
9064 expedite_regs_${arch}.
9065
9066 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9067
9068 * regformats/regdef.h (struct reg): Add comment describing the
9069 requirements for offset and size fields.
9070
9071 2002-02-04 Andreas Schwab <schwab@suse.de>
9072
9073 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9074 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9075
9076 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9077
9078 * gdbarch.sh (copyright): Update years in generated header.
9079 (SMASH_TEXT_ADDRESS): Add rule.
9080 * gdbarch.h, gdbarch.c: Re-generate.
9081 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9082 * dbxread.c: Likewise.
9083 * dwarfread.c: Likewise.
9084 * elfread.c: Likewise.
9085 * somread.c: Likewise.
9086
9087 * arm-tdep.c (arm_smash_text_address): New function.
9088 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9089
9090 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9091
9092 Add support for hardware watchpoints on win32 native.
9093 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9094 CONTEXT_DEBUG_REGISTERS.
9095 (dr variable): New variable. Static array containing a local copy
9096 of debug registers.
9097 (debug_registers_changed): New variable. Reflects when debug registers
9098 are changed and need to be written to inferior.
9099 (debug_registers_used): New variable. Reflects when any debug register
9100 was set, used when new threads are created.
9101 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9102 i386-nat code.
9103 (thread_rec): Set dr array if id is the thread of current_event .
9104 (child_continue, child_resume): Change the debug registers for all
9105 threads if debug_registers_changed.
9106 (child_add_thread): Change the debug registers if debug_registers_used.
9107 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9108 Link nm.h to new nm-cygwin.h file.
9109 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9110 of hardware registers.
9111
9112 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9113
9114 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9115 Restore behavour broken by 2002-01-20 Andrew Cagney
9116 <ac131313@redhat.com> IEEE_FLOAT removal.
9117
9118 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * c-valprint.c (c_val_print): Pass a proper valaddr to
9121 cp_print_class_method.
9122 * valops.c (search_struct_method): If there is only one method
9123 and args is NULL, return that method.
9124
9125 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9126
9127 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9128 accessing tag_name directly.
9129
9130 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9131
9132 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9133 of accessing tag_name directly.
9134
9135 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9136
9137 PR gdb/280
9138 * gdbtypes.c (replace_type): New function.
9139 * gdbtypes.h (replace_type): Add prototype.
9140 * stabsread.c (read_type): Use replace_type.
9141
9142 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9143
9144 * Makefile.in (memattr.o): Add missing dependencies rule.
9145
9146 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9147
9148 * breakpoint.c (break_at_finish_command): Really export.
9149 (break_at_finish_at_depth_command): Ditto.
9150 (tbreak_at_finish_command): Ditto.
9151 * hppa-tdep.c: Include completer.h.
9152 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9153 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9154
9155 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9156
9157 * utils.c (do_write): New function.
9158 (error_stream): Rewrite combining the code from error_begin and
9159 verror.
9160 (verror): Rewrite using error_stream.
9161 (error_begin): Delete function.
9162
9163 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9164
9165 * utils.c (error_begin): Make static.
9166 * defs.h (error_begin): Delete declaration.
9167
9168 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9169 (decode_line_1): Use cplusplus_error instead of error_begin,
9170 cplusplus_hint and return_to_top_level.
9171 * coffread.c (coff_symfile_read): Use error instead of error_begin
9172 and return_to_top_level.
9173 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9174
9175 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9176
9177 * language.h (type_error, range_error): Make string parameter
9178 constant.
9179 * language.c (warning_pre_print): Delete extern declaration.
9180 * dwarfread.c (warning_pre_print): Ditto.
9181 * language.c (type_error, range_error): Rewrite to use verror and
9182 vwarning instead of warning_begin.
9183
9184 2002-02-01 Michael Snyder <msnyder@redhat.com>
9185
9186 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9187 (set_ignore_count): Move misplaced comment back where it belongs.
9188
9189 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9190
9191 * command.h (NO_FUNCTION): Delete macro.
9192 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9193 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9194 * tracepoint.c (_initialize_tracepoint): Ditto.
9195 * cli/cli-decode.c (add_set_cmd): Ditto.
9196 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9197
9198 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9199
9200 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9201 Update ``this'' pointer when calling virtual functions.
9202
9203 2002-02-01 Michael Snyder <msnyder@redhat.com>
9204
9205 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9206 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9207
9208 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9209
9210 * regformats/reg-arm.dat: New file.
9211 * regformats/reg-i386.dat: New file.
9212 * regformats/reg-ia64.dat: New file.
9213 * regformats/reg-m68k.dat: New file.
9214 * regformats/reg-mips.dat: New file.
9215 * regformats/reg-ppc.dat: New file.
9216 * regformats/reg-sh.dat: New file.
9217 * regformats/regdef.h: New file.
9218 * regformats/regdat.sh: New file.
9219
9220 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9221
9222 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9223 (arm_frame_args_address, arm_frame_locals_address): New functions.
9224 (arm_frame_num_args): New function.
9225 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9226 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9227 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9228
9229 2002-01-31 Michael Snyder <msnyder@redhat.com>
9230
9231 * breakpoint.c (break_at_finish_command): Export.
9232 (break_at_finish_at_depth_command): Export.
9233 (tbreak_at_finish_command): Export.
9234 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9235 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9236 "tbreak" commands, which are HPPA specific.
9237
9238 * printcmd.c (disassemble_command): Remove an ancient
9239 artifact of an old merge.
9240
9241 * symfile.h (enum overlay_debugging_state):
9242 Define enum constant values for overlay mode.
9243 * symfile.c (overlay_debugging): Use enums instead of literals.
9244 (overlay_is_mapped, overlay_auto_command,
9245 overlay_manual_command): Ditto.
9246
9247 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9248 breakpoint_here_p, breakpoint_inserted_here_p,
9249 breakpoint_thread_match, bpstat_stop_status,
9250 describe_other_breakpoints, check_duplicates, clear_command):
9251 Coding standard fixes.
9252
9253 * target.c (target_xfer_memory): Add spaces, coding standard.
9254 (do_xfer_memory): Add missing line to trust-readonly
9255 code: check bfd SEC_READONLY flag for section.
9256
9257 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9258
9259 * PROBLEMS: Fix typo, 5.1->5.1.1.
9260
9261 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9262
9263 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9264 data symbols, since we search based on textlow and texthigh.
9265 (find_pc_sect_symtab): Likewise.
9266
9267 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9268
9269 * defs.h (vwarning): Declare.
9270 * utils.c (vwarning): New function.
9271 (warning): Call vwarning.
9272 (warning_begin): Delete function.
9273
9274 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9275 the warning message.
9276 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9277 warning_begin.
9278
9279 2002-01-30 Michael Snyder <msnyder@redhat.com>
9280
9281 * NEWS: Mention "set trust-readonly-sections" command.
9282 Mention generate-core-file command.
9283
9284 2002-01-15 Michael Snyder <msnyder@redhat.com>
9285
9286 * target.c: New command, "set trust-readonly-sections on".
9287 (do_xfer_memory): Honor the suggestion to trust readonly sections
9288 by reading them from the object file instead of from the target.
9289 (initialize_targets): Register command "set trust-readonly-sections".
9290
9291 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9292
9293 * parse.c (target_map_name_to_register): Simplify, search regs and
9294 pseudo-regs using a single loop.
9295
9296 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9297
9298 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9299
9300 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9301
9302 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9303 * config/i386/i386v42mp.mh: Add i387-nat.o .
9304 * i386v4-nat.c: Include i387-nat.h.
9305 (supply_fpregset): Use i387_supply_fsave.
9306 (fill_fpregset): Use i387_fill_fsave.
9307
9308 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9309
9310 * arm-tdep.c (arm_call_dummy_words): Define.
9311 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9312 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9313 (CALL_DUMMY_WORDS): Define.
9314 (arm_call_dummy_words): Declare.
9315 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9316 (arm_linux_call_dummy_words): Declare.
9317
9318 2002-01-30 Andreas Schwab <schwab@suse.de>
9319
9320 * m68klinux-nat.c: Fix last change to use regcache_collect
9321 instead of referencing registers[] directly.
9322
9323 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9324
9325 * parse.c (target_map_name_to_register): Delete code wrapped in
9326 #ifdef REGISTER_NAME_ALIAS_HOOK.
9327
9328 2002-01-28 Michael Snyder <msnyder@redhat.com>
9329
9330 * regcache.c (legacy_read_register_gen): Need to be able to
9331 read pseudo-register as well as real register.
9332 (legacy_write_register_gen): Ditto.
9333
9334 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9335
9336 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9337 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9338 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9339 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9340 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9341 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9342 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9343 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9344 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9345 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9346 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9347 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9348 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9349 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9350 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9351 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9352 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9353 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9354 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9355 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9356
9357 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9358
9359 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9360 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9361 (initialize_current_architecture): Update target_byte_order using
9362 information from BFD.
9363 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9364 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9365
9366 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9367
9368 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9369 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9370
9371 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9372 #ifdef INVALID_FLOAT.
9373 * infcmd.c (do_registers_info): Ditto.
9374 * values.c (unpack_double): Ditto. Add comment.
9375
9376 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9377 already commented out.
9378
9379 2002-01-26 Andreas Schwab <schwab@suse.de>
9380
9381 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9382 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9383 registers and add support for PTRACE_GETREGS.
9384
9385 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9386
9387 GDB 5.1.1 released from 5.1 branch.
9388 * NEWS: Add 5.1.1 news.
9389 * README: Sync with 5.1 branch.
9390
9391 2002-01-23 Fred Fish <fnf@redhat.com>
9392
9393 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9394 stabstring on initial malloc. Reallocing will copy it for us,
9395 if necessary.
9396
9397 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9398
9399 * Makefile.in (hpread_h): Delete.
9400 (HFILES_NO_SRCDIR): Remove hpread.h.
9401 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9402 (hpread.o): Update dependencies.
9403 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9404
9405 * hp-psymtab-read.c: Remove file.
9406 * hp-symtab-read.c: Remove file.
9407 * hpread.h: Remove file.
9408
9409 * hpread.c: Merge all contents of hp-psymtab-read.c,
9410 hp-symtab-read.c and hpread.h into this file, as it was prior to
9411 January 1999.
9412
9413 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9414 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9415 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9416 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9417
9418 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9419
9420 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9421 fill_gregset): Call gdbarch_tdep() just once, assign result to
9422 variable and use that, instead of calling the function several
9423 times.
9424
9425 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9426
9427 * configure.host: Accept sparcv9 as alias for sparc64.
9428 * configure.tgt: Likewise.
9429
9430 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9431
9432 * solib-aix5.c (build_so_list_from_mapfile)
9433 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9434 arguments is not reversed.
9435 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9436 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9437
9438 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9439
9440 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9441 modified version of obsolete sh_fetch_pseudo_register.
9442 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9443 (sh4_register_read): New function.
9444 (sh_pseudo_register_write): New function. Renamed and modified
9445 version of obsolete sh_store_pseudo_register.
9446 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9447 (sh4_register_write): New function.
9448 (sh_gdbarch_init): Remove setting of gdbarch function
9449 fetch_pseudo_register and store_pseudo_register. Remove setting of
9450 register_convert_to_raw, register_convert_to_virtual,
9451 register_convertible.
9452 (sh_sh4_register_convertible): Delete. No longer needed. All is
9453 taken care by architecture specific functions
9454 register_read/register_write.
9455 (sh_sh4_register_convert_to_virtual): Make static.
9456 (sh_sh4_register_convert_to_raw): Ditto.
9457
9458 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9459
9460 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9461 (floatformat_is_nan, floatformat_mantissa): Ditto.
9462
9463 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9464 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9465 builtin_type_ieee_double_little,
9466 builtin_type_ieee_double_littlebyte_bigword,
9467 builtin_type_m68881_ext, builtin_type_i960_ext,
9468 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9469 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9470 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9471 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9472
9473 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9474
9475 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9476 parameter. Set frameless flag if it exists and depended of
9477 whether the scanned function is frameless or not.
9478 (xstormy16_skip_prologue): If function is frameless, return
9479 result of xstormy16_scan_prologue().
9480 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9481 call.
9482
9483 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9484
9485 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9486 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9487 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9488 sh_sh4_register_byte, sh_sh4_register_raw_size,
9489 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9490 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9491 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9492 sh_store_pseudo_register, sh_do_pseudo_register): Call
9493 gdbarch_tdep() just once, assign result to variable and use that,
9494 instead of calling the function several times.
9495
9496 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9497
9498 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9499 macros instead of LAST_FPU_CTRL_REGNUM.
9500 (store_register): Likewise.
9501
9502 2002-01-21 Jim Blandy <jimb@redhat.com>
9503
9504 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9505 is up-to-date before running the program, not just when a program
9506 exits.
9507
9508 2002-01-21 Fred Fish <fnf@redhat.com>
9509
9510 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9511 when we have found all instructions we are looking for.
9512
9513 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9514
9515 * arm-tdep.c (arm_register_name): New function.
9516 (arm_registers_names): Make static.
9517 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9518 (arm_register_name): Declare.
9519 (REGISTER_NAME): Use it.
9520
9521 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9522 Kevin Buettner <kevinb@redhat.com>
9523
9524 Convert arm targets to new FRAME interface.
9525 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9526 (arm_frame_find_save_regs): Delete.
9527 (arm_frame_init_saved_regs): New.
9528 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9529 Allocate extra_info as required. Convert all uses of fsr.regs
9530 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9531 to use extra_info.
9532 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9533 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9534 (check_prologue_cache, save_prologue_cache): Likewise.
9535 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9536 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9537 (FRAME_FIND_SAVED_REGS): Delete.
9538 (arm_frame_find_saved_regs): Delete prototype.
9539 (arm_frame_init_saved_regs): New prototype.
9540 (FRAME_INIT_SAVED_REGS): Define.
9541
9542 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9543
9544 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9545
9546 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9547
9548 From Jeff Law <law@redhat.com>:
9549 * infttrace.c: Include <sys/pstat.h>.
9550 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9551 exec file if the ttrace equivalent fails.
9552
9553 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9554
9555 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9556 (closeLogFile): Ditto.
9557
9558 2002-01-20 Michael Chastain <mec@shout.net>
9559
9560 * top.c (print_gdb_version): Bump copyright year to 2002.
9561
9562 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9563
9564 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9565 Zannoni and Eli Zaretskii.
9566
9567 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9568
9569 * buildsym.c: Update copyright years.
9570 * c-typeprint.c: Likewise.
9571 * dwarf2read.c: Likewise.
9572 * f-typeprint.c: Likewise.
9573 * gdbtypes.c: Likewise.
9574 * gdbtypes.h: Likewise.
9575 * hp-symtab-read.c: Likewise.
9576 * hpread.c: Likewise.
9577 * mdebugread.c: Likewise.
9578 * p-typeprint.c: Likewise.
9579
9580 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9581
9582 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9583 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9584 byte-order selectable.
9585 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9586 * arch-utils.c: Ditto.
9587 (set_endian): Ditto.
9588 (set_endian_from_file): Ditto.
9589 * gdbserver/low-sim.c (create_inferior): Ditto.
9590 * gdbarch.sh: Ditto.
9591 * gdbarch.h: Re-generate.
9592 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9593 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9594 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9595 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9596 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9597 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9598 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9599 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9600 macro definition.
9601 * config/mips/tm-wince.h: Remove #undef of macro
9602 TARGET_BYTE_ORDER_SELECTABLE.
9603 * config/sh/tm-wince.h: Ditto.
9604
9605 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9606
9607 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9608 member function fields. Add accessor macro
9609 TYPE_FN_FIELD_ARTIFICIAL.
9610 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9611 * c-typeprint.c (c_type_print_base): Skip artificial member
9612 functions.
9613
9614 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * f-typeprint.c: Delete unused function f_type_print_args.
9617 * p-typeprint.c: Delete unused function pascal_type_print_args.
9618
9619 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9622 comment. Add ``artificial'' to ``union field_location''.
9623
9624 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9625
9626 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9627 * mdebugread.c (parse_symbol): Likewise.
9628 * stabsread.c (define_symbol): Likewise.
9629 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9630 initializing TYPE_FIELD_BITPOS to n (obsolete).
9631 (hpread_doc_function_type): Likewise.
9632 * hpread.c (hpread_function_type): Likewise.
9633
9634 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9635
9636 * configure.in (host_makefile_frag): Only require a host makefile
9637 fragment when a native build.
9638 * configure: Re-generate.
9639
9640 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9641
9642 * doublest.h (floatformat_from_type): Declare.
9643 * doublest.c (floatformat_from_type): New function.
9644 (convert_typed_floating): Use.
9645
9646 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9647 call to function floatformat_from_type.
9648
9649 * gdbarch.sh (IEEE_FLOAT): Delete.
9650 * gdbarch.h, gdbarch.c: Re-generate.
9651 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9652 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9653 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9654 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9655 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9656 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9657 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9658 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9659 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9660 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9661 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9662 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9663
9664 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9665 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9666 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9667 * sh-tdep.c (sh_gdbarch_init): Ditto.
9668 * mips-tdep.c (mips_gdbarch_init): Ditto.
9669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9670 * cris-tdep.c (cris_gdbarch_init): Ditto.
9671
9672 2002-01-20 Jiri Smid <smid@suse.cz>
9673
9674 * configure.host, configure.tgt: Support x86-64.
9675 * NEWS: Note new target x86-64.
9676
9677 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9678 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9679 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9680 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9681 x86-64-linux-nat.o): Fix dependencies.
9682
9683 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9684
9685 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9686 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9687 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9688 * config/sparc/xm-sun4os4.h: Delete file.
9689 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9690
9691 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9692
9693 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9694 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9695 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9696 * config/i386/i386lynx.mh (XM_FILE): Delete.
9697 * config/rs6000/xm-rs6000ly.h: Delete file.
9698 * config/sparc/xm-sparclynx.h: Delete file.
9699 * config/m68k/xm-m68klynx.h: Delete file.
9700 * config/i386/xm-i386lynx.h: Delete file.
9701 * config/xm-lynx.h: Delete file.
9702 * config/djgpp/fnchange.lst: Update.
9703
9704 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9705
9706 * alpha-tdep.c (alpha_register_byte): New function.
9707 (alpha_register_raw_size): Ditto.
9708 (alpha_register_virtual_size): Ditto.
9709 (alpha_skip_prologue_internal): Renamed from
9710 alpha_skip_prologue.
9711 (alpha_skip_prologue): New version that calls
9712 alpha_skip_prologue_internal.
9713 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9714 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9715 second argument from alpha_skip_prologue.
9716 (REGISTER_BYTE): Use alpha_register_byte.
9717 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9718 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9719 (FRAMELESS_FUNCTION_INVOCATION): Use
9720 generic_frameless_function_invocation_not.
9721 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9722 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9723
9724 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9725
9726 * config/mips/xm-news-mips.h: Delete file.
9727 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9728
9729 * config/m88k/xm-m88k.h: Delete file.
9730 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9731 * config/m88k/xm-delta88v4.h: Ditto.
9732 * config/m88k/xm-delta88.h: Ditto.
9733
9734 * config/alpha/xm-fbsd.h: Delete file.
9735 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9736
9737 * config/sparc/xm-sparc.h: Delete file.
9738 * Makefile.in (xm-sun4os4.h): Delete dependency.
9739 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9740 * config/sparc/xm-sun4os4.h: Ditto.
9741 * config/sparc/xm-linux.h: Ditto.
9742
9743 * config/i386/xm-windows.h: Delete file.
9744
9745 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9746
9747 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9748 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9749
9750 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9751
9752 * alpha-tdep.c (alpha_call_dummy_words): New.
9753 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9754 (CALL_DUMMY_P): Define.
9755 (CALL_DUMMY_WORDS): Define.
9756 (SIZEOF_CALL_DUMMY_WORDS): Define.
9757
9758 2002-01-19 Per Bothner <per@bothner.com>
9759
9760 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9761 isn't NULL, which can happen with some gcj-3.x-produced code.
9762
9763 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9764
9765 * alpha-tdep.c (alpha_register_virtual_type): New function.
9766 (alpha_init_frame_pc_first): Ditto.
9767 (alpha_fix_call_dummy): Ditto.
9768 (alpha_store_struct_return): Ditto.
9769 (alpha_extract_struct_value_address): Ditto.
9770 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9771 alpha_register_virtual_type.
9772 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9773 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9774 alpha_extract_struct_value_address.
9775 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9776 (INIT_FRAME_PC): Use init_frame_pc_noop.
9777 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9778
9779 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9780
9781 * i386gnu-nat.c: Include "i386-tdep.h".
9782 (fetch_fpregs): Simplify code dealing with uninitialized floating
9783 point states such that it doesn't require FP7_REGNUM.
9784
9785 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * alpha-tdep.c (frame_extra_info): New.
9788 (alpha_find_saved_regs): Make static. Use
9789 frame->extra_info.
9790 (alpha_frame_init_saved_regs): New function.
9791 (alpha_frame_saved_pc): Use frame->extra_info.
9792 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9793 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9794 (init_extra_frame_info): Rename to...
9795 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9796 (alpha_print_extra_frame_info): New function.
9797 (alpha_frame_locals_address): Ditto.
9798 (alpha_frame_args_address): Ditto.
9799 (alpha_pop_frame): Use frame->extra_info.
9800 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9801 alpha_frame_args_address.
9802 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9803 (alpha_find_saved_regs): Remove prototype.
9804 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9805 (EXTRA_FRAME_INFO): Remove.
9806 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9807 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9808
9809 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9810
9811 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9812 (alpha_cannot_fetch_register): Ditto.
9813 (alpha_cannot_store_register): Ditto.
9814 (alpha_register_convertible): Ditto.
9815 (alpha_use_struct_convention): Ditto.
9816 * config/alpha/tm-alpha.h: Update copyright years.
9817 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9818 (INNER_THAN): Use core_addr_lessthan.
9819 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9820 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9821 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9822 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9823 (FRAME_CHAIN): Remove unnecessary cast.
9824
9825 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9826
9827 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9828 obsolete.
9829
9830 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9831
9832 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9833 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9834 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9835 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9836 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9837 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9838 * x86-64-linux-nat.c: Ditto.
9839
9840 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9841
9842 * alpha-tdep.c (alpha_register_name): New function.
9843 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9844 (REGISTER_NAME): Define.
9845
9846 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9847
9848 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9849
9850 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9851
9852 * alpha-tdep.c: Update copyright years.
9853 (alpha_next_pc): New function.
9854 (alpha_software_single_step): Ditto.
9855 * config/alpha/tm-alpha.h: Add prototype for
9856 alpha_software_single_step.
9857
9858 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9859
9860 * alphabsd-nat.c: Update copyright years.
9861 (fill_gregset): Use regcache_collect.
9862 (fill_fpregset): Likewise.
9863 (fetch_inferior_registers): Only fetch integer registers
9864 if requested to do so.
9865 (store_inferior_registers): Only store integer registers
9866 if requested to do so.
9867
9868 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9869
9870 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9871 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9872 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9873 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9874 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9875 * config/arm/linux.mh (XDEPFILES): Delete.
9876 * config/arm/nbsd.mh (XDEPFILES): Delete.
9877 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9878 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9879 * config/i386/i386m3.mh (XDEPFILES): Delete.
9880 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9881 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9882 * config/i386/fbsd.mh (XDEPFILES): Delete.
9883 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9884 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9885 * config/i386/i386v4.mh (XDEPFILES): Delete.
9886 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9887 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9888 * config/i386/i386aix.mh (XDEPFILES): Delete.
9889 * config/i386/go32.mh (XDEPFILES): Delete.
9890 * config/i386/cygwin.mh (XDEPFILES): Delete.
9891 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9892 * config/i386/i386mach.mh (XDEPFILES): Delete.
9893 * config/i386/i386v32.mh (XDEPFILES): Delete.
9894 * config/i386/linux.mh (XDEPFILES): Delete.
9895 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9896 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9897 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9898 * config/i386/i386sco.mh (XDEPFILES): Delete.
9899 * config/i386/i386v.mh (XDEPFILES): Delete.
9900 * config/i386/nbsd.mh (XDEPFILES): Delete.
9901 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9902 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9903 * config/i386/symmetry.mh (XDEPFILES): Delete.
9904 * config/i386/obsd.mh (XDEPFILES): Delete.
9905 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9906 * config/ia64/linux.mh (XDEPFILES): Delete.
9907 * config/ia64/aix.mh (XDEPFILES): Delete.
9908 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9909 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9910 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9911 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9912 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9913 * config/m68k/linux.mh (XDEPFILES): Delete.
9914 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9915 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9916 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9917 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9918 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9919 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9920 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9921 * config/m88k/delta88.mh (XDEPFILES): Delete.
9922 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9923 * config/m88k/m88k.mh (XDEPFILES): Delete.
9924 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9925 * config/mips/linux.mh (XDEPFILES): Delete.
9926 * config/mips/irix6.mh (XDEPFILES): Delete.
9927 * config/mips/irix5.mh (XDEPFILES): Delete.
9928 * config/mips/irix4.mh (XDEPFILES): Delete.
9929 * config/mips/irix3.mh (XDEPFILES): Delete.
9930 * config/mips/decstation.mh (XDEPFILES): Delete.
9931 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9932 (NATDEPFILES): Move core-aout.o to here.
9933 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9934 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9935 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9936 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9937 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9938 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9939 * config/pa/hpux11.mh (XDEPFILES): Delete.
9940 * config/powerpc/aix.mh (XDEPFILES): Delete.
9941 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9942 * config/powerpc/linux.mh (XDEPFILES): Delete.
9943 * config/romp/rtbsd.mh: Rename XDEPFILES.
9944 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9945 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9946 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9947 * config/s390/s390.mh (XDEPFILES): Delete.
9948 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9949 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9950 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9951 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9952 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9953 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9954 * config/sparc/linux.mh (XDEPFILES): Delete.
9955 * config/vax/vaxult.mh (XDEPFILES): Delete.
9956 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9957 * Makefile.in (DEPFILES): Remove XDEPFILES.
9958
9959 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9960
9961 * utils.c (internal_verror): Fix comments, default is yes not no.
9962 Update queries to match. Default to quit and dump core.
9963
9964 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9965
9966 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9967 copyright.
9968 * defs.h, event-top.c, gdbcmd.h: Ditto.
9969 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9970 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9971 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9972 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9973 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9974 * mi/mi-main.c:Ditto.
9975
9976 * stack.c, symfile.c: Update copyright.
9977
9978 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9981 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9982 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9983 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9984
9985 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9988 * gdbserver/low-lynx.c (myattach): Likewise.
9989 * gdbserver/low-nbsd.c (myattach): Likewise.
9990 * gdbserver/low-sim.c (myattach): Likewise.
9991 * gdbserver/low-sparc.c (myattach): Likewise.
9992 * gdbserver/low-sun3.c (myattach): Likewise.
9993
9994 * gdbserver/low-linux.c (myattach): New function.
9995
9996 * gdbserver/server.c (attach_inferior): New function.
9997 (main): Handle "--attach".
9998
9999 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10000
10001 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10002 maintainer.
10003
10004 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10005
10006 * c-typeprint.c (is_type_conversion_operator): Add additional
10007 check for non-conversion operators.
10008
10009 2002-01-15 Michael Snyder <msnyder@redhat.com>
10010
10011 * linux-proc.c: Add "info proc" command, a la procfs.c.
10012 (read_mapping): New function, abstract and re-use code.
10013 (linux_find_memory_regions): Use new func read_mapping.
10014 (linux_info_proc_cmd): New function, implement "info proc".
10015 (_initialize_linux_proc): Add new command "info proc".
10016
10017 2002-01-15 Michael Snyder <msnyder@redhat.com>
10018
10019 * symfile.c (generic_load): Use bfd_map_over_sections method
10020 instead of manipulating bfd structure members directly.
10021 (add_section_size_callback): New function, bfd sections callback
10022 used by generic_load.
10023 (load_sections_callback): New function, bfd sections callback
10024 used by generic_load.
10025
10026 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10027
10028 [Based on work by Jim Blandy]
10029 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10030 (builtin_type_vec128): Export.
10031 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10032 types.
10033 (builtin_type_vec128): New builtin type for 128 bit vector
10034 registers.
10035 (build_gdbtypes): Initialize builtin_type_v16qi and
10036 builtin_type_v8hi. Create the vec128 register builtin type
10037 structure.
10038 (build_builtin_type_vec128): New function.
10039 (_initialize_gdbtypes): Register builtin_type_v16qi and
10040 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10041 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10042 AltiVec register to new builtin type.
10043
10044 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10047 to make_cv_type.
10048
10049 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10050
10051 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10052 CLEAN_UP_REGISTER_VALUE.
10053 * regcache.c (supply_register): Update only call.
10054
10055 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10056
10057 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10058 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10059 a29k-*-vxworks* targets as obsolete.
10060
10061 2002-01-14 Michael Snyder <msnyder@redhat.com>
10062
10063 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10064 until we can resolve portability issues.
10065 * gregset.h: Remove references to fpxregs.
10066 * gcore.c (gcore_command): Initialize note_sec to NULL.
10067
10068 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10069
10070 * signals.c (target_signal_to_name): Rewrite. Only use
10071 signals[].name when in bounds and non-NULL.
10072
10073 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10074
10075 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10076 * signals.c (target_signal_to_name): Verify that SIG is within the
10077 bounds of the signals array.
10078
10079 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10080
10081 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10082
10083 2002-01-13 Keith Seitz <keiths@redhat.com>
10084
10085 * stack.c (print_frame_info_base): Print the frame's pc
10086 only if when print_frame_info_listing_hook is not defined.
10087
10088 2002-01-13 Keith Seitz <keiths@redhat.com>
10089
10090 * varobj.c (varobj_set_value): Make sure that there were no
10091 errors evaluating the object before attempting to set its
10092 value.
10093 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10094 so this offset adjustment is no longer necessary.
10095 (create_child): Don't set the error flag if the child is
10096 a CPLUS_FAKE_CHILD.
10097 (value_of_child): If value_fetch_lazy fails, return NULL
10098 so that callers will be notified that an error occurred.
10099 (c_value_of_variable): Delay check of variable's validity
10100 until later. We actually want all structs and unions to have
10101 the value "{...}".
10102 Do not return "???" for variables which could not be evaluated.
10103 This error condition must be returned to the caller so that it
10104 can get the error condition from gdb.
10105 (cplus_name_of_child): Adjust index for vptr before figuring
10106 out the name of the child.
10107 (cplus_value_of_child): If a child's (real) parent is not valid,
10108 don't even bother trying to give a value for it. Just return
10109 an error. Change all instances in this function.
10110 (cplus_type_of_child): If our parent is one of the "fake"
10111 parents, we need to get at the type of the real parent, and
10112 derive the child's true type using this information.
10113
10114 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10115
10116 From 2002-01-09 John Marshall <johnm@falch.net>:
10117 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10118 sources.redhat.com, and tweak some related URLs which had
10119 suffered from linkrot.
10120
10121 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10122
10123 From Jeff law:
10124 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10125 structures passed in registers.
10126
10127 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10128
10129 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10130 white space which prevented compilation. Reported by DSK
10131 <dsk@student.unsw.edu.au>.
10132
10133 2002-01-11 Michael Snyder <msnyder@redhat.com>
10134
10135 * symfile.c (build_section_addr_info_from_section_tab):
10136 Use bfd access method instead of manipulating bfd directly.
10137 (syms_from_objfile): Ditto.
10138 (simple_overlay_update_1): Ditto.
10139 (simple_overlay_update): Ditto.
10140 (generic_load): Ditto.
10141 (overlay_unmapped_address): FIXME comment, bfd access methods.
10142 (sections_overlap): FIXME comment, bfd access methods.
10143 (pc_in_mapped_range): FIXME comment, bfd access methods.
10144 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10145 (section_is_mapped): FIXME comment, bfd access methods.
10146 (section_is_overlay): FIXME comment, bfd access methods.
10147
10148 * symfile.c (generic_load): Whitespace and long line cleanups.
10149 Remove duplicate variable, change several local variables to
10150 more appropriate data types.
10151 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10152
10153 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10154
10155 From Peter Schauer:
10156 * language.c (longest_local_hex_string_custom): Use phex_nz to
10157 convert NUM to a hex string.
10158
10159 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10160
10161 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10162 the function.
10163 Update Copyright year.
10164
10165 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10166
10167 * language.c (longest_raw_hex_string): Delete unused function.
10168
10169 2002-01-11 Petr Sorfa <petrs@caldera.com>
10170
10171 * MAINTAINERS (write-after-approval): Add myself.
10172 * dwarf2read.c (read_tag_string_type): Handling of
10173 DW_AT_byte_size.
10174 (read_tag_string_type): FORTRAN fix to prevent propagation of
10175 first string size.
10176 (set_cu_language): Handling of DW_LANG_Fortran95
10177
10178 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10179
10180 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10181 GETPID(inferior_ptid).
10182 (store_inferior_registers): Likewise.
10183
10184 2002-01-10 Jason Merrill <jason@redhat.com>
10185
10186 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10187 Fix DW_OP_minus.
10188
10189 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10190
10191 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10192 and bfd/elf32-sh-nbsd.c.
10193
10194 2002-01-10 Michael Snyder <msnyder@redhat.com>
10195
10196 * NEWS: Mention --pid and corefile/proc-id behavior change.
10197
10198 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10199 * gcore.c: Include cli/cli-decode.h instead of command.h.
10200
10201 * main.c (captured_main): Add new command line option "--pid".
10202 If the second command line argument (following the symbol-file)
10203 begins with a digit, try to attach to it before trying to open
10204 it as a corefile.
10205 (print_gdb_help): Document the "--pid" argument.
10206
10207 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10208
10209 * completer.c (command_completer): New function.
10210
10211 * completer.h <command_completer>: Add prototype.
10212
10213 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10214 completer for the "help" command.
10215
10216 2002-01-09 Jason Merrill <jason@redhat.com>
10217
10218 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10219
10220 2002-01-09 Michael Snyder <msnyder@redhat.com>
10221
10222 * i386-linux-nat.c (fill_fpxregset): Make global.
10223 (store_fpxregset): Ditto.
10224
10225 * gregset.h (gdb_fpxregset_t): Define.
10226 (supply_fpxregset): Prototype.
10227 (fill_fpxregset): Prototype.
10228
10229 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10230
10231 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10232
10233 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10234 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10235 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10236
10237 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10238
10239 * MAINTAINERS: Update target maintainer rules so that any
10240 Maintainer can approve a tested patch for a maintenance-only
10241 target.
10242
10243 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10244
10245 * MAINTAINERS (write-after-approval): Add myself.
10246
10247 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10248 IN_SIGTRAMP.
10249
10250 2002-01-08 Michael Snyder <msnyder@redhat.com>
10251
10252 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10253 real name of the executable, rather than the /proc name.
10254
10255 2002-01-03 Michael Snyder <msnyder@redhat.com>
10256
10257 Implement a "generate-core-file" command in gdb, save target state.
10258 * gcore.c: New file. Implement new command 'generate-core-file'.
10259 Save a corefile image of the current state of the inferior.
10260 * linux-proc.c: Add linux-specific code for saving corefiles.
10261 * target.h (struct target_ops): Add new target vectors for saving
10262 corefiles; to_find_memory_regions and to_make_corefile_notes.
10263 (target_find_memory_regions): New macro.
10264 (target_make_corefile_notes): New macro.
10265 * target.c (update_current_target): Inherit new target methods.
10266 (dummy_find_memory_regions): New place-holder method.
10267 (dummy_make_corefile_notes): New place-holder method.
10268 (init_dummy_target): Initialize new dummy target vectors.
10269 * exec.c (exec_set_find_memory_regions): New function.
10270 Allow the exec_ops vector for memory regions to be taken over.
10271 (exec_make_note_section): New function, target vector method.
10272 * defs.h (exec_set_find_memory_regions): Export prototype.
10273 * procfs.c (proc_find_memory_regions): New function, corefile method.
10274 (procfs_make_note_section): New function, corefile method.
10275 (init_procfs_ops): Set new target vector pointers.
10276 (find_memory_regions_callback): New function.
10277 (procfs_do_thread_registers): New function.
10278 (procfs_corefile_thread_callback): New function.
10279 * sol-thread.c (sol_find_memory_regions): New function.
10280 (sol_make_note_section): New function.
10281 (init_sol_thread_ops): Initialize new target vectors.
10282 * inftarg.c (inftarg_set_find_memory_regions): New function.
10283 Allow to_find_memory_regions vector to be taken over.
10284 (inftarg_set_make_corefile_notes): New function.
10285 Allow to_make_corefile_notes vector to be taken over.
10286 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10287 interface layer if not target_has_execution (may be a corefile).
10288 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10289 * config/sparc/sun4sol2.mh: Ditto.
10290 * config/alpha/alpha-linux.mh: Ditto.
10291 * config/arm/linux.mh: Ditto.
10292 * config/i386/x86-64linux.mh: Ditto.
10293 * config/ia64/linux.mh: Ditto.
10294 * config/m68k/linux.mh: Ditto.
10295 * config/mips/linux.mh: Ditto.
10296 * config/powerpc/linux.mh: Ditto.
10297 * config/sparc/linux.mh: Ditto.
10298
10299 2002-01-07 Michael Snyder <msnyder@redhat.com>
10300
10301 * arm-linux-nat.c: Remove references to regcache.c internal data
10302 (registers[] and register_valid[]).
10303
10304 2002-01-07 Michael Snyder <msnyder@redhat.com>
10305
10306 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10307 so that attaching to a pid will automatically read the process's
10308 symbol file and shlibs.
10309 * Makefile.in: Add rule for linux-proc.o.
10310 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10311 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10312 * config/arm/linux.mh: Ditto.
10313 * config/i386/linux.mh: Ditto.
10314 * config/i386/x86-64linux.mh: Ditto.
10315 * config/ia64/linux.mh: Ditto.
10316 * config/m68k/linux.mh: Ditto.
10317 * config/mips/linux.mh: Ditto.
10318 * config/powerpc/linux.mh: Ditto.
10319 * config/sparc/linux.mh: Ditto.
10320
10321 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10322
10323 * win32-nat.c: Add i386-tdep.h dependency.
10324
10325 2002-01-07 Michael Snyder <msnyder@redhat.com>
10326
10327 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10328 instead of bfd_get_arch_size. Don't bail out just because
10329 there's no exec_bfd.
10330
10331 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10332 * p-valprint.c (pascal_object_print_value): Ditto.
10333 * somread.c (som_symtab_read): Ditto.
10334 * symfile.c (simple_free_overlay_region_table): Ditto.
10335 * valops.c (value_assign): Ditto.
10336
10337 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10338 use tilde_expand and strerror for opening save-tracepoints file.
10339
10340 * thread-db.c (thread_db_new_objfile): Indendation fix.
10341
10342 * infptrace.c (GDB_MAX_ALLOCA): New define.
10343 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10344 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10345 can be overridden with whatever value is appropriate to the host).
10346 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10347 alloca to allocate potentially large buffer.
10348 * rs6000-nat.c (child_xfer_memory): Ditto.
10349 * symm-nat.c (child_xfer_memory): Ditto.
10350 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10351
10352 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10353
10354 From Nick Clifton <nickc@redhat.com>
10355 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10356
10357 2002-01-07 Michael Snyder <msnyder@redhat.com>
10358
10359 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10360 Don't use exec_bfd if it's NULL.
10361
10362 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10363
10364 * valops.c (value_arg_coerce): Fix formatting.
10365
10366 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10367
10368 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10369 * gnu-nat.c: Ditto.
10370
10371 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10372
10373 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10374 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10375 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10376 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10377 z8k-coff have not been multi-arched. Update z8k-coff build
10378 status.
10379
10380 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10381
10382 * MAINTAINERS: Mark a29k target as obsolete.
10383 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10384 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10385 comments.
10386 * NEWS: Note that a29k targets are obsolete.
10387 * a29k-tdep.c: Mark as obsolete.
10388 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10389 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10390 a29k-*-vxworks* targets as obsolete.
10391 * remote-adapt.c: Obsolete.
10392 * remote-eb.c: Obsolete.
10393 * remote-mm.c: Obsolete.
10394 * remote-udi.c: Obsolete.
10395 * config/a29k/a29k-udi.mt: Obsolete.
10396 * config/a29k/a29k.mt: Obsolete.
10397 * config/a29k/tm-a29k.h: Obsolete.
10398 * config/a29k/tm-vx29k.h: Obsolete.
10399 * config/a29k/vx29k.mt: Obsolete.
10400
10401 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10402
10403 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10404 with BFD_ENDIAN_BIG.
10405
10406 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10407
10408 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10409 * configure, config.in: Re-generate.
10410 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10411 * defs.h: Do not include <endian.h>.
10412
10413 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10414
10415 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10416 * config.in: Regenerate.
10417 * configure.in: Update copyright years.
10418 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10419 * configure: Regenerate.
10420 * i386bsd-nat.c: Update copyright years.
10421 (fill_gregset): Use regcache_collect.
10422 (fetch_inferior_registers): Only fetch integer registers
10423 if requested to do so. Add support for XMM registers
10424 using PT_GETXMMREGS.
10425 (store_inferior_registers): Only store integer registers
10426 if requested to do so. Add support for XMM registers
10427 using PT_SETXMMREGS.
10428 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10429 (store_inferior_registers): Remove.
10430 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10431 (fetch_elfcore_registers): New function.
10432 (i386nbsd_elfcore_fns): New.
10433 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10434 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10435 i386bsd-nat.o.
10436 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10437 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10438 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10439 * config/i386/tm-nbsd.h: Update copyright years.
10440 (HAVE_SSE_REGS): Define.
10441 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10442 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10443 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10444 (SIGCONTEXT_PC_OFFSET): Remove.
10445 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10446
10447 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10448
10449 * configure.tgt: Remove powerpc-*-macos* target.
10450 * config/m68k/xm-mpw.h: Delete file.
10451 * config/xm-mpw.h: Delete file.
10452 * ser-mac.c: Delete file.
10453 * mpw-make.sed: Delete file.
10454 * mpw-config.in: Delete file.
10455 * mac-xdep.c: Delete file.
10456 * mac-gdb.r: Delete file.
10457 * mac-defs.h: Delete file.
10458 * mac-nat.c: Delete file.
10459 * config/powerpc/macos.mh: Delete file.
10460 * config/powerpc/macos.mt: Delete file.
10461 * config/powerpc/nm-macos.h: Delete file.
10462 * config/powerpc/tm-macos.h: Delete file.
10463 * source.c (openp, open_source_file): Remove obsolete code.
10464 * top.c (gdb_readline): Ditto.
10465 * utils.c (query): Ditto.
10466 * event-top.c (display_gdb_prompt): Ditto.
10467 * Makefile.in (ser-mac.o): Delete obsolete target.
10468 * NEWS: Update.
10469
10470 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10471
10472 * defs.h (BIG_ENDIAN): Delete macro definition.
10473 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10474 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10475 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10476 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10477 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10478 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10479 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10480 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10481 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10482 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10483 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10484 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10485 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10486 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10487 * gdbarch.c: Re-generate.
10488
10489 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10492 for core files.
10493
10494 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10495
10496 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10497
10498 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10499
10500 * value.h (value_ptr): Delete typedef.
10501
10502 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10503
10504 * i386nbsd-nat.c: Update copyright years.
10505 Include i386-tdep.h.
10506
10507 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10508
10509 * stabsread.c: Update copyright years.
10510
10511 From Debashis Mahata <debashis.mahata@wipro.com>:
10512 (read_struct_fields): Deal with Sun C compiler erroneous stab
10513 output for structs and unions.
10514 Fix PR gdb/269.
10515
10516 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10519 prototype.
10520
10521 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * cp-abi.c: Fix whitespace.
10524 (baseclass_offset): New wrapper function.
10525 * cp-abi.h (baseclass_offset): Add prototype.
10526 (struct cp_abi_ops): Add baseclass_offset pointer.
10527
10528 * valops.c (vb_match): Move to...
10529 * gnu-v2-abi.c (vb_match): here.
10530 * valops.c (baseclass_offset): Move to...
10531 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10532
10533 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10534
10535 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10536 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10537 * hpacc-abi.c (init_hpacc_ops): Likewise.
10538
10539 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * valops.c (find_overload_match): Accept obj as a
10542 reference parameter. Update it before returning.
10543 * value.h (find_overload_match): Update prototype.
10544 * eval.c (evaluate_subexp_standard): Pass object to
10545 find_overload_match by reference.
10546
10547 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10548
10549 * valarith.c: Replace value_ptr with struct value pointer. Remove
10550 register attribute from value declarations.
10551 * valops.c: Ditto.
10552 * value.h: Ditto.
10553 * scm-lang.c (scm_lookup_name): Ditto.
10554
10555 2002-01-03 Michael Snyder <msnyder@redhat.com>
10556
10557 Abstract the functionality of iterating over mapped memory
10558 regions into a general purpose iterator function.
10559 * procfs.c (iterate_over_mappings): New function, general purpose
10560 iterator for memory sections.
10561 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10562 (solib_mappings_callback): New function, callback for above.
10563 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10564 (info_mappings_callback): New function, callback for above.
10565
10566 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10567
10568 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10569
10570 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10571 * i386-tdep.c: Include "elf-bfd.h".
10572 (process_note_abi_tag_sections): New function.
10573 (i386_gdbarch_init): Add code to recognize various OS/ABI
10574 combinations.
10575
10576 * maint.c (_initialize_maint_cmds): Add missing \ in
10577 string-literal.
10578
10579 For older changes see ChangeLog-2001
10580 \f
10581 Local Variables:
10582 mode: change-log
10583 left-margin: 8
10584 fill-column: 74
10585 version-control: never
10586 End: