* Makefile.in (LDFLAGS): Allow the configure script to establish a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
697f7479
JB
12002-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
e86ae29f
KS
72002-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
216b504f
EZ
122002-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
b5d1566e
MS
192002-08-19 Michael Snyder <msnyder@redhat.com>
20
21 * mips-tdep.c (mips_frame_num_args): New function.
22 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
23 frame_saved_pc, frame_args_address, frame_locals_address,
24 frame_num_args, and frame_args_skip.
25 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
26 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
27 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
28 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
29
2f1488ce
MS
302002-08-20 Michael Snyder <msnyder@redhat.com>
31
32 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
33 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
34 * mips-tdep.c (mips_store_struct_return): New function.
35 (mips_extract_struct_value_address): New function.
36 (mips_gdbarch_init): Set store_struct_return and
37 extract_struct_value_address.
38
41ff2da1
DC
392002-08-20 David Carlton <carlton@math.stanford.edu>
40
41 * dwarf2read.c (dwarf2_build_psymtabs): Check that
42 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
43 (read_file_scope): Check that line_header is nonzero before
44 decoding macro information.
45
e5451d58
MK
462002-08-20 Mark Kettenis <kettenis@gnu.org>
47
48 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
49 flag the general-purpose registers as floating-point on targets
50 that don't support the floating-point registers.
51
4a6daafa
EZ
522002-08-20 Elena Zannoni <ezannoni@redhat.com>
53
54 * rs6000-tdep.c (altivec_register_p): Delete.
55 (rs6000_do_altivec_registers): Delete.
56 (rs6000_altivec_registers_info): Delete.
57 (rs6000_do_registers_info): Delete.
58 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
59 (rs6000_gdbarch_init): Remove setting of do_registers_info.
60
ab4327e0
EZ
612002-08-20 Elena Zannoni <ezannoni@redhat.com>
62
63 * infcmd.c (do_registers_info): Print vector registers in hex
64 format only.
65 (print_vector_info): Check that printing registers
66 makes sense.
67 (print_float_info): Ditto.
68
cb1d2653
AC
692002-08-20 Andrew Cagney <ac131313@redhat.com>
70
71 * mips-tdep.c (mips_gdbarch_init): Update.
72 (mips_o32_extract_return_value): Rewrite.
73 (mips_o32_store_return_value): Rewrite.
74 (mips_o32_xfer_return_value): New function.
75 (mips_xfer_register): Tweak debug print message. Allow for
76 buf_offset when dumping the value transfered.
77
dfc3d9b2
AC
782002-08-20 Andrew Cagney <ac131313@redhat.com>
79
80 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
81 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
82 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
83 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
84 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
85
7807aa61
MS
862002-08-14 Michael Snyder <msnyder@redhat.com>
87
88 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
89
489461e2
EZ
902002-08-19 Elena Zannoni <ezannoni@redhat.com>
91
92 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
93 register.
94 (P): New macro to define a register as a pseudo register.
95 (R, R4, R8, R16, FR32, R64, R0): Updated.
96 (struct variant): Add new fields for number of pseudo registers
97 and number of total registers.
98 (tot_num_registers): New macro replacing....
99 (num_registers): ...deleted macro.
100 (num_registers): New function.
101 (num_pseudo_registers): New function.
102 (variants): Update all variants to intialize new fields correctly.
103 Postpone initialization of number of pseudo regs and real regs.
104 (init_variants): New function.
105 (rs6000_gdbarch_init): Initialize variants. Update calculation of
106 registers offsets.
107
fcaffe4c
DC
1082002-08-19 David Carlton <carlton@math.stanford.edu>
109
2c2738a0
DC
110 * valops.c (search_struct_field): Change error message to treat
111 return value of 0 from value_static_field as meaning that field is
112 optimized out.
113 (value_struct_elt_for_reference): Ditto.
114 * values.c (value_static_field): Treat an unresolved location the
115 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
116 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
117 enclosed. Fix PR gdb/574.
fcaffe4c
DC
118 * MAINTAINERS: Add self to Write After Approval list.
119
88658117
AC
1202002-08-19 Andrew Cagney <ac131313@redhat.com>
121
122 * mips-tdep.c (mips_xfer_register): New function.
123 (mips_n32n64_extract_return_value): Rewrite.
124 (mips_gdbarch_init): For N32 and N64, set extract_return_value
125 instead of deprecated_extract_return_value.
126
21283beb
EZ
1272002-08-19 Elena Zannoni <ezannoni@redhat.com>
128
129 * rs6000-tdep.c (TDEP): Delete macro.
130 (branch_dest): Replace use of TDEP macro with its body.
131 (rs6000_pop_frame): Ditto.
132 (rs6000_push_arguments): Ditto.
133 (rs6000_skip_trampoline_code): Ditto.
134 (rs6000_frame_saved_pc): Ditto.
135 (rs6000_frame_chain): Ditto.
136 (rs6000_register_name): Ditto.
137 (rs6000_register_byte): Ditto.
138 (rs6000_register_raw_size): Ditto.
139 (rs6000_register_virtual_type): Ditto.
140 (rs6000_register_convertible): Ditto.
141 (rs6000_convert_from_func_ptr_addr): Ditto.
142
bf072999
DJ
1432002-08-19 Daniel Jacobowitz <drow@mvista.com>
144
145 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
146 conditionally.
147 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
148 MIPS_LINUX_JB_ELEMENT_SIZE.
149 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
150 for MAX_REGISTER_RAW_SIZE arrays.
151 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
152 MIPS_LINUX_JB_ELEMENT_SIZE.
153
9b949a49
PM
1542002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
155
156 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
157
6d3e79c6
AS
1582002-08-19 Aidan Skinner <aidan@velvet.net>
159
160 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
161 ada-valprint.c ada-tasks.c.
162 (YYFILES): Add ada-exp.y.
163 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
164 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
165 (ada-exp.tab.o): New target.
166
06c0b04e
AC
1672002-08-18 Andrew Cagney <ac131313@redhat.com>
168
169 * regcache.c (regcache_xfer_part): New function.
170 (regcache_raw_read_part): New function.
171 (regcache_raw_write_part): New function.
172 (regcache_cooked_read_part): New function.
173 (regcache_cooked_write_part): New function.
174 * regcache.h (regcache_raw_read_part): Declare.
175 (regcache_raw_write_part): Declare.
176 (regcache_cooked_read_part): Declare.
177 (regcache_cooked_write_part): Declare.
178
92d1e331
DJ
1792002-08-18 Daniel Jacobowitz <drow@mvista.com>
180
181 * remote.c (remote_open_1): Add async_p.
182 (remote_async_open_1): Delete.
183 (open_remote_target): Delete.
184 (remote_open, extended_remote_open): Update calls to remote_open_1.
185 (remote_async_open, extended_remote_async_open): Call
186 remote_open_1 instead of remote_async_open_1.
187
247055de
MK
1882002-08-19 Mark Kettenis <kettenis@gnu.org>
189
190 * blockframe.c: Fix a few coding standard violations.
191
641eda39
MK
1922002-08-19 Mark Kettenis <kettenis@gnu.org>
193
0b717710
MK
194 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
195 here from ...
196 * config/i386/tm-i386sco5.h: ... here. File removed.
197 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
198
26d28e12 199 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
200 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
201 (TM_FILE): Set to tm-i386.h.
202 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
203 * config/i386/tm-i386v.h: Remove file.
204 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
205 instead of "i386/tm-i386v.h".
206 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
207 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
208 "i386/tm-i386v.h".
209 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
210 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
211 "i386/tm-i386.h".
212
d4e0bab4
MK
2132002-08-18 Mark Kettenis <kettenis@gnu.org>
214
215 * config/i386/nm-i386v.h: Add protection against
216 multiple-inclusion.
217 (i386_register_u_addr): Remove prototype.
218 (register_u_addr): New prototype.
219 (REGISTER_U_ADDR): Redefine accordingly.
220 * i386v-nat.c: Improve several comments.
221 (i386_register_u_addr): Change signature and rename to
222 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
223 ubase variable.
224
46cac009
AC
2252002-08-18 Andrew Cagney <ac131313@redhat.com>
226
227 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
228 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
229 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
230 deprecated_extract_return_value.
231 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
232 rename mips_o32o64_push_arguments.
233 (mips_gdbarch_init): Update.
234 (mips_extract_return_value): Delete.
235 (mips_o32_extract_return_value): Clone mips_extract_return_value.
236 (mips_o64_extract_return_value): Clone mips_extract_return_value.
237 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
238 (mips_n32n64_extract_return_value): Clone
239 mips_extract_return_value.
240 (mips_store_return_value): Delete.
241 (mips_o32_store_return_value): Clone mips_store_return_value.
242 (mips_o64_store_return_value): Clone mips_store_return_value.
243 (mips_eabi_store_return_value): Clone mips_store_return_value.
244 (mips_n32n64_store_return_value): Clone mips_store_return_value.
245
d2e4a39e
AS
2462002-08-18 Aidan Skinner <aidan@velvet.net>
247
0c30c098
AS
248 * ada-lang.c: Use gdb_string.h instead of <string.h>.
249 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
250
2512002-08-18 Aidan Skinner <aidan@velvet.net>
252
253 * ada-lang.c: Run through gdb_indent.sh.
254 * ada-lang.h: Run through gdb_indent.sh.
255 * ada-tasks.c: Run through gdb_indent.sh.
256 * ada-typeprint.c: Run through gdb_indent.sh.
257 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 258
01fc4e33
AC
2592002-08-18 Andrew Cagney <ac131313@redhat.com>
260
261 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
262 ABI.
263
d8ee244c
MK
2642002-08-18 Mark Kettenis <kettenis@gnu.org>
265
c38d8261
MK
266 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
267
222db64c
MK
268 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
269 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
270
c2848c82
MK
271 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
272 write_register_gen instead of write_register_bytes.
273
d8ee244c
MK
274 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
275 i[3456]-*-osf1mk* configurations have been made obsolete.
276 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
277 i[3456]86-*-osf1mk* hosts obsolete.
278 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
279 targets obsolete.
280 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
281 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
282 config/i386/i386m3.mt, config/i386/nm-m3.h,
283 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
284 config/i386/i386mk.mh, config/i386/i386mk.mt,
285 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
286 obsolete.
287 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
288 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
289 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
290
61d8d407
AC
2912002-08-18 Andrew Cagney <ac131313@redhat.com>
292
293 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
294 (hppa_value_returned_from_stack): Declare.
295 (hppa_extract_return_value): Declare.
296 * config/pa/hppa.mt: New file.
297 * configure.tgt: Recognize hppa*-*-*.
298 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
299
0c52bd59
MK
3002002-08-18 Mark Kettenis <kettenis@gnu.org>
301
302 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
303 comment.
304
b5686e99
MK
3052002-08-17 Mark Kettenis <kettenis@gnu.org>
306
307 * top.c (gdb_rl_operate_and_get_next): Make sure
308 operate-and-get-next functions correctly even when the history
309 list is completely filled.
310
c1bab85b
AC
3112002-08-18 Andrew Cagney <ac131313@redhat.com>
312
313 * MAINTAINERS (Target Instruction Set Architectures): Rename
314 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
315 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
316 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
317 already listed under Host/Native.
318
319 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
320 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
321 mips*-*-*.
322
32089c7c
AC
3232002-08-17 Andrew Cagney <ac131313@redhat.com>
324
325 * config/ia64/ia64.mt: New file.
326 * config/alpha/alpha.mt: New file.
327 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
328 ia64-linux-gnu. Mention that ia64-elf is broken.
329 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
330
b4671f85
MK
3312002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
332
333 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
334 generic_func_frame_valid instead of func_frame_valid.
335
c8edd8b4
JB
3362002-08-16 Joel Brobecker <brobecker@gnat.com>
337
338 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
339 procfs appears to be broken when debugging on multi-processor
340 machines. So enable software single stepping in order to avoid
341 using the procfs interface to do next/step operations, using
342 internal breakpoints instead.
343
344 * infrun.c (handle_inferior_event): Readjust the stop_pc by
345 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
346 make this pc address equal to the value it would have if the
347 system stepping capability was used. Also set a new flag used
348 to ensure that we don't readjust the PC one more time later.
349
350 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
351 address by DECR_PC_AFTER_BREAK when software single step is
352 in use for this architecture, as this has already been taken
353 care of in handle_inferior_event().
354
238617f6
JB
3552002-08-16 Joel Brobecker <brobecker@gnat.com>
356
357 * infrun.c (handle_inferior_event): Minor reformatting, to make
358 a rather long condition expression easier to read.
359
541a7aac
AC
3602002-08-16 Andrew Cagney <ac131313@redhat.com>
361
362 * Makefile.in (gdbtk.o): Move to end of file.
363 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
364 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
365 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
366 (gdbtk-wrapper.o, gdbres.o): Ditto.
367
f92d4a7b
AC
3682002-08-16 Andrew Cagney <ac131313@redhat.com>
369
370 * Makefile.in (copying.o): Separate out compile rule.
371 (hpux-thread.o, procfs.o, signals.o): Ditto.
372 (v850ice.o, z8k-tdep.o): Ditto.
373 (tui-file.o): Move to TUI section.
374 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
375 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
376
1cce71eb
JB
3772002-08-16 Joel Brobecker <brobecker@gnat.com>
378
379 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
380 skip_trampoline_code, for better namespace-proofing.
381
382 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
383
0851f23d
JB
3842002-08-16 Joel Brobecker <brobecker@gnat.com>
385
386 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
387
f8d40ec8
JB
3882002-08-16 Joel Brobecker <brobecker@gnat.com>
389
390 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
391 signal, check whether we hit a breakpoint before checking for a
392 single step breakpoint. Otherwise, GDB fails to notice that a
393 breakpoint has been hit when stepping onto a breakpoint.
394
63d022e0
KS
3952002-08-16 Keith Seitz <keiths@redhat.com>
396
397 * gdb-events.sh (clear_gdb_event_hooks): New function.
398 * gdb-events.c: Regenerate.
399 * gdb-events.h: Regenerate.
400
6e31adb3
AC
4012002-08-16 Andrew Cagney <ac131313@redhat.com>
402
403 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
404 not_a_sw_breakpoint.
405 * breakpoint.h (bpstat_stop_status): Add parameter names.
406
c8189ed1
GS
4072002-08-16 Grace Sainsbury <graces@redhat.com>
408
409 * remote.c (remote_insert_hw_breakpoint)
410 (remote_remove_hw_breakpoint): Fix calculation of length field
411 for Z-packet.
412
d05285fa
MS
4132002-08-15 Michael Snyder <msnyder@redhat.com>
414
466d7106
MS
415 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
416 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
417 (supply_fpregset): Ditto.
418
d05285fa
MS
419 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
420 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
421 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 422 (TARGET_READ_SP): Delete.
bf1f5b4c 423 (DO_REGISTERS_INFO): Delete.
102182a9
MS
424 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
425 Delete.
426 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
427 from macros to functions.
bf1f5b4c 428
d05285fa
MS
429 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
430 (mips_register_convertible, mips_register_convert_to_virtual,
431 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
432 (mips_read_sp): New function.
433 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
434 (mips_do_registers_info): Make static.
435 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
436 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
437 (mips_register_convert_from_type, mips_register_convert_to_type):
438 New functions.
439 (mips_gdbarch_init): Set up function_start_offset,
440 register_virtual_size, pc_in_sigtramp.
d05285fa 441
e76f1f2e
AC
4422002-08-15 Andrew Cagney <ac131313@redhat.com>
443
444 * infcmd.c (vector_info): New function.
445 (_initialize_infcmd): Add command "info vector".
446 (print_vector_info): New function.
447
448 * gdbarch.sh (PRINT_VECTOR_INFO): New method
449 * gdbarch.h, gdbarch.c: Regenerate.
450
4782dc19
AC
4512002-08-15 Andrew Cagney <ac131313@redhat.com>
452
453 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
454 ``print_all''. Only print vector registers when ``print_all''.
455
23e3a7ac
AC
4562002-08-15 Andrew Cagney <ac131313@redhat.com>
457
8e186fd6
AC
458 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
459 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
460
23e3a7ac
AC
461 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
462 Add `args' parameter.
463 * gdbarch.h, gdbarch.c: Regenerate.
464
465 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
466
467 * infcmd.c (float_info): Call print_float_info.
468 (print_float_info): New function. By default, print the
469 floating-point registers.
470
471 * arch-utils.h (default_print_float_info): Delete declaration.
472 * arch-utils.c (default_print_float_info): Delete function.
473
e0ca2bb9
MK
4742002-08-16 Mark Kettenis <kettenis@gnu.org>
475
3f733acc
MK
476 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
477 out define.
478
7d8d2918
MK
479 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
480 FRAME.
481
1c7cc583
MK
482 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
483 * configure.host: Make i[3456]86-*-aix host obsolete.
484 * configure.tgt: Make i[3456]86-*-aix target obsolete.
485 * config/i386/i386aix.mh, config/i386/i386aix.mt,
486 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
487 config/i386/xm-i386aix.h: Make files obsolete.
488 * i386aix-nat.c: Make file obsolete.
489 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
490 (i386aix-nat.o): Make target obsolete.
491
e0ca2bb9
MK
492 * config/i386/nm-gnu.h: Removed.
493 * config/i386/nm-i386gnu.h: New file.
494 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
495 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
496 Moved here from ...
497 * config/i386/tm-i386gnu.h: ... here. Removed.
498 * config/i386/xm-i386gnu.h: Removed.
499 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
500 (NAT_FILE): Set to nm-i386gnu.h.
501 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
502 * i386-tdep.c: New file.
503 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
504 (i386gnu-tdep.o): Specify dependencies.
505
16057ec7 5062002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 507
6b99ee2e
MK
508 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
509 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
510 Adjust a few comments to reflect reality a bit closer.
511 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
512 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
513 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
514 target_insert_watchpoint, target_remove_watchpoint):
515 Move defines to ...
516 * config/i386/nm-i386sco5.h: ... here.
517 (kernel_u_size): Add prototype. Improve a few comments and add
518 protection against multiple inclusion.
519
d9a6f65c
MK
520 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
521 out define.
522
047eff6a
MK
523 * uw-thread.c (SP_ARG0): Define if not already defined.
524 * config/i386/tm-i386.h (SO_ARG0): Remove define.
525
dcdb1290
MK
526 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
527
5d2d0b2a
MK
528 * config/i386/tm-i386.h: Don't include "regcache.h".
529
61113f8b
MK
530 * i387-tdep.h (i387_print_float_info): New prototype.
531 * i387-tdep.c (print_i387_value, print_i387_ext,
532 print_i387_status_word, print_i387_control_word): Add `struct
533 ui_file *' argument and use it for output.
534 (i387_print_float_info): Renamed from i387_float_info. Add
535 `struct gdbarch *' and `struct ui_file *' arguments and use the
536 latter for output.
537 * i386-tdep.c: Include "i387-tdep.h".
538 (i386_gdbarch_init): Set print_float_info.
539 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
540 (FLOAT_INFO): Remove define.
541
46e0f506
MS
5422002-08-13 Michael Snyder <msnyder@redhat.com>
543
544 * mips-tdep.c (mips_push_arguments): Rename to
545 mips_eabi_push_arguments, and tune for EABI.
546 (MIPS_REGS_HAVE_HOME_P): Delete.
547 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
548 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
549 Delete references to mips_regs_have_home_p.
550
409268de
KS
5512002-08-14 Keith Seitz <keiths@redhat.com>
552
553 * Makefile.in (install-gdbtk): Create insight plugin directory.
554 Install plugins.tcl file.
555
ffc6a242
KS
5562002-08-14 Keith Seitz <keiths@redhat.com>
557
558 * configure.in: Move SUBDIRS to near top of the file so that
559 --enable options may add things to it.
560 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
561 * configure: Regenerate.
562
ebafbe83
MS
5632002-08-13 Michael Snyder <msnyder@redhat.com>
564
565 * mips-tdep.c (mips_o32o64_push_arguments): New function,
566 cloned from mips_push_arguments, tuned for o32/o64 ABI.
567 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
568
32f6f25d
AC
5692002-08-13 Andrew Cagney <ac131313@redhat.com>
570
571 * vax-tdep.c (vax_get_saved_register): Delete function.
572 (vax_gdbarch_init): Update.
573 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
574 (ns32k_gdbarch_init): Update.
575 * alpha-tdep.c (alpha_get_saved_register): Delete function.
576 (alpha_gdbarch_init): Update.
577
53826de9
AC
5782002-08-13 Andrew Cagney <cagney@redhat.com>
579
580 * regcache.c (init_regcache_descr): Overallocate the
581 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
582 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
583 nr_raw_registers.
584 (set_register_cached): Add range checking assertions. Use
585 current_regcache.
586
16057ec7 5872002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
588
589 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
590 numbers for MMX registers.
591
7b4c2dce
AC
5922002-08-13 Andrew Cagney <cagney@redhat.com>
593
594 * i386-tdep.c (i386_gdbarch_init): Use
595 generic_unwind_get_saved_register.
596
1e03ad20
KB
5972002-08-13 Kevin Buettner <kevinb@redhat.com>
598
599 * procfs.c (procfs_can_use_hw_breakpoint): New function.
600 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
601 target vector.
602 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
603 Delete. Add comment regarding this now-deleted target method.
604
548bcbec
SC
6052002-08-13 Stephane Carrez <stcarrez@nerim.fr>
606
607 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
608 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
609 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
610 real PC and the page number (if it's within the memory bank window).
611 (m68hc11_pseudo_register_write): Likewise when saving.
612 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
613 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
614 (m68hc11_register_raw_size): And use 32-bit for it.
615 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
616 16K memory bank is used by the prog; also use the virtual pc.
617
7df11f59
SC
6182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
619
620 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
621 (m68hc11_gdbarch_init): Install it in gdbarch.
622 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
623 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
624 (MSYMBOL_SIZE): New for documentation.
625 (insn_return_kind): Enum to specify how a function returns.
626 (frame_extra_info): Cleanup and record the return mode.
627 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
628 register in address computation.
629 (m68hc11_get_return_insn): New to obtain the return instruction used
630 by the function.
631 (m68hc11_frame_init_saved_regs): Take into account the return
632 instruction used by the function for far and interrupt functions.
633 (m68hc11_init_extra_frame_info): Take into account page register.
634 (m68hc11_frame_args_address): Adjust according to the return mode.
635 (show_regs): Print page register only when it's used.
636
5706502a
SC
6372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
638
639 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
640 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
641 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
642 registers.
643 (m68hc11_register_raw_size): Likewise.
644
28fc6740
AC
6452002-08-13 Andrew Cagney <cagney@redhat.com>
646
647 * i386-tdep.c (i386_register_name): Handle mmx registers.
648 (mmx_regnum_p): New function.
649 (i386_mmx_names): New array.
650 (mmx_num_regs): New variable.
651 (i386_pseudo_register_read): New function.
652 (i386_pseudo_register_write): New function.
653 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
654
655 * regcache.c (regcache_raw_read_unsigned): New function.
656 (regcache_raw_read_signed): New function.
657 * regcache.h (regcache_raw_read_unsigned): Declare.
658 (regcache_raw_read_signed): Declare.
659
a378f419
AC
6602002-08-13 Andrew Cagney <cagney@redhat.com>
661
662 * regcache.c (regcache_raw_read_as_address): Delete function.
663 (regcache_cooked_read_signed): New function.
664 (regcache_cooked_read_unsigned): New function.
665 * regcache.h (regcache_cooked_read_signed): Declare.
666 (regcache_cooked_read_unsigned): Declare.
667 (regcache_raw_read_as_address): Delete declaration.
668
669 * blockframe.c (generic_read_register_dummy): Use
670 regcache_cooked_read_unsigned.
671 * i386-tdep.c (i386_extract_struct_value_address): Use
672 regcache_cooked_read_unsigned.
673
81967506
SC
6742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
675
676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
677 double sizes according to ELF ABI flags.
678 (gdbarch_tdep): Record elf_flags.
679
ffe1f3ee
SC
6802002-08-13 Stephane Carrez <stcarrez@nerim.fr>
681
682 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
683 (m6812_prolog): They can appear in 68HC12 function prologue.
684 (m68hc11_frame_chain): Cleanup.
685
98216c5d
AC
6862002-08-12 Andrew Cagney <cagney@redhat.com>
687
688 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
689 declarations.
690 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
691 (i386_linux_register_raw_size): Delete function.
692 (i386_linux_init_abi): Update.
693 * i386-tdep.c (i386_register_raw_size): Delete function.
694 (i386_register_byte): Delete function.
695 (i386_gdbarch_init): Update.
696 (i386_register_size): Delete array.
697 (i386_register_offset): Delete array.
698
699 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
700 (REGISTER_RAW_SIZE): Delete macro.
701 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
702 (REGISTER_BYTE): Delete macro.
703
3b19021e
AS
7042002-08-11 Aidan Skinner <aidan@velvet.net>
705
706 * ada-lang.c (ada_lookup_partial_symbol)
707 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
708 prototype names so that grep ^func works properly.
709
710 * ada-lang.c (ada_array_element_type)
711 (ada_lookup_partial_symbol): Fix typos in parameter list.
712
713 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
714 Fix prototype names so that grep ^func works properly.
715
b063e7a2
AC
7162002-08-10 Andrew Cagney <cagney@redhat.com>
717 Elena Zannoni <ezannoni@redhat.com>
718 Martin M. Hunt <hunt@redhat.com>
719
720 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
721 (build_builtin_type_vec128i): Set the vector bit.
722 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
723 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
724 (build_builtin_type_vec64): New function.
725 (build_builtin_type_vec64i): New function.
726 (build_gdbtypes): Initialize builtin_type_vec64 and
727 builtin_type_vec64i.
728
a7e3c2ad
AC
7292002-08-09 Andrew Cagney <cagney@redhat.com>
730
731 * regcache.c (regcache_dump): Compare the register offset
732 with REGISTER_BYTE.
733 * arch-utils.c (generic_register_byte): New function.
734 * arch-utils.h (generic_register_byte): Declare.
735 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
736 * gdbarch.h, gdbarch.c: Regenerate.
737
af030b9a
AC
7382002-08-09 Andrew Cagney <cagney@redhat.com>
739
740 * regcache.c: Include "gdbcmd.h"
741 (_initialize_regcache): Add commands "maintenance print
742 registers", "maintenance print raw-registers" and "maintenance
743 print cooked-registers".
744 (enum regcache_dump_what): Define.
745 (dump_endian_bytes): New function.
746 (regcache_dump): New function.
747 (regcache_print): New function.
748 (maintenance_print_registers): New function.
749 (maintenance_print_raw_registers): New function.
750 (maintenance_print_cooked_registers): New function.
751 * Makefile.in (regcache.o): Update dependencies.
752
cb3d25d1
MS
7532002-08-09 Michael Snyder <msnyder@redhat.com>
754
755 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
756 (mips_push_arguments): Correct some comments. Use paddr_nz
757 for printing addresses in debug output. Replace static
758 allocation using MAX_REGISTER_RAW_SIZE with alloca.
759 (mips_n32n64_push_arguments): New function, cloned from
760 mips_push_arguments and tuned for the n32/n64 ABI.
761 (mips_push_register): Buffer needs dynamic allocation.
762 (mips_print_register): Ditto.
763 (do_gp_register_row): Ditto.
764 (mips_store_return_value): Ditto.
765 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
766
2163ab9d
DH
7672002-08-09 Don Howard <dhoward@redhat.com>
768
769 * memattr.c (mem_info_command): Print special case of upper bound
770 as max CORE_ADDR + 1.
771
b78bcb18
MS
7722002-08-08 Michael Snyder <msnyder@redhat.com>
773
774 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
775 returns structs by ref if they're too big to fit in two registers.
776
ffabd70d
KB
7772002-08-09 Kevin Buettner <kevinb@redhat.com>
778
779 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
780 saved regs value.
781 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
782 mips_find_saved_regs().
783 (mips_pop_frame): Likewise.
784
fbcdb4a3
KB
7852002-08-09 Kevin Buettner <kevinb@redhat.com>
786
787 * blockframe.c (frame_saved_regs_register_unwind): Revise
788 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
789 frames are in use.
790
3c3bea1c
GS
7912002-08-09 Grace Sainsbury <graces@redhat.com>
792
793 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
794 T-packets; the 'a' is not taken as a register number.
795 (remote_check_watch_resources, remote_stopped_by_watchpoint)
796 (remote_stopped_data_address): New functions; add to target
797 vector.
798 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
799 prototypes to match other implementations of this
800 function. replace integer argument with pointer -- the length
801 field in the Z-packet is the length of what is pointed to or 1 if
802 pointer is null. Add to target vector.
803 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
804 target vector.
805
806 From Mark Salter:
807 * remote.c (remote_wait): Add support to extract optional
808 watchpoint information from T-packet. Ignore unrecognized
809 optional info in T-packet.
810 (remote_async_wait): Ditto.
811
5d1d95de
CV
8122002-08-09 Corinna Vinschen <vinschen@redhat.com>
813
814 * cli/cli-dump.c: Change fopen modes to use binary open modes
815 as defined in include/fopen-bin.h throughout.
816
c86b5b38
MS
8172002-08-08 Michael Snyder <msnyder@redhat.com>
818
819 * mips-tdep.c: Minor whitespace and indentation clean-ups.
820
b30590dc
KB
8212002-08-08 Kevin Buettner <kevinb@redhat.com>
822
823 * doublest.c (store_floating): Avoid floatformat_from_doublest()
824 assertion failure by returning early after a warning.
825
498868ed
KB
8262002-08-08 Kevin Buettner <kevinb@redhat.com>
827
828 * mips-tdep.c (mips_find_saved_regs): Make static.
829 (mips_frame_init_saved_regs): New function.
830 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
831 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
832 (mips_find_saved_regs): Delete declaration.
833
b2dd6311
GS
8342002-08-08 Grace Sainsbury <graces@redhat.com>
835
3c3bea1c
GS
836 * remote.c (remote_wait, remote_async_wait): Change
837 thread_num from int to ULONGEST.
838 (unpack_varlen_hex): Change result parameter from
839 int * to ULONGEST *.
b2dd6311 840
ea47855f
AC
8412002-08-08 Andrew Cagney <ac131313@redhat.com>
842
843 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
844 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
845 powerpc*-*-*.
846 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
847
69db8bae
AC
8482002-08-08 Andrew Cagney <cagney@redhat.com>
849
850 * gcore.c (override_derive_stack_segment): Delete variable.
851 (preempt_derive_stack_segment): Delete function.
852 (derive_stack_segment): Delete function.
853 (default_derive_stack_segment): Renamed to derive_stack_segment.
854 (override_derive_heap_segment): Delete variable.
855 (preempt_derive_heap_segment): Delete function.
856 (derive_heap_segment): Delete function.
857 (default_derive_heap_segment): Rename to derive_heap_segment.
858
cb811fe7
MS
8592002-08-06 Michael Snyder <msnyder@redhat.com>
860
861 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
862 * mips-tdep.c (mips_EABI_use_struct_convention,
863 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
864 New functions. (mips_use_struct_convention): Delete.
865 (mips_gdbarch_init): set use_gdbarch_convention.
866
8b389c40
MS
8672002-08-06 Michael Snyder <msnyder@redhat.com>
868
869 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
870 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
871 mips_o32_reg_struct_has_addr): New functions.
872 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
873
5c27f28a
AC
8742002-08-07 Andrew Cagney <ac131313@redhat.com>
875
876 * regcache.c (pseudo_register): Delete function.
877 (fetch_register): Delete function.
878 (store_register): Delete function.
879 (regcache_raw_read, legacy_read_register_gen): Use
880 target_fetch_registers instead of fetch_register.
881 (legacy_write_register_gen, regcache_raw_write): Use
882 target_store_register instead of store_register.
883 (write_register_bytes): Ditto.
884
885 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
886 (STORE_PSEUDO_REGISTER): Delete.
887 * gdbarch.h, gdbarch.c: Regenerate.
888
5b331675
CV
8892002-08-06 Corinna Vinschen <vinschen@redhat.com>
890
891 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
892 write dump file binary.
893
6acdf5c7
MS
8942002-08-05 Michael Snyder <msnyder@redhat.com>
895
896 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
897 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
898 (mips_gdbarch_init): Set N32 target to be mips64.
899
b2f01c35
KB
9002002-08-06 Kevin Buettner <kevinb@redhat.com>
901
902 * frame.c (find_saved_register): Break out of loop once saved
903 register address is found. Don't mention sparc in loop comment
904 anymore.
905
63db5580
KB
9062002-08-06 Kevin Buettner <kevinb@redhat.com>
907
908 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
909 mips_default_saved_regsize to 8.
910
5e34e75e
AC
9112002-08-06 Andrew Cagney <ac131313@redhat.com>
912
913 * gcore.c: Do not include <sys/procfs.h>.
914 * Makefile.in (gcore.o): Update dependencies.
915
eb4c54a2
AC
9162002-08-06 Andrew Cagney <cagney@redhat.com>
917
918 * configure.tgt: Make arc-*-* obsolete.
919 * NEWS: Mention that arc-*-* has been identifed as obsolete.
920 * MAINTAINERS: Make arc-elf obsolete.
921 * arc-tdep.c: Make file obsolete.
922 * config/arc/arc.mt: Ditto.
923 * config/arc/tm-arc.h: Ditto.
924
ced15480
TR
9252002-08-05 Theodore A. Roth <troth@verinet.com>
926
c1bab85b 927 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 928
b4743822
AC
9292002-08-05 Andrew Cagney <ac131313@redhat.com>
930
931 * mcore-tdep.c (mcore_gdbarch_init): Use
932 generic_unwind_get_saved_register instead of
933 generic_get_saved_register.
934 * v850-tdep.c (v850_gdbarch_init): Ditto.
935 * frv-tdep.c (frv_gdbarch_init): Ditto.
936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
937 * s390-tdep.c (s390_gdbarch_init): Ditto.
938 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
939 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
940 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
941
3956d554
JB
9422002-08-05 Joel Brobecker <brobecker@gnat.com>
943
944 * objfiles.h: Add missing #include "symfile.h"
945
946 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
947
8249c0d6
AC
9482002-08-04 Andrew Cagney <ac131313@redhat.com>
949
950 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
951 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
952 of FIELD_BITSIZE.
953
b9d14705
DJ
9542002-08-04 Daniel Jacobowitz <drow@mvista.com>
955
956 * NEWS: Cleanup and nitpick.
957
dd73b9bb
AC
9582002-08-03 Andrew Cagney <ac131313@redhat.com>
959
960 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
961
043a27f8
AC
9622002-08-03 Andrew Cagney <ac131313@redhat.com>
963
964 * Makefile.in (gdbtk-bp.o): Update dependencies.
965 (gdbtk-register.o): Ditto.
966 (gdbtk-varobj.o): Ditto.
967
46ce284d
AC
9682002-08-03 Andrew Cagney <cagney@redhat.com>
969
970 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
971 m68hc11_fetch_pseudo_register.
972 (m68hc11_pseudo_register_write): Replace
973 m68hc11_store_pseudo_register.
974 (m68hc11_gdbarch_init): Update.
975
b66d6d2e
AC
976Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
977
978 * gdbarch.sh: Include "gdb_string.h".
979 * gdbarch.c: Regenerate.
980
981 * regcache.c: Include "gdb_string.h".
982 * ax-general.c: Ditto.
983 * varobj.c: Ditto.
984 * std-regs.c: Ditto.
985 * fbsd-proc.c: Ditto.
986 * thread.c: Ditto.
987
988 * Makefile.in (regcache.o): Update dependencies.
989 (thread.o, gdbarch.o): Ditto.
990 (ax-general.o, gdbarch.o): Ditto.
991 (varobj.o, std-regs.o): Ditto.
992 (fbsd-proc.o): Specify dependencies.
993
29e1842b
AC
9942002-08-02 Andrew Cagney <cagney@redhat.com>
995
996 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
997 regnum.
998 (regcache_cooked_write): Ditto.
999
68365089
AC
10002002-08-02 Andrew Cagney <ac131313@redhat.com>
1001
1002 * regcache.c (regcache_cooked_read): New function.
1003 (regcache_cooked_write): New function.
1004 (read_register_gen): Rewrite using regcache_cooked_read.
1005 (write_register_gen): Rewrite using regcache_cooked_write.
1006
1007 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1008 Declare.
1009
d8124050
AC
10102002-08-02 Andrew Cagney <cagney@redhat.com>
1011
1012 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1013 Replace the architecture methods register_read and register_write.
1014 * gdbarch.h, gdbarch.c: Regenerate.
1015 * regcache.c (init_regcache_descr): Update.
1016 (read_register_gen): Update.
1017 (write_register_gen): Update.
1018 (supply_register): Update comment.
1019
1020 * sh-tdep.c (sh_gdbarch_init): Update.
1021 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1022 `regcache' and `gdbarch' parameters. Make `buffer' a void
1023 pointer. Update code.
1024 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1025 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1026 void pointer. Update code.
1027 (sh64_register_write): Delete.
1028 (sh4_register_read): Delete.
1029 (sh64_register_read): Delete.
1030 (sh4_register_write): Delete.
1031 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1032 void pointer, `to' parameter a void pointer.
1033 (sh_sh64_register_convert_to_raw): Ditto.
1034
a6425924
KB
10352002-08-01 Kevin Buettner <kevinb@redhat.com>
1036
1037 * mips-tdep.c (mips_register_virtual_type): Use architecture
1038 invariant return values.
1039
ff5922b5
AC
10402002-08-01 Andrew Cagney <cagney@redhat.com>
1041
1042 * linux-proc.c: Include "gdb_string.h".
1043 * Makefile.in (linux-proc.o): Update dependency list.
1044
32a6503c
KB
10452002-08-01 Kevin Buettner <kevinb@redhat.com>
1046
1047 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1048 comment.
1049
ccaa32c7
GS
10502002-08-01 Grace Sainsbury <graces@redhat.com>
1051
1052 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1053 to_insert_watchpoint, to_remove_watchpoint,
1054 to_stopped_by_watchpoint, to_stopped_data_address,
1055 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1056 target vecctor. Define their corresponding macros so they call
1057 them.
1058
1059 * target.c: Add default and debug versions of for
1060 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1061 to_insert_watchpoint, to_remove_watchpoint,
1062 to_stopped_by_watchpoint, to_stopped_data_address,
1063 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1064
78fde5f8
KB
10652002-08-01 Kevin Buettner <kevinb@redhat.com>
1066
1067 * mips-tdep.c (mips_register_virtual_type): New function.
1068 (mips_gdbarch_init): Register mips_register_virtual_type()
1069 with gdbarch machinery.
1070 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1071 this file instead of tm-bigmips.h.
1072 (MIPS_REGSIZE): Delete this macro.
1073 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1074 multiarch version in mips-tdep.c will be found.
1075
db034ac5
AC
10762002-08-01 Andrew Cagney <cagney@redhat.com>
1077
1078 * NEWS: Menion that CHILL has been made obsolete.
1079
1080 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1081 * gdbserver/Makefile.in: Ditto.
1082 * stabsread.c (read_range_type): Ditto.
1083 * gdbtypes.h: Ditto.
1084 * language.c (binop_type_check): Ditto.
1085 (binop_result_type): Ditto.
1086 (integral_type): Ditto.
1087 (character_type): Ditto.
1088 (string_type): Ditto.
1089 (boolean_type): Ditto.
1090 (structured_type): Ditto.
1091 (lang_bool_type): Ditto.
1092 (binop_type_check): Ditto.
1093 * language.h (_LANG_chill): Ditto.
1094 * dwarfread.c (set_cu_language): Ditto.
1095 * dwarfread.c (CHILL_PRODUCER): Ditto.
1096 * dwarfread.c (handle_producer): Ditto.
1097 * expression.h (enum exp_opcode): Ditto.
1098 * eval.c: Ditto for comments.
1099 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1100 * expprint.c (print_subexp): Ditto.
1101 (print_subexp): Ditto.
1102 * valops.c (value_cast): Ditto.
1103 (search_struct_field): Ditto.
1104 * value.h (COERCE_VARYING_ARRAY): Ditto.
1105 * symfile.c (init_filename_language_table): Ditto.
1106 (add_psymbol_with_dem_name_to_list): Ditto.
1107 * valarith.c (value_binop): Ditto.
1108 (value_neg): Ditto.
1109 * valops.c (value_slice): Ditto.
1110 * symtab.h (union language_specific): Ditto.
1111 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1112 (SYMBOL_DEMANGLED_NAME): Ditto.
1113 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1114 * defs.h (enum language): Ditto.
1115 * symtab.c (got_symtab): Ditto.
1116 * utils.c (fprintf_symbol_filtered): Ditto.
1117
1118 * ch-typeprint.c: Make file obsolete.
1119 * ch-valprint.c: Make file obsolete.
1120 * ch-lang.h: Make file obsolete.
1121 * ch-exp.c: Make file obsolete.
1122 * ch-lang.c: Make file obsolete.
1123
1124 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1125 CHILL_LIB.
1126 (TARGET_FLAGS_TO_PASS): Ditto.
1127 (CHILLFLAGS): Obsolete.
1128 (CHILL): Obsolete.
1129 (CHILL_FOR_TARGET): Obsolete.
1130 (CHILL_LIB): Obsolete.
1131 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1132 ch-valprint.c.
1133 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1134 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1135 ch-lang.o.
1136 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1137 targets.
1138
8aaf0b47
JB
11392002-07-31 Joel Brobecker <brobecker@gnat.com>
1140
1141 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1142 This does not change anything at the moment, but will be helpful
1143 later when full Ada support is integrated.
1144
f3a7b3a5
KB
11452002-07-31 Kevin Buettner <kevinb@redhat.com>
1146
1147 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1148 help message.
1149
fb850278
KB
11502002-07-31 Kevin Buettner <kevinb@redhat.com>
1151
1152 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1153 and save it in a local variable. Use variable in later test.
1154
e3bddbfa
KB
11552002-07-31 Kevin Buettner <kevinb@redhat.com>
1156
1157 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1158 test. (Thanks to Daniel Jacobowitz.)
1159
28d169de
KB
11602002-07-31 Kevin Buettner <kevinb@redhat.com>
1161
1162 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1163 (mips_abi_strings): Add "n64".
1164 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1165
7fe7e44e
KB
11662002-07-31 Kevin Buettner <kevinb@redhat.com>
1167
1168 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1169 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1170
c6caf090
KB
11712002-07-31 Kevin Buettner <kevinb@redhat.com>
1172
1173 * utils.c (host_pointer_to_address, address_to_host_pointer):
1174 Use gdb_assert() instead of explicit call to internal_error().
1175
c41669e0
KB
11762002-07-30 Kevin Buettner <kevinb@redhat.com>
1177
1178 * Makefile.in (rs6000-nat.o): Update dependencies.
1179
1180 From Nicholas Duffek:
1181 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1182 (aix-thread.o): New rule.
1183 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1184 * config/powerpc/aix432.mh: New file.
1185
2fda4977
DJ
11862002-07-30 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1189 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1190 (fetch_core_registers, ppc_linux_supply_gregset)
1191 (ppc_linux_supply_fpregset): New functions.
1192 (ppc_linux_regset_core_fns): New.
1193 (_initialize_ppc_linux_tdep): Call add_core_fns.
1194 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1195 and ppc_linux_supply_gregset.
1196 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1197 (supply_fpregset): Call ppc_linux_supply_fpregset.
1198 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1199 corelow.o.
1200 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1201
729051e6
DJ
12022002-07-30 Daniel Jacobowitz <drow@mvista.com>
1203
1204 * symtab.c (lookup_symbol): Demangle before lowercasing.
1205
5f8a3188
AC
12062002-07-30 Andrew Cagney <ac131313@redhat.com>
1207
1208 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1209 declaration.
1210 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1211 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1212 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1213 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1214 "gdb_string.h".
1215 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1216 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1217 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1218 (avr-tdep.o, mon960-rom.o): Ditto.
1219 (aout_stabs_gnu_h): Define.
1220 (symtab_h): Remove $(gdb_obstack_h).
1221
67f07146
JB
12222002-07-30 Jim Blandy <jimb@redhat.com>
1223
1224 Patch from David Carlton <carlton@math.stanford.edu>:
1225 * gdbinit.in: Move the `dir' commands that add GDB's own source
1226 directory to the search path to the end, so that the `gdb' source
1227 directory will be searched first.
1228
04ea0df1
AC
12292002-07-29 Andrew Cagney <ac131313@redhat.com>
1230
1231 * gdb_obstack.h: New file.
1232 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1233 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1234 * objfiles.h: Include "gdb_obstack.h".
1235 * Makefile.in (gdb_obstack_h): Define.
1236 (symtab_h): Add $(gdb_obstack_h).
1237 (objfiles_h): Add $(gdb_obstack_h).
1238
1239 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1240 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1241 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1242 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1243 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1244 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1245 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1246 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1247
1248 * Makefile.in (bcache.o): Update dependencies.
1249 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1250 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1251 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1252 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1253 (stabsread.o, symfile.o, symmisc.o): Ditto.
1254 (symtab.o, typeprint.o, macroexp.o): Ditto.
1255 (macrotab.o, mdebugread.o): Ditto.
1256 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1257 (coff_ecoff_h, aout_aout64_h): Define.
1258 (aout_stabs_gnu_h, libaout_h): Define.
1259
d138e37a
AC
12602002-07-29 Andrew Cagney <cagney@redhat.com>
1261
1262 * regcache.c (struct regcache_descr): Rename nr_registers to
1263 nr_cooked_registers. Revise comments describing the structure
1264 member fields.
1265 (init_regcache_descr): Update.
1266 (init_legacy_regcache_descr): Update.
1267 (read_register_gen, write_register_gen): When a cooked register in
1268 the raw register range, directly access the value from the raw
1269 register cache.
1270
460e6ec3
AC
12712002-07-29 Andrew Cagney <ac131313@redhat.com>
1272
1273 * z8k-tdep.c: Do not include "obstack.h".
1274 * h8300-tdep.c, h8500-tdep.c: Ditto.
1275 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1276 * valprint.c, v850-tdep.c: Ditto.
1277 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1278 * mn10200-tdep.c: Ditto.
1279
1280 * Makefile.in (z8k-tdep.o): Update dependencies.
1281 (m68hc11-tdep.o, valprint.o): Ditto.
1282 (v850-tdep.o, d10v-tdep.o): Ditto.
1283 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1284 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1285 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1286 (sh_opc_h, gdb_sim_sh_h): Define.
1287 (elf_sh_h, elf_bfd_h): Define.
1288 (opcode_m68hc11_h): Define.
1289 (OPCODES_SRC, OPCODES_DIR): define.
1290 (OPCODES): Use $(OPCODES_DIR).
1291 (gdb_sim_d10v_h): Rename sim_d10v_h.
1292 (gdb_sim_arm_h): Rename sim_arm_h.
1293
790c9cf0
KB
12942002-07-26 Kevin Buettner <kevinb@redhat.com>
1295
1296 * utils.c (host_pointer_to_address, address_to_host_pointer):
1297 Change internal_error() message to indicate function responsible
1298 for the error.
1299
9647fa49
KB
13002002-07-26 Kevin Buettner <kevinb@redhat.com>
1301
1302 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1303 calls to local_hex_string_custom().
1304
dabbe2c0
KB
13052002-07-26 Kevin Buettner <kevinb@redhat.com>
1306
1307 * irix5-nat.c: Move IRIX shared library support from here...
1308 * solib-irix.c: ...to here. Revised substantially to work with
1309 generic solib framework.
1310
b96d0a4e
KB
1311 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1312 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1313 * mips-irix-tdep.c: New file.
1314
313fb2f6
KB
1315 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1316 (mips-irix-tdep.o, solib-irix.o): New rules.
1317 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1318 solib-irix.o.
1319 * config/mips/irix6.mt (TDEPFILES): Likewise.
1320 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1321
ab2eaf26
KB
13222002-07-26 Kevin Buettner <kevinb@redhat.com>
1323
177e4768 1324 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1325 disabled (via ``#if 0'') includes.
1326
7244546a
KB
13272002-07-26 Kevin Buettner <kevinb@redhat.com>
1328
1329 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1330 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1331 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1332 Add support for the fpscr register.
1333 * rs6000-nat.c (regmap, fetch_inferior_registers)
1334 (store_inferior_registers, fetch_core_registers): Likewise.
1335
dd7be90a
KB
13362002-07-26 Kevin Buettner <kevinb@redhat.com>
1337
1338 * rs6000-nat.c (language.h): Include.
1339 (special_regs): Delete this array.
1340 (regmap): New function.
1341 (fetch_register, store_register): Use regmap() to map gdb
1342 register numbers to ptrace register numbers. Also, use
1343 outputs from regmap() to make decisions regarding type of
1344 ptrace() call to make. In particular, don't compare against
1345 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1346 (fetch_inferior_registers, store_inferior_registers): Where
1347 possible, obtain register numbers from tdep struct. Don't
1348 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1349 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1350 (LAST_UISA_SP_REGNUM): Delete.
1351
11bf77db
KB
13522002-07-25 Kevin Buettner <kevinb@redhat.com>
1353
1354 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1355 (fetch_registers, store_register, fetch_core_registers): Don't
1356 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1357 regcache_collect() as appropriate.
1358 (find_toc_address): Format hex address with local_hex_string().
1359
06afebeb
AC
13602002-07-25 Andrew Cagney <ac131313@redhat.com>
1361
1362 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1363 bfd/elf32-frv.c.
1364
8c554d79
TT
13652002-07-24 Tom Tromey <tromey@redhat.com>
1366
1367 * jv-exp.y: Marked all strings with _().
1368 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1369 internal_error.
1370 (MethodInvocation, CastExpression, parse_number, yyerror,
1371 java_type_from_name, push_expression_name, yylex): Typo fixes.
1372
e4c242d9
DJ
13732002-07-24 Daniel Jacobowitz <drow@mvista.com>
1374
1375 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1376 (tee_file_flush, tee_file_write, tee_file_fputs)
1377 (tee_file_isatty): New.
1378 * ui-file.h (tee_file_new): Add prototype.
1379
ebf56fd3
AS
13802002-07-24 Aidan Skinner <aidan@velvet.net>
1381
1382 * ada-lang.c: Change k&r style function definitions to prototyped
1383 form.
1384 * ada-typeprint.c: Change k&r style function definitions to prototyped
1385 form.
1386 * ada-valprint.c: Change k&r style function definitions to prototyped
1387 form.
1388
7fb623f7
AC
13892002-07-24 Andrew Cagney <cagney@redhat.com>
1390
1391 * README: Remove reference to remote-bug.
1392 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1393 remote-bug.c.
1394 (m88k-nat.o): Delete rule.
1395 (m88k-tdep.o): Delete rule.
1396 (remote-bug.o): Delete rule.
1397 * MAINTAINERS: Mark as obsolete.
1398 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1399 * m88k-tdep.c: Make file obsolete.
1400 * config/m88k/m88k.mh: Ditto.
1401 * config/m88k/delta88v4.mh: Ditto.
1402 * config/m88k/delta88v4.mt: Ditto.
1403 * config/m88k/delta88.mt: Ditto.
1404 * config/m88k/delta88.mh: Ditto.
1405 * remote-bug.c: Ditto.
1406 * config/m88k/tm-delta88.h: Ditto.
1407 * config/m88k/nm-delta88v4.h: Ditto.
1408 * config/m88k/xm-delta88.h: Ditto.
1409 * config/m88k/xm-dgux.h: Ditto.
1410 * config/m88k/tm-m88k.h: Ditto.
1411 * config/m88k/nm-m88k.h: Ditto.
1412 * config/m88k/tm-delta88v4.h: Ditto.
1413 * m88k-nat.c: Ditto.
1414 * cxux-nat.c: Ditto.
1415 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1416 and m88*-*-* obsolete.
1417 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1418 m88*-*-* obsolete.
1419
37611a2b
AC
14202002-07-24 Andrew Cagney <cagney@redhat.com>
1421
1422 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1423 constant. Same for local pointer variables.
1424 (extract_signed_integer): Ditto.
1425 * defs.h (extract_unsigned_integer): Update.
1426 (extract_signed_integer): Update.
1427
18ff0538
KB
14282002-07-24 Kevin Buettner <kevinb@redhat.com>
1429
1430 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1431 * gdbserver/configure: Regenerate.
1432 * gdbserver/config.in: Regenerate.
1433
1aaa5f99
AC
14342002-07-24 Andrew Cagney <cagney@redhat.com>
1435
1436 * regcache.c (regcache_raw_write): Change buf parameter to a
1437 constant void pointer.
1438 (regcache_raw_read): Change buf parameter to a void pointer.
1439 (legacy_write_register_gen): Change myaddr parameter a constant
1440 void pointer.
1441 (supply_register): Change val parameter to a const void pointer.
1442 * regcache.h (regcache_raw_write): Update declaration.
1443 (regcache_raw_read): Update declaration.
1444 (supply_register): Update declaration.
1445
b4f5539f
TT
14462002-07-24 Tom Tromey <tromey@redhat.com>
1447
1448 * defs.h (gdb_readline_wrapper): Declare.
1449 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1450 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1451 * top.c (gdb_readline_wrapper): New function.
1452 (command_line_input): Use it.
1453
0818c12a
AC
14542002-07-24 Andrew Cagney <cagney@redhat.com>
1455
1456 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1457 regcache_read and regcache_write.
1458 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1459 * regcache.c: Update.
1460 * sh-tdep.c (sh64_push_arguments): Update comment.
1461 (sh_pseudo_register_read): Update.
1462 (sh_pseudo_register_write): Update.
1463 (sh4_register_read): Update.
1464 (sh4_register_write): Update.
1465 (sh64_pseudo_register_read): Update.
1466 (sh64_pseudo_register_write): Update.
1467 (sh64_register_read): Update.
1468 (sh64_register_write): Update.
1469 * i386-tdep.c (i386_extract_return_value): Update.
1470 (i386_extract_struct_value_address): Update.
1471 (i386_extract_return_value): Update.
1472 * blockframe.c (generic_read_register_dummy): Update.
1473 (generic_call_dummy_register_unwind): Update
1474 * infrun.c (write_inferior_status_register): Update.
1475
f7321c06
JB
14762002-07-23 Jim Blandy <jimb@redhat.com>
1477
1478 * parser-defs.h (expression_context_pc): Make this extern.
1479 (Thanks to Michael Snyder.)
1480
2037aebb
AC
14812002-07-23 Andrew Cagney <ac131313@redhat.com>
1482
1483 GDB 5.2.1 released from 5.2 branch.
1484 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1485 * README: Update to mention 5.2.1.
1486
66504d44
MS
14872002-07-23 Mark Salter <msalter@redhat.com>
1488
1489 * remote.c (remote_read_bytes): Fix check for error.
1490
27bae383
KB
14912002-07-22 Kevin Buettner <kevinb@redhat.com>
1492
1493 * aix-thread.c (language.h): Include.
1494 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1495 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1496 Print newlines at end of debug messages.
1497 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1498 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1499
15002002-07-22 Kevin Buettner <kevinb@redhat.com>
1501
1502 * aix-thread.c (ppc-tdep.h): Include.
1503 (special_register_p): New function.
1504 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1505 (store_regs_user_thread): Use register number information from
1506 gdbarch_tdep struct instead of hardcoded offsets relative to
1507 FIRST_UISA_SP_REGNUM.
1508 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1509 special_register_p() instead of using FPLAST_REGNUM and
1510 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1511 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1512 will be MQ's register number.
1513
15142002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1515
1516 * aix-thread.c (ops): Rename to aix_thread_ops.
1517 (base_ops): Rename to base_target.
1518 (ops_attach): Rename to aix_thread_attach.
1519 (ops_detach): Rename to aix_thread_detach.
1520 (ops_resume): Rename to aix_thread_detach.
1521 (ops_wait): Rename to aix_thread_wait.
1522 (ops_kill): Rename to aix_thread_kill.
1523 (init_ops): Rename to init_aix_thread_ops.
1524 (ops_fetch_register): Rename to aix_thread_fetch_register.
1525 (ops_store_register): Rename to aix_thread_store_register.
1526 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1527 (ops_thread_alive): Rename to aix_thread_thread_alive.
1528 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1529 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1530 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1531 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1532 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1533 (store_regs_lib): Rename to store_regs_user_thread.
1534 (store_regs_kern): Rename to store_regs_kernel_thread.
1535
27bae383 15362002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1537
1538 * aix-thread.c (ops_prepare_to_store): Eliminate.
1539 (init_ops): Don't initialize ops.prepare_to_store.
1540 (store_regs_kern): Pre-fetch register buffers from child,
1541 because some registers may not be in the cache. Copy
1542 regs from register cache only if they are cached.
1543 (store_regs_lib): Copy regs from register cache only
1544 if they are cached.
1545 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1546 fill_gprs64): Ditto.
1547
61c5da0b
KB
15482002-07-22 Kevin Buettner <kevinb@redhat.com>
1549
1550 * aix-thread.c (gdb_assert.h): Include.
1551 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1552 register sizes (from register cache) match size of buffer holding
1553 register data.
1554 (fill_sprs32): Change parameter types to match those in the ptrace()
1555 buffer.
1556 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1557 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1558
15592002-07-22 Michael Snyder <msnyder@redhat.com>
1560
1561 * aix-thread.c (supply_sprs64): Cosmetic change.
1562 (supply_sprs32): Cosmetic change.
1563 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1564 (fill_sprs64): Use regcache_collect instead of read_register.
1565 (store_regs_lib): Use regcache_collect instead of
1566 read_register. Use fill_sprs32 instead of fill_sprs64,
1567 if debugging a 32-bit architecture.
1568 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1569 out of the register cache, instead of passing a pointer into
1570 the register cache directly to ptrace. Use regcache_collect
1571 insteaad of read_register.
1572 (ops_prepare_to_store): Use target_read_registers instead
1573 of read_register_bytes.
1574
36479eb1
AS
15752002-07-20 Aidan Skinner <aidan@velvet.net>
1576
1577 * MAINTAINERS: Add self under write after approval.
1578
80ae6ee2
AS
15792002-07-20 Aidan Skinner <aidan@velvet.net>
1580
1581 * ada-tasks.c: Change k&r style function definitions to prototyped
1582 form.
1583
8a8ab2b9
AC
15842002-07-19 Andrew Cagney <ac131313@redhat.com>
1585
1586 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1587 * x86-64-tdep.c: Include "objfiles.h".
1588 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1589 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1590
fb16b900
ML
15912002-07-17 Michal Ludvig <michal@suse.cz>
1592
1593 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1594 (update_context): Initialise cfa variable.
1595
0fe7bf7b
MS
15962002-07-17 Michael Snyder <msnyder@redhat.com>
1597
1598 * aix-thread.c: Shorten some long lines.
1599 Bring comments into line with code spec.
1600
488f131b
JB
16012002-07-18 Joel Brobecker <brobecker@gnat.com>
1602
1603 * infrun.c: Re-indent using gdb_indent.sh.
1604
46c415d2
JB
16052002-07-18 Joel Brobecker <brobecker@gnat.com>
1606
1607 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1608 Leave the indentation temporarily untouched, to minimize the diffs.
1609
cdecafbe
EZ
16102002-07-18 Elena Zannoni <ezannoni@redhat.com>
1611
1612 * stabsread.c: Make os9k sections of the code obsolete,
1613 for real this time.
1614 * stabsread.h: Make os9k sections of the code obsolete.
1615
7b6aa020
ML
16162002-07-18 Michal Ludvig <mludvig@suse.cz>
1617
09ec9b38
ML
1618 * linux-low.c (regsets_store_inferior_registers): Add free()
1619 at the end of a loop to prevent memory leak.
1620 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1621 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1622 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1623 line a comment.
4894ac5d 1624 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1625
233282cd
JB
16262002-07-17 Jim Blandy <jimb@redhat.com>
1627
1628 * macrocmd.c (info_macro_command): Remove newline from error
1629 message.
1630
7b6aa020 16312002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1632
1633 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1634 (sh_gdbarch_init): Use it for sh-dsp.
1635
f7ef9339
KB
16362002-07-16 Kevin Buettner <kevinb@redhat.com>
1637
1638 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1639 64-bit DWARF2 format.
1640
8dd72958
JB
16412002-07-16 Joel Brobecker <brobecker@gnat.com>
1642
1643 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1644 <sys/proc.h> when not available.
1645
a99a9e1b
AC
16462002-07-16 Andrew Cagney <ac131313@redhat.com>
1647
1648 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1649 * stabsread.c: Make os9k sections of the code obsolete.
1650 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1651 * config/i386/i386os9k.mt: Make file obsolete.
1652 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1653 (COMMON_OBS): Remove os9kread.o
1654 (SFILES): Remove os9kread.c.
1655 (os9kread.o, remote-os9k.o): Make target obsolete.
1656 * remote-os9k.c: Make file obsolete.
1657 * os9kread.c: Make file obsolete.
1658 * Makefile.in
1659
7a3085c1
AC
16602002-07-16 Andrew Cagney <ac131313@redhat.com>
1661
1662 * NEWS: Mention that the FR30 has been made obsolete.
1663 * fr30-tdep.c: Make file obsolete.
1664 * config/fr30/tm-fr30.h: Ditto.
1665 * config/fr30/fr30.mt: Ditto.
1666 * configure.tgt: Make fr30-*-elf obsolete.
1667 * MAINTAINERS: Make fr30-elf obsolete.
1668
28a93f5a
PM
16692002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1670
1671 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1672 found is not inside a section.
1673
be006b8b
KB
16742002-07-15 Kevin Buettner <kevinb@redhat.com>
1675
1676 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1677 strerror().
1678 (pdc_realloc): Use xrealloc() instead of realloc().
1679
14fa3751
KB
16802002-07-15 Kevin Buettner <kevinb@redhat.com>
1681
1682 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1683 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1684 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1685 macros.
1686
42cc437f
KB
16872002-07-15 Kevin Buettner <kevinb@redhat.com>
1688
1689 * aix-thread.c (ptrace_check): Eliminate goto.
1690 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1691 problem.
1692
8e2c28d4
KB
16932002-07-15 Kevin Buettner <kevinb@redhat.com>
1694
1695 * aix-thread.c (gdbcmd.h): Include.
1696 (DEBUG, DBG, DBG2, dbg): Eliminate.
1697 (debug_aix_thread): New static global.
1698 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1699 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1700 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1701 invocations to DBG and DBG2 macros to test against
1702 ``debug_aix_thread'' and call fprintf_unfiltered().
1703 (_initialize_aix_thread): Add new command "set debug aix-thread".
1704
30413464
AC
17052002-07-15 Andrew Cagney <ac131313@redhat.com>
1706
1707 From Gerhard Tonn <TON@de.ibm.com>:
1708 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1709 instead of supply_register.
1710
7c43edc1
AC
17112002-07-15 Andrew Cagney <ac131313@redhat.com>
1712
1713 * dwarf2cfi.c: Include "gdb_assert.h".
1714 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1715 non-NULL.
1716 (update_context): Do not use __func__. Add missing ``break''.
1717 (update_context): Do not use __func__.
1718
9364a0ef
EZ
17192002-07-15 Elena Zannoni <ezannoni@redhat.com>
1720
1721 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1722 and its setting. Set gdbarch instruction printing functions
1723 directly. For non-rs6000 case use new function
1724 gdb_print_insn_powerpc.
1725 (gdb_print_insn_powerpc): New function.
1726
3fbeef0b
AC
17272002-07-13 Andrew Cagney <ac131313@redhat.com>
1728
92eb23c5 1729 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1730 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1731 * configure.tgt: Mark d30v-*-* as obsolete.
1732 * d30v-tdep.c: Mark file as obsolete.
1733 * config/d30v/d30v.mt: Ditto.
1734 * config/d30v/tm-d30v.h: Ditto.
1735
aacb1f0a
AS
17362002-07-13 Aidan Skinner <aidan@velvet.net>
1737
1738 * ada-tasks.c (add_task_entry): replace calls to
1739 malloc() with xmalloc
1740 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1741
1742 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1743 ada_finish_decode_line_1, all_sals_for_line
1744 ada_breakpoint_rewrite): replace calls to free() with xfree()
1745
c11d79f2
KB
17462002-07-12 Kevin Buettner <kevinb@redhat.com>
1747
1748 From Nicholas Duffek (with minor changes by Martin Hunt,
1749 Louis Hamilton, and Kevin Buettner):
1750 * aix-thread.c: New file.
1751
8e19ed76
PS
17522002-07-12 Petr Sorfa <petrs@caldera.com>
1753
1754 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1755 complaint for invalid attribute class or form.
1756 (read_func_scope): DW_AT_frame_base
1757 better handling of DW_AT_block*.
1758 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1759 better handling of DW_AT_block*.
1760 (read_common_block): DW_AT_location
1761 better handling of DW_AT_block*.
1762 (read_partial_die): DW_AT_location better handling
1763 of DW_AT_block*.
1764 (new_symbol): DW_AT_external better handling of
1765 DW_AT_block*. Proper initialization of variable
1766 "addr".
1767 (attr_form_is_block): New function that returns true
1768 if the attribute's form is of DW_FORM_block*.
1769
295401f7
DJ
17702002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1771
1772 * valops.c (find_method_list): Remove comment about
1773 removed STATIC_MEMFUNCP argument.
1774 (value_find_oload_method_list): Likewise.
1775
e42dc924
KB
17762002-07-12 Kevin Buettner <kevinb@redhat.com>
1777
1778 From Nicholas Duffek:
1779 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1780 target_new_objfile_hook.
1781
6904b546
KB
17822002-07-12 Kevin Buettner <kevinb@redhat.com>
1783
1784 From Nicholas Duffek:
1785 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1786 csect.
1787
53fe9346
AC
17882002-07-12 Andrew Cagney <cagney@redhat.com>
1789
1790 * MAINTAINERS: Mention --enable-sim-build-warnings.
1791 (m68hc11-elf): Disable sim build warnings.
1792 (m32r-elf): Mark as broken obsolete candidate.
1793 (x86_64-linux-gnu): Mark as buildable with -Werror.
1794 (arm-elf): Change -w to ``,'' which enables warnings but not
1795 -Werror.
1796
af5f3db6
AC
17972002-07-12 Andrew Cagney <ac131313@redhat.com>
1798
1799 * bcache.h: Update copyright.
1800 (struct bstring, struct bcache): Move definition to "bcache.c".
1801 Replaced by opaque declaration.
1802 (bcache_xfree): Replace free_bcache.
1803 (bcache_xmalloc, bcache_memory_used): Declare.
1804
1805 * bcache.c: Update copyright.
1806 (struct bstring, struct bcache): Moved to here from "bcache.h".
1807 Update comments.
1808 (bcache_xmalloc, bcache_memory_used): New functions.
1809 (bcache_xfree): Replace function free_bcache.
1810
1811 * Makefile.in (objfiles.o): Add $(bcache_h).
1812 (objfiles_h): Remove $(bcache_h).
1813 (symfile.o): Add $(bcache_h).
1814
1815 * symmisc.c: Update copyright.
1816 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1817 (print_objfile_statistics): Use bcache_memory_used.
1818
1819 * symfile.c: Include "bcache.h".
1820 (reread_symbols): Use bcache_xfree.
1821 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1822 (add_psymbol_to_list): Pass psymbol_cache by value.
1823 (add_psymbol_with_dem_name_to_list): Ditto.
1824
1825 * objfiles.h: Update copyright.
1826 (struct bcache): Declare opaque. Do not include "bcache.h".
1827 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1828 bcache'' pointers.
1829 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1830
1831 * objfiles.c: Include "bcache.h". Update copyright.
1832 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1833 macro_cache.
1834 (free_objfile): Use bcache_xfree.
1835
444199e7
GS
18362002-07-11 Grace Sainsbury <graces@redhat.com>
1837
1838 * monitor.c (monitor_fetch_register): Make name a constant.
1839 (monitor_store_register): Same.
1840
261397f8
DJ
18412002-07-11 Daniel Jacobowitz <drow@mvista.com>
1842
1843 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1844 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1845 (finish_block) For non-function blocks, hash the symbol table. For
1846 function blocks, mark the symbol table as unhashed.
1847 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1848 (msymbol_hash_iw): Likewise.
1849 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1850 value.
1851 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1852 (lookup_minimal_symbol): Likewise for both.
1853 * symtab.h (struct block): Add `hashtable' flag. Comment the
1854 hashtable.
1855 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1856 (ALL_BLOCK_SYMBOLS): Update.
1857 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1858 (struct symbol): Add `hash_next' pointer.
1859 * symtab.c (lookup_block_symbol): Search using the hash table when
1860 possible.
1861 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1862 (search_symbols, find_addr_symbol): Likewise.
1863
1864 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1865 (read_dst_symtab): Likewise.
1866 * jv-lang.c (get_java_class_symtab): Likewise.
1867 * mdebugread.c: Include "gdb_assert.h".
1868 (shrink_block): Assert that the block being modified is not hashed.
1869 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1870 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1871 symbols.
1872 (dump_symtab): Recognize hashed blocks.
1873 * printcmd.c (print_frame_args): Assert that function blocks do not
1874 have hashed symbol tables.
1875 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1876 (fill_in_ada_prototype, debug_print_block): Likewise.
1877 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1878
6f0eaa01
CV
18792002-07-11 Corinna Vinschen <vinschen@redhat.com>
1880
1881 * stack.c (print_frame): Use result of frame_address_in_block()
1882 instead of fi->pc when evaluating symbols.
1883 (backtrace_command_1): Ditto.
1884
a208b0cb
AC
18852002-07-11 Andrew Cagney <cagney@redhat.com>
1886
1887 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1888 Make static.
1889
1890 * arm-tdep.c (arm_register_name): Make return type constant.
1891
a6b6b089
AC
18922002-07-10 Andrew Cagney <ac131313@redhat.com>
1893
5ae5f592
AC
1894 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1895 prototype.
1896 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1897 * s390-tdep.c (s390_fp_regnum): Ditto.
1898 (s390_read_fp): Ditto.
1899 (s390_pop_frame): Ditto.
1900 (_initialize_s390_tdep): Ditto.
1901 * remote.c (get_remote_state): Ditto.
1902 * procfs.c (mappingflags): Ditto.
1903 * memattr.c (_initialize_mem): Ditto.
1904 * mcore-tdep.c (mcore_pop_frame): Ditto.
1905 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1906 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1907 * language.c (set_case_str): Ditto.
1908 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1909 * frv-tdep.c (new_variant): Ditto.
1910 (frv_stopped_data_address): Ditto.
1911 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1912 (context_alloc): Ditto.
1913 (frame_state_alloc): Ditto.
1914 (unwind_tmp_obstack_init): Ditto.
1915 (unwind_tmp_obstack_free): Ditto.
1916 (cfi_read_fp): Ditto.
1917 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1918 (cris_pop_frame): Ditto.
1919 * c-lang.c (scanning_macro_expansion): Ditto.
1920 (finished_macro_expansion): Ditto.
1921 (c_preprocess_and_parse): Ditto.
1922 * gdbarch.sh: Ditto.
1923 * gdbarch.h, gdbarch.c: Regenerate.
1924 * config/mn10200/tm-mn10200.h: Adjust indentation.
1925 * target.c: Adjust indentation.
1926 * symtab.h: Adjust indentation.
1927 * stabsread.h: Adjust indentation.
1928 * remote-es.c: Adjust indentation.
1929 * os9kread.c: Adjust indentation.
1930
19312002-07-10 Andrew Cagney <ac131313@redhat.com>
1932
a6b6b089
AC
1933 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1934 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1935
a1789893
GS
19362002-07-10 Grace Sainsbury <graces@redhat.com>
1937
1938 * NEWS: Mention m68k, mcore multi-arching.
1939 * MAINTAINERS: Change status of m68k, mcore to reflect
1940 multi-arching.
1941
02f0d45d
DJ
19422002-07-10 Daniel Jacobowitz <drow@mvista.com>
1943
1944 * valops.c (find_overload_match): Free oload_syms.
1945
f15f768e
JB
19462002-07-09 Joel Brobecker <brobecker@gnat.com>
1947
1948 Define HAVE_SYS_PROC_H if sys/proc.h exists
1949 * configure.in: Add check for sys/proc.h
1950 * config.in: Regenerate.
1951 * configure: Regenerate.
1952
902a7139
GS
19532002-07-09 Grace Sainsbury <graces@redhat.com>
1954
1955 * config/m68k/tm-m68k.h: Remove macros wrapped in
1956 #if !GDB_MULTI_ARCH.
1957
82e0fd98
DB
19582002-07-09 David O'Brien <obrien@FreeBSD.org>
1959
1960 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1961 (perror_with_name, remote_close, remote_open, expect, play): Static.
1962
a534e424
AC
19632002-07-08 Andrew Cagney <ac131313@redhat.com>
1964
1965 * config.in, configure: Regenerate.
1966
9b94f7bf
MK
19672002-07-08 Mark Kettenis <kettenis@gnu.org>
1968
1969 * dwarf2cfi.c: Include "gcore.h".
1970 (execute_stack_op): Fix implementation of the
1971 DW_OP_deref and DW_OP_deref_size operators by letting do their
1972 lookup in the target.
1973
1d34db41
MK
19742002-07-07 Mark Kettenis <kettenis@gnu.org>
1975
1976 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1977 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1978 tdep->sc_sp_offset.
1979
79d5b63a
DJ
19802002-07-05 Daniel Jacobowitz <drow@mvista.com>
1981
1982 Fix PR gdb/595, gdb/602
1983 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1984 Don't call value_cast, just read the vtable pointer; update comments
1985 to match.
1986
3bb912e8
GS
19872002-07-05 Grace Sainsbury <graces@redhat.com>
1988
1989 * config/mcore/tm-mcore.h: Remove file.
1990 * config/mcore/mcore.mt: Remove definition of TM_FILE
1991 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1992
ca39387d
MK
19932002-07-05 Mark Kettenis <kettenis@gnu.org>
1994
1995 * i386bsd-tdep.c: Include "gdb_string.h".
1996
efdc1108
GS
19972002-07-04 Grace Sainsbury <graces@redhat.com>
1998
1999 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2000 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2001 mcore-tdep.
2002 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2003 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2004 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2005 (RETVAL_REGNUM): Move macros from tm-mcore.h
2006 (mcore_reg_struct_has_addr): New function.
2007 (mcore_gdbarch_init): Added initializations for the macros removed
2008 from tm-mcore.h.
2009
bb21884d
MK
20102002-07-04 Mark Kettenis <kettenis@gnu.org>
2011
2012 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2013 traditonal string branding within the ELF header.
2014
228c6d41
DJ
20152002-07-04 Daniel Jacobowitz <drow@mvista.com>
2016
2017 * symtab.c (remove_params): New function.
2018 (make_symbol_overload_list): Use it instead of cplus_demangle.
2019 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2020
2404952e
MK
20212002-07-04 Mark Kettenis <kettenis@gnu.org>
2022
e5e4acad
MK
2023 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2024
baadce09
MK
2025 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2026 New variables.
2027 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2028 and tdep->sigtramp_end.
2029 * i386obsd-nat.c: New file.
2030 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2031
2404952e
MK
2032 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2033 Don't call get_current_frame().
2034
9b4f1ba7
PM
20352002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2036
2037 * i386-nat.c (child_post_startup_inferior): New function
2038 calling i386_cleanup_dregs if
2039 I386_USE_GENERIC_WATCHPOINTS is defined.
2040 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2041 conditional to acknowledge that i386-nat.c has its
2042 own child_post_startup_inferior function.
2043
c0d1d883
MK
20442002-07-04 Mark Kettenis <kettenis@gnu.org>
2045
00f8375e
MK
2046 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2047 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2048 instead of MAX_REGISTER_RAW_SIZE.
2049 (i386_extract_return_value, i386_extract_struct_value_address):
2050 Convert to use regcache.
2051 (i386_gdbarch_init): Set max_register_raw_size and
2052 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2053 Set extract_return_value and extract_struct_value_address instead
2054 of their deprecated variants.
2055
c0d1d883
MK
2056 Convert i386 target to generic dummy frames.
2057 * i386-tdep.c: Include "symfile.h".
2058 (i386_frameless_signal_p): Consider a function to be frameless if
2059 the pc points at the first instruction of the function.
2060 (i386_frame_chain): Handle (generic) call dummies.
2061 (i386_frame_saved_pc): Likewise.
2062 (i386_frame_init_saved_regs): Remove code dealing with call
2063 dummies on the stack.
2064 (i386_push_dummy_frame): Removed.
2065 (i386_call_dummy_words): Removed.
2066 (i386_fix_call_dummy): Removed.
2067 (i386_push_return_address): New function.
2068 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2069 parameter, and don't call get_current_frame.
2070 (i386_pop_frame): New function.
2071 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2072 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2073 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2074 call_dummy_length to 0, set call_dummy_words to NULL, set
2075 sizeof_call_dummy_words to 0, set fix_call_dummy to
2076 generic_fix_call_dummy, set pc_in_call_dummy to
2077 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2078 generic_push_dummy_frame, set push_return_address to
2079 i386_push_return_address and set frame_chain_valid to
2080 generic_file_frame_chain_valid.
2081
638c1580
ML
20822002-07-04 Michal Ludvig <mludvig@suse.cz>
2083
2084 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2085 byte offsets instead of an array of indexes.
2086 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2087
049ee0e4
AC
20882002-07-03 Andrew Cagney <ac131313@redhat.com>
2089
2090 * gdbarch.sh (struct regcache): Add opaque declaration.
2091 (EXTRACT_RETURN_VALUE): New architecture method.
2092 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2093 * gdbarch.h, gdbarch.c: Regenerate.
2094 * arch-utils.c (legacy_extract_return_value): New function.
2095 * arch-utils.h (legacy_extract_return_value): Declare.
2096 * values.c (value_being_returned): Re-enable code handling
2097 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2098 deprecated_grub_regcache_for_registers call to block handling
2099 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2100 (EXTRACT_RETURN_VALUE): Do not define.
2101
4e0d9804
GS
21022002-07-03 Grace Sainsbury <graces@redhat.com>
2103
2104 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2105 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2106 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2107 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2108 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2109 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2110 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2111 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2112 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2113 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2114 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2115 argument so the function fits the prototype in the architecture
2116 vector.
2117 (mcore_pop_frame): Remove argument so the function fits the
2118 prototype. Use get_current_frame instead of the argument.
2119 (mcore_push_arguments): Change type of struct_return so the
2120 function can be used in the architecture vector.
2121 (mcore_store_struct_return): Add.
2122 (mcore_frame_init_saved_regs): Add.
2123 (mcore_gdbarch_init): Add function calls to replace the macros
2124 removed from tm-mcore.h
2125
36160dc4
AC
21262002-07-03 Andrew Cagney <ac131313@redhat.com>
2127
2128 * infcmd.c (print_return_value): Remove compatibility code calling
2129 deprecated_grub_regcache_for_registers.
2130
2131 * values.c: Include "regcache.h".
2132 (value_being_returned): Update. Use
2133 deprecated_grub_regcache_for_registers to extract the register
2134 buffer address.
2135 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2136 ``struct regcache''.
2137 * Makefile.in (values.o): Add dependency on $(regcache_h).
2138
2139 * inferior.h (run_stack_dummy): Change type of second parameter to
2140 a ``struct regcache''.
2141 * valops.c (hand_function_call): Change type of retbuf to ``struct
2142 regcache''. Allocate using regcache_xmalloc, clean using
2143 make_cleanup_regcache_xfree.
2144 * infcmd.c (run_stack_dummy): Update. Use
2145 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2146
2147 * regcache.c (do_regcache_xfree): New function.
2148 (make_cleanup_regcache_xfree): New function.
2149 * regcache.h (make_cleanup_regcache_xfree): Declare.
2150
e64d9b3d
MH
21512002-07-03 Martin M. Hunt <hunt@redhat.com>
2152
4dd79c29
MH
2153 * event-top.c (command_line_handler): Don't read past
2154 beginning of buffer.
e64d9b3d 2155
4dd79c29
MH
21562002-07-03 Martin M. Hunt <hunt@redhat.com>
2157
e64d9b3d
MH
2158 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2159 struct frame_id.
2160 (varobj_create): Store frame_id for root.
2161 (varobj_gen_name): Use xasprintf.
2162 (varobj_update): Save and restore frame using get_frame_id() and
2163 frame_find_by_id().
2164 (create_child): Use xasprintf.
2165 (new_root_variable): Initialize frame_id.
2166 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2167 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2168 to prevent memory leak.
2169
26e6c56a
AC
21702002-07-03 Andrew Cagney <ac131313@redhat.com>
2171
2172 * valops.c (hand_function_call): Move declaration of retbuf to
2173 start of function, allocate using malloc, add a cleanup but before
2174 the inf_status cleanup, cleanup the buffer. Rename local variable
2175 old_chain to inf_status_cleanup.
2176
f436dd25
MH
21772002-07-03 Martin M. Hunt <hunt@redhat.com>
2178
2179 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2180
2181 * cli/cli-decode.c (cmd_func_p): New function.
2182 (cmd_func): New function.
2183
2184 * command.h: Add cmd_func() and cmd_func_p().
2185
4cfe2084
GS
21862002-07-03 Grace Sainsbury <graces@redhat.com>
2187
2188 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2189 (REGISTER_SIZE): Remove.
2190 (MAX_REGISTER_RAW_SIZE): Remove.
2191 (REGISTER_VIRTUAL_TYPE): Remove.
2192 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2193 (REGISTER_NAME): Remove.
2194 (USE_GENERIC_DUMMY_FRAMES): Remove.
2195 (CALL_DUMMY): Remove.
2196 (CALL_DUMMY_START_OFFSET): Remove.
2197 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2198 (CALL_DUMMY_LOCATION): Remove.
2199 (FIX_CALL_DUMMY): Remove.
2200 (CALL_DUMMY_ADDRESS): Remove.
2201 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2202 (SAVE_DUMMY_FRAME_TOS): Remove.
2203 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2204 (mcore_register_virtual_type): New function.
2205 (mcore_register_byte): New function.
2206 (mcore_register_size): New function.
2207 (mcore_register_name): New function.
2208 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2209 macros removed from tm-mcore.h.
2210 (mcore_dump_tdep): Add.
2211 (_initialize_mcore_tdep): Add gdbarch_register call.
2212
4fd667e9
MK
22132002-07-03 Mark Kettenis <kettenis@gnu.org>
2214
2215 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2216 frameless_look_for_prologue, such that we actually call this
2217 function.
2218
42f99ac2
JB
22192002-07-02 Joel Brobecker <brobecker@gnat.com>
2220
2221 * frame.h (frame_address_in_block): New function.
2222
2223 * blockframe.c (frame_address_in_block): New function extracted
2224 from get_frame_block().
2225 (get_frame_block): Use frame_address_in_block().
2226 (block_innermost_frame): Use frame_address_in_block() to match
2227 the frame pc address against the block boundaries rather than
2228 the frame pc directly. This prevents a failure when a frame pc
2229 is actually a return-address pointing immediately after the end
2230 of the given block.
2231
103a1597 22322002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2233
2234 * MAINTAINERS: Add self under write after approval.
2235
22362002-07-02 Grace Sainsbury <graces@redhat.com>
2237
103a1597
GS
2238 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2239 used in architecture vector. The default is
2240 m68k_local_breakpoint_from_pc.
2241 (m68k_local_breakpoint_from_pc): Add.
2242 (enum): Add register numbers from tm-m68k.h.
2243 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2244 vector.
2245 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2246 GDB_MULTI_ARCH_PARTIAL.
2247 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2248 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2249 m68k-tdep.c.
2250 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2251 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2252 to enum in m68k-tdep.c
2253
7a5a0534
JB
22542002-07-02 Joel Brobecker <brobecker@gnat.com>
2255
2256 * solib-osf.c (open_map): Compute the list of shared libraries
2257 loaded by the inferior, rather than the list of libraries loaded
2258 by GDB itself. Otherwise, GDB ends up reading the symbols from
2259 the wrong shared libraries...
2260
6f558d74
MK
22612002-07-02 Mark Kettenis <kettenis@gnu.org>
2262
b7d15bf7
MK
2263 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2264 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2265 macros.
2266 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2267 Remove functions.
2268 (FRAMELESS_SIGNAL): Remove function.
2269 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2270 i386_linux_saved_pc_after_call): Removed.
2271 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2272 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2273 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2274
6bff26de
MK
2275 * i386-tdep.c (i386_frameless_signal_p): New function.
2276 (i386_frame_chain): Deal with frameless signals.
2277 (i386_sigtramp_saved_sp): New function.
2278 (i386_frame_saved_pc): Deal with frameless signals.
2279 (i386_saved_pc_after_call): Make sure the correct value is
2280 returned just after entry into a sigtramp.
2281 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2282 i386fbsd4_sc_sp_offset): New variables.
2283 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2284 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2285 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2286 similiar to what we already did for sc_pc_offset.
2287 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2288 tdep->sc_sp_offset.
2289
6f558d74
MK
2290 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2291
145564b7
ML
22922002-07-02 Michal Ludvig <mludvig@suse.cz>
2293
2294 * config/i386/tm-x86-64linux.h: New.
2295 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2296 definitions.
2297 * config/i386/nm-x86-64.h: Rename to ...
2298 * config/i386/nm-x86-64linux.h: ... this one.
2299 * config/i386/x86-64linux.mh: Reflect the above change.
2300
3a1e71e3
MK
23012002-07-01 Mark Kettenis <kettenis@gnu.org>
2302
21d0e8a4
MK
2303 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2304 with sigcontext_addr. Add sc_sp_offset.
2305 (i386bsd_sigtramp_saved_pc): Remove prototype.
2306 (i386bsd_sicontext_addr): Add prototype.
2307 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2308 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2309 (i386_svr4_sigtramp_saved_pc): Removed.
2310 (i386_svr4_sigcontext_addr): New function.
2311 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2312 Initialize tdep->sigcontext_addr instead. Initialize
2313 tdep->sc_pc_offset and tdep->sc_sp_offset.
2314 (i386_gdbarch_init): Likewise.
2315 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2316 any more.
2317 (i386bsd_sigtramp_saved_pc): Remove function.
2318 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2319 Initialize tdep->sigcontext_addr instead. Initialize
2320 tdep->sc_pc_offset.
2321 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2322 of tdep->sigtramp_saved_pc.
2323 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2324 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2325 instead.
2326
3a1e71e3
MK
2327 * i386-tdep.c (i386_frameless_function_invocation,
2328 i386_frame_num_args, i386_frame_init_saved_regs,
2329 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2330 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2331 i386_extract_return_value, i386_store_return_value,
2332 i386_extract_struct_value_address, i386_register_virtual_type,
2333 i386_register_convertible, i386_register_convert_to_virtual,
2334 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2335 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2336 static.
2337
52e9098c
MK
23382002-07-01 Mark Kettenis <kettenis@gnu.org>
2339
77b13a25
MK
2340 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2341
52e9098c
MK
2342 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2343 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2344 this macro. Include "value.h".
2345
1b372fff
AS
23462002-06-30 Aidan Skinner <aidan@velvet.net>
2347
2348 * ada-exp.tab.c: remove as it's a generated file
2349 * ada-lex.c: remove as it's a generated file
2350
9c5045b5
MK
23512002-06-30 Mark Kettenis <kettenis@gnu.org>
2352
4a93c5bb
MK
2353 * config/i386/tm-i386.h (struct frame_info, struct
2354 frame_saved_regs, struct value, struct type): Remove forward
2355 declarations.
2356
322d4fe0
MK
2357 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2358 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2359 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2360 (FILL_FPXREGSET): Define.
2361
fdd8263d
MK
2362 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2363
482e577b
MK
2364 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2365 i[3456]86-*-netbsd* case.
2366 * config/i386/tm-obsd.h: Removed.
2367 * config/i386/obsd.mt: Removed.
2368 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2369 core-aout.o.
2370 (MH_CFLAGS): Add -DYYDEBUG=0.
2371
6916549a
MK
2372 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2373 i386nbsd_sc_pc_offset on OpenBSD too.
2374
9c5045b5
MK
2375 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2376 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2377 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2378 define.
2379 * i386bsd-tdep.c: Include "arch-utils.h".
2380 (i386bsd_aout_in_solib_call_trampoline): New function.
2381 (i386bsd_init_abi): Set in_solib_call_trampoline to
2382 i386bsd_aout_in_solib_call_trampoline.
2383 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2384 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2385
aa84d1bb
AC
23862002-06-28 Andrew Cagney <ac131313@redhat.com>
2387
2388 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2389 (struct obstack, struct bcache): Add opaque declarations.
2390 * Makefile.in (macrotab_h): Update
2391
b4d83933
AC
23922002-06-28 Andrew Cagney <ac131313@redhat.com>
2393
2394 * blockframe.c (generic_find_dummy_frame): Change return type to
2395 ``struct regcache''.
2396 (struct dummy_frame): Replace field ``registers'' with regcache, a
2397 struct regcache object.
2398 (generic_find_dummy_frame): Update.
2399 (generic_push_dummy_frame): Update. Use regcache_xfree,
2400 regcache_xmalloc and regcache_cpy.
2401 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2402 regcache_xfree.
2403 (deprecated_generic_find_dummy_frame): Update.
2404 (generic_read_register_dummy): Update. Use
2405 regcache_read_as_address.
2406 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2407 (generic_get_saved_register): Update. Use regcache_read.
2408
08c0b5bc
AC
24092002-06-28 Andrew Cagney <ac131313@redhat.com>
2410
2411 * Makefile.in (objfiles_h): Add $(bcache_h).
2412 * objfiles.h: Include "bcache.h".
2413
2414 * Makefile.in (symtab_h): Remove $(bcache_h).
2415 * symtab.h: Do not include "bcache.h".
2416
1f89801a
AC
24172002-06-28 Andrew Cagney <ac131313@redhat.com>
2418
2419 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2420 generic_func_frame_chain_valid.
2421
b9644b58
DB
24222002-06-28 David O'Brien <obrien@FreeBSD.org>
2423
2424 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2425 * config/i386/tm-fbsd.h: Likewise.
2426
dd486634
AC
24272002-06-28 Andrew Cagney <ac131313@redhat.com>
2428
2429 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2430 generic_unwind_get_saved_register.
2431
0b434a00
AC
24322002-06-27 Andrew Cagney <ac131313@redhat.com>
2433
2434 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2435 * regcache.c (supply_register): Add missing argument to
2436 register_buffer call.
2437
f30e5a77
AC
24382002-06-27 Andrew Cagney <ac131313@redhat.com>
2439
2440 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2441 Solaris /bin/grep does not not like it. From Peter Schauer.
2442
9f064c95
TT
24432002-06-26 Tom Tromey <tromey@redhat.com>
2444
2445 * command.h (add_setshow_cmd): Declare.
2446 (add_setshow_cmd_full): Declare.
2447 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2448 returns void. Use add_setshow_cmd_full.
2449 (add_setshow_cmd_full): New function.
2450 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2451 (add_setshow_boolean_cmd): Likewise.
2452
099c7589
JT
24532002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2454
2455 * config/vax/tm-vax.h: Protect from multiple inclusion.
2456 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2457 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2458 * config/vax/tm-vaxbsd.h: ...here. New file.
2459 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2460
1d049c5e
JT
24612002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2462
2463 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2464 (BELIEVE_PCC_PROMOTION): Remove.
2465 (AP_REGNUM): Move to...
2466 * config/vax/nm-vax.h: ...here.
2467 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2468 (vax_breakpoint_from_pc): New function.
2469 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2470 and gdbarch_believe_pcc_promotion.
2471
4791e091
JT
24722002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2473
2474 * Makefile.in (vax_tdep_h): Define.
2475 (vax-tdep.o): Use $(vax_tdep_h).
2476 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2477 (vax_dump_tdep): New function.
2478 (_initialize_vax_tdep): Register vax_dump_tdep.
2479 * vax-tdep.h: Include osabi.h.
2480 (struct gdbarch_tdep): New.
2481
da130f98
AC
24822002-06-26 Andrew Cagney <cagney@redhat.com>
2483
2484 * frame.h (deprecated_generic_find_dummy_frame): Rename
2485 generic_find_dummy_frame.
2486 * blockframe.c (generic_find_dummy_frame): Make static.
2487 (deprecated_generic_find_dummy_frame): New function.
2488 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2489 generic_find_dummy_frame with deprecated_find_dummy_frame.
2490 (sh64_nofp_frame_init_saved_regs): Ditto.
2491 (sh_fp_frame_init_saved_regs): Ditto.
2492 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2493 (s390_frame_chain): Ditto.
2494 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2495
6300c360
GS
24962002-06-26 Grace Sainsbury <graces@redhat.com>
2497
2498 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2499 gdbarch vector are at the top.
2500 (NUM_REGS): Remove.
2501 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2502 (FRAME_ARGS_ADDRESS): Remove.
2503 (FRAME_LOCALS_ADDRESS): Remove.
2504 (FRAME_NUM_ARGS): Remove.
2505 (FRAME_ARGS_SKIP): Remove.
2506 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2507 (m68k_gdbarch_init): Add gdbarch initializations for macros
2508 undefined in tm-m68k.h
2509
1c617db8
GS
25102002-06-26 Grace Sainsbury <graces@redhat.com>
2511
2512 * monitor.h: Add the function regname to monitor_ops
2513 structure. This way NUM_REGS does not have to be a constant.
2514 * monitor.c (monitor_fetch_register): Added support for regname
2515 function. The function is called if the array regnames is NULL.
2516 (monitor_store_register): Same.
da130f98
AC
2517 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2518 regnames array.
1c617db8
GS
2519 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2520 cpu32bug_cmds.regname to point to new function.
2521 * abug-rom.c (abug_regname): Same as above.
2522 (init_abug_cmds): Same.
2523 * dbug-rom.c (dbug_regname): Same as above.
2524 (init_dbug_cmds): Same.
2525 * remote-est.c (est_regname): Same.
2526 (init_est_cmds): Same.
2527 * rom68k-rom.c (rom68k_regname): Same.
2528 (init_rom68k_cmds): Same.
2529
ea9365bb
TT
25302002-06-25 Tom Tromey <tromey@redhat.com>
2531
2532 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2533
72cec141
AC
25342002-06-25 Andrew Cagney <cagney@redhat.com>
2535
2536 * infrun.c (stop_registers): Change variable's type to ``struct
2537 regcache'''.
2538 (xmalloc_inferior_status): Delete function.
2539 (free_inferior_status): Delete function.
2540 (normal_stop): Use regcache_cpy.
2541 (struct inferior_status): Change type of fields ``stop_registers''
2542 and ``registers'' to ``struct regcache''.
2543 (write_inferior_status_register): Use regcache_write.
2544 (save_inferior_status): Instead of calling
2545 xmalloc_inferior_status, allocate the inf_status buffer directly.
2546 Use regcache_dup_no_passthrough and regcache_dup to save the
2547 buffers.
2548 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2549 Replace the stop_registers regcache instead of overriding it. Use
2550 regcache_xfree. Instead of calling free_inferior_status, xfree
2551 the buffer directly.
2552 (discard_inferior_status): Use regcache_xfree. Instead of calling
2553 free_inferior_status, xfree the buffer directly.
2554 (build_infrun): Use regcache_xmalloc.
2555 (_initialize_infrun): Delete redundant call to build_infrun.
2556
2557 * Makefile.in (infcmd.o): Add $(regcache_h).
2558
2559 * infcmd.c: Include "regcache.h".
2560 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2561 obtain the address of `stop_registers' register buffer.
2562 (print_return_value): Ditto.
2563
2564 * inferior.h (struct regcache): Add opaque declaration.
2565 (stop_registers): Change variable's declared type to ``struct
2566 regcache''.
2567
defc6f8c
TT
25682002-06-24 Tom Tromey <tromey@redhat.com>
2569
c0e624e7
TT
2570 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2571 * target.c (initialize_targets): Fixed typo in
2572 trust-readonly-sections `show' documentation.
2573
defc6f8c
TT
2574 * main.c: Marked all strings with _().
2575
2b236d82
DH
25762002-06-24 Don Howard <dhoward@redhat.com>
2577
2578 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2579 that means max CORE_ADDR+1.
2580 (lookup_mem_region): Ditto.
2581 (mem_info_command): Ditto.
2582
942dc0e9
GS
25832002-06-24 Grace Sainsbury <graces@redhat.com>
2584
2585 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2586 (REGISTER_BYTES_OK): Remove.
2587 (REGISTER_BYTES): Remove.
2588 (STORE_STRUCT_RETURN): Remove.
2589 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2590 (STORE_RETURN_VALUE): Remove.
2591 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2592 (FRAME_CHAIN): Remove.
2593 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2594 (FRAME_SAVED_PC): Remove.
2595 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2596 (m68k_store_struct_return): Add.
2597 (m68k_deprecated_extract_return_value): Add.
2598 (m68k_deprecated_extract_struct_value_address): Add.
2599 (m68k_store_return_value): Add.
2600 (m68k_frame_chain): Add.
2601 (m68k_frameless_function_invocation): Add.
2602 (m68k_frame_saved_pc): Add.
2603 (m68k_gdbarch_init): added set_gdbarch calls for new
2604 functions and deleted macros.
2605
03c30d4d
TT
26062002-06-23 Tom Tromey <tromey@redhat.com>
2607
2608 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2609 (ALLDEPFILES): Likewise.
2610 (udiheaders): Removed.
2611 (udip2soc.o): Likewise.
2612 (udi2go32.o): Likewise.
2613 (udr.o): Likewise.
2614 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2615
37e71372
AC
26162002-06-22 Andrew Cagney <ac131313@redhat.com>
2617
06a6ac57
AC
2618 * infrun.c (_initialize_infrun): Delete unnecessary call to
2619 build_infrun.
2620
37e71372
AC
2621 * regcache.h: Update comments describing the regcache_cpy family
2622 of functions.
2623 (regcache_save, regcache_restore): Delete declaration.
2624 (regcache_save_no_passthrough): Delete declaration.
2625 (regcache_restore_no_passthrough): Delete declaration.
2626 * regcache.c (regcache_save): Delete function.
2627 (regcache_save_no_passthrough): Delete function.
2628 (regcache_restore): Delete function.
2629 (regcache_restore_no_passthrough): Delete function.
2630
78f6d055
AC
26312002-06-21 Andrew Cagney <ac131313@redhat.com>
2632
2633 * config/m68k/tm-m68k.h: Fix typo.
2634 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2635 (m68k_frame_init_saved_regs): Declare.
2636
78b119cb
JB
26372002-06-21 Jim Blandy <jimb@redhat.com>
2638
2639 Remove some vestiges of Harris 88k support.
2640 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2641 register numbering quirk.
2642 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2643 odd symbols occurring in Harris 88k ELF targets.
2644
0fbb3da7
TT
26452002-06-21 Tom Tromey <tromey@redhat.com>
2646
2647 * gdb_locale.h: New file.
2648 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2649 (defs_h): Added gdb_locale.h.
2650 * configure, config.in: Rebuilt.
2651 * configure.in (PACKAGE): Define.
2652 * defs.h: Include gdb_locale.h.
2653 * main.c (captured_main): Call setlocale, bindtextdomain,
2654 textdomain.
2655
456f8b9d
DB
26562002-06-21 Dave Brolley <brolley@redhat.com>
2657
2658 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2659 * config/frv/frv.mt: New file.
2660 * config/frv/tm-frv.h: New file.
2661 * configure.tgt: Support frv-*-*.
2662 * Makefile.in (frv-tdep.o): New target.
2663 * frv-tdep.c: New file.
2664 * NEWS: Mention frv.
2665
cdd463f9
DB
26662002-06-21 Dave Brolley <brolley@redhat.com>
2667
2668 * MAINTAINERS: Add self to "Write After Approval" list.
2669
5d3ed2e3
GS
26702002-06-21 Grace Sainsbury <graces@redhat.com>
2671
2672 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2673 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2674 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2675 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2676 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2677
2678 * m68k-tdep.c: Include arch-utils.h
2679 (m68k_register_raw_size): Add.
2680 (m68k_register_virtual_size): Add.
2681 (m68k_register_virtual_type): Add.
2682 (m68k_register_name): Add.
2683 (m68k_stack_align): Add.
2684 (m68k_register_byte): Add.
2685 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2686 tm-m68k.h.
2687
7f8e7424
GS
26882002-06-21 Grace Sainsbury <graces@redhat.com>
2689
a2c6a6d5 2690 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2691 m68k_find_saved_regs.
2692 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2693 references to it with frame->saved_regs.
7f8e7424
GS
2694 (m68k_gdbarch_init): Added function calls to initialize the
2695 gdbarch structure.
a2c6a6d5
GS
2696 (m68k_fix_call_dummy): Add.
2697 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2698 (CALL_DUMMY): Remove.
2699 (CALL_DUMMY_LENGTH): Remove.
2700 (CALL_DUMMY_START_OFFSET): Remove.
2701 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2702 (FIX_CALL_DUMMY): Remove.
2703 (PUSH_DUMMY_FRAME): Remove.
2704 (POP_FRAME): Remove.
7f8e7424 2705
f461f5cf
PM
27062002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2707
2708 * parse.c (parse_fprintf): New function used to avoid calls to
2709 fprintf in bison parser generated debug code.
2710 * parser-defs.h: Declaration of new parse_fprintf function.
2711 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2712 Set YYDEBUG to 1 by default.
2713 Set YYFPRINTF as parse_fprintf.
2714
7f0c12ed
ML
27152002-06-21 Michal Ludvig <mludvig@suse.cz>
2716
2717 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2718 encoding anymore.
2719 (pointer_encoding, enum ptr_encoding): New.
2720 (execute_cfa_program): Take care about pointer encoding.
2721 (dwarf2_build_frame_info): Only call parse_frame_info for
2722 .debug_frame and .eh_frame.
2723 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2724 fixed augmentation handling, added relative addressing,
2725 ignore duplicate FDEs. Added comments.
19d833a2 2726 * dwarf2cfi.c: Reindented.
7f0c12ed 2727
87c4a039
EZ
27282002-06-20 Elena Zannoni <ezannoni@redhat.com>
2729
2730 * event-top.c (command_handler): Don't use space_at_cmd_start
2731 unless there is sbrk() on the host. Assign time and space data
2732 to union fields of the appropriate length.
2733
1cf877ad
ML
27342002-06-20 Michal Ludvig <mludvig@suse.cz>
2735
2736 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2737 x86_64_register_name. Return type changed to 'const char *'.
2738 (x86_64_register_name2nr): Rename to x86_64_register_number.
2739 (x86_64_gdbarch_init): Update to reflect the change.
2740 * x86-64-tdep.h: Ditto.
2741 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2742 (supply_fpregset): Ditto.
2743
3fadccb3
AC
27442002-06-19 Andrew Cagney <cagney@redhat.com>
2745
2746 * regcache.h: Update copyright.
2747 (struct regcache, struct gdbarch): Add opaque declarations.
2748 (current_regcache): Declare global variable.
2749 (regcache_read, regcache_write): Add gdbarch parameter.
2750 (regcache_save, regcache_save_no_passthrough)
2751 (regcache_restore, regcache_restore_no_passthrough)
2752 (regcache_dup, regcache_dup_no_passthrough)
2753 (regcache_cpy, regcache_cpy_no_passthrough)
2754 (deprecated_grub_regcache_for_registers)
2755 (deprecated_grub_regcache_for_register_valid)
2756 (regcache_valid_p): Add function declarations.
2757
2758 * regcache.c: Update copyright.
2759 (regcache_descr_handle): New global variable.
2760 (struct regcache_descr): Define.
2761 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2762 (regcache_descr, xfree_regcache_descr): New functions.
2763 (struct regcache): Define.
2764 (regcache_xmalloc, regcache_xfree): New functions.
2765 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2766 (regcache_dup, regcache_dup_no_passthrough): New functions.
2767 (regcache_valid_p, regcache_read_as_address): New functions.
2768 (deprecated_grub_regcache_for_registers): New function.
2769 (deprecated_grub_regcache_for_register_valid): New function.
2770 (current_regcache): New global variable.
2771 (register_buffer): Add regcache parameter. Update calls.
2772 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2773 (read_register_gen, write_register_gen): Update register_buffer
2774 call. Test for legacy_p instead of gdbarch_register_read_p or
2775 gdbarch_register_write_p.
2776 (regcache_collect): Update register_buffer call.
2777 (build_regcache): Rewrite. Use deprecated grub functions.
2778 (regcache_save, regcache_save_no_passthrough): New functions.
2779 (regcache_restore, regcache_restore_no_passthrough): New
2780 functions.
2781 (_initialize_regcache): Create the regcache_data_handle. Swap
2782 current_regcache global variable.
2783
2784 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2785 parameter to regcache_read and regcache_write calls.
2786 (sh4_register_read): Ditto.
2787 (sh64_pseudo_register_read): Ditto.
2788 (sh64_register_read): Ditto.
2789 (sh_pseudo_register_write): Ditto.
2790 (sh4_register_write): Ditto.
2791 (sh64_pseudo_register_write): Ditto.
2792 (sh64_register_write): Ditto.
2793
2794 * defs.h (XCALLOC): Define.
2795
152d9db6
GS
27962002-06-19 Grace Sainsbury <graces@redhat.com>
2797
2798 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2799 * m68k-tdep.c (m68k_gdbarch_init): Added.
2800 (m68k_dump_tdep): Added.
2801
170911c7
DJ
28022002-06-19 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * ada-lang.c (fill_in_ada_prototype): Update comment.
2805
2e4ebe70
DJ
28062002-06-19 Daniel Jacobowitz <drow@mvista.com>
2807
2808 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2809 MIPS_ABI_LAST.
2810 (mips_abi_string, mips_abi_strings): New.
2811 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2812 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2813 tdep->mips_abi_string. Honor mips_abi_string. Default to
2814 O32 if no ABI is found.
2815 (mips_dump_tdep): Use mips_abi_strings.
2816 (mips_abi_update): New function.
2817 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2818 ``set mips abi'' and ``show mips abi''. Check the size of
2819 mips_abi_strings.
2820
16775908
AC
28212002-06-19 Andrew Cagney <cagney@redhat.com>
2822
2823 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2824 constant.
2825
5051bfa4 28262002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2827
5051bfa4
JB
2828 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2829 current frame using only the first stack size adjustment. All
2830 subsequent size adjustments are not considered to be part of
2831 the "static" part of the current frame.
2832 Compute the address of the saved registers relative to the
2833 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2834 in use in this frame.
2835
56468235
DH
28362002-06-18 Don Howard <dhoward@redhat.com>
2837
2838 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2839 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2840 suggesting this solution.
2841
0b624158
AC
28422002-06-18 Andrew Cagney <ac131313@redhat.com>
2843
2844 * config/romp/xm-rtbsd.h: Delete file.
2845 * config/romp/rtbsd.mh: Delete file.
2846
221ea385
KS
28472002-06-18 Keith Seitz <keiths@redhat.com>
2848
2849 * breakpoint.c (condition_command): Post breakpoint_modify
2850 when a condition is added to an existing breakpoint.
2851 (commands_command): Likewise for commands.
2852 (set_ignore_count): Likewise for ignore counts.
2853 If no tty, do not simply return, still need to send event
2854 notification.
2855 (ignore_command): Only print a newline if the command came
2856 from a tty.
2857 Don't call breakpoints_changed, since this is now properly
2858 handled by set_ignore_count.
2859
5402eed1
AC
28602002-06-18 Andrew Cagney <cagney@redhat.com>
2861
2862 * MAINTAINERS: Note that cris-elf target can be compiled with
2863 -Werror.
2864 * cris-tdep.c (cris_register_name): Make return type constant.
2865 (cris_breakpoint_from_pc): Ditto.
2866
cc22880b
ML
28672002-06-18 Michal Ludvig <mludvig@suse.cz>
2868
2869 * frame.h (struct frame_info): Change type of context to
2870 'struct context'.
2871
fa88f677
AC
28722002-06-17 Andrew Cagney <cagney@redhat.com>
2873
2874 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2875 pointer.
2876 * gdbarch.h, gdbarch.c: Regenerate.
2877 * config/mips/tm-mips.h (mips_register_name): Update.
2878 * i386-tdep.h (i386_register_name): Update.
2879 * mips-tdep.c (mips_register_name): Update
2880 * alpha-tdep.c (alpha_register_name): Update.
2881 * arch-utils.c (legacy_register_name): Update.
2882 * arch-utils.h (legacy_register_name): Update.
2883 * avr-tdep.c (avr_register_name): Update.
2884 * ia64-tdep.c (ia64_register_name): Update.
2885 * i386-tdep.c (i386_register_name): Update.
2886 * sparc-tdep.c (sparc32_register_name): Update.
2887 (sparc64_register_name): Update.
2888 (sparclite_register_name): Update.
2889 (sparclet_register_name): Update.
2890 * sh-tdep.c (sh_generic_register_name): Update.
2891 (sh_sh_register_name): Update.
2892 (sh_sh3_register_name): Update.
2893 (sh_sh3e_register_name): Update.
2894 (sh_sh_dsp_register_name): Update.
2895 (sh_sh3_dsp_register_name): Update.
2896 (sh_sh4_register_name): Update.
2897 (sh_sh64_register_name): Update.
2898 * s390-tdep.c (s390_register_name): Update.
2899 * rs6000-tdep.c (rs6000_register_name): Update.
2900 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2901 (ns32k_register_name_32382): Update.
2902 * d10v-tdep.c (d10v_ts2_register_name): Update.
2903 (d10v_ts3_register_name): Update.
2904 * xstormy16-tdep.c (xstormy16_register_name): Update.
2905 * vax-tdep.c (vax_register_name): Update.
2906 * v850-tdep.c (v850_register_name): Update.
2907 * m68hc11-tdep.c (m68hc11_register_name): Update.
2908 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2909 (am33_register_name): Update.
2910
ea1e7ef6
GS
29112002-06-17 Grace Sainsbury <graces@redhat.com>
2912
2913 * m68k-tdep.c: Reindented.
2914
9b02dd1b
AC
29152002-06-17 Andrew Cagney <ac131313@redhat.com>
2916
2917 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2918 list of predefined types.
2919
8758dec1
MK
29202002-06-16 Mark Kettenis <kettenis@gnu.org>
2921
b6197528
MK
2922 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2923 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2924 REGISTER_CONVERT_TO_RAW): Remove defines.
2925 (i386_register_virtual_type, i386_register_convertible,
2926 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2927 Remove prototypes.
2928 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2929 macros mentioned above.
2930
82b47e62
MK
2931 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2932 (i386lynx_saved_pc_after_call): Remove prototype.
2933 * i386ly-tdep.c: Include "i386-tdep.h".
2934 (i386lynx_saved_pc_after_call): Make static. Use
2935 read_memory_nobpt instead of read_memory. Use
2936 read_memory_unsigned_integer instead of read_memory_integer.
2937 (i386lynx_init_abi): New function.
2938 (i386lynx_coff_osabi_sniffer): New function.
2939 (_initialize_i386bsd_tdep): New function.
2940
8758dec1
MK
2941 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2942 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2943 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2944 (i386_fix_call_dummy): Remove prototype.
2945 * i386-tdep.c (i386_call_dummy_words): New variable.
2946 (i386_gdbarch_init): Adjust for removal of the
2947 macros mentioned above.
2948
e9e68a56
AC
29492002-06-15 Andrew Cagney <ac131313@redhat.com>
2950
2951 * command.h (add_setshow_auto_boolean_cmd): Replace
2952 add_set_auto_boolean_cmd.
2953 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2954 add_set_auto_boolean_cmd.
2955 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2956 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2957 mask-address'' command.
2958 (show_mask_address): Add cmd parameter.
2959 * remote.c (add_packet_config_cmd): Update. Change type of
2960 set_func and show_func to cmd_sfunc_ftype.
2961 (_initialize_remote): Update `set remote Z-packet'
2962 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2963 (show_remote_protocol_e_packet_cmd): Ditto.
2964 (show_remote_protocol_E_packet_cmd): Ditto.
2965 (show_remote_protocol_P_packet_cmd): Ditto.
2966 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2967 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2968 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2969 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2970 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2971 (show_remote_protocol_Z_packet_cmd): Ditto.
2972 (show_remote_protocol_binary_download_cmd): Ditto.
2973 (show_remote_cmd): Pass NULL to all of above.
2974
fc08ec52
MK
29752002-06-15 Mark Kettenis <kettenis@gnu.org>
2976
2977 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2978 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2979 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2980 POP_FRAME): Remove defines.
2981 (i386_push_arguments, i386_store_struct_return,
2982 i386_extract_return_value, i386_store_return_value,
2983 i386_extract_struct_value_address, i386_push_dummy_frame,
2984 i386_pop_frame): Renove prototypes.
2985 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2986 macros mentioned above.
2987
e707bbc2
AC
29882002-06-15 Andrew Cagney <ac131313@redhat.com>
2989
2990 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2991 add_set_boolean_cmd.
2992 (add_setshow_cmd): New function.
2993 * command.h (add_setshow_boolean_cmd): Replace
2994 add_set_boolean_cmd.
2995 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2996 and ``set rdiromatzero''.
2997 * maint.c (_initialize_maint_cmds): Update commented out code.
2998 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2999 * target.c (initialize_targets): Update `set
3000 trust-readonly-sections'.
3001 * remote.c (_initialize_remote): Update `set remotebreak'.
3002
42fdc8df
MK
30032002-06-15 Mark Kettenis <kettenis@gnu.org>
3004
93924b6b
MK
3005 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3006 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3007 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3008 fit into multi-arch framework.
3009 (i386_breakpoint_from_pc): New function.
3010 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3011 above.
3012
42fdc8df
MK
3013 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3014 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3015 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3016 (i386_frameless_function_invocation, i386_frame_num_args,
3017 i386_frame_init_saved_regs): Remove prototypes.
3018 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3019 macros mentioned above.
3020
9773a94b
AC
30212002-06-15 Andrew Cagney <ac131313@redhat.com>
3022
3023 * cli/cli-decode.c (set_cmd_cfunc): Update.
3024 (set_cmd_sfunc): Update.
3025 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3026 (set_cmd_sfunc, set_cmd_cfunc): Update.
3027 * cli/cli-decode.h: Update.
3028
6e157172
MK
30292002-06-15 Mark Kettenis <kettenis@gnu.org>
3030
3031 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3032 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3033
7f19b9a2
AC
30342002-06-15 Andrew Cagney <ac131313@redhat.com>
3035
3036 * defs.h (auto_boolean): Declare enum.
3037 * command.h (cmd_auto_boolean): Delete enum.
3038 * mips-tdep.c (mask_address_var): Update.
3039 (mips_mask_address_p): Update.
3040 (show_mask_address): Update.
3041 * remote.c (struct packet_config): Update.
3042 (update_packet_config): Update.
3043 (show_packet_config_cmd): Update.
3044 (packet_ok): Update.
3045 (add_packet_config_cmd): Update.
3046 (_initialize_remote):
3047 * command.h: Update.
3048 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3049 (do_setshow_command): Update.
3050 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3051 * cli/cli-decode.h: Update.
3052
1cf88de5
MK
30532002-06-15 Mark Kettenis <kettenis@gnu.org>
3054
22ba8cf2
MK
3055 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3056 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3057 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3058 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3059 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3060 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3061
762c5349
MK
3062 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3063 list of DJGPP COFF targets.
3064
091198bb
MK
3065 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3066 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3067 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3068 (FP0_REGNUM): Remove define.
3069 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3070 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3071 (i386_register_virtual_size): Remove protoype.
3072 * i386-tdep.c (i386_register_virtual_size): Removed.
3073 (i386_extract_return_value, i386_store_return_value): Use
3074 FP0_REGNUM instead of NUM_FREGS to determine whether the
3075 floating-point registers are available.
3076 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3077 Adjust for removal of macros mentioned above.
3078
30792002-06-15 Mark Kettenis <kettenis@gnu.org>
3080
fcc9bf01
MK
3081 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3082 comments.
3083 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3084 Remove prototypes.
3085 (supply_gregset, fill_gregset): Remove use of register keyword and
3086 remove declaration for regmap. Use I386_NUM_GREGS instead of
3087 NUM_REGS and NUM_FREGS.
3088 (FPREGSET_FSAVE_OFFSET): Remove.
3089 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3090 NUM_FREGS to determine whether the floating-point registers are
3091 available.
3092
65e78234
MK
3093 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3094 gnu_store_registers): Replace usage of NUM_GREGS with
3095 I386_NUM_GREGS.
3096
98df6387
MK
3097 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3098 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3099 usage of NUM_GREGS with I386_NUM_GREGS.
3100
099a9414
MK
3101 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3102
57976e88
MK
3103 * i386bsd-nat.c: Include "i386-tdep.h".
3104 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3105 I386_NUM_GREGS.
3106
b335f4a6
MK
3107 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3108 and associated comment. They no longer make any sense, since we
3109 don't use this file anymore on Linux.
3110
1cf88de5
MK
3111 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3112 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3113 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3114 elements in these arrays.
3115 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3116 MAX_NUM_REGS.
3117
daa66587
MK
31182002-06-15 Mark Kettenis <kettenis@gnu.org>
3119
3120 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3121 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3122
26e9b323
AC
31232002-06-14 Andrew Cagney <cagney@redhat.com>
3124
3125 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3126 EXTRACT_RETURN_VALUE.
3127 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3128 EXTRACT_STRUCT_VALUE_ADDRESS.
3129 * gdbarch.h, gdbarch.c: Regenerate.
3130
3131 * values.c (value_being_returned): Handle
3132 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3133 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3134
3135 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3136 * arm-tdep.c (arm_gdbarch_init): Update.
3137 * avr-tdep.c (avr_gdbarch_init): Update.
3138 * cris-tdep.c (cris_gdbarch_init): Update.
3139 * d10v-tdep.c (d10v_gdbarch_init): Update.
3140 * ia64-tdep.c (ia64_gdbarch_init): Update.
3141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3143 * s390-tdep.c (s390_gdbarch_init): Update.
3144 * sh-tdep.c (sh_gdbarch_init): Update.
3145 * s390-tdep.c (s390_gdbarch_init): Update.
3146 * sparc-tdep.c (sparc_gdbarch_init): Update.
3147 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3148 * v850-tdep.c (v850_gdbarch_init): Update.
3149 * vax-tdep.c (vax_gdbarch_init): Update.
3150 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3152
3153 * config/arc/tm-arc.h: Update.
3154 * config/d30v/tm-d30v.h: Update.
3155 * config/fr30/tm-fr30.h: Update.
3156 * config/h8300/tm-h8300.h: Update.
3157 * config/h8500/tm-h8500.h: Update.
3158 * config/i386/tm-i386.h: Update.
3159 * config/i386/tm-ptx.h: Update.
3160 * config/i386/tm-symmetry.h: Update.
3161 * config/i960/tm-i960.h: Update.
3162 * config/m32r/tm-m32r.h: Update.
3163 * config/m68k/tm-delta68.h: Update.
3164 * config/m68k/tm-linux.h: Update.
3165 * config/m68k/tm-m68k.h: Update.
3166 * config/m88k/tm-m88k.h: Update.
3167 * config/mcore/tm-mcore.h: Update.
3168 * config/mips/tm-mips.h: Update.
3169 * config/mn10200/tm-mn10200.h: Update.
3170 * config/pa/tm-hppa.h: Update.
3171 * config/pa/tm-hppa64.h: Update.
3172 * config/sparc/tm-sp64.h: Update.
3173 * config/sparc/tm-sparc.h: Update.
3174 * config/sparc/tm-sparclet.h: Update.
3175 * config/z8k/tm-z8k.h: Update.
3176
5179e78f
AC
31772002-06-14 Andrew Cagney <cagney@redhat.com>
3178
3179 * Makefile.in (i386_linux_tdep_h): Define.
3180 (i386_tdep_h, i387_tdep_h): Define.
3181 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3182 $(i386_tdep_h) and $(i387_tdep_h).
3183 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3184
8201327c
MK
31852002-06-14 Mark Kettenis <kettenis@gnu.org>
3186
edf393ac
MK
3187 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3188 Already covered by the default.
3189
896fb97d
MK
3190 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3191 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3192 (i386_gdbarch_init): Initialize long_double_format and long_double
3193 bit.
3194
8201327c
MK
3195 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3196 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3197 Move these to ...
3198 * config/i386/i386sol2.mh: ... here.
3199 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3200 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3201 (SIGCONTEXT_PC_OFFSET): Remove define.
3202 (IN_SIGTRAMP): Remove define.
3203 * i386-sol2-tdep.c: New file.
3204
3205 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3206 * config/i386/tm-i386nw.h: Removed.
3207
3208 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3209 USE_STRUCT_CONVENTION): Remove defines.
3210 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3211 (get_longjmp_target): Remove prototype.
3212 (IN_SIGTRAMP): Remove define.
3213 (i386bsd_in_sigtramp): Remove prototype.
3214 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3215 function. Update comment accordingly
3216 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3217 (FRAME_SAVED_PC): Remove define.
3218 (i386bsd_frame_saved_pc): Remove prototype.
3219 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3220 GET_LONGJMP_TARGET): Remove defines.
3221 (get_longjmp_target): Remove prototype.
3222 (IN_SIGTRAMP): Remove define.
3223 (i386bsd_in_sigtramp): Remove prototype.
3224 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3225 function. Update comment accordingly
3226 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3227 (FRAME_SAVED_PC): Remove define.
3228 (i386bsd_frame_saved_pc): Remove prototype.
3229 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3230 Remove prototype.
3231 (USE_STRUCT_CONVENTION): Remove prototype.
3232 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3233 declaration.
3234 (_initialize_i386bsd_nat): Revise logic to determine some
3235 constants at compile time when compiling a native GDB. Warn if
3236 things don't match up with what we expect.
3237 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3238 Remove variables.
3239 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3240 to use date stored in `struct gdbarch_tdep'.
3241 (i386bsd_sigcontext_offset): Remove varaible.
3242 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3243 stored in `struct gdbarch_tdep'.
3244 (i386bsd_frame_saved_pc): Make static.
3245 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3246 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3247 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3248 i386fbsd4_sc_pc_offset): New variables.
3249 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3250 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3251 functions.
3252 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3253 functions.
3254 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3255 Modify the value of i386fbsd_sigtramp_start and
3256 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3257 i386fbsd_sigtramp_end.
3258 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3259 function.
3260
3261 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3262 define to i386-linux-tdep.h.
3263 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3264 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3265 defines.
3266 (i386_linux_register_name, i386_linux_register_byte,
3267 i386_linux_register_raw_size): Remove prototypes.
3268 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3269 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3270 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3271 TARGET_WRITE_PC): Remove defines.
3272 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3273 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3274 i386_linux_write_pc): Remove prototypes.
3275 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3276 (get_longjmp_target): Remove prototype.
3277 * i386-linux-tdep.h: New file.
3278 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3279 * i386-linux-tdep.c: Include "i386-tdep.h" and
3280 "i386-linux-tdep.h".
3281 (i386_linux_register_name, i386_linux_register_byte,
3282 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3283 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3284 Make static.
3285 (i386_linux_init_abi): New function.
3286 (_initialize_i386_linux_tdep): New function.
3287
3288 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3289 (i386_saved_pc_after_call): Remove prototype.
3290 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3291 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3292 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3293 (i386_register_name, i386_stab_reg_to_regnum,
3294 i386_dwarf_reg_to_regnum): Remove prototypes.
3295 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3296 SIZEOF_SSE_REGS): Remove defines.
3297 (REGISTER_BYTES): Remove define.
3298 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3299 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3300 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3301 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3302 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3303 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3304 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3305 (get_longjmp_target): Remove prototype.
3306 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3307 (sigtramp_saved_pc): Remove define.
3308 (i386v4_sigtramp_saved_pc): Remove prototype.
3309 * config/i386/tm-go32.h (FRAME_CHAIN,
3310 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3311 (i386go32_frame_saved_pc): Remove prototype.
3312 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3313 (get_longjmp_target): Remove prototype.
3314 * i386-tdep.h: Include "osabi.h".
3315 (enum i386_abi): Removed.
3316 (enum struct_return): New enum.
3317 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3318 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3319 sc_pc_offset members.
3320 (i386_gdbarch_register_os_abi): Remove prototype.
3321 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3322 I386_SSE_NUM_REGS): New defines.
3323 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3324 I386_SSE_SIZEOF_REGS): New defines.
3325 (i386_register_name, i386_register_byte, i386_register_raw_size):
3326 New prototypes.
3327 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3328 (i386bsd_sigtramp_saved_pc): New prototype.
3329 * i386-tdep.c: Don't include "elf-bfd.h".
3330 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3331 i386_frame_chain, i386_saved_pc_after_call): Make static.
3332 (i386_frame_saved_pc): Rewrite to call architecture dependent
3333 function to deal with signal handlers. Make static.
3334 (i386go32_frame_saved_pc): Removed.
3335 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3336 Removed.
3337 (i386_get_longjmp_target): New function.
3338 (default_struct_convention, pcc_struct_convention,
3339 reg_struct_convention, valid_conventions, struct_convention): New
3340 variables.
3341 (i386_use_struct_convention): New function.
3342 (i386v4_sigtramp_saved_pc): Renamed to
3343 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3344 (i386_pc_in_sigtramp): New function.
3345 (i386_abi_names): Removed.
3346 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3347 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3348 Removed.
3349 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3350 i386_gdbarch_register_os_abi): Removed.
3351 (struct i386_abi_handler): Removed.
3352 (i386_abi_handler_list): Removed.
3353 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3354 functions.
3355 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3356 i386_nw_init_abi): New functions.
3357 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3358 Use set_gdbarch_xxx() calls instead of relying on macros for a
3359 number of calls.
3360 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3361 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3362 Register the various architecture variants defined in this file.
3363
ad2f7632
DJ
33642002-06-14 Daniel Jacobowitz <drow@mvista.com>
3365
3366 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3367 (struct main_type): Remove arg_types member. Update comments for
3368 struct field.
3369 (TYPE_ARG_TYPES): Remove.
3370 (TYPE_FN_FIELD_ARGS): Update.
3371 (smash_to_method_type): Update prototype.
3372
3373 * c-typeprint.c (cp_type_print_method_args): Take method type
3374 instead of argument list. Use new argument layout. Simplify.
3375 (c_type_print_args): Use new argument layout. Simplify.
3376 (c_type_print_base): Update call to cp_type_print_method_args.
3377 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3378 argument; use die->type instead. Update call to
3379 smash_to_method_type.
3380 (read_structure_scope): Update call to dwarf2_add_member_fn.
3381 * gdbtypes.c (allocate_stub_method): Update comment.
3382 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3383 Use new argument layout.
3384 (check_stub_method): Use new argument layout. Don't count
3385 void as an argument.
3386 (print_arg_types): Update comments. Use new argument layout.
3387 (recursive_dump_type): Don't print arg_types member.
3388 * hpread.c (hpread_read_struct_type): Use new argument layout.
3389 (fixup_class_method_type): Likewise.
3390 (hpread_type_lookup): Likewise.
3391 * stabsread.c (read_type): Update calls to read_args and
3392 smash_to_method_type.
3393 (read_args): Use new argument layout. Simplify.
3394 * valops.c (typecmp): Use new argument layout. Update parameters
3395 and comments. Simplify.
3396 (hand_function_call): Use new argument layout.
3397 (search_struct_method): Update call to typecmp.
3398 (find_overload_match): Use new argument layout.
3399
6da02953
DJ
34002002-06-13 Daniel Jacobowitz <drow@mvista.com>
3401
3402 * NEWS: Mention multithreaded debug support for gdbserver.
3403
519b2366
DJ
34042002-06-13 Daniel Jacobowitz <drow@mvista.com>
3405
3406 * MAINTAINERS: Mention NEWS.
3407
a7f48742
DJ
34082002-06-13 Daniel Jacobowitz <drow@mvista.com>
3409
3410 * gdbserver/regcache.c: Add comment.
3411
6c0d6680
DJ
34122002-06-13 Daniel Jacobowitz <drow@mvista.com>
3413
3414 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3415 (struct mips_objfile_private, compare_pdr_entries): New.
3416 (non_heuristic_proc_desc): Read the ".pdr" section if it
3417 is present.
3418
6529d2dd
AC
34192002-06-12 Andrew Cagney <ac131313@redhat.com>
3420
3421 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3422 (arm_debug): New static variable.
3423 (_initialize_arm_tdep): Add ``set debug arm'' command.
3424
26216b98
AC
34252002-06-12 Andrew Cagney <ac131313@redhat.com>
3426
3427 * Makefile.in (sim_arm_h): Define.
3428 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3429 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3430 (arm_register_sim_regno): New function, map an internal REGNUM
3431 onto a simulator register number.
3432 (arm_gdbarch_init): Set register_sim_regno.
3433
814b3ba0
AH
34342002-06-09 Aldy Hernandez <aldyh@redhat.com>
3435
3436 * MAINTAINERS: Add self.
3437
475b0867
JB
34382002-06-11 Jim Blandy <jimb@redhat.com>
3439
919d772c
JB
3440 * source.c (source_info): Mention whether the symtab has
3441 information about preprocessor macros.
3442
475b0867
JB
3443 Call the command `info macro', not `show macro'.
3444 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3445 Fix error message.
3446 (_initialize_macrocmd): Register `info_macro_command' in
3447 `infolist', not `showlist'.
3448
9e364162
DJ
34492002-06-11 Daniel Jacobowitz <drow@mvista.com>
3450
3451 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3452 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3453 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3454 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3455 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3456 unconditionally.
3457 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3458 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3459 (_initialize_mips_tdep): Remove dead code.
3460 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3461 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3462 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3463 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3464 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3465 MIPS_LAST_FP_ARG_REGNUM): Remove.
3466
34672002-06-11 Daniel Jacobowitz <drow@mvista.com>
3468
3469 * gdbserver/thread-db.c: New file.
3470 * gdbserver/proc-service.c: New file.
3471 * gdbserver/acinclude.m4: New file.
3472 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3473 proc-service.o, and thread-db.o.
3474 (linux-low.o): Add USE_THREAD_DB.
3475 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3476 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3477 * gdbserver/aclocal.m4: Regenerated.
3478 * gdbserver/config.in: Regenerated.
3479 * gdbserver/configure: Regenerated.
3480 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3481 thread_db.h, and linux/elf.h headrs.
3482 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3483 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3484 Check for -lthread_db and thread support.
3485 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3486 PowerPC, and SuperH.
3487 * gdbserver/i387-fp.c: Constify arguments.
3488 * gdbserver/i387-fp.h: Likewise.
3489 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3490 `struct inferior_info'. Remove PID member. Use generic inferior
3491 list header. All uses updated.
3492 (inferiors, signal_pid): Removed.
3493 (all_threads): New variable.
3494 (get_thread): Define.
3495 (add_inferior_to_list): New function.
3496 (for_each_inferior): New function.
3497 (change_inferior_id): New function.
3498 (add_inferior): Removed.
3499 (remove_inferior): New function.
3500 (add_thread): New function.
3501 (free_one_thread): New function.
3502 (remove_thread): New function.
3503 (clear_inferiors): Use for_each_inferior and free_one_thread.
3504 (find_inferior): New function.
3505 (find_inferior_id): New function.
3506 (inferior_target_data): Update argument type.
3507 (set_inferior_target_data): Likewise.
3508 (inferior_regcache_data): Likewise.
3509 (set_inferior_regcache_data): Likewise.
3510 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3511 (all_processes, stopping_threads, using_thrads)
3512 (struct pending_signals, debug_threads, pid_of): New.
3513 (inferior_pid): Replace with macro.
3514 (struct inferior_linux_data): Remove.
3515 (get_stop_pc, add_process): New functions.
3516 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3517 Use add_process and add_thread.
3518 (linux_attach_lwp): New function, based on old linux_attach. Use
3519 add_process and add_thread. Set stop_expected for new threads.
3520 (linux_attach): New function.
3521 (linux_kill_one_process): New function.
3522 (linux_kill): Kill all LWPs.
3523 (linux_thread_alive): Use find_inferior_id.
3524 (check_removed_breakpoints, status_pending_p): New functions.
3525 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3526 Update. Use WNOHANG. Wait for cloned processes also. Update process
3527 struct for the found process.
3528 (linux_wait_for_event): New function.
3529 (linux_wait): Use it. Support LWPs.
3530 (send_sigstop, wait_for_sigstop, stop_all_processes)
3531 (linux_resume_one_process, linux_continue_one_process): New functions.
3532 (linux_resume): Support LWPs.
3533 (REGISTER_RAW_SIZE): Remove.
3534 (fetch_register): Use register_size instead. Call supply_register.
3535 (usr_store_inferior_registers): Likewise. Call collect_register.
3536 Fix recursive case.
3537 (regsets_fetch_inferior_registers): Improve error message.
3538 (regsets_store_inferior_registers): Add debugging.
3539 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3540 (unstopped_p, linux_signal_pid): New functions.
3541 (linux_target_ops): Add linux_signal_pid.
3542 (linux_init_signals): New function.
3543 (initialize_low): Call it. Initialize using_threads.
3544 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3545 flag.
3546 (get_regcache): Fetch registers lazily. Add fetch argument
3547 and update all callers.
3548 (regcache_invalidate_one, regcache_invalidate): New
3549 functions.
3550 (new_register_cache): Renamed from create_register_cache.
3551 Return the new regcache.
3552 (free_register_cache): Change argument to a void *.
3553 (registers_to_string, registers_from_string): Call get_regcache
3554 with fetch flag set.
3555 (register_data): Make static. Pass fetch flag to get_regcache.
3556 (supply_register): Call get_regcache with fetch flag clear.
3557 (collect_register): Call get_regcache with fetch flag set.
3558 (collect_register_as_string): New function.
3559 * gdbserver/regcache.h: Update.
3560 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3561 stderr.
3562 Handle input interrupts while waiting for an ACK.
3563 (input_interrupt): Use signal_pid method.
3564 (getpkt): Flush after debug output and use stderr.
3565 (outreg): Use collect_register_as_string.
3566 (new_thread_notify, dead_thread_notify): New functions.
3567 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3568 and general_thread.
3569 (look_up_one_symbol): Flush after debug output.
3570 * gdbserver/server.c (step_thread, server_waiting): New variables.
3571 (start_inferior): Don't use signal_pid. Update call to mywait.
3572 (attach_inferior): Update call to mywait.
3573 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3574 (main): Don't fetch/store registers explicitly. Use
3575 set_desired_inferior. Support proposed ``Hs'' packet. Update
3576 calls to mywait.
3577 * gdbserver/server.h: Update.
3578 (struct inferior_list, struct_inferior_list_entry): New.
3579 * gdbserver/target.c (set_desired_inferior): New.
3580 (write_inferior_memory): Constify.
3581 (mywait): New function.
3582 * gdbserver/target.h: Update.
3583 (struct target_ops): New signal_pid method.
3584 (mywait): Removed macro, added prototype.
3585
3586 * gdbserver/linux-low.h (regset_func): Removed.
3587 (regset_fill_func, regset_store_func): New.
3588 (enum regset_type): New.
3589 (struct regset_info): Add type field. Use new operation types.
3590 (struct linux_target_ops): stop_pc renamed to get_pc.
3591 Add decr_pc_after_break and breakpoint_at.
3592 (get_process, get_thread_proess, get_process_thread)
3593 (strut process_info, all_processes, linux_attach_lwp)
3594 (thread_db_init): New.
3595
3596 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3597 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3598 (the_low_target): Add new members.
3599 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3600 (i386_store_fpxregset): Constify.
3601 (target_regsets): Add new kind identifier.
3602 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3603 (i386_set_pc): Add debugging.
3604 (i386_breakpoint_at): New function.
3605 (the_low_target): Add new members.
3606 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3607 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3608 (mips_breakpoint_at): New.
3609 (the_low_target): Add new members.
3610 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3611 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3612 (the_low_target): Add new members.
3613 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3614 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3615 (the_low_target): Add new members.
3616 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3617 identifier.
3618
23aa4c72
ML
36192002-06-11 Michal Ludvig <mludvig@suse.cz>
3620
3621 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3622 (unwind_tmp_obstack_free, parse_frame_info)
3623 (update_context, cfi_read_fp, cfi_write_fp)
3624 (cfi_frame_chain, cfi_init_extra_frame_info)
3625 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3626 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3627
70eb15a4
CV
36282002-06-11 Corinna Vinschen <vinschen@redhat.com>
3629
3630 * v850-tdep.c (v850_type_is_scalar): New function.
3631 (v850_use_struct_convention): Match current gcc implementation
3632 as close as possible.
3633 (v850_push_arguments): Fix stack_offset handling. Don't write
3634 struct_addr into register. This is done by v850_store_struct_return.
3635 (v850_extract_return_value): Care for structs.
3636 (v850_store_return_value): Ditto.
3637 (v850_store_struct_return): Actually write address.
3638
482a4d06
ML
36392002-06-11 Michal Ludvig <mludvig@suse.cz>
3640
3641 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3642 without debug information too.
3643
d855c300
AC
36442002-06-10 Andrew Cagney <ac131313@redhat.com>
3645
3646 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3647 Make multi-arch pure.
3648 * gdbarch.h, gdbarch.c: Re-generate.
3649 * arm-tdep.c (arm_print_float_info): Update.
3650 * arch-utils.h (default_print_float_info): Update.
3651 * arch-utils.c (default_print_float_info): Update.
3652 * infcmd.c (float_info): Update call.
3653
dd12a101
AC
36542002-06-10 Andrew Cagney <ac131313@redhat.com>
3655
3656 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3657 the front of the initialize list.
3658
101dcfbe
AC
36592002-06-10 Andrew Cagney <ac131313@redhat.com>
3660
3661 * infrun.c (struct inferior_status): Replace fields
3662 selected_frame_address and selected_level with field
3663 selected_frame_id.
3664 (save_inferior_status): Update. Use get_frame_id.
3665 (struct restore_selected_frame_args): Delete.
3666 (restore_selected_frame): Update. Use frame_find_by_id.
3667 (restore_inferior_status): Update.
3668
3669 * breakpoint.h (struct breakpoint): Change type of
3670 watchpoint_frame to frame_id.
3671 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3672 call to get_current_frame.
3673 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3674 get_current_frame.
3675 (watchpoint_check): Use frame_find_by_id.
3676
3677 * frame.h (record_selected_frame): Delete declaration.
3678 * stack.c (record_selected_frame): Delete function.
3679
3680 * frame.h (struct frame_id): Define.
3681 (get_frame_id): Declare.
3682 (frame_find_by_id): Declare.
3683 * frame.c (frame_find_by_id): New function.
3684 (get_frame_id): New function.
3685
304270b6
AV
36862002-06-10 Andrey Volkov <avolkov@transas.com>
3687
3688 * ser-e7kpc.c: Fix duplicated define and call of
3689 _initialize_ser_e7000pc
3690
2f2cf184
DJ
36912002-06-09 Daniel Jacobowitz <drow@mvista.com>
3692
3693 * signals/signals.c (target_signal_from_host): Fix #ifdef
3694 SIGRTMIN case.
3695 (do_target_signal_to_host): Likewise.
3696
caaa3122
DJ
36972002-06-09 Daniel Jacobowitz <drow@mvista.com>
3698
3699 * mips-tdep.c (mips_find_abi_section): New function.
3700 (mips_gdbarch_init): Call it.
3701
6ac5df3a
MK
37022002-06-09 Mark Kettenis <kettenis@gnu.org>
3703
3704 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3705 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3706 after Andrew's 2002-06-08 gdbarch change.
3707
82ea117a
MK
37082002-06-09 Mark Kettenis <kettenis@gnu.org>
3709
3710 * i386-linux-nat.c (suppy_gregset): Don't supply
3711 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3712 register cache.
3713 (fill_gregset): Don't fetch it under the same circumstances.
3714
3c25f8c7
AC
37152002-06-09 Andrew Cagney <cagney@redhat.com>
3716
3717 * Makefile.in (callback_h): Define.
3718 (remote_sim_h): Update path to remote-sim.h.
3719 (remote-rdp.o): Add $(callback_h).
3720 (remote-sim.o): Use $(callback_h).
3721 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3722 * remote-rdp.c: Include "gdb/callback.h".
3723
1029b7fa
MK
37242002-06-09 Mark Kettenis <kettenis@gnu.org>
3725
3726 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3727 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3728
616675d3
AC
37292002-06-08 Andrew Cagney <ac131313@redhat.com>
3730
a3efda28
AC
3731 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3732 * rdi-share/serpardr.c: Ditto.
3733 * rdi-share/unixcomm.c: Ditto.
3734 * rdi-share/serdrv.c: Ditto.
3735 * rdi-share/hostchan.h: Ditto.
3736 * rdi-share/hostchan.c: Ditto.
3737 * rdi-share/host.h: Ditto.
3738 * rdi-share/devsw.c: Ditto.
3739
c5f10366
AC
3740 * objfiles.h: Change type of obj_private to void pointer.
3741 * pa64solib.c: Update copyright. Don't include "assert.h", use
3742 strcmp instead of STREQ, use LONGEST, do not use PTR
3743 * somsolib.c: Ditto.
3744
616675d3
AC
3745 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3746 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3747 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3748
e4b415d9
AC
37492002-06-08 Andrew Cagney <ac131313@redhat.com>
3750
3751 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3752 (default_get_saved_register): Delete function.
3753 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3754 generic_unwind_get_saved_register.
3755 * gdbarch.h, gdbarch.c: Re-generate.
3756
ca0d0b52
AC
37572002-06-08 Andrew Cagney <ac131313@redhat.com>
3758
3759 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3760 generic_func_frame_chain_valid.
3761 * gdbarch.h, gdbarch.c: Re-generate.
3762 * blockframe.c (generic_func_frame_chain_valid): Only check
3763 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3764 passing FP to PC_IN_CALL_DUMMY.
3765 Fix PR gdb/360.
3766
76860b5f
AC
37672002-06-08 Andrew Cagney <ac131313@redhat.com>
3768
3769 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3770 (register_gdbarch_data): Initialize init_p.
3771 (gdbarch_data): Initialize data pointer using the init function.
3772 (init_gdbarch_data): Delete function.
3773 (gdbarch_update_p): Update.
3774 (initialize_non_multiarch): Update.
3775 (struct gdbarch): Add field initialized_p.
3776 * gdbarch.h, gdbarch.c: Re-generate.
3777
8dda9770
ML
37782002-06-07 Michal Ludvig <mludvig@suse.cz>
3779
3780 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3781 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3782 better do the things actually here.
3783 * x86-64-tdep.c (x86_64_register_name2nr): New.
3784 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3785 (x86_64_gdbarch_init): Respect the above change.
3786 * x86-64-tdep.h (x86_64_register_name2nr)
3787 (x86_64_register_nr2name): Add prototypes.
3788 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3789
3d79a47c
MS
37902002-06-06 Michael Snyder <msnyder@redhat.com>
3791
7bd91a28
MS
3792 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3793 Delete extra braces and re-indent.
3794 (d10v_store_return_value): Char return values
3d79a47c
MS
3795 must be shifted over by one byte in R0.
3796 (d10v_extract_return_value): Delete extra braces, re-indent.
3797
095a4c96
EZ
37982002-06-06 Elena Zannoni <ezannoni@redhat.com>
3799
3800 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3801 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3802 (d10v_integer_to_address): Rewrite.
3803 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3804 the d10v specific functions which take care of converting to the
3805 correct space.
3806
e8a77ca4
EZ
38072002-06-06 Elena Zannoni <ezannoni@redhat.com>
3808
3809 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3810 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3811
4f2e4a4f
AC
38122002-06-02 Andrew Cagney <ac131313@redhat.com>
3813
3814 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3815 includes.
3816 * config/tm-linux.h: Ditto.
3817 * config/alpha/tm-alphalinux.h: Ditto.
3818 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3819 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3820 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3821 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3822 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3823 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3824 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3825 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3826 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3827 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3828 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3829 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3830 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3831 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3832 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3833 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3834 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3835 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3836 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3837 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3838 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3839 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3840 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3841 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3842 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3843 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3844 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3845 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3846 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3847 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3848 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3849 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3850 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3851 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3852 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3853 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3854 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3855
ae2ab2ce
AS
38562002-05-04 Aidan Skinner <aidan@velvet.net>
3857
3858 * ada-exp.tab.c: New file
3859 * ada-exp.y: New file
3860 * ada-lang.c: New file
3861 * ada-lang.h: New file
3862 * ada-lex.c: New file
3863 * ada-lex.l: New file
3864 * ada-tasks.c: New file
3865 * ada-typeprint.c: New file
3866 * ada-valprint.c: New file
3867
0ddd0135
JT
38682002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3869
3870 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3871 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3872
750fbacc
JT
38732002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3874
3875 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3876 insetead of ppc-linux-tdep.o.
3877 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3878 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3879
df94e18a
AC
38802002-06-02 Andrew Cagney <ac131313@redhat.com>
3881
3882 2002-05-07 Christian Groessler <chris@groessler.org>
3883 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3884 bit register contents for little endian hosts.
3885
1a38ab75
AC
38862002-06-01 Andrew Cagney <ac131313@redhat.com>
3887
3888 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3889 any maintainer.
3890
8b1632ac
AC
38912002-06-01 Andrew Cagney <ac131313@redhat.com>
3892
3893 * gdbarch.h: Regenerate.
3894
627054c8
AC
38952002-06-01 Andrew Cagney <ac131313@redhat.com>
3896
3897 * MAINTAINERS: Add everyone to write-after-approval list.
3898
4f460812
AC
38992002-06-01 Andrew Cagney <ac131313@redhat.com>
3900
3901 * stack.c (frame_info): Use frame_register_unwind instead of
3902 saved_regs. Mention when the SP is on the stack or in a register.
3903
3904 * frame.h (frame_register_unwind_ftype): Define. Document.
3905 (struct frame_info): Add field register_unwind and
3906 register_unwind_cache.
3907 (frame_register_unwind): Declare.
3908 (generic_unwind_get_saved_register): Declare.
3909
3910 * frame.c (frame_register_unwind): New function.
3911 (generic_unwind_get_saved_register): New function.
3912
3913 * blockframe.c (generic_call_dummy_register_unwind): New function.
3914 (frame_saved_regs_register_unwind): New function.
3915 (set_unwind_by_pc): New function.
3916 (create_new_frame): New function.
3917 (get_prev_frame): New function.
3918
de888f76
AC
39192002-05-30 Andrew Cagney <ac131313@redhat.com>
3920
3921 * a29k-share/: Delete directory.
3922 * remote-vx29k.c: Delete file.
3923
2f2c3626
JT
39242002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3925
3926 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3927 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3928
9ce5c36a
JT
39292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3930
3931 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3932 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3933 (sparc64nbsd-nat.o)
3934 (sparcnbsd-nat.o)
3935 (sparcnbsd-tdep.o): New dependency lists.
3936 * NEWS: Note new UltraSPARC NetBSD native configuration.
3937 * configure.host (sparc64-*-netbsd*): New host.
3938 * configure.tgt (sparc-*-netbsdelf*)
3939 (sparc-*-netbsd*): Set gdb_target to nbsd.
3940 (sparc64-*-netbsd*): New target.
3941 * sparc64nbsd-nat.c: New file.
3942 * sparcnbsd-nat.c: New file.
3943 * sparcnbsd-tdep.c: New file.
3944 * sparcnbsd-tdep.h: New file.
3945 * config/sparc/nbsd.mt: New file.
3946 * config/sparc/nbsd64.mh: New file.
3947 * config/sparc/nbsd64.mt: New file.
3948 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3949 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3950 (HOST_IPC): Remove.
3951 * config/sparc/nbsdaout.mt: Remove.
3952 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3953 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3954 (HOST_IPC): Remove.
3955 * config/sparc/nbsdelf.mt: Remove.
3956 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3957 sparc-nat.c compatiblity defines.
3958 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3959 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3960 * config/sparc/tm-nbsd64.h: New file.
3961 * config/sparc/tm-nbsdaout.h: Remove.
3962 * config/sparc/xm-nbsd.h: Remove.
3963
ef3cf062
JT
39642002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3965
3966 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3967 * sparc-tdep.c: Include osabi.h.
3968 (gdbarch_tdep): Add osabi member.
3969 (_initialize_sparc_tdep): Use gdbarch_register.
3970 (sparc_gdbarch_init): Use generic OS ABI framework.
3971 (sparc_dump_tdep): New function.
3972
ee8ff470
KB
39732002-05-30 Kevin Buettner <kevinb@redhat.com>
3974
3975 * corefile.c (do_captured_read_memory_integer): Return non-zero
3976 result.
3977 (safe_read_memory_integer): Copy result of memory read when
3978 status is non-zero. Also, add comments.
3979
7b112f9c
JT
39802002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3981
3982 * Makefile.in (ppc_tdep_h): Define.
3983 (ppc-linux-nat.o)
3984 (ppc-linux-tdep.o)
3985 (rs6000-tdep.o): Use $(ppc_tdep_h).
3986 (ppc-sysv-tdep.o)
3987 (ppcnbsd-nat.o)
3988 (ppcnbsd-tdep.o): New dependency lists.
3989 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3990 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3991 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3992 (ppc_sysv_abi_broken_use_struct_convention)
3993 (ppc_sysv_abi_use_struct_convention)
3994 (ppc_sysv_abi_push_arguments): Move to...
3995 * ppc-sysv-tdep.c: ...here.
3996 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3997 * rs6000-tdep.c (process_note_abi_tag_sections)
3998 (get_elfosabi): Remove.
3999 (rs6000_gdbarch_init): Use generic OS ABI framework.
4000 (rs6000_dump_tdep): New function.
4001 (_initialize_rs6000_tdep): Use gdbarch_register.
4002 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4003 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4004 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4005 of ppc-linux-tdep.o.
4006 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4007 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4008 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4009 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4010 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4011 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4012
480dd42a
JB
40132002-05-29 Jim Blandy <jimb@redhat.com>
4014
4015 * macroscope.c (default_macro_scope): Put `void' in empty argument
4016 list.
4017
4182591f
AC
40182002-05-29 Andrew Cagney <ac131313@redhat.com>
4019
4020 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4021 * arch-utils.c: Include "sim-regno.h".
4022 * gdbarch.sh: Don't include "sim-regno.h".
4023 * gdbarch.h, gdbarch.c: Regenerate.
4024 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4025 here.
4026 * arch-utils.h (legacy_register_sim_regno): To here.
4027 * remote-sim.c (legacy_register_sim_regno): Move function from
4028 here.
4029 * arch-utils.c (legacy_register_sim_regno): To here.
4030
8238d0bf
AC
40312002-05-28 Andrew Cagney <ac131313@redhat.com>
4032
4033 * sim-regno.h: New file.
4034 * Makefile.in (sim_regno_h): Define.
4035 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4036 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4037 (legacy_register_sim_regno): New function.
4038 (one2one_register_sim_regno): New function.
4039 (gdbsim_fetch_register): Rewrite.
4040 (gdbsim_store_register): Only store a register when
4041 REGISTER_SIM_REGNO is valid.
4042 * d10v-tdep.c: Include "sim-regno.h".
4043 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4044 (d10v_ts3_register_sim_regno): Ditto.
4045 * gdbarch.sh: Include "sim-regno.h".
4046 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4047 * gdbarch.h, gdbarch.c: Regenerate.
4048 * arch-utils.h (default_register_sim_regno): Delete declaration.
4049 * arch-utils.c (default_register_sim_regno): Delete function.
4050
485721b1
JT
40512002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4052
4053 * ppcnbsd-nat.c: Rewrite.
4054 * ppcnbsd-tdep.c: New file.
4055 * ppcnbsd-tdep.h: New file.
4056 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4057 solib.o, and solib-svr4.o.
4058 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4059 nbsd-tdep.o, and corelow.o.
4060
697f244d
AC
40612002-05-28 Andrew Cagney <ac131313@redhat.com>
4062
4063 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4064 `tr' and `sed'. Mention that `broken' targets are not expected to
4065 build.
4066
f08caad1 40672002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4068
4069 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4070 Let PC point right after the prologue before looking up symbols.
4071
3139facc
MH
40722002-05-27 Martin M. Hunt <hunt@redhat.com>
4073
4074 * i386-tdep.c (i386_register_virtual_type): Return
4075 builtin_type_vec128i for SSE registers.
4076
4077 * gdbtypes.h (builtin_type_vec128i): Declare.
4078
4079 * gdbtypes.c (build_builtin_type_vec128i): New function.
4080 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4081 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4082 (build_gdbtypes): Initialize new builtin vector types.
4083 (_initialize_gdbtypes): Register new vector types with gdbarch.
4084
6e3ba3b8
JT
40852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4086
4087 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4088 since it has been multi-arch'd.
4089 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4090 Move Alpha and VAX multi-arch news entries to same section
4091 as other multi-arch news.
4092
93d5585d
JT
40932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4094
4095 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4096 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4097 static. Rename some register numbers to put them in ns32k-tdep
4098 private namespace.
4099 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4100 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4101 functions.
4102 (_initialize_ns32k_tdep): Use gdbarch_register.
4103 * ns32k-tdep.h: New file.
4104 * ns32knbsd-tdep.c: New file.
4105 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4106 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4107 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4108 REGISTER_BYTES, REGISTER_BYTE): Remove.
4109 * config/ns32k/tm-ns32k.h: New file.
4110 * config/ns32k/tm-umax.h: Remove.
4111
efb2c70e
JT
41122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4113
4114 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4115 ns32k_store_struct_return, ns32k_extract_return_value,
4116 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4117 functions.
4118 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4119 ns32k_saved_pc_after_call.
4120 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4121 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4122 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4123 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4124 ns32k_extract_struct_value_address.
4125
7bcc927b
JT
41262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4127
4128 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4129 ns32k_fix_call_dummy): New.
4130 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4131 ns32k_call_dummy_words.
4132 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4133 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4134 CALL_DUMMY_NARGS): Remove.
4135 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4136
78f9d765
JT
41372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4138
4139 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4140 ns32k_frame_saved_pc, ns32k_frame_args_address,
4141 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4142 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4143 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4144 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4145 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4146 (BREAKPOINT): Remove..
4147 (FRAME_CHAIN): Define as ns32k_frame_chain.
4148 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4149 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4150 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4151 (FRAME_FIND_SAVED_REGS): Remove.
4152 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4153 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4154 (POP_FRAME): Define as ns32k_pop_frame.
4155
f2c762e0
JT
41562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4157
4158 * ns32k-tdep.c (ns32k_register_byte_32082,
4159 ns32k_register_byte_32382, ns32k_register_raw_size,
4160 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4161 functions.
4162 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4163 ns32k_register_byte_32382.
4164 * config/ns32k/tm-umax.h: Update copyright years.
4165 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4166 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4167 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4168 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4169 (ns32k_get_enter_addr): Fix prototype.
4170
af137673
JT
41712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4172
4173 * ns32k-tdep.c: Update copyright years.
4174 (ns32k_register_name_32082): New function.
4175 (ns32k_register_name_32382): Ditto.
4176 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4177 (REGISTER_NAME): Define as ns32k_register_name_32382.
4178 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4179 (REGISTER_NAME): Define as ns32k_register_name_32082.
4180
a8bc7b56
JB
41812002-05-24 Jim Blandy <jimb@redhat.com>
4182
4183 * dwarf2read.c (free_line_header): Use xfree, not free.
4184
83a45910
JT
41852002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4186
4187 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4188 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4189
0db71247
AC
41902002-05-23 Andrew Cagney <ac131313@redhat.com>
4191
4192 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4193
b9e5e4dd
AC
41942002-05-23 Andrew Cagney <ac131313@redhat.com>
4195
4196 From Ross Alexander at NEC Europe:
4197 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4198
de530e84
MS
41992002-05-23 Michael Snyder <msnyder@redhat.com>
4200
4201 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4202 for input, rather than parse_and_eval_address.
4203
b91b96f4
AC
42042002-05-23 Andrew Cagney <ac131313@redhat.com>
4205
4206 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4207 * Makefile.in (sim_d10v_h): Update definition.
4208
8b279e7a
AC
42092002-05-24 Andrew Cagney <cagney@redhat.com>
4210
4211 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4212 change `2002-05-22 Michael Snyder' below.
4213 (d10v_push_arguments): Ditto.
4214 (d10v_extract_return_value): Ditto.
4215
0a3d0425
JB
42162002-05-23 Jim Blandy <jimb@redhat.com>
4217
4218 * macrotab.c (check_for_redefinition): Don't complain if the new
4219 definition is the same as the previous one. Take more arguments
4220 to allow the comparison.
4221 (macro_define_object, macro_define_function): Pass more arguments
4222 to check_for_redefinition.
4223
78eac43e
MS
42242002-05-22 Michael Snyder <msnyder@redhat.com>
4225
4226 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4227 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4228 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4229 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4230 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4231 Add a temp variable to save a call (and a memory read).
4232 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4233 if possible (so that PC_IN_CALL_DUMMY will work).
4234
9bc1edb8
CV
42352002-05-22 Corinna Vinschen <vinschen@redhat.com>
4236
4237 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4238
005ef3d2
ML
42392002-05-22 Michal Ludvig <mludvig@suse.cz>
4240
4241 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4242 fde->cie_ptr.
4243 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4244 (dwarf2_build_frame_info): Add offset to fde->initial_location
4245 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4246 (execute_stack_op): Change type of 'result' from ULONGEST to
4247 CORE_ADDR.
005ef3d2 4248
fcf4f891
JT
42492002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4250
4251 * config/alpha/tm-nbsd.h: Include solib.h.
4252
cfef91e4
JT
42532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4254
4255 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4256 assumptions about the host's byte order.
4257
9964235a
JT
42582002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4259
4260 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4261 to dependency list.
4262 * alphanbsd-tdep.c: Include solib-svr4.h.
4263 * shnbsd-tdep.c: Ditto.
4264
9eeef8ef
JT
42652002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4266
4267 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4268 nbsd-tdep.h to dependency list.
4269 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4270 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4271 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4272 nbsdaout.mh and nbsdelf.mh consistently.
4273 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4274 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4275 nbsdaout.mt and nbsdelf.mh consistently.
4276 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4277 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4278 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4279 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4280 a.out shared library stuff from here...
4281 * config/nm-nbsdaout.h: ...to here.
4282 * config/tm-nbsd.h: Remove.
4283 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4284 * config/arm/nbsd.mh: Remove.
4285 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4286 nbsd-tdep.o.
4287 * config/arm/nbsdaout.mh: New file.
4288 * config/arm/nbsdelf.mh: New file.
4289 * config/arm/nm-nbsdaout.h: New file.
4290 * config/i386/nbsd.mh: Remove.
4291 * config/i386/nbsd.mt: Remove.
4292 * config/i386/nbsdaout.mh: New file.
4293 * config/i386/nbsdaout.mt: New file.
4294 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4295 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4296 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4297 i386_register_u_addr): Remove.
4298 * config/i386/nm-nbsdaout.h: New file.
4299 * config/i386/nm-nbsdelf.h: Remove.
4300 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4301 (USE_STRUCT_CONVENTION): Remove.
4302 * config/i386/tm-nbsdaout.h: New file.
4303 * config/i386/tm-nbsdelf.h: Remove.
4304 * config/m68k/nbsd.mh: Remove.
4305 * config/m68k/nbsd.mt: Remove.
4306 * config/m68k/nbsdaout.mh: New file.
4307 * config/m68k/nbsdaout.mt: New file.
4308 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4309 * config/m68k/nm-nbsdaout.h: New file.
4310 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4311 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4312 * config/ns32k/nbsd.mh: Remove.
4313 * config/ns32k/nbsd.mt: Remove.
4314 * config/ns32k/nbsdaout.mh: New file.
4315 * config/ns32k/nbsdaout.mt: New file.
4316 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4317 * config/ns32k/nm-nbsdaout.h: New file.
4318 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4319 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4320 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4321 (SVR4_SHARED_LIBS): Remove.
4322 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4323 * config/sparc/nbsd.mh: Remove.
4324 * config/sparc/nbsd.mt: Remove.
4325 * config/sparc/nbsdaout.mh: New file.
4326 * config/sparc/nbsdaout.mt: New file.
4327 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4328 * config/sparc/nbsdelf.mt: New file.
4329 * config/sparc/nm-nbsdaout.h: New file.
4330 * config/sparc/nm-nbsdelf.h: Remove.
4331 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4332 * config/sparc/tm-nbsdaout.h: New file.
4333
257ce470
JT
43342002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4335
4336 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4337 mipsnbsd-tdep.c
4338 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4339
76a6d5fe
JT
43402002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4341
4342 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4343 shnbsd-nat.c.
4344 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4345
45888261
JT
43462002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4347
4348 * NEWS: Note new MIPS NetBSD native configuration.
4349 * configure.host (mips*-*-netbsd*): New host.
4350 * configure.tgt (mips*-*-netbsd*): New target.
4351 * mipsnbsd-nat.c: New file.
4352 * mipsnbsd-tdep.c: New file.
4353 * mipsnbsd-tdep.h: New file.
4354 * config/mips/nbsd.mh: New file.
4355 * config/mips/nbsd.mt: New file.
4356 * config/mips/nm-nbsd.h: New file.
4357 * config/mips/tm-nbsd.h: New file.
4358
70f80edf
JT
43592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4360
4361 * Makefile.in (SFILES): Add osabi.c.
4362 (COMMON_OBS): Add osabi.o.
4363 (osabi.o): New dependency list.
4364 * osabi.c: New file.
4365 * osabi.h: New file.
4366 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4367
4368 * Makefile.in (alpha_tdep_h): Define and use instead of
4369 alpha-tdep.h.
4370 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4371 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4372 Remove.
4373 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4374 * alpha-tdep.h: Include osabi.h.
4375 (alpha_abi): Remove.
4376 (gdbarch_tdep): Use generic OS ABI framework.
4377 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4378 gdbarch_register_osabi.
4379 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4380 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4381 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4382
4383 * Makefile.in (sh_tdep_h): Add osabi.h.
4384 * sh-tdep.h (sh_osabi): Remove.
4385 (gdbarch_tdep): Use generic OS ABI framework.
4386 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4387 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4388 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4389 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4390
4391 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4392 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4393 gdbarch_register_osabi.
4394 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4395 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4396 (get_elfosabi): Rename to...
4397 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4398 ABI framework support routines.
4399 (arm_gdbarch_init): Use generic OS ABI framework.
4400 (arm_dump_tdep): Likewise.
4401 (_initialize_arm_tdep): Likewise.
4402 * arm-tdep.h: Include osabi.h.
4403 (arm_abi): Remove.
4404 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4405 osabi member.
4406 (arm_gdbarch_register_os_abi): Remove prototype.
4407 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4408 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4409
4410 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4411 * mips-tdep.c: Include osabi.h.
4412 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4413 OS ABI framework.
4414
d194345b
KH
44152002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4416
4417 * h8300-tdep.c: Fix formatting.
4418
70c6b0d1
EZ
44192002-05-20 Elena Zannoni <ezannoni@redhat.com>
4420
4421 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4422 printing vector registers.
4423
165b8e33
AC
44242002-05-19 Andrew Cagney <ac131313@redhat.com>
4425
4426 From Fernando Nasser:
4427 * remote.c (remote_async_open_1): Re-throw the exception when the
4428 connection fails.
4429 (remote_cisco_open): Ditto.
4430 (remote_open_1): Ditto.
4431
36918e70
AC
44322002-05-19 Andrew Cagney <ac131313@redhat.com>
4433
4434 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4435 (remote_start_remote): Add uiout parameter. Pass through to
4436 remote_start_remote_dummy.
4437 (remote_open_1): Use catch_exception instead of catch_errors.
4438 (remote_async_open_1): Ditto.
4439 (remote_cisco_open): Ditto.
4440
ae44c0c4
AC
44412002-05-19 Andrew Cagney <ac131313@redhat.com>
4442
4443 * remote.c (remote_start_remote): Replace PTR with void pointer.
4444 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4445 static.
4446
8efe637d
AC
44472002-05-18 Andrew Cagney <ac131313@redhat.com>
4448
4449 * gdb_indent.sh: Allow the script to be run in the sim directory.
4450
2f1b5984
MK
44512002-05-18 Mark Kettenis <kettenis@gnu.org>
4452
f0f625e2
MK
4453 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4454 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4455
2f1b5984
MK
4456 * corelow.c (core_open): Only call set_gdbarch_from_file if
4457 exec_bfd is NULL.
4458
fc974602
AV
44592002-05-17 Andrey Volkov <avolkov@transas.com>
4460
4461 * h8300-tdep.c: Add support of EXR register
4462 * config/h8300/tm-h8300.h: Ditto.
4463
906709f4
AV
44642002-05-17 Andrey Volkov <avolkov@transas.com>
4465
4466 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4467
6e591d68
AV
44682002-05-17 Andrey Volkov <avolkov@transas.com>
4469
4470 * h8300-tdep.c: Change literal regnums to REGNO.
4471
84f0252a
JB
44722002-05-17 Jim Blandy <jimb@redhat.com>
4473
e0e9281e
JB
4474 * NEWS: Note addition of macro support.
4475
84f0252a
JB
4476 Expand preprocessor macros in C expressions.
4477 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4478 (scan_macro_expansion, scanning_macro_expansion,
4479 finished_macro_expansion): New function declarations.
4480 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4481 variable declarations.
4482 * parser-defs.h (expression_context_pc): New declaration.
4483 * parse.c (expression_context_pc): New variable.
4484 (parse_exp_1): Set expression_context_pc, as well as
4485 expression_context_block.
4486 * c-exp.y (yylex): If we're not already reading the result of a
4487 macro expansion, try to macro-expand the next token. When we're
4488 done scanning a macro expansion, switch back to the mainline text.
4489 Commas and `if's in a macro's expansion don't terminate the input.
4490 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4491 (macro_original_text, macro_expanded_text,
4492 expression_macro_lookup_func, expression_macro_lookup_baton): New
4493 variables.
4494 (scan_macro_expansion, scanning_macro_expansion,
4495 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4496 c_preprocess_and_parse): New functions.
4497 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4498 c_preprocess_and_parse, instead of c_parse.
4499 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4500 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4501
1c509ca8
JR
4502Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4503
4504 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4505 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4506 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4507
2250ee0c
CV
45082002-05-17 Corinna Vinschen <vinschen@redhat.com>
4509
4510 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4511
ab3b8126
JT
45122002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4513
4514 * Makefile.in (sh_tdep_h): Define and use.
4515 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4516 register enum): Move to...
4517 * * sh-tdep.h: ...here.
4518 * sh-tdep.c: Include sh-tdep.h.
4519 * sh3-rom.c: Likewise.
4520 * shnbsd-tdep.c: Likewise.
4521
ed9d4749
MS
45222002-05-16 Michael Snyder <msnyder@redhat.com>
4523
4524 * arm-tdep.c: Spelling fix in comment.
4525
2e276125
JB
45262002-05-16 Jim Blandy <jimb@redhat.com>
4527
6821892e
JB
4528 Add commands for manually expanding macros and showing their
4529 definitions.
4530 * macrocmd.c, macroscope.c, macroscope.h: New files.
4531 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4532 (macroscope_h): New variable.
4533 (HFILES_NO_SRCDIR): Add macroscope.h.
4534 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4535 (macroscope.o, macrocmd.o): New rules.
4536
2e276125
JB
4537 Teach the Dwarf 2 reader to read macro information.
4538 * dwarf2read.c: #include "macrotab.h".
4539 (dwarf_macinfo_buffer): New variable.
4540 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4541 dwarf_macinfo_size.
4542 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4543 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4544 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4545 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4546 dwarf2_macro_spaces_in_definition): New complaints.
4547 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4548 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4549 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4550 the partial symbol table.
4551 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4552 from what's recorded in the partial symbol table.
4553 (read_file_scope): If the compilation unit has a
4554 `DW_AT_macro_info' attribute, read its macro information.
4555 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4556
2f53fe6c
DJ
45572002-05-16 Daniel Jacobowitz <drow@mvista.com>
4558
4559 Fix PR gdb/546
4560 * ser-tcp.c: Don't include <netinet/udp.h>.
4561
2be99286
SC
45622002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4563
4564 * MAINTAINERS: Update my email address.
4565
c9af212b 45662002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4567
4568 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4569 include file of the same name.
4570
bf5f1a52
CV
45712002-05-16 Corinna Vinschen <vinschen@redhat.com>
4572
4573 * configure.tgt: Mark v850 as multi-arched.
4574 * config/v850/tm-v850.h: Remove file.
4575 * config/v850/v850.mt: Eliminate TM_FILE.
4576
435e042a
CV
45772002-05-16 Corinna Vinschen <vinschen@redhat.com>
4578
4579 * v850-tdep.c: Full multi-arch.
4580 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4581 Define GDB_MULTI_ARCH to 2.
4582
9819c6c8
PM
45832002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4584
4585 * p-exp.y (current_type): New static variable.
4586 Carries the type of the expression at the position that is parsed.
4587 (push_current_type, pop_current_type): Two new functions. Used
4588 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4589 (search_field): New static variable. Set to one after parsing a point
4590 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4591 (FIELDNAME): New token. After a point only a token belonging to
4592 current_type type definition is allowed.
4593 (all over token rules): reset and change current_type according
4594 to rules.
4595 (exp '[' rule): insert implicit array index field if
4596 exp is a pascal string type.
4597
3a06899a
CV
45982002-05-16 Corinna Vinschen <vinschen@redhat.com>
4599
4600 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4601 frame info. Use frame_info's saved_regs instead of matching member
4602 in extra_frame_info throughout.
4603 (v850_frame_init_saved_regs): New function.
4604 (v850_init_extra_frame_info): Move most functionality into
4605 v850_frame_init_saved_regs().
4606 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4607 (v850_frame_find_saved_regs): Remove declaration.
4608 (FRAME_FIND_SAVED_REGS): Remove definition.
4609 (v850_frame_init_saved_regs): Add declaration.
4610 (FRAME_INIT_SAVED_REGS): Add definition.
4611
6ed14b0e
CV
46122002-05-16 Corinna Vinschen <vinschen@redhat.com>
4613
4614 * v850-tdep.c: Begin multi-arch'ing v850.
4615 (v850_target_architecture_hook): Remove function.
4616 (v850_gdbarch_init): New function. Add code previously in
4617 v850_target_architecture_hook().
4618 (_initialize_v850_tdep): Don't set target_architecture_hook.
4619 Call register_gdbarch_init() instead.
4620
42725910
DJ
46212002-05-16 Daniel Jacobowitz <drow@mvista.com>
4622
4623 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4624 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4625 (fixup_class_method_type): Likewise.
4626
0bc68c49
DJ
46272002-05-15 Daniel Jacobowitz <drow@mvista.com>
4628
4629 From Martin Pool <mbp@samba.org>:
4630 * gdbserver/server.c (gdbserver_usage): New function.
4631 (main): Call it.
4632
99d9066e
JB
46332002-05-15 Jim Blandy <jimb@redhat.com>
4634
4635 Add macro structures to GDB's symbol tables. Nobody puts anything
4636 in them yet.
4637 * symtab.h (struct symtab): New member: `macro_table'.
4638 * buildsym.h (pending_macros): New global variable.
4639 * buildsym.c: #include "macrotab.h".
4640 (buildsym_init): Initialize `pending_macros'.
4641 (end_symtab): If we found macro information while reading a CU's
4642 debugging info, do build a symtab structure for it. Make the
4643 symtab point to the macro information, and clear the
4644 `pending_macros' pointer which held it while we were reading the
4645 debug info.
4646 (really_free_pendings): Free any pending macro table.
4647 * objfiles.h (struct objfile): New member: `macro_cache'.
4648 * objfiles.c (allocate_objfile): Set allocate and free functions
4649 for the macro cache's objstack.
4650 (free_objfile): Empty the macro cache's obstack.
4651 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4652 set new allocate and free functions for it.
4653 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4654 free functions for the macro cache's objstack. (Why is this
4655 function building its own objfile?)
4656 * symmisc.c (print_objfile_statistics): Print statistics on the
4657 macro bcache.
4658 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4659
c899585b
RE
46602002-05-15 Richard Earnshaw <rearnsha@arm.com>
4661
4662 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4663 (REGISTER_U_ADDR): Delete definition.
4664 (arm_register_u_addr): Delete declaration.
4665
a6cdd8c5
RE
46662002-05-15 Richard Earnshaw <rearnsha@arm.com>
4667
4668 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4669 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4670
fd3a5ca1
DJ
46712002-05-14 Daniel Jacobowitz <drow@mvista.com>
4672
4673 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4674 stop_at -> stop_pc.
4675
c97dcfc7
AC
46762002-05-14 Andrew Cagney <ac131313@redhat.com>
4677
4678 * regcache.c (register_valid): Revise comments refering to "Not
4679 available" and "unavailable".
4680 * frame.c (frame_register_read): Ditto.
4681 * findvar.c (value_of_register): Ditto.
4682
93021b7d
AC
46832002-05-15 Andrew Cagney <cagney@redhat.com>
4684
4685 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4686 (remote-sim.o): Update dependencies.
4687 (d10v-tdep.o): Specify dependencies.
4688 (sim_d10v_h): Define.
4689
a86bc61c
JB
46902002-05-14 Jim Blandy <jimb@redhat.com>
4691
4692 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4693 * macrotab.c (macro_lookup_inclusion, find_definition,
4694 new_macro_table): Same.
4695
4696 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4697 not `! strcmp ()'. This is a dubious improvement.
4698 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4699
4700 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4701 although it's not necessary, to avoid a warning.
4702
2fdde8f8
DJ
47032002-05-14 Daniel Jacobowitz <drow@mvista.com>
4704
4705 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4706 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4707 TYPE_INSTANCE_FLAGS.
4708 (struct main_type): New.
4709 (struct type): Move most members to struct main_type. Change
4710 cv_type and as_type to new type_chain member. Add instance_flags.
4711 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4712 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4713 (finish_cv_type): Remove prototype.
4714 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4715 Set TYPE_CHAIN.
4716 (alloc_type_instance): New function.
4717 (smash_type): New function.
4718 (make_pointer_type, make_reference_type, make_function_type)
4719 (smash_to_member_type, smash_to_method_type): Call smash_type.
4720 (make_qualified_type): New function.
4721 (make_type_with_address_space): Call make_qualified_type.
4722 (make_cv_type): Likewise.
4723 (finish_cv_type): Remove unnecessary function.
4724 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4725 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4726 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4727 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4728 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4729 * hpread.c (hpread_read_struct_type): Likewise.
4730 * stabsread.c (read_struct_type): Likewise.
4731
843fedf4
EZ
47322002-05-14 Elena Zannoni <ezannoni@redhat.com>
4733
4734 * configure.tgt: Add a catch all sh* target, for cases like
4735 sh[2,3,4]-elf and sh-hms.
4736
05a6c72c
KS
47372002-05-14 Keith Seitz <keiths@redhat.com>
4738
4739 * event-loop.c (create_file_handler): Don't do anything but
4740 update data when we are given a fd which we are already
4741 monitoring.
4742
5d085aaf
ML
47432002-05-14 Michal Ludvig <mludvig@suse.cz>
4744
4745 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4746 (update_context): Use __func__ in warnings.
4747
9db8d71f
DJ
47482002-05-14 Daniel Jacobowitz <drow@mvista.com>
4749
4750 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4751 and tcp_close to net_open and net_close.
4752 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4753 using UDP if requested. Don't try to disable Nagle on UDP
4754 sockets.
4755 * remote.c (remote_serial_open): New function. Warn about UDP.
4756 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4757
5dbc6baa
EZ
47582002-05-13 Elena Zannoni <ezannoni@redhat.com>
4759
4760 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4761
cc3023f7
EZ
47622002-05-13 Elena Zannoni <ezannoni@redhat.com>
4763
4764 * configure.tgt: Remove sh-hms target.
4765 * MAINTAINERS: Don't list sh-hms as a separate target.
4766
ec2bcbe7
JB
47672002-05-13 Jim Blandy <jimb@redhat.com>
4768
4769 Add first preprocessor macro-expansion files.
4770 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4771 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4772 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4773 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4774 (COMMON_OBS): Add macrotab.o, macroexp.o.
4775 (macroexp.o, macrotab.o): New rules.
4776
6d531722
AC
47772002-05-13 Andrew Cagney <ac131313@redhat.com>
4778
4779 * config/m88k/tm-m88k.h: Update copyright.
4780 (m88k_target_write_pc): Declare
4781 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4782 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4783 (SHIFT_INST_REGS): Update definition.
4784 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4785 using old definition of TARGET_WRITE_PC.
4786 * regcache.c (generic_target_write_pc): Delete code handling
4787 NNPC_REGNUM.
4788 * gdbarch.sh (NNPC_REGNUM): Delete.
4789 * gdbarch.h, gdbarch.c: Regenerate.
4790
3e3f2739
RE
47912002-05-13 Richard Earnshaw <rearnsha@arm.com>
4792
4793 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4794 builtin reg number.
4795
0004e5a2
DJ
47962002-05-13 Daniel Jacobowitz <drow@mvista.com>
4797
4798 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4799 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4800 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4801 access macros.
4802 * c-typeprint.c (cp_type_print_method_args): Likewise.
4803 (c_type_print_args): Likewise.
4804 * d10v-tdep.c (d10v_push_arguments): Likewise.
4805 (d10v_extract_return_value): Likewise.
4806 * expprint.c (print_subexp): Likewise.
4807 * gdbtypes.c (lookup_primitive_typename): Likewise.
4808 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4809 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4810 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4811 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4812 (TYPE_VECTOR): Likewise.
4813 * hpread.c (hpread_read_struct_type)
4814 (fix_static_member_physnames, fixup_class_method_type)
4815 (hpread_type_lookup): Likewise.
4816 * mdebugread.c (parse_symbol, parse_type): Likewise.
4817 * p-lang.c (is_pascal_string_type): Likewise.
4818 * valops.c (hand_function_call): Likewise.
4819 * x86-64-tdep.c (classify_argument): Likewise.
4820
4821 * hpread.c (hpread_read_function_type)
4822 (hpread_read_doc_function_type): Call replace_type.
4823 * dstread.c (create_new_type): Delete.
4824 (decode_dst_structure, process_dst_function): Call alloc_type.
4825 Use type access macros.
4826
dff95cc7
MK
48272002-05-12 Mark Kettenis <kettenis@gnu.org>
4828
4829 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4830 the're not supported by the current architecture.
4831 (i387_fill_fxsave): Likewise.
4832
bbcd32ad
FF
48332002-05-12 Fred Fish <fnf@redhat.com>
4834
4835 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4836 sect_index_xxx members to index the first slot in section_offsets
4837 if all of the section_offsets are zero.
4838
89cf4787
MK
48392002-05-12 Mark Kettenis <kettenis@gnu.org>
4840
4841 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4842 checked in with last change.
4843
1f77ffc5
MK
48442002-05-12 Mark Kettenis <kettenis@gnu.org>
4845
4846 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4847 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4848 config.sub.
4849
89b8b4a9
DJ
48502002-05-12 Daniel Jacobowitz <drow@mvista.com>
4851
4852 * Makefile.in: Update dependencies.
4853
14a5e767
AC
48542002-05-11 Andrew Cagney <ac131313@redhat.com>
4855
4856 * language.c (local_hex_string_custom): Simplify. Do not depend
4857 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4858
4859 * memattr.c (mem_info_command): Replace calls to
4860 longest_local_hex_string and longest_local_hex_string_custom.
4861 * buildsym.c (make_blockvector): Ditto.
4862 * solib.c (info_sharedlibrary_command): Ditto.
4863 * tracepoint.c (tracepoints_info): Ditto.
4864 * symtab.c (print_msymbol_info): Ditto.
4865
4866 * language.c (local_hex_string): Delete.
4867 (local_hex_string_custom): Delete.
4868 (longest_local_hex_string): Rename to local_hex_string.
4869 (longest_local_hex_string_custom): Rename to
4870 local_hex_string_custom.
4871 * language.h (local_hex_string): Change parameter type to LONGEST.
4872 (local_hex_string_custom): Ditto.
4873 (longest_local_hex_string): Delete declaration.
4874 (longest_local_hex_string_custom): Ditto.
4875
4876 * solib.c: Update copyright.
4877 * memattr.c: Update copyright.
4878
13d01224
AC
48792002-05-11 Andrew Cagney <ac131313@redhat.com>
4880
4881 * arch-utils.h (legacy_register_to_value): Declare.
4882 (legacy_value_to_register): Declare.
4883 (legacy_convert_register_p): Declare.
4884 * arch-utils.c (legacy_register_to_value): New function.
4885 (legacy_value_to_register): New function.
4886 (legacy_convert_register_p): New function.
4887
4888 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4889 (VALUE_TO_REGISTER): Define.
4890 (CONVERT_REGISTER_P): Define.
4891 * gdbarch.h, gdbarch.c: Regenerate.
4892
4893 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4894 VALUE_TO_REGISTER.
4895 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4896 CONVERT_REGISTER_P.
4897
4a1970e4
DJ
48982005-05-11 Daniel Jacobowitz <drow@mvista.com>
4899 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4900
4901 * Makefile.in: Update dependencies for valops.c.
4902 * valops.c: Include "gdb_assert.h".
4903 (typecmp): Skip THIS parameter to methods.
4904 (find_method_list): Remove static_memfuncp argument,
4905 update callers. Check for stub methods.
4906 (find_value_oload_method_list): Don't set *static_memfuncp.
4907 (find_overload_match): Don't check for stub methods. Assert
4908 that methods are not stubbed. Handle static methods.
4909 (value_find_oload_method_list): Remove static_memfuncp argument.
4910 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4911 to the argument list for static stub methods.
4912 * value.h (value_find_oload_method_list): Update prototype.
4913
b2e75d78
AC
49142002-05-11 Andrew Cagney <ac131313@redhat.com>
4915
4916 * arch-utils.h (generic_register_size): Declare.
4917 (generic_register_raw_size, generic_register_virtual_size): Delete
4918 declarations.
4919 * arch-utils.c (generic_register_raw_size): Delete.
4920 (generic_register_size): New function.
4921 (generic_register_virtual_size): Delete.
4922
4923 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4924 default generic_register_size.
4925 * gdbarch.h, gdbarch.c: Re-generate.
4926
4927 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4928 register_virtual_size.
4929 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4930 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4931
451fbdda
AC
49322002-05-11 Andrew Cagney <ac131313@redhat.com>
4933
4934 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4935 * gdbarch.h, gdbarch.c: Regenerate.
4936 * gnu-v3-abi.c: Update copyright.
4937 (vtable_address_point_offset): Update.
4938 (gnuv3_rtti_type): Update.
4939 (gnuv3_baseclass_offset): Update.
4940 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4941 (init_fetch_link_map_offsets): Update.
4942 * remote.c (get_remote_state): Update.
4943
6d2f5cea
DJ
49442002-05-11 Daniel Jacobowitz <drow@mvista.com>
4945
4946 * TODO: Remove value_headof/value_from_vtable_info comment.
4947 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4948 * values.c (value_headof, value_from_vtable_info): Delete.
4949 * value.h (value_from_vtable_info): Delete prototype.
4950
d2324da4
AC
49512002-05-11 Andrew Cagney <ac131313@redhat.com>
4952
4953 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4954 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4955 $(gdb_regex_h).
4956 (gdb_assert_h): Define.
4957 (gdb_wait_h): Define.
4958 (gdb_regex_h): Define.
4959
5c717440
DJ
49602002-05-11 Daniel Jacobowitz <drow@mvista.com>
4961
4962 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4963 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4964
6c7861b3
JT
49652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4966
4967 * nbsd-tdep.c: Fix comment.
4968
ea5bc2a6
JT
49692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4970
4971 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4972 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4973 (nbsd-tdep.o): New dependency list.
4974 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4975 nbsd-tdep.h.
4976 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4977 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4978 * nbsd-tdep.c: New file.
4979 * nbsd-tdep.h: New file.
4980 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4981 nbsd-tdep.h.
4982 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4983 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4984 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4985 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4986
b28da865
JT
49872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4988
4989 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4990 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4991 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4992 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4993 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4994 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4995
4b8ff1fa
JT
49962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4997
4998 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4999 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5000 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5001 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5002 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5003 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5004 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5005
dfe6eb1f
JT
50062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5007
5008 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5009 fetch_elfcore_registers to...
5010 * i386nbsd-tdep.c: ...here.
5011 (i386nbsd_use_struct_convention): Rename to...
5012 (i386nbsd_aout_use_struct_convention): ...this.
5013 (i386nbsd_supply_reg): New function.
5014 (i386nbsd_fill_reg): New function.
5015 (fetch_core_registers): Use i386nbsd_supply_reg.
5016 (fetch_elfcore_registers): Likewise.
5017 (_initialize_i386nbsd_tdep): New function.
5018 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5019 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5020 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5021 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5022 (i386nbsd_aout_use_struct_convention): ...this.
5023
20cb8cda
JT
50242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5025
5026 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5027 (store_inferior_registers): Use shnbsd_fill_reg.
5028 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5029 sh_nbsd_supply_register): Collapse into...
5030 (shnbsd_supply_reg): ...this.
5031 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5032 (shnbsd_fill_reg): ...this.
5033 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5034 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5035 (fetch_core_registers): Use shnbsd_supply_reg.
5036 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5037 (sh_nbsd_core_fns): Rename to...
5038 (shnbsd_core_fns): ...this.
5039 (sh_nbsd_elfcore_fns): Rename to...
5040 (shnbsd_elfcore_fns): ...this.
5041 (sh_nbsd_init_abi): Rename to...
5042 (shnbsd_init_abi): ...this.
5043 (_initialize_sh_nbsd_tdep): Rename to...
5044 (_initialize_shnbsd_tdep): ...this.
5045 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5046 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5047 sh_nbsd_fill_register): Remove prototypes.
5048 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5049
e750d25e
JT
50502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5051
5052 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5053 (i387-nat.o): Delete dependency list.
5054 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5055 (x86-64-linux-nat.o): Likewise.
5056 * i387-nat.c: Delete file, moving contents to...
5057 * i387-tdep.c: ...here.
5058 * i387-nat.h: Rename...
5059 * i387-tdep.h: ...to this.
5060 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5061 * i386-linux-nat.c: Likewise.
5062 * i386bsd-nat.c: Likewise.
5063 * i386gnu-nat.c: Likewise.
5064 * i386nbsd-nat.c: Likewise.
5065 * i386v4-nat.c: Likewise.
5066 * x86-64-linux-nat.c: Likewise.
5067 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5068 * config/i386/go32.mh (NATDEPFILES): Likewise.
5069 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5070 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5071 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5072 * config/i386/linux.mh (NATDEPFILES): Likewise.
5073 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5074 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5075 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5076 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5077
1aee598a
JT
50782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5079
5080 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5081 (alphanbsd-nat.o): Remove dependency list.
5082 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5083 * alphanbsd-nat.c: Delete. Contents moved to...
5084 * alphanbsd-tdep.c: ...here.
5085 (_initialize_alphanbsd_tdep): Register core functions.
5086 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5087
12bcb0fe
JT
50882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5089
5090 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5091 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5092 (alphanbsd-nat.o): Likewise.
5093 (alphabsd-tdep.o): New dependency list.
5094 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5095 (fill_gregset): Use alphabsd_fill_reg.
5096 (supply_fpregset): Use alphabsd_supply_fpreg.
5097 (fill_fpregset): Use alphabsd_fill_fpreg.
5098 (fetch_inferior_registers): Use struct reg and struct fpreg
5099 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5100 and alphabsd_supply_fpreg.
5101 (store_inferior_registers): Use struct reg and struct fpreg
5102 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5103 and alphabsd_fill_fpreg.
5104 * alphabsd-tdep.c: New file.
5105 * alphabsd-tdep.h: New file.
5106 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5107 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5108 alphabsd_supply_fpreg.
5109 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5110 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5111
361d1df0
EC
51122002-05-11 Eric Christopher <echristo@redhat.com>
5113
5114 * mips-tdep.c (mips_double_register_type): Fix thinko.
5115 (mips_single_register_type): Ditto.
5116 * MAINTAINERS: Add self.
5117
92dd7cee
MK
51182002-05-11 Mark Kettenis <kettenis@gnu.org>
5119
5120 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5121 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5122 right thing on architectures with different endianness and/or
5123 integer sizes.
5124
e27da16d
JT
51252002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5126
5127 From Christian Limpach <chris@Pin.LU>
5128 * configure.in: Change sed expression which comments out
5129 NATDEPFILES to also comment out continuation lines.
5130 * configure: Regenerate.
5131
ddde02bd
EZ
51322002-05-10 Elena Zannoni <ezannoni@redhat.com>
5133
5134 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5135 big patch.
5136
1c922164
EZ
51372002-05-10 Elena Zannoni <ezannoni@redhat.com>
5138
5139 * sh-tdep.c: Include correct file.
5140
283150cd
EZ
51412002-05-10 Elena Zannoni <ezannoni@redhat.com>
5142
5143 New support for sh64-elf (sh5) target.
5144
5145 * configure.tgt: For sh64-elf target, default to sh-elf.
5146
5147 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5148 (struct gdbarch_tdep): Add new fields for new registers and ABI
5149 info.
361d1df0 5150
283150cd
EZ
5151 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5152 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5153 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5154 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5155 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5156 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5157 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5158 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5159 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5160 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5161 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5162 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5163 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5164 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5165 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5166 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5167 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5168 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5169 sign_extend, sh64_nofp_frame_init_saved_regs,
5170 sh64_init_extra_frame_info, sh64_get_saved_register,
5171 sh64_extract_struct_value_address, sh64_pop_frame,
5172 sh64_push_arguments, sh64_extract_return_value,
5173 sh64_store_return_value, sh64_show_media_regs,
5174 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5175 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5176 sh_sh64_register_virtual_type,
5177 sh_sh64_register_convert_to_virtual,
5178 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5179 sh64_register_read, sh64_pseudo_register_write,
5180 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5181 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5182 sh64_do_pseudo_register, sh_compact_do_registers_info,
5183 sh64_do_registers_info, sh_gdbarch_init): New functions.
5184
3117ed25
EZ
51852002-05-10 Elena Zannoni <ezannoni@redhat.com>
5186
5187 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5188
2654e6d4
DJ
51892002-05-10 Daniel Jacobowitz <drow@mvista.com>
5190
5191 * linespec.c (decode_line_1): Check for a double quote after
5192 a filename correctly.
5193
9ab3e532
JB
51942002-05-10 Jim Blandy <jimb@redhat.com>
5195
5196 Properly track the size of the current objfile's .debug_line section.
5197 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5198 (DWARF_LINE_SIZE): New macro.
5199 (dwarf2_build_psymtabs_hard): Record the line section's size in
5200 the partial symbol table.
5201 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5202 symbol table.
5203
126fa72d
PS
52042002-05-10 Petr Sorfa <petrs@caldera.com>
5205
5206 * ia64-tdep.c: Handle breakpoints on L instruction type
5207 in MLX instruction bundle by moving the breakpoint to
5208 the third slot (X instruction type) as L holds only data.
5209
1f077a3e
KB
52102002-05-10 Kevin Buettner <kevinb@redhat.com>
5211
5212 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5213 (process_one_symbol): Complain about discarding local symbols
5214 due to a misplaced N_LBRAC entry.
5215
8120c9d5 52162002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5217
5218 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5219 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5220 decrease the depth we are at, in the case of templates.
361d1df0 5221
67b2c998
DJ
52222002-05-09 Daniel Jacobowitz <drow@mvista.com>
5223
5224 * mips-tdep.c (mips_float_register_type): New function.
5225 (mips_double_register_type): New function.
5226 (mips_print_register): Use them.
5227 (do_fp_register_row): Likewise.
5228
fd326606
DJ
52292002-05-09 Daniel Jacobowitz <drow@mvista.com>
5230
6609d9af 5231 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5232 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5233 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5234
bef35864
MS
52352002-05-09 Michael Snyder <msnyder@redhat.com>
5236
5237 * remote-rdp.c (remote_rdp_can_run): Remove.
5238
c55a3f73
TT
52392002-05-09 Tom Tromey <tromey@redhat.com>
5240
5241 * jv-valprint.c (java_val_print): Handle `char' as a special case
5242 of TYPE_CODE_INT.
5243
b8d5e71d
MS
52442002-05-09 Michael Snyder <msnyder@redhat.com>
5245
5246 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5247 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5248 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5249 str r(0123),[sp,#nn].
361d1df0 5250 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5251 order-independent by placing it in a loop.
5252
e2cd42dd
MS
52532002-05-06 Michael Snyder <msnyder@redhat.com>
5254
5255 * stabsread.c (read_type): Add recognition for new attribute:
5256 "@V;" means that an array type is actually a vector.
5257 This is analogous to the vector flag that's been added to dwarf2.
5258
3ce1502b
MK
52592002-05-09 Mark Kettenis <kettenis@gnu.org>
5260
5261 * i386-tdep.h (i386_abi): New enum.
5262 (struct gdbarch_tdep): Replace os_ident member with abi.
5263 (i386_gdbarch_register_os_abi): New prototype.
5264 * i386-tdep.c (i386_abi_names): New array.
5265 (process_note_abi_tag_sections): Removed.
5266 (process_note_sections): New function.
5267 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5268 (struct i386_abi_handler): New struct.
5269 (i386_abi_handler_list): New variable.
5270 (i386_gdbarch_register_os_abi): New function.
5271 (i386_gdbarch_init): Adapt for the changes given above.
5272
084c156a
DJ
52732002-05-08 Daniel Jacobowitz <drow@mvista.com>
5274
5275 * gregset.h: Say "GNU/Linux".
5276
6599f021
EZ
52772002-05-08 Elena Zannoni <ezannoni@redhat.com>
5278
5279 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5280 (build_gdbtypes): Build builtin_type_v2_float.
5281 (_initialize_gdbtypes): Register new builtin type.
5282
40af4b0c
AC
52832002-05-08 Andrew Cagney <ac131313@redhat.com>
5284
5285 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5286 (clear_gdbarch_swap): New function.
5287 (initialize_non_multiarch): Call.
5288 (gdbarch_update_p): Before calling init(), swap out and clear the
5289 existing architecture.
5290 * gdbarch.c: Regenerate.
5291
4fe84f46
JT
52922002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5293
5294 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5295 alphanbsd-tdep.c.
5296
4015edd1
JT
52972002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5298
5299 * sh-nbsd-nat.c: Rename to...
5300 * shnbsd-nat.c: ...this.
5301 * sh-nbsd-tdep.c: Rename to...
5302 * shnbsd-tdep.c: ...this.
5303 * sh-nbsd-tdep.h: Rename to...
5304 * shnbsd-tdep.h: ...this.
5305 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5306 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5307
0e2bd219
RE
53082002-05-08 Richard Earnshaw <rearnsha@arm.com>
5309
5310 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5311 concatenation for command help messages.
5312
13a38d45
JT
53132002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5314
5315 * NEWS: Note new sh*-*-netbsdelf* configuration.
5316 * configure.host: Set gdb_host_cpu to sh for all sh*.
5317 (sh*-*-netbsdelf*): New host.
5318 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5319 (sh*-*-netbsdelf*): New target.
5320 * sh-nbsd-nat.c: New file.
5321 * sh-nbsd-tdep.c: New file.
5322 * sh-nbsd-tdep.h: New file.
5323 * config/sh/nbsd.mh: New file.
5324 * config/sh/nbsd.mt: New file.
5325 * config/sh/nm-nbsd.h: New file.
5326 * config/sh/tm-nbsd.h: New file.
5327
d658f924
JT
53282002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5329
5330 * sh-tdep.c (sh_osabi_names): Declare.
5331 (process_note_abi_tag_sections): New function.
5332 (get_elfosabi): Ditto.
5333 (sh_gdbarch_register_os_abi): Ditto.
5334 (sh_dump_tdep): Ditto.
5335 _initialize_sh_tdep): Use gdbarch_register to register
5336 sh_gdbarch_init and sh_dump_tdep.
5337 * config/sh/tm-sh.h (sh_osabi): Declare.
5338 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5339
848cfffb
AC
53402002-05-07 Andrew Cagney <ac131313@redhat.com>
5341
5342 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5343 (thumb_scan_prologue): Ditto.
5344 (arm_find_callers_reg): Ditto.
5345 (arm_frame_chain): Ditto.
5346 (arm_init_extra_frame_info): Ditto.
5347 (arm_frame_saved_pc): Ditto.
5348 (arm_pop_frame): Ditto.
5349 (arm_push_return_address): New function.
5350 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5351 call_dummy_location, call_dummy_breakpoint_offset_p,
5352 call_dummy_breakpoint_offset, call_dummy_p,
5353 call_dummy_stack_adjust_p, call_dummy_words,
5354 sizeof_call_dummy_words, call_dummy_start_offset,
5355 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5356 call_dummy_address, push_return_address and push_dummy_frame for
5357 generic dummy frames.
5358
e7d717c0
JT
53592002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5360
5361 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5362 size computation for alloca.
5363 (sh_fp_frame_init_saved_regs): Likewise.
5364
7bbcf283
RE
53652002-05-07 Richard Earnshaw <rearnsha@arm.com>
5366
5367 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5368 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5369 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5370 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5371 * remote-rdp.c (remote_rdp_fetch_register): Use
5372 ARM_MAX_REGISTER_RAW_SIZE.
5373 (remote_rdp_store_register): Likewise.
5374
4657573b
ML
53752002-05-07 Michal Ludvig <mludvig@suse.cz>
5376
361d1df0 5377 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5378 added default labels to switch {} statements.
5379 * x86-64-tdep.c: Ditto.
5380 * x86-64-linux-nat.c: Ditto.
5381
010f3b2f
JT
53822002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5383
5384 * solib.h: Protect against multiple inclusion.
5385
debd256d
JB
53862002-05-06 Jim Blandy <jimb@redhat.com>
5387
9ab3e532
JB
5388 Add first preprocessor macro-expansion files.
5389 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5390 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5391 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5392 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5393 (COMMON_OBS): Add macrotab.o, macroexp.o.
5394 (macroexp.o, macrotab.o): New rules.
5395
debd256d
JB
5396 Separate the job of reading the line number info statement program
5397 header (...expialidocious) out into its own function.
5398 * dwarf2read.c (struct line_head, struct filenames, struct
5399 directories): Replace with...
5400 (struct line_header): New structure, containing the full
5401 contents of the statement program header, including the
5402 include directory and file name tables.
5403 (read_file_scope): If we have line number info, instead of just
5404 calling dwarf_decode_lines to do all the work, call
5405 dwarf_decode_line_header first to get a `struct line_header'
5406 containing the data in the statement program header, and then
5407 pass that to dwarf_decode_lines, which will pick up where that
5408 left off. Be sure to clean up the `struct line_header' object.
5409 (dwarf_decode_line_header, free_line_header, add_include_dir,
5410 add_file_name): New functions.
5411 (dwarf_decode_lines): Move all the code to read the statement
5412 program header into dwarf_decode_line_header. Take the line
5413 header it built as the first argument, instead of the offset to
5414 the compilation unit's line number info. Use the new `struct
5415 line_header' type instead of the old structures. No need to do
5416 cleanups here now, since we don't allocate anything.
5417 (dwarf2_statement_list_fits_in_line_number_section,
5418 dwarf2_line_header_too_long): New complaints.
5419
ac3aafc7
EZ
54202002-05-06 Elena Zannoni <ezannoni@redhat.com>
5421
5422 * gdbtypes.c (init_vector_type): New function.
5423 (build_builtin_type_vec128): Simplify the representation of SIMD
5424 registers.
5425 (build_gdbtypes): Initialize new builtin vector types.
5426 (_initialize_gdbtypes): Register new vector types with gdbarch.
5427 (builtin_type_v4_float, builtin_type_v4_int32,
5428 builtin_type_v8_int16, builtin_type_v16_int8,
5429 builtin_type_v2_int32, builtin_type_v4_int16,
5430 builtin_type_v8_int8): New (renamed) SIMD types.
5431
13e49980
MK
54322002-05-06 Mark Kettenis <kettenis@gnu.org>
5433
5434 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5435 (i387_fill_fxsave): Likewise.
5436
997b20b8
AO
54372002-05-05 Alexandre Oliva <aoliva@redhat.com>
5438
5439 * alpha-tdep.c (alpha_extract_return_value): Don't use
5440 non-constant array size in prototype.
5441
535c96ce
AC
54422002-05-04 Andrew Cagney <ac131313@redhat.com>
5443
5444 From Brian Taylor <briant at model dot com>:
5445 * ui-out.c (ui_out_field_core_addr): Use the function
5446 longest_local_hex_string_custom'to format addresses > 32 bits
5447 wide.
5448
5449 * ui-out.c (ui_out_field_core_addr): Update comment.
5450
bedfa57b
AC
54512002-05-04 Andrew Cagney <ac131313@redhat.com>
5452
5453 * stack.c (select_and_print_frame): Make static. Delete the
5454 parameter `level'.
5455 (func_command): Update call.
5456 (select_frame_command): Delete code computing the frame level.
5457 * frame.h (select_and_print_frame): Delete declaration.
5458
f621c63e
AC
54592002-05-04 Andrew Cagney <ac131313@redhat.com>
5460
5461 * sparc-tdep.c (sparc_get_saved_register): Comment why
5462 get_prev_frame call is safe.
5463
0f7d239c
AC
54642002-05-04 Andrew Cagney <ac131313@redhat.com>
5465
5466 * frame.h (select_frame): Delete level parameter.
5467 * stack.c (select_frame): Update. Use frame_relative_level to
5468 obtain the frame's level.
5469 (select_and_print_frame): Update call.
5470 (select_frame_command): Ditto.
5471 (up_silently_base): Ditto.
5472 (down_silently_base): Ditto.
5473 * ocd.c (ocd_start_remote): Ditto.
5474 * remote-rdp.c (remote_rdp_open): Ditto.
5475 * remote-mips.c (mips_initialize): Ditto.
5476 (common_open): Ditto.
5477 * remote-e7000.c (e7000_start_remote): Ditto.
5478 * m3-nat.c (select_thread): Ditto.
5479 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5480 (child_get_current_exception_event): Ditto.
5481 * varobj.c (varobj_create): Ditto.
5482 (varobj_update): Ditto.
5483 (c_value_of_root): Ditto.
5484 * tracepoint.c (finish_tfind_command): Ditto.
5485 * corelow.c (core_open): Ditto.
5486 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5487 * thread.c (info_threads_command): Ditto.
5488 (switch_to_thread): Ditto.
5489 * infrun.c (normal_stop): Ditto.
5490 (restore_selected_frame): Ditto.
5491 (restore_inferior_status): Ditto.
5492 * breakpoint.c (insert_breakpoints): Ditto.
5493 (watchpoint_check): Ditto.
5494 (bpstat_stop_status): Ditto.
5495 (do_enable_breakpoint): Ditto.
5496 * blockframe.c (flush_cached_frames): Ditto.
5497 (reinit_frame_cache): Ditto.
5498
71d6c7b1
AC
54992002-05-04 Andrew Cagney <ac131313@redhat.com>
5500
5501 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5502 maintainer.
5503
cda6c68a
JB
55042002-05-04 Jim Blandy <jimb@redhat.com>
5505
5506 * gdbtypes.c (replace_type): Doc fix.
5507
5c1c87f0
AC
55082002-05-04 Andrew Cagney <ac131313@redhat.com>
5509
5510 * valprint.c (strcat_longest): Delete commented out function.
5511 Update copyright.
5512
cd9bfe15
AC
55132002-05-04 Andrew Cagney <ac131313@redhat.com>
5514
5515 * MAINTAINERS: Mark a29k as deleted.
5516 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5517 Move new configurations to the top.
5518 * configure.tgt: Remove a29k.
5519 * config/a29k/tm-vx29k.h: Delete.
5520 * config/a29k/vx29k.mt: Delete.
5521 * config/a29k/tm-a29k.h: Delete.
5522 * config/a29k/a29k-udi.mt: Delete.
5523 * config/a29k/a29k.mt: Delete.
5524 * a29k-tdep.c: Delete.
5525 * remote-udi.c: Delete.
5526 * remote-mm.c: Delete.
5527 * remote-eb.c: Delete.
5528 * remote-adapt.c: Delete.
5529 * Makefile.in: Remove obsolete code.
5530 * gdbserver/Makefile.in: Ditto.
5531 * config/s390/s390x.mt: Ditto.
5532 * config/s390/s390.mt: Ditto.
5533 * config/sparc/sparclynx.mh: Ditto.
5534 * config/sparc/linux.mh: Ditto.
5535 * config/pa/hppaosf.mh: Ditto.
5536 * config/pa/hppabsd.mh: Ditto.
5537 * config/ns32k/nbsd.mt: Ditto.
5538 * config/mips/vr5000.mt: Ditto.
5539 * config/m68k/sun3os4.mh: Ditto.
5540 * config/m68k/nbsd.mt: Ditto.
5541 * config/m68k/m68klynx.mh: Ditto.
5542 * config/m32r/m32r.mt: Ditto.
5543 * config/i386/x86-64linux.mt: Ditto.
5544 * config/i386/nbsdelf.mt: Ditto.
5545 * config/i386/nbsd.mt: Ditto.
5546 * config/i386/i386lynx.mh: Ditto.
5547
bf0c5130
AC
55482002-05-04 Andrew Cagney <ac131313@redhat.com>
5549
5550 * target.c (debug_print_register): New function. Handle oversize
5551 registers.
5552 (debug_to_fetch_registers): Call.
5553 (debug_to_store_registers): Call.
5554
2ae1c2d2
JB
55552002-05-03 Jim Blandy <jimb@redhat.com>
5556
13a393b0
JB
5557 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5558 (read_type): Doc fix.
5559 * gdbtypes.c (replace_type): Doc fix.
5560
2ae1c2d2
JB
5561 * stabsread.c (multiply_defined_struct): New complaint.
5562 (read_struct_type): If the type we were passed isn't empty, or
5563 incomplete, don't read the new struct type into it; complain,
5564 and return the original type unchanged. Take a new `type_code'
5565 argument, which is the type code for the new type.
5566 (read_type): Rather than storing the type's type code here, pass
5567 it as an argument to read_struct_type, and let that take care of
5568 storing it. That way, we don't overwrite the original type code,
5569 so read_struct_type can use it to decide whether we're overwriting
5570 something we shouldn't.
5571 (complain_about_struct_wipeout): New function.
5572
8de9bdc4
AC
55732002-05-03 Andrew Cagney <ac131313@redhat.com>
5574
5575 * gdbarch.sh: Assert that gdbarch is non-NULL.
5576 * gdbarch.c: Regenerate.
5577
f773fdbb
JM
55782002-05-03 Jason Merrill <jason@redhat.com>
5579
5580 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5581 and return NULL.
5582
0e04a514
ML
55832002-05-03 Michal Ludvig <mludvig@suse.cz>
5584
5585 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5586 (x86_64_dwarf2gdb_regno_map_length),
5587 (x86_64_dwarf2_reg_to_regnum): Added.
5588 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5589 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5590 (_initialize_x86_64_tdep): Synced with the change above.
5591 (x86_64_skip_prologue): Reformulated message.
5592
065432a8
PM
55932002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5594
5595 * f-exp.y: Also use new prev_lexptr variable
5596 to improve error reporting. Based on Michael Snyder
5597 2002-04-24 dated patch to c-exp.y.
5598 * jv-exp.y: Likewise.
5599 * m2-exp.y: Likewise.
5600
a3162708
EZ
56012002-05-02 Elena Zannoni <ezannoni@redhat.com>
5602
5603 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5604 we are dealing with vectors.
5605
03620c38
PM
56062002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5607
5608 * config/m68k/tm-nbsd.h: Obvious fix,
5609 correct machine name.
5610
6604db2e
PM
56112002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5612
5613 * p-typeprint.c (pascal_type_print_base): Add support
5614 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5615
0906b739
PM
56162002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5617
5618 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5619 for fondamental pascal 'char' type.
5620
e2625b33
PM
56212002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5622
5623 * p-lang.h (is_pascal_string_type): Declaration changed,
5624 new sixth argument of type char ** added.
361d1df0 5625 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5626 changed. Args length_pos, length_size, string_pos, char_size
5627 can now be NULL. New argument arrayname set to the field
5628 name of the char array. Return value set to char array
5629 field index plus one.
361d1df0 5630 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5631 is_pascal_string_type function.
5632
cf17c188
AC
56332002-05-02 Andrew Cagney <cagney@redhat.com>
5634
5635 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5636 <cagney@redhat.com> change.
5637 * gdbarch.c: Regenerate.
5638
52bca491
AC
56392002-05-02 Andrew Cagney <cagney@redhat.com>
5640
5641 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5642 before probing for a new one. Detect errorenous gdbarch_init
5643 functions.
5644 * gdbarch.c: Regenerate.
5645
d5e72505
AC
56462002-05-01 Andrew Cagney <cagney@redhat.com>
5647
5648 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5649 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5650 * config/v850/tm-v850.h: Ditto. Update copyright.
5651
af566d9f
AC
56522002-04-30 Andrew Cagney <ac131313@redhat.com>
5653
5654 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5655 current_gdbarch.
5656
880d85fa
MS
56572002-04-30 Michael Snyder <msnyder@redhat.com>
5658
94c30b78
MS
5659 * arm-tdep.c: Whitespace clean-ups.
5660 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5661 should have been removed as part of 4/24 change.
5662
6f5987a6
KB
56632002-04-30 Kevin Buettner <kevinb@redhat.com>
5664
5665 * rs6000-tdep.c: Added comment describing how fpscr register
5666 numbers were chosen.
5667
1a113c93
MS
56682002-04-30 Michael Snyder <msnyder@redhat.com>
5669
5670 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5671
9a6f53fe
EZ
56722002-04-29 Elena Zannoni <ezannoni@redhat.com>
5673
5674 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5675 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5676 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5677
11ed25ac
KB
56782002-04-29 Kevin Buettner <kevinb@redhat.com>
5679
5680 From Louis Hamilton <hamilton@redhat.com>:
5681 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5682 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5684 not bfd-private xcoff data, to determine wordsize.
5685 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5686
ae232405
AC
56872002-04-29 Andrew Cagney <ac131313@redhat.com>
5688
5689 GDB 5.2 released from 5.2 branch.
5690
91fd20f7
ML
56912002-04-29 Michal Ludvig <mludvig@suse.cz>
5692
5693 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5694 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5695 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5696
2dc5091b
EZ
56972002-04-29 Elena Zannoni <ezannoni@redhat.com>
5698
5699 * rs6000-tdep.c (rs6000_extract_return_value,
5700 rs6000_store_return_value): Handle returning vectors.
5701 (rs6000_gdbarch_init): Use
5702 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5703 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5704 New function.
5705 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5706 vectors.
5707 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5708 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5709
2b9848d8
PM
57102002-04-24 Pierre Muller <ics.u-strasbg.fr>
5711
5712 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5713 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5714 with fprintf_unfiltered (gdb_stderr,...).
5715
f8d17dc5
PM
57162002-04-24 Pierre Muller <ics.u-strasbg.fr>
5717
5718 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5719 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5720 Replace fprintf (stderr,...
5721 with fprintf_unfiltered (gdb_stderr,....
5722 * remote-es.c: Likewise.
5723 * remote-os9k.c: Likewise.
5724 * remote-st.c: Likewise.
5725
2f2f1ad1
AS
57262002-04-28 Andreas Schwab <schwab@suse.de>
5727
5728 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5729 linux-proc.o and gcore.o.
5730
b6779aa2
AC
57312002-04-26 Michal Ludvig <mludvig@suse.cz>
5732
5733 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5734 code without frame pointers.
5735
7e57f5f4
AC
57362002-04-26 Andrew Cagney <ac131313@redhat.com>
5737
5738 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5739 ON_STACK is needed.
5740
2ceb85d0
BE
57412002-04-26 Ben Elliston <bje@redhat.com>
5742
5743 * target.c (do_xfer_memory): Correct reference to the new option
5744 "trust-readonly-sections".
5745
f5f8a009
EZ
57462002-04-26 Elena Zannoni <ezannoni@redhat.com>
5747
5748 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5749 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5750 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5751 vectors.
5752 (read_array_type): Record the fact that this array type is really a
5753 vector (i.e. are passed in by value).
5754
5868c862
JT
57552002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5756
5757 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5758 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5759 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5760 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5761 * alpha-linux-tdep.c: Include frame.h.
5762 (alpha_linux_sigcontext_addr): New function.
5763 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5764 alpha_linux_sigcontext_addr.
5765 * alpha-osf1-tdep.c: Include gdbcore.h.
5766 (alpha_osf1_sigcontext_addr): New function.
5767 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5768 alpha_osf1_sigcontext_addr.
5769 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5770 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5771
bfb01f37
AC
57722002-04-26 Andrew Cagney <ac131313@redhat.com>
5773
361d1df0 5774 * stack.c (selected_frame_level):
bfb01f37
AC
5775 (select_frame): Do not set selected_frame_level.
5776 * frame.h (selected_frame_level): Delete declaration.
5777
15813d3f
AC
57782002-04-26 Andrew Cagney <ac131313@redhat.com>
5779
5780 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5781 convert_from_func_ptr-addr when AIX / PowerOpen.
5782
6096c27a
AC
57832002-04-25 Andrew Cagney <ac131313@redhat.com>
5784
5785 * valops.c (hand_function_call): Call
5786 generic_save_call_dummy_addr.
5787 * frame.h (generic_save_call_dummy_addr): Declare.
5788 * blockframe.c (struct dummy_frame): Add fields call_lo and
5789 call_hi.
5790 (generic_find_dummy_frame): Check for PC in range call_lo to
5791 call_hi instead of entry_point_address.
5792 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5793 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5794 (generic_save_call_dummy_addr): New function.
5795
f510d44e
DM
57962002-04-24 David S. Miller <davem@redhat.com>
5797
5798 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5799 sparc_skip_prologue.
5800 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5801 information to find prologue when possible.
5802 (sparc_prologue_frameless_p): Call examine_prologue directly.
5803 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5804 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5805 second argument.
5806 (SKIP_PROLOGUE): Likewise.
5807
15d72a92
JT
58082002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5809
5810 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5811 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5812 indicate that the condition it was testing is always true.
5813 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5814 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5815 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5816
accc6d1f
JT
58172002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5818
5819 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5820 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5821 tdep->jb_pc and tdep->jb_elt_size.
5822 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5823 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5824 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5825 * alpha-nat.c (get_longjmp_target): Remove.
5826 (JB_ELEMENT_SIZE): Ditto.
5827 (JB_PC): Ditto.
5828 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5829 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5830 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5831 to alpha_get_longjmp_target.
5832 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5833 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5834 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5835
1bfdc549
AC
58362002-04-25 Andrew Cagney <ac131313@redhat.com>
5837
5838 * README: Update to GDB 5.2.
5839
1bd316f0
AC
58402002-04-25 Andrew Cagney <ac131313@redhat.com>
5841
5842 * gdbarch.sh (LC_ALL): Set to `c'.
5843
2e5ff58c
TR
58442002-04-25 Theodore A. Roth <troth@verinet.com>
5845
5846 * avr-tdep.c: Ran through gdb_indent.sh.
5847
e33ce519
TR
58482002-04-25 Theodore A. Roth <troth@verinet.com>
5849
5850 * MAINTAINERS: Add myself as AVR maintainer.
5851 * NEWS: Note new target avr.
5852
8818c391
TR
58532002-04-25 Theodore A. Roth <troth@verinet.com>
5854
5855 * Makefile.in: Add support for AVR target.
5856 * configure.tgt: Add support for AVR target.
5857 * avr-tdep.c: New file
5858 * config/avr/avr.mt: New file.
5859
79509c2d
TR
58602002-04-25 Theodore A. Roth <troth@verinet.com>
5861
5862 * MAINTAINERS: Add myself to write-after-approval.
5863
dac8068e
PM
58642002-04-24 Pierre Muller <ics.u-strasbg.fr>
5865
5866 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5867 with fprintf_unfiltered (gdb_stderr,....
5868
25bf3106
PM
58692002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5870
5871 Fix PR gdb/508.
5872 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5873
24467a86
PM
58742002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5875
5876 * p-exp.y: Also use new prev_lexptr variable
5877 to improve error reporting. Based on Michael Snyder
5878 2002-04-24 dated patch to c-exp.y.
5879
95b80706
JT
58802002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5881
5882 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5883 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5884 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5885 to 0.
5886 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5887 and struct value.
5888 (FUNCTION_START_OFFSET): Remove.
5889 (BREAKPOINT): Ditto.
5890
e90cc612
JT
58912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5892
5893 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5894 * NEWS: Ditto.
5895
6c72f9f9
JT
58962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5897
5898 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5899 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5900 alpha_linux_pc_in_sigtramp.
5901 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5902 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5903 alpha_osf1_pc_in_sigtramp.
5904 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5905 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5906 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5907 alphafbsd_pc_in_sigtramp.
5908 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5909 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5910 alphanbsd_pc_in_sigtramp.
5911 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5912 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5913
5e4f3379
JT
59142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5915
5916 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5917
da8ca43d
JT
59182002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5919
5920 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5921 alphanbsd-tdep.c.
5922 (alphanbsd-nat.o): New dependency list.
5923 (alphanbsd-tdep.o): Ditto.
5924 * NEWS: Note new native NetBSD/alpha configuration.
5925 * alphanbsd-nat.c: New file.
5926 * alphanbsd-tdep.c: Ditto.
5927 * configure.host (alpha*-*-netbsd*): New host.
5928 * configure.tgt (alpha*-*-netbsd*): New target.
5929 * config/alpha/nbsd.mh: New file.
5930 * config/alpha/nbsd.mt: Ditto.
5931 * config/alpha/nm-nbsd.h: Ditto.
5932 * config/alpha/tm-nbsd.h: Ditto.
5933
36a6271d
JT
59342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5935
5936 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5937 (alpha-osf1-tdep.o): New dependency list.
5938 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5939 and skip_sigtramp_frame members.
5940 * alpha-linux-tdep.c: Include gdbcore.h.
5941 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5942 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5943 * alpha-osf1-tdep.c: New file.
5944 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5945 alpha-osf1-dep.c.
5946 (alpha_frame_past_sigtramp_frame): New function.
5947 (alpha_dynamic_sigtramp_offset): Ditto.
5948 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5949 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5950 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5951 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5952 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5953 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5954 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5955 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5956 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5957 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5958 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5959 to find_solib_trampoline_target.
5960 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5961 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5962 (SKIP_TRAMPOLINE_CODE): Remove.
5963 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5964 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5965 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5966 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5967 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5968 (PROC_SIGTRAMP_MAGIC): Ditto.
5969 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5970 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5971 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5972 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5973 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5974
2f4bc57b
JT
59752002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5976
5977 * NEWS: Note that Alpha targets are now multi-arch.
5978
665132f9
MS
59792002-04-24 Michael Snyder <msnyder@redhat.com>
5980
5981 * parser-defs.h (prev_lexptr): New external variable.
5982 * parse.c (parse_exp_1): Set prev_lexptr to null before
5983 calling the language-specific parser.
5984 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5985 (yyerror): Use prev_lexptr in error reporting.
5986
32872fa7
DJ
59872002-04-24 Daniel Jacobowitz <drow@mvista.com>
5988
5989 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5990 * gregset.h: If FILL_FPXREGSET is defined, provide
5991 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5992 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5993 is defined, call fill_fpxregset.
5994
57e76fac
MS
59952002-04-24 Roland McGrath <roland@frob.com>
5996
5997 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5998 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5999 (supply_gregset, supply_fpregset): New functions.
6000
6001 * gnu-nat.c (gnu_find_memory_regions): New function.
6002 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6003 (gnu_xfer_memory): Add a cast.
6004
f43845b3
MS
60052002-04-24 Michael Snyder <msnyder@redhat.com>
6006
361d1df0 6007 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6008 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6009 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6010 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6011 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6012 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6013
a0abec03
AC
6014Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6015
6016 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6017 NUM_PSEUDO_REGS can be used.
6018
d7bd68ca
AC
60192002-04-24 Andrew Cagney <ac131313@redhat.com>
6020
6021 * arch-utils.h: Update copyright.
6022
6023 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6024 * gdbarch.h, gdbarch.c: Re-generate.
6025
6026 * inferior.h (IN_SIGTRAMP): Delete definition.
6027 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6028 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6029
6030 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6031 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6032 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6033 (find_proc_framesize): Ditto.
6034 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6035 (alpha_init_extra_frame_info): Ditto.
6036 * infrun.c (handle_inferior_event): Ditto.
6037 (handle_inferior_event): Ditto.
6038 (check_sigtramp2): Ditto.
6039 * blockframe.c (create_new_frame): Ditto.
6040 (get_prev_frame): Ditto.
6041 * ppc-linux-tdep.c: Update comments.
6042 * i386-linux-tdep.c: Update comments.
6043 * breakpoint.c (bpstat_what): Update comment.
6044
d06f167a
ML
60452002-04-24 Michal Ludvig <mludvig@suse.cz>
6046
6047 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 6048 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
6049 ptrace() calls.
6050 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6051
4867e41e
DM
60522002-04-24 David S. Miller <davem@redhat.com>
6053
21d83aa5
DM
6054 * i960-tdep.c (register_in_window_p): New function.
6055 (i960_find_saved_register): Use it instead of
6056 REGISTER_IN_WINDOW_P.
6057 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6058
4867e41e
DM
6059 * symtab.h (find_stab_function_addr): Kill extern.
6060 * minsyms.c (find_stab_function_addr): Remove from here...
6061 * dbxread.c: ... to here, and mark it static.
6062
69cdf6a2
DM
60632002-04-20 David S. Miller <davem@redhat.com>
6064
6065 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6066 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6067
5a595886
DM
60682002-04-21 David S. Miller <davem@redhat.com>
6069
6070 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6071 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6072 (vx_write_register): Likewise.
6073
1da1a192
JB
60742002-04-23 J. Brobecker <brobecker@gnat.com>
6075
6076 * source.c (is_regular_file): New function.
6077 (openp): Check wether file to open is a regular file
6078 to avoid opening directories.
6079
baa6f10b
JT
60802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6081
6082 * findvar.c (extract_signed_integer): Cast printf argument
6083 to suppress format warning.
6084 (extract_unsigned_integer): Likewise.
6085 * infcmd.c (registers_info): Likewise.
6086 * top.c (get_prompt_1): Likewise.
6087 * valops.c (value_assign): Likewise.
6088 * valprint.c (print_decimal): Likewise.
6089
b2c4da81
L
60902002-04-22 H.J. Lu (hjl@gnu.org)
6091
6092 * c-exp.y (typebase): Support
361d1df0 6093
b2c4da81
L
6094 [long|long long|short] [signed|unsigned] [int|]
6095
6096 and
6097
6098 signed [long|long long|short] int
6099
f267bd6a
JT
61002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6101
6102 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6103 and vax-tdep.h.
6104 * vax-tdep.h: New file.
6105 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6106 Make several routines static.
6107 (vax_get_saved_register): New function.
6108 (vax_gdbarch_init): New function.
6109 (_initialize_vax_tdep): Register vax_gdbarch_init.
6110 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6111 Remove macros now under the control of gdbarch.
6112
da3c6d4a
MS
61132002-04-22 Michael Snyder <msnyder@redhat.com>
6114
11d3b27d
MS
6115 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6116 Some whitespace and coding standards tweaks.
da3c6d4a 6117
a33f7558
JT
61182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6119
6120 * vax-tdep.c: Include regcache.h.
6121 (vax_call_dummy_words): New.
6122 (sizeof_vax_call_dummy_words): New.
6123 (vax_fix_call_dummy): New function.
6124 (vax_saved_pc_after_call): Ditto.
6125 * config/vax/tm-vax.h: Don't include regcache.h.
6126 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6127 (CALL_DUMMY): Remove.
6128 (CALL_DUMMY_WORDS): Define.
6129 (SIZEOF_CALL_DUMMY_WORDS): Define.
6130 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6131
47a73475
MS
61322002-04-18 Michael Snyder <msnyder@redhat.com>
6133
6134 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6135
52efde73
JT
61362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6137
6138 * vax-tdep.c (vax_frame_chain): New function.
6139 (vax_push_dummy_frame): Ditto.
6140 (vax_pop_frame): Ditto.
6141 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6142 (FRAMELESS_FUNCTION_INVOCATION): Use
6143 generic_frameless_function_invocation_not.
6144 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6145 (POP_FRAME): Use vax_pop_frame.
6146
ea74468c
JT
61472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6148
6149 * vax-tdep.c (vax_store_struct_return): New function.
6150 (vax_extract_return_value): Ditto.
6151 (vax_store_return_value): Ditto.
6152 (vax_extract_struct_value_address): Ditto.
6153 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6154 vax_store_struct_return.
6155 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6156 (STORE_RETURN_VALUE): Use vax_store_return_value.
6157 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6158
5516aa92
JT
61592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6160
6161 * vax-tdep.c (vax_frame_saved_pc): New function.
6162 (vax_frame_args_address_correct): Ditto.
6163 (vax_frame_args_address): Ditto.
6164 (vax_frame_locals_address): Ditto.
6165 (vax_frame_num_args): Move code to be in proximity to
6166 other frame-related functions.
6167 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6168 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6169 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6170 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6171 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6172
36af0b35
L
61732002-04-22 H.J. Lu (hjl@gnu.org)
6174
6175 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6176 includedir.
6177
ab62c900
JT
61782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6179
6180 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6181 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6182 (FRAME_INIT_SAVED_REGS): New macro.
6183
7232b100
JT
61842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6185
6186 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6187
b70d2aee
JT
61882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6189
6190 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6191 where needed.
6192 (fetch_osf_core_registers): Likewise.
6193 (supply_gregset): Likewise.
6194
a0e8a2d1 61952002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6196
a0e8a2d1
JB
6197 * symfile.h (get_section_index): Define.
6198 * symfile.c (get_section_index): New function.
6199 * mdebugread.c (SC_IS_SBSS): New macro.
6200 (SC_IS_BSS): Return true for the scBss storage class only, as
6201 the scSBss storage class refers to the .sbss section.
6202 (parse_partial_symbols): Discard the symbols which associated
6203 section does not exist.
6204 Make sure to use the .sbss section index for symbols which
6205 storage class is scBss, rather than using the .bss section index.
6206
51eb8b08
JT
62072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6208
6209 * vax-tdep.c: Update copyright years.
6210 (vax_register_name): New function.
6211 (vax_register_byte): Ditto.
6212 (vax_register_raw_size): Ditto.
6213 (vax_register_virtual_size): Ditto.
6214 (vax_register_virtual_type): Ditto.
6215 * config/vax/tm-vax.h: Update copyright years.
6216 (REGISTER_NAMES): Remove.
6217 (REGISTER_NAME): Define.
6218 (REGISTER_BYTE): Use vax_register_byte.
6219 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6220 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6221 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6222
6cc1c0a8
AC
62232002-04-21 Andrew Cagney <ac131313@redhat.com>
6224
6225 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6226 declaration
6227 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6228
9319a2fe
DM
62292002-04-21 David S. Miller <davem@redhat.com>
6230
6231 * arch-utils.c (generic_prologue_frameless_p): Kill
6232 SKIP_PROLOGUE_FRAMELESS_P code.
6233 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6234 references.
6235 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6236 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6237 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6238 references.
6239 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6240 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6241 (sparc_gdbarch_init): Pass it to
6242 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6243
e9ed6d01
JT
62442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6245
6246 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6247 (alphabsd-nat.o): New dependency list.
6248
36012033
JT
62492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6250
6251 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6252 alphafbsd-tdep.c.
6253 (alpha-linux-tdep.o): New dependency list.
6254 (alphafbsd-tdep.o): Likewise.
6255
3379287a
JT
62562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6257
6258 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6259 to here...
6260 * alpha-tdep.c: ...from here.
6261 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6262
4bcbd6cb
JT
62632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6264
6265 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6266 prototype from here...
6267 * alpha-tdep.h: ...to here.
6268
b31da25e
AC
62692002-04-21 Andrew Cagney <ac131313@redhat.com>
6270
6271 * frame.h (selected_frame_level): Document as deprecated.
6272 (frame_relative_level): Declare.
6273 * stack.c (frame_relative_level): New function.
6274 (selected_frame_level): Document as deprecated.
6275 (select_frame): Do not set the selected_frame_level.
6276
6277 * stack.c (frame_info, record_selected_frame): Update.
6278 (frame_command, current_frame_command): Update.
6279 (up_silently_base, up_command, down_silently_base): Update.
6280 (down_command): Update.
6281 * inflow.c (kill_command): Update.
6282 * tracepoint.c (finish_tfind_command): Update.
6283 * corelow.c (core_open): Update.
6284 * thread.c (info_threads_command): Update.
6285 (do_captured_thread_select): Update.
6286 * infcmd.c (finish_command): Update.
6287 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6288
9c1d6fe5
JT
62892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6290
6291 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6292
ab89facf
AC
62932002-04-21 Andrew Cagney <ac131313@redhat.com>
6294
6295 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6296 type const.
6297
82a4efa1
JT
62982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6299
6300 * alphafbsd-tdep.c: Update copyright years. Include
6301 alpha-tdep.h.
6302 (alphafbsd_use_struct_convention): Make static.
6303 (alphafbsd_init_abi): New function.
6304 (_initialize_alphafbsd_tdep): New function.
6305 * config/alpha/tm-fbsd.h: Update copyright years.
6306 (USE_STRUCT_CONVENTION): Remove.
6307
44dffaac
JT
63082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6309
6310 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6311 an Alpha ABI variant.
6312 (alpha_abi_handler_list): Declare.
6313 (alpha_gdbarch_register_os_abi): New function.
6314 (alpha_gdbarch_init): Give registered ABI variant handlers a
6315 chance to tweak the gdbarch once we have set up defaults.
6316 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6317
65585be4
JT
63182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6319
6320 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6321 to standard_coerce_float_to_double.
6322 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6323
d9b023cc
JT
63242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6325
6326 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6327 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6328 from gdbarch_tdep rather than a constant.
6329 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6330 the default text address for all Alpha Unix ABIs.
6331 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6332 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6333
dc129d82
JT
63342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6335
6336 * alpha-tdep.h: New file. Includes several Alpha target constants
6337 taken from...
6338 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6339 let gdbarch deal with.
6340 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6341 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6342 to dependency list.
6343 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6344 Alpha target register names.
6345 * alphabsd-nat.c: Likewise.
6346 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6347 Alpha target register names. Make serveral routines static.
6348 (alpha_get_saved_register): New function.
6349 (alpha_abi_names): New.
6350 (process_note_abi_tag_sections): New function.
6351 (get_elfosabi): New function.
6352 (alpha_gdbarch_init): New function.
6353 (alpha_dump_tdep): New function.
6354 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6355
d49d1e0a
AC
63562002-04-21 Andrew Cagney <ac131313@redhat.com>
6357
6358 * frame.c (find_saved_register): Delete #ifdef
6359 HAVE_REGISTER_WINDOWS code.
6360 * config/sparc/tm-sparc.h: Update comments.
6361 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6362
92e8c9ed
AC
63632002-04-21 Andrew Cagney <ac131313@redhat.com>
6364
6365 * i960-tdep.c (i960_find_saved_register): New function.
6366 (i960_get_saved_register): New function.
6367 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6368 (i960_get_saved_register): Declare.
6369 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6370
e1925118
DM
63712002-04-20 David S. Miller <davem@redhat.com>
6372
6373 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6374
29673b29
AC
63752002-04-20 Andrew Cagney <ac131313@redhat.com>
6376
6377 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6378 instead of NUM_PSEUDO_REGS.
6379
6c86dcd5
DM
63802002-04-20 David S. Miller <davem@redhat.com>
6381
6382 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6383 GDB_MULTI_ARCH_PARTIAL
6384 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6385 define, let tm-sp64.h do it.
6386
aa40ec90
JT
63872002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * frame.c (find_saved_register): Avoid a NULL pointer
6390 dereference and actually walk the frame list.
6391
0f79675b
AC
63922002-04-20 Andrew Cagney <ac131313@redhat.com>
6393
6394 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6395 sorted in most most-recent-used order. Document.
6396 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6397
c04a1aa8
DJ
63982002-04-20 Daniel Jacobowitz <drow@mvista.com>
6399
6400 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6401 (add_inferior): Call create_register_cache.
6402 (clear_inferiors): Call free_register_cache.
6403 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6404 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6405 (registers): Remove.
6406 (get_regcache): New function.
6407 (create_register_cache, free_register_cache): New functions.
6408 (set_register_cache): Don't initialize the register cache here.
6409 (registers_to_string, registers_from_string, register_data): Call
6410 get_regcache.
6411 * gdbserver/regcache.h: Add prototypes.
6412 * gdbserver/server.h: Likewise.
6413
611cb4a5
DJ
64142002-04-20 Daniel Jacobowitz <drow@mvista.com>
6415
6416 * gdbserver/mem-break.c: New file.
6417 * gdbserver/mem-break.h: New file.
6418 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6419 dependencies.
6420 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6421 member.
6422 (clear_inferiors): Free target_data member if set.
6423 (inferior_target_data, set_inferior_target_data): New functions.
6424 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6425 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6426 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6427 (struct inferior_linux_data): New.
6428 (linux_create_inferior): Use set_inferior_target_data.
6429 (linux_attach): Likewise. Call add_inferior.
6430 (linux_wait_for_one_inferior): New function.
6431 (linux_wait): Call it.
6432 (linux_write_memory): Add const.
6433 (initialize_low): Call set_breakpoint_data.
6434 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6435 handling members.
6436 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6437 call.
6438 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6439 prototypes.
6440 * gdbserver/target.c (read_inferior_memory)
6441 (write_inferior_memory): New functions.
6442 * gdbserver/target.h (read_inferior_memory)
6443 (write_inferior_memory): Change macros to prototypes.
6444 (struct target_ops): Update comments. Add const to write_memory
6445 definition.
6446
f91305dd 64472002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6448
6449 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6450 instead of ->prev.
6451 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6452 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6453 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6454 instead of ->prev.
6455
73d322b1
EZ
64562002-04-19 Elena Zannoni <ezannoni@redhat.com>
6457
6458 Fix PR gdb/471.
6459 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6460 (build_builtin_type_vec128): Ditto.
6461 (append_composite_type_field): Fix calculation of type length in
6462 union case.
6463
ccd9a834
EZ
64642002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6465
6466 * config/djgpp/README: Update.
6467
6468 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6469 compiler warnings.
6470
a57f9e49
JT
64712002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6472
6473 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6474 (alpha_setup_arbitrary_frame): ...to this.
6475 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6476 for alpha_setup_arbitrary_frame.
6477
f4f9705a
AC
64782002-04-18 Andrew Cagney <cagney@redhat.com>
6479
6480 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6481 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6482
f4f9705a
AC
6483 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6484 * target.h (memory_breakpoint_from_pc): Update declaration.
6485 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6486
6487 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6488 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6489 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6490 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6491 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6492 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6493 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6494 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6495 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6496 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6497 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6498 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6499
6500 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6501 const pointer.
6502 * monitor.c (monitor_insert_breakpoint): Ditto.
6503 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6504
6505 * config/mcore/tm-mcore.h: Update copyright.
6506 * mem-break.c: Ditto.
6507 * xstormy16-tdep.c: Ditto.
6508
29f319b8
PM
65092002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6510
6511 * p-exp.y: Add precedence rule for '^' token.
6512 This removes the shift/reduce conflicts.
6513 Remove the comment concerning these shift/reduce conflicts.
6514
ebeac11a
EZ
65152002-04-18 Elena Zannoni <ezannoni@redhat.com>
6516
6517 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6518 (registers_powerpc_nofp): New register set for processors
6519 without floating point unit.
6520
27c31547
DM
65212002-04-18 David S. Miller <davem@redhat.com>
6522
6523 * MAINTAINERS: Add myself to write-after-approval.
6524
47a73475
MS
65252002-04-17 Michael Snyder <msnyder@redhat.com>
6526
6527 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6528
953836b2
AC
65292002-04-17 Andrew Cagney <ac131313@redhat.com>
6530
6531 * rs6000-tdep.c (frame_initial_stack_address): Use
6532 frame_register_read to read the alloca_reg.
6533
8b0d4340
AC
65342002-04-17 Andrew Cagney <ac131313@redhat.com>
6535
6536 * frame.c (find_saved_register): Find saved registers in the next
6537 not prev frame.
6538 Fix PR gdb/365.
6539
d8864532
AC
65402002-04-17 Andrew Cagney <ac131313@redhat.com>
6541
6542 * gdbarch.sh (LANG): Set to ``c''.
6543
36cc83a3 65442002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6545
36cc83a3 6546 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6547
2f4150cc 65482002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6549
6550 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6551 Update copyright.
6552
628703c6 6553 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6554 Also fix PR gdb/391.
361d1df0 6555
56157b4a
AC
65562002-04-14 Andrew Cagney <ac131313@redhat.com>
6557
6558 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6559 * aclocal.m4, configure: Re-generate.
6560 Fix PR gdb/391.
361d1df0 6561
6d1e3329
EZ
65622002-04-14 Elena Zannoni <ezannoni@redhat.com>
6563
6564 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6565 instead of tm_print_insn.
6566
cb06fa07
EZ
65672002-04-14 Elena Zannoni <ezannoni@redhat.com>
6568
6569 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6570
f208ba17
AC
65712002-04-14 Andrew Cagney <ac131313@redhat.com>
6572
6573 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6574 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6575 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6576
20f01a46
DH
65772002-04-12 Don Howard <dhoward@redhat.com>
6578
6579 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6580 max_user_call_depth.
6581 (init_cmd_lists): Initialize the new value;
6582 * cli/cli-script.c (execute_user_command): Limit the call depth of
6583 user defined commands. This avoids a core-dump when user commands
6584 are infinitly recursive.
6585
a88376a3
KB
65862002-04-12 Kevin Buettner <kevinb@redhat.com>
6587
6588 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6589 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6590 from tdep struct instead of DEFAULT_LR_SAVE.
6591 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6592 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6593 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6594
f2172603
MS
65952002-04-12 Michael Snyder <msnyder@redhat.com>
6596
694f61fb 6597 * Remote.c: Spelling fix.
20fe79c8
MS
6598 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6599 If no symbol found for "sbrk", try "_sbrk".
6600 (make_output_phdrs): Use bfd_section_name.
6601 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6602 * eval.c: Indentation fix-ups.
169a7369
MS
6603 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6604 in case it gets applied to an address that is already
6605 in the instruction space.
de74f71f
MS
6606 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6607 * symfile.c: Fix indentation, long lines.
f2172603
MS
6608 * source.c: White space fix-up.
6609
cda5a58a
AC
66102002-04-12 Andrew Cagney <cagney@redhat.com>
6611
6612 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6613 * frame.c (frame_register_read): New function. Return non-zero on
6614 success.
6615 (read_relative_register_raw_bytes_for_frame): Delete.
6616 (read_relative_register_raw_bytes): Delete.
6617 * frame.h (frame_register_read): Declare.
6618 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6619 * sh-tdep.c: Ditto.
6620 * infcmd.c (do_registers_info): Ditto.
6621 * hppa-tdep.c: Ditto.
6622 * rs6000-tdep.c: Ditto.
6623 * h8500-tdep.c: Ditto.
6624 * mips-tdep.c: Ditto.
6625 * h8300-tdep.c: Ditto.
6626 * z8k-tdep.c: Ditto.
6627
2ea5f656
KB
66282002-04-12 Kevin Buettner <kevinb@redhat.com>
6629
6630 From Jimi X <jimix@watson.ibm.com>:
6631 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6632 64-bit SysV ABI.
6633
27b15785
KB
66342002-04-12 Kevin Buettner <kevinb@redhat.com>
6635
6636 From Jimi X <jimix@watson.ibm.com>:
6637 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6638 bfd info.
6639
5d57ee30
KB
66402002-04-12 Kevin Buettner <kevinb@redhat.com>
6641
6642 From Jimi X <jimix@watson.ibm.com>:
6643 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6644 register sets for these processor variants.
6645
bc1e36ca
DJ
66462002-04-11 Daniel Jacobowitz <drow@mvista.com>
6647
6648 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6649 registers which are allowed to fail to store.
6650 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6651 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6652 (ppc_cannot_store_register): FPSCR may not be storable.
6653 * regformats/reg-ppc.dat: Support FPSCR.
6654
e3f36dbd
KB
66552002-04-11 Kevin Buettner <kevinb@redhat.com>
6656
6657 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6658 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6659 Add fpscr as an invalid/unfetchable register.
6660 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6661 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6662 (fill_fpregset): Add support for register fpscr.
6663 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6664 (fill_gregset): Account for the fact that register ``mq'' might
6665 not exist.
6666 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6667 (registers_power): Add fpscr to register set at slot 71.
6668 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6669 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6670
943c9c25
MS
66712002-04-11 Michael Snyder <msnyder@redhat.com>
6672
6673 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6674 * configure: Regenerate.
6675 * config.in: Regenerate.
6676 * acconfig.h: Add define for _SYSCALL32.
6677 * core-sol2.c: Remove #define _SYSCALL32.
6678 * solib-legacy.c: Remove #define _SYSCALL32.
6679
d8c0a2e7
AC
66802002-04-10 Andrew Cagney <ac131313@redhat.com>
6681
6682 * stack.c (select_frame): Cleanup internal error message, do not
6683 use %p.
6684
7cc19214
AC
66852002-04-10 Andrew Cagney <ac131313@redhat.com>
6686
6687 * stack.c (select_frame): Check that selected_frame and the
6688 specified level are as expected.
6689 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6690 Update copyright.
6691 * frame.h (struct frame_info): Add field `level'. Update
6692 copyright.
6693 Work-in-progress PR gdb/464.
6694
67a2b77e
AC
66952002-04-10 Andrew Cagney <ac131313@redhat.com>
6696
6697 * maint.c (maint_print_section_info): Rename print_section_info.
6698 (print_bfd_section_info, print_objfile_section_info): Update.
6699 * inferior.h (struct gdbarch): Add opaque declaration.
6700 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6701 * gdbarch.h: Regenerate.
6702
8cfda98c
ML
67032002-04-10 Michal Ludvig <mludvig@suse.cz>
6704
6705 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6706 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6707 (kernel_u_size): Added.
6708 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6709 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6710
ca439ad2 67112002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6712
ca439ad2
JI
6713 * valarith.c (find_size_for_pointer_math): New function, either returns
6714 the size for a pointer's target, returns 1 for void *, or errors for
6715 incomplete types.
6716 (value_add, value_sub): use find_size_for_pointer_math.
6717
2f2893d9
DJ
67182002-04-09 Daniel Jacobowitz <drow@mvista.com>
6719
6720 * linux-low.c (linux_look_up_symbols): New hook.
6721 (linux_target_ops): Add linux_look_up_symbols.
6722 * remote-utils.c (decode_address): New function.
6723 (look_up_one_symbol): New function.
6724 * server.c (handle_query): Call target look_up_symbols hook.
6725 * server.h (look_up_one_symbol): Add prototype.
6726 * target.h (struct target_ops): Add look_up_symbols hook.
6727
2ec06d2e
DJ
67282002-04-09 Daniel Jacobowitz <drow@mvista.com>
6729
d64b8841
DJ
6730 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6731 * ChangeLog: Correct paths in last ChangeLog entry.
6732
67332002-04-09 Daniel Jacobowitz <drow@mvista.com>
6734
6735 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6736 (struct linux_target_ops): New.
6737 (extern the_low_target): New.
d64b8841 6738 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6739 (register_addr): Use the_low_target explicitly.
6740 (fetch_register): Likewise.
6741 (usr_fetch_inferior_registers): Likewise.
6742 (usr_store_inferior_registers): Likewise.
d64b8841 6743 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6744 (arm_num_regs): Define.
6745 (arm_regmap): Renamed from regmap, made static.
6746 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6747 made static.
6748 (arm_cannot_store_register): Renamed from cannot_store_register,
6749 made static.
6750 (the_low_target): New.
d64b8841 6751 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6752 (i386_num_regs): Define.
6753 (i386_regmap): Renamed from regmap, made static.
6754 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6755 made static.
6756 (i386_cannot_store_register): Renamed from cannot_store_register,
6757 made static.
6758 (the_low_target): New.
d64b8841 6759 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6760 (ia64_num_regs): Define.
6761 (ia64_regmap): Renamed from regmap, made static.
6762 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6763 made static.
6764 (ia64_cannot_store_register): Renamed from cannot_store_register,
6765 made static.
6766 (the_low_target): New.
d64b8841 6767 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6768 (m68k_num_regs): Define.
6769 (m68k_regmap): Renamed from regmap, made static.
6770 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6771 made static.
6772 (m68k_cannot_store_register): Renamed from cannot_store_register,
6773 made static.
6774 (the_low_target): New.
d64b8841 6775 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6776 (mips_num_regs): Define.
6777 (mips_regmap): Renamed from regmap, made static.
6778 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6779 made static.
6780 (mips_cannot_store_register): Renamed from cannot_store_register,
6781 made static.
6782 (the_low_target): New.
d64b8841 6783 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6784 (ppc_num_regs): Define.
6785 (ppc_regmap): Renamed from regmap, made static.
6786 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6787 made static.
6788 (ppc_cannot_store_register): Renamed from cannot_store_register,
6789 made static.
6790 (the_low_target): New.
d64b8841 6791 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6792 (s390_num_regs): Define.
6793 (s390_regmap): Renamed from regmap, made static.
6794 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6795 made static.
6796 (s390_cannot_store_register): Renamed from cannot_store_register,
6797 made static.
6798 (the_low_target): New.
d64b8841 6799 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6800 (sh_num_regs): Define.
6801 (sh_regmap): Renamed from regmap, made static.
6802 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6803 made static.
6804 (sh_cannot_store_register): Renamed from cannot_store_register,
6805 made static.
6806 (the_low_target): New.
d64b8841 6807 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6808 (the_low_target): New.
6809
96cb11df
AC
68102002-04-09 Andrew Cagney <ac131313@redhat.com>
6811
6812 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6813 override FP_REGNUM with frame->fp. Update copyright.
6814 * parse.c (num_std_regs, std_regs): Delete.
6815 (target_map_name_to_register): Do not search std_regs. Update
6816 function description.
6817 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6818 declarations. Update copyright.
6819 Fix PR gdb/251.
361d1df0 6820
c3a3ccc7
DJ
68212002-04-09 Daniel Jacobowitz <drow@mvista.com>
6822
6823 * gdbserver/Makefile.in: Add stamp-h target.
6824 * gdbserver/configure.in: Create stamp-h.
6825 * gdbserver/configure: Regenerated.
6826
ce3a066d
DJ
68272002-04-09 Daniel Jacobowitz <drow@mvista.com>
6828
6829 * gdbserver/inferiors.c: New file.
6830 * gdbserver/target.c: New file.
6831 * gdbserver/target.h: New file.
6832 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6833 dependencies.
6834 * gdbserver/linux-low.c (inferior_pid): New static variable,
6835 moved from server.c.
6836 (linux_create_inferior): Renamed from create_inferior.
6837 Call add_inferior. Return 0 on success instead of a PID.
6838 (linux_attach): Renamed from myattach.
6839 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6840 (linux_thread_alive): Renamed from mythread_alive.
6841 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6842 child dies.
6843 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6844 (regsets_store_inferior_registers): Correct error message.
6845 Add missing ``return 0''.
6846 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6847 (linux_store_registers): Renamed from store_inferior_registers.
6848 (linux_read_memory): Renamed from read_inferior_memory.
6849 (linux_write_memory): Renamed from write_inferior_memory.
6850 (linux_target_ops): New structure.
6851 (initialize_low): Call set_target_ops ().
6852 * gdbserver/remote-utils.c (unhexify): New function.
6853 (hexify): New function.
6854 (input_interrupt): Send signals to ``signal_pid''.
6855 * gdbserver/server.c (inferior_pid): Remove.
6856 (start_inferior): Update create_inferior call.
6857 (attach_inferior): Call add_inferior.
6858 (handle_query): New function.
6859 (main): Call handle_query for `q' packets.
6860 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6861 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6862
0729219d
DJ
68632002-04-09 Daniel Jacobowitz <drow@mvista.com>
6864
6865 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6866 dependencies.
6867 * gdbserver/configure.in: Check for <string.h>
6868 * gdbserver/configure: Regenerate.
6869 * gdbserver/config.in: Regenerate.
6870 * gdbserver/gdbreplay.c: Include needed system headers.
6871 (remote_open): Remove strchr prototype.
6872 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6873 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6874 (supply_register_by_name): Likewise.
6875 (collect_register): Change buf argument to void *.
6876 (collect_register_by_name): Likewise.
6877 * gdbserver/regcache.h: Add missing prototypes.
6878 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6879 * gdbserver/server.c (handle_query): New function.
6880 (attached): New static variable, moved out of main.
6881 (main): Quiet longjmp clobber warnings.
6882 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6883 * gdbserver/utils.c (error): Remove NORETURN.
6884 (fatal): Likewise.
6885
97658e92
DJ
68862002-04-09 Daniel Jacobowitz <drow@mvista.com>
6887
6888 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6889 after the last symbol in a block.
6890
6044e3eb
PM
68912002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6892
6893 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6894 is non zero as a found symbol.
6895
0406ec40
AC
68962002-04-08 Andrew Cagney <ac131313@redhat.com>
6897
6898 * findvar.c: Include "builtin-regs.h".
6899 (value_of_register): Call value_of_builtin_reg when applicable.
6900 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6901 (target_map_name_to_register): Call
6902 builtin_reg_map_name_to_regnum.
6903 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6904 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6905 (builtin_regs_h): Define.
6906 (builtin-regs.o): New target.
6907 (findvar.o): Add $(builtin_regs_h).
6908 * builtin-regs.c, builtin-regs.h: New files.
6909 * std-regs.c: New file.
6910 Partial fix for PR gdb/251.
6911
56a6dfb9
KB
69122002-04-08 Kevin Buettner <kevinb@redhat.com>
6913
6914 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6915 it's no longer required.
6916
3a808432
AC
69172002-04-08 Andrew Cagney <ac131313@redhat.com>
6918
6919 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6920
7c40d541
KB
69212002-04-08 Kevin Buettner <kevinb@redhat.com>
6922
6923 From Jimi X <jimix@watson.ibm.com>:
6924 * rs6000-tdep.c (rs6000_software_single_step): Use
6925 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6926 and size. Use target_insert_breakpoint() and
6927 target_remove_breakpoint() to insert and remove breakpoints
6928 instead of explicit memory reads and writes.
6929
cc9836a8
KB
69302002-04-08 Kevin Buettner <kevinb@redhat.com>
6931
6932 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6933 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6934 ELF_OBJECT_FORMAT ifdef.
6935
7495d1dc
KB
69362002-04-08 Kevin Buettner <kevinb@redhat.com>
6937
6938 From Jimi X <jimix@watson.ibm.com>:
6939 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6940
4288e836
KB
69412002-04-08 Kevin Buettner <kevinb@redhat.com>
6942
6943 From Jimi X <jimix@watson.ibm.com>:
6944 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6945 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6946
a4e4e501
MK
69472002-04-07 Mark Kettenis <kettenis@gnu.org>
6948
6949 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6950 s/asprintf/xasprintf/.
6951 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6952
006defba
AC
69532002-04-07 Andrew Cagney <ac131313@redhat.com>
6954
6955 I believe Jeff Law denies responsability for this one:
6956 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6957 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6958 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6959 Work-around for PR gdb/366.
6960
7aa83cac
EZ
69612002-04-07 Elena Zannoni <ezannoni@redhat.com>
6962
6963 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6964 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6965 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6966
cf1fcca1
EZ
69672002-04-07 Elena Zannoni <ezannoni@redhat.com>
6968
6969 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6970 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6971 information.
6972
3f289e6f
AC
69732002-04-07 Andrew Cagney <ac131313@redhat.com>
6974
6975 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6976 maintainer.
6977
129188f6
AC
69782002-04-07 Andrew Cagney <ac131313@redhat.com>
6979
6980 * README (Reporting Bugs in GDB): Document the bug web page as the
6981 prefered way of submitting bugs.
6982 Fix PR gdb/402.
6983
1200cd6e
AC
69842002-04-06 Andrew Cagney <ac131313@redhat.com>
6985
6986 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6987 -1. Update comment.
6988 * gdbarch.h, gdbarch.c: Re-generate.
6989
2853c33c
AS
69902002-04-07 Andreas Schwab <schwab@suse.de>
6991
6992 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6993 buffer to regcache_collect.
6994
c2169756
AC
69952002-04-06 Andrew Cagney <ac131313@redhat.com>
6996
6997 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6998 * gdbarch.c, gdbarch.h: Re-generate.
6999
25f1b008
AC
70002002-04-06 Andrew Cagney <ac131313@redhat.com>
7001
7002 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7003 declaration. Fix -Werror.
7004
59263426
DJ
70052002-04-05 Daniel Jacobowitz <drow@mvista.com>
7006
7007 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7008 * gdbarch.c: Regenerate.
7009
f5db4da3
MS
70102002-04-05 Michael Snyder <msnyder@redhat.com>
7011
80f8a6eb
MS
7012 * breakpoint.c (clear_command): Rewrite middle section to
7013 combine two loops with identical control conditions.
7014 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7015 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7016
ad3dcc5c
L
70172002-04-05 H.J. Lu (hjl@gnu.org)
7018
7019 * solib-svr4.c (bkpt_names): Add "__start".
7020
f32e7a74
AC
70212002-04-04 Andrew Cagney <ac131313@redhat.com>
7022
7023 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7024 as test for 64 bit target.
7025
8227c0ff
AC
70262002-04-05 Andrew Cagney <ac131313@redhat.com>
7027
7028 * h8500-tdep.c (h8500_write_fp): Delete function.
7029 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7030 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7031 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7033 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7034 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7035 (s390_write_fp):
7036 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7037 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7038 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7039 (d10v_write_fp): Delete function.
7040 * inferior.h (write_fp, generic_target_write_fp): Delete
7041 declarations.
7042 * regcache.c (generic_target_write_fp): Delete function.
7043 (write_fp): Delete function.
7044 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7045 * gdbarch.h, gdbarch.c: Regenerate.
7046 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7047 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7048 (sparc64_write_fp): Delete declaration.
7049 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7050 (h8500_write_fp): Delete declaration.
7051
2757dd86
AC
70522002-04-04 Andrew Cagney <ac131313@redhat.com>
7053
7054 * sparc-tdep.c (sparc64_write_fp): Delete.
7055 (sparc_push_dummy_frame): Replace write_fp call with code to store
7056 the FP directly.
7057 (sparc_gdbarch_init): Do not initialize write_fp.
7058
c69255e1
KB
70592002-04-05 Kevin Buettner <kevinb@redhat.com>
7060
7061 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7062 clause.
7063
ae767bfb
JB
70642002-03-29 Jim Blandy <jimb@redhat.com>
7065
7066 * stack.c (get_selected_block): Add new argument `addr_in_block',
7067 used to return the exact code address we used to select the block,
7068 not just the block.
7069 * blockframe.c (get_frame_block, get_current_block): Same.
7070 * frame.h (get_frame_block, get_current_block,
7071 get_selected_block): Update declarations.
7072 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7073 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7074
84d2ac95
MS
70752002-04-05 Michael Snyder <msnyder@redhat.com>
7076
7077 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7078 warning message.
7079
596aa3bf
JB
70802002-04-05 J. Brobecker <brobecker@gnat.com>
7081
7082 * utils.c (xfullpath): New function.
7083 * defs.h (xfullpath): Add declaration.
7084 * source.c (openp): Use xfullpath in place of gdb_realpath to
7085 avoid resolving the basename part of filenames when the
7086 associated file is a symbolic link. This fixes a potential
7087 inconsistency between the filenames known to GDB and the
7088 filenames it prints in the annotations.
7089 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7090 to be able to match a filename with either the real filename, or
7091 the name of any symbolic link to this file.
7092 (lookup_partial_symtab): Ditto.
7093
c02f5703
MS
70942002-04-04 Michael Snyder <msnyder@redhat.com>
7095
7096 * breakpoint.c: Add support for hardware breakpoints in overlays.
7097 (overlay_events_enabled): New state variable.
7098 (insert_breakpoints): Use overlay_events_enabled to decide
7099 whether to attempt to set a breakpoint at the overlay load addr.
7100 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7101 (remove_breakpoint): Use overlay_events_enabled to decide
7102 whether breakpoints need to be removed from overlay load addr.
7103 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7104 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7105 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7106 disable_overlay_breakpoints): Update overlay_events_enabled.
7107
5fb290d7
DJ
71082002-04-04 Daniel Jacobowitz <drow@mvista.com>
7109
7110 * dwarf2read.c (struct function_range): New.
7111 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7112 (check_cu_functions): New.
7113 (read_file_scope): Initialize global function lists.
7114 Call dwarf_decode_line after processing children.
7115 (read_func_scope): Add to global function list.
7116 (dwarf_decode_lines): Call check_cu_functions everywhere
7117 record_line is called. Call record_line with a linenumber
7118 of 0 to mark sequence ends.
7119
7b3fabf0
ML
71202002-04-04 Michal Ludvig <mludvig@suse.cz>
7121
361d1df0 7122 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7123 change sync with glibc.
7124
bce58c09
JB
71252002-04-03 Jim Blandy <jimb@redhat.com>
7126
7127 * configure.in: Call AC_C_INLINE.
7128 * configure: Regenerated.
361d1df0 7129
2fccf04a
DJ
71302002-04-01 Daniel Jacobowitz <drow@mvista.com>
7131
7132 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7133 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7134
2d1bfe2e
MK
71352002-03-31 Mark Kettenis <kettenis@gnu.org>
7136
a5941fbf
MK
7137 * NEWS: Mention gcore support on FreeBSD/i386.
7138
a90cd31d
MK
7139 * fbsd-proc.c: New file.
7140 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7141 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7142
2d1bfe2e
MK
7143 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7144 while statement.
7145
9eb6e5a1
JB
71462002-03-29 Jim Blandy <jimb@redhat.com>
7147
7148 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7149 unescaped newlines in string literals, but newer ones don't. So
7150 escape them.
7151
f02df580
MS
71522002-03-26 Michael Snyder <msnyder@redhat.com>
7153 Andrew Cagney <cagney@redhat.com>
7154
361d1df0 7155 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7156 restore file to memory.
7157 * cli/cli-dump.h: New file.
7158 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7159 * NEWS: Mention new commands.
f02df580 7160
109f874e
MS
71612002-03-28 Michael Snyder <msnyder@redhat.com>
7162
7163 * symfile.c (symbol_file_add): Move test for null symbols to later.
7164
520f6ade
AC
71652002-03-27 Andrew Cagney <ac131313@redhat.com>
7166
7167 From veksler at il.ibm.com:
7168 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7169 the xstrduped original path.
7170 Fix PR gdb/417.
7171
d4654627
MS
71722002-03-27 Michael Snyder <msnyder@redhat.com>
7173
7174 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7175 * infcmd.c (_initialize_infcmd): Ditto.
7176 * language.c (_initialize_language): Ditto.
7177 * symfile.c (_initialize_symfile): Ditto.
7178 * top.c (_init_main): Ditto.
7179 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7180
6be8bc0c
EZ
71812002-03-27 Elena Zannoni <ezannoni@redhat.com>
7182
7183 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7184 vector registers handling.
7185 (skip_prologue): Handle new AltiVec instructions. Fill in new
7186 fields of frame data.
7187 (frame_get_saved_regs): Fill in information for AltiVec registers.
7188
12af6855
JB
71892002-03-27 Jim Blandy <jimb@redhat.com>
7190
7191 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7192 a function; leave this macro here to invoke that function.
7193 (symbol_init_mangled_name): Declaration for that function.
7194 * symtab.c (symbol_init_mangled_name): New function.
7195
dc672865
AC
71962002-03-27 Andrew Cagney <ac131313@redhat.com>
7197
7198 * valarith.c: Replace strerror with safe_strerror.
7199 * tracepoint.c: Ditto.
7200 * lin-lwp.c: Ditto.
7201 * go32-nat.c: Ditto.
7202 * inflow.c: Ditto.
7203 * gnu-nat.c: Ditto.
7204
d96429cd
AS
72052002-03-27 Andreas Schwab <schwab@suse.de>
7206
7207 * event-top.c (command_line_handler): Remove useless if.
7208
7e336ba1
AJ
72092002-03-27 Andreas Jaeger <aj@suse.de>
7210
7211 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7212 comment.
7213
de220d0f
ML
72142002-03-27 Michal Ludvig <mludvig@suse.cz>
7215
7216 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7217 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7218 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7219 (x86_64_linux_dr_get_status, supply_gregset),
7220 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7221 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7222 (x86_64_register_info_table): Add.
7223 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7224 (x86_64_register_raw_size, x86_64_register_virtual_type),
7225 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7226 general x86_64_register_info_table.
7227 (i386_gdbarch_init): gdbarch_register_bytes is now set
7228 dynamicaly during initialization.
7229 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7230 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7231
0e98d0a7
DJ
72322002-03-27 Daniel Jacobowitz <drow@mvista.com>
7233
7234 * gdbserver/server.c (main): Call target_signal_to_host_p
7235 and target_signal_to_host on signals received from the remote.
7236 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7237 target_signal_from_host on signals sent to the remote.
7238 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7239 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7240
3130066b
DJ
72412002-03-27 Daniel Jacobowitz <drow@mvista.com>
7242
7243 * signals/signals.c: Include "server.h" in gdbserver build.
7244 (target_signal_from_name): Don't use STREQ.
7245 (_initialize_signals): Likewise. Don't include function in
7246 gdbserver build.
7247
9aedf4f4
DJ
72482002-03-27 Daniel Jacobowitz <drow@mvista.com>
7249
7250 * signals.c: Moved to...
7251 * signals/signals.c: Here.
7e336ba1 7252 * Makefile (signals.o): Update.
9aedf4f4 7253
3fa41cdb
JL
72542002-03-26 Jeff Law (law@redhat.com)
7255
7256 * somread.c (som_symtab_read): Remove some commented out code and
7257 updated related comments. Do not set the minimal symbol table to
7258 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7259 in a dynamic executable.
7260 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7261 where we are unable to find the minimal symbol for the given
7262 PC value.
7263
ee677e8d
MS
72642002-03-25 Jeff Law (law@redhat.com)
7265
7266 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7267
e76e1718
ML
72682002-03-25 Michal Ludvig <mludvig@suse.cz>
7269
7270 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7271
18a642a1
AC
72722002-03-23 Andrew Cagney <ac131313@redhat.com>
7273
7274 * command.h: Update copyright.
7275 (struct cmd_list_element): Replace definition with opaque
7276 declaration.
7277 (enum cmd_types): Document that it will eventually be moved to
7278 cli/cli-decode.h
7279 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7280 (MALLOCED_REPLACEMENT): Delete macro.
7281 * Makefile.in (cli_decode_h): Add $(command_h).
7282 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7283 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7284 * completer.c: Include "cli/cli-decode.h".
7285 * maint.c: Include "cli/cli-decode.h".
7286 * cli/cli-decode.h: Include "command.h".
7287 (enum command_class): Delete.
7288 (enum cmd_types): Comment out.
7289 (enum cmd_auto_boolean): Delete.
7290 (enum var_types): Delete.
7291
b2875cc0
AC
72922002-03-23 Andrew Cagney <ac131313@redhat.com>
7293
7294 * cli/cli-decode.c: Include "gdb_assert.h".
7295 (add_set_or_show_cmd): New static function.
7296 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7297 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7298 all fields, such as func, from the set command.
7299
3b45974e
AC
73002002-03-23 Andrew Cagney <ac131313@redhat.com>
7301
7302 * MAINTAINERS (sh-elf): Change warning flag to -w.
7303
823ca731
AC
73042002-03-23 Andrew Cagney <cagney@redhat.com>
7305
7306 * defs.h (error): Add printf format attribute.
7307 * thread-db.c (thread_from_lwp): Fix error format string.
7308 * stack.c (parse_frame_specification): Ditto.
7309 * cli/cli-decode.c (undef_cmd_error): Ditto.
7310 * scm-lang.c (scm_lookup_name): Ditto.
7311 * tracepoint.c (trace_error): Ditto.
7312 * remote-utils.c (usage): Ditto.
7313 * remote.c (compare_sections_command): Ditto.
7314 Fix PR gdb/328.
7315
0e101458
AC
73162002-03-22 Andrew Cagney <ac131313@redhat.com>
7317
7318 * gdbtypes.c (append_composite_type_field): New function.
7319 (init_composite_type): New function.
7320 * gdbtypes.h (append_composite_type_field): Declare.
7321 (init_composite_type): Ditto.
7322
8e0662df
EZ
73232002-03-22 Elena Zannoni <ezannoni@redhat.com>
7324
7325 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7326 function.
8e0662df
EZ
7327 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7328 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7329 structure returning convention for SYSV ABI case, but not
7330 for GNU/Linux, FreeBSD, or NetBSD.
7331
3121eff0
DJ
73322002-03-22 Daniel Jacobowitz <drow@mvista.com>
7333
7334 * symtab.h (lookup_block_symbol): Add mangled_name argument
7335 to prototype.
7336
7337 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7338 with new mangled_name argument.
7339 * linespec.c (decode_line_1): Likewise.
7340 * valops (value_of_this): Likewise.
7341 * symtab.c (lookup_transparent_type): Likewise.
7342 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7343 (lookup_symbol): If we are given a mangled name, pass it down
7344 to lookup_symbol_aux.
7345 (lookup_block_symbol): If we are given a mangled name to check
7346 against, only return symbols which match it.
7347
349b409f
CF
73482002-03-22 Christopher Faylor <cgf@redhat.com>
7349
7350 * win32-nat.c (child_create_inferior): Check for proper shell to use
7351 here, in case the user changes it on the fly.
7352 (_initialize_inftarg): Remove shell path considerations.
7353
2a873819
EZ
73542002-03-21 Elena Zannoni <ezannoni@redhat.com>
7355
7356 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7357 for gdbarch_max_register_raw_size and max_register_virtual_size.
7358 Adjust copyright year.
7359
a1b9830c
DJ
73602002-03-21 Daniel Jacobowitz <drow@mvista.com>
7361
7362 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7363 in a function to cover the entire beginning of the function
7364 as well if it does not already.
7365
8b5790f2
TR
73662002-03-21 Tom Rix <trix@redhat.com>
7367
7368 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7369 (rs6000_ptrace64): Renamed from ptrace64.
7370
bdbe5747
MH
73712002-03-20 Martin M. Hunt <hunt@redhat.com>
7372
7373 * gdbserver/remote-utils.c (remote_open): Don't call
7374 getprotobyname, we're all using TCP here so just use
7375 IPPROTO_TCP.
7e336ba1 7376 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7377
73782002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7379
bdbe5747
MH
7380 * regcache.c (_initialize_regcache): No need to call
7381 build_regcache() at this time; it gets called whenever
7382 the gdbarch changes.
7383
7781cd62
DB
73842002-03-20 David O'Brien <obrien@FreeBSD.org>
7385
7386 * sparc-nat.c: Include sys/param.h where possible.
7387
f65ca430
DJ
73882002-03-20 Daniel Jacobowitz <drow@mvista.com>
7389
7390 Fix PR gdb/422.
7391 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7392 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7393 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7394 complex types.
7395 * stabsread.c (rs6000_builtin_type): Likewise.
7396 (read_sun_floating_type): Likewise.
7397
0c867556
PS
73982002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7399
7400 * stabsread.c (read_member_functions): Remove skip code for duplicate
7401 constructor/destructor methods. Use standard parsing for these
7402 methods and just do not chain them to the list of methods after
7403 parsing.
7404
12b9c64f
AO
74052002-03-19 Alexandre Oliva <aoliva@redhat.com>
7406
7407 * coffread.c: Remove redundant static declarations. Replace
7408 occurrences of `PTR' with `void *'.
7409 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7410 * top.h (quit_cover): Likewise.
7411 * defs.h (catch_errors): Likewise.
7412
349c5d5f
AC
74132002-03-18 Andrew Cagney <ac131313@redhat.com>
7414
7415 * defs.h (XMALLOC): Define.
7416 * gdb-events.sh (XMALLOC): Delete macro.
7417 * gdb-events.c, gdb-events.h: Regenerate.
7418 * gdbarch.sh (XMALLOC): Delete macro.
7419 * gdbarch.c: Regenerate.
7420 * serial.c (XMALLOC): Delete macro.
7421 * ui-file.c (XMALLOC): Ditto.
7422 * ser-unix.h (XMALLOC): Ditto.
7423 * sh-tdep.c (XMALLOC): Ditto.
7424 * ui-out.c (XMALLOC): Ditto.
7425 * utils.c (XMALLOC): Ditto.
7426 * i386-tdep.c (XMALLOC): Ditto.
7427 * gdb-events.c (XMALLOC): Ditto.
7428 * d10v-tdep.c (XMALLOC): Ditto.
7429 * cli-out.c (XMALLOC): Ditto.
7430
7431 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7432 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7433 * ui-file.c, ui-out.c: Ditto.
7434
7d0766f3
AC
74352002-03-18 Andrew Cagney <ac131313@redhat.com>
7436
7437 * command.h (struct cmd_list_element): Add field context.
7438 (set_cmd_context, get_cmd_context): Declare.
7439 * cli/cli-decode.h: Ditto.
7440 * cli/cli-decode.c (get_cmd_context): New function.
7441 (set_cmd_context): New function.
7442 (add_cmd): Initialize context.
7443 Part of fixing PR gdb/145 and PR gdb/146.
7444
5913bcb0
AC
74452002-03-17 Andrew Cagney <ac131313@redhat.com>
7446
1868c04e
AC
7447 * cli/cli-decode.c (cmd_type): New function.
7448 * command.h (cmd_type): Declare.
7449 * infrun.c (set_schedlock_func): Call function cmd_type.
7450 * kod.c (kod_set_os): Call cmd_type.
7451 * cris-tdep.c (cris_version_update): Use function cmd_type.
7452 (cris_mode_update, cris_abi_update): Ditto.
7453
5913bcb0
AC
7454 * command.h: (execute_cmd_post_hook): Declare.
7455 (execute_cmd_pre_hook): Declare.
7456 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7457 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7458 functions. Execute pre/post hook while ensuring that afterwords
7459 hook_in is cleared.
7460 * top.c (execute_command): Use execute_cmd_post_hook, and
7461 execute_cmd_pre_hook to execute pre/post commands.
7462 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7463 hook_stop_stub.
7464 (hook_stop_stub): Call execute_cmd_pre_hook.
7465
b51450c9
AC
74662002-03-17 Andrew Cagney <ac131313@redhat.com>
7467
7468 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7469 set'' and this leads to a core dump. Move xstrdup of
7470 operating_system to after check that it is not NULL.
7471
f66c9f11
AC
74722002-03-17 Andrew Cagney <ac131313@redhat.com>
7473
8e694ecf
AC
7474 * kod.c (kod_set_os): Remove unnecessary check that
7475 ``command->type'' is set_cmd.
7476
f66c9f11
AC
7477 * valprint.c (set_input_radix): Use input_radix.
7478 (set_output_radix): Use output_radix.
7479 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7480 isn't reverted.
7481
9d01611c
AC
74822002-03-16 Andrew Cagney <ac131313@redhat.com>
7483
7484 * value.h (struct value): Delete field ``substring_addr''. Change
7485 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7486 force_core_addr_align and force_pointer_aligh.
7487
7488 * value.h (struct value): Fix typo in above change.
9d01611c 7489
4156bb53
PS
74902002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7491
7492 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7493 to fix internal_error from ``maintenance print architecture''.
7494
0e5e3ea6
PS
74952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7496
7497 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7498 for gcc versions after gcc-2.8.1.
7499
9b013045
PS
75002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7501
7502 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7503 for method resolution. Restore adjustment of ``this'' pointer after
7504 calling value_struct_elt, which was accidentally removed during the
7505 HP merge.
7506
376c9600
AC
75072002-03-15 Andrew Cagney <ac131313@redhat.com>
7508
7509 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7510 value_of_register.
7511 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7512 get_saved_register.
7513 * value.h (value_of_register): Update.
7514
a4db0f07
RH
75152002-03-14 Richard Henderson <rth@redhat.com>
7516
7517 * configure.in: Detect declaration for canonicalize_file_name.
7518 * utils.c (canonicalize_file_name): Declare, if needed.
7519 (gdb_realpath): Prefer realpath if available and usable.
7520 * config.in, configure: Rebuild.
7521
96383835
RH
75222002-03-14 Richard Henderson <rth@redhat.com>
7523
7524 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7525 a constant array bound.
7526
7527 * MAINTAINERS: Add myself to write-after-approval.
7528
75245b24
MS
75292002-03-14 Michael Snyder <msnyder@redhat.com>
7530
7531 * symfile.c (syms_from_objfile): Return immediately if no syms.
7532 (symbol_file_add): Return immediately if no syms.
7533 (find_sym_fns): Return immediately if no syms.
7534
e641a1ca
ML
75352002-03-13 Michal Ludvig <mludvig@suse.cz>
7536
7537 * gdbserver/remote-util.c (remote_open): Print remote-side's
7538 IP address when remote debugging over the network.
7e336ba1 7539
df08bfec
DB
75402002-03-12 David O'Brien <obrien@FreeBSD.org>
7541
7542 * config/sparc/fbsd.mh: Fix copyright.
7543 * config/sparc/fbsd.mt: Likewise.
7544
9a57864f
RE
75452002-03-11 Richard Earnshaw <rearnsha@arm.com>
7546
7547 * MAINTAINERS: Fix typo in name of gdb warnings option.
7548 (x86-64): Fix formating so that this can be parsed by awk.
7549
dd7bf85e
DJ
75502002-03-10 Daniel Jacobowitz <drow@mvista.com>
7551
7552 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7553 * defs.h: Include "gdb/signals.h".
7554 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7555
33a0a2ac
ML
75562002-03-10 Michal Ludvig <mludvig@suse.cz>
7557
7558 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7559 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7560 from x86-64-tdep.h
7561
dd824b04
DJ
75622002-03-10 Daniel Jacobowitz <drow@mvista.com>
7563 Don Howard <dhoward@redhat.com>
7564
7565 * mips-tdep.c (ST0_FR): Define.
7566 (mips2_fp_compat): New function, temporarily disabled.
7567 (mips_read_fp_register_single): New function.
7568 (mips_read_fp_register_double): New function.
7569 (mips_print_register): Use them.
7570 (do_fp_register_row): Likewise.
7571
6a41ff59
AC
75722002-03-09 Andrew Cagney <ac131313@redhat.com>
7573
7574 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7575 approval''.
7576
4ea09c10
PS
75772002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7578
7579 * stabsread.c (read_member_functions): Fix is_stub test for
7580 static member functions, improve comment.
7581
6ccc741d
RE
75822002-03-07 Richard Earnshaw <rearnsha@arm.com>
7583
7584 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7585 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7586 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7587 commands that set boolean values.
7588 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7589 (arm_rdi_resume): Always initialize PC.
7590 (arm_rdi_open): Don't use rslt as a boolean.
7591 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7592 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7593 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7594 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7595
438013df
AO
75962002-03-06 Alexandre Oliva <aoliva@redhat.com>
7597
7598 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7599 * configure: Rebuilt.
7600
70ed8774
SC
76012002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7602
7603 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7604 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7605
5ba2abeb
AC
76062002-03-06 Andrew Cagney <ac131313@redhat.com>
7607
7608 * cli/cli-decode.c (set_cmd_completer): New function.
7609 * command.h (set_cmd_completer): Declare.
7610 * cli/cli-decode.h (set_cmd_completer): Ditto.
7611
7612 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7613 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7614 * win32-nat.c (_initialize_inftarg): Ditto.
7615 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7616 * proc-api.c (_initialize_proc_api): Ditto.
7617 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7618 * source.c (_initialize_source): Ditto.
7619 * exec.c (_initialize_exec): Ditto.
7620 * solib.c (_initialize_solib): Ditto.
7621 * top.c (init_main): Ditto.
7622 * tracepoint.c (_initialize_tracepoint): Ditto.
7623 * symfile.c (_initialize_symfile): Ditto.
7624 * printcmd.c (_initialize_printcmd): Ditto.
7625 * infcmd.c (_initialize_infcmd): Ditto.
7626 * corefile.c (_initialize_core): Ditto.
7627
f779ca99
AC
76282002-03-05 Andrew Cagney <ac131313@redhat.com>
7629
7630 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7631
01a3934b
AC
76322002-03-05 Andrew Cagney <ac131313@redhat.com>
7633
7634 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7635
37057839
AC
76362002-03-05 Andrew Cagney <ac131313@redhat.com>
7637
7638 * NEWS: Update headings, 5.2 has branched.
7639
c6ecbae5
DJ
76402002-03-04 Daniel Jacobowitz <drow@mvista.com>
7641
7642 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7643 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7644 (register_addr, REGISTER_RAW_SIZE): Likewise.
7645 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7646 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7647
e9f30c21
ML
76482002-03-03 Michal Ludvig <mludvig@suse.cz>
7649
7650 * MAINTAINERS (x86-64): Add myself.
7651 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7652 changed value_ptr -> struct value *
7653
54394ac3
DB
76542002-03-01 David O'Brien <obrien@FreeBSD.org>
7655
7656 * configure.host (sparc64-*-freebsd): Add.
7657 * configure.tgt: Likewise.
7658 * config/sparc/fbsd.mh: New file.
7659 * config/sparc/fbsd.mt: Likewise.
7660 * config/sparc/nm-fbsd.h: Likewise.
7661 * config/sparc/tm-fbsd.h: Likewise.
7662
bfe95955
DJ
76632002-03-01 Daniel Jacobowitz <drow@mvista.com>
7664
7665 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7666 regformats/reg-s390x.dat.
7667
f33c6cbf
AC
76682002-03-01 Andrew Cagney <ac131313@redhat.com>
7669
7670 * utils.c: Add FIXME explaining true/false problem.
7671
5ecaa7dd
AC
76722002-02-28 Andrew Cagney <ac131313@redhat.com>
7673
7674 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7675
2a251cc2
MC
76762002-02-28 Michael Chastain <mec@shout.net>
7677
7678 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7679
6a8031a3 76802002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7681
7682 * gdbserver/linux-s390-low.c: New file.
7683 * regformats/reg-s390.dat: New file.
7684 * regformats/reg-s390x.dat: New file.
7685 * gdbserver/configure.srv: Add S/390.
7686 * gdbserver/Makefile.in: Add S/390.
7687 * configure.tgt: Enable gdbserver for S/390.
7688
ac469903
EZ
76892002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7690
7691 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7692 first line of the doc string for "info dos", except at the end of
7693 the sentence, since the short help stops at the first period.
7694
985cb1a3
JM
76952002-02-28 Jason Merrill <jason@redhat.com>
7696
7697 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7698
c570663e
FF
76992002-02-27 Fred Fish <fnf@redhat.com>
7700
7701 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7702 comment (dumy -> dummy).
7703
43630227
PS
77042002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7705
7706 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7707
b84911e8
RB
77082002-02-27 Rodney Brown <rbrown64@csc.com.au>
7709
7710 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7711
58caa3dc
DJ
77122002-02-27 Daniel Jacobowitz <drow@mvista.com>
7713
7714 * gdbserver/acconfig.h: New file.
7715 * gdbserver/i387-fp.c: New file.
7716 * gdbserver/i387-fp.h: New file.
7717 * gdbserver/linux-x86-64.c: New file.
7718 * regformats/reg-x86-64.dat: New file.
7719 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7720 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7721 * gdbserver/configure.in: Add support for regsets.
7722 * gdbserver/config.in: Regenerate.
7723 * gdbserver/configure: Regenerate.
7724 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7725 * gdbserver/linux-low.h: New file.
7726 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7727 for regsets.
7728 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7729 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7730 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7731 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7732 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7733 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7734 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7735 "i387-fp.h". Add PTRACE_GETREGS and friends.
7736 * gdbserver/regcache.c (supply_register): New function.
7737 (supply_register_by_name): New function.
7738 (collect_register): New function.
7739 (collect_register_by_name): New function.
7740
93652174
DJ
77412002-02-27 Daniel Jacobowitz <drow@mvista.com>
7742
7743 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7744 (config.status): Add configure.srv dependency.
7745 (server_h): Add config.h dependency.
7746
a02e4a61
DJ
77472002-02-27 Daniel Jacobowitz <drow@mvista.com>
7748
7749 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7750 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7751 * gdbserver/configure.srv: Change i386-*-linux* to use
7752 reg-i386-linux.o.
7753
ce0eebec
AC
77542002-02-26 Andrew Cagney <ac131313@redhat.com>
7755
7756 * x86-64-tdep.c: Re-indent. Update copyright date.
7757
82dbc5f7
AC
77582002-02-26 Andrew Cagney <ac131313@redhat.com>
7759
7760 From Michal Ludvig <mludvig@suse.cz>:
7761 * x86-64-tdep.c (value.h): Delete.
7762 (gdb_assert.h): Include.
7763 (x86_64_register_convert_to_virtual,
7764 x86_64_register_convert_to_raw ): Add check which lets only
7765 floating-point values to be converted.
7766 (value_push): Delete.
7767 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7768 (i386_gdbarch_init): Number of register_bytes fixed.
7769
e4621584
AC
77702002-02-26 Andrew Cagney <ac131313@redhat.com>
7771
7772 * MAINTAINERS: Add x86-64 target.
7773
81a9a963
AC
77742002-02-26 Andrew Cagney <ac131313@redhat.com>
7775
7776 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7777 * osfsolib.c (solib_map_sections): Ditto.
7778 * irix5-nat.c (solib_map_sections): Ditto.
7779 * corelow.c (gdb_check_format): Ditto.
7780 * symfile.c (symfile_bfd_open): Ditto.
7781 * solib.c (solib_map_sections): Ditto.
7782 Fix PR gdb/354.
7e336ba1 7783
0f017ab9
AC
77842002-02-26 Andrew Cagney <ac131313@redhat.com>
7785
7786 * remote.c (_initialize_remote): By default, disable ``e'' and
7787 ``E'' step out-of-range packets.
7788
75738c29
AS
77892002-02-26 Andreas Schwab <schwab@suse.de>
7790
7791 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7792 m68k_linux_frame_saved_pc.
7793 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7794 in_sigtramp.
7795 (SIGCONTEXT_PC_OFFSET): Remove.
7796 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7797 m68k_linux_sigtramp_saved_pc): New functions.
7798 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7799 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7800 (UCONTEXT_PC_OFFSET): Define.
7801 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7802 non-RT and RT signal trampolines.
7803
7e8ed687
RE
78042002-02-26 Richard Earnshaw <rearnsha@arm.com>
7805
7806 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7807 (TARGET_NBPG, STACK_END_ADDR): Delete
7808 (VARIABLES_INSIDE_BLOCK): Delete.
7809
6972bc8b
AC
78102002-02-25 Andrew Cagney <ac131313@redhat.com>
7811
7812 * utils.c (perror_with_name): Make string parameter constant.
7813 (print_sys_errmsg): Ditto.
7814 (query): Ditto.
7815 * defs.h (perror_with_name): Update.
7816 (print_sys_errmsg): Update.
7817 (query): Update.
7818
aa32f823
DJ
78192002-02-25 Daniel Jacobowitz <drow@mvista.com>
7820
7821 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7822 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7823
19caaa45
PS
78242002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7825
7826 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7827 if it already matches the current architecture from the exec file.
7828 Include arch-utils.h for gdbarch_info_init prototype.
7829 * Makefile.in (rs6000-nat.o): Update dependencies.
7830
d951901f
EZ
78312002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7832
7833 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7834 list of exported variables.
7835
7ea81414
DJ
78362002-02-24 Daniel Jacobowitz <drow@mvista.com>
7837
7838 * gdbserver/configure.srv: New file.
7839 * gdbserver/configure.in: Use configure.srv instead
7840 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7841 from it.
7842 * gdbserver/configure: Regenerated.
7843 * gdbserver/terminal.h: New file.
7844 * gdbserver/Makefile.in: Update for configure changes. Remove
7845 more unneeded include paths.
7846
080fe24b
AC
78472002-02-24 Andrew Cagney <ac131313@redhat.com>
7848
7849 From wiz at danbala:
7850 * config/sparc/tm-sp64.h: Fix grammar and typos.
7851 Fix PR gdb/287.
7852
8605d56e
AC
78532002-02-24 Andrew Cagney <ac131313@redhat.com>
7854
7855 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7856 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7857 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7858 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7859 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7860 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7861 * s390-tdep.c: Ditto.
92362027
AC
7862 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7863 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7864 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7865 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7866 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7867 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7868 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7869 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7870 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7871 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7872 Fix PR gdb/378.
7e336ba1 7873
8ed32cc0
AC
78742002-02-23 Andrew Cagney <ac131313@redhat.com>
7875
a3007b6f
AC
7876 * lin-thread.c: Delete file.
7877 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7878 to gdb_proc_service.h.
7879 * configure: Re-generate.
7880
50a9e2f1
AC
7881 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7882 * serial.c (serial_open): Delete check for "ocd".
7883 Fix PR gdb/349.
7884
8b6e7932
AC
7885 * Makefile.in (linux-thread.o): Delete target.
7886 * linux-thread.c: Delete file.
7887
d155c46b
AC
7888 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7889 renamed SH files to be consistent.
7890
8ed32cc0
AC
7891 * symtab.c (sort_search_symbols): Use xfree.
7892
0e18d038
RE
78932002-02-23 Richard Earnshaw <rearnsha@arm.com>
7894
7895 * arm-linux-tdep.c (arm_linux_init_abi): Register
7896 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7897 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7898 definition with undef, since we don't want the sysvr4 definition.
7899 (SKIP_TRAMPOLINE_CODE): Likewise.
7900
27aac7ff
AC
79012002-02-23 Andrew Cagney <ac131313@redhat.com>
7902
7903 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7904
7905 * configure.in: (AC_CHECK_FUNCS) Added test for
7906 canonicalize_file_name Regenerated.
7907 * config.in, configure: Regenerated.
7908 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7909 defined use canonicalize_file_name.
7e336ba1 7910
65a6e0ee
MC
79112002-02-23 Michael Chastain <mec@shout.net>
7912
7913 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7914
47b95330
AC
79152002-02-23 Andrew Cagney <ac131313@redhat.com>
7916
7917 * README: Remove references to cygnus.com.
7918 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7919 dot com'' form. Remove references to cygnus.com and sourceware.
7920
696f451b
AC
79212002-02-23 Andrew Cagney <ac131313@redhat.com>
7922
7923 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7924 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7925 1003.1-2001 no longer allows "head -1".
7926 * gdb/Makefile.in (version.c): Likewise.
7927 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7928 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7929 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7930
bbaca940
AC
79312002-02-23 Andrew Cagney <ac131313@redhat.com>
7932
7933 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7934 * command.h (cmd_cfunc_eq): Declare.
7935 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7936
7937 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7938 ``struct cmd_list_element *''.
7939 * cli/cli-cmds.c (is_complete_command): Update. Use
7940 cmd_cfunc_eq.
7941 * top.c (execute_command): Pass the command to
7942 is_complete_command.
7943 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7944
b8b8b047
AC
79452002-02-23 Andrew Cagney <ac131313@redhat.com>
7946
7947 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7948 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7949 architecture defines.
7950 * s390-tdep.c (s390_gdbarch_init): Likewise.
7951
19d3fc80
RE
79522002-02-23 Richard Earnshaw <rearnsha@arm.com>
7953
7954 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7955 (arm_linux_push_arguments): Likewise.
7956 (arm_linux_init_abi): Register them. Also register linux-specific
7957 call_dummy_words.
7958 (find_minsym_and_objfile): Use strcmp, not STREQ.
7959 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7960 (arm_linux_call_dummy_words): Delete declaration.
7961 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7962 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7963 declarations.
7964 (LOWEST_PC): Delete.
7965
3ab13650
PS
79662002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7967
7968 * maint.c (print_section_info): Do not prepend `0x' to filepos
7969 output, it will be handled by local_hex_string_custom.
7970
19d3fc80 79712002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7972
7973 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7974 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7975 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7976
d85a5daf
JB
79772002-02-22 Jim Blandy <jimb@redhat.com>
7978
7979 Indicate that the bcache functions don't change the strings
7980 they're passed.
7981 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7982 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7983
eeb25b8a
PM
79842002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7985
7986 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7987
6badb179
CF
79882002-02-21 Christopher Faylor <cgf@redhat.com>
7989
7990 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7991 find the complete path to a loaded DLL.
7992
e8717518
FF
79932002-02-21 Fred Fish <fnf@redhat.com>
7994
7995 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7996 that marks the end of the range of a function, enter a line number
7997 entry that has a line number of zero and a PC offset that matches
7998 the end of the function. This starts a range of PC's for which no
7999 line number information is known.
8000 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8001 PC's for which no line number info is found (line number is zero)
8002 then we didn't find any valid line information.
8003 * symtab.h: Document use of zero line number entry.
8004
9abe5450
EZ
80052002-02-21 Elena Zannoni <ezannoni@redhat.com>
8006
8007 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8008 (have_ptrace_getvrregs): Define for run time checks.
8009 (gdb_vrregset_t): New type for Altivec register handling.
8010 (fetch_register, store_register): Fetch/store altivec register
8011 when needed.
8012 (fetch_altivec_register, store_altivec_register): New functions.
8013 (supply_vrregset, fill_vrregset): New functions.
8014 (fetch_altivec_registers, store_altivec_registers): New functions.
8015 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8016 registers as well.
8017
aaa38bb5
AJ
80182002-02-21 Jiri Smid <smid@suse.cz>
8019
8020 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8021
b34db576
RE
80222002-02-21 Richard Earnshaw <rearnsha@arm.com>
8023
8024 * Makefile.in (armnbsd-nat.o): Update dependencies.
8025 * armnbsd-nat.c (supply_gregset): New function. Common code to
8026 supply the integer register set.
8027 (supply_fparegset): New function. Similar for FPA registers.
8028 (fetch_regs, fetch_fp_regs): Use them.
8029 (fetch_core_registers): Likewise.
8030 (fetch_elfcore_registers): New function.
8031 (arm_netbsd_elfcore_fns): New core-file type specification.
8032 (_initialize_arm_netbsd_nat): Register it.
8033
3e56fc4b
RE
80342002-02-21 Richard Earnshaw <rearnsha@arm.com>
8035
8036 * armnbsd-nat.c: Include gdbcore.h.
8037 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8038 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8039 'void' to declaration, to shut up ARI.
8040 (fetch_core_registers): Make static. Rewrite using supply_register.
8041 (arm_netbsd_core_fns): New core-file type specification.
8042 (_initialize_arm_netbsd_nat): New function.
8043
097f6b0b
CF
80442002-02-21 Christopher Faylor <cgf@redhat.com>
8045
8046 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8047 value.
8048
c914e0cc
CF
80492002-02-20 Christopher Faylor <cgf@redhat.com>
8050
8051 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8052 fails.
8053
385fa495
DJ
80542002-02-20 Daniel Jacobowitz <drow@mvista.com>
8055
8056 * jv-exp.y (parse_number): Change type of implicit longs
8057 to builtin_type_uint64.
8058
e5f1222d
DJ
80592002-02-20 Daniel Jacobowitz <drow@mvista.com>
8060
8061 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8062 to be an integer instead of a `union wait'.
8063
75c9abc6
DJ
80642002-02-20 Daniel Jacobowitz <drow@mvista.com>
8065
8066 * mips-linux-nat.c: Call the operating system GNU/Linux.
8067 * mips-linux-tdep.c: Likewise.
8068 * mips-tdep.c: Likewise.
8069
551792a5
DJ
80702002-02-20 Daniel Jacobowitz <drow@mvista.com>
8071
8072 Fix PR gdb/265.
8073 * jv-exp.y (parse_number): Handle 64-bit integers.
8074
ee6e2b82
DJ
80752002-02-20 Daniel Jacobowitz <drow@mvista.com>
8076
8077 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8078 AC_STDC_HEADERS to AC_HEADER_STDC.
8079 * gdbserver/configure: Regenerated.
8080
a48442a0
RE
80812002-02-20 Richard Earnshaw <rearnsha@arm.com>
8082
8083 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8084 is defined.
8085 * sparc-tdep.c (get_longjmp_target): Likewise.
8086
fe419ffc
RE
80872002-02-20 Richard Earnshaw <rearnsha@arm.com>
8088
8089 * News: Add news about ARM and Multi-arch. Mention the new target
8090 arm*-*-netbsd*.
8091
5832ed7e
JB
80922002-02-19 Jim Blandy <jimb@redhat.com>
8093
8094 * stabsread.c (error_type_complaint): Improve error message.
8095
84563040
DJ
80962002-02-19 Daniel Jacobowitz <drow@mvista.com>
8097
8098 * gdbserver/README: Update documentation.
8099 * gdbserver/configure.in: Update configury to match documentation.
8100 * gdbserver/Makefile.in: Likewise.
8101 * gdbserver/configure: Regenerated.
8102 * gdbserver/aclocal.m4: New file, generated by aclocal.
8103 * gdbserver/config.in: New file, generated by autoheader.
8104
375fd65b
RE
81052002-02-19 Richard Earnshaw <rearnsha@arm.com>
8106
8107 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8108 armnbsd-nat.c.
8109
08216dd7
RE
81102002-02-19 Richard Earnshaw <rearnsha@arm.com>
8111
8112 * arm-tdep.h (enum arm_float_model): New enum.
8113 (struct gdbarch_tdep): Add fp_model.
8114 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8115 up floating-point conversions until we know the floating-point model
8116 in use by the inferior. Don't complain about being unable to
8117 determine the ABI of the inferior when we don't have one.
8118 (arm_extract_return_value): Support different floating-point models.
8119 (arm_store_return_value): Likewise.
aaa38bb5 8120 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8121 ARM_FLOAT_SOFT.
8122 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8123
65d6d66a
PS
81242002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8125
8126 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8127 of ``current_gdbarch''.
8128
47221191
RE
81292002-02-19 Richard Earnshaw <rearnsha@arm.com>
8130
8131 * armnbsd-nat.c : ANSIfy all function declarations.
8132 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8133 (fetch_inferior_registers): Re-implement in terms of above.
8134 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8135 (store_inferior_registers): Re-implement in terms of above.
8136
fdf39c9a
RE
81372002-02-19 Richard Earnshaw <rearnsha@arm.com>
8138
aaa38bb5 8139 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8140 kernel.
8141 * arm-linux-tdep.c: Likewise.
8142 * config/arm/tm-linux.h: Likewise.
8143
93247f88
RE
81442002-02-19 Richard Earnshaw <rearnsha@arm.com>
8145
8146 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8147 * config/arm/nbsd.mt (TM_FILE): Delete.
8148 * config/arm/tm-nbsd.h: Delete.
8149
d7b486e7
RE
81502002-02-19 Richard Earnshaw <rearnsha@arm.com>
8151
8152 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8153 Initialize CALL_DUMMY_LENGTH.
8154
41d39a95
RE
81552002-02-19 Richard Earnshaw <rearnsha@arm.com>
8156
8157 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8158 function.
8159 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8160 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8161 defines one thing and that is incorrect for this port.
8162 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8163
e1195560
PM
81642002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8165
8166 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8167
c1748f97
PM
81682002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8169
8170 * win32-nat.c (display_selector): New function. Displays information
8171 about the information returned by GetThreadSelectorEntry API function.
8172 (display_selectors): New function. Displays the infomation of
8173 the selector given as argument, or of CS, DS ans FS selectors
8174 if no argument is given.
8175 ( _initialize_inftarg): Add "w32" as info prefix command.
8176 Add "info w32 selector" as command calling display_selectors.
8177
e41e6bbf
PM
81782002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8179
8180 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8181 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8182 if not defined.
8183
0d3a9f48
RE
81842002-02-18 Richard Earnshaw <rearnsha@arm.com>
8185
8186 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8187
3fb4b924
RE
81882002-02-18 Richard Earnshaw <rearnsha@arm.com>
8189
8190 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8191 (arm_fix_call_dummy): Call it.
8192 (arm_call_dummy_breakpoint_offset): Delete.
8193 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8194 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8195
7f55af32
AC
81962002-02-18 Andrew Cagney <ac131313@redhat.com>
8197
8198 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8199 Default to func_frame_chain_valid.
8200 * gdbarch.h, gdbarch.c: Re-generate.
8201 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8202
05f13b9c
EZ
82032002-02-18 Elena Zannoni <ezannoni@redhat.com>
8204
8205 * ppc-linux-nat.c: Update copyright.
8206 (fetch_register, store_register): Add tid parameter, don't compute
8207 tid here.
8208 (fetch_ppc_registers, store_ppc_registers): Add tid
8209 parameter. Pass it along to callees.
8210 (fetch_inferior_registers, store_inferior_registers): Compute tid
8211 here, and pass it to calleed functions.
8212 (fill_gregset, supply_fpregset): Clean up formatting.
8213
d7afb4c9
RE
82142002-02-18 Richard Earnshaw <rearnsha@arm.com>
8215
8216 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8217 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8218
9df628e0
RE
82192002-02-18 Richard Earnshaw <rearnsha@arm.com>
8220
8221 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8222 * gdbarch.c gdbarch.h: Regenerate.
8223 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8224 function.
8225 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8226 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8227 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8228
8229 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8230 * arm-tdep.c (arm_get_longjmp_target): New function.
8231 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8232 this to a positive value register arm_get_longjmp_target as the
8233 longjmp handler.
8234 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8235 (arm_linux_init_abi): Set up longjmp description in tdep.
8236 * armnbsd-nat.c (get_longjmp_target): Delete.
8237 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8238 description in tdep.
8239 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8240 (get_longjmp_target): Delete declaration.
8241 (GET_LONGJMP_TARGET): Delete.
8242 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8243 (GET_LONGJMP_TARGET): Delete.
8244
57bc8964
KB
82452002-02-17 Kevin Buettner <kevinb@redhat.com>
8246
8247 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8248 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8249 of ``current_gdbarch''.
8250
83d31a92
TT
82512002-02-17 Tom Tromey <tromey@redhat.com>
8252
8253 * cli/cli-cmds.c (compare_strings): New function.
8254 (complete_command): Only print each unique item once.
8255 * completer.h (complete_line): Declare.
8256 * completer.c (complete_line): New function.
8257 (line_completion_function): Use it.
8258
17ef5d92
AC
82592002-02-16 Andrew Cagney <ac131313@redhat.com>
8260
8261 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8262 * gdbarch.h, gdbarch.c: Re-generate.
8263
491b8946
DJ
82642002-02-16 Daniel Jacobowitz <drow@mvista.com>
8265
8266 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8267
82682002-02-16 Daniel Jacobowitz <drow@mvista.com>
8269
8270 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8271 * valops.c (value_arg_coerce): Don't take the address of a reference
8272 to convert an argument to a reference.
8273
dfe7f3ac
CF
82742002-02-15 Christopher Faylor <cgf@redhat.com>
8275
8276 * win32-nat.c (get_image_name): New function.
8277 (handle_load_dll): Use get_image_name function.
8278 (get_child_debug_event): Avoid registering debug events until possibly
8279 execed process is started.
8280 (child_create_inferior): Allow invocation via shell so that command
8281 line redirection, etc. works ok.
8282 (_initialize_inftarg): Add new command: "set shell" to control whether
8283 a shell is used to start a process.
8284
1d33e73a
DJ
82852002-02-15 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8288 instead of find_register_by_number.
8289 (cannot_store_register): Likewise.
8290
48cd0caa
PM
82912002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8292
aaa38bb5 8293 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8294 fprintf_unfiltered (gdb_stderr, ...).
8295
8656e7d8
DJ
82962002-02-15 Daniel Jacobowitz <drow@mvista.com>
8297
8298 * gdbserver/gdbserver.1: Document --attach.
8299
66e810cd
RE
83002002-02-15 Richard Earnshaw <rearnsha@arm.com>
8301
8302 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8303 descriptions.
8304 * arm-tdep.c (arm_default_arm_le_breakpoint)
8305 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8306 (arm_default_thumb_be_breakpoint): New. Initialize them from
8307 traditional breakpoint defines.
8308 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8309 (arm_gdbarch_init): Initialize new breakpoint variables.
8310 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8311 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8312 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8313 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8314 code out to ...
8315 (arm_netbsd_init_abi_common): ... here; new function.
8316 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8317 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8318 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8319 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8320
97e03143
RE
83212002-02-15 Richard Earnshaw <rearnsha@arm.com>
8322
8323 * arm-tdep.h (enum arm_abi): New enum.
8324 (struct gdbarch_tdep): New structure.
8325 (LOWEST_PC): Provide a default.
8326 (arm_gdbarch_register_os_abi): Declare new function.
8327 * arm-tdep.c (arm_abi_names): New array.
8328 (process_note_abi_tag_sections): New function.
8329 (get_elfosabi): New function.
8330 (arm_gdbarch_register_os_abi): New function.
8331 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8332 support for that ABI has been built in, then call the appropriate
8333 configuration routine. Use gdbarch_num_regs() to get the number
8334 of registers.
8335 (arm_dump_tdep): New function.
8336 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8337 place-holder functions.
8338 (_initialize_arm_tdep): Register them.
8339 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8340
8341 * armnbsd-tdep.c: New file.
8342 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8343 * config/arm/nbsd.mt (TDEPFILES): Add it.
8344 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8345
8346 * armnbsd-nat.c: Include regcache.h.
8347 * Makefile.in (armnbsd-nat.o): Update dependency list.
8348
8349 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8350
ad68be46
DJ
83512002-02-14 Daniel Jacobowitz <drow@mvista.com>
8352
8353 * gdbserver/Makefile.in: Fix typos in target rules.
8354
003d6d1d
DJ
83552002-02-14 Daniel Jacobowitz <drow@mvista.com>
8356
aaa38bb5 8357 Fix part of PR gdb/267.
003d6d1d
DJ
8358 * linespec.c (find_methods): Handle constructors specially for now.
8359
6b230f1b
CV
83602002-02-14 Corinna Vinschen <vinschen@redhat.com>
8361
8362 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8363 handling.
8364 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8365 standard_coerce_float_to_double().
8366
1ea98d12
CF
83672002-02-14 Christopher Faylor <cgf@redhat.com>
8368
8369 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8370 GDBINIT_FILENAME.
8371
dd47e6fd
EZ
83722002-02-14 Elena Zannoni <ezannoni@redhat.com>
8373
8374 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8375 find_variant_by_name, because it confuses the multiarch
8376 framework. Return NULL if there isn't an architecture with the
8377 user supplied name, instead of forcing a different one without
8378 recording the change with the multiarch machinery.
8379 (find_variant_by_name): Delete.
8380
d7e39b9e
PS
83812002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8382
8383 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8384 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8385
76e42a4f
MH
83862002-02-13 Martin M. Hunt <hunt@redhat.com>
8387
aaa38bb5 8388 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8389 print_frame_info_listing_hook, set current_source_symtab.
8390
0a30fbc4
DJ
83912002-02-14 Daniel Jacobowitz <drow@mvista.com>
8392
8393 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8394 and remove unused $(INCLUDE_DIR).
8395 Add regcache.c to OBS.
8396 Add generated register protocol files to clean target.
8397 Update dependencies for new objects, obsolete old target code.
8398
8399 * gdbserver/linux-low.c: Remove all platform-specific code to
8400 new files. Remove various dead code. Update to use regcache
8401 functionality.
8402 * gdbserver/remote-utils.c (fromhex): Add return statement
8403 to quiet warning.
8404 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8405 constant.
8406 (input_interrupt): Add integer parameter to match prototype
8407 of a signal handler.
8408 (outreg): Use register_data ().
8409 (prepare_resume_reply): Use gdbserver_expedite_regs.
8410 * gdbserver/server.c (main): Dynamically allocate own_buf because
8411 PBUFSIZ is no longer constant. Use registers_to_string () and
8412 registers_from_string ().
8413 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8414 for error (), fatal (), and warning (). Update definition of
8415 PBUFSIZ to use regcache functionality. Add include guard.
8416 * gdbserver/utils.c (fatal): Add missing ``const''.
8417 (warning): New function.
8418
8419 * regformats/regdat.sh: Include "regcache.h" in generated files.
8420 Provide init_registers () function.
8421 * regformats/regdef.h: Add prototype for set_register_cache ().
8422 Add include guard.
8423
8424 * gdbserver/linux-arm-low.c: New file.
8425 * gdbserver/linux-i386-low.c: New file.
8426 * gdbserver/linux-ia64-low.c: New file.
8427 * gdbserver/linux-m68k-low.c: New file.
8428 * gdbserver/linux-mips-low.c: New file.
8429 * gdbserver/linux-ppc-low.c: New file.
8430 * gdbserver/linux-sh-low.c: New file.
8431
8432 * gdbserver/regcache.c: New file.
8433 * gdbserver/regcache.h: New file.
8434
8435 * gdbserver/low-linux.c: Removed obsolete file.
8436
4cc841d0
DJ
84372002-02-14 Daniel Jacobowitz <drow@mvista.com>
8438
8439 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8440 * config/i386/linux.mt: Likewise.
8441 * config/ia64/linux.mt: Likewise.
8442 * config/m68k/linux.mh: Likewise.
8443 * config/powerpc/linux.mh: Likewise.
8444 * config/mips/linux.mt: Likewise.
8445
8446 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8447
8448 * config/i386/i386lynx.mh: Mark gdbserver variables
8449 as (currently) obsolete for this target.
8450 * config/i386/nbsd.mt: Likewise.
8451 * config/i386/nbsdelf.mt: Likewise.
8452 * config/m32r/m32r.mt: Likewise.
8453 * config/m68k/m68klynx.mh: Likewise.
8454 * config/m68k/nbsd.mt: Likewise.
8455 * config/m68k/sun3os4.mh: Likewise.
8456 * config/mips/vr5000.mt: Likewise.
8457 * config/ns32k/nbsd.mt: Likewise.
8458 * config/pa/hppabsd.mh: Likewise.
8459 * config/pa/hppaosf.mh: Likewise.
8460 * config/powerpc/nbsd.mt: Likewise.
8461 * config/rs6000/rs6000lynx.mh: Likewise.
8462 * config/s390/s390.mt: Likewise.
8463 * config/s390/s390x.mt: Likewise.
8464 * config/sparc/sparclynx.mh: Likewise.
8465 * config/sparc/sun4os4.mh: Likewise.
8466 * config/i386/x86-64linux.mt: Likewise.
8467 * config/sparc/linux.mh: Likewise.
8468
a85f51e7
DJ
84692002-02-14 Daniel Jacobowitz <drow@mvista.com>
8470
8471 * configure.tgt: Configure gdbserver only for known working
8472 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8473 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8474 SUBDIRS if it is configured. Update comment for ${nativefile}.
8475 * configure: Regenerated.
8476
65554fef
MS
84772002-02-13 Michael Snyder <msnyder@redhat.com>
8478
670a52db
MS
8479 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8480
6dbdc4a3
MS
8481 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8482 (default_gcore_mach): Just return 0, work around a problem in bfd.
8483 (default_gcore_target): OK to return NULL if exec_bfd is null.
8484 (make_mem_sec): Use a cast, avoid a warning.
8485
8486 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8487 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8488 sizeof (host pointer) != sizeof (target pointer)).
8489 (procfs_make_note_section): Avoid overflow in psargs string.
8490
aaa38bb5 8491 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8492 implementation return an error.
8493
84942002-02-13 Rodney Brown <rbrown64@csc.com.au>
8495
8496 * procfs.c (procfs_make_note_section): Provide a default definition
8497 (for alpha-dec-osf4.0f). Fix typos.
8498
1e4d76e7
EZ
84992002-02-13 Elena Zannoni <ezannoni@redhat.com>
8500
8501 * linux-proc.c: Add include of regcache.h.
8502 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8503
b6d1a1d5
AC
85042002-02-13 Andrew Cagney <ac131313@redhat.com>
8505
8506 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8507 * memattr.c (create_mem_region): Disallow useless empty region.
8508 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8509 non-overlapping.
b6d1a1d5 8510
6c6ea35e
MC
85112002-02-13 Michael Chastain <mec@shout.net>
8512
8513 * defs.h: Kill CONST_PTR.
8514 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8515 * c-lang.c (c_builtin_types): Likewise.
8516 * ch-lang.c (ch_builtin_types): Likewise.
8517 * f-lang.c (f_builtin_types): Likewise.
8518 * language.c (unknown_builtin_types): Likewise.
8519 * m2-lang.c (m2_builtin_types): Likewise.
8520 * p-lang.c (pascal_builtin_types): Likewise.
8521 * scm-lang.c (c_builtin_types): Likewise.
8522
3e0b0f48
KS
85232002-02-13 Keith Seitz <keiths@redhat.com>
8524
8525 * arm-tdep.h (arm_get_next_pc): Add declaration.
8526
67255d04
RE
85272002-02-13 Richard Earnshaw <rearnsha@arm.com>
8528
8529 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8530 with other related struct-returning functions.
8531 (arm_extract_struct_value_address): New function.
8532 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8533 initialize float_format, double_format and long_double_format as
8534 appropriate to the endianness of the target.
8535 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8536 (arm_use_struct_convention): Delete declaration.
8537 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8538
079777f6
KS
85392002-02-13 Keith Seitz <keiths@redhat.com>
8540
8541 * defs.h (core_addr_to_string_nz): New function.
8542
34588f23
MK
85432002-02-13 Mark Kettenis <kettenis@gnu.org>
8544
8545 Apply missing bits of 2002-01-15 patch.
8546 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8547 (fill_fpregset): Use i387_fill_fsave.
8548
49b563f9
KS
85492002-02-12 Keith Seitz <keiths@redhat.com>
8550
49b563f9
KS
8551 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8552 (core_addr_to_string_nz): New function.
8553
aeb98c60
RE
85542002-02-11 Richard Earnshaw <rearnsha@arm.com>
8555
8556 * arm-linux-nat.c: Really include arm-tdep.h.
8557 * config/arm/tm-linux.h (struct type, struct value): Declare.
8558
65554fef
MS
85592002-02-11 Michael Snyder <msnyder@redhat.com>
8560
8561 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8562 (gcore section): Ifdef for Solaris and Unixware only.
8563 (procfs_do_thread_registers): Unixware needs one lwpstatus
8564 per thread (not one prstatus or pstatus).
8565 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8566 not over all gdb threads. For unixware, call elfcore_write_pstatus
8567 once before iterating over threads.
8568
34e8f22d
RE
85692002-02-11 Richard Earnshaw <rearnsha@arm.com>
8570
8571 * arm-tdep.h: New file.
8572 * arm-tdep.c: Include arm-tdep.h.
8573 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8574 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8575 (arm_print_float_info, arm_register_type, convert_to_extended)
8576 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8577 (arm_extract_return_value, arm_register_name): Make static.
8578 (arm_software_single_step): Similarly. Fix types in declaration.
8579 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8580 (arm_store_return_value, arm_store_struct_return): New functions.
8581 (arm_gdbarch_init): Register the above functions. Also register
8582 call_dummy_start_offset, sizeof_call_dummy_words,
8583 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8584 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8585 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8586 prologue_cache.saved_regs here, rather than ...
8587 (_initialize_arm_tdep): ... here.
8588 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8589 declarations.
8590 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8591 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8592 (arm_print_float_info, arm_register_type, convert_to_extended)
8593 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8594 (arm_extract_return_value, arm_register_name): Delete declarations.
8595 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8596 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8597 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8598 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8599 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8600 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8601 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8602 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8603 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8604 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8605 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8606 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8607 interface.
8608 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8609 * remote-rdi.c remote-rdp.c: Likewise.
8610 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8611 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8612 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8613 definition.
8614
8615 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8616 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8617 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8618 from non-ARM_ prefixed definitions.
8619 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8620 all uses of above.
8621 * remote-rdi.c remote-rdp.c: Likewise.
8622 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8623
148754e5
RE
86242002-02-11 Richard Earnshaw <rearnsha@arm.com>
8625
8626 * arm-tdep.c (arm_frameless_function_invocation)
8627 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8628 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8629 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8630 (arm_pop_frame, arm_get_next_pc): Make static.
8631 (arm_gdbarch_init): Register above in gdbarch structure.
8632 (arm_read_fp): Renamed from arm_target_read_fp.
8633 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8634 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8635 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8636 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8637 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8638 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8639 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8640 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8641 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8642 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8643 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8644
434d2d4f
DJ
86452002-02-10 Daniel Jacobowitz <drow@mvista.com>
8646
8647 * symtab.c (compare_search_syms): New function.
8648 (sort_search_symbols): New function.
8649 (search_symbols): Sort symbols after searching rather than
8650 before.
8651
55241689
AC
86522002-02-10 Andrew Cagney <ac131313@redhat.com>
8653
8654 * NEWS: Linux -> GNU/Linux.
8655
028c194b
AC
86562002-02-10 Andrew Cagney <ac131313@redhat.com>
8657
8658 * gdbarch.sh: For for level one methods, disallow a definition
8659 when partially multi-arched. Add comments explaining rationale.
8660 * gdbarch.h: Re-generate.
8661
6acf50cd
AC
86622002-02-10 Andrew Cagney <ac131313@redhat.com>
8663
8664 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8665 multi-arch partial.
aaa38bb5 8666
50248794
AC
86672002-02-10 Andrew Cagney <ac131313@redhat.com>
8668
8669 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8670 field. Use diff -u.
8671 * gdbarch.c: Re-generate.
8672
c30e0066
AC
86732002-02-10 Andrew Cagney <ac131313@redhat.com>
8674
9b56c5f3 8675 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8676 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8677 partial.
8678
6e6d6484
AC
86792002-02-10 Andrew Cagney <ac131313@redhat.com>
8680
8681 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8682 multi-arch partial.
8683 (PUSH_ARGUMENTS): Switch to using predefault.
8684 * gdbarch.c: Regenerate.
8685
c203844d
AC
86862002-02-10 Andrew Cagney <ac131313@redhat.com>
8687
8688 * valops.c (PUSH_ARGUMENTS): Delete definition.
8689 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8690 partial. Default to default_push_arguments.
8691 * gdbarch.h, gdbarch.c: Regenerate.
8692
b5a2688f
AC
86932002-02-09 Andrew Cagney <ac131313@redhat.com>
8694
8695 * defs.h (throw_exception): Rename return_to_top_level. Update
8696 comments.
8697 * utils.c (error_stream, internal_verror, quit): Ditto.
8698 * top.c (throw_exception, catcher): Ditto.
8699 * sparclet-rom.c (sparclet_load): Ditto.
8700 * remote.c (interrupt_query, minitelnet): Ditto.
8701 * remote-sds.c (interrupt_query): Ditto.
8702 * remote-mips.c (mips_error, mips_kill): Ditto.
8703 * ocd.c (interrupt_query): Ditto.
8704 * monitor.c (monitor_interrupt_query): Ditto.
8705 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8706 * target.h: Update comment.
aaa38bb5 8707
b5a2688f 8708 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8709
2fa5c1e0
AC
87102002-02-09 Andrew Cagney <ac131313@redhat.com>
8711
8712 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8713 default_double_format.
8714 * gdbarch.h, gdbarch.c: Re-generate.
8715 * findvar.c (floatformat_unknown): Delete variable definition.
8716 * doublest.h (floatformat_unknown): Delete variable declaration.
8717
da966255
JB
87182002-02-09 Jim Blandy <jimb@redhat.com>
8719
8720 * stabsread.c (read_type): Add code to parse Sun's syntax for
8721 prototyped function types.
8722
123a4891
AC
87232002-02-09 Andrew Cagney <ac131313@redhat.com>
8724
8725 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8726 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8727
fb39c8f3
PS
87282002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8729
8730 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8731 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8732 now _initialize_xcoffsolib gets called again and overrides the
8733 commands from solib.c in a native configuration.
8734
0b87a11d
MK
87352002-02-09 Mark Kettenis <kettenis@gnu.org>
8736
8737 * doublest.c (store_typed_floating): Don't try to return a value.
8738 Fixes PR gdb/290.
8739
bdc2fc72
JB
87402002-02-08 Jim Blandy <jimb@redhat.com>
8741
8742 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8743 is prototyped and has no arguments, print its argument list as
8744 `(void)'.
8745
da69bbcf
CD
87462002-02-08 Chris Demetriou <cgd@broadcom.com>
8747
8748 * MAINTAINERS (write-after-approval): Add myself.
8749 (paper-trail): I've escaped!
aaa38bb5 8750
b69571f5
CF
87512002-02-08 Christopher Faylor <cgf@redhat.com>
8752
8753 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8754 changes.
8755 (_initialize_check_for_gdb_ini): Ditto.
8756
f6871398
MH
87572002-02-08 Martin M. Hunt <hunt@redhat.com>
8758
8759 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8760 xaprintf -> xasprintf.
8761
4e52d31c
PM
87622002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8763
8764 * win32-nat.c: Remove use of printf and sprintf functions.
8765
39bbf761
RE
87662002-02-08 Richard Earnshaw <rearnsha@arm.com>
8767
8768 * arm-tdep.c (arm_frame_chain_valid): Make static.
8769 (arm_push_arguments): Likewise.
8770 (arm_gdbarch_init): New function.
8771 (_initialize_arm_tdep): Call it.
8772 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8773 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8774 (FRAME_CHAIN_VALID): Delete.
8775 (arm_frame_chain_valid): Delete declaration.
8776 (PUSH_ARGUMENTS): Delete.
8777 (arm_push_arguments): Delete declaration.
8778 (CALL_DUMMY_P): Delete.
8779
9c9532c9
CV
87802002-02-08 Andrew Cagney <ac131313@redhat.com>
8781 Corinna Vinschen <vinschen@redhat.com>
8782
8783 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8784 on builtin float types.
8785
4e8f7a8b
DJ
87862002-02-08 Daniel Jacobowitz <drow@mvista.com>
8787
8788 * utils.c: Include <curses.h> before "bfd.h".
8789 * tui/tui-hooks.c: Likewise.
8790 * tui/tui.c: Likewise.
8791 * tui/tuiCommand.c: Likewise.
8792 * tui/tuiData.c: Likewise.
8793 * tui/tuiDataWin.c: Likewise.
8794 * tui/tuiDisassem.c: Likewise.
8795 * tui/tuiGeneralWin.c: Likewise.
8796 * tui/tuiIO.c: Likewise.
8797 * tui/tuiLayout.c: Likewise.
8798 * tui/tuiRegs.c: Likewise.
8799 * tui/tuiSource.c: Likewise.
8800 * tui/tuiSourceWin.c: Likewise.
8801 * tui/tuiStack.c: Likewise.
8802 * tui/tuiWin.c: Likewise.
8803
cd4bffcf
EZ
88042002-02-07 Elena Zannoni <ezannoni@redhat.com>
8805
8806 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8807 to include space for pseudoregs as well. Update loops accordingly.
8808 (sh_fp_frame_init_saved_regs): Ditto.
8809 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8810
26806ce2
AC
88112002-02-07 Andrew Cagney <ac131313@redhat.com>
8812
8813 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8814 Add Richard Earnshaw to Arm maintainers.
8815
97fdab62
AC
88162002-02-07 Andrew Cagney <ac131313@redhat.com>
8817
a6b98203
AC
8818 * defs.h (warning_begin): Delete declaration.
8819
97fdab62
AC
8820 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8821 Delete macro.
8822
78b29b40
MS
88232002-02-07 Michael Snyder <msnyder@redhat.com>
8824
aaa38bb5 8825 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8826 Logic bug, remove misplaced else.
8827
d8849953
KD
88282002-02-07 Klee Dienes <klee@apple.com>
8829
8830 * fork-inferior.c (fork_inferior): Add '!' to the list of
8831 characters that need to be quoted when building a string for the
8832 shell. Quote '!' specifically with a backslash, since CSH chokes
8833 when trying to evaluate "str!str".
aaa38bb5 8834
095778a0
NC
88352002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8836
8837 * rdi-share/host.h: Only provide a typedef for bool if it is not
8838 defined.
8839
1900040c
MS
88402002-02-04 Michael Snyder <msnyder@redhat.com>
8841
8842 * breakpoint.h (enum bptype): Add new overlay event bp type.
8843 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8844
1900040c
MS
8845 * breakpoint.c (create_internal_breakpoint): New function.
8846 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8847 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8848 (create_thread_event_breakpoint): Ditto.
8849 (create_solib_event_breakpoint): Ditto.
8850 (create_overlay_event_breakpoint): New function.
8851 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8852 (update_breakpoints_after_exec): Delete and re-initialize
8853 overlay event breakpoints after an exec. Add FIXME comment
8854 about longjmp breakpoint.
8855 (print_it_typical): Ignore overlay event breakpoints.
8856 (print_one_breakpoint): Ditto.
8857 (mention): Ditto.
8858 (bpstat_what): Do not stop for overlay event breakpoints.
8859 (delete_breakpoint): Don't delete overlay event breakpoints.
8860 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8861 (breakpoint_re_set): Re-create overlay event breakpoint.
8862
8863 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8864 (overlay_manual_command): Disable overlay breakpoints.
8865 (overlay_off_command): Disable overlay breakpoints.
8866
082fc60d
RE
88672002-02-06 Richard Earnshaw <rearnsha@arm.com>
8868
8869 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8870 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8871 to here from config/tm-arm.h.
8872 (coff_sym_is_thumb): Make static.
8873 (arm_elf_make_msymbol_special): New function.
8874 (arm_coff_make_msymbol_special): New function.
8875 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8876 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8877 (coff_sym_is_thumb): Delete declaration.
8878 (arm_elf_make_msymbol_special): Declare.
8879 (arm_coff_make_msymbol_special): Declare.
8880 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8881 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8882
039c5766
RE
88832002-02-06 Richard Earnshaw <rearnsha@arm.com>
8884
8885 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8886
88872002-02-06 Richard Earnshaw <rearnsha@arm.com>
8888
8889 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8890 * gdbarch.c gdbarch.h: Regenerate.
8891 * arch-utils.c (default_print_float_info): New function.
8892 * arch-utils.h (default_print_float_info): Prototype it.
8893 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8894 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8895 (PRINT_FLOAT_INFO): Document it.
8896
8897 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8898 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8899 (PRINT_FLOAT_INFO): Define.
8900
58fa08f0
PM
89012002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8902
aaa38bb5 8903 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8904 Add typecast to sprintf argument to suppress a warning.
8905
7393af7c
PM
89062002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8907
58fa08f0 8908 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8909 to allow easier handling of pass state.
8910 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8911 that gives exception name and address.
8912 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8913 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8914 exceptions added.
aaa38bb5
AJ
8915 (child_continue): Correctly report continue_status.
8916 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8917 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8918 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8919 the exception should be passed to debuggee or not.
8920
6af4589c
MS
89212002-02-05 Michael Snyder <msnyder@redhat.com>
8922
8923 * regcache.c (fetch_register): Call target_fetch_register
8924 only if we don't call FETCH_PSEUDO_REGISTER.
8925 (store_register): Call target_store_register only if we
8926 don't call STORE_PSEUDO_REGISTER.
8927
a2cf933a
EZ
89282002-02-05 Elena Zannoni <ezannoni@redhat.com>
8929
8930 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8931 ELF_MAKE_MSYMBOL_SPECIAL.
8932 * gdbarch.c, gdbarch.h: Regenerate.
8933 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8934 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8935 * elfread.c (elf_symtab_read): Compile use of
8936 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8937 multiarched.
8938 * coffread.c (coff_symtab_read): Ditto, for
8939 COFF_MAKE_MSYMBOL_SPECIAL.
8940
6bb7be43
JB
89412002-02-05 Jim Blandy <jimb@redhat.com>
8942
8943 * solib-svr4.c (svr4_truncate_ptr): New function.
8944 (svr4_relocate_section_addresses): Do the address arithmetic with
8945 the appropriate truncation for target addresses, even when
8946 CORE_ADDR is larger than a target address.
8947
e18651ec
DJ
89482002-02-05 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8951 to (int *).
8952
6b2725be
DJ
89532002-02-05 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8956 code.
8957
fca9e603
DJ
89582002-02-05 Daniel Jacobowitz <drow@mvista.com>
8959
8960 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8961
6c537a52
DJ
89622002-02-05 Daniel Jacobowitz <drow@mvista.com>
8963
8964 * gdbserver/linux-low.c: Remove unused include files.
8965
d844cde6
DJ
89662002-02-05 Daniel Jacobowitz <drow@mvista.com>
8967
8968 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8969 (read_inferior_memory): Use it.
8970 (write_inferior_memory): Likewise.
8971
d07c63e7
DJ
89722002-02-05 Daniel Jacobowitz <drow@mvista.com>
8973
8974 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8975 grubbing through sys_errlist.
8976
da6d8c04
DJ
89772002-02-05 Daniel Jacobowitz <drow@mvista.com>
8978
8979 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8980
5b421780
PM
89812002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8982 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8983
9f60d481
AC
89842002-02-04 Andrew Cagney <ac131313@redhat.com>
8985
8986 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8987 (do_sfunc, set_cmd_sfunc): New functions.
8988
8989 * command.h (struct cmd_list_element): Add field func.
8990 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8991 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8992 * cli/cli-decode.h: Ditto.
8993
8994 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8995 (help_all, help_cmd_list): Ditto.
8996 (find_cmd, complete_on_cmdlist): Ditto.
8997 * top.c (execute_command): Ditto.
8998
8999 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9000 function.sfunc.
9001
9002 * infcmd.c (notice_args_read): Fix function signature.
9003
9004 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9005 * cli/cli-decode.c (add_set_cmd): Ditto.
9006 * utils.c (initialize_utils): Ditto.
9007 * maint.c (_initialize_maint_cmds): Ditto.
9008 * infrun.c (_initialize_infrun): Ditto.
9009 * demangle.c (_initialize_demangler): Ditto.
9010 * remote.c (add_packet_config_cmd): Ditto.
9011 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9012 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9013 * proc-api.c (_initialize_proc_api): Ditto.
9014 * kod.c (_initialize_kod): Ditto.
9015 * valprint.c (_initialize_valprint): Ditto.
9016 * top.c (init_main): Ditto.
9017 * infcmd.c (_initialize_infcmd): Ditto.
9018 * corefile.c (_initialize_core): Ditto.
9019 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9020 * arch-utils.c (initialize_current_architecture): Ditto.
9021 (_initialize_gdbarch_utils): Ditto.
9022 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9023
9024 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9025 * wince.c (_initialize_inftarg): Ditto.
9026 * symfile.c (_initialize_symfile): Ditto.
9027 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9028 * language.c (_initialize_language): Ditto.
9029 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9030
f9ba0717
MS
90312002-02-04 Michael Snyder <msnyder@redhat.com>
9032
9033 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9034
0c74b2a7
DJ
90352002-02-04 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9038 Add rules for building the register data files.
9039
c638789f
DJ
90402002-02-04 Daniel Jacobowitz <drow@mvista.com>
9041
9042 * regformats/regdat.sh: Add braces to the definition of
9043 expedite_regs_${arch}.
9044
db253027
DJ
90452002-02-04 Daniel Jacobowitz <drow@mvista.com>
9046
9047 * regformats/regdef.h (struct reg): Add comment describing the
9048 requirements for offset and size fields.
9049
206be19c
AS
90502002-02-04 Andreas Schwab <schwab@suse.de>
9051
9052 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9053 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9054
181c1381
RE
90552002-02-04 Richard Earnshaw <rearnsha@arm.com>
9056
9057 * gdbarch.sh (copyright): Update years in generated header.
9058 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9059 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9060 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9061 * dbxread.c: Likewise.
9062 * dwarfread.c: Likewise.
9063 * elfread.c: Likewise.
9064 * somread.c: Likewise.
9065
9066 * arm-tdep.c (arm_smash_text_address): New function.
9067 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9068
fa4ba8da
PM
90692002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9070
9071 Add support for hardware watchpoints on win32 native.
aaa38bb5 9072 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9073 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9074 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9075 of debug registers.
9076 (debug_registers_changed): New variable. Reflects when debug registers
9077 are changed and need to be written to inferior.
aaa38bb5 9078 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9079 was set, used when new threads are created.
9080 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9081 i386-nat code.
9082 (thread_rec): Set dr array if id is the thread of current_event .
9083 (child_continue, child_resume): Change the debug registers for all
9084 threads if debug_registers_changed.
9085 (child_add_thread): Change the debug registers if debug_registers_used.
9086 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9087 Link nm.h to new nm-cygwin.h file.
9088 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9089 of hardware registers.
9090
a73c86fb
AC
90912002-02-03 Andrew Cagney <ac131313@redhat.com>
9092
9093 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9094 Restore behavour broken by 2002-01-20 Andrew Cagney
9095 <ac131313@redhat.com> IEEE_FLOAT removal.
9096
acf5ed49
DJ
90972002-02-03 Daniel Jacobowitz <drow@mvista.com>
9098
9099 * c-valprint.c (c_val_print): Pass a proper valaddr to
9100 cp_print_class_method.
9101 * valops.c (search_struct_method): If there is only one method
9102 and args is NULL, return that method.
9103
493d28d5
DJ
91042002-02-03 Daniel Jacobowitz <drow@mvista.com>
9105
9106 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9107 accessing tag_name directly.
9108
7495dfdb
DJ
91092002-02-03 Daniel Jacobowitz <drow@mvista.com>
9110
9111 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9112 of accessing tag_name directly.
9113
dd6bda65
DJ
91142002-02-03 Daniel Jacobowitz <drow@mvista.com>
9115
9116 PR gdb/280
9117 * gdbtypes.c (replace_type): New function.
9118 * gdbtypes.h (replace_type): Add prototype.
9119 * stabsread.c (read_type): Use replace_type.
9120
88fe217c
RE
91212002-02-03 Richard Earnshaw <rearnsha@arm.com>
9122
9123 * Makefile.in (memattr.o): Add missing dependencies rule.
9124
e5d66720
PS
91252002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9126
9127 * breakpoint.c (break_at_finish_command): Really export.
9128 (break_at_finish_at_depth_command): Ditto.
9129 (tbreak_at_finish_command): Ditto.
9130 * hppa-tdep.c: Include completer.h.
9131 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9132 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9133
fffee0be
AC
91342002-02-01 Andrew Cagney <ac131313@redhat.com>
9135
9136 * utils.c (do_write): New function.
9137 (error_stream): Rewrite combining the code from error_begin and
9138 verror.
9139 (verror): Rewrite using error_stream.
9140 (error_begin): Delete function.
9141
255e7dbf
AC
91422002-02-01 Andrew Cagney <ac131313@redhat.com>
9143
9144 * utils.c (error_begin): Make static.
9145 * defs.h (error_begin): Delete declaration.
9146
9147 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9148 (decode_line_1): Use cplusplus_error instead of error_begin,
9149 cplusplus_hint and return_to_top_level.
9150 * coffread.c (coff_symfile_read): Use error instead of error_begin
9151 and return_to_top_level.
9152 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9153
ddfe3c15
AC
91542002-02-01 Andrew Cagney <ac131313@redhat.com>
9155
9156 * language.h (type_error, range_error): Make string parameter
9157 constant.
9158 * language.c (warning_pre_print): Delete extern declaration.
9159 * dwarfread.c (warning_pre_print): Ditto.
9160 * language.c (type_error, range_error): Rewrite to use verror and
9161 vwarning instead of warning_begin.
9162
03ac34d5
MS
91632002-02-01 Michael Snyder <msnyder@redhat.com>
9164
261c4ca2
MS
9165 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9166 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9167
e00d1dc8
AC
91682002-02-01 Andrew Cagney <ac131313@redhat.com>
9169
9170 * command.h (NO_FUNCTION): Delete macro.
9171 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9172 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9173 * tracepoint.c (_initialize_tracepoint): Ditto.
9174 * cli/cli-decode.c (add_set_cmd): Ditto.
9175 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9176
76b79d6e
DJ
91772002-02-01 Daniel Jacobowitz <drow@mvista.com>
9178
9179 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9180 Update ``this'' pointer when calling virtual functions.
9181
799f9e91
MS
91822002-02-01 Michael Snyder <msnyder@redhat.com>
9183
c7bd442c 9184 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9185 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9186
3cf384d4
DJ
91872002-02-01 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * regformats/reg-arm.dat: New file.
9190 * regformats/reg-i386.dat: New file.
9191 * regformats/reg-ia64.dat: New file.
9192 * regformats/reg-m68k.dat: New file.
9193 * regformats/reg-mips.dat: New file.
9194 * regformats/reg-ppc.dat: New file.
9195 * regformats/reg-sh.dat: New file.
9196 * regformats/regdef.h: New file.
9197 * regformats/regdat.sh: New file.
9198
0defa245
RE
91992002-02-01 Richard Earnshaw <reanrsha@arm.com>
9200
9201 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9202 (arm_frame_args_address, arm_frame_locals_address): New functions.
9203 (arm_frame_num_args): New function.
9204 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9205 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9206 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9207
405f26e6
MS
92082002-01-31 Michael Snyder <msnyder@redhat.com>
9209
502fd408
MS
9210 * breakpoint.c (break_at_finish_command): Export.
9211 (break_at_finish_at_depth_command): Export.
9212 (tbreak_at_finish_command): Export.
9213 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9214 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9215 "tbreak" commands, which are HPPA specific.
9216
7d35e135
MS
9217 * printcmd.c (disassemble_command): Remove an ancient
9218 artifact of an old merge.
9219
aaa38bb5 9220 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9221 Define enum constant values for overlay mode.
9222 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9223 (overlay_is_mapped, overlay_auto_command,
9224 overlay_manual_command): Ditto.
d874f1e2 9225
aaa38bb5
AJ
9226 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9227 breakpoint_here_p, breakpoint_inserted_here_p,
9228 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9229 describe_other_breakpoints, check_duplicates, clear_command):
9230 Coding standard fixes.
9231
8add0441 9232 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9233 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9234 code: check bfd SEC_READONLY flag for section.
9235
e351066e
AC
92362002-01-31 Andrew Cagney <ac131313@redhat.com>
9237
7d35e135 9238 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9239
8a48e967
DJ
92402002-01-30 Daniel Jacobowitz <drow@mvista.com>
9241
9242 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9243 data symbols, since we search based on textlow and texthigh.
9244 (find_pc_sect_symtab): Likewise.
9245
f5a96129
AC
92462002-01-30 Andrew Cagney <ac131313@redhat.com>
9247
9248 * defs.h (vwarning): Declare.
f5a96129
AC
9249 * utils.c (vwarning): New function.
9250 (warning): Call vwarning.
9251 (warning_begin): Delete function.
9252
9253 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9254 the warning message.
9255 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9256 warning_begin.
9257
cefd4ef5
MS
92582002-01-30 Michael Snyder <msnyder@redhat.com>
9259
1a703748
MS
9260 * NEWS: Mention "set trust-readonly-sections" command.
9261 Mention generate-core-file command.
cefd4ef5 9262
3a11626d
MS
92632002-01-15 Michael Snyder <msnyder@redhat.com>
9264
9265 * target.c: New command, "set trust-readonly-sections on".
9266 (do_xfer_memory): Honor the suggestion to trust readonly sections
9267 by reading them from the object file instead of from the target.
9268 (initialize_targets): Register command "set trust-readonly-sections".
9269
d1c7e53b
AC
92702002-01-29 Andrew Cagney <ac131313@redhat.com>
9271
9272 * parse.c (target_map_name_to_register): Simplify, search regs and
9273 pseudo-regs using a single loop.
9274
e2c9a72c
AC
92752002-01-30 Andrew Cagney <ac131313@redhat.com>
9276
9277 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9278
69824b4e
MK
92792002-01-15 Rodney Brown <rbrown64@csc.com.au>
9280
9281 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9282 * config/i386/i386v42mp.mh: Add i387-nat.o .
9283 * i386v4-nat.c: Include i387-nat.h.
9284 (supply_fpregset): Use i387_supply_fsave.
9285 (fill_fpregset): Use i387_fill_fsave.
9286
6eb69eab
RE
92872002-01-30 Richard Earnshaw <rearnsha@arm.com>
9288
9289 * arm-tdep.c (arm_call_dummy_words): Define.
9290 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9291 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9292 (CALL_DUMMY_WORDS): Define.
9293 (arm_call_dummy_words): Declare.
9294 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9295 (arm_linux_call_dummy_words): Declare.
9296
9852326a
AS
92972002-01-30 Andreas Schwab <schwab@suse.de>
9298
9299 * m68klinux-nat.c: Fix last change to use regcache_collect
9300 instead of referencing registers[] directly.
9301
977a3030
AC
93022002-01-29 Andrew Cagney <ac131313@redhat.com>
9303
9304 * parse.c (target_map_name_to_register): Delete code wrapped in
9305 #ifdef REGISTER_NAME_ALIAS_HOOK.
9306
2076c72b
MS
93072002-01-28 Michael Snyder <msnyder@redhat.com>
9308
9309 * regcache.c (legacy_read_register_gen): Need to be able to
9310 read pseudo-register as well as real register.
9311 (legacy_write_register_gen): Ditto.
9312
8fcc723b
AC
93132002-01-28 Andrew Cagney <ac131313@redhat.com>
9314
9315 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9316 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9317 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9318 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9319 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9320 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9321 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9322 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9323 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9324 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9325 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9326 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9327 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9328 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9329 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9330 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9331 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9332 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9333 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9334 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9335
afe64c1a
AC
93362002-01-28 Andrew Cagney <ac131313@redhat.com>
9337
9338 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9339 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9340 (initialize_current_architecture): Update target_byte_order using
9341 information from BFD.
aaa38bb5 9342 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9343 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9344
75bc7ddf
AC
93452002-01-28 Andrew Cagney <ac131313@redhat.com>
9346
9347 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9348 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9349
9350 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9351 #ifdef INVALID_FLOAT.
9352 * infcmd.c (do_registers_info): Ditto.
9353 * values.c (unpack_double): Ditto. Add comment.
9354
9355 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9356 already commented out.
9357
0280a90a
AS
93582002-01-26 Andreas Schwab <schwab@suse.de>
9359
9360 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9361 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9362 registers and add support for PTRACE_GETREGS.
9363
7072a954
AC
93642002-01-24 Andrew Cagney <ac131313@redhat.com>
9365
9366 GDB 5.1.1 released from 5.1 branch.
9367 * NEWS: Add 5.1.1 news.
9368 * README: Sync with 5.1 branch.
9369
86f902e0
FF
93702002-01-23 Fred Fish <fnf@redhat.com>
9371
9372 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9373 stabstring on initial malloc. Reallocing will copy it for us,
9374 if necessary.
9375
8af51c36
EZ
93762002-01-23 Elena Zannoni <ezannoni@redhat.com>
9377
aaa38bb5 9378 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9379 (HFILES_NO_SRCDIR): Remove hpread.h.
9380 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9381 (hpread.o): Update dependencies.
9382 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9383
9384 * hp-psymtab-read.c: Remove file.
9385 * hp-symtab-read.c: Remove file.
9386 * hpread.h: Remove file.
9387
9388 * hpread.c: Merge all contents of hp-psymtab-read.c,
9389 hp-symtab-read.c and hpread.h into this file, as it was prior to
9390 January 1999.
9391
9392 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9393 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9394 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9395 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9396
dc5cfeb6
EZ
93972002-01-23 Elena Zannoni <ezannoni@redhat.com>
9398
9399 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9400 fill_gregset): Call gdbarch_tdep() just once, assign result to
9401 variable and use that, instead of calling the function several
9402 times.
9403
ea87b71b
AO
94042002-01-24 Alexandre Oliva <aoliva@redhat.com>
9405
9406 * configure.host: Accept sparcv9 as alias for sparc64.
9407 * configure.tgt: Likewise.
9408
13fc0c2f
KB
94092002-01-22 Kevin Buettner <kevinb@redhat.com>
9410
9411 * solib-aix5.c (build_so_list_from_mapfile)
9412 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9413 arguments is not reversed.
9414 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9415 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9416
7bd872fe
EZ
94172002-01-22 Elena Zannoni <ezannoni@redhat.com>
9418
9419 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9420 modified version of obsolete sh_fetch_pseudo_register.
9421 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9422 (sh4_register_read): New function.
9423 (sh_pseudo_register_write): New function. Renamed and modified
9424 version of obsolete sh_store_pseudo_register.
9425 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9426 (sh4_register_write): New function.
9427 (sh_gdbarch_init): Remove setting of gdbarch function
9428 fetch_pseudo_register and store_pseudo_register. Remove setting of
9429 register_convert_to_raw, register_convert_to_virtual,
9430 register_convertible.
9431 (sh_sh4_register_convertible): Delete. No longer needed. All is
9432 taken care by architecture specific functions
9433 register_read/register_write.
9434 (sh_sh4_register_convert_to_virtual): Make static.
9435 (sh_sh4_register_convert_to_raw): Ditto.
9436
069e84fd
AC
94372002-01-22 Andrew Cagney <ac131313@redhat.com>
9438
9439 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9440 (floatformat_is_nan, floatformat_mantissa): Ditto.
9441
9442 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9443 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9444 builtin_type_ieee_double_little,
9445 builtin_type_ieee_double_littlebyte_bigword,
9446 builtin_type_m68881_ext, builtin_type_i960_ext,
9447 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9448 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9449 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9450 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9451
211a4f69
CV
94522002-01-22 Corinna Vinschen <vinschen@redhat.com>
9453
9454 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9455 parameter. Set frameless flag if it exists and depended of
9456 whether the scanned function is frameless or not.
9457 (xstormy16_skip_prologue): If function is frameless, return
9458 result of xstormy16_scan_prologue().
9459 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9460 call.
9461
f81353e4
EZ
94622002-01-21 Elena Zannoni <ezannoni@redhat.com>
9463
9464 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9465 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9466 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9467 sh_sh4_register_byte, sh_sh4_register_raw_size,
9468 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9469 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9470 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9471 sh_store_pseudo_register, sh_do_pseudo_register): Call
9472 gdbarch_tdep() just once, assign result to variable and use that,
9473 instead of calling the function several times.
9474
63c73a17
MK
94752002-01-20 Mark Kettenis <kettenis@gnu.org>
9476
9477 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9478 macros instead of LAST_FPU_CTRL_REGNUM.
9479 (store_register): Likewise.
9480
39ad761d
JB
94812002-01-21 Jim Blandy <jimb@redhat.com>
9482
9483 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9484 is up-to-date before running the program, not just when a program
9485 exits.
9486
3d74b771
FF
94872002-01-21 Fred Fish <fnf@redhat.com>
9488
9489 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9490 when we have found all instructions we are looking for.
9491
966fbf70
RE
94922002-01-21 Richard Earnshaw <rearnsha@arm.com>
9493
9494 * arm-tdep.c (arm_register_name): New function.
9495 (arm_registers_names): Make static.
9496 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9497 (arm_register_name): Declare.
9498 (REGISTER_NAME): Use it.
9499
c3b4394c
RE
95002002-01-21 Richard Earnshaw <rearnsha@arm.com>
9501 Kevin Buettner <kevinb@redhat.com>
9502
9503 Convert arm targets to new FRAME interface.
9504 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9505 (arm_frame_find_save_regs): Delete.
9506 (arm_frame_init_saved_regs): New.
9507 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9508 Allocate extra_info as required. Convert all uses of fsr.regs
9509 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9510 to use extra_info.
9511 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9512 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9513 (check_prologue_cache, save_prologue_cache): Likewise.
9514 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9515 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9516 (FRAME_FIND_SAVED_REGS): Delete.
9517 (arm_frame_find_saved_regs): Delete prototype.
9518 (arm_frame_init_saved_regs): New prototype.
9519 (FRAME_INIT_SAVED_REGS): Define.
9520
61d99182
AC
95212002-01-20 Andrew Cagney <ac131313@redhat.com>
9522
9523 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9524
6aaea291
AC
95252002-01-20 Andrew Cagney <ac131313@redhat.com>
9526
9527 From Jeff Law <law@redhat.com>:
9528 * infttrace.c: Include <sys/pstat.h>.
9529 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9530 exec file if the ttrace equivalent fails.
9531
15f698d2
AC
95322002-01-20 Andrew Cagney <ac131313@redhat.com>
9533
9534 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9535 (closeLogFile): Ditto.
9536
f86ddd7c
MC
95372002-01-20 Michael Chastain <mec@shout.net>
9538
9539 * top.c (print_gdb_version): Bump copyright year to 2002.
9540
904507ce
AC
95412002-01-20 Andrew Cagney <ac131313@redhat.com>
9542
9543 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9544 Zannoni and Eli Zaretskii.
9545
d7f0b9ce
DJ
95462002-01-20 Daniel Jacobowitz <drow@mvista.com>
9547
9548 * buildsym.c: Update copyright years.
9549 * c-typeprint.c: Likewise.
9550 * dwarf2read.c: Likewise.
9551 * f-typeprint.c: Likewise.
9552 * gdbtypes.c: Likewise.
9553 * gdbtypes.h: Likewise.
9554 * hp-symtab-read.c: Likewise.
9555 * hpread.c: Likewise.
9556 * mdebugread.c: Likewise.
9557 * p-typeprint.c: Likewise.
9558
3fd3d7d2
AC
95592002-01-20 Andrew Cagney <ac131313@redhat.com>
9560
9561 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9562 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9563 byte-order selectable.
9564 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9565 * arch-utils.c: Ditto.
9566 (set_endian): Ditto.
9567 (set_endian_from_file): Ditto.
9568 * gdbserver/low-sim.c (create_inferior): Ditto.
9569 * gdbarch.sh: Ditto.
9570 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9571 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9572 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9573 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9574 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9575 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9576 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9577 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9578 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9579 macro definition.
9580 * config/mips/tm-wince.h: Remove #undef of macro
9581 TARGET_BYTE_ORDER_SELECTABLE.
9582 * config/sh/tm-wince.h: Ditto.
9583
b02dede2
DJ
95842002-01-20 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9587 member function fields. Add accessor macro
9588 TYPE_FN_FIELD_ARTIFICIAL.
9589 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9590 * c-typeprint.c (c_type_print_base): Skip artificial member
9591 functions.
9592
c3643761
DJ
95932002-01-20 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * f-typeprint.c: Delete unused function f_type_print_args.
9596 * p-typeprint.c: Delete unused function pascal_type_print_args.
9597
8176bb6d
DJ
95982002-01-20 Daniel Jacobowitz <drow@mvista.com>
9599
9600 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9601 comment. Add ``artificial'' to ``union field_location''.
9602
9603 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9604
9605 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9606 * mdebugread.c (parse_symbol): Likewise.
9607 * stabsread.c (define_symbol): Likewise.
9608 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9609 initializing TYPE_FIELD_BITPOS to n (obsolete).
9610 (hpread_doc_function_type): Likewise.
9611 * hpread.c (hpread_function_type): Likewise.
9612
7fd60527
AC
96132002-01-20 Andrew Cagney <ac131313@redhat.com>
9614
9615 * configure.in (host_makefile_frag): Only require a host makefile
9616 fragment when a native build.
9617 * configure: Re-generate.
9618
c2f05ac9
AC
96192002-01-20 Andrew Cagney <ac131313@redhat.com>
9620
9621 * doublest.h (floatformat_from_type): Declare.
9622 * doublest.c (floatformat_from_type): New function.
9623 (convert_typed_floating): Use.
9624
9625 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9626 call to function floatformat_from_type.
9627
9628 * gdbarch.sh (IEEE_FLOAT): Delete.
9629 * gdbarch.h, gdbarch.c: Re-generate.
9630 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9631 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9632 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9633 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9634 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9635 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9636 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9637 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9638 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9639 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9640 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9641 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9642
9643 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9644 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9645 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9646 * sh-tdep.c (sh_gdbarch_init): Ditto.
9647 * mips-tdep.c (mips_gdbarch_init): Ditto.
9648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9649 * cris-tdep.c (cris_gdbarch_init): Ditto.
9650
abf22e64
AJ
96512002-01-20 Jiri Smid <smid@suse.cz>
9652
9653 * configure.host, configure.tgt: Support x86-64.
9654 * NEWS: Note new target x86-64.
9655
b7c4cbf8
AJ
9656 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9657 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9658 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9659 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9660 x86-64-linux-nat.o): Fix dependencies.
9661
82600034
AC
96622002-01-19 Andrew Cagney <ac131313@redhat.com>
9663
9664 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9665 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9666 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9667 * config/sparc/xm-sun4os4.h: Delete file.
9668 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9669
bbe5c628
AC
96702002-01-19 Andrew Cagney <ac131313@redhat.com>
9671
9672 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9673 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9674 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9675 * config/i386/i386lynx.mh (XM_FILE): Delete.
9676 * config/rs6000/xm-rs6000ly.h: Delete file.
9677 * config/sparc/xm-sparclynx.h: Delete file.
9678 * config/m68k/xm-m68klynx.h: Delete file.
9679 * config/i386/xm-i386lynx.h: Delete file.
9680 * config/xm-lynx.h: Delete file.
9681 * config/djgpp/fnchange.lst: Update.
9682
f8453e34
JT
96832002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9684
9685 * alpha-tdep.c (alpha_register_byte): New function.
9686 (alpha_register_raw_size): Ditto.
9687 (alpha_register_virtual_size): Ditto.
9688 (alpha_skip_prologue_internal): Renamed from
9689 alpha_skip_prologue.
9690 (alpha_skip_prologue): New version that calls
9691 alpha_skip_prologue_internal.
9692 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9693 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9694 second argument from alpha_skip_prologue.
9695 (REGISTER_BYTE): Use alpha_register_byte.
9696 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9697 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9698 (FRAMELESS_FUNCTION_INVOCATION): Use
9699 generic_frameless_function_invocation_not.
9700 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9701 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9702
52d9e613
AC
97032002-01-19 Andrew Cagney <ac131313@redhat.com>
9704
9705 * config/mips/xm-news-mips.h: Delete file.
9706 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9707
9708 * config/m88k/xm-m88k.h: Delete file.
9709 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9710 * config/m88k/xm-delta88v4.h: Ditto.
9711 * config/m88k/xm-delta88.h: Ditto.
9712
9713 * config/alpha/xm-fbsd.h: Delete file.
9714 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9715
9716 * config/sparc/xm-sparc.h: Delete file.
9717 * Makefile.in (xm-sun4os4.h): Delete dependency.
9718 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9719 * config/sparc/xm-sun4os4.h: Ditto.
9720 * config/sparc/xm-linux.h: Ditto.
9721
9722 * config/i386/xm-windows.h: Delete file.
9723
2d1b2124
AC
97242002-01-19 Andrew Cagney <ac131313@redhat.com>
9725
9726 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9727 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9728
ee1f65f0
JT
97292002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9730
9731 * alpha-tdep.c (alpha_call_dummy_words): New.
9732 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9733 (CALL_DUMMY_P): Define.
9734 (CALL_DUMMY_WORDS): Define.
9735 (SIZEOF_CALL_DUMMY_WORDS): Define.
9736
98081e55
PB
97372002-01-19 Per Bothner <per@bothner.com>
9738
9739 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9740 isn't NULL, which can happen with some gcj-3.x-produced code.
9741
0d056799
JT
97422002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9743
9744 * alpha-tdep.c (alpha_register_virtual_type): New function.
9745 (alpha_init_frame_pc_first): Ditto.
9746 (alpha_fix_call_dummy): Ditto.
9747 (alpha_store_struct_return): Ditto.
9748 (alpha_extract_struct_value_address): Ditto.
9749 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9750 alpha_register_virtual_type.
9751 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9752 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9753 alpha_extract_struct_value_address.
9754 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9755 (INIT_FRAME_PC): Use init_frame_pc_noop.
9756 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9757
4604bcad
MK
97582002-01-19 Mark Kettenis <kettenis@gnu.org>
9759
9760 * i386gnu-nat.c: Include "i386-tdep.h".
9761 (fetch_fpregs): Simplify code dealing with uninitialized floating
9762 point states such that it doesn't require FP7_REGNUM.
9763
140f9984
JT
97642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9765
abf22e64
AJ
9766 * alpha-tdep.c (frame_extra_info): New.
9767 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9768 frame->extra_info.
9769 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9770 (alpha_frame_saved_pc): Use frame->extra_info.
9771 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9772 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9773 (init_extra_frame_info): Rename to...
9774 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9775 (alpha_print_extra_frame_info): New function.
140f9984
JT
9776 (alpha_frame_locals_address): Ditto.
9777 (alpha_frame_args_address): Ditto.
abf22e64 9778 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9779 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9780 alpha_frame_args_address.
abf22e64 9781 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9782 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9783 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9784 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9785 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9786 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9787
d734c450
JT
97882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9789
9790 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9791 (alpha_cannot_fetch_register): Ditto.
9792 (alpha_cannot_store_register): Ditto.
9793 (alpha_register_convertible): Ditto.
9794 (alpha_use_struct_convention): Ditto.
9795 * config/alpha/tm-alpha.h: Update copyright years.
9796 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9797 (INNER_THAN): Use core_addr_lessthan.
9798 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9799 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9800 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9801 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9802 (FRAME_CHAIN): Remove unnecessary cast.
9803
b4ceaee6
AC
98042002-01-18 Andrew Cagney <ac131313@redhat.com>
9805
9806 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9807 obsolete.
9808
0a65a603
AC
98092002-01-18 Andrew Cagney <ac131313@redhat.com>
9810
9811 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9812 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9813 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9814 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9815 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9816 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9817 * x86-64-linux-nat.c: Ditto.
9818
636a6dfc
JT
98192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9820
abf22e64 9821 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9822 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9823 (REGISTER_NAME): Define.
9824
acceddb6
JT
98252002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9826
9827 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9828
ec32e4be
JT
98292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9830
9831 * alpha-tdep.c: Update copyright years.
9832 (alpha_next_pc): New function.
9833 (alpha_software_single_step): Ditto.
9834 * config/alpha/tm-alpha.h: Add prototype for
9835 alpha_software_single_step.
9836
e771a871
JT
98372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * alphabsd-nat.c: Update copyright years.
9840 (fill_gregset): Use regcache_collect.
9841 (fill_fpregset): Likewise.
9842 (fetch_inferior_registers): Only fetch integer registers
9843 if requested to do so.
9844 (store_inferior_registers): Only store integer registers
9845 if requested to do so.
9846
7708fa01
AC
98472002-01-17 Andrew Cagney <ac131313@redhat.com>
9848
9849 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9850 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9851 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9852 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9853 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9854 * config/arm/linux.mh (XDEPFILES): Delete.
9855 * config/arm/nbsd.mh (XDEPFILES): Delete.
9856 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9857 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9858 * config/i386/i386m3.mh (XDEPFILES): Delete.
9859 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9860 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9861 * config/i386/fbsd.mh (XDEPFILES): Delete.
9862 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9863 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9864 * config/i386/i386v4.mh (XDEPFILES): Delete.
9865 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9866 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9867 * config/i386/i386aix.mh (XDEPFILES): Delete.
9868 * config/i386/go32.mh (XDEPFILES): Delete.
9869 * config/i386/cygwin.mh (XDEPFILES): Delete.
9870 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9871 * config/i386/i386mach.mh (XDEPFILES): Delete.
9872 * config/i386/i386v32.mh (XDEPFILES): Delete.
9873 * config/i386/linux.mh (XDEPFILES): Delete.
9874 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9875 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9876 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9877 * config/i386/i386sco.mh (XDEPFILES): Delete.
9878 * config/i386/i386v.mh (XDEPFILES): Delete.
9879 * config/i386/nbsd.mh (XDEPFILES): Delete.
9880 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9881 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9882 * config/i386/symmetry.mh (XDEPFILES): Delete.
9883 * config/i386/obsd.mh (XDEPFILES): Delete.
9884 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9885 * config/ia64/linux.mh (XDEPFILES): Delete.
9886 * config/ia64/aix.mh (XDEPFILES): Delete.
9887 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9888 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9889 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9890 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9891 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9892 * config/m68k/linux.mh (XDEPFILES): Delete.
9893 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9894 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9895 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9896 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9897 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9898 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9899 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9900 * config/m88k/delta88.mh (XDEPFILES): Delete.
9901 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9902 * config/m88k/m88k.mh (XDEPFILES): Delete.
9903 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9904 * config/mips/linux.mh (XDEPFILES): Delete.
9905 * config/mips/irix6.mh (XDEPFILES): Delete.
9906 * config/mips/irix5.mh (XDEPFILES): Delete.
9907 * config/mips/irix4.mh (XDEPFILES): Delete.
9908 * config/mips/irix3.mh (XDEPFILES): Delete.
9909 * config/mips/decstation.mh (XDEPFILES): Delete.
9910 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9911 (NATDEPFILES): Move core-aout.o to here.
9912 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9913 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9914 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9915 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9916 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9917 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9918 * config/pa/hpux11.mh (XDEPFILES): Delete.
9919 * config/powerpc/aix.mh (XDEPFILES): Delete.
9920 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9921 * config/powerpc/linux.mh (XDEPFILES): Delete.
9922 * config/romp/rtbsd.mh: Rename XDEPFILES.
9923 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9924 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9925 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9926 * config/s390/s390.mh (XDEPFILES): Delete.
9927 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9928 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9929 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9930 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9931 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9932 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9933 * config/sparc/linux.mh (XDEPFILES): Delete.
9934 * config/vax/vaxult.mh (XDEPFILES): Delete.
9935 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9936 * Makefile.in (DEPFILES): Remove XDEPFILES.
9937
375fc983
AC
99382002-01-17 Andrew Cagney <ac131313@redhat.com>
9939
9940 * utils.c (internal_verror): Fix comments, default is yes not no.
9941 Update queries to match. Default to quit and dump core.
9942
8926118c
AC
99432002-01-17 Andrew Cagney <ac131313@redhat.com>
9944
9945 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9946 copyright.
9947 * defs.h, event-top.c, gdbcmd.h: Ditto.
9948 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9949 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9950 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9951 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9952 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9953 * mi/mi-main.c:Ditto.
9954
9955 * stack.c, symfile.c: Update copyright.
9956
45b7b345
DJ
99572002-01-17 Daniel Jacobowitz <drow@mvista.com>
9958
db728ff7
DJ
9959 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9960 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9961 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9962 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9963
db728ff7
DJ
99642002-01-17 Daniel Jacobowitz <drow@mvista.com>
9965
9966 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9967 * gdbserver/low-lynx.c (myattach): Likewise.
9968 * gdbserver/low-nbsd.c (myattach): Likewise.
9969 * gdbserver/low-sim.c (myattach): Likewise.
9970 * gdbserver/low-sparc.c (myattach): Likewise.
9971 * gdbserver/low-sun3.c (myattach): Likewise.
9972
9973 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9974
db728ff7 9975 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9976 (main): Handle "--attach".
9977
8de3c354
AC
99782002-01-16 Andrew Cagney <ac131313@redhat.com>
9979
9980 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9981 maintainer.
9982
b0129042
DJ
99832002-01-15 Daniel Jacobowitz <drow@mvista.com>
9984
9985 * c-typeprint.c (is_type_conversion_operator): Add additional
9986 check for non-conversion operators.
9987
ba8679fb 99882002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9989
9990 * linux-proc.c: Add "info proc" command, a la procfs.c.
9991 (read_mapping): New function, abstract and re-use code.
9992 (linux_find_memory_regions): Use new func read_mapping.
9993 (linux_info_proc_cmd): New function, implement "info proc".
9994 (_initialize_linux_proc): Add new command "info proc".
9995
e4f9b4d5
MS
99962002-01-15 Michael Snyder <msnyder@redhat.com>
9997
9998 * symfile.c (generic_load): Use bfd_map_over_sections method
9999 instead of manipulating bfd structure members directly.
10000 (add_section_size_callback): New function, bfd sections callback
10001 used by generic_load.
10002 (load_sections_callback): New function, bfd sections callback
10003 used by generic_load.
10004
08cf96df
EZ
100052002-01-15 Elena Zannoni <ezannoni@redhat.com>
10006
abf22e64 10007 [Based on work by Jim Blandy]
08cf96df
EZ
10008 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10009 (builtin_type_vec128): Export.
10010 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10011 types.
10012 (builtin_type_vec128): New builtin type for 128 bit vector
10013 registers.
10014 (build_gdbtypes): Initialize builtin_type_v16qi and
10015 builtin_type_v8hi. Create the vec128 register builtin type
10016 structure.
10017 (build_builtin_type_vec128): New function.
abf22e64 10018 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10019 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10020 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10021 AltiVec register to new builtin type.
10022
d7242108
DJ
100232001-01-15 Daniel Jacobowitz <drow@mvista.com>
10024
10025 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10026 to make_cv_type.
10027
4ee3352d
AC
100282002-01-14 Andrew Cagney <ac131313@redhat.com>
10029
10030 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10031 CLEAN_UP_REGISTER_VALUE.
10032 * regcache.c (supply_register): Update only call.
10033
f015b2e7
AC
100342002-01-14 Andrew Cagney <ac131313@redhat.com>
10035
10036 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10037 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10038 a29k-*-vxworks* targets as obsolete.
10039
356ae49d
MS
100402002-01-14 Michael Snyder <msnyder@redhat.com>
10041
10042 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10043 until we can resolve portability issues.
10044 * gregset.h: Remove references to fpxregs.
10045 * gcore.c (gcore_command): Initialize note_sec to NULL.
10046
ade8f45e
AC
100472002-01-13 Andrew Cagney <ac131313@redhat.com>
10048
10049 * signals.c (target_signal_to_name): Rewrite. Only use
10050 signals[].name when in bounds and non-NULL.
abf22e64 10051
89c49e7a
AC
100522002-01-13 Andrew Cagney <ac131313@redhat.com>
10053
10054 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10055 * signals.c (target_signal_to_name): Verify that SIG is within the
10056 bounds of the signals array.
10057
4daa9f9f
AC
100582002-01-13 Andrew Cagney <ac131313@redhat.com>
10059
10060 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10061
ba4bbdcb
KS
100622002-01-13 Keith Seitz <keiths@redhat.com>
10063
10064 * stack.c (print_frame_info_base): Print the frame's pc
10065 only if when print_frame_info_listing_hook is not defined.
10066
575bbeb6
KS
100672002-01-13 Keith Seitz <keiths@redhat.com>
10068
10069 * varobj.c (varobj_set_value): Make sure that there were no
10070 errors evaluating the object before attempting to set its
10071 value.
10072 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10073 so this offset adjustment is no longer necessary.
10074 (create_child): Don't set the error flag if the child is
10075 a CPLUS_FAKE_CHILD.
10076 (value_of_child): If value_fetch_lazy fails, return NULL
10077 so that callers will be notified that an error occurred.
10078 (c_value_of_variable): Delay check of variable's validity
10079 until later. We actually want all structs and unions to have
10080 the value "{...}".
10081 Do not return "???" for variables which could not be evaluated.
10082 This error condition must be returned to the caller so that it
10083 can get the error condition from gdb.
10084 (cplus_name_of_child): Adjust index for vptr before figuring
10085 out the name of the child.
10086 (cplus_value_of_child): If a child's (real) parent is not valid,
10087 don't even bother trying to give a value for it. Just return
10088 an error. Change all instances in this function.
10089 (cplus_type_of_child): If our parent is one of the "fake"
10090 parents, we need to get at the type of the real parent, and
10091 derive the child's true type using this information.
10092
b76898ab
AC
100932002-01-13 Andrew Cagney <ac131313@redhat.com>
10094
10095 From 2002-01-09 John Marshall <johnm@falch.net>:
10096 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10097 sources.redhat.com, and tweak some related URLs which had
10098 suffered from linkrot.
10099
b6649e88
AC
101002002-01-13 Andrew Cagney <ac131313@redhat.com>
10101
10102 From Jeff law:
10103 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10104 structures passed in registers.
10105
82cc5033
EZ
101062002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10107
10108 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10109 white space which prevented compilation. Reported by DSK
10110 <dsk@student.unsw.edu.au>.
10111
ba5f2f8a
MS
101122002-01-11 Michael Snyder <msnyder@redhat.com>
10113
fbd35540
MS
10114 * symfile.c (build_section_addr_info_from_section_tab):
10115 Use bfd access method instead of manipulating bfd directly.
10116 (syms_from_objfile): Ditto.
10117 (simple_overlay_update_1): Ditto.
10118 (simple_overlay_update): Ditto.
10119 (generic_load): Ditto.
10120 (overlay_unmapped_address): FIXME comment, bfd access methods.
10121 (sections_overlap): FIXME comment, bfd access methods.
10122 (pc_in_mapped_range): FIXME comment, bfd access methods.
10123 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10124 (section_is_mapped): FIXME comment, bfd access methods.
10125 (section_is_overlay): FIXME comment, bfd access methods.
10126
ba5f2f8a
MS
10127 * symfile.c (generic_load): Whitespace and long line cleanups.
10128 Remove duplicate variable, change several local variables to
10129 more appropriate data types.
10130 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10131
17df2af6
AC
101322002-01-12 Andrew Cagney <ac131313@redhat.com>
10133
10134 From Peter Schauer:
10135 * language.c (longest_local_hex_string_custom): Use phex_nz to
10136 convert NUM to a hex string.
10137
ec920329
EZ
101382002-01-12 Elena Zannoni <ezannoni@redhat.com>
10139
10140 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10141 the function.
538a76d6 10142 Update Copyright year.
ec920329 10143
3abd2e01
AC
101442002-01-12 Andrew Cagney <ac131313@redhat.com>
10145
10146 * language.c (longest_raw_hex_string): Delete unused function.
10147
b21b22e0
PS
101482002-01-11 Petr Sorfa <petrs@caldera.com>
10149
10150 * MAINTAINERS (write-after-approval): Add myself.
10151 * dwarf2read.c (read_tag_string_type): Handling of
10152 DW_AT_byte_size.
10153 (read_tag_string_type): FORTRAN fix to prevent propagation of
10154 first string size.
10155 (set_cu_language): Handling of DW_LANG_Fortran95
10156
747fe712
RE
101572002-01-11 Richard Earnshaw <rearnsha@arm.com>
10158
10159 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10160 GETPID(inferior_ptid).
10161 (store_inferior_registers): Likewise.
10162
f1bea926
JM
101632002-01-10 Jason Merrill <jason@redhat.com>
10164
10165 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10166 Fix DW_OP_minus.
10167
ae940673
AC
101682002-01-10 Andrew Cagney <ac131313@redhat.com>
10169
10170 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10171 and bfd/elf32-sh-nbsd.c.
10172
00546b04
MS
101732002-01-10 Michael Snyder <msnyder@redhat.com>
10174
352ed7b4
MS
10175 * NEWS: Mention --pid and corefile/proc-id behavior change.
10176
c18be923
MS
10177 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10178 * gcore.c: Include cli/cli-decode.h instead of command.h.
10179
00546b04
MS
10180 * main.c (captured_main): Add new command line option "--pid".
10181 If the second command line argument (following the symbol-file)
10182 begins with a digit, try to attach to it before trying to open
10183 it as a corefile.
10184 (print_gdb_help): Document the "--pid" argument.
10185
db60ec62
EZ
101862002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10187
10188 * completer.c (command_completer): New function.
10189
10190 * completer.h <command_completer>: Add prototype.
10191
10192 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10193 completer for the "help" command.
10194
39c22d1a
JM
101952002-01-09 Jason Merrill <jason@redhat.com>
10196
10197 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10198
c564377f
MS
101992002-01-09 Michael Snyder <msnyder@redhat.com>
10200
975aec09
MS
10201 * i386-linux-nat.c (fill_fpxregset): Make global.
10202 (store_fpxregset): Ditto.
10203
db4a10fa
MS
10204 * gregset.h (gdb_fpxregset_t): Define.
10205 (supply_fpxregset): Prototype.
10206 (fill_fpxregset): Prototype.
10207
c564377f
MS
10208 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10209
c3d45d70
RE
102102002-01-09 Richard Earnshaw <rearnsha@arm.com>
10211
10212 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10213 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10214 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10215
fcc87af1
AC
102162002-01-09 Andrew Cagney <ac131313@redhat.com>
10217
10218 * MAINTAINERS: Update target maintainer rules so that any
10219 Maintainer can approve a tested patch for a maintenance-only
10220 target.
10221
dd96c05b
RE
102222002-01-09 Richard Earnshaw <rearnsha@arm.com>
10223
d4297db9 10224 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10225
d4297db9 10226 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10227 IN_SIGTRAMP.
10228
145fdc6e
MS
102292002-01-08 Michael Snyder <msnyder@redhat.com>
10230
10231 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10232 real name of the executable, rather than the /proc name.
10233
be4d1333
MS
102342002-01-03 Michael Snyder <msnyder@redhat.com>
10235
10236 Implement a "generate-core-file" command in gdb, save target state.
10237 * gcore.c: New file. Implement new command 'generate-core-file'.
10238 Save a corefile image of the current state of the inferior.
10239 * linux-proc.c: Add linux-specific code for saving corefiles.
10240 * target.h (struct target_ops): Add new target vectors for saving
10241 corefiles; to_find_memory_regions and to_make_corefile_notes.
10242 (target_find_memory_regions): New macro.
10243 (target_make_corefile_notes): New macro.
10244 * target.c (update_current_target): Inherit new target methods.
10245 (dummy_find_memory_regions): New place-holder method.
10246 (dummy_make_corefile_notes): New place-holder method.
10247 (init_dummy_target): Initialize new dummy target vectors.
10248 * exec.c (exec_set_find_memory_regions): New function.
10249 Allow the exec_ops vector for memory regions to be taken over.
10250 (exec_make_note_section): New function, target vector method.
10251 * defs.h (exec_set_find_memory_regions): Export prototype.
10252 * procfs.c (proc_find_memory_regions): New function, corefile method.
10253 (procfs_make_note_section): New function, corefile method.
10254 (init_procfs_ops): Set new target vector pointers.
10255 (find_memory_regions_callback): New function.
10256 (procfs_do_thread_registers): New function.
10257 (procfs_corefile_thread_callback): New function.
10258 * sol-thread.c (sol_find_memory_regions): New function.
10259 (sol_make_note_section): New function.
10260 (init_sol_thread_ops): Initialize new target vectors.
10261 * inftarg.c (inftarg_set_find_memory_regions): New function.
10262 Allow to_find_memory_regions vector to be taken over.
10263 (inftarg_set_make_corefile_notes): New function.
10264 Allow to_make_corefile_notes vector to be taken over.
10265 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10266 interface layer if not target_has_execution (may be a corefile).
10267 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10268 * config/sparc/sun4sol2.mh: Ditto.
10269 * config/alpha/alpha-linux.mh: Ditto.
10270 * config/arm/linux.mh: Ditto.
10271 * config/i386/x86-64linux.mh: Ditto.
10272 * config/ia64/linux.mh: Ditto.
10273 * config/m68k/linux.mh: Ditto.
10274 * config/mips/linux.mh: Ditto.
10275 * config/powerpc/linux.mh: Ditto.
10276 * config/sparc/linux.mh: Ditto.
10277
c6b92abd
MS
102782002-01-07 Michael Snyder <msnyder@redhat.com>
10279
10280 * arm-linux-nat.c: Remove references to regcache.c internal data
10281 (registers[] and register_valid[]).
10282
4b09dc8c
MS
102832002-01-07 Michael Snyder <msnyder@redhat.com>
10284
abf22e64
AJ
10285 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10286 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10287 symbol file and shlibs.
10288 * Makefile.in: Add rule for linux-proc.o.
10289 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10290 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10291 * config/arm/linux.mh: Ditto.
10292 * config/i386/linux.mh: Ditto.
10293 * config/i386/x86-64linux.mh: Ditto.
10294 * config/ia64/linux.mh: Ditto.
10295 * config/m68k/linux.mh: Ditto.
10296 * config/mips/linux.mh: Ditto.
10297 * config/powerpc/linux.mh: Ditto.
10298 * config/sparc/linux.mh: Ditto.
10299
c25b74ac
PM
103002002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10301
10302 * win32-nat.c: Add i386-tdep.h dependency.
10303
94cd915f
MS
103042002-01-07 Michael Snyder <msnyder@redhat.com>
10305
c7cccb76
MS
10306 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10307 instead of bfd_get_arch_size. Don't bail out just because
10308 there's no exec_bfd.
abf22e64 10309
34c0bd93
MS
10310 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10311 * p-valprint.c (pascal_object_print_value): Ditto.
10312 * somread.c (som_symtab_read): Ditto.
10313 * symfile.c (simple_free_overlay_region_table): Ditto.
10314 * valops.c (value_assign): Ditto.
10315
21c1c920
MS
10316 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10317 use tilde_expand and strerror for opening save-tracepoints file.
10318
5bbd998e
MS
10319 * thread-db.c (thread_db_new_objfile): Indendation fix.
10320
94cd915f
MS
10321 * infptrace.c (GDB_MAX_ALLOCA): New define.
10322 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10323 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10324 can be overridden with whatever value is appropriate to the host).
10325 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10326 alloca to allocate potentially large buffer.
10327 * rs6000-nat.c (child_xfer_memory): Ditto.
10328 * symm-nat.c (child_xfer_memory): Ditto.
10329 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10330
494e8a93
JSC
103312002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10332
10333 From Nick Clifton <nickc@redhat.com>
10334 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10335
d0e1d48e
MS
103362002-01-07 Michael Snyder <msnyder@redhat.com>
10337
abf22e64 10338 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10339 Don't use exec_bfd if it's NULL.
10340
290b2c7a
MK
103412002-01-06 Mark Kettenis <kettenis@gnu.org>
10342
abf22e64 10343 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10344
aef21287
AC
103452002-01-06 Andrew Cagney <ac131313@redhat.com>
10346
10347 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10348 * gnu-nat.c: Ditto.
10349
30efa627
AC
103502002-01-06 Andrew Cagney <ac131313@redhat.com>
10351
10352 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10353 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10354 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10355 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10356 z8k-coff have not been multi-arched. Update z8k-coff build
10357 status.
10358
9b4ff276
AC
103592002-01-06 Andrew Cagney <ac131313@redhat.com>
10360
10361 * MAINTAINERS: Mark a29k target as obsolete.
10362 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10363 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10364 comments.
10365 * NEWS: Note that a29k targets are obsolete.
10366 * a29k-tdep.c: Mark as obsolete.
10367 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10368 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10369 a29k-*-vxworks* targets as obsolete.
10370 * remote-adapt.c: Obsolete.
10371 * remote-eb.c: Obsolete.
10372 * remote-mm.c: Obsolete.
10373 * remote-udi.c: Obsolete.
10374 * config/a29k/a29k-udi.mt: Obsolete.
10375 * config/a29k/a29k.mt: Obsolete.
10376 * config/a29k/tm-a29k.h: Obsolete.
10377 * config/a29k/tm-vx29k.h: Obsolete.
10378 * config/a29k/vx29k.mt: Obsolete.
10379
a9011d31
AC
103802002-01-05 Andrew Cagney <ac131313@redhat.com>
10381
10382 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10383 with BFD_ENDIAN_BIG.
10384
9299404e
AC
103852002-01-05 Andrew Cagney <ac131313@redhat.com>
10386
10387 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10388 * configure, config.in: Re-generate.
10389 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10390 * defs.h: Do not include <endian.h>.
10391
7e89e357
JT
103922002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10393
10394 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10395 * config.in: Regenerate.
10396 * configure.in: Update copyright years.
10397 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10398 * configure: Regenerate.
10399 * i386bsd-nat.c: Update copyright years.
10400 (fill_gregset): Use regcache_collect.
10401 (fetch_inferior_registers): Only fetch integer registers
10402 if requested to do so. Add support for XMM registers
10403 using PT_GETXMMREGS.
10404 (store_inferior_registers): Only store integer registers
10405 if requested to do so. Add support for XMM registers
10406 using PT_SETXMMREGS.
10407 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10408 (store_inferior_registers): Remove.
10409 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10410 (fetch_elfcore_registers): New function.
10411 (i386nbsd_elfcore_fns): New.
10412 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10413 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10414 i386bsd-nat.o.
10415 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10416 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10417 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10418 * config/i386/tm-nbsd.h: Update copyright years.
10419 (HAVE_SSE_REGS): Define.
10420 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10421 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10422 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10423 (SIGCONTEXT_PC_OFFSET): Remove.
10424 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10425
a752853e
AC
104262002-01-05 Andrew Cagney <ac131313@redhat.com>
10427
10428 * configure.tgt: Remove powerpc-*-macos* target.
10429 * config/m68k/xm-mpw.h: Delete file.
10430 * config/xm-mpw.h: Delete file.
10431 * ser-mac.c: Delete file.
10432 * mpw-make.sed: Delete file.
10433 * mpw-config.in: Delete file.
10434 * mac-xdep.c: Delete file.
10435 * mac-gdb.r: Delete file.
10436 * mac-defs.h: Delete file.
10437 * mac-nat.c: Delete file.
10438 * config/powerpc/macos.mh: Delete file.
10439 * config/powerpc/macos.mt: Delete file.
10440 * config/powerpc/nm-macos.h: Delete file.
10441 * config/powerpc/tm-macos.h: Delete file.
10442 * source.c (openp, open_source_file): Remove obsolete code.
10443 * top.c (gdb_readline): Ditto.
10444 * utils.c (query): Ditto.
10445 * event-top.c (display_gdb_prompt): Ditto.
10446 * Makefile.in (ser-mac.o): Delete obsolete target.
10447 * NEWS: Update.
10448
d7449b42
AC
104492002-01-04 Andrew Cagney <ac131313@redhat.com>
10450
10451 * defs.h (BIG_ENDIAN): Delete macro definition.
10452 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10453 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10454 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10455 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10456 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10457 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10458 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10459 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10460 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10461 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10462 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10463 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10464 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10465 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10466 * gdbarch.c: Re-generate.
10467
356374e8
DJ
104682002-01-04 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10471 for core files.
10472
a2b8f8f8
JT
104732002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10474
10475 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10476
12466af9
AC
104772002-01-04 Andrew Cagney <ac131313@redhat.com>
10478
10479 * value.h (value_ptr): Delete typedef.
10480
3549ab40
JT
104812002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10482
10483 * i386nbsd-nat.c: Update copyright years.
10484 Include i386-tdep.h.
10485
fedbd091
EZ
104862002-01-04 Elena Zannoni <ezannoni@redhat.com>
10487
10488 * stabsread.c: Update copyright years.
10489
10490 From Debashis Mahata <debashis.mahata@wipro.com>:
10491 (read_struct_fields): Deal with Sun C compiler erroneous stab
10492 output for structs and unions.
fec8b34f 10493 Fix PR gdb/269.
fedbd091 10494
eb43544b
DJ
104952002-01-04 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10498 prototype.
10499
1514d34e
DJ
105002002-01-04 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * cp-abi.c: Fix whitespace.
10503 (baseclass_offset): New wrapper function.
10504 * cp-abi.h (baseclass_offset): Add prototype.
10505 (struct cp_abi_ops): Add baseclass_offset pointer.
10506
10507 * valops.c (vb_match): Move to...
10508 * gnu-v2-abi.c (vb_match): here.
10509 * valops.c (baseclass_offset): Move to...
10510 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10511
10512 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10513
10514 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10515 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10516 * hpacc-abi.c (init_hpacc_ops): Likewise.
10517
7f8c9282
DJ
105182002-01-04 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * valops.c (find_overload_match): Accept obj as a
10521 reference parameter. Update it before returning.
10522 * value.h (find_overload_match): Update prototype.
10523 * eval.c (evaluate_subexp_standard): Pass object to
10524 find_overload_match by reference.
10525
f23631e4
AC
105262002-01-03 Andrew Cagney <ac131313@redhat.com>
10527
10528 * valarith.c: Replace value_ptr with struct value pointer. Remove
10529 register attribute from value declarations.
10530 * valops.c: Ditto.
10531 * value.h: Ditto.
10532 * scm-lang.c (scm_lookup_name): Ditto.
10533
79e10fab 105342002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10535
79e10fab
AC
10536 Abstract the functionality of iterating over mapped memory
10537 regions into a general purpose iterator function.
abf22e64 10538 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10539 iterator for memory sections.
10540 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10541 (solib_mappings_callback): New function, callback for above.
10542 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10543 (info_mappings_callback): New function, callback for above.
10544
10545 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10546
c5ad026a
MK
105472002-01-01 Mark Kettenis <kettenis@gnu.org>
10548
d2a7c97a
MK
10549 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10550 * i386-tdep.c: Include "elf-bfd.h".
10551 (process_note_abi_tag_sections): New function.
10552 (i386_gdbarch_init): Add code to recognize various OS/ABI
10553 combinations.
10554
c5ad026a
MK
10555 * maint.c (_initialize_maint_cmds): Add missing \ in
10556 string-literal.
10557
a1a5b71e 10558For older changes see ChangeLog-2001
c906108c
SS
10559\f
10560Local Variables:
10561mode: change-log
10562left-margin: 8
10563fill-column: 74
10564version-control: never
10565End:
This page took 0.775225 seconds and 4 git commands to generate.