* i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d8ee244c
MK
12002-08-18 Mark Kettenis <kettenis@gnu.org>
2
c2848c82
MK
3 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4 write_register_gen instead of write_register_bytes.
5
d8ee244c
MK
6 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
7 i[3456]-*-osf1mk* configurations have been made obsolete.
8 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
9 i[3456]86-*-osf1mk* hosts obsolete.
10 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
11 targets obsolete.
12 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
13 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
14 config/i386/i386m3.mt, config/i386/nm-m3.h,
15 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
16 config/i386/i386mk.mh, config/i386/i386mk.mt,
17 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
18 obsolete.
19 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
20 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
21 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
22
61d8d407
AC
232002-08-18 Andrew Cagney <ac131313@redhat.com>
24
25 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
26 (hppa_value_returned_from_stack): Declare.
27 (hppa_extract_return_value): Declare.
28 * config/pa/hppa.mt: New file.
29 * configure.tgt: Recognize hppa*-*-*.
30 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
31
0c52bd59
MK
322002-08-18 Mark Kettenis <kettenis@gnu.org>
33
34 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
35 comment.
36
b5686e99
MK
372002-08-17 Mark Kettenis <kettenis@gnu.org>
38
39 * top.c (gdb_rl_operate_and_get_next): Make sure
40 operate-and-get-next functions correctly even when the history
41 list is completely filled.
42
c1bab85b
AC
432002-08-18 Andrew Cagney <ac131313@redhat.com>
44
45 * MAINTAINERS (Target Instruction Set Architectures): Rename
46 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
47 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
48 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
49 already listed under Host/Native.
50
51 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
52 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
53 mips*-*-*.
54
32089c7c
AC
552002-08-17 Andrew Cagney <ac131313@redhat.com>
56
57 * config/ia64/ia64.mt: New file.
58 * config/alpha/alpha.mt: New file.
59 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
60 ia64-linux-gnu. Mention that ia64-elf is broken.
61 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
62
b4671f85
MK
632002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
64
65 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
66 generic_func_frame_valid instead of func_frame_valid.
67
c8edd8b4
JB
682002-08-16 Joel Brobecker <brobecker@gnat.com>
69
70 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
71 procfs appears to be broken when debugging on multi-processor
72 machines. So enable software single stepping in order to avoid
73 using the procfs interface to do next/step operations, using
74 internal breakpoints instead.
75
76 * infrun.c (handle_inferior_event): Readjust the stop_pc by
77 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
78 make this pc address equal to the value it would have if the
79 system stepping capability was used. Also set a new flag used
80 to ensure that we don't readjust the PC one more time later.
81
82 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
83 address by DECR_PC_AFTER_BREAK when software single step is
84 in use for this architecture, as this has already been taken
85 care of in handle_inferior_event().
86
238617f6
JB
872002-08-16 Joel Brobecker <brobecker@gnat.com>
88
89 * infrun.c (handle_inferior_event): Minor reformatting, to make
90 a rather long condition expression easier to read.
91
541a7aac
AC
922002-08-16 Andrew Cagney <ac131313@redhat.com>
93
94 * Makefile.in (gdbtk.o): Move to end of file.
95 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
96 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
97 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
98 (gdbtk-wrapper.o, gdbres.o): Ditto.
99
f92d4a7b
AC
1002002-08-16 Andrew Cagney <ac131313@redhat.com>
101
102 * Makefile.in (copying.o): Separate out compile rule.
103 (hpux-thread.o, procfs.o, signals.o): Ditto.
104 (v850ice.o, z8k-tdep.o): Ditto.
105 (tui-file.o): Move to TUI section.
106 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
107 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
108
1cce71eb
JB
1092002-08-16 Joel Brobecker <brobecker@gnat.com>
110
111 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
112 skip_trampoline_code, for better namespace-proofing.
113
114 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
115
0851f23d
JB
1162002-08-16 Joel Brobecker <brobecker@gnat.com>
117
118 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
119
f8d40ec8
JB
1202002-08-16 Joel Brobecker <brobecker@gnat.com>
121
122 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
123 signal, check whether we hit a breakpoint before checking for a
124 single step breakpoint. Otherwise, GDB fails to notice that a
125 breakpoint has been hit when stepping onto a breakpoint.
126
63d022e0
KS
1272002-08-16 Keith Seitz <keiths@redhat.com>
128
129 * gdb-events.sh (clear_gdb_event_hooks): New function.
130 * gdb-events.c: Regenerate.
131 * gdb-events.h: Regenerate.
132
6e31adb3
AC
1332002-08-16 Andrew Cagney <ac131313@redhat.com>
134
135 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
136 not_a_sw_breakpoint.
137 * breakpoint.h (bpstat_stop_status): Add parameter names.
138
c8189ed1
GS
1392002-08-16 Grace Sainsbury <graces@redhat.com>
140
141 * remote.c (remote_insert_hw_breakpoint)
142 (remote_remove_hw_breakpoint): Fix calculation of length field
143 for Z-packet.
144
d05285fa
MS
1452002-08-15 Michael Snyder <msnyder@redhat.com>
146
466d7106
MS
147 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
148 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
149 (supply_fpregset): Ditto.
150
d05285fa
MS
151 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
152 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
153 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 154 (TARGET_READ_SP): Delete.
bf1f5b4c 155 (DO_REGISTERS_INFO): Delete.
102182a9
MS
156 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
157 Delete.
158 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
159 from macros to functions.
bf1f5b4c 160
d05285fa
MS
161 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
162 (mips_register_convertible, mips_register_convert_to_virtual,
163 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
164 (mips_read_sp): New function.
165 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
166 (mips_do_registers_info): Make static.
167 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
168 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
169 (mips_register_convert_from_type, mips_register_convert_to_type):
170 New functions.
171 (mips_gdbarch_init): Set up function_start_offset,
172 register_virtual_size, pc_in_sigtramp.
d05285fa 173
e76f1f2e
AC
1742002-08-15 Andrew Cagney <ac131313@redhat.com>
175
176 * infcmd.c (vector_info): New function.
177 (_initialize_infcmd): Add command "info vector".
178 (print_vector_info): New function.
179
180 * gdbarch.sh (PRINT_VECTOR_INFO): New method
181 * gdbarch.h, gdbarch.c: Regenerate.
182
4782dc19
AC
1832002-08-15 Andrew Cagney <ac131313@redhat.com>
184
185 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
186 ``print_all''. Only print vector registers when ``print_all''.
187
23e3a7ac
AC
1882002-08-15 Andrew Cagney <ac131313@redhat.com>
189
8e186fd6
AC
190 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
191 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
192
23e3a7ac
AC
193 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
194 Add `args' parameter.
195 * gdbarch.h, gdbarch.c: Regenerate.
196
197 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
198
199 * infcmd.c (float_info): Call print_float_info.
200 (print_float_info): New function. By default, print the
201 floating-point registers.
202
203 * arch-utils.h (default_print_float_info): Delete declaration.
204 * arch-utils.c (default_print_float_info): Delete function.
205
e0ca2bb9
MK
2062002-08-16 Mark Kettenis <kettenis@gnu.org>
207
3f733acc
MK
208 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
209 out define.
210
7d8d2918
MK
211 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
212 FRAME.
213
1c7cc583
MK
214 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
215 * configure.host: Make i[3456]86-*-aix host obsolete.
216 * configure.tgt: Make i[3456]86-*-aix target obsolete.
217 * config/i386/i386aix.mh, config/i386/i386aix.mt,
218 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
219 config/i386/xm-i386aix.h: Make files obsolete.
220 * i386aix-nat.c: Make file obsolete.
221 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
222 (i386aix-nat.o): Make target obsolete.
223
e0ca2bb9
MK
224 * config/i386/nm-gnu.h: Removed.
225 * config/i386/nm-i386gnu.h: New file.
226 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
227 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
228 Moved here from ...
229 * config/i386/tm-i386gnu.h: ... here. Removed.
230 * config/i386/xm-i386gnu.h: Removed.
231 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
232 (NAT_FILE): Set to nm-i386gnu.h.
233 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
234 * i386-tdep.c: New file.
235 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
236 (i386gnu-tdep.o): Specify dependencies.
237
16057ec7 2382002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 239
6b99ee2e
MK
240 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
241 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
242 Adjust a few comments to reflect reality a bit closer.
243 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
244 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
245 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
246 target_insert_watchpoint, target_remove_watchpoint):
247 Move defines to ...
248 * config/i386/nm-i386sco5.h: ... here.
249 (kernel_u_size): Add prototype. Improve a few comments and add
250 protection against multiple inclusion.
251
d9a6f65c
MK
252 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
253 out define.
254
047eff6a
MK
255 * uw-thread.c (SP_ARG0): Define if not already defined.
256 * config/i386/tm-i386.h (SO_ARG0): Remove define.
257
dcdb1290
MK
258 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
259
5d2d0b2a
MK
260 * config/i386/tm-i386.h: Don't include "regcache.h".
261
61113f8b
MK
262 * i387-tdep.h (i387_print_float_info): New prototype.
263 * i387-tdep.c (print_i387_value, print_i387_ext,
264 print_i387_status_word, print_i387_control_word): Add `struct
265 ui_file *' argument and use it for output.
266 (i387_print_float_info): Renamed from i387_float_info. Add
267 `struct gdbarch *' and `struct ui_file *' arguments and use the
268 latter for output.
269 * i386-tdep.c: Include "i387-tdep.h".
270 (i386_gdbarch_init): Set print_float_info.
271 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
272 (FLOAT_INFO): Remove define.
273
46e0f506
MS
2742002-08-13 Michael Snyder <msnyder@redhat.com>
275
276 * mips-tdep.c (mips_push_arguments): Rename to
277 mips_eabi_push_arguments, and tune for EABI.
278 (MIPS_REGS_HAVE_HOME_P): Delete.
279 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
280 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
281 Delete references to mips_regs_have_home_p.
282
409268de
KS
2832002-08-14 Keith Seitz <keiths@redhat.com>
284
285 * Makefile.in (install-gdbtk): Create insight plugin directory.
286 Install plugins.tcl file.
287
ffc6a242
KS
2882002-08-14 Keith Seitz <keiths@redhat.com>
289
290 * configure.in: Move SUBDIRS to near top of the file so that
291 --enable options may add things to it.
292 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
293 * configure: Regenerate.
294
ebafbe83
MS
2952002-08-13 Michael Snyder <msnyder@redhat.com>
296
297 * mips-tdep.c (mips_o32o64_push_arguments): New function,
298 cloned from mips_push_arguments, tuned for o32/o64 ABI.
299 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
300
32f6f25d
AC
3012002-08-13 Andrew Cagney <ac131313@redhat.com>
302
303 * vax-tdep.c (vax_get_saved_register): Delete function.
304 (vax_gdbarch_init): Update.
305 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
306 (ns32k_gdbarch_init): Update.
307 * alpha-tdep.c (alpha_get_saved_register): Delete function.
308 (alpha_gdbarch_init): Update.
309
53826de9
AC
3102002-08-13 Andrew Cagney <cagney@redhat.com>
311
312 * regcache.c (init_regcache_descr): Overallocate the
313 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
314 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
315 nr_raw_registers.
316 (set_register_cached): Add range checking assertions. Use
317 current_regcache.
318
16057ec7 3192002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
320
321 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
322 numbers for MMX registers.
323
7b4c2dce
AC
3242002-08-13 Andrew Cagney <cagney@redhat.com>
325
326 * i386-tdep.c (i386_gdbarch_init): Use
327 generic_unwind_get_saved_register.
328
1e03ad20
KB
3292002-08-13 Kevin Buettner <kevinb@redhat.com>
330
331 * procfs.c (procfs_can_use_hw_breakpoint): New function.
332 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
333 target vector.
334 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
335 Delete. Add comment regarding this now-deleted target method.
336
548bcbec
SC
3372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
338
339 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
340 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
341 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
342 real PC and the page number (if it's within the memory bank window).
343 (m68hc11_pseudo_register_write): Likewise when saving.
344 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
345 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
346 (m68hc11_register_raw_size): And use 32-bit for it.
347 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
348 16K memory bank is used by the prog; also use the virtual pc.
349
7df11f59
SC
3502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
351
352 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
353 (m68hc11_gdbarch_init): Install it in gdbarch.
354 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
355 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
356 (MSYMBOL_SIZE): New for documentation.
357 (insn_return_kind): Enum to specify how a function returns.
358 (frame_extra_info): Cleanup and record the return mode.
359 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
360 register in address computation.
361 (m68hc11_get_return_insn): New to obtain the return instruction used
362 by the function.
363 (m68hc11_frame_init_saved_regs): Take into account the return
364 instruction used by the function for far and interrupt functions.
365 (m68hc11_init_extra_frame_info): Take into account page register.
366 (m68hc11_frame_args_address): Adjust according to the return mode.
367 (show_regs): Print page register only when it's used.
368
5706502a
SC
3692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
370
371 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
372 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
373 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
374 registers.
375 (m68hc11_register_raw_size): Likewise.
376
28fc6740
AC
3772002-08-13 Andrew Cagney <cagney@redhat.com>
378
379 * i386-tdep.c (i386_register_name): Handle mmx registers.
380 (mmx_regnum_p): New function.
381 (i386_mmx_names): New array.
382 (mmx_num_regs): New variable.
383 (i386_pseudo_register_read): New function.
384 (i386_pseudo_register_write): New function.
385 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
386
387 * regcache.c (regcache_raw_read_unsigned): New function.
388 (regcache_raw_read_signed): New function.
389 * regcache.h (regcache_raw_read_unsigned): Declare.
390 (regcache_raw_read_signed): Declare.
391
a378f419
AC
3922002-08-13 Andrew Cagney <cagney@redhat.com>
393
394 * regcache.c (regcache_raw_read_as_address): Delete function.
395 (regcache_cooked_read_signed): New function.
396 (regcache_cooked_read_unsigned): New function.
397 * regcache.h (regcache_cooked_read_signed): Declare.
398 (regcache_cooked_read_unsigned): Declare.
399 (regcache_raw_read_as_address): Delete declaration.
400
401 * blockframe.c (generic_read_register_dummy): Use
402 regcache_cooked_read_unsigned.
403 * i386-tdep.c (i386_extract_struct_value_address): Use
404 regcache_cooked_read_unsigned.
405
81967506
SC
4062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
407
408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
409 double sizes according to ELF ABI flags.
410 (gdbarch_tdep): Record elf_flags.
411
ffe1f3ee
SC
4122002-08-13 Stephane Carrez <stcarrez@nerim.fr>
413
414 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
415 (m6812_prolog): They can appear in 68HC12 function prologue.
416 (m68hc11_frame_chain): Cleanup.
417
98216c5d
AC
4182002-08-12 Andrew Cagney <cagney@redhat.com>
419
420 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
421 declarations.
422 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
423 (i386_linux_register_raw_size): Delete function.
424 (i386_linux_init_abi): Update.
425 * i386-tdep.c (i386_register_raw_size): Delete function.
426 (i386_register_byte): Delete function.
427 (i386_gdbarch_init): Update.
428 (i386_register_size): Delete array.
429 (i386_register_offset): Delete array.
430
431 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
432 (REGISTER_RAW_SIZE): Delete macro.
433 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
434 (REGISTER_BYTE): Delete macro.
435
3b19021e
AS
4362002-08-11 Aidan Skinner <aidan@velvet.net>
437
438 * ada-lang.c (ada_lookup_partial_symbol)
439 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
440 prototype names so that grep ^func works properly.
441
442 * ada-lang.c (ada_array_element_type)
443 (ada_lookup_partial_symbol): Fix typos in parameter list.
444
445 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
446 Fix prototype names so that grep ^func works properly.
447
b063e7a2
AC
4482002-08-10 Andrew Cagney <cagney@redhat.com>
449 Elena Zannoni <ezannoni@redhat.com>
450 Martin M. Hunt <hunt@redhat.com>
451
452 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
453 (build_builtin_type_vec128i): Set the vector bit.
454 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
455 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
456 (build_builtin_type_vec64): New function.
457 (build_builtin_type_vec64i): New function.
458 (build_gdbtypes): Initialize builtin_type_vec64 and
459 builtin_type_vec64i.
460
a7e3c2ad
AC
4612002-08-09 Andrew Cagney <cagney@redhat.com>
462
463 * regcache.c (regcache_dump): Compare the register offset
464 with REGISTER_BYTE.
465 * arch-utils.c (generic_register_byte): New function.
466 * arch-utils.h (generic_register_byte): Declare.
467 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
468 * gdbarch.h, gdbarch.c: Regenerate.
469
af030b9a
AC
4702002-08-09 Andrew Cagney <cagney@redhat.com>
471
472 * regcache.c: Include "gdbcmd.h"
473 (_initialize_regcache): Add commands "maintenance print
474 registers", "maintenance print raw-registers" and "maintenance
475 print cooked-registers".
476 (enum regcache_dump_what): Define.
477 (dump_endian_bytes): New function.
478 (regcache_dump): New function.
479 (regcache_print): New function.
480 (maintenance_print_registers): New function.
481 (maintenance_print_raw_registers): New function.
482 (maintenance_print_cooked_registers): New function.
483 * Makefile.in (regcache.o): Update dependencies.
484
cb3d25d1
MS
4852002-08-09 Michael Snyder <msnyder@redhat.com>
486
487 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
488 (mips_push_arguments): Correct some comments. Use paddr_nz
489 for printing addresses in debug output. Replace static
490 allocation using MAX_REGISTER_RAW_SIZE with alloca.
491 (mips_n32n64_push_arguments): New function, cloned from
492 mips_push_arguments and tuned for the n32/n64 ABI.
493 (mips_push_register): Buffer needs dynamic allocation.
494 (mips_print_register): Ditto.
495 (do_gp_register_row): Ditto.
496 (mips_store_return_value): Ditto.
497 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
498
2163ab9d
DH
4992002-08-09 Don Howard <dhoward@redhat.com>
500
501 * memattr.c (mem_info_command): Print special case of upper bound
502 as max CORE_ADDR + 1.
503
b78bcb18
MS
5042002-08-08 Michael Snyder <msnyder@redhat.com>
505
506 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
507 returns structs by ref if they're too big to fit in two registers.
508
ffabd70d
KB
5092002-08-09 Kevin Buettner <kevinb@redhat.com>
510
511 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
512 saved regs value.
513 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
514 mips_find_saved_regs().
515 (mips_pop_frame): Likewise.
516
fbcdb4a3
KB
5172002-08-09 Kevin Buettner <kevinb@redhat.com>
518
519 * blockframe.c (frame_saved_regs_register_unwind): Revise
520 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
521 frames are in use.
522
3c3bea1c
GS
5232002-08-09 Grace Sainsbury <graces@redhat.com>
524
525 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
526 T-packets; the 'a' is not taken as a register number.
527 (remote_check_watch_resources, remote_stopped_by_watchpoint)
528 (remote_stopped_data_address): New functions; add to target
529 vector.
530 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
531 prototypes to match other implementations of this
532 function. replace integer argument with pointer -- the length
533 field in the Z-packet is the length of what is pointed to or 1 if
534 pointer is null. Add to target vector.
535 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
536 target vector.
537
538 From Mark Salter:
539 * remote.c (remote_wait): Add support to extract optional
540 watchpoint information from T-packet. Ignore unrecognized
541 optional info in T-packet.
542 (remote_async_wait): Ditto.
543
5d1d95de
CV
5442002-08-09 Corinna Vinschen <vinschen@redhat.com>
545
546 * cli/cli-dump.c: Change fopen modes to use binary open modes
547 as defined in include/fopen-bin.h throughout.
548
c86b5b38
MS
5492002-08-08 Michael Snyder <msnyder@redhat.com>
550
551 * mips-tdep.c: Minor whitespace and indentation clean-ups.
552
b30590dc
KB
5532002-08-08 Kevin Buettner <kevinb@redhat.com>
554
555 * doublest.c (store_floating): Avoid floatformat_from_doublest()
556 assertion failure by returning early after a warning.
557
498868ed
KB
5582002-08-08 Kevin Buettner <kevinb@redhat.com>
559
560 * mips-tdep.c (mips_find_saved_regs): Make static.
561 (mips_frame_init_saved_regs): New function.
562 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
563 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
564 (mips_find_saved_regs): Delete declaration.
565
b2dd6311
GS
5662002-08-08 Grace Sainsbury <graces@redhat.com>
567
3c3bea1c
GS
568 * remote.c (remote_wait, remote_async_wait): Change
569 thread_num from int to ULONGEST.
570 (unpack_varlen_hex): Change result parameter from
571 int * to ULONGEST *.
b2dd6311 572
ea47855f
AC
5732002-08-08 Andrew Cagney <ac131313@redhat.com>
574
575 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
576 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
577 powerpc*-*-*.
578 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
579
69db8bae
AC
5802002-08-08 Andrew Cagney <cagney@redhat.com>
581
582 * gcore.c (override_derive_stack_segment): Delete variable.
583 (preempt_derive_stack_segment): Delete function.
584 (derive_stack_segment): Delete function.
585 (default_derive_stack_segment): Renamed to derive_stack_segment.
586 (override_derive_heap_segment): Delete variable.
587 (preempt_derive_heap_segment): Delete function.
588 (derive_heap_segment): Delete function.
589 (default_derive_heap_segment): Rename to derive_heap_segment.
590
cb811fe7
MS
5912002-08-06 Michael Snyder <msnyder@redhat.com>
592
593 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
594 * mips-tdep.c (mips_EABI_use_struct_convention,
595 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
596 New functions. (mips_use_struct_convention): Delete.
597 (mips_gdbarch_init): set use_gdbarch_convention.
598
8b389c40
MS
5992002-08-06 Michael Snyder <msnyder@redhat.com>
600
601 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
602 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
603 mips_o32_reg_struct_has_addr): New functions.
604 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
605
5c27f28a
AC
6062002-08-07 Andrew Cagney <ac131313@redhat.com>
607
608 * regcache.c (pseudo_register): Delete function.
609 (fetch_register): Delete function.
610 (store_register): Delete function.
611 (regcache_raw_read, legacy_read_register_gen): Use
612 target_fetch_registers instead of fetch_register.
613 (legacy_write_register_gen, regcache_raw_write): Use
614 target_store_register instead of store_register.
615 (write_register_bytes): Ditto.
616
617 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
618 (STORE_PSEUDO_REGISTER): Delete.
619 * gdbarch.h, gdbarch.c: Regenerate.
620
5b331675
CV
6212002-08-06 Corinna Vinschen <vinschen@redhat.com>
622
623 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
624 write dump file binary.
625
6acdf5c7
MS
6262002-08-05 Michael Snyder <msnyder@redhat.com>
627
628 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
629 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
630 (mips_gdbarch_init): Set N32 target to be mips64.
631
b2f01c35
KB
6322002-08-06 Kevin Buettner <kevinb@redhat.com>
633
634 * frame.c (find_saved_register): Break out of loop once saved
635 register address is found. Don't mention sparc in loop comment
636 anymore.
637
63db5580
KB
6382002-08-06 Kevin Buettner <kevinb@redhat.com>
639
640 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
641 mips_default_saved_regsize to 8.
642
5e34e75e
AC
6432002-08-06 Andrew Cagney <ac131313@redhat.com>
644
645 * gcore.c: Do not include <sys/procfs.h>.
646 * Makefile.in (gcore.o): Update dependencies.
647
eb4c54a2
AC
6482002-08-06 Andrew Cagney <cagney@redhat.com>
649
650 * configure.tgt: Make arc-*-* obsolete.
651 * NEWS: Mention that arc-*-* has been identifed as obsolete.
652 * MAINTAINERS: Make arc-elf obsolete.
653 * arc-tdep.c: Make file obsolete.
654 * config/arc/arc.mt: Ditto.
655 * config/arc/tm-arc.h: Ditto.
656
ced15480
TR
6572002-08-05 Theodore A. Roth <troth@verinet.com>
658
c1bab85b 659 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 660
b4743822
AC
6612002-08-05 Andrew Cagney <ac131313@redhat.com>
662
663 * mcore-tdep.c (mcore_gdbarch_init): Use
664 generic_unwind_get_saved_register instead of
665 generic_get_saved_register.
666 * v850-tdep.c (v850_gdbarch_init): Ditto.
667 * frv-tdep.c (frv_gdbarch_init): Ditto.
668 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
669 * s390-tdep.c (s390_gdbarch_init): Ditto.
670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
671 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
672 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
673
3956d554
JB
6742002-08-05 Joel Brobecker <brobecker@gnat.com>
675
676 * objfiles.h: Add missing #include "symfile.h"
677
678 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
679
8249c0d6
AC
6802002-08-04 Andrew Cagney <ac131313@redhat.com>
681
682 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
683 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
684 of FIELD_BITSIZE.
685
b9d14705
DJ
6862002-08-04 Daniel Jacobowitz <drow@mvista.com>
687
688 * NEWS: Cleanup and nitpick.
689
dd73b9bb
AC
6902002-08-03 Andrew Cagney <ac131313@redhat.com>
691
692 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
693
043a27f8
AC
6942002-08-03 Andrew Cagney <ac131313@redhat.com>
695
696 * Makefile.in (gdbtk-bp.o): Update dependencies.
697 (gdbtk-register.o): Ditto.
698 (gdbtk-varobj.o): Ditto.
699
46ce284d
AC
7002002-08-03 Andrew Cagney <cagney@redhat.com>
701
702 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
703 m68hc11_fetch_pseudo_register.
704 (m68hc11_pseudo_register_write): Replace
705 m68hc11_store_pseudo_register.
706 (m68hc11_gdbarch_init): Update.
707
b66d6d2e
AC
708Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
709
710 * gdbarch.sh: Include "gdb_string.h".
711 * gdbarch.c: Regenerate.
712
713 * regcache.c: Include "gdb_string.h".
714 * ax-general.c: Ditto.
715 * varobj.c: Ditto.
716 * std-regs.c: Ditto.
717 * fbsd-proc.c: Ditto.
718 * thread.c: Ditto.
719
720 * Makefile.in (regcache.o): Update dependencies.
721 (thread.o, gdbarch.o): Ditto.
722 (ax-general.o, gdbarch.o): Ditto.
723 (varobj.o, std-regs.o): Ditto.
724 (fbsd-proc.o): Specify dependencies.
725
29e1842b
AC
7262002-08-02 Andrew Cagney <cagney@redhat.com>
727
728 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
729 regnum.
730 (regcache_cooked_write): Ditto.
731
68365089
AC
7322002-08-02 Andrew Cagney <ac131313@redhat.com>
733
734 * regcache.c (regcache_cooked_read): New function.
735 (regcache_cooked_write): New function.
736 (read_register_gen): Rewrite using regcache_cooked_read.
737 (write_register_gen): Rewrite using regcache_cooked_write.
738
739 * regcache.h (regcache_cooked_read, regcache_cooked_write):
740 Declare.
741
d8124050
AC
7422002-08-02 Andrew Cagney <cagney@redhat.com>
743
744 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
745 Replace the architecture methods register_read and register_write.
746 * gdbarch.h, gdbarch.c: Regenerate.
747 * regcache.c (init_regcache_descr): Update.
748 (read_register_gen): Update.
749 (write_register_gen): Update.
750 (supply_register): Update comment.
751
752 * sh-tdep.c (sh_gdbarch_init): Update.
753 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
754 `regcache' and `gdbarch' parameters. Make `buffer' a void
755 pointer. Update code.
756 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
757 `regcache' and `gdbarch' parameters. Make `buffer' a constant
758 void pointer. Update code.
759 (sh64_register_write): Delete.
760 (sh4_register_read): Delete.
761 (sh64_register_read): Delete.
762 (sh4_register_write): Delete.
763 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
764 void pointer, `to' parameter a void pointer.
765 (sh_sh64_register_convert_to_raw): Ditto.
766
a6425924
KB
7672002-08-01 Kevin Buettner <kevinb@redhat.com>
768
769 * mips-tdep.c (mips_register_virtual_type): Use architecture
770 invariant return values.
771
ff5922b5
AC
7722002-08-01 Andrew Cagney <cagney@redhat.com>
773
774 * linux-proc.c: Include "gdb_string.h".
775 * Makefile.in (linux-proc.o): Update dependency list.
776
32a6503c
KB
7772002-08-01 Kevin Buettner <kevinb@redhat.com>
778
779 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
780 comment.
781
ccaa32c7
GS
7822002-08-01 Grace Sainsbury <graces@redhat.com>
783
784 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
785 to_insert_watchpoint, to_remove_watchpoint,
786 to_stopped_by_watchpoint, to_stopped_data_address,
787 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
788 target vecctor. Define their corresponding macros so they call
789 them.
790
791 * target.c: Add default and debug versions of for
792 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
793 to_insert_watchpoint, to_remove_watchpoint,
794 to_stopped_by_watchpoint, to_stopped_data_address,
795 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
796
78fde5f8
KB
7972002-08-01 Kevin Buettner <kevinb@redhat.com>
798
799 * mips-tdep.c (mips_register_virtual_type): New function.
800 (mips_gdbarch_init): Register mips_register_virtual_type()
801 with gdbarch machinery.
802 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
803 this file instead of tm-bigmips.h.
804 (MIPS_REGSIZE): Delete this macro.
805 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
806 multiarch version in mips-tdep.c will be found.
807
db034ac5
AC
8082002-08-01 Andrew Cagney <cagney@redhat.com>
809
810 * NEWS: Menion that CHILL has been made obsolete.
811
812 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
813 * gdbserver/Makefile.in: Ditto.
814 * stabsread.c (read_range_type): Ditto.
815 * gdbtypes.h: Ditto.
816 * language.c (binop_type_check): Ditto.
817 (binop_result_type): Ditto.
818 (integral_type): Ditto.
819 (character_type): Ditto.
820 (string_type): Ditto.
821 (boolean_type): Ditto.
822 (structured_type): Ditto.
823 (lang_bool_type): Ditto.
824 (binop_type_check): Ditto.
825 * language.h (_LANG_chill): Ditto.
826 * dwarfread.c (set_cu_language): Ditto.
827 * dwarfread.c (CHILL_PRODUCER): Ditto.
828 * dwarfread.c (handle_producer): Ditto.
829 * expression.h (enum exp_opcode): Ditto.
830 * eval.c: Ditto for comments.
831 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
832 * expprint.c (print_subexp): Ditto.
833 (print_subexp): Ditto.
834 * valops.c (value_cast): Ditto.
835 (search_struct_field): Ditto.
836 * value.h (COERCE_VARYING_ARRAY): Ditto.
837 * symfile.c (init_filename_language_table): Ditto.
838 (add_psymbol_with_dem_name_to_list): Ditto.
839 * valarith.c (value_binop): Ditto.
840 (value_neg): Ditto.
841 * valops.c (value_slice): Ditto.
842 * symtab.h (union language_specific): Ditto.
843 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
844 (SYMBOL_DEMANGLED_NAME): Ditto.
845 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
846 * defs.h (enum language): Ditto.
847 * symtab.c (got_symtab): Ditto.
848 * utils.c (fprintf_symbol_filtered): Ditto.
849
850 * ch-typeprint.c: Make file obsolete.
851 * ch-valprint.c: Make file obsolete.
852 * ch-lang.h: Make file obsolete.
853 * ch-exp.c: Make file obsolete.
854 * ch-lang.c: Make file obsolete.
855
856 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
857 CHILL_LIB.
858 (TARGET_FLAGS_TO_PASS): Ditto.
859 (CHILLFLAGS): Obsolete.
860 (CHILL): Obsolete.
861 (CHILL_FOR_TARGET): Obsolete.
862 (CHILL_LIB): Obsolete.
863 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
864 ch-valprint.c.
865 (HFILES_NO_SRCDIR): Remove ch-lang.h.
866 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
867 ch-lang.o.
868 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
869 targets.
870
8aaf0b47
JB
8712002-07-31 Joel Brobecker <brobecker@gnat.com>
872
873 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
874 This does not change anything at the moment, but will be helpful
875 later when full Ada support is integrated.
876
f3a7b3a5
KB
8772002-07-31 Kevin Buettner <kevinb@redhat.com>
878
879 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
880 help message.
881
fb850278
KB
8822002-07-31 Kevin Buettner <kevinb@redhat.com>
883
884 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
885 and save it in a local variable. Use variable in later test.
886
e3bddbfa
KB
8872002-07-31 Kevin Buettner <kevinb@redhat.com>
888
889 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
890 test. (Thanks to Daniel Jacobowitz.)
891
28d169de
KB
8922002-07-31 Kevin Buettner <kevinb@redhat.com>
893
894 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
895 (mips_abi_strings): Add "n64".
896 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
897
7fe7e44e
KB
8982002-07-31 Kevin Buettner <kevinb@redhat.com>
899
900 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
901 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
902
c6caf090
KB
9032002-07-31 Kevin Buettner <kevinb@redhat.com>
904
905 * utils.c (host_pointer_to_address, address_to_host_pointer):
906 Use gdb_assert() instead of explicit call to internal_error().
907
c41669e0
KB
9082002-07-30 Kevin Buettner <kevinb@redhat.com>
909
910 * Makefile.in (rs6000-nat.o): Update dependencies.
911
912 From Nicholas Duffek:
913 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
914 (aix-thread.o): New rule.
915 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
916 * config/powerpc/aix432.mh: New file.
917
2fda4977
DJ
9182002-07-30 Daniel Jacobowitz <drow@mvista.com>
919
920 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
921 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
922 (fetch_core_registers, ppc_linux_supply_gregset)
923 (ppc_linux_supply_fpregset): New functions.
924 (ppc_linux_regset_core_fns): New.
925 (_initialize_ppc_linux_tdep): Call add_core_fns.
926 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
927 and ppc_linux_supply_gregset.
928 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
929 (supply_fpregset): Call ppc_linux_supply_fpregset.
930 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
931 corelow.o.
932 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
933
729051e6
DJ
9342002-07-30 Daniel Jacobowitz <drow@mvista.com>
935
936 * symtab.c (lookup_symbol): Demangle before lowercasing.
937
5f8a3188
AC
9382002-07-30 Andrew Cagney <ac131313@redhat.com>
939
940 * symtab.h: Replace #include "gdb_obstack.h" with opaque
941 declaration.
942 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
943 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
944 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
945 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
946 "gdb_string.h".
947 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
948 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
949 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
950 (avr-tdep.o, mon960-rom.o): Ditto.
951 (aout_stabs_gnu_h): Define.
952 (symtab_h): Remove $(gdb_obstack_h).
953
67f07146
JB
9542002-07-30 Jim Blandy <jimb@redhat.com>
955
956 Patch from David Carlton <carlton@math.stanford.edu>:
957 * gdbinit.in: Move the `dir' commands that add GDB's own source
958 directory to the search path to the end, so that the `gdb' source
959 directory will be searched first.
960
04ea0df1
AC
9612002-07-29 Andrew Cagney <ac131313@redhat.com>
962
963 * gdb_obstack.h: New file.
964 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
965 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
966 * objfiles.h: Include "gdb_obstack.h".
967 * Makefile.in (gdb_obstack_h): Define.
968 (symtab_h): Add $(gdb_obstack_h).
969 (objfiles_h): Add $(gdb_obstack_h).
970
971 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
972 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
973 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
974 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
975 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
976 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
977 * symfile.c, coffread.c, c-typeprint.c: Ditto.
978 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
979
980 * Makefile.in (bcache.o): Update dependencies.
981 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
982 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
983 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
984 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
985 (stabsread.o, symfile.o, symmisc.o): Ditto.
986 (symtab.o, typeprint.o, macroexp.o): Ditto.
987 (macrotab.o, mdebugread.o): Ditto.
988 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
989 (coff_ecoff_h, aout_aout64_h): Define.
990 (aout_stabs_gnu_h, libaout_h): Define.
991
d138e37a
AC
9922002-07-29 Andrew Cagney <cagney@redhat.com>
993
994 * regcache.c (struct regcache_descr): Rename nr_registers to
995 nr_cooked_registers. Revise comments describing the structure
996 member fields.
997 (init_regcache_descr): Update.
998 (init_legacy_regcache_descr): Update.
999 (read_register_gen, write_register_gen): When a cooked register in
1000 the raw register range, directly access the value from the raw
1001 register cache.
1002
460e6ec3
AC
10032002-07-29 Andrew Cagney <ac131313@redhat.com>
1004
1005 * z8k-tdep.c: Do not include "obstack.h".
1006 * h8300-tdep.c, h8500-tdep.c: Ditto.
1007 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1008 * valprint.c, v850-tdep.c: Ditto.
1009 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1010 * mn10200-tdep.c: Ditto.
1011
1012 * Makefile.in (z8k-tdep.o): Update dependencies.
1013 (m68hc11-tdep.o, valprint.o): Ditto.
1014 (v850-tdep.o, d10v-tdep.o): Ditto.
1015 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1016 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1017 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1018 (sh_opc_h, gdb_sim_sh_h): Define.
1019 (elf_sh_h, elf_bfd_h): Define.
1020 (opcode_m68hc11_h): Define.
1021 (OPCODES_SRC, OPCODES_DIR): define.
1022 (OPCODES): Use $(OPCODES_DIR).
1023 (gdb_sim_d10v_h): Rename sim_d10v_h.
1024 (gdb_sim_arm_h): Rename sim_arm_h.
1025
790c9cf0
KB
10262002-07-26 Kevin Buettner <kevinb@redhat.com>
1027
1028 * utils.c (host_pointer_to_address, address_to_host_pointer):
1029 Change internal_error() message to indicate function responsible
1030 for the error.
1031
9647fa49
KB
10322002-07-26 Kevin Buettner <kevinb@redhat.com>
1033
1034 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1035 calls to local_hex_string_custom().
1036
dabbe2c0
KB
10372002-07-26 Kevin Buettner <kevinb@redhat.com>
1038
1039 * irix5-nat.c: Move IRIX shared library support from here...
1040 * solib-irix.c: ...to here. Revised substantially to work with
1041 generic solib framework.
1042
b96d0a4e
KB
1043 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1044 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1045 * mips-irix-tdep.c: New file.
1046
313fb2f6
KB
1047 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1048 (mips-irix-tdep.o, solib-irix.o): New rules.
1049 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1050 solib-irix.o.
1051 * config/mips/irix6.mt (TDEPFILES): Likewise.
1052 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1053
ab2eaf26
KB
10542002-07-26 Kevin Buettner <kevinb@redhat.com>
1055
177e4768 1056 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1057 disabled (via ``#if 0'') includes.
1058
7244546a
KB
10592002-07-26 Kevin Buettner <kevinb@redhat.com>
1060
1061 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1062 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1063 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1064 Add support for the fpscr register.
1065 * rs6000-nat.c (regmap, fetch_inferior_registers)
1066 (store_inferior_registers, fetch_core_registers): Likewise.
1067
dd7be90a
KB
10682002-07-26 Kevin Buettner <kevinb@redhat.com>
1069
1070 * rs6000-nat.c (language.h): Include.
1071 (special_regs): Delete this array.
1072 (regmap): New function.
1073 (fetch_register, store_register): Use regmap() to map gdb
1074 register numbers to ptrace register numbers. Also, use
1075 outputs from regmap() to make decisions regarding type of
1076 ptrace() call to make. In particular, don't compare against
1077 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1078 (fetch_inferior_registers, store_inferior_registers): Where
1079 possible, obtain register numbers from tdep struct. Don't
1080 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1081 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1082 (LAST_UISA_SP_REGNUM): Delete.
1083
11bf77db
KB
10842002-07-25 Kevin Buettner <kevinb@redhat.com>
1085
1086 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1087 (fetch_registers, store_register, fetch_core_registers): Don't
1088 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1089 regcache_collect() as appropriate.
1090 (find_toc_address): Format hex address with local_hex_string().
1091
06afebeb
AC
10922002-07-25 Andrew Cagney <ac131313@redhat.com>
1093
1094 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1095 bfd/elf32-frv.c.
1096
8c554d79
TT
10972002-07-24 Tom Tromey <tromey@redhat.com>
1098
1099 * jv-exp.y: Marked all strings with _().
1100 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1101 internal_error.
1102 (MethodInvocation, CastExpression, parse_number, yyerror,
1103 java_type_from_name, push_expression_name, yylex): Typo fixes.
1104
e4c242d9
DJ
11052002-07-24 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1108 (tee_file_flush, tee_file_write, tee_file_fputs)
1109 (tee_file_isatty): New.
1110 * ui-file.h (tee_file_new): Add prototype.
1111
ebf56fd3
AS
11122002-07-24 Aidan Skinner <aidan@velvet.net>
1113
1114 * ada-lang.c: Change k&r style function definitions to prototyped
1115 form.
1116 * ada-typeprint.c: Change k&r style function definitions to prototyped
1117 form.
1118 * ada-valprint.c: Change k&r style function definitions to prototyped
1119 form.
1120
7fb623f7
AC
11212002-07-24 Andrew Cagney <cagney@redhat.com>
1122
1123 * README: Remove reference to remote-bug.
1124 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1125 remote-bug.c.
1126 (m88k-nat.o): Delete rule.
1127 (m88k-tdep.o): Delete rule.
1128 (remote-bug.o): Delete rule.
1129 * MAINTAINERS: Mark as obsolete.
1130 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1131 * m88k-tdep.c: Make file obsolete.
1132 * config/m88k/m88k.mh: Ditto.
1133 * config/m88k/delta88v4.mh: Ditto.
1134 * config/m88k/delta88v4.mt: Ditto.
1135 * config/m88k/delta88.mt: Ditto.
1136 * config/m88k/delta88.mh: Ditto.
1137 * remote-bug.c: Ditto.
1138 * config/m88k/tm-delta88.h: Ditto.
1139 * config/m88k/nm-delta88v4.h: Ditto.
1140 * config/m88k/xm-delta88.h: Ditto.
1141 * config/m88k/xm-dgux.h: Ditto.
1142 * config/m88k/tm-m88k.h: Ditto.
1143 * config/m88k/nm-m88k.h: Ditto.
1144 * config/m88k/tm-delta88v4.h: Ditto.
1145 * m88k-nat.c: Ditto.
1146 * cxux-nat.c: Ditto.
1147 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1148 and m88*-*-* obsolete.
1149 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1150 m88*-*-* obsolete.
1151
37611a2b
AC
11522002-07-24 Andrew Cagney <cagney@redhat.com>
1153
1154 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1155 constant. Same for local pointer variables.
1156 (extract_signed_integer): Ditto.
1157 * defs.h (extract_unsigned_integer): Update.
1158 (extract_signed_integer): Update.
1159
18ff0538
KB
11602002-07-24 Kevin Buettner <kevinb@redhat.com>
1161
1162 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1163 * gdbserver/configure: Regenerate.
1164 * gdbserver/config.in: Regenerate.
1165
1aaa5f99
AC
11662002-07-24 Andrew Cagney <cagney@redhat.com>
1167
1168 * regcache.c (regcache_raw_write): Change buf parameter to a
1169 constant void pointer.
1170 (regcache_raw_read): Change buf parameter to a void pointer.
1171 (legacy_write_register_gen): Change myaddr parameter a constant
1172 void pointer.
1173 (supply_register): Change val parameter to a const void pointer.
1174 * regcache.h (regcache_raw_write): Update declaration.
1175 (regcache_raw_read): Update declaration.
1176 (supply_register): Update declaration.
1177
b4f5539f
TT
11782002-07-24 Tom Tromey <tromey@redhat.com>
1179
1180 * defs.h (gdb_readline_wrapper): Declare.
1181 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1182 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1183 * top.c (gdb_readline_wrapper): New function.
1184 (command_line_input): Use it.
1185
0818c12a
AC
11862002-07-24 Andrew Cagney <cagney@redhat.com>
1187
1188 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1189 regcache_read and regcache_write.
1190 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1191 * regcache.c: Update.
1192 * sh-tdep.c (sh64_push_arguments): Update comment.
1193 (sh_pseudo_register_read): Update.
1194 (sh_pseudo_register_write): Update.
1195 (sh4_register_read): Update.
1196 (sh4_register_write): Update.
1197 (sh64_pseudo_register_read): Update.
1198 (sh64_pseudo_register_write): Update.
1199 (sh64_register_read): Update.
1200 (sh64_register_write): Update.
1201 * i386-tdep.c (i386_extract_return_value): Update.
1202 (i386_extract_struct_value_address): Update.
1203 (i386_extract_return_value): Update.
1204 * blockframe.c (generic_read_register_dummy): Update.
1205 (generic_call_dummy_register_unwind): Update
1206 * infrun.c (write_inferior_status_register): Update.
1207
f7321c06
JB
12082002-07-23 Jim Blandy <jimb@redhat.com>
1209
1210 * parser-defs.h (expression_context_pc): Make this extern.
1211 (Thanks to Michael Snyder.)
1212
2037aebb
AC
12132002-07-23 Andrew Cagney <ac131313@redhat.com>
1214
1215 GDB 5.2.1 released from 5.2 branch.
1216 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1217 * README: Update to mention 5.2.1.
1218
66504d44
MS
12192002-07-23 Mark Salter <msalter@redhat.com>
1220
1221 * remote.c (remote_read_bytes): Fix check for error.
1222
27bae383
KB
12232002-07-22 Kevin Buettner <kevinb@redhat.com>
1224
1225 * aix-thread.c (language.h): Include.
1226 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1227 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1228 Print newlines at end of debug messages.
1229 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1230 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1231
12322002-07-22 Kevin Buettner <kevinb@redhat.com>
1233
1234 * aix-thread.c (ppc-tdep.h): Include.
1235 (special_register_p): New function.
1236 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1237 (store_regs_user_thread): Use register number information from
1238 gdbarch_tdep struct instead of hardcoded offsets relative to
1239 FIRST_UISA_SP_REGNUM.
1240 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1241 special_register_p() instead of using FPLAST_REGNUM and
1242 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1243 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1244 will be MQ's register number.
1245
12462002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1247
1248 * aix-thread.c (ops): Rename to aix_thread_ops.
1249 (base_ops): Rename to base_target.
1250 (ops_attach): Rename to aix_thread_attach.
1251 (ops_detach): Rename to aix_thread_detach.
1252 (ops_resume): Rename to aix_thread_detach.
1253 (ops_wait): Rename to aix_thread_wait.
1254 (ops_kill): Rename to aix_thread_kill.
1255 (init_ops): Rename to init_aix_thread_ops.
1256 (ops_fetch_register): Rename to aix_thread_fetch_register.
1257 (ops_store_register): Rename to aix_thread_store_register.
1258 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1259 (ops_thread_alive): Rename to aix_thread_thread_alive.
1260 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1261 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1262 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1263 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1264 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1265 (store_regs_lib): Rename to store_regs_user_thread.
1266 (store_regs_kern): Rename to store_regs_kernel_thread.
1267
27bae383 12682002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1269
1270 * aix-thread.c (ops_prepare_to_store): Eliminate.
1271 (init_ops): Don't initialize ops.prepare_to_store.
1272 (store_regs_kern): Pre-fetch register buffers from child,
1273 because some registers may not be in the cache. Copy
1274 regs from register cache only if they are cached.
1275 (store_regs_lib): Copy regs from register cache only
1276 if they are cached.
1277 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1278 fill_gprs64): Ditto.
1279
61c5da0b
KB
12802002-07-22 Kevin Buettner <kevinb@redhat.com>
1281
1282 * aix-thread.c (gdb_assert.h): Include.
1283 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1284 register sizes (from register cache) match size of buffer holding
1285 register data.
1286 (fill_sprs32): Change parameter types to match those in the ptrace()
1287 buffer.
1288 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1289 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1290
12912002-07-22 Michael Snyder <msnyder@redhat.com>
1292
1293 * aix-thread.c (supply_sprs64): Cosmetic change.
1294 (supply_sprs32): Cosmetic change.
1295 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1296 (fill_sprs64): Use regcache_collect instead of read_register.
1297 (store_regs_lib): Use regcache_collect instead of
1298 read_register. Use fill_sprs32 instead of fill_sprs64,
1299 if debugging a 32-bit architecture.
1300 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1301 out of the register cache, instead of passing a pointer into
1302 the register cache directly to ptrace. Use regcache_collect
1303 insteaad of read_register.
1304 (ops_prepare_to_store): Use target_read_registers instead
1305 of read_register_bytes.
1306
36479eb1
AS
13072002-07-20 Aidan Skinner <aidan@velvet.net>
1308
1309 * MAINTAINERS: Add self under write after approval.
1310
80ae6ee2
AS
13112002-07-20 Aidan Skinner <aidan@velvet.net>
1312
1313 * ada-tasks.c: Change k&r style function definitions to prototyped
1314 form.
1315
8a8ab2b9
AC
13162002-07-19 Andrew Cagney <ac131313@redhat.com>
1317
1318 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1319 * x86-64-tdep.c: Include "objfiles.h".
1320 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1321 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1322
fb16b900
ML
13232002-07-17 Michal Ludvig <michal@suse.cz>
1324
1325 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1326 (update_context): Initialise cfa variable.
1327
0fe7bf7b
MS
13282002-07-17 Michael Snyder <msnyder@redhat.com>
1329
1330 * aix-thread.c: Shorten some long lines.
1331 Bring comments into line with code spec.
1332
488f131b
JB
13332002-07-18 Joel Brobecker <brobecker@gnat.com>
1334
1335 * infrun.c: Re-indent using gdb_indent.sh.
1336
46c415d2
JB
13372002-07-18 Joel Brobecker <brobecker@gnat.com>
1338
1339 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1340 Leave the indentation temporarily untouched, to minimize the diffs.
1341
cdecafbe
EZ
13422002-07-18 Elena Zannoni <ezannoni@redhat.com>
1343
1344 * stabsread.c: Make os9k sections of the code obsolete,
1345 for real this time.
1346 * stabsread.h: Make os9k sections of the code obsolete.
1347
7b6aa020
ML
13482002-07-18 Michal Ludvig <mludvig@suse.cz>
1349
09ec9b38
ML
1350 * linux-low.c (regsets_store_inferior_registers): Add free()
1351 at the end of a loop to prevent memory leak.
1352 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1353 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1354 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1355 line a comment.
4894ac5d 1356 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1357
233282cd
JB
13582002-07-17 Jim Blandy <jimb@redhat.com>
1359
1360 * macrocmd.c (info_macro_command): Remove newline from error
1361 message.
1362
7b6aa020 13632002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1364
1365 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1366 (sh_gdbarch_init): Use it for sh-dsp.
1367
f7ef9339
KB
13682002-07-16 Kevin Buettner <kevinb@redhat.com>
1369
1370 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1371 64-bit DWARF2 format.
1372
8dd72958
JB
13732002-07-16 Joel Brobecker <brobecker@gnat.com>
1374
1375 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1376 <sys/proc.h> when not available.
1377
a99a9e1b
AC
13782002-07-16 Andrew Cagney <ac131313@redhat.com>
1379
1380 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1381 * stabsread.c: Make os9k sections of the code obsolete.
1382 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1383 * config/i386/i386os9k.mt: Make file obsolete.
1384 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1385 (COMMON_OBS): Remove os9kread.o
1386 (SFILES): Remove os9kread.c.
1387 (os9kread.o, remote-os9k.o): Make target obsolete.
1388 * remote-os9k.c: Make file obsolete.
1389 * os9kread.c: Make file obsolete.
1390 * Makefile.in
1391
7a3085c1
AC
13922002-07-16 Andrew Cagney <ac131313@redhat.com>
1393
1394 * NEWS: Mention that the FR30 has been made obsolete.
1395 * fr30-tdep.c: Make file obsolete.
1396 * config/fr30/tm-fr30.h: Ditto.
1397 * config/fr30/fr30.mt: Ditto.
1398 * configure.tgt: Make fr30-*-elf obsolete.
1399 * MAINTAINERS: Make fr30-elf obsolete.
1400
28a93f5a
PM
14012002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1402
1403 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1404 found is not inside a section.
1405
be006b8b
KB
14062002-07-15 Kevin Buettner <kevinb@redhat.com>
1407
1408 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1409 strerror().
1410 (pdc_realloc): Use xrealloc() instead of realloc().
1411
14fa3751
KB
14122002-07-15 Kevin Buettner <kevinb@redhat.com>
1413
1414 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1415 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1416 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1417 macros.
1418
42cc437f
KB
14192002-07-15 Kevin Buettner <kevinb@redhat.com>
1420
1421 * aix-thread.c (ptrace_check): Eliminate goto.
1422 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1423 problem.
1424
8e2c28d4
KB
14252002-07-15 Kevin Buettner <kevinb@redhat.com>
1426
1427 * aix-thread.c (gdbcmd.h): Include.
1428 (DEBUG, DBG, DBG2, dbg): Eliminate.
1429 (debug_aix_thread): New static global.
1430 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1431 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1432 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1433 invocations to DBG and DBG2 macros to test against
1434 ``debug_aix_thread'' and call fprintf_unfiltered().
1435 (_initialize_aix_thread): Add new command "set debug aix-thread".
1436
30413464
AC
14372002-07-15 Andrew Cagney <ac131313@redhat.com>
1438
1439 From Gerhard Tonn <TON@de.ibm.com>:
1440 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1441 instead of supply_register.
1442
7c43edc1
AC
14432002-07-15 Andrew Cagney <ac131313@redhat.com>
1444
1445 * dwarf2cfi.c: Include "gdb_assert.h".
1446 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1447 non-NULL.
1448 (update_context): Do not use __func__. Add missing ``break''.
1449 (update_context): Do not use __func__.
1450
9364a0ef
EZ
14512002-07-15 Elena Zannoni <ezannoni@redhat.com>
1452
1453 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1454 and its setting. Set gdbarch instruction printing functions
1455 directly. For non-rs6000 case use new function
1456 gdb_print_insn_powerpc.
1457 (gdb_print_insn_powerpc): New function.
1458
3fbeef0b
AC
14592002-07-13 Andrew Cagney <ac131313@redhat.com>
1460
92eb23c5 1461 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1462 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1463 * configure.tgt: Mark d30v-*-* as obsolete.
1464 * d30v-tdep.c: Mark file as obsolete.
1465 * config/d30v/d30v.mt: Ditto.
1466 * config/d30v/tm-d30v.h: Ditto.
1467
aacb1f0a
AS
14682002-07-13 Aidan Skinner <aidan@velvet.net>
1469
1470 * ada-tasks.c (add_task_entry): replace calls to
1471 malloc() with xmalloc
1472 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1473
1474 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1475 ada_finish_decode_line_1, all_sals_for_line
1476 ada_breakpoint_rewrite): replace calls to free() with xfree()
1477
c11d79f2
KB
14782002-07-12 Kevin Buettner <kevinb@redhat.com>
1479
1480 From Nicholas Duffek (with minor changes by Martin Hunt,
1481 Louis Hamilton, and Kevin Buettner):
1482 * aix-thread.c: New file.
1483
8e19ed76
PS
14842002-07-12 Petr Sorfa <petrs@caldera.com>
1485
1486 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1487 complaint for invalid attribute class or form.
1488 (read_func_scope): DW_AT_frame_base
1489 better handling of DW_AT_block*.
1490 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1491 better handling of DW_AT_block*.
1492 (read_common_block): DW_AT_location
1493 better handling of DW_AT_block*.
1494 (read_partial_die): DW_AT_location better handling
1495 of DW_AT_block*.
1496 (new_symbol): DW_AT_external better handling of
1497 DW_AT_block*. Proper initialization of variable
1498 "addr".
1499 (attr_form_is_block): New function that returns true
1500 if the attribute's form is of DW_FORM_block*.
1501
295401f7
DJ
15022002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1503
1504 * valops.c (find_method_list): Remove comment about
1505 removed STATIC_MEMFUNCP argument.
1506 (value_find_oload_method_list): Likewise.
1507
e42dc924
KB
15082002-07-12 Kevin Buettner <kevinb@redhat.com>
1509
1510 From Nicholas Duffek:
1511 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1512 target_new_objfile_hook.
1513
6904b546
KB
15142002-07-12 Kevin Buettner <kevinb@redhat.com>
1515
1516 From Nicholas Duffek:
1517 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1518 csect.
1519
53fe9346
AC
15202002-07-12 Andrew Cagney <cagney@redhat.com>
1521
1522 * MAINTAINERS: Mention --enable-sim-build-warnings.
1523 (m68hc11-elf): Disable sim build warnings.
1524 (m32r-elf): Mark as broken obsolete candidate.
1525 (x86_64-linux-gnu): Mark as buildable with -Werror.
1526 (arm-elf): Change -w to ``,'' which enables warnings but not
1527 -Werror.
1528
af5f3db6
AC
15292002-07-12 Andrew Cagney <ac131313@redhat.com>
1530
1531 * bcache.h: Update copyright.
1532 (struct bstring, struct bcache): Move definition to "bcache.c".
1533 Replaced by opaque declaration.
1534 (bcache_xfree): Replace free_bcache.
1535 (bcache_xmalloc, bcache_memory_used): Declare.
1536
1537 * bcache.c: Update copyright.
1538 (struct bstring, struct bcache): Moved to here from "bcache.h".
1539 Update comments.
1540 (bcache_xmalloc, bcache_memory_used): New functions.
1541 (bcache_xfree): Replace function free_bcache.
1542
1543 * Makefile.in (objfiles.o): Add $(bcache_h).
1544 (objfiles_h): Remove $(bcache_h).
1545 (symfile.o): Add $(bcache_h).
1546
1547 * symmisc.c: Update copyright.
1548 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1549 (print_objfile_statistics): Use bcache_memory_used.
1550
1551 * symfile.c: Include "bcache.h".
1552 (reread_symbols): Use bcache_xfree.
1553 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1554 (add_psymbol_to_list): Pass psymbol_cache by value.
1555 (add_psymbol_with_dem_name_to_list): Ditto.
1556
1557 * objfiles.h: Update copyright.
1558 (struct bcache): Declare opaque. Do not include "bcache.h".
1559 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1560 bcache'' pointers.
1561 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1562
1563 * objfiles.c: Include "bcache.h". Update copyright.
1564 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1565 macro_cache.
1566 (free_objfile): Use bcache_xfree.
1567
444199e7
GS
15682002-07-11 Grace Sainsbury <graces@redhat.com>
1569
1570 * monitor.c (monitor_fetch_register): Make name a constant.
1571 (monitor_store_register): Same.
1572
261397f8
DJ
15732002-07-11 Daniel Jacobowitz <drow@mvista.com>
1574
1575 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1576 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1577 (finish_block) For non-function blocks, hash the symbol table. For
1578 function blocks, mark the symbol table as unhashed.
1579 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1580 (msymbol_hash_iw): Likewise.
1581 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1582 value.
1583 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1584 (lookup_minimal_symbol): Likewise for both.
1585 * symtab.h (struct block): Add `hashtable' flag. Comment the
1586 hashtable.
1587 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1588 (ALL_BLOCK_SYMBOLS): Update.
1589 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1590 (struct symbol): Add `hash_next' pointer.
1591 * symtab.c (lookup_block_symbol): Search using the hash table when
1592 possible.
1593 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1594 (search_symbols, find_addr_symbol): Likewise.
1595
1596 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1597 (read_dst_symtab): Likewise.
1598 * jv-lang.c (get_java_class_symtab): Likewise.
1599 * mdebugread.c: Include "gdb_assert.h".
1600 (shrink_block): Assert that the block being modified is not hashed.
1601 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1602 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1603 symbols.
1604 (dump_symtab): Recognize hashed blocks.
1605 * printcmd.c (print_frame_args): Assert that function blocks do not
1606 have hashed symbol tables.
1607 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1608 (fill_in_ada_prototype, debug_print_block): Likewise.
1609 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1610
6f0eaa01
CV
16112002-07-11 Corinna Vinschen <vinschen@redhat.com>
1612
1613 * stack.c (print_frame): Use result of frame_address_in_block()
1614 instead of fi->pc when evaluating symbols.
1615 (backtrace_command_1): Ditto.
1616
a208b0cb
AC
16172002-07-11 Andrew Cagney <cagney@redhat.com>
1618
1619 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1620 Make static.
1621
1622 * arm-tdep.c (arm_register_name): Make return type constant.
1623
a6b6b089
AC
16242002-07-10 Andrew Cagney <ac131313@redhat.com>
1625
5ae5f592
AC
1626 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1627 prototype.
1628 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1629 * s390-tdep.c (s390_fp_regnum): Ditto.
1630 (s390_read_fp): Ditto.
1631 (s390_pop_frame): Ditto.
1632 (_initialize_s390_tdep): Ditto.
1633 * remote.c (get_remote_state): Ditto.
1634 * procfs.c (mappingflags): Ditto.
1635 * memattr.c (_initialize_mem): Ditto.
1636 * mcore-tdep.c (mcore_pop_frame): Ditto.
1637 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1638 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1639 * language.c (set_case_str): Ditto.
1640 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1641 * frv-tdep.c (new_variant): Ditto.
1642 (frv_stopped_data_address): Ditto.
1643 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1644 (context_alloc): Ditto.
1645 (frame_state_alloc): Ditto.
1646 (unwind_tmp_obstack_init): Ditto.
1647 (unwind_tmp_obstack_free): Ditto.
1648 (cfi_read_fp): Ditto.
1649 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1650 (cris_pop_frame): Ditto.
1651 * c-lang.c (scanning_macro_expansion): Ditto.
1652 (finished_macro_expansion): Ditto.
1653 (c_preprocess_and_parse): Ditto.
1654 * gdbarch.sh: Ditto.
1655 * gdbarch.h, gdbarch.c: Regenerate.
1656 * config/mn10200/tm-mn10200.h: Adjust indentation.
1657 * target.c: Adjust indentation.
1658 * symtab.h: Adjust indentation.
1659 * stabsread.h: Adjust indentation.
1660 * remote-es.c: Adjust indentation.
1661 * os9kread.c: Adjust indentation.
1662
16632002-07-10 Andrew Cagney <ac131313@redhat.com>
1664
a6b6b089
AC
1665 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1666 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1667
a1789893
GS
16682002-07-10 Grace Sainsbury <graces@redhat.com>
1669
1670 * NEWS: Mention m68k, mcore multi-arching.
1671 * MAINTAINERS: Change status of m68k, mcore to reflect
1672 multi-arching.
1673
02f0d45d
DJ
16742002-07-10 Daniel Jacobowitz <drow@mvista.com>
1675
1676 * valops.c (find_overload_match): Free oload_syms.
1677
f15f768e
JB
16782002-07-09 Joel Brobecker <brobecker@gnat.com>
1679
1680 Define HAVE_SYS_PROC_H if sys/proc.h exists
1681 * configure.in: Add check for sys/proc.h
1682 * config.in: Regenerate.
1683 * configure: Regenerate.
1684
902a7139
GS
16852002-07-09 Grace Sainsbury <graces@redhat.com>
1686
1687 * config/m68k/tm-m68k.h: Remove macros wrapped in
1688 #if !GDB_MULTI_ARCH.
1689
82e0fd98
DB
16902002-07-09 David O'Brien <obrien@FreeBSD.org>
1691
1692 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1693 (perror_with_name, remote_close, remote_open, expect, play): Static.
1694
a534e424
AC
16952002-07-08 Andrew Cagney <ac131313@redhat.com>
1696
1697 * config.in, configure: Regenerate.
1698
9b94f7bf
MK
16992002-07-08 Mark Kettenis <kettenis@gnu.org>
1700
1701 * dwarf2cfi.c: Include "gcore.h".
1702 (execute_stack_op): Fix implementation of the
1703 DW_OP_deref and DW_OP_deref_size operators by letting do their
1704 lookup in the target.
1705
1d34db41
MK
17062002-07-07 Mark Kettenis <kettenis@gnu.org>
1707
1708 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1709 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1710 tdep->sc_sp_offset.
1711
79d5b63a
DJ
17122002-07-05 Daniel Jacobowitz <drow@mvista.com>
1713
1714 Fix PR gdb/595, gdb/602
1715 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1716 Don't call value_cast, just read the vtable pointer; update comments
1717 to match.
1718
3bb912e8
GS
17192002-07-05 Grace Sainsbury <graces@redhat.com>
1720
1721 * config/mcore/tm-mcore.h: Remove file.
1722 * config/mcore/mcore.mt: Remove definition of TM_FILE
1723 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1724
ca39387d
MK
17252002-07-05 Mark Kettenis <kettenis@gnu.org>
1726
1727 * i386bsd-tdep.c: Include "gdb_string.h".
1728
efdc1108
GS
17292002-07-04 Grace Sainsbury <graces@redhat.com>
1730
1731 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1732 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1733 mcore-tdep.
1734 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1735 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1736 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1737 (RETVAL_REGNUM): Move macros from tm-mcore.h
1738 (mcore_reg_struct_has_addr): New function.
1739 (mcore_gdbarch_init): Added initializations for the macros removed
1740 from tm-mcore.h.
1741
bb21884d
MK
17422002-07-04 Mark Kettenis <kettenis@gnu.org>
1743
1744 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1745 traditonal string branding within the ELF header.
1746
228c6d41
DJ
17472002-07-04 Daniel Jacobowitz <drow@mvista.com>
1748
1749 * symtab.c (remove_params): New function.
1750 (make_symbol_overload_list): Use it instead of cplus_demangle.
1751 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1752
2404952e
MK
17532002-07-04 Mark Kettenis <kettenis@gnu.org>
1754
e5e4acad
MK
1755 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1756
baadce09
MK
1757 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1758 New variables.
1759 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1760 and tdep->sigtramp_end.
1761 * i386obsd-nat.c: New file.
1762 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1763
2404952e
MK
1764 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1765 Don't call get_current_frame().
1766
9b4f1ba7
PM
17672002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1768
1769 * i386-nat.c (child_post_startup_inferior): New function
1770 calling i386_cleanup_dregs if
1771 I386_USE_GENERIC_WATCHPOINTS is defined.
1772 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1773 conditional to acknowledge that i386-nat.c has its
1774 own child_post_startup_inferior function.
1775
c0d1d883
MK
17762002-07-04 Mark Kettenis <kettenis@gnu.org>
1777
00f8375e
MK
1778 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1779 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1780 instead of MAX_REGISTER_RAW_SIZE.
1781 (i386_extract_return_value, i386_extract_struct_value_address):
1782 Convert to use regcache.
1783 (i386_gdbarch_init): Set max_register_raw_size and
1784 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1785 Set extract_return_value and extract_struct_value_address instead
1786 of their deprecated variants.
1787
c0d1d883
MK
1788 Convert i386 target to generic dummy frames.
1789 * i386-tdep.c: Include "symfile.h".
1790 (i386_frameless_signal_p): Consider a function to be frameless if
1791 the pc points at the first instruction of the function.
1792 (i386_frame_chain): Handle (generic) call dummies.
1793 (i386_frame_saved_pc): Likewise.
1794 (i386_frame_init_saved_regs): Remove code dealing with call
1795 dummies on the stack.
1796 (i386_push_dummy_frame): Removed.
1797 (i386_call_dummy_words): Removed.
1798 (i386_fix_call_dummy): Removed.
1799 (i386_push_return_address): New function.
1800 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1801 parameter, and don't call get_current_frame.
1802 (i386_pop_frame): New function.
1803 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1804 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1805 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1806 call_dummy_length to 0, set call_dummy_words to NULL, set
1807 sizeof_call_dummy_words to 0, set fix_call_dummy to
1808 generic_fix_call_dummy, set pc_in_call_dummy to
1809 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1810 generic_push_dummy_frame, set push_return_address to
1811 i386_push_return_address and set frame_chain_valid to
1812 generic_file_frame_chain_valid.
1813
638c1580
ML
18142002-07-04 Michal Ludvig <mludvig@suse.cz>
1815
1816 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1817 byte offsets instead of an array of indexes.
1818 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1819
049ee0e4
AC
18202002-07-03 Andrew Cagney <ac131313@redhat.com>
1821
1822 * gdbarch.sh (struct regcache): Add opaque declaration.
1823 (EXTRACT_RETURN_VALUE): New architecture method.
1824 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1825 * gdbarch.h, gdbarch.c: Regenerate.
1826 * arch-utils.c (legacy_extract_return_value): New function.
1827 * arch-utils.h (legacy_extract_return_value): Declare.
1828 * values.c (value_being_returned): Re-enable code handling
1829 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1830 deprecated_grub_regcache_for_registers call to block handling
1831 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1832 (EXTRACT_RETURN_VALUE): Do not define.
1833
4e0d9804
GS
18342002-07-03 Grace Sainsbury <graces@redhat.com>
1835
1836 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1837 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1838 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1839 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1840 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1841 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1842 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1843 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1844 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1845 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1846 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1847 argument so the function fits the prototype in the architecture
1848 vector.
1849 (mcore_pop_frame): Remove argument so the function fits the
1850 prototype. Use get_current_frame instead of the argument.
1851 (mcore_push_arguments): Change type of struct_return so the
1852 function can be used in the architecture vector.
1853 (mcore_store_struct_return): Add.
1854 (mcore_frame_init_saved_regs): Add.
1855 (mcore_gdbarch_init): Add function calls to replace the macros
1856 removed from tm-mcore.h
1857
36160dc4
AC
18582002-07-03 Andrew Cagney <ac131313@redhat.com>
1859
1860 * infcmd.c (print_return_value): Remove compatibility code calling
1861 deprecated_grub_regcache_for_registers.
1862
1863 * values.c: Include "regcache.h".
1864 (value_being_returned): Update. Use
1865 deprecated_grub_regcache_for_registers to extract the register
1866 buffer address.
1867 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1868 ``struct regcache''.
1869 * Makefile.in (values.o): Add dependency on $(regcache_h).
1870
1871 * inferior.h (run_stack_dummy): Change type of second parameter to
1872 a ``struct regcache''.
1873 * valops.c (hand_function_call): Change type of retbuf to ``struct
1874 regcache''. Allocate using regcache_xmalloc, clean using
1875 make_cleanup_regcache_xfree.
1876 * infcmd.c (run_stack_dummy): Update. Use
1877 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1878
1879 * regcache.c (do_regcache_xfree): New function.
1880 (make_cleanup_regcache_xfree): New function.
1881 * regcache.h (make_cleanup_regcache_xfree): Declare.
1882
e64d9b3d
MH
18832002-07-03 Martin M. Hunt <hunt@redhat.com>
1884
4dd79c29
MH
1885 * event-top.c (command_line_handler): Don't read past
1886 beginning of buffer.
e64d9b3d 1887
4dd79c29
MH
18882002-07-03 Martin M. Hunt <hunt@redhat.com>
1889
e64d9b3d
MH
1890 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1891 struct frame_id.
1892 (varobj_create): Store frame_id for root.
1893 (varobj_gen_name): Use xasprintf.
1894 (varobj_update): Save and restore frame using get_frame_id() and
1895 frame_find_by_id().
1896 (create_child): Use xasprintf.
1897 (new_root_variable): Initialize frame_id.
1898 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1899 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1900 to prevent memory leak.
1901
26e6c56a
AC
19022002-07-03 Andrew Cagney <ac131313@redhat.com>
1903
1904 * valops.c (hand_function_call): Move declaration of retbuf to
1905 start of function, allocate using malloc, add a cleanup but before
1906 the inf_status cleanup, cleanup the buffer. Rename local variable
1907 old_chain to inf_status_cleanup.
1908
f436dd25
MH
19092002-07-03 Martin M. Hunt <hunt@redhat.com>
1910
1911 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1912
1913 * cli/cli-decode.c (cmd_func_p): New function.
1914 (cmd_func): New function.
1915
1916 * command.h: Add cmd_func() and cmd_func_p().
1917
4cfe2084
GS
19182002-07-03 Grace Sainsbury <graces@redhat.com>
1919
1920 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1921 (REGISTER_SIZE): Remove.
1922 (MAX_REGISTER_RAW_SIZE): Remove.
1923 (REGISTER_VIRTUAL_TYPE): Remove.
1924 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1925 (REGISTER_NAME): Remove.
1926 (USE_GENERIC_DUMMY_FRAMES): Remove.
1927 (CALL_DUMMY): Remove.
1928 (CALL_DUMMY_START_OFFSET): Remove.
1929 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1930 (CALL_DUMMY_LOCATION): Remove.
1931 (FIX_CALL_DUMMY): Remove.
1932 (CALL_DUMMY_ADDRESS): Remove.
1933 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1934 (SAVE_DUMMY_FRAME_TOS): Remove.
1935 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1936 (mcore_register_virtual_type): New function.
1937 (mcore_register_byte): New function.
1938 (mcore_register_size): New function.
1939 (mcore_register_name): New function.
1940 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1941 macros removed from tm-mcore.h.
1942 (mcore_dump_tdep): Add.
1943 (_initialize_mcore_tdep): Add gdbarch_register call.
1944
4fd667e9
MK
19452002-07-03 Mark Kettenis <kettenis@gnu.org>
1946
1947 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1948 frameless_look_for_prologue, such that we actually call this
1949 function.
1950
42f99ac2
JB
19512002-07-02 Joel Brobecker <brobecker@gnat.com>
1952
1953 * frame.h (frame_address_in_block): New function.
1954
1955 * blockframe.c (frame_address_in_block): New function extracted
1956 from get_frame_block().
1957 (get_frame_block): Use frame_address_in_block().
1958 (block_innermost_frame): Use frame_address_in_block() to match
1959 the frame pc address against the block boundaries rather than
1960 the frame pc directly. This prevents a failure when a frame pc
1961 is actually a return-address pointing immediately after the end
1962 of the given block.
1963
103a1597 19642002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
1965
1966 * MAINTAINERS: Add self under write after approval.
1967
19682002-07-02 Grace Sainsbury <graces@redhat.com>
1969
103a1597
GS
1970 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1971 used in architecture vector. The default is
1972 m68k_local_breakpoint_from_pc.
1973 (m68k_local_breakpoint_from_pc): Add.
1974 (enum): Add register numbers from tm-m68k.h.
1975 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1976 vector.
1977 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1978 GDB_MULTI_ARCH_PARTIAL.
1979 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1980 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1981 m68k-tdep.c.
1982 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1983 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1984 to enum in m68k-tdep.c
1985
7a5a0534
JB
19862002-07-02 Joel Brobecker <brobecker@gnat.com>
1987
1988 * solib-osf.c (open_map): Compute the list of shared libraries
1989 loaded by the inferior, rather than the list of libraries loaded
1990 by GDB itself. Otherwise, GDB ends up reading the symbols from
1991 the wrong shared libraries...
1992
6f558d74
MK
19932002-07-02 Mark Kettenis <kettenis@gnu.org>
1994
b7d15bf7
MK
1995 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1996 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1997 macros.
1998 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1999 Remove functions.
2000 (FRAMELESS_SIGNAL): Remove function.
2001 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2002 i386_linux_saved_pc_after_call): Removed.
2003 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2004 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2005 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2006
6bff26de
MK
2007 * i386-tdep.c (i386_frameless_signal_p): New function.
2008 (i386_frame_chain): Deal with frameless signals.
2009 (i386_sigtramp_saved_sp): New function.
2010 (i386_frame_saved_pc): Deal with frameless signals.
2011 (i386_saved_pc_after_call): Make sure the correct value is
2012 returned just after entry into a sigtramp.
2013 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2014 i386fbsd4_sc_sp_offset): New variables.
2015 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2016 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2017 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2018 similiar to what we already did for sc_pc_offset.
2019 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2020 tdep->sc_sp_offset.
2021
6f558d74
MK
2022 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2023
145564b7
ML
20242002-07-02 Michal Ludvig <mludvig@suse.cz>
2025
2026 * config/i386/tm-x86-64linux.h: New.
2027 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2028 definitions.
2029 * config/i386/nm-x86-64.h: Rename to ...
2030 * config/i386/nm-x86-64linux.h: ... this one.
2031 * config/i386/x86-64linux.mh: Reflect the above change.
2032
3a1e71e3
MK
20332002-07-01 Mark Kettenis <kettenis@gnu.org>
2034
21d0e8a4
MK
2035 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2036 with sigcontext_addr. Add sc_sp_offset.
2037 (i386bsd_sigtramp_saved_pc): Remove prototype.
2038 (i386bsd_sicontext_addr): Add prototype.
2039 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2040 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2041 (i386_svr4_sigtramp_saved_pc): Removed.
2042 (i386_svr4_sigcontext_addr): New function.
2043 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2044 Initialize tdep->sigcontext_addr instead. Initialize
2045 tdep->sc_pc_offset and tdep->sc_sp_offset.
2046 (i386_gdbarch_init): Likewise.
2047 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2048 any more.
2049 (i386bsd_sigtramp_saved_pc): Remove function.
2050 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2051 Initialize tdep->sigcontext_addr instead. Initialize
2052 tdep->sc_pc_offset.
2053 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2054 of tdep->sigtramp_saved_pc.
2055 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2056 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2057 instead.
2058
3a1e71e3
MK
2059 * i386-tdep.c (i386_frameless_function_invocation,
2060 i386_frame_num_args, i386_frame_init_saved_regs,
2061 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2062 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2063 i386_extract_return_value, i386_store_return_value,
2064 i386_extract_struct_value_address, i386_register_virtual_type,
2065 i386_register_convertible, i386_register_convert_to_virtual,
2066 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2067 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2068 static.
2069
52e9098c
MK
20702002-07-01 Mark Kettenis <kettenis@gnu.org>
2071
77b13a25
MK
2072 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2073
52e9098c
MK
2074 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2075 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2076 this macro. Include "value.h".
2077
1b372fff
AS
20782002-06-30 Aidan Skinner <aidan@velvet.net>
2079
2080 * ada-exp.tab.c: remove as it's a generated file
2081 * ada-lex.c: remove as it's a generated file
2082
9c5045b5
MK
20832002-06-30 Mark Kettenis <kettenis@gnu.org>
2084
4a93c5bb
MK
2085 * config/i386/tm-i386.h (struct frame_info, struct
2086 frame_saved_regs, struct value, struct type): Remove forward
2087 declarations.
2088
322d4fe0
MK
2089 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2090 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2091 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2092 (FILL_FPXREGSET): Define.
2093
fdd8263d
MK
2094 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2095
482e577b
MK
2096 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2097 i[3456]86-*-netbsd* case.
2098 * config/i386/tm-obsd.h: Removed.
2099 * config/i386/obsd.mt: Removed.
2100 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2101 core-aout.o.
2102 (MH_CFLAGS): Add -DYYDEBUG=0.
2103
6916549a
MK
2104 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2105 i386nbsd_sc_pc_offset on OpenBSD too.
2106
9c5045b5
MK
2107 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2108 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2109 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2110 define.
2111 * i386bsd-tdep.c: Include "arch-utils.h".
2112 (i386bsd_aout_in_solib_call_trampoline): New function.
2113 (i386bsd_init_abi): Set in_solib_call_trampoline to
2114 i386bsd_aout_in_solib_call_trampoline.
2115 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2116 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2117
aa84d1bb
AC
21182002-06-28 Andrew Cagney <ac131313@redhat.com>
2119
2120 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2121 (struct obstack, struct bcache): Add opaque declarations.
2122 * Makefile.in (macrotab_h): Update
2123
b4d83933
AC
21242002-06-28 Andrew Cagney <ac131313@redhat.com>
2125
2126 * blockframe.c (generic_find_dummy_frame): Change return type to
2127 ``struct regcache''.
2128 (struct dummy_frame): Replace field ``registers'' with regcache, a
2129 struct regcache object.
2130 (generic_find_dummy_frame): Update.
2131 (generic_push_dummy_frame): Update. Use regcache_xfree,
2132 regcache_xmalloc and regcache_cpy.
2133 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2134 regcache_xfree.
2135 (deprecated_generic_find_dummy_frame): Update.
2136 (generic_read_register_dummy): Update. Use
2137 regcache_read_as_address.
2138 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2139 (generic_get_saved_register): Update. Use regcache_read.
2140
08c0b5bc
AC
21412002-06-28 Andrew Cagney <ac131313@redhat.com>
2142
2143 * Makefile.in (objfiles_h): Add $(bcache_h).
2144 * objfiles.h: Include "bcache.h".
2145
2146 * Makefile.in (symtab_h): Remove $(bcache_h).
2147 * symtab.h: Do not include "bcache.h".
2148
1f89801a
AC
21492002-06-28 Andrew Cagney <ac131313@redhat.com>
2150
2151 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2152 generic_func_frame_chain_valid.
2153
b9644b58
DB
21542002-06-28 David O'Brien <obrien@FreeBSD.org>
2155
2156 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2157 * config/i386/tm-fbsd.h: Likewise.
2158
dd486634
AC
21592002-06-28 Andrew Cagney <ac131313@redhat.com>
2160
2161 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2162 generic_unwind_get_saved_register.
2163
0b434a00
AC
21642002-06-27 Andrew Cagney <ac131313@redhat.com>
2165
2166 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2167 * regcache.c (supply_register): Add missing argument to
2168 register_buffer call.
2169
f30e5a77
AC
21702002-06-27 Andrew Cagney <ac131313@redhat.com>
2171
2172 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2173 Solaris /bin/grep does not not like it. From Peter Schauer.
2174
9f064c95
TT
21752002-06-26 Tom Tromey <tromey@redhat.com>
2176
2177 * command.h (add_setshow_cmd): Declare.
2178 (add_setshow_cmd_full): Declare.
2179 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2180 returns void. Use add_setshow_cmd_full.
2181 (add_setshow_cmd_full): New function.
2182 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2183 (add_setshow_boolean_cmd): Likewise.
2184
099c7589
JT
21852002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2186
2187 * config/vax/tm-vax.h: Protect from multiple inclusion.
2188 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2189 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2190 * config/vax/tm-vaxbsd.h: ...here. New file.
2191 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2192
1d049c5e
JT
21932002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2194
2195 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2196 (BELIEVE_PCC_PROMOTION): Remove.
2197 (AP_REGNUM): Move to...
2198 * config/vax/nm-vax.h: ...here.
2199 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2200 (vax_breakpoint_from_pc): New function.
2201 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2202 and gdbarch_believe_pcc_promotion.
2203
4791e091
JT
22042002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2205
2206 * Makefile.in (vax_tdep_h): Define.
2207 (vax-tdep.o): Use $(vax_tdep_h).
2208 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2209 (vax_dump_tdep): New function.
2210 (_initialize_vax_tdep): Register vax_dump_tdep.
2211 * vax-tdep.h: Include osabi.h.
2212 (struct gdbarch_tdep): New.
2213
da130f98
AC
22142002-06-26 Andrew Cagney <cagney@redhat.com>
2215
2216 * frame.h (deprecated_generic_find_dummy_frame): Rename
2217 generic_find_dummy_frame.
2218 * blockframe.c (generic_find_dummy_frame): Make static.
2219 (deprecated_generic_find_dummy_frame): New function.
2220 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2221 generic_find_dummy_frame with deprecated_find_dummy_frame.
2222 (sh64_nofp_frame_init_saved_regs): Ditto.
2223 (sh_fp_frame_init_saved_regs): Ditto.
2224 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2225 (s390_frame_chain): Ditto.
2226 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2227
6300c360
GS
22282002-06-26 Grace Sainsbury <graces@redhat.com>
2229
2230 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2231 gdbarch vector are at the top.
2232 (NUM_REGS): Remove.
2233 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2234 (FRAME_ARGS_ADDRESS): Remove.
2235 (FRAME_LOCALS_ADDRESS): Remove.
2236 (FRAME_NUM_ARGS): Remove.
2237 (FRAME_ARGS_SKIP): Remove.
2238 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2239 (m68k_gdbarch_init): Add gdbarch initializations for macros
2240 undefined in tm-m68k.h
2241
1c617db8
GS
22422002-06-26 Grace Sainsbury <graces@redhat.com>
2243
2244 * monitor.h: Add the function regname to monitor_ops
2245 structure. This way NUM_REGS does not have to be a constant.
2246 * monitor.c (monitor_fetch_register): Added support for regname
2247 function. The function is called if the array regnames is NULL.
2248 (monitor_store_register): Same.
da130f98
AC
2249 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2250 regnames array.
1c617db8
GS
2251 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2252 cpu32bug_cmds.regname to point to new function.
2253 * abug-rom.c (abug_regname): Same as above.
2254 (init_abug_cmds): Same.
2255 * dbug-rom.c (dbug_regname): Same as above.
2256 (init_dbug_cmds): Same.
2257 * remote-est.c (est_regname): Same.
2258 (init_est_cmds): Same.
2259 * rom68k-rom.c (rom68k_regname): Same.
2260 (init_rom68k_cmds): Same.
2261
ea9365bb
TT
22622002-06-25 Tom Tromey <tromey@redhat.com>
2263
2264 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2265
72cec141
AC
22662002-06-25 Andrew Cagney <cagney@redhat.com>
2267
2268 * infrun.c (stop_registers): Change variable's type to ``struct
2269 regcache'''.
2270 (xmalloc_inferior_status): Delete function.
2271 (free_inferior_status): Delete function.
2272 (normal_stop): Use regcache_cpy.
2273 (struct inferior_status): Change type of fields ``stop_registers''
2274 and ``registers'' to ``struct regcache''.
2275 (write_inferior_status_register): Use regcache_write.
2276 (save_inferior_status): Instead of calling
2277 xmalloc_inferior_status, allocate the inf_status buffer directly.
2278 Use regcache_dup_no_passthrough and regcache_dup to save the
2279 buffers.
2280 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2281 Replace the stop_registers regcache instead of overriding it. Use
2282 regcache_xfree. Instead of calling free_inferior_status, xfree
2283 the buffer directly.
2284 (discard_inferior_status): Use regcache_xfree. Instead of calling
2285 free_inferior_status, xfree the buffer directly.
2286 (build_infrun): Use regcache_xmalloc.
2287 (_initialize_infrun): Delete redundant call to build_infrun.
2288
2289 * Makefile.in (infcmd.o): Add $(regcache_h).
2290
2291 * infcmd.c: Include "regcache.h".
2292 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2293 obtain the address of `stop_registers' register buffer.
2294 (print_return_value): Ditto.
2295
2296 * inferior.h (struct regcache): Add opaque declaration.
2297 (stop_registers): Change variable's declared type to ``struct
2298 regcache''.
2299
defc6f8c
TT
23002002-06-24 Tom Tromey <tromey@redhat.com>
2301
c0e624e7
TT
2302 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2303 * target.c (initialize_targets): Fixed typo in
2304 trust-readonly-sections `show' documentation.
2305
defc6f8c
TT
2306 * main.c: Marked all strings with _().
2307
2b236d82
DH
23082002-06-24 Don Howard <dhoward@redhat.com>
2309
2310 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2311 that means max CORE_ADDR+1.
2312 (lookup_mem_region): Ditto.
2313 (mem_info_command): Ditto.
2314
942dc0e9
GS
23152002-06-24 Grace Sainsbury <graces@redhat.com>
2316
2317 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2318 (REGISTER_BYTES_OK): Remove.
2319 (REGISTER_BYTES): Remove.
2320 (STORE_STRUCT_RETURN): Remove.
2321 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2322 (STORE_RETURN_VALUE): Remove.
2323 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2324 (FRAME_CHAIN): Remove.
2325 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2326 (FRAME_SAVED_PC): Remove.
2327 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2328 (m68k_store_struct_return): Add.
2329 (m68k_deprecated_extract_return_value): Add.
2330 (m68k_deprecated_extract_struct_value_address): Add.
2331 (m68k_store_return_value): Add.
2332 (m68k_frame_chain): Add.
2333 (m68k_frameless_function_invocation): Add.
2334 (m68k_frame_saved_pc): Add.
2335 (m68k_gdbarch_init): added set_gdbarch calls for new
2336 functions and deleted macros.
2337
03c30d4d
TT
23382002-06-23 Tom Tromey <tromey@redhat.com>
2339
2340 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2341 (ALLDEPFILES): Likewise.
2342 (udiheaders): Removed.
2343 (udip2soc.o): Likewise.
2344 (udi2go32.o): Likewise.
2345 (udr.o): Likewise.
2346 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2347
37e71372
AC
23482002-06-22 Andrew Cagney <ac131313@redhat.com>
2349
06a6ac57
AC
2350 * infrun.c (_initialize_infrun): Delete unnecessary call to
2351 build_infrun.
2352
37e71372
AC
2353 * regcache.h: Update comments describing the regcache_cpy family
2354 of functions.
2355 (regcache_save, regcache_restore): Delete declaration.
2356 (regcache_save_no_passthrough): Delete declaration.
2357 (regcache_restore_no_passthrough): Delete declaration.
2358 * regcache.c (regcache_save): Delete function.
2359 (regcache_save_no_passthrough): Delete function.
2360 (regcache_restore): Delete function.
2361 (regcache_restore_no_passthrough): Delete function.
2362
78f6d055
AC
23632002-06-21 Andrew Cagney <ac131313@redhat.com>
2364
2365 * config/m68k/tm-m68k.h: Fix typo.
2366 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2367 (m68k_frame_init_saved_regs): Declare.
2368
78b119cb
JB
23692002-06-21 Jim Blandy <jimb@redhat.com>
2370
2371 Remove some vestiges of Harris 88k support.
2372 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2373 register numbering quirk.
2374 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2375 odd symbols occurring in Harris 88k ELF targets.
2376
0fbb3da7
TT
23772002-06-21 Tom Tromey <tromey@redhat.com>
2378
2379 * gdb_locale.h: New file.
2380 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2381 (defs_h): Added gdb_locale.h.
2382 * configure, config.in: Rebuilt.
2383 * configure.in (PACKAGE): Define.
2384 * defs.h: Include gdb_locale.h.
2385 * main.c (captured_main): Call setlocale, bindtextdomain,
2386 textdomain.
2387
456f8b9d
DB
23882002-06-21 Dave Brolley <brolley@redhat.com>
2389
2390 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2391 * config/frv/frv.mt: New file.
2392 * config/frv/tm-frv.h: New file.
2393 * configure.tgt: Support frv-*-*.
2394 * Makefile.in (frv-tdep.o): New target.
2395 * frv-tdep.c: New file.
2396 * NEWS: Mention frv.
2397
cdd463f9
DB
23982002-06-21 Dave Brolley <brolley@redhat.com>
2399
2400 * MAINTAINERS: Add self to "Write After Approval" list.
2401
5d3ed2e3
GS
24022002-06-21 Grace Sainsbury <graces@redhat.com>
2403
2404 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2405 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2406 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2407 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2408 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2409
2410 * m68k-tdep.c: Include arch-utils.h
2411 (m68k_register_raw_size): Add.
2412 (m68k_register_virtual_size): Add.
2413 (m68k_register_virtual_type): Add.
2414 (m68k_register_name): Add.
2415 (m68k_stack_align): Add.
2416 (m68k_register_byte): Add.
2417 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2418 tm-m68k.h.
2419
7f8e7424
GS
24202002-06-21 Grace Sainsbury <graces@redhat.com>
2421
a2c6a6d5 2422 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2423 m68k_find_saved_regs.
2424 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2425 references to it with frame->saved_regs.
7f8e7424
GS
2426 (m68k_gdbarch_init): Added function calls to initialize the
2427 gdbarch structure.
a2c6a6d5
GS
2428 (m68k_fix_call_dummy): Add.
2429 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2430 (CALL_DUMMY): Remove.
2431 (CALL_DUMMY_LENGTH): Remove.
2432 (CALL_DUMMY_START_OFFSET): Remove.
2433 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2434 (FIX_CALL_DUMMY): Remove.
2435 (PUSH_DUMMY_FRAME): Remove.
2436 (POP_FRAME): Remove.
7f8e7424 2437
f461f5cf
PM
24382002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2439
2440 * parse.c (parse_fprintf): New function used to avoid calls to
2441 fprintf in bison parser generated debug code.
2442 * parser-defs.h: Declaration of new parse_fprintf function.
2443 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2444 Set YYDEBUG to 1 by default.
2445 Set YYFPRINTF as parse_fprintf.
2446
7f0c12ed
ML
24472002-06-21 Michal Ludvig <mludvig@suse.cz>
2448
2449 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2450 encoding anymore.
2451 (pointer_encoding, enum ptr_encoding): New.
2452 (execute_cfa_program): Take care about pointer encoding.
2453 (dwarf2_build_frame_info): Only call parse_frame_info for
2454 .debug_frame and .eh_frame.
2455 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2456 fixed augmentation handling, added relative addressing,
2457 ignore duplicate FDEs. Added comments.
19d833a2 2458 * dwarf2cfi.c: Reindented.
7f0c12ed 2459
87c4a039
EZ
24602002-06-20 Elena Zannoni <ezannoni@redhat.com>
2461
2462 * event-top.c (command_handler): Don't use space_at_cmd_start
2463 unless there is sbrk() on the host. Assign time and space data
2464 to union fields of the appropriate length.
2465
1cf877ad
ML
24662002-06-20 Michal Ludvig <mludvig@suse.cz>
2467
2468 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2469 x86_64_register_name. Return type changed to 'const char *'.
2470 (x86_64_register_name2nr): Rename to x86_64_register_number.
2471 (x86_64_gdbarch_init): Update to reflect the change.
2472 * x86-64-tdep.h: Ditto.
2473 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2474 (supply_fpregset): Ditto.
2475
3fadccb3
AC
24762002-06-19 Andrew Cagney <cagney@redhat.com>
2477
2478 * regcache.h: Update copyright.
2479 (struct regcache, struct gdbarch): Add opaque declarations.
2480 (current_regcache): Declare global variable.
2481 (regcache_read, regcache_write): Add gdbarch parameter.
2482 (regcache_save, regcache_save_no_passthrough)
2483 (regcache_restore, regcache_restore_no_passthrough)
2484 (regcache_dup, regcache_dup_no_passthrough)
2485 (regcache_cpy, regcache_cpy_no_passthrough)
2486 (deprecated_grub_regcache_for_registers)
2487 (deprecated_grub_regcache_for_register_valid)
2488 (regcache_valid_p): Add function declarations.
2489
2490 * regcache.c: Update copyright.
2491 (regcache_descr_handle): New global variable.
2492 (struct regcache_descr): Define.
2493 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2494 (regcache_descr, xfree_regcache_descr): New functions.
2495 (struct regcache): Define.
2496 (regcache_xmalloc, regcache_xfree): New functions.
2497 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2498 (regcache_dup, regcache_dup_no_passthrough): New functions.
2499 (regcache_valid_p, regcache_read_as_address): New functions.
2500 (deprecated_grub_regcache_for_registers): New function.
2501 (deprecated_grub_regcache_for_register_valid): New function.
2502 (current_regcache): New global variable.
2503 (register_buffer): Add regcache parameter. Update calls.
2504 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2505 (read_register_gen, write_register_gen): Update register_buffer
2506 call. Test for legacy_p instead of gdbarch_register_read_p or
2507 gdbarch_register_write_p.
2508 (regcache_collect): Update register_buffer call.
2509 (build_regcache): Rewrite. Use deprecated grub functions.
2510 (regcache_save, regcache_save_no_passthrough): New functions.
2511 (regcache_restore, regcache_restore_no_passthrough): New
2512 functions.
2513 (_initialize_regcache): Create the regcache_data_handle. Swap
2514 current_regcache global variable.
2515
2516 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2517 parameter to regcache_read and regcache_write calls.
2518 (sh4_register_read): Ditto.
2519 (sh64_pseudo_register_read): Ditto.
2520 (sh64_register_read): Ditto.
2521 (sh_pseudo_register_write): Ditto.
2522 (sh4_register_write): Ditto.
2523 (sh64_pseudo_register_write): Ditto.
2524 (sh64_register_write): Ditto.
2525
2526 * defs.h (XCALLOC): Define.
2527
152d9db6
GS
25282002-06-19 Grace Sainsbury <graces@redhat.com>
2529
2530 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2531 * m68k-tdep.c (m68k_gdbarch_init): Added.
2532 (m68k_dump_tdep): Added.
2533
170911c7
DJ
25342002-06-19 Daniel Jacobowitz <drow@mvista.com>
2535
2536 * ada-lang.c (fill_in_ada_prototype): Update comment.
2537
2e4ebe70
DJ
25382002-06-19 Daniel Jacobowitz <drow@mvista.com>
2539
2540 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2541 MIPS_ABI_LAST.
2542 (mips_abi_string, mips_abi_strings): New.
2543 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2544 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2545 tdep->mips_abi_string. Honor mips_abi_string. Default to
2546 O32 if no ABI is found.
2547 (mips_dump_tdep): Use mips_abi_strings.
2548 (mips_abi_update): New function.
2549 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2550 ``set mips abi'' and ``show mips abi''. Check the size of
2551 mips_abi_strings.
2552
16775908
AC
25532002-06-19 Andrew Cagney <cagney@redhat.com>
2554
2555 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2556 constant.
2557
5051bfa4 25582002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2559
5051bfa4
JB
2560 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2561 current frame using only the first stack size adjustment. All
2562 subsequent size adjustments are not considered to be part of
2563 the "static" part of the current frame.
2564 Compute the address of the saved registers relative to the
2565 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2566 in use in this frame.
2567
56468235
DH
25682002-06-18 Don Howard <dhoward@redhat.com>
2569
2570 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2571 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2572 suggesting this solution.
2573
0b624158
AC
25742002-06-18 Andrew Cagney <ac131313@redhat.com>
2575
2576 * config/romp/xm-rtbsd.h: Delete file.
2577 * config/romp/rtbsd.mh: Delete file.
2578
221ea385
KS
25792002-06-18 Keith Seitz <keiths@redhat.com>
2580
2581 * breakpoint.c (condition_command): Post breakpoint_modify
2582 when a condition is added to an existing breakpoint.
2583 (commands_command): Likewise for commands.
2584 (set_ignore_count): Likewise for ignore counts.
2585 If no tty, do not simply return, still need to send event
2586 notification.
2587 (ignore_command): Only print a newline if the command came
2588 from a tty.
2589 Don't call breakpoints_changed, since this is now properly
2590 handled by set_ignore_count.
2591
5402eed1
AC
25922002-06-18 Andrew Cagney <cagney@redhat.com>
2593
2594 * MAINTAINERS: Note that cris-elf target can be compiled with
2595 -Werror.
2596 * cris-tdep.c (cris_register_name): Make return type constant.
2597 (cris_breakpoint_from_pc): Ditto.
2598
cc22880b
ML
25992002-06-18 Michal Ludvig <mludvig@suse.cz>
2600
2601 * frame.h (struct frame_info): Change type of context to
2602 'struct context'.
2603
fa88f677
AC
26042002-06-17 Andrew Cagney <cagney@redhat.com>
2605
2606 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2607 pointer.
2608 * gdbarch.h, gdbarch.c: Regenerate.
2609 * config/mips/tm-mips.h (mips_register_name): Update.
2610 * i386-tdep.h (i386_register_name): Update.
2611 * mips-tdep.c (mips_register_name): Update
2612 * alpha-tdep.c (alpha_register_name): Update.
2613 * arch-utils.c (legacy_register_name): Update.
2614 * arch-utils.h (legacy_register_name): Update.
2615 * avr-tdep.c (avr_register_name): Update.
2616 * ia64-tdep.c (ia64_register_name): Update.
2617 * i386-tdep.c (i386_register_name): Update.
2618 * sparc-tdep.c (sparc32_register_name): Update.
2619 (sparc64_register_name): Update.
2620 (sparclite_register_name): Update.
2621 (sparclet_register_name): Update.
2622 * sh-tdep.c (sh_generic_register_name): Update.
2623 (sh_sh_register_name): Update.
2624 (sh_sh3_register_name): Update.
2625 (sh_sh3e_register_name): Update.
2626 (sh_sh_dsp_register_name): Update.
2627 (sh_sh3_dsp_register_name): Update.
2628 (sh_sh4_register_name): Update.
2629 (sh_sh64_register_name): Update.
2630 * s390-tdep.c (s390_register_name): Update.
2631 * rs6000-tdep.c (rs6000_register_name): Update.
2632 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2633 (ns32k_register_name_32382): Update.
2634 * d10v-tdep.c (d10v_ts2_register_name): Update.
2635 (d10v_ts3_register_name): Update.
2636 * xstormy16-tdep.c (xstormy16_register_name): Update.
2637 * vax-tdep.c (vax_register_name): Update.
2638 * v850-tdep.c (v850_register_name): Update.
2639 * m68hc11-tdep.c (m68hc11_register_name): Update.
2640 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2641 (am33_register_name): Update.
2642
ea1e7ef6
GS
26432002-06-17 Grace Sainsbury <graces@redhat.com>
2644
2645 * m68k-tdep.c: Reindented.
2646
9b02dd1b
AC
26472002-06-17 Andrew Cagney <ac131313@redhat.com>
2648
2649 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2650 list of predefined types.
2651
8758dec1
MK
26522002-06-16 Mark Kettenis <kettenis@gnu.org>
2653
b6197528
MK
2654 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2655 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2656 REGISTER_CONVERT_TO_RAW): Remove defines.
2657 (i386_register_virtual_type, i386_register_convertible,
2658 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2659 Remove prototypes.
2660 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2661 macros mentioned above.
2662
82b47e62
MK
2663 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2664 (i386lynx_saved_pc_after_call): Remove prototype.
2665 * i386ly-tdep.c: Include "i386-tdep.h".
2666 (i386lynx_saved_pc_after_call): Make static. Use
2667 read_memory_nobpt instead of read_memory. Use
2668 read_memory_unsigned_integer instead of read_memory_integer.
2669 (i386lynx_init_abi): New function.
2670 (i386lynx_coff_osabi_sniffer): New function.
2671 (_initialize_i386bsd_tdep): New function.
2672
8758dec1
MK
2673 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2674 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2675 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2676 (i386_fix_call_dummy): Remove prototype.
2677 * i386-tdep.c (i386_call_dummy_words): New variable.
2678 (i386_gdbarch_init): Adjust for removal of the
2679 macros mentioned above.
2680
e9e68a56
AC
26812002-06-15 Andrew Cagney <ac131313@redhat.com>
2682
2683 * command.h (add_setshow_auto_boolean_cmd): Replace
2684 add_set_auto_boolean_cmd.
2685 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2686 add_set_auto_boolean_cmd.
2687 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2688 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2689 mask-address'' command.
2690 (show_mask_address): Add cmd parameter.
2691 * remote.c (add_packet_config_cmd): Update. Change type of
2692 set_func and show_func to cmd_sfunc_ftype.
2693 (_initialize_remote): Update `set remote Z-packet'
2694 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2695 (show_remote_protocol_e_packet_cmd): Ditto.
2696 (show_remote_protocol_E_packet_cmd): Ditto.
2697 (show_remote_protocol_P_packet_cmd): Ditto.
2698 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2699 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2700 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2701 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2702 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2703 (show_remote_protocol_Z_packet_cmd): Ditto.
2704 (show_remote_protocol_binary_download_cmd): Ditto.
2705 (show_remote_cmd): Pass NULL to all of above.
2706
fc08ec52
MK
27072002-06-15 Mark Kettenis <kettenis@gnu.org>
2708
2709 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2710 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2711 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2712 POP_FRAME): Remove defines.
2713 (i386_push_arguments, i386_store_struct_return,
2714 i386_extract_return_value, i386_store_return_value,
2715 i386_extract_struct_value_address, i386_push_dummy_frame,
2716 i386_pop_frame): Renove prototypes.
2717 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2718 macros mentioned above.
2719
e707bbc2
AC
27202002-06-15 Andrew Cagney <ac131313@redhat.com>
2721
2722 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2723 add_set_boolean_cmd.
2724 (add_setshow_cmd): New function.
2725 * command.h (add_setshow_boolean_cmd): Replace
2726 add_set_boolean_cmd.
2727 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2728 and ``set rdiromatzero''.
2729 * maint.c (_initialize_maint_cmds): Update commented out code.
2730 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2731 * target.c (initialize_targets): Update `set
2732 trust-readonly-sections'.
2733 * remote.c (_initialize_remote): Update `set remotebreak'.
2734
42fdc8df
MK
27352002-06-15 Mark Kettenis <kettenis@gnu.org>
2736
93924b6b
MK
2737 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2738 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2739 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2740 fit into multi-arch framework.
2741 (i386_breakpoint_from_pc): New function.
2742 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2743 above.
2744
42fdc8df
MK
2745 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2746 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2747 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2748 (i386_frameless_function_invocation, i386_frame_num_args,
2749 i386_frame_init_saved_regs): Remove prototypes.
2750 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2751 macros mentioned above.
2752
9773a94b
AC
27532002-06-15 Andrew Cagney <ac131313@redhat.com>
2754
2755 * cli/cli-decode.c (set_cmd_cfunc): Update.
2756 (set_cmd_sfunc): Update.
2757 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2758 (set_cmd_sfunc, set_cmd_cfunc): Update.
2759 * cli/cli-decode.h: Update.
2760
6e157172
MK
27612002-06-15 Mark Kettenis <kettenis@gnu.org>
2762
2763 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2764 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2765
7f19b9a2
AC
27662002-06-15 Andrew Cagney <ac131313@redhat.com>
2767
2768 * defs.h (auto_boolean): Declare enum.
2769 * command.h (cmd_auto_boolean): Delete enum.
2770 * mips-tdep.c (mask_address_var): Update.
2771 (mips_mask_address_p): Update.
2772 (show_mask_address): Update.
2773 * remote.c (struct packet_config): Update.
2774 (update_packet_config): Update.
2775 (show_packet_config_cmd): Update.
2776 (packet_ok): Update.
2777 (add_packet_config_cmd): Update.
2778 (_initialize_remote):
2779 * command.h: Update.
2780 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2781 (do_setshow_command): Update.
2782 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2783 * cli/cli-decode.h: Update.
2784
1cf88de5
MK
27852002-06-15 Mark Kettenis <kettenis@gnu.org>
2786
22ba8cf2
MK
2787 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2788 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2789 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2790 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2791 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2792 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2793
762c5349
MK
2794 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2795 list of DJGPP COFF targets.
2796
091198bb
MK
2797 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2798 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2799 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2800 (FP0_REGNUM): Remove define.
2801 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2802 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2803 (i386_register_virtual_size): Remove protoype.
2804 * i386-tdep.c (i386_register_virtual_size): Removed.
2805 (i386_extract_return_value, i386_store_return_value): Use
2806 FP0_REGNUM instead of NUM_FREGS to determine whether the
2807 floating-point registers are available.
2808 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2809 Adjust for removal of macros mentioned above.
2810
28112002-06-15 Mark Kettenis <kettenis@gnu.org>
2812
fcc9bf01
MK
2813 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2814 comments.
2815 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2816 Remove prototypes.
2817 (supply_gregset, fill_gregset): Remove use of register keyword and
2818 remove declaration for regmap. Use I386_NUM_GREGS instead of
2819 NUM_REGS and NUM_FREGS.
2820 (FPREGSET_FSAVE_OFFSET): Remove.
2821 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2822 NUM_FREGS to determine whether the floating-point registers are
2823 available.
2824
65e78234
MK
2825 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2826 gnu_store_registers): Replace usage of NUM_GREGS with
2827 I386_NUM_GREGS.
2828
98df6387
MK
2829 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2830 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2831 usage of NUM_GREGS with I386_NUM_GREGS.
2832
099a9414
MK
2833 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2834
57976e88
MK
2835 * i386bsd-nat.c: Include "i386-tdep.h".
2836 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2837 I386_NUM_GREGS.
2838
b335f4a6
MK
2839 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2840 and associated comment. They no longer make any sense, since we
2841 don't use this file anymore on Linux.
2842
1cf88de5
MK
2843 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2844 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2845 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2846 elements in these arrays.
2847 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2848 MAX_NUM_REGS.
2849
daa66587
MK
28502002-06-15 Mark Kettenis <kettenis@gnu.org>
2851
2852 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2853 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2854
26e9b323
AC
28552002-06-14 Andrew Cagney <cagney@redhat.com>
2856
2857 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2858 EXTRACT_RETURN_VALUE.
2859 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2860 EXTRACT_STRUCT_VALUE_ADDRESS.
2861 * gdbarch.h, gdbarch.c: Regenerate.
2862
2863 * values.c (value_being_returned): Handle
2864 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2865 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2866
2867 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2868 * arm-tdep.c (arm_gdbarch_init): Update.
2869 * avr-tdep.c (avr_gdbarch_init): Update.
2870 * cris-tdep.c (cris_gdbarch_init): Update.
2871 * d10v-tdep.c (d10v_gdbarch_init): Update.
2872 * ia64-tdep.c (ia64_gdbarch_init): Update.
2873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2874 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2875 * s390-tdep.c (s390_gdbarch_init): Update.
2876 * sh-tdep.c (sh_gdbarch_init): Update.
2877 * s390-tdep.c (s390_gdbarch_init): Update.
2878 * sparc-tdep.c (sparc_gdbarch_init): Update.
2879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2880 * v850-tdep.c (v850_gdbarch_init): Update.
2881 * vax-tdep.c (vax_gdbarch_init): Update.
2882 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2884
2885 * config/arc/tm-arc.h: Update.
2886 * config/d30v/tm-d30v.h: Update.
2887 * config/fr30/tm-fr30.h: Update.
2888 * config/h8300/tm-h8300.h: Update.
2889 * config/h8500/tm-h8500.h: Update.
2890 * config/i386/tm-i386.h: Update.
2891 * config/i386/tm-ptx.h: Update.
2892 * config/i386/tm-symmetry.h: Update.
2893 * config/i960/tm-i960.h: Update.
2894 * config/m32r/tm-m32r.h: Update.
2895 * config/m68k/tm-delta68.h: Update.
2896 * config/m68k/tm-linux.h: Update.
2897 * config/m68k/tm-m68k.h: Update.
2898 * config/m88k/tm-m88k.h: Update.
2899 * config/mcore/tm-mcore.h: Update.
2900 * config/mips/tm-mips.h: Update.
2901 * config/mn10200/tm-mn10200.h: Update.
2902 * config/pa/tm-hppa.h: Update.
2903 * config/pa/tm-hppa64.h: Update.
2904 * config/sparc/tm-sp64.h: Update.
2905 * config/sparc/tm-sparc.h: Update.
2906 * config/sparc/tm-sparclet.h: Update.
2907 * config/z8k/tm-z8k.h: Update.
2908
5179e78f
AC
29092002-06-14 Andrew Cagney <cagney@redhat.com>
2910
2911 * Makefile.in (i386_linux_tdep_h): Define.
2912 (i386_tdep_h, i387_tdep_h): Define.
2913 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2914 $(i386_tdep_h) and $(i387_tdep_h).
2915 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2916
8201327c
MK
29172002-06-14 Mark Kettenis <kettenis@gnu.org>
2918
edf393ac
MK
2919 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2920 Already covered by the default.
2921
896fb97d
MK
2922 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2923 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2924 (i386_gdbarch_init): Initialize long_double_format and long_double
2925 bit.
2926
8201327c
MK
2927 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2928 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2929 Move these to ...
2930 * config/i386/i386sol2.mh: ... here.
2931 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2932 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2933 (SIGCONTEXT_PC_OFFSET): Remove define.
2934 (IN_SIGTRAMP): Remove define.
2935 * i386-sol2-tdep.c: New file.
2936
2937 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2938 * config/i386/tm-i386nw.h: Removed.
2939
2940 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2941 USE_STRUCT_CONVENTION): Remove defines.
2942 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2943 (get_longjmp_target): Remove prototype.
2944 (IN_SIGTRAMP): Remove define.
2945 (i386bsd_in_sigtramp): Remove prototype.
2946 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2947 function. Update comment accordingly
2948 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2949 (FRAME_SAVED_PC): Remove define.
2950 (i386bsd_frame_saved_pc): Remove prototype.
2951 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2952 GET_LONGJMP_TARGET): Remove defines.
2953 (get_longjmp_target): Remove prototype.
2954 (IN_SIGTRAMP): Remove define.
2955 (i386bsd_in_sigtramp): Remove prototype.
2956 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2957 function. Update comment accordingly
2958 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2959 (FRAME_SAVED_PC): Remove define.
2960 (i386bsd_frame_saved_pc): Remove prototype.
2961 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2962 Remove prototype.
2963 (USE_STRUCT_CONVENTION): Remove prototype.
2964 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2965 declaration.
2966 (_initialize_i386bsd_nat): Revise logic to determine some
2967 constants at compile time when compiling a native GDB. Warn if
2968 things don't match up with what we expect.
2969 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2970 Remove variables.
2971 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2972 to use date stored in `struct gdbarch_tdep'.
2973 (i386bsd_sigcontext_offset): Remove varaible.
2974 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2975 stored in `struct gdbarch_tdep'.
2976 (i386bsd_frame_saved_pc): Make static.
2977 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2978 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2979 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2980 i386fbsd4_sc_pc_offset): New variables.
2981 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2982 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2983 functions.
2984 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2985 functions.
2986 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2987 Modify the value of i386fbsd_sigtramp_start and
2988 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2989 i386fbsd_sigtramp_end.
2990 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2991 function.
2992
2993 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2994 define to i386-linux-tdep.h.
2995 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2996 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2997 defines.
2998 (i386_linux_register_name, i386_linux_register_byte,
2999 i386_linux_register_raw_size): Remove prototypes.
3000 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3001 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3002 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3003 TARGET_WRITE_PC): Remove defines.
3004 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3005 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3006 i386_linux_write_pc): Remove prototypes.
3007 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3008 (get_longjmp_target): Remove prototype.
3009 * i386-linux-tdep.h: New file.
3010 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3011 * i386-linux-tdep.c: Include "i386-tdep.h" and
3012 "i386-linux-tdep.h".
3013 (i386_linux_register_name, i386_linux_register_byte,
3014 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3015 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3016 Make static.
3017 (i386_linux_init_abi): New function.
3018 (_initialize_i386_linux_tdep): New function.
3019
3020 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3021 (i386_saved_pc_after_call): Remove prototype.
3022 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3023 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3024 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3025 (i386_register_name, i386_stab_reg_to_regnum,
3026 i386_dwarf_reg_to_regnum): Remove prototypes.
3027 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3028 SIZEOF_SSE_REGS): Remove defines.
3029 (REGISTER_BYTES): Remove define.
3030 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3031 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3032 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3033 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3034 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3035 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3036 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3037 (get_longjmp_target): Remove prototype.
3038 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3039 (sigtramp_saved_pc): Remove define.
3040 (i386v4_sigtramp_saved_pc): Remove prototype.
3041 * config/i386/tm-go32.h (FRAME_CHAIN,
3042 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3043 (i386go32_frame_saved_pc): Remove prototype.
3044 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3045 (get_longjmp_target): Remove prototype.
3046 * i386-tdep.h: Include "osabi.h".
3047 (enum i386_abi): Removed.
3048 (enum struct_return): New enum.
3049 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3050 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3051 sc_pc_offset members.
3052 (i386_gdbarch_register_os_abi): Remove prototype.
3053 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3054 I386_SSE_NUM_REGS): New defines.
3055 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3056 I386_SSE_SIZEOF_REGS): New defines.
3057 (i386_register_name, i386_register_byte, i386_register_raw_size):
3058 New prototypes.
3059 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3060 (i386bsd_sigtramp_saved_pc): New prototype.
3061 * i386-tdep.c: Don't include "elf-bfd.h".
3062 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3063 i386_frame_chain, i386_saved_pc_after_call): Make static.
3064 (i386_frame_saved_pc): Rewrite to call architecture dependent
3065 function to deal with signal handlers. Make static.
3066 (i386go32_frame_saved_pc): Removed.
3067 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3068 Removed.
3069 (i386_get_longjmp_target): New function.
3070 (default_struct_convention, pcc_struct_convention,
3071 reg_struct_convention, valid_conventions, struct_convention): New
3072 variables.
3073 (i386_use_struct_convention): New function.
3074 (i386v4_sigtramp_saved_pc): Renamed to
3075 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3076 (i386_pc_in_sigtramp): New function.
3077 (i386_abi_names): Removed.
3078 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3079 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3080 Removed.
3081 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3082 i386_gdbarch_register_os_abi): Removed.
3083 (struct i386_abi_handler): Removed.
3084 (i386_abi_handler_list): Removed.
3085 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3086 functions.
3087 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3088 i386_nw_init_abi): New functions.
3089 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3090 Use set_gdbarch_xxx() calls instead of relying on macros for a
3091 number of calls.
3092 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3093 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3094 Register the various architecture variants defined in this file.
3095
ad2f7632
DJ
30962002-06-14 Daniel Jacobowitz <drow@mvista.com>
3097
3098 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3099 (struct main_type): Remove arg_types member. Update comments for
3100 struct field.
3101 (TYPE_ARG_TYPES): Remove.
3102 (TYPE_FN_FIELD_ARGS): Update.
3103 (smash_to_method_type): Update prototype.
3104
3105 * c-typeprint.c (cp_type_print_method_args): Take method type
3106 instead of argument list. Use new argument layout. Simplify.
3107 (c_type_print_args): Use new argument layout. Simplify.
3108 (c_type_print_base): Update call to cp_type_print_method_args.
3109 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3110 argument; use die->type instead. Update call to
3111 smash_to_method_type.
3112 (read_structure_scope): Update call to dwarf2_add_member_fn.
3113 * gdbtypes.c (allocate_stub_method): Update comment.
3114 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3115 Use new argument layout.
3116 (check_stub_method): Use new argument layout. Don't count
3117 void as an argument.
3118 (print_arg_types): Update comments. Use new argument layout.
3119 (recursive_dump_type): Don't print arg_types member.
3120 * hpread.c (hpread_read_struct_type): Use new argument layout.
3121 (fixup_class_method_type): Likewise.
3122 (hpread_type_lookup): Likewise.
3123 * stabsread.c (read_type): Update calls to read_args and
3124 smash_to_method_type.
3125 (read_args): Use new argument layout. Simplify.
3126 * valops.c (typecmp): Use new argument layout. Update parameters
3127 and comments. Simplify.
3128 (hand_function_call): Use new argument layout.
3129 (search_struct_method): Update call to typecmp.
3130 (find_overload_match): Use new argument layout.
3131
6da02953
DJ
31322002-06-13 Daniel Jacobowitz <drow@mvista.com>
3133
3134 * NEWS: Mention multithreaded debug support for gdbserver.
3135
519b2366
DJ
31362002-06-13 Daniel Jacobowitz <drow@mvista.com>
3137
3138 * MAINTAINERS: Mention NEWS.
3139
a7f48742
DJ
31402002-06-13 Daniel Jacobowitz <drow@mvista.com>
3141
3142 * gdbserver/regcache.c: Add comment.
3143
6c0d6680
DJ
31442002-06-13 Daniel Jacobowitz <drow@mvista.com>
3145
3146 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3147 (struct mips_objfile_private, compare_pdr_entries): New.
3148 (non_heuristic_proc_desc): Read the ".pdr" section if it
3149 is present.
3150
6529d2dd
AC
31512002-06-12 Andrew Cagney <ac131313@redhat.com>
3152
3153 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3154 (arm_debug): New static variable.
3155 (_initialize_arm_tdep): Add ``set debug arm'' command.
3156
26216b98
AC
31572002-06-12 Andrew Cagney <ac131313@redhat.com>
3158
3159 * Makefile.in (sim_arm_h): Define.
3160 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3161 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3162 (arm_register_sim_regno): New function, map an internal REGNUM
3163 onto a simulator register number.
3164 (arm_gdbarch_init): Set register_sim_regno.
3165
814b3ba0
AH
31662002-06-09 Aldy Hernandez <aldyh@redhat.com>
3167
3168 * MAINTAINERS: Add self.
3169
475b0867
JB
31702002-06-11 Jim Blandy <jimb@redhat.com>
3171
919d772c
JB
3172 * source.c (source_info): Mention whether the symtab has
3173 information about preprocessor macros.
3174
475b0867
JB
3175 Call the command `info macro', not `show macro'.
3176 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3177 Fix error message.
3178 (_initialize_macrocmd): Register `info_macro_command' in
3179 `infolist', not `showlist'.
3180
9e364162
DJ
31812002-06-11 Daniel Jacobowitz <drow@mvista.com>
3182
3183 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3184 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3185 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3186 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3187 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3188 unconditionally.
3189 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3190 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3191 (_initialize_mips_tdep): Remove dead code.
3192 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3193 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3194 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3195 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3196 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3197 MIPS_LAST_FP_ARG_REGNUM): Remove.
3198
31992002-06-11 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * gdbserver/thread-db.c: New file.
3202 * gdbserver/proc-service.c: New file.
3203 * gdbserver/acinclude.m4: New file.
3204 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3205 proc-service.o, and thread-db.o.
3206 (linux-low.o): Add USE_THREAD_DB.
3207 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3208 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3209 * gdbserver/aclocal.m4: Regenerated.
3210 * gdbserver/config.in: Regenerated.
3211 * gdbserver/configure: Regenerated.
3212 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3213 thread_db.h, and linux/elf.h headrs.
3214 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3215 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3216 Check for -lthread_db and thread support.
3217 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3218 PowerPC, and SuperH.
3219 * gdbserver/i387-fp.c: Constify arguments.
3220 * gdbserver/i387-fp.h: Likewise.
3221 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3222 `struct inferior_info'. Remove PID member. Use generic inferior
3223 list header. All uses updated.
3224 (inferiors, signal_pid): Removed.
3225 (all_threads): New variable.
3226 (get_thread): Define.
3227 (add_inferior_to_list): New function.
3228 (for_each_inferior): New function.
3229 (change_inferior_id): New function.
3230 (add_inferior): Removed.
3231 (remove_inferior): New function.
3232 (add_thread): New function.
3233 (free_one_thread): New function.
3234 (remove_thread): New function.
3235 (clear_inferiors): Use for_each_inferior and free_one_thread.
3236 (find_inferior): New function.
3237 (find_inferior_id): New function.
3238 (inferior_target_data): Update argument type.
3239 (set_inferior_target_data): Likewise.
3240 (inferior_regcache_data): Likewise.
3241 (set_inferior_regcache_data): Likewise.
3242 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3243 (all_processes, stopping_threads, using_thrads)
3244 (struct pending_signals, debug_threads, pid_of): New.
3245 (inferior_pid): Replace with macro.
3246 (struct inferior_linux_data): Remove.
3247 (get_stop_pc, add_process): New functions.
3248 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3249 Use add_process and add_thread.
3250 (linux_attach_lwp): New function, based on old linux_attach. Use
3251 add_process and add_thread. Set stop_expected for new threads.
3252 (linux_attach): New function.
3253 (linux_kill_one_process): New function.
3254 (linux_kill): Kill all LWPs.
3255 (linux_thread_alive): Use find_inferior_id.
3256 (check_removed_breakpoints, status_pending_p): New functions.
3257 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3258 Update. Use WNOHANG. Wait for cloned processes also. Update process
3259 struct for the found process.
3260 (linux_wait_for_event): New function.
3261 (linux_wait): Use it. Support LWPs.
3262 (send_sigstop, wait_for_sigstop, stop_all_processes)
3263 (linux_resume_one_process, linux_continue_one_process): New functions.
3264 (linux_resume): Support LWPs.
3265 (REGISTER_RAW_SIZE): Remove.
3266 (fetch_register): Use register_size instead. Call supply_register.
3267 (usr_store_inferior_registers): Likewise. Call collect_register.
3268 Fix recursive case.
3269 (regsets_fetch_inferior_registers): Improve error message.
3270 (regsets_store_inferior_registers): Add debugging.
3271 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3272 (unstopped_p, linux_signal_pid): New functions.
3273 (linux_target_ops): Add linux_signal_pid.
3274 (linux_init_signals): New function.
3275 (initialize_low): Call it. Initialize using_threads.
3276 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3277 flag.
3278 (get_regcache): Fetch registers lazily. Add fetch argument
3279 and update all callers.
3280 (regcache_invalidate_one, regcache_invalidate): New
3281 functions.
3282 (new_register_cache): Renamed from create_register_cache.
3283 Return the new regcache.
3284 (free_register_cache): Change argument to a void *.
3285 (registers_to_string, registers_from_string): Call get_regcache
3286 with fetch flag set.
3287 (register_data): Make static. Pass fetch flag to get_regcache.
3288 (supply_register): Call get_regcache with fetch flag clear.
3289 (collect_register): Call get_regcache with fetch flag set.
3290 (collect_register_as_string): New function.
3291 * gdbserver/regcache.h: Update.
3292 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3293 stderr.
3294 Handle input interrupts while waiting for an ACK.
3295 (input_interrupt): Use signal_pid method.
3296 (getpkt): Flush after debug output and use stderr.
3297 (outreg): Use collect_register_as_string.
3298 (new_thread_notify, dead_thread_notify): New functions.
3299 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3300 and general_thread.
3301 (look_up_one_symbol): Flush after debug output.
3302 * gdbserver/server.c (step_thread, server_waiting): New variables.
3303 (start_inferior): Don't use signal_pid. Update call to mywait.
3304 (attach_inferior): Update call to mywait.
3305 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3306 (main): Don't fetch/store registers explicitly. Use
3307 set_desired_inferior. Support proposed ``Hs'' packet. Update
3308 calls to mywait.
3309 * gdbserver/server.h: Update.
3310 (struct inferior_list, struct_inferior_list_entry): New.
3311 * gdbserver/target.c (set_desired_inferior): New.
3312 (write_inferior_memory): Constify.
3313 (mywait): New function.
3314 * gdbserver/target.h: Update.
3315 (struct target_ops): New signal_pid method.
3316 (mywait): Removed macro, added prototype.
3317
3318 * gdbserver/linux-low.h (regset_func): Removed.
3319 (regset_fill_func, regset_store_func): New.
3320 (enum regset_type): New.
3321 (struct regset_info): Add type field. Use new operation types.
3322 (struct linux_target_ops): stop_pc renamed to get_pc.
3323 Add decr_pc_after_break and breakpoint_at.
3324 (get_process, get_thread_proess, get_process_thread)
3325 (strut process_info, all_processes, linux_attach_lwp)
3326 (thread_db_init): New.
3327
3328 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3329 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3330 (the_low_target): Add new members.
3331 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3332 (i386_store_fpxregset): Constify.
3333 (target_regsets): Add new kind identifier.
3334 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3335 (i386_set_pc): Add debugging.
3336 (i386_breakpoint_at): New function.
3337 (the_low_target): Add new members.
3338 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3339 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3340 (mips_breakpoint_at): New.
3341 (the_low_target): Add new members.
3342 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3343 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3344 (the_low_target): Add new members.
3345 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3346 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3347 (the_low_target): Add new members.
3348 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3349 identifier.
3350
23aa4c72
ML
33512002-06-11 Michal Ludvig <mludvig@suse.cz>
3352
3353 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3354 (unwind_tmp_obstack_free, parse_frame_info)
3355 (update_context, cfi_read_fp, cfi_write_fp)
3356 (cfi_frame_chain, cfi_init_extra_frame_info)
3357 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3358 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3359
70eb15a4
CV
33602002-06-11 Corinna Vinschen <vinschen@redhat.com>
3361
3362 * v850-tdep.c (v850_type_is_scalar): New function.
3363 (v850_use_struct_convention): Match current gcc implementation
3364 as close as possible.
3365 (v850_push_arguments): Fix stack_offset handling. Don't write
3366 struct_addr into register. This is done by v850_store_struct_return.
3367 (v850_extract_return_value): Care for structs.
3368 (v850_store_return_value): Ditto.
3369 (v850_store_struct_return): Actually write address.
3370
482a4d06
ML
33712002-06-11 Michal Ludvig <mludvig@suse.cz>
3372
3373 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3374 without debug information too.
3375
d855c300
AC
33762002-06-10 Andrew Cagney <ac131313@redhat.com>
3377
3378 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3379 Make multi-arch pure.
3380 * gdbarch.h, gdbarch.c: Re-generate.
3381 * arm-tdep.c (arm_print_float_info): Update.
3382 * arch-utils.h (default_print_float_info): Update.
3383 * arch-utils.c (default_print_float_info): Update.
3384 * infcmd.c (float_info): Update call.
3385
dd12a101
AC
33862002-06-10 Andrew Cagney <ac131313@redhat.com>
3387
3388 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3389 the front of the initialize list.
3390
101dcfbe
AC
33912002-06-10 Andrew Cagney <ac131313@redhat.com>
3392
3393 * infrun.c (struct inferior_status): Replace fields
3394 selected_frame_address and selected_level with field
3395 selected_frame_id.
3396 (save_inferior_status): Update. Use get_frame_id.
3397 (struct restore_selected_frame_args): Delete.
3398 (restore_selected_frame): Update. Use frame_find_by_id.
3399 (restore_inferior_status): Update.
3400
3401 * breakpoint.h (struct breakpoint): Change type of
3402 watchpoint_frame to frame_id.
3403 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3404 call to get_current_frame.
3405 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3406 get_current_frame.
3407 (watchpoint_check): Use frame_find_by_id.
3408
3409 * frame.h (record_selected_frame): Delete declaration.
3410 * stack.c (record_selected_frame): Delete function.
3411
3412 * frame.h (struct frame_id): Define.
3413 (get_frame_id): Declare.
3414 (frame_find_by_id): Declare.
3415 * frame.c (frame_find_by_id): New function.
3416 (get_frame_id): New function.
3417
304270b6
AV
34182002-06-10 Andrey Volkov <avolkov@transas.com>
3419
3420 * ser-e7kpc.c: Fix duplicated define and call of
3421 _initialize_ser_e7000pc
3422
2f2cf184
DJ
34232002-06-09 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * signals/signals.c (target_signal_from_host): Fix #ifdef
3426 SIGRTMIN case.
3427 (do_target_signal_to_host): Likewise.
3428
caaa3122
DJ
34292002-06-09 Daniel Jacobowitz <drow@mvista.com>
3430
3431 * mips-tdep.c (mips_find_abi_section): New function.
3432 (mips_gdbarch_init): Call it.
3433
6ac5df3a
MK
34342002-06-09 Mark Kettenis <kettenis@gnu.org>
3435
3436 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3437 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3438 after Andrew's 2002-06-08 gdbarch change.
3439
82ea117a
MK
34402002-06-09 Mark Kettenis <kettenis@gnu.org>
3441
3442 * i386-linux-nat.c (suppy_gregset): Don't supply
3443 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3444 register cache.
3445 (fill_gregset): Don't fetch it under the same circumstances.
3446
3c25f8c7
AC
34472002-06-09 Andrew Cagney <cagney@redhat.com>
3448
3449 * Makefile.in (callback_h): Define.
3450 (remote_sim_h): Update path to remote-sim.h.
3451 (remote-rdp.o): Add $(callback_h).
3452 (remote-sim.o): Use $(callback_h).
3453 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3454 * remote-rdp.c: Include "gdb/callback.h".
3455
1029b7fa
MK
34562002-06-09 Mark Kettenis <kettenis@gnu.org>
3457
3458 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3459 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3460
616675d3
AC
34612002-06-08 Andrew Cagney <ac131313@redhat.com>
3462
a3efda28
AC
3463 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3464 * rdi-share/serpardr.c: Ditto.
3465 * rdi-share/unixcomm.c: Ditto.
3466 * rdi-share/serdrv.c: Ditto.
3467 * rdi-share/hostchan.h: Ditto.
3468 * rdi-share/hostchan.c: Ditto.
3469 * rdi-share/host.h: Ditto.
3470 * rdi-share/devsw.c: Ditto.
3471
c5f10366
AC
3472 * objfiles.h: Change type of obj_private to void pointer.
3473 * pa64solib.c: Update copyright. Don't include "assert.h", use
3474 strcmp instead of STREQ, use LONGEST, do not use PTR
3475 * somsolib.c: Ditto.
3476
616675d3
AC
3477 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3478 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3479 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3480
e4b415d9
AC
34812002-06-08 Andrew Cagney <ac131313@redhat.com>
3482
3483 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3484 (default_get_saved_register): Delete function.
3485 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3486 generic_unwind_get_saved_register.
3487 * gdbarch.h, gdbarch.c: Re-generate.
3488
ca0d0b52
AC
34892002-06-08 Andrew Cagney <ac131313@redhat.com>
3490
3491 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3492 generic_func_frame_chain_valid.
3493 * gdbarch.h, gdbarch.c: Re-generate.
3494 * blockframe.c (generic_func_frame_chain_valid): Only check
3495 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3496 passing FP to PC_IN_CALL_DUMMY.
3497 Fix PR gdb/360.
3498
76860b5f
AC
34992002-06-08 Andrew Cagney <ac131313@redhat.com>
3500
3501 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3502 (register_gdbarch_data): Initialize init_p.
3503 (gdbarch_data): Initialize data pointer using the init function.
3504 (init_gdbarch_data): Delete function.
3505 (gdbarch_update_p): Update.
3506 (initialize_non_multiarch): Update.
3507 (struct gdbarch): Add field initialized_p.
3508 * gdbarch.h, gdbarch.c: Re-generate.
3509
8dda9770
ML
35102002-06-07 Michal Ludvig <mludvig@suse.cz>
3511
3512 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3513 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3514 better do the things actually here.
3515 * x86-64-tdep.c (x86_64_register_name2nr): New.
3516 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3517 (x86_64_gdbarch_init): Respect the above change.
3518 * x86-64-tdep.h (x86_64_register_name2nr)
3519 (x86_64_register_nr2name): Add prototypes.
3520 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3521
3d79a47c
MS
35222002-06-06 Michael Snyder <msnyder@redhat.com>
3523
7bd91a28
MS
3524 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3525 Delete extra braces and re-indent.
3526 (d10v_store_return_value): Char return values
3d79a47c
MS
3527 must be shifted over by one byte in R0.
3528 (d10v_extract_return_value): Delete extra braces, re-indent.
3529
095a4c96
EZ
35302002-06-06 Elena Zannoni <ezannoni@redhat.com>
3531
3532 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3533 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3534 (d10v_integer_to_address): Rewrite.
3535 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3536 the d10v specific functions which take care of converting to the
3537 correct space.
3538
e8a77ca4
EZ
35392002-06-06 Elena Zannoni <ezannoni@redhat.com>
3540
3541 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3542 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3543
4f2e4a4f
AC
35442002-06-02 Andrew Cagney <ac131313@redhat.com>
3545
3546 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3547 includes.
3548 * config/tm-linux.h: Ditto.
3549 * config/alpha/tm-alphalinux.h: Ditto.
3550 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3551 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3552 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3553 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3554 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3555 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3556 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3557 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3558 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3559 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3560 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3561 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3562 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3563 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3564 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3565 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3566 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3567 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3568 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3569 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3570 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3571 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3572 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3573 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3574 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3575 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3576 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3577 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3578 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3579 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3580 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3581 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3582 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3583 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3584 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3585 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3586 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3587
ae2ab2ce
AS
35882002-05-04 Aidan Skinner <aidan@velvet.net>
3589
3590 * ada-exp.tab.c: New file
3591 * ada-exp.y: New file
3592 * ada-lang.c: New file
3593 * ada-lang.h: New file
3594 * ada-lex.c: New file
3595 * ada-lex.l: New file
3596 * ada-tasks.c: New file
3597 * ada-typeprint.c: New file
3598 * ada-valprint.c: New file
3599
0ddd0135
JT
36002002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3601
3602 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3603 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3604
750fbacc
JT
36052002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3606
3607 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3608 insetead of ppc-linux-tdep.o.
3609 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3610 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3611
df94e18a
AC
36122002-06-02 Andrew Cagney <ac131313@redhat.com>
3613
3614 2002-05-07 Christian Groessler <chris@groessler.org>
3615 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3616 bit register contents for little endian hosts.
3617
1a38ab75
AC
36182002-06-01 Andrew Cagney <ac131313@redhat.com>
3619
3620 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3621 any maintainer.
3622
8b1632ac
AC
36232002-06-01 Andrew Cagney <ac131313@redhat.com>
3624
3625 * gdbarch.h: Regenerate.
3626
627054c8
AC
36272002-06-01 Andrew Cagney <ac131313@redhat.com>
3628
3629 * MAINTAINERS: Add everyone to write-after-approval list.
3630
4f460812
AC
36312002-06-01 Andrew Cagney <ac131313@redhat.com>
3632
3633 * stack.c (frame_info): Use frame_register_unwind instead of
3634 saved_regs. Mention when the SP is on the stack or in a register.
3635
3636 * frame.h (frame_register_unwind_ftype): Define. Document.
3637 (struct frame_info): Add field register_unwind and
3638 register_unwind_cache.
3639 (frame_register_unwind): Declare.
3640 (generic_unwind_get_saved_register): Declare.
3641
3642 * frame.c (frame_register_unwind): New function.
3643 (generic_unwind_get_saved_register): New function.
3644
3645 * blockframe.c (generic_call_dummy_register_unwind): New function.
3646 (frame_saved_regs_register_unwind): New function.
3647 (set_unwind_by_pc): New function.
3648 (create_new_frame): New function.
3649 (get_prev_frame): New function.
3650
de888f76
AC
36512002-05-30 Andrew Cagney <ac131313@redhat.com>
3652
3653 * a29k-share/: Delete directory.
3654 * remote-vx29k.c: Delete file.
3655
2f2c3626
JT
36562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3657
3658 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3659 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3660
9ce5c36a
JT
36612002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3662
3663 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3664 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3665 (sparc64nbsd-nat.o)
3666 (sparcnbsd-nat.o)
3667 (sparcnbsd-tdep.o): New dependency lists.
3668 * NEWS: Note new UltraSPARC NetBSD native configuration.
3669 * configure.host (sparc64-*-netbsd*): New host.
3670 * configure.tgt (sparc-*-netbsdelf*)
3671 (sparc-*-netbsd*): Set gdb_target to nbsd.
3672 (sparc64-*-netbsd*): New target.
3673 * sparc64nbsd-nat.c: New file.
3674 * sparcnbsd-nat.c: New file.
3675 * sparcnbsd-tdep.c: New file.
3676 * sparcnbsd-tdep.h: New file.
3677 * config/sparc/nbsd.mt: New file.
3678 * config/sparc/nbsd64.mh: New file.
3679 * config/sparc/nbsd64.mt: New file.
3680 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3681 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3682 (HOST_IPC): Remove.
3683 * config/sparc/nbsdaout.mt: Remove.
3684 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3685 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3686 (HOST_IPC): Remove.
3687 * config/sparc/nbsdelf.mt: Remove.
3688 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3689 sparc-nat.c compatiblity defines.
3690 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3691 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3692 * config/sparc/tm-nbsd64.h: New file.
3693 * config/sparc/tm-nbsdaout.h: Remove.
3694 * config/sparc/xm-nbsd.h: Remove.
3695
ef3cf062
JT
36962002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3697
3698 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3699 * sparc-tdep.c: Include osabi.h.
3700 (gdbarch_tdep): Add osabi member.
3701 (_initialize_sparc_tdep): Use gdbarch_register.
3702 (sparc_gdbarch_init): Use generic OS ABI framework.
3703 (sparc_dump_tdep): New function.
3704
ee8ff470
KB
37052002-05-30 Kevin Buettner <kevinb@redhat.com>
3706
3707 * corefile.c (do_captured_read_memory_integer): Return non-zero
3708 result.
3709 (safe_read_memory_integer): Copy result of memory read when
3710 status is non-zero. Also, add comments.
3711
7b112f9c
JT
37122002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3713
3714 * Makefile.in (ppc_tdep_h): Define.
3715 (ppc-linux-nat.o)
3716 (ppc-linux-tdep.o)
3717 (rs6000-tdep.o): Use $(ppc_tdep_h).
3718 (ppc-sysv-tdep.o)
3719 (ppcnbsd-nat.o)
3720 (ppcnbsd-tdep.o): New dependency lists.
3721 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3722 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3723 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3724 (ppc_sysv_abi_broken_use_struct_convention)
3725 (ppc_sysv_abi_use_struct_convention)
3726 (ppc_sysv_abi_push_arguments): Move to...
3727 * ppc-sysv-tdep.c: ...here.
3728 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3729 * rs6000-tdep.c (process_note_abi_tag_sections)
3730 (get_elfosabi): Remove.
3731 (rs6000_gdbarch_init): Use generic OS ABI framework.
3732 (rs6000_dump_tdep): New function.
3733 (_initialize_rs6000_tdep): Use gdbarch_register.
3734 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3735 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3736 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3737 of ppc-linux-tdep.o.
3738 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3739 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3740 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3741 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3742 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3743 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3744
480dd42a
JB
37452002-05-29 Jim Blandy <jimb@redhat.com>
3746
3747 * macroscope.c (default_macro_scope): Put `void' in empty argument
3748 list.
3749
4182591f
AC
37502002-05-29 Andrew Cagney <ac131313@redhat.com>
3751
3752 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3753 * arch-utils.c: Include "sim-regno.h".
3754 * gdbarch.sh: Don't include "sim-regno.h".
3755 * gdbarch.h, gdbarch.c: Regenerate.
3756 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3757 here.
3758 * arch-utils.h (legacy_register_sim_regno): To here.
3759 * remote-sim.c (legacy_register_sim_regno): Move function from
3760 here.
3761 * arch-utils.c (legacy_register_sim_regno): To here.
3762
8238d0bf
AC
37632002-05-28 Andrew Cagney <ac131313@redhat.com>
3764
3765 * sim-regno.h: New file.
3766 * Makefile.in (sim_regno_h): Define.
3767 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3768 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3769 (legacy_register_sim_regno): New function.
3770 (one2one_register_sim_regno): New function.
3771 (gdbsim_fetch_register): Rewrite.
3772 (gdbsim_store_register): Only store a register when
3773 REGISTER_SIM_REGNO is valid.
3774 * d10v-tdep.c: Include "sim-regno.h".
3775 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3776 (d10v_ts3_register_sim_regno): Ditto.
3777 * gdbarch.sh: Include "sim-regno.h".
3778 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3779 * gdbarch.h, gdbarch.c: Regenerate.
3780 * arch-utils.h (default_register_sim_regno): Delete declaration.
3781 * arch-utils.c (default_register_sim_regno): Delete function.
3782
485721b1
JT
37832002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3784
3785 * ppcnbsd-nat.c: Rewrite.
3786 * ppcnbsd-tdep.c: New file.
3787 * ppcnbsd-tdep.h: New file.
3788 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3789 solib.o, and solib-svr4.o.
3790 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3791 nbsd-tdep.o, and corelow.o.
3792
697f244d
AC
37932002-05-28 Andrew Cagney <ac131313@redhat.com>
3794
3795 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3796 `tr' and `sed'. Mention that `broken' targets are not expected to
3797 build.
3798
f08caad1 37992002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3800
3801 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3802 Let PC point right after the prologue before looking up symbols.
3803
3139facc
MH
38042002-05-27 Martin M. Hunt <hunt@redhat.com>
3805
3806 * i386-tdep.c (i386_register_virtual_type): Return
3807 builtin_type_vec128i for SSE registers.
3808
3809 * gdbtypes.h (builtin_type_vec128i): Declare.
3810
3811 * gdbtypes.c (build_builtin_type_vec128i): New function.
3812 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3813 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3814 (build_gdbtypes): Initialize new builtin vector types.
3815 (_initialize_gdbtypes): Register new vector types with gdbarch.
3816
6e3ba3b8
JT
38172002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3818
3819 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3820 since it has been multi-arch'd.
3821 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3822 Move Alpha and VAX multi-arch news entries to same section
3823 as other multi-arch news.
3824
93d5585d
JT
38252002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3826
3827 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3828 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3829 static. Rename some register numbers to put them in ns32k-tdep
3830 private namespace.
3831 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3832 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3833 functions.
3834 (_initialize_ns32k_tdep): Use gdbarch_register.
3835 * ns32k-tdep.h: New file.
3836 * ns32knbsd-tdep.c: New file.
3837 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3838 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3839 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3840 REGISTER_BYTES, REGISTER_BYTE): Remove.
3841 * config/ns32k/tm-ns32k.h: New file.
3842 * config/ns32k/tm-umax.h: Remove.
3843
efb2c70e
JT
38442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3845
3846 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3847 ns32k_store_struct_return, ns32k_extract_return_value,
3848 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3849 functions.
3850 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3851 ns32k_saved_pc_after_call.
3852 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3853 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3854 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3855 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3856 ns32k_extract_struct_value_address.
3857
7bcc927b
JT
38582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3859
3860 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3861 ns32k_fix_call_dummy): New.
3862 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3863 ns32k_call_dummy_words.
3864 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3865 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3866 CALL_DUMMY_NARGS): Remove.
3867 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3868
78f9d765
JT
38692002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3870
3871 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3872 ns32k_frame_saved_pc, ns32k_frame_args_address,
3873 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3874 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3875 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3876 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3877 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3878 (BREAKPOINT): Remove..
3879 (FRAME_CHAIN): Define as ns32k_frame_chain.
3880 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3881 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3882 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3883 (FRAME_FIND_SAVED_REGS): Remove.
3884 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3885 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3886 (POP_FRAME): Define as ns32k_pop_frame.
3887
f2c762e0
JT
38882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3889
3890 * ns32k-tdep.c (ns32k_register_byte_32082,
3891 ns32k_register_byte_32382, ns32k_register_raw_size,
3892 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3893 functions.
3894 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3895 ns32k_register_byte_32382.
3896 * config/ns32k/tm-umax.h: Update copyright years.
3897 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3898 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3899 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3900 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3901 (ns32k_get_enter_addr): Fix prototype.
3902
af137673
JT
39032002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3904
3905 * ns32k-tdep.c: Update copyright years.
3906 (ns32k_register_name_32082): New function.
3907 (ns32k_register_name_32382): Ditto.
3908 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3909 (REGISTER_NAME): Define as ns32k_register_name_32382.
3910 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3911 (REGISTER_NAME): Define as ns32k_register_name_32082.
3912
a8bc7b56
JB
39132002-05-24 Jim Blandy <jimb@redhat.com>
3914
3915 * dwarf2read.c (free_line_header): Use xfree, not free.
3916
83a45910
JT
39172002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3918
3919 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3920 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3921
0db71247
AC
39222002-05-23 Andrew Cagney <ac131313@redhat.com>
3923
3924 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3925
b9e5e4dd
AC
39262002-05-23 Andrew Cagney <ac131313@redhat.com>
3927
3928 From Ross Alexander at NEC Europe:
3929 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3930
de530e84
MS
39312002-05-23 Michael Snyder <msnyder@redhat.com>
3932
3933 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3934 for input, rather than parse_and_eval_address.
3935
b91b96f4
AC
39362002-05-23 Andrew Cagney <ac131313@redhat.com>
3937
3938 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3939 * Makefile.in (sim_d10v_h): Update definition.
3940
8b279e7a
AC
39412002-05-24 Andrew Cagney <cagney@redhat.com>
3942
3943 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3944 change `2002-05-22 Michael Snyder' below.
3945 (d10v_push_arguments): Ditto.
3946 (d10v_extract_return_value): Ditto.
3947
0a3d0425
JB
39482002-05-23 Jim Blandy <jimb@redhat.com>
3949
3950 * macrotab.c (check_for_redefinition): Don't complain if the new
3951 definition is the same as the previous one. Take more arguments
3952 to allow the comparison.
3953 (macro_define_object, macro_define_function): Pass more arguments
3954 to check_for_redefinition.
3955
78eac43e
MS
39562002-05-22 Michael Snyder <msnyder@redhat.com>
3957
3958 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3959 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3960 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3961 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3962 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3963 Add a temp variable to save a call (and a memory read).
3964 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3965 if possible (so that PC_IN_CALL_DUMMY will work).
3966
9bc1edb8
CV
39672002-05-22 Corinna Vinschen <vinschen@redhat.com>
3968
3969 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3970
005ef3d2
ML
39712002-05-22 Michal Ludvig <mludvig@suse.cz>
3972
3973 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3974 fde->cie_ptr.
3975 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3976 (dwarf2_build_frame_info): Add offset to fde->initial_location
3977 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
3978 (execute_stack_op): Change type of 'result' from ULONGEST to
3979 CORE_ADDR.
005ef3d2 3980
fcf4f891
JT
39812002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3982
3983 * config/alpha/tm-nbsd.h: Include solib.h.
3984
cfef91e4
JT
39852002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3986
3987 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3988 assumptions about the host's byte order.
3989
9964235a
JT
39902002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3991
3992 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3993 to dependency list.
3994 * alphanbsd-tdep.c: Include solib-svr4.h.
3995 * shnbsd-tdep.c: Ditto.
3996
9eeef8ef
JT
39972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3998
3999 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4000 nbsd-tdep.h to dependency list.
4001 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4002 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4003 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4004 nbsdaout.mh and nbsdelf.mh consistently.
4005 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4006 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4007 nbsdaout.mt and nbsdelf.mh consistently.
4008 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4009 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4010 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4011 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4012 a.out shared library stuff from here...
4013 * config/nm-nbsdaout.h: ...to here.
4014 * config/tm-nbsd.h: Remove.
4015 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4016 * config/arm/nbsd.mh: Remove.
4017 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4018 nbsd-tdep.o.
4019 * config/arm/nbsdaout.mh: New file.
4020 * config/arm/nbsdelf.mh: New file.
4021 * config/arm/nm-nbsdaout.h: New file.
4022 * config/i386/nbsd.mh: Remove.
4023 * config/i386/nbsd.mt: Remove.
4024 * config/i386/nbsdaout.mh: New file.
4025 * config/i386/nbsdaout.mt: New file.
4026 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4027 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4028 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4029 i386_register_u_addr): Remove.
4030 * config/i386/nm-nbsdaout.h: New file.
4031 * config/i386/nm-nbsdelf.h: Remove.
4032 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4033 (USE_STRUCT_CONVENTION): Remove.
4034 * config/i386/tm-nbsdaout.h: New file.
4035 * config/i386/tm-nbsdelf.h: Remove.
4036 * config/m68k/nbsd.mh: Remove.
4037 * config/m68k/nbsd.mt: Remove.
4038 * config/m68k/nbsdaout.mh: New file.
4039 * config/m68k/nbsdaout.mt: New file.
4040 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4041 * config/m68k/nm-nbsdaout.h: New file.
4042 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4043 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4044 * config/ns32k/nbsd.mh: Remove.
4045 * config/ns32k/nbsd.mt: Remove.
4046 * config/ns32k/nbsdaout.mh: New file.
4047 * config/ns32k/nbsdaout.mt: New file.
4048 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4049 * config/ns32k/nm-nbsdaout.h: New file.
4050 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4051 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4052 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4053 (SVR4_SHARED_LIBS): Remove.
4054 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4055 * config/sparc/nbsd.mh: Remove.
4056 * config/sparc/nbsd.mt: Remove.
4057 * config/sparc/nbsdaout.mh: New file.
4058 * config/sparc/nbsdaout.mt: New file.
4059 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4060 * config/sparc/nbsdelf.mt: New file.
4061 * config/sparc/nm-nbsdaout.h: New file.
4062 * config/sparc/nm-nbsdelf.h: Remove.
4063 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4064 * config/sparc/tm-nbsdaout.h: New file.
4065
257ce470
JT
40662002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4067
4068 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4069 mipsnbsd-tdep.c
4070 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4071
76a6d5fe
JT
40722002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4073
4074 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4075 shnbsd-nat.c.
4076 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4077
45888261
JT
40782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4079
4080 * NEWS: Note new MIPS NetBSD native configuration.
4081 * configure.host (mips*-*-netbsd*): New host.
4082 * configure.tgt (mips*-*-netbsd*): New target.
4083 * mipsnbsd-nat.c: New file.
4084 * mipsnbsd-tdep.c: New file.
4085 * mipsnbsd-tdep.h: New file.
4086 * config/mips/nbsd.mh: New file.
4087 * config/mips/nbsd.mt: New file.
4088 * config/mips/nm-nbsd.h: New file.
4089 * config/mips/tm-nbsd.h: New file.
4090
70f80edf
JT
40912002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4092
4093 * Makefile.in (SFILES): Add osabi.c.
4094 (COMMON_OBS): Add osabi.o.
4095 (osabi.o): New dependency list.
4096 * osabi.c: New file.
4097 * osabi.h: New file.
4098 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4099
4100 * Makefile.in (alpha_tdep_h): Define and use instead of
4101 alpha-tdep.h.
4102 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4103 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4104 Remove.
4105 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4106 * alpha-tdep.h: Include osabi.h.
4107 (alpha_abi): Remove.
4108 (gdbarch_tdep): Use generic OS ABI framework.
4109 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4110 gdbarch_register_osabi.
4111 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4112 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4113 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4114
4115 * Makefile.in (sh_tdep_h): Add osabi.h.
4116 * sh-tdep.h (sh_osabi): Remove.
4117 (gdbarch_tdep): Use generic OS ABI framework.
4118 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4119 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4120 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4121 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4122
4123 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4124 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4125 gdbarch_register_osabi.
4126 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4127 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4128 (get_elfosabi): Rename to...
4129 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4130 ABI framework support routines.
4131 (arm_gdbarch_init): Use generic OS ABI framework.
4132 (arm_dump_tdep): Likewise.
4133 (_initialize_arm_tdep): Likewise.
4134 * arm-tdep.h: Include osabi.h.
4135 (arm_abi): Remove.
4136 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4137 osabi member.
4138 (arm_gdbarch_register_os_abi): Remove prototype.
4139 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4140 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4141
4142 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4143 * mips-tdep.c: Include osabi.h.
4144 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4145 OS ABI framework.
4146
d194345b
KH
41472002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4148
4149 * h8300-tdep.c: Fix formatting.
4150
70c6b0d1
EZ
41512002-05-20 Elena Zannoni <ezannoni@redhat.com>
4152
4153 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4154 printing vector registers.
4155
165b8e33
AC
41562002-05-19 Andrew Cagney <ac131313@redhat.com>
4157
4158 From Fernando Nasser:
4159 * remote.c (remote_async_open_1): Re-throw the exception when the
4160 connection fails.
4161 (remote_cisco_open): Ditto.
4162 (remote_open_1): Ditto.
4163
36918e70
AC
41642002-05-19 Andrew Cagney <ac131313@redhat.com>
4165
4166 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4167 (remote_start_remote): Add uiout parameter. Pass through to
4168 remote_start_remote_dummy.
4169 (remote_open_1): Use catch_exception instead of catch_errors.
4170 (remote_async_open_1): Ditto.
4171 (remote_cisco_open): Ditto.
4172
ae44c0c4
AC
41732002-05-19 Andrew Cagney <ac131313@redhat.com>
4174
4175 * remote.c (remote_start_remote): Replace PTR with void pointer.
4176 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4177 static.
4178
8efe637d
AC
41792002-05-18 Andrew Cagney <ac131313@redhat.com>
4180
4181 * gdb_indent.sh: Allow the script to be run in the sim directory.
4182
2f1b5984
MK
41832002-05-18 Mark Kettenis <kettenis@gnu.org>
4184
f0f625e2
MK
4185 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4186 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4187
2f1b5984
MK
4188 * corelow.c (core_open): Only call set_gdbarch_from_file if
4189 exec_bfd is NULL.
4190
fc974602
AV
41912002-05-17 Andrey Volkov <avolkov@transas.com>
4192
4193 * h8300-tdep.c: Add support of EXR register
4194 * config/h8300/tm-h8300.h: Ditto.
4195
906709f4
AV
41962002-05-17 Andrey Volkov <avolkov@transas.com>
4197
4198 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4199
6e591d68
AV
42002002-05-17 Andrey Volkov <avolkov@transas.com>
4201
4202 * h8300-tdep.c: Change literal regnums to REGNO.
4203
84f0252a
JB
42042002-05-17 Jim Blandy <jimb@redhat.com>
4205
e0e9281e
JB
4206 * NEWS: Note addition of macro support.
4207
84f0252a
JB
4208 Expand preprocessor macros in C expressions.
4209 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4210 (scan_macro_expansion, scanning_macro_expansion,
4211 finished_macro_expansion): New function declarations.
4212 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4213 variable declarations.
4214 * parser-defs.h (expression_context_pc): New declaration.
4215 * parse.c (expression_context_pc): New variable.
4216 (parse_exp_1): Set expression_context_pc, as well as
4217 expression_context_block.
4218 * c-exp.y (yylex): If we're not already reading the result of a
4219 macro expansion, try to macro-expand the next token. When we're
4220 done scanning a macro expansion, switch back to the mainline text.
4221 Commas and `if's in a macro's expansion don't terminate the input.
4222 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4223 (macro_original_text, macro_expanded_text,
4224 expression_macro_lookup_func, expression_macro_lookup_baton): New
4225 variables.
4226 (scan_macro_expansion, scanning_macro_expansion,
4227 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4228 c_preprocess_and_parse): New functions.
4229 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4230 c_preprocess_and_parse, instead of c_parse.
4231 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4232 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4233
1c509ca8
JR
4234Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4235
4236 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4237 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4238 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4239
2250ee0c
CV
42402002-05-17 Corinna Vinschen <vinschen@redhat.com>
4241
4242 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4243
ab3b8126
JT
42442002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4245
4246 * Makefile.in (sh_tdep_h): Define and use.
4247 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4248 register enum): Move to...
4249 * * sh-tdep.h: ...here.
4250 * sh-tdep.c: Include sh-tdep.h.
4251 * sh3-rom.c: Likewise.
4252 * shnbsd-tdep.c: Likewise.
4253
ed9d4749
MS
42542002-05-16 Michael Snyder <msnyder@redhat.com>
4255
4256 * arm-tdep.c: Spelling fix in comment.
4257
2e276125
JB
42582002-05-16 Jim Blandy <jimb@redhat.com>
4259
6821892e
JB
4260 Add commands for manually expanding macros and showing their
4261 definitions.
4262 * macrocmd.c, macroscope.c, macroscope.h: New files.
4263 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4264 (macroscope_h): New variable.
4265 (HFILES_NO_SRCDIR): Add macroscope.h.
4266 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4267 (macroscope.o, macrocmd.o): New rules.
4268
2e276125
JB
4269 Teach the Dwarf 2 reader to read macro information.
4270 * dwarf2read.c: #include "macrotab.h".
4271 (dwarf_macinfo_buffer): New variable.
4272 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4273 dwarf_macinfo_size.
4274 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4275 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4276 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4277 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4278 dwarf2_macro_spaces_in_definition): New complaints.
4279 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4280 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4281 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4282 the partial symbol table.
4283 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4284 from what's recorded in the partial symbol table.
4285 (read_file_scope): If the compilation unit has a
4286 `DW_AT_macro_info' attribute, read its macro information.
4287 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4288
2f53fe6c
DJ
42892002-05-16 Daniel Jacobowitz <drow@mvista.com>
4290
4291 Fix PR gdb/546
4292 * ser-tcp.c: Don't include <netinet/udp.h>.
4293
2be99286
SC
42942002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4295
4296 * MAINTAINERS: Update my email address.
4297
c9af212b 42982002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4299
4300 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4301 include file of the same name.
4302
bf5f1a52
CV
43032002-05-16 Corinna Vinschen <vinschen@redhat.com>
4304
4305 * configure.tgt: Mark v850 as multi-arched.
4306 * config/v850/tm-v850.h: Remove file.
4307 * config/v850/v850.mt: Eliminate TM_FILE.
4308
435e042a
CV
43092002-05-16 Corinna Vinschen <vinschen@redhat.com>
4310
4311 * v850-tdep.c: Full multi-arch.
4312 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4313 Define GDB_MULTI_ARCH to 2.
4314
9819c6c8
PM
43152002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4316
4317 * p-exp.y (current_type): New static variable.
4318 Carries the type of the expression at the position that is parsed.
4319 (push_current_type, pop_current_type): Two new functions. Used
4320 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4321 (search_field): New static variable. Set to one after parsing a point
4322 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4323 (FIELDNAME): New token. After a point only a token belonging to
4324 current_type type definition is allowed.
4325 (all over token rules): reset and change current_type according
4326 to rules.
4327 (exp '[' rule): insert implicit array index field if
4328 exp is a pascal string type.
4329
3a06899a
CV
43302002-05-16 Corinna Vinschen <vinschen@redhat.com>
4331
4332 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4333 frame info. Use frame_info's saved_regs instead of matching member
4334 in extra_frame_info throughout.
4335 (v850_frame_init_saved_regs): New function.
4336 (v850_init_extra_frame_info): Move most functionality into
4337 v850_frame_init_saved_regs().
4338 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4339 (v850_frame_find_saved_regs): Remove declaration.
4340 (FRAME_FIND_SAVED_REGS): Remove definition.
4341 (v850_frame_init_saved_regs): Add declaration.
4342 (FRAME_INIT_SAVED_REGS): Add definition.
4343
6ed14b0e
CV
43442002-05-16 Corinna Vinschen <vinschen@redhat.com>
4345
4346 * v850-tdep.c: Begin multi-arch'ing v850.
4347 (v850_target_architecture_hook): Remove function.
4348 (v850_gdbarch_init): New function. Add code previously in
4349 v850_target_architecture_hook().
4350 (_initialize_v850_tdep): Don't set target_architecture_hook.
4351 Call register_gdbarch_init() instead.
4352
42725910
DJ
43532002-05-16 Daniel Jacobowitz <drow@mvista.com>
4354
4355 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4356 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4357 (fixup_class_method_type): Likewise.
4358
0bc68c49
DJ
43592002-05-15 Daniel Jacobowitz <drow@mvista.com>
4360
4361 From Martin Pool <mbp@samba.org>:
4362 * gdbserver/server.c (gdbserver_usage): New function.
4363 (main): Call it.
4364
99d9066e
JB
43652002-05-15 Jim Blandy <jimb@redhat.com>
4366
4367 Add macro structures to GDB's symbol tables. Nobody puts anything
4368 in them yet.
4369 * symtab.h (struct symtab): New member: `macro_table'.
4370 * buildsym.h (pending_macros): New global variable.
4371 * buildsym.c: #include "macrotab.h".
4372 (buildsym_init): Initialize `pending_macros'.
4373 (end_symtab): If we found macro information while reading a CU's
4374 debugging info, do build a symtab structure for it. Make the
4375 symtab point to the macro information, and clear the
4376 `pending_macros' pointer which held it while we were reading the
4377 debug info.
4378 (really_free_pendings): Free any pending macro table.
4379 * objfiles.h (struct objfile): New member: `macro_cache'.
4380 * objfiles.c (allocate_objfile): Set allocate and free functions
4381 for the macro cache's objstack.
4382 (free_objfile): Empty the macro cache's obstack.
4383 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4384 set new allocate and free functions for it.
4385 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4386 free functions for the macro cache's objstack. (Why is this
4387 function building its own objfile?)
4388 * symmisc.c (print_objfile_statistics): Print statistics on the
4389 macro bcache.
4390 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4391
c899585b
RE
43922002-05-15 Richard Earnshaw <rearnsha@arm.com>
4393
4394 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4395 (REGISTER_U_ADDR): Delete definition.
4396 (arm_register_u_addr): Delete declaration.
4397
a6cdd8c5
RE
43982002-05-15 Richard Earnshaw <rearnsha@arm.com>
4399
4400 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4401 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4402
fd3a5ca1
DJ
44032002-05-14 Daniel Jacobowitz <drow@mvista.com>
4404
4405 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4406 stop_at -> stop_pc.
4407
c97dcfc7
AC
44082002-05-14 Andrew Cagney <ac131313@redhat.com>
4409
4410 * regcache.c (register_valid): Revise comments refering to "Not
4411 available" and "unavailable".
4412 * frame.c (frame_register_read): Ditto.
4413 * findvar.c (value_of_register): Ditto.
4414
93021b7d
AC
44152002-05-15 Andrew Cagney <cagney@redhat.com>
4416
4417 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4418 (remote-sim.o): Update dependencies.
4419 (d10v-tdep.o): Specify dependencies.
4420 (sim_d10v_h): Define.
4421
a86bc61c
JB
44222002-05-14 Jim Blandy <jimb@redhat.com>
4423
4424 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4425 * macrotab.c (macro_lookup_inclusion, find_definition,
4426 new_macro_table): Same.
4427
4428 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4429 not `! strcmp ()'. This is a dubious improvement.
4430 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4431
4432 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4433 although it's not necessary, to avoid a warning.
4434
2fdde8f8
DJ
44352002-05-14 Daniel Jacobowitz <drow@mvista.com>
4436
4437 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4438 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4439 TYPE_INSTANCE_FLAGS.
4440 (struct main_type): New.
4441 (struct type): Move most members to struct main_type. Change
4442 cv_type and as_type to new type_chain member. Add instance_flags.
4443 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4444 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4445 (finish_cv_type): Remove prototype.
4446 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4447 Set TYPE_CHAIN.
4448 (alloc_type_instance): New function.
4449 (smash_type): New function.
4450 (make_pointer_type, make_reference_type, make_function_type)
4451 (smash_to_member_type, smash_to_method_type): Call smash_type.
4452 (make_qualified_type): New function.
4453 (make_type_with_address_space): Call make_qualified_type.
4454 (make_cv_type): Likewise.
4455 (finish_cv_type): Remove unnecessary function.
4456 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4457 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4458 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4459 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4460 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4461 * hpread.c (hpread_read_struct_type): Likewise.
4462 * stabsread.c (read_struct_type): Likewise.
4463
843fedf4
EZ
44642002-05-14 Elena Zannoni <ezannoni@redhat.com>
4465
4466 * configure.tgt: Add a catch all sh* target, for cases like
4467 sh[2,3,4]-elf and sh-hms.
4468
05a6c72c
KS
44692002-05-14 Keith Seitz <keiths@redhat.com>
4470
4471 * event-loop.c (create_file_handler): Don't do anything but
4472 update data when we are given a fd which we are already
4473 monitoring.
4474
5d085aaf
ML
44752002-05-14 Michal Ludvig <mludvig@suse.cz>
4476
4477 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4478 (update_context): Use __func__ in warnings.
4479
9db8d71f
DJ
44802002-05-14 Daniel Jacobowitz <drow@mvista.com>
4481
4482 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4483 and tcp_close to net_open and net_close.
4484 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4485 using UDP if requested. Don't try to disable Nagle on UDP
4486 sockets.
4487 * remote.c (remote_serial_open): New function. Warn about UDP.
4488 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4489
5dbc6baa
EZ
44902002-05-13 Elena Zannoni <ezannoni@redhat.com>
4491
4492 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4493
cc3023f7
EZ
44942002-05-13 Elena Zannoni <ezannoni@redhat.com>
4495
4496 * configure.tgt: Remove sh-hms target.
4497 * MAINTAINERS: Don't list sh-hms as a separate target.
4498
ec2bcbe7
JB
44992002-05-13 Jim Blandy <jimb@redhat.com>
4500
4501 Add first preprocessor macro-expansion files.
4502 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4503 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4504 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4505 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4506 (COMMON_OBS): Add macrotab.o, macroexp.o.
4507 (macroexp.o, macrotab.o): New rules.
4508
6d531722
AC
45092002-05-13 Andrew Cagney <ac131313@redhat.com>
4510
4511 * config/m88k/tm-m88k.h: Update copyright.
4512 (m88k_target_write_pc): Declare
4513 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4514 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4515 (SHIFT_INST_REGS): Update definition.
4516 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4517 using old definition of TARGET_WRITE_PC.
4518 * regcache.c (generic_target_write_pc): Delete code handling
4519 NNPC_REGNUM.
4520 * gdbarch.sh (NNPC_REGNUM): Delete.
4521 * gdbarch.h, gdbarch.c: Regenerate.
4522
3e3f2739
RE
45232002-05-13 Richard Earnshaw <rearnsha@arm.com>
4524
4525 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4526 builtin reg number.
4527
0004e5a2
DJ
45282002-05-13 Daniel Jacobowitz <drow@mvista.com>
4529
4530 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4531 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4532 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4533 access macros.
4534 * c-typeprint.c (cp_type_print_method_args): Likewise.
4535 (c_type_print_args): Likewise.
4536 * d10v-tdep.c (d10v_push_arguments): Likewise.
4537 (d10v_extract_return_value): Likewise.
4538 * expprint.c (print_subexp): Likewise.
4539 * gdbtypes.c (lookup_primitive_typename): Likewise.
4540 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4541 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4542 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4543 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4544 (TYPE_VECTOR): Likewise.
4545 * hpread.c (hpread_read_struct_type)
4546 (fix_static_member_physnames, fixup_class_method_type)
4547 (hpread_type_lookup): Likewise.
4548 * mdebugread.c (parse_symbol, parse_type): Likewise.
4549 * p-lang.c (is_pascal_string_type): Likewise.
4550 * valops.c (hand_function_call): Likewise.
4551 * x86-64-tdep.c (classify_argument): Likewise.
4552
4553 * hpread.c (hpread_read_function_type)
4554 (hpread_read_doc_function_type): Call replace_type.
4555 * dstread.c (create_new_type): Delete.
4556 (decode_dst_structure, process_dst_function): Call alloc_type.
4557 Use type access macros.
4558
dff95cc7
MK
45592002-05-12 Mark Kettenis <kettenis@gnu.org>
4560
4561 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4562 the're not supported by the current architecture.
4563 (i387_fill_fxsave): Likewise.
4564
bbcd32ad
FF
45652002-05-12 Fred Fish <fnf@redhat.com>
4566
4567 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4568 sect_index_xxx members to index the first slot in section_offsets
4569 if all of the section_offsets are zero.
4570
89cf4787
MK
45712002-05-12 Mark Kettenis <kettenis@gnu.org>
4572
4573 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4574 checked in with last change.
4575
1f77ffc5
MK
45762002-05-12 Mark Kettenis <kettenis@gnu.org>
4577
4578 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4579 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4580 config.sub.
4581
89b8b4a9
DJ
45822002-05-12 Daniel Jacobowitz <drow@mvista.com>
4583
4584 * Makefile.in: Update dependencies.
4585
14a5e767
AC
45862002-05-11 Andrew Cagney <ac131313@redhat.com>
4587
4588 * language.c (local_hex_string_custom): Simplify. Do not depend
4589 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4590
4591 * memattr.c (mem_info_command): Replace calls to
4592 longest_local_hex_string and longest_local_hex_string_custom.
4593 * buildsym.c (make_blockvector): Ditto.
4594 * solib.c (info_sharedlibrary_command): Ditto.
4595 * tracepoint.c (tracepoints_info): Ditto.
4596 * symtab.c (print_msymbol_info): Ditto.
4597
4598 * language.c (local_hex_string): Delete.
4599 (local_hex_string_custom): Delete.
4600 (longest_local_hex_string): Rename to local_hex_string.
4601 (longest_local_hex_string_custom): Rename to
4602 local_hex_string_custom.
4603 * language.h (local_hex_string): Change parameter type to LONGEST.
4604 (local_hex_string_custom): Ditto.
4605 (longest_local_hex_string): Delete declaration.
4606 (longest_local_hex_string_custom): Ditto.
4607
4608 * solib.c: Update copyright.
4609 * memattr.c: Update copyright.
4610
13d01224
AC
46112002-05-11 Andrew Cagney <ac131313@redhat.com>
4612
4613 * arch-utils.h (legacy_register_to_value): Declare.
4614 (legacy_value_to_register): Declare.
4615 (legacy_convert_register_p): Declare.
4616 * arch-utils.c (legacy_register_to_value): New function.
4617 (legacy_value_to_register): New function.
4618 (legacy_convert_register_p): New function.
4619
4620 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4621 (VALUE_TO_REGISTER): Define.
4622 (CONVERT_REGISTER_P): Define.
4623 * gdbarch.h, gdbarch.c: Regenerate.
4624
4625 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4626 VALUE_TO_REGISTER.
4627 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4628 CONVERT_REGISTER_P.
4629
4a1970e4
DJ
46302005-05-11 Daniel Jacobowitz <drow@mvista.com>
4631 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4632
4633 * Makefile.in: Update dependencies for valops.c.
4634 * valops.c: Include "gdb_assert.h".
4635 (typecmp): Skip THIS parameter to methods.
4636 (find_method_list): Remove static_memfuncp argument,
4637 update callers. Check for stub methods.
4638 (find_value_oload_method_list): Don't set *static_memfuncp.
4639 (find_overload_match): Don't check for stub methods. Assert
4640 that methods are not stubbed. Handle static methods.
4641 (value_find_oload_method_list): Remove static_memfuncp argument.
4642 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4643 to the argument list for static stub methods.
4644 * value.h (value_find_oload_method_list): Update prototype.
4645
b2e75d78
AC
46462002-05-11 Andrew Cagney <ac131313@redhat.com>
4647
4648 * arch-utils.h (generic_register_size): Declare.
4649 (generic_register_raw_size, generic_register_virtual_size): Delete
4650 declarations.
4651 * arch-utils.c (generic_register_raw_size): Delete.
4652 (generic_register_size): New function.
4653 (generic_register_virtual_size): Delete.
4654
4655 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4656 default generic_register_size.
4657 * gdbarch.h, gdbarch.c: Re-generate.
4658
4659 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4660 register_virtual_size.
4661 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4662 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4663
451fbdda
AC
46642002-05-11 Andrew Cagney <ac131313@redhat.com>
4665
4666 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4667 * gdbarch.h, gdbarch.c: Regenerate.
4668 * gnu-v3-abi.c: Update copyright.
4669 (vtable_address_point_offset): Update.
4670 (gnuv3_rtti_type): Update.
4671 (gnuv3_baseclass_offset): Update.
4672 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4673 (init_fetch_link_map_offsets): Update.
4674 * remote.c (get_remote_state): Update.
4675
6d2f5cea
DJ
46762002-05-11 Daniel Jacobowitz <drow@mvista.com>
4677
4678 * TODO: Remove value_headof/value_from_vtable_info comment.
4679 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4680 * values.c (value_headof, value_from_vtable_info): Delete.
4681 * value.h (value_from_vtable_info): Delete prototype.
4682
d2324da4
AC
46832002-05-11 Andrew Cagney <ac131313@redhat.com>
4684
4685 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4686 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4687 $(gdb_regex_h).
4688 (gdb_assert_h): Define.
4689 (gdb_wait_h): Define.
4690 (gdb_regex_h): Define.
4691
5c717440
DJ
46922002-05-11 Daniel Jacobowitz <drow@mvista.com>
4693
4694 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4695 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4696
6c7861b3
JT
46972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4698
4699 * nbsd-tdep.c: Fix comment.
4700
ea5bc2a6
JT
47012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4702
4703 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4704 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4705 (nbsd-tdep.o): New dependency list.
4706 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4707 nbsd-tdep.h.
4708 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4709 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4710 * nbsd-tdep.c: New file.
4711 * nbsd-tdep.h: New file.
4712 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4713 nbsd-tdep.h.
4714 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4715 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4716 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4717 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4718
b28da865
JT
47192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4720
4721 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4722 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4723 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4724 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4725 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4726 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4727
4b8ff1fa
JT
47282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4729
4730 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4731 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4732 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4733 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4734 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4735 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4736 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4737
dfe6eb1f
JT
47382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4739
4740 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4741 fetch_elfcore_registers to...
4742 * i386nbsd-tdep.c: ...here.
4743 (i386nbsd_use_struct_convention): Rename to...
4744 (i386nbsd_aout_use_struct_convention): ...this.
4745 (i386nbsd_supply_reg): New function.
4746 (i386nbsd_fill_reg): New function.
4747 (fetch_core_registers): Use i386nbsd_supply_reg.
4748 (fetch_elfcore_registers): Likewise.
4749 (_initialize_i386nbsd_tdep): New function.
4750 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4751 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4752 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4753 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4754 (i386nbsd_aout_use_struct_convention): ...this.
4755
20cb8cda
JT
47562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4757
4758 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4759 (store_inferior_registers): Use shnbsd_fill_reg.
4760 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4761 sh_nbsd_supply_register): Collapse into...
4762 (shnbsd_supply_reg): ...this.
4763 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4764 (shnbsd_fill_reg): ...this.
4765 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4766 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4767 (fetch_core_registers): Use shnbsd_supply_reg.
4768 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4769 (sh_nbsd_core_fns): Rename to...
4770 (shnbsd_core_fns): ...this.
4771 (sh_nbsd_elfcore_fns): Rename to...
4772 (shnbsd_elfcore_fns): ...this.
4773 (sh_nbsd_init_abi): Rename to...
4774 (shnbsd_init_abi): ...this.
4775 (_initialize_sh_nbsd_tdep): Rename to...
4776 (_initialize_shnbsd_tdep): ...this.
4777 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4778 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4779 sh_nbsd_fill_register): Remove prototypes.
4780 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4781
e750d25e
JT
47822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4783
4784 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4785 (i387-nat.o): Delete dependency list.
4786 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4787 (x86-64-linux-nat.o): Likewise.
4788 * i387-nat.c: Delete file, moving contents to...
4789 * i387-tdep.c: ...here.
4790 * i387-nat.h: Rename...
4791 * i387-tdep.h: ...to this.
4792 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4793 * i386-linux-nat.c: Likewise.
4794 * i386bsd-nat.c: Likewise.
4795 * i386gnu-nat.c: Likewise.
4796 * i386nbsd-nat.c: Likewise.
4797 * i386v4-nat.c: Likewise.
4798 * x86-64-linux-nat.c: Likewise.
4799 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4800 * config/i386/go32.mh (NATDEPFILES): Likewise.
4801 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4802 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4803 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4804 * config/i386/linux.mh (NATDEPFILES): Likewise.
4805 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4806 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4807 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4808 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4809
1aee598a
JT
48102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4811
4812 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4813 (alphanbsd-nat.o): Remove dependency list.
4814 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4815 * alphanbsd-nat.c: Delete. Contents moved to...
4816 * alphanbsd-tdep.c: ...here.
4817 (_initialize_alphanbsd_tdep): Register core functions.
4818 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4819
12bcb0fe
JT
48202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4821
4822 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4823 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4824 (alphanbsd-nat.o): Likewise.
4825 (alphabsd-tdep.o): New dependency list.
4826 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4827 (fill_gregset): Use alphabsd_fill_reg.
4828 (supply_fpregset): Use alphabsd_supply_fpreg.
4829 (fill_fpregset): Use alphabsd_fill_fpreg.
4830 (fetch_inferior_registers): Use struct reg and struct fpreg
4831 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4832 and alphabsd_supply_fpreg.
4833 (store_inferior_registers): Use struct reg and struct fpreg
4834 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4835 and alphabsd_fill_fpreg.
4836 * alphabsd-tdep.c: New file.
4837 * alphabsd-tdep.h: New file.
4838 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4839 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4840 alphabsd_supply_fpreg.
4841 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4842 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4843
361d1df0
EC
48442002-05-11 Eric Christopher <echristo@redhat.com>
4845
4846 * mips-tdep.c (mips_double_register_type): Fix thinko.
4847 (mips_single_register_type): Ditto.
4848 * MAINTAINERS: Add self.
4849
92dd7cee
MK
48502002-05-11 Mark Kettenis <kettenis@gnu.org>
4851
4852 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4853 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4854 right thing on architectures with different endianness and/or
4855 integer sizes.
4856
e27da16d
JT
48572002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4858
4859 From Christian Limpach <chris@Pin.LU>
4860 * configure.in: Change sed expression which comments out
4861 NATDEPFILES to also comment out continuation lines.
4862 * configure: Regenerate.
4863
ddde02bd
EZ
48642002-05-10 Elena Zannoni <ezannoni@redhat.com>
4865
4866 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4867 big patch.
4868
1c922164
EZ
48692002-05-10 Elena Zannoni <ezannoni@redhat.com>
4870
4871 * sh-tdep.c: Include correct file.
4872
283150cd
EZ
48732002-05-10 Elena Zannoni <ezannoni@redhat.com>
4874
4875 New support for sh64-elf (sh5) target.
4876
4877 * configure.tgt: For sh64-elf target, default to sh-elf.
4878
4879 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4880 (struct gdbarch_tdep): Add new fields for new registers and ABI
4881 info.
361d1df0 4882
283150cd
EZ
4883 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4884 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4885 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4886 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4887 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4888 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4889 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4890 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4891 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4892 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4893 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4894 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4895 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4896 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4897 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4898 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4899 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4900 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4901 sign_extend, sh64_nofp_frame_init_saved_regs,
4902 sh64_init_extra_frame_info, sh64_get_saved_register,
4903 sh64_extract_struct_value_address, sh64_pop_frame,
4904 sh64_push_arguments, sh64_extract_return_value,
4905 sh64_store_return_value, sh64_show_media_regs,
4906 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4907 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4908 sh_sh64_register_virtual_type,
4909 sh_sh64_register_convert_to_virtual,
4910 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4911 sh64_register_read, sh64_pseudo_register_write,
4912 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4913 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4914 sh64_do_pseudo_register, sh_compact_do_registers_info,
4915 sh64_do_registers_info, sh_gdbarch_init): New functions.
4916
3117ed25
EZ
49172002-05-10 Elena Zannoni <ezannoni@redhat.com>
4918
4919 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4920
2654e6d4
DJ
49212002-05-10 Daniel Jacobowitz <drow@mvista.com>
4922
4923 * linespec.c (decode_line_1): Check for a double quote after
4924 a filename correctly.
4925
9ab3e532
JB
49262002-05-10 Jim Blandy <jimb@redhat.com>
4927
4928 Properly track the size of the current objfile's .debug_line section.
4929 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4930 (DWARF_LINE_SIZE): New macro.
4931 (dwarf2_build_psymtabs_hard): Record the line section's size in
4932 the partial symbol table.
4933 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4934 symbol table.
4935
126fa72d
PS
49362002-05-10 Petr Sorfa <petrs@caldera.com>
4937
4938 * ia64-tdep.c: Handle breakpoints on L instruction type
4939 in MLX instruction bundle by moving the breakpoint to
4940 the third slot (X instruction type) as L holds only data.
4941
1f077a3e
KB
49422002-05-10 Kevin Buettner <kevinb@redhat.com>
4943
4944 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4945 (process_one_symbol): Complain about discarding local symbols
4946 due to a misplaced N_LBRAC entry.
4947
8120c9d5 49482002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
4949
4950 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
4951 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4952 decrease the depth we are at, in the case of templates.
361d1df0 4953
67b2c998
DJ
49542002-05-09 Daniel Jacobowitz <drow@mvista.com>
4955
4956 * mips-tdep.c (mips_float_register_type): New function.
4957 (mips_double_register_type): New function.
4958 (mips_print_register): Use them.
4959 (do_fp_register_row): Likewise.
4960
fd326606
DJ
49612002-05-09 Daniel Jacobowitz <drow@mvista.com>
4962
6609d9af 4963 * signals/signals.c (signals): Remove conditional compilation around
fd326606 4964 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 4965 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 4966
bef35864
MS
49672002-05-09 Michael Snyder <msnyder@redhat.com>
4968
4969 * remote-rdp.c (remote_rdp_can_run): Remove.
4970
c55a3f73
TT
49712002-05-09 Tom Tromey <tromey@redhat.com>
4972
4973 * jv-valprint.c (java_val_print): Handle `char' as a special case
4974 of TYPE_CODE_INT.
4975
b8d5e71d
MS
49762002-05-09 Michael Snyder <msnyder@redhat.com>
4977
4978 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4979 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 4980 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 4981 str r(0123),[sp,#nn].
361d1df0 4982 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
4983 order-independent by placing it in a loop.
4984
e2cd42dd
MS
49852002-05-06 Michael Snyder <msnyder@redhat.com>
4986
4987 * stabsread.c (read_type): Add recognition for new attribute:
4988 "@V;" means that an array type is actually a vector.
4989 This is analogous to the vector flag that's been added to dwarf2.
4990
3ce1502b
MK
49912002-05-09 Mark Kettenis <kettenis@gnu.org>
4992
4993 * i386-tdep.h (i386_abi): New enum.
4994 (struct gdbarch_tdep): Replace os_ident member with abi.
4995 (i386_gdbarch_register_os_abi): New prototype.
4996 * i386-tdep.c (i386_abi_names): New array.
4997 (process_note_abi_tag_sections): Removed.
4998 (process_note_sections): New function.
4999 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5000 (struct i386_abi_handler): New struct.
5001 (i386_abi_handler_list): New variable.
5002 (i386_gdbarch_register_os_abi): New function.
5003 (i386_gdbarch_init): Adapt for the changes given above.
5004
084c156a
DJ
50052002-05-08 Daniel Jacobowitz <drow@mvista.com>
5006
5007 * gregset.h: Say "GNU/Linux".
5008
6599f021
EZ
50092002-05-08 Elena Zannoni <ezannoni@redhat.com>
5010
5011 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5012 (build_gdbtypes): Build builtin_type_v2_float.
5013 (_initialize_gdbtypes): Register new builtin type.
5014
40af4b0c
AC
50152002-05-08 Andrew Cagney <ac131313@redhat.com>
5016
5017 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5018 (clear_gdbarch_swap): New function.
5019 (initialize_non_multiarch): Call.
5020 (gdbarch_update_p): Before calling init(), swap out and clear the
5021 existing architecture.
5022 * gdbarch.c: Regenerate.
5023
4fe84f46
JT
50242002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5025
5026 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5027 alphanbsd-tdep.c.
5028
4015edd1
JT
50292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5030
5031 * sh-nbsd-nat.c: Rename to...
5032 * shnbsd-nat.c: ...this.
5033 * sh-nbsd-tdep.c: Rename to...
5034 * shnbsd-tdep.c: ...this.
5035 * sh-nbsd-tdep.h: Rename to...
5036 * shnbsd-tdep.h: ...this.
5037 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5038 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5039
0e2bd219
RE
50402002-05-08 Richard Earnshaw <rearnsha@arm.com>
5041
5042 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5043 concatenation for command help messages.
5044
13a38d45
JT
50452002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5046
5047 * NEWS: Note new sh*-*-netbsdelf* configuration.
5048 * configure.host: Set gdb_host_cpu to sh for all sh*.
5049 (sh*-*-netbsdelf*): New host.
5050 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5051 (sh*-*-netbsdelf*): New target.
5052 * sh-nbsd-nat.c: New file.
5053 * sh-nbsd-tdep.c: New file.
5054 * sh-nbsd-tdep.h: New file.
5055 * config/sh/nbsd.mh: New file.
5056 * config/sh/nbsd.mt: New file.
5057 * config/sh/nm-nbsd.h: New file.
5058 * config/sh/tm-nbsd.h: New file.
5059
d658f924
JT
50602002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5061
5062 * sh-tdep.c (sh_osabi_names): Declare.
5063 (process_note_abi_tag_sections): New function.
5064 (get_elfosabi): Ditto.
5065 (sh_gdbarch_register_os_abi): Ditto.
5066 (sh_dump_tdep): Ditto.
5067 _initialize_sh_tdep): Use gdbarch_register to register
5068 sh_gdbarch_init and sh_dump_tdep.
5069 * config/sh/tm-sh.h (sh_osabi): Declare.
5070 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5071
848cfffb
AC
50722002-05-07 Andrew Cagney <ac131313@redhat.com>
5073
5074 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5075 (thumb_scan_prologue): Ditto.
5076 (arm_find_callers_reg): Ditto.
5077 (arm_frame_chain): Ditto.
5078 (arm_init_extra_frame_info): Ditto.
5079 (arm_frame_saved_pc): Ditto.
5080 (arm_pop_frame): Ditto.
5081 (arm_push_return_address): New function.
5082 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5083 call_dummy_location, call_dummy_breakpoint_offset_p,
5084 call_dummy_breakpoint_offset, call_dummy_p,
5085 call_dummy_stack_adjust_p, call_dummy_words,
5086 sizeof_call_dummy_words, call_dummy_start_offset,
5087 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5088 call_dummy_address, push_return_address and push_dummy_frame for
5089 generic dummy frames.
5090
e7d717c0
JT
50912002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5092
5093 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5094 size computation for alloca.
5095 (sh_fp_frame_init_saved_regs): Likewise.
5096
7bbcf283
RE
50972002-05-07 Richard Earnshaw <rearnsha@arm.com>
5098
5099 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5100 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5101 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5102 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5103 * remote-rdp.c (remote_rdp_fetch_register): Use
5104 ARM_MAX_REGISTER_RAW_SIZE.
5105 (remote_rdp_store_register): Likewise.
5106
4657573b
ML
51072002-05-07 Michal Ludvig <mludvig@suse.cz>
5108
361d1df0 5109 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5110 added default labels to switch {} statements.
5111 * x86-64-tdep.c: Ditto.
5112 * x86-64-linux-nat.c: Ditto.
5113
010f3b2f
JT
51142002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5115
5116 * solib.h: Protect against multiple inclusion.
5117
debd256d
JB
51182002-05-06 Jim Blandy <jimb@redhat.com>
5119
9ab3e532
JB
5120 Add first preprocessor macro-expansion files.
5121 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5122 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5123 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5124 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5125 (COMMON_OBS): Add macrotab.o, macroexp.o.
5126 (macroexp.o, macrotab.o): New rules.
5127
debd256d
JB
5128 Separate the job of reading the line number info statement program
5129 header (...expialidocious) out into its own function.
5130 * dwarf2read.c (struct line_head, struct filenames, struct
5131 directories): Replace with...
5132 (struct line_header): New structure, containing the full
5133 contents of the statement program header, including the
5134 include directory and file name tables.
5135 (read_file_scope): If we have line number info, instead of just
5136 calling dwarf_decode_lines to do all the work, call
5137 dwarf_decode_line_header first to get a `struct line_header'
5138 containing the data in the statement program header, and then
5139 pass that to dwarf_decode_lines, which will pick up where that
5140 left off. Be sure to clean up the `struct line_header' object.
5141 (dwarf_decode_line_header, free_line_header, add_include_dir,
5142 add_file_name): New functions.
5143 (dwarf_decode_lines): Move all the code to read the statement
5144 program header into dwarf_decode_line_header. Take the line
5145 header it built as the first argument, instead of the offset to
5146 the compilation unit's line number info. Use the new `struct
5147 line_header' type instead of the old structures. No need to do
5148 cleanups here now, since we don't allocate anything.
5149 (dwarf2_statement_list_fits_in_line_number_section,
5150 dwarf2_line_header_too_long): New complaints.
5151
ac3aafc7
EZ
51522002-05-06 Elena Zannoni <ezannoni@redhat.com>
5153
5154 * gdbtypes.c (init_vector_type): New function.
5155 (build_builtin_type_vec128): Simplify the representation of SIMD
5156 registers.
5157 (build_gdbtypes): Initialize new builtin vector types.
5158 (_initialize_gdbtypes): Register new vector types with gdbarch.
5159 (builtin_type_v4_float, builtin_type_v4_int32,
5160 builtin_type_v8_int16, builtin_type_v16_int8,
5161 builtin_type_v2_int32, builtin_type_v4_int16,
5162 builtin_type_v8_int8): New (renamed) SIMD types.
5163
13e49980
MK
51642002-05-06 Mark Kettenis <kettenis@gnu.org>
5165
5166 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5167 (i387_fill_fxsave): Likewise.
5168
997b20b8
AO
51692002-05-05 Alexandre Oliva <aoliva@redhat.com>
5170
5171 * alpha-tdep.c (alpha_extract_return_value): Don't use
5172 non-constant array size in prototype.
5173
535c96ce
AC
51742002-05-04 Andrew Cagney <ac131313@redhat.com>
5175
5176 From Brian Taylor <briant at model dot com>:
5177 * ui-out.c (ui_out_field_core_addr): Use the function
5178 longest_local_hex_string_custom'to format addresses > 32 bits
5179 wide.
5180
5181 * ui-out.c (ui_out_field_core_addr): Update comment.
5182
bedfa57b
AC
51832002-05-04 Andrew Cagney <ac131313@redhat.com>
5184
5185 * stack.c (select_and_print_frame): Make static. Delete the
5186 parameter `level'.
5187 (func_command): Update call.
5188 (select_frame_command): Delete code computing the frame level.
5189 * frame.h (select_and_print_frame): Delete declaration.
5190
f621c63e
AC
51912002-05-04 Andrew Cagney <ac131313@redhat.com>
5192
5193 * sparc-tdep.c (sparc_get_saved_register): Comment why
5194 get_prev_frame call is safe.
5195
0f7d239c
AC
51962002-05-04 Andrew Cagney <ac131313@redhat.com>
5197
5198 * frame.h (select_frame): Delete level parameter.
5199 * stack.c (select_frame): Update. Use frame_relative_level to
5200 obtain the frame's level.
5201 (select_and_print_frame): Update call.
5202 (select_frame_command): Ditto.
5203 (up_silently_base): Ditto.
5204 (down_silently_base): Ditto.
5205 * ocd.c (ocd_start_remote): Ditto.
5206 * remote-rdp.c (remote_rdp_open): Ditto.
5207 * remote-mips.c (mips_initialize): Ditto.
5208 (common_open): Ditto.
5209 * remote-e7000.c (e7000_start_remote): Ditto.
5210 * m3-nat.c (select_thread): Ditto.
5211 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5212 (child_get_current_exception_event): Ditto.
5213 * varobj.c (varobj_create): Ditto.
5214 (varobj_update): Ditto.
5215 (c_value_of_root): Ditto.
5216 * tracepoint.c (finish_tfind_command): Ditto.
5217 * corelow.c (core_open): Ditto.
5218 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5219 * thread.c (info_threads_command): Ditto.
5220 (switch_to_thread): Ditto.
5221 * infrun.c (normal_stop): Ditto.
5222 (restore_selected_frame): Ditto.
5223 (restore_inferior_status): Ditto.
5224 * breakpoint.c (insert_breakpoints): Ditto.
5225 (watchpoint_check): Ditto.
5226 (bpstat_stop_status): Ditto.
5227 (do_enable_breakpoint): Ditto.
5228 * blockframe.c (flush_cached_frames): Ditto.
5229 (reinit_frame_cache): Ditto.
5230
71d6c7b1
AC
52312002-05-04 Andrew Cagney <ac131313@redhat.com>
5232
5233 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5234 maintainer.
5235
cda6c68a
JB
52362002-05-04 Jim Blandy <jimb@redhat.com>
5237
5238 * gdbtypes.c (replace_type): Doc fix.
5239
5c1c87f0
AC
52402002-05-04 Andrew Cagney <ac131313@redhat.com>
5241
5242 * valprint.c (strcat_longest): Delete commented out function.
5243 Update copyright.
5244
cd9bfe15
AC
52452002-05-04 Andrew Cagney <ac131313@redhat.com>
5246
5247 * MAINTAINERS: Mark a29k as deleted.
5248 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5249 Move new configurations to the top.
5250 * configure.tgt: Remove a29k.
5251 * config/a29k/tm-vx29k.h: Delete.
5252 * config/a29k/vx29k.mt: Delete.
5253 * config/a29k/tm-a29k.h: Delete.
5254 * config/a29k/a29k-udi.mt: Delete.
5255 * config/a29k/a29k.mt: Delete.
5256 * a29k-tdep.c: Delete.
5257 * remote-udi.c: Delete.
5258 * remote-mm.c: Delete.
5259 * remote-eb.c: Delete.
5260 * remote-adapt.c: Delete.
5261 * Makefile.in: Remove obsolete code.
5262 * gdbserver/Makefile.in: Ditto.
5263 * config/s390/s390x.mt: Ditto.
5264 * config/s390/s390.mt: Ditto.
5265 * config/sparc/sparclynx.mh: Ditto.
5266 * config/sparc/linux.mh: Ditto.
5267 * config/pa/hppaosf.mh: Ditto.
5268 * config/pa/hppabsd.mh: Ditto.
5269 * config/ns32k/nbsd.mt: Ditto.
5270 * config/mips/vr5000.mt: Ditto.
5271 * config/m68k/sun3os4.mh: Ditto.
5272 * config/m68k/nbsd.mt: Ditto.
5273 * config/m68k/m68klynx.mh: Ditto.
5274 * config/m32r/m32r.mt: Ditto.
5275 * config/i386/x86-64linux.mt: Ditto.
5276 * config/i386/nbsdelf.mt: Ditto.
5277 * config/i386/nbsd.mt: Ditto.
5278 * config/i386/i386lynx.mh: Ditto.
5279
bf0c5130
AC
52802002-05-04 Andrew Cagney <ac131313@redhat.com>
5281
5282 * target.c (debug_print_register): New function. Handle oversize
5283 registers.
5284 (debug_to_fetch_registers): Call.
5285 (debug_to_store_registers): Call.
5286
2ae1c2d2
JB
52872002-05-03 Jim Blandy <jimb@redhat.com>
5288
13a393b0
JB
5289 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5290 (read_type): Doc fix.
5291 * gdbtypes.c (replace_type): Doc fix.
5292
2ae1c2d2
JB
5293 * stabsread.c (multiply_defined_struct): New complaint.
5294 (read_struct_type): If the type we were passed isn't empty, or
5295 incomplete, don't read the new struct type into it; complain,
5296 and return the original type unchanged. Take a new `type_code'
5297 argument, which is the type code for the new type.
5298 (read_type): Rather than storing the type's type code here, pass
5299 it as an argument to read_struct_type, and let that take care of
5300 storing it. That way, we don't overwrite the original type code,
5301 so read_struct_type can use it to decide whether we're overwriting
5302 something we shouldn't.
5303 (complain_about_struct_wipeout): New function.
5304
8de9bdc4
AC
53052002-05-03 Andrew Cagney <ac131313@redhat.com>
5306
5307 * gdbarch.sh: Assert that gdbarch is non-NULL.
5308 * gdbarch.c: Regenerate.
5309
f773fdbb
JM
53102002-05-03 Jason Merrill <jason@redhat.com>
5311
5312 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5313 and return NULL.
5314
0e04a514
ML
53152002-05-03 Michal Ludvig <mludvig@suse.cz>
5316
5317 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5318 (x86_64_dwarf2gdb_regno_map_length),
5319 (x86_64_dwarf2_reg_to_regnum): Added.
5320 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5321 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5322 (_initialize_x86_64_tdep): Synced with the change above.
5323 (x86_64_skip_prologue): Reformulated message.
5324
065432a8
PM
53252002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5326
5327 * f-exp.y: Also use new prev_lexptr variable
5328 to improve error reporting. Based on Michael Snyder
5329 2002-04-24 dated patch to c-exp.y.
5330 * jv-exp.y: Likewise.
5331 * m2-exp.y: Likewise.
5332
a3162708
EZ
53332002-05-02 Elena Zannoni <ezannoni@redhat.com>
5334
5335 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5336 we are dealing with vectors.
5337
03620c38
PM
53382002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5339
5340 * config/m68k/tm-nbsd.h: Obvious fix,
5341 correct machine name.
5342
6604db2e
PM
53432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5344
5345 * p-typeprint.c (pascal_type_print_base): Add support
5346 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5347
0906b739
PM
53482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5349
5350 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5351 for fondamental pascal 'char' type.
5352
e2625b33
PM
53532002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5354
5355 * p-lang.h (is_pascal_string_type): Declaration changed,
5356 new sixth argument of type char ** added.
361d1df0 5357 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5358 changed. Args length_pos, length_size, string_pos, char_size
5359 can now be NULL. New argument arrayname set to the field
5360 name of the char array. Return value set to char array
5361 field index plus one.
361d1df0 5362 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5363 is_pascal_string_type function.
5364
cf17c188
AC
53652002-05-02 Andrew Cagney <cagney@redhat.com>
5366
5367 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5368 <cagney@redhat.com> change.
5369 * gdbarch.c: Regenerate.
5370
52bca491
AC
53712002-05-02 Andrew Cagney <cagney@redhat.com>
5372
5373 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5374 before probing for a new one. Detect errorenous gdbarch_init
5375 functions.
5376 * gdbarch.c: Regenerate.
5377
d5e72505
AC
53782002-05-01 Andrew Cagney <cagney@redhat.com>
5379
5380 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5381 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5382 * config/v850/tm-v850.h: Ditto. Update copyright.
5383
af566d9f
AC
53842002-04-30 Andrew Cagney <ac131313@redhat.com>
5385
5386 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5387 current_gdbarch.
5388
880d85fa
MS
53892002-04-30 Michael Snyder <msnyder@redhat.com>
5390
94c30b78
MS
5391 * arm-tdep.c: Whitespace clean-ups.
5392 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5393 should have been removed as part of 4/24 change.
5394
6f5987a6
KB
53952002-04-30 Kevin Buettner <kevinb@redhat.com>
5396
5397 * rs6000-tdep.c: Added comment describing how fpscr register
5398 numbers were chosen.
5399
1a113c93
MS
54002002-04-30 Michael Snyder <msnyder@redhat.com>
5401
5402 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5403
9a6f53fe
EZ
54042002-04-29 Elena Zannoni <ezannoni@redhat.com>
5405
5406 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5407 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5408 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5409
11ed25ac
KB
54102002-04-29 Kevin Buettner <kevinb@redhat.com>
5411
5412 From Louis Hamilton <hamilton@redhat.com>:
5413 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5414 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5415 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5416 not bfd-private xcoff data, to determine wordsize.
5417 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5418
ae232405
AC
54192002-04-29 Andrew Cagney <ac131313@redhat.com>
5420
5421 GDB 5.2 released from 5.2 branch.
5422
91fd20f7
ML
54232002-04-29 Michal Ludvig <mludvig@suse.cz>
5424
5425 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5426 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5427 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5428
2dc5091b
EZ
54292002-04-29 Elena Zannoni <ezannoni@redhat.com>
5430
5431 * rs6000-tdep.c (rs6000_extract_return_value,
5432 rs6000_store_return_value): Handle returning vectors.
5433 (rs6000_gdbarch_init): Use
5434 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5435 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5436 New function.
5437 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5438 vectors.
5439 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5440 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5441
2b9848d8
PM
54422002-04-24 Pierre Muller <ics.u-strasbg.fr>
5443
5444 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5445 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5446 with fprintf_unfiltered (gdb_stderr,...).
5447
f8d17dc5
PM
54482002-04-24 Pierre Muller <ics.u-strasbg.fr>
5449
5450 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5451 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5452 Replace fprintf (stderr,...
5453 with fprintf_unfiltered (gdb_stderr,....
5454 * remote-es.c: Likewise.
5455 * remote-os9k.c: Likewise.
5456 * remote-st.c: Likewise.
5457
2f2f1ad1
AS
54582002-04-28 Andreas Schwab <schwab@suse.de>
5459
5460 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5461 linux-proc.o and gcore.o.
5462
b6779aa2
AC
54632002-04-26 Michal Ludvig <mludvig@suse.cz>
5464
5465 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5466 code without frame pointers.
5467
7e57f5f4
AC
54682002-04-26 Andrew Cagney <ac131313@redhat.com>
5469
5470 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5471 ON_STACK is needed.
5472
2ceb85d0
BE
54732002-04-26 Ben Elliston <bje@redhat.com>
5474
5475 * target.c (do_xfer_memory): Correct reference to the new option
5476 "trust-readonly-sections".
5477
f5f8a009
EZ
54782002-04-26 Elena Zannoni <ezannoni@redhat.com>
5479
5480 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5481 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5482 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5483 vectors.
5484 (read_array_type): Record the fact that this array type is really a
5485 vector (i.e. are passed in by value).
5486
5868c862
JT
54872002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5488
5489 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5490 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5491 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5492 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5493 * alpha-linux-tdep.c: Include frame.h.
5494 (alpha_linux_sigcontext_addr): New function.
5495 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5496 alpha_linux_sigcontext_addr.
5497 * alpha-osf1-tdep.c: Include gdbcore.h.
5498 (alpha_osf1_sigcontext_addr): New function.
5499 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5500 alpha_osf1_sigcontext_addr.
5501 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5502 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5503
bfb01f37
AC
55042002-04-26 Andrew Cagney <ac131313@redhat.com>
5505
361d1df0 5506 * stack.c (selected_frame_level):
bfb01f37
AC
5507 (select_frame): Do not set selected_frame_level.
5508 * frame.h (selected_frame_level): Delete declaration.
5509
15813d3f
AC
55102002-04-26 Andrew Cagney <ac131313@redhat.com>
5511
5512 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5513 convert_from_func_ptr-addr when AIX / PowerOpen.
5514
6096c27a
AC
55152002-04-25 Andrew Cagney <ac131313@redhat.com>
5516
5517 * valops.c (hand_function_call): Call
5518 generic_save_call_dummy_addr.
5519 * frame.h (generic_save_call_dummy_addr): Declare.
5520 * blockframe.c (struct dummy_frame): Add fields call_lo and
5521 call_hi.
5522 (generic_find_dummy_frame): Check for PC in range call_lo to
5523 call_hi instead of entry_point_address.
5524 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5525 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5526 (generic_save_call_dummy_addr): New function.
5527
f510d44e
DM
55282002-04-24 David S. Miller <davem@redhat.com>
5529
5530 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5531 sparc_skip_prologue.
5532 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5533 information to find prologue when possible.
5534 (sparc_prologue_frameless_p): Call examine_prologue directly.
5535 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5536 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5537 second argument.
5538 (SKIP_PROLOGUE): Likewise.
5539
15d72a92
JT
55402002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5541
5542 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5543 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5544 indicate that the condition it was testing is always true.
5545 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5546 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5547 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5548
accc6d1f
JT
55492002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5550
5551 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5552 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5553 tdep->jb_pc and tdep->jb_elt_size.
5554 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5555 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5556 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5557 * alpha-nat.c (get_longjmp_target): Remove.
5558 (JB_ELEMENT_SIZE): Ditto.
5559 (JB_PC): Ditto.
5560 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5561 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5562 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5563 to alpha_get_longjmp_target.
5564 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5565 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5566 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5567
1bfdc549
AC
55682002-04-25 Andrew Cagney <ac131313@redhat.com>
5569
5570 * README: Update to GDB 5.2.
5571
1bd316f0
AC
55722002-04-25 Andrew Cagney <ac131313@redhat.com>
5573
5574 * gdbarch.sh (LC_ALL): Set to `c'.
5575
2e5ff58c
TR
55762002-04-25 Theodore A. Roth <troth@verinet.com>
5577
5578 * avr-tdep.c: Ran through gdb_indent.sh.
5579
e33ce519
TR
55802002-04-25 Theodore A. Roth <troth@verinet.com>
5581
5582 * MAINTAINERS: Add myself as AVR maintainer.
5583 * NEWS: Note new target avr.
5584
8818c391
TR
55852002-04-25 Theodore A. Roth <troth@verinet.com>
5586
5587 * Makefile.in: Add support for AVR target.
5588 * configure.tgt: Add support for AVR target.
5589 * avr-tdep.c: New file
5590 * config/avr/avr.mt: New file.
5591
79509c2d
TR
55922002-04-25 Theodore A. Roth <troth@verinet.com>
5593
5594 * MAINTAINERS: Add myself to write-after-approval.
5595
dac8068e
PM
55962002-04-24 Pierre Muller <ics.u-strasbg.fr>
5597
5598 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5599 with fprintf_unfiltered (gdb_stderr,....
5600
25bf3106
PM
56012002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5602
5603 Fix PR gdb/508.
5604 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5605
24467a86
PM
56062002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5607
5608 * p-exp.y: Also use new prev_lexptr variable
5609 to improve error reporting. Based on Michael Snyder
5610 2002-04-24 dated patch to c-exp.y.
5611
95b80706
JT
56122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5613
5614 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5615 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5616 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5617 to 0.
5618 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5619 and struct value.
5620 (FUNCTION_START_OFFSET): Remove.
5621 (BREAKPOINT): Ditto.
5622
e90cc612
JT
56232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5624
5625 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5626 * NEWS: Ditto.
5627
6c72f9f9
JT
56282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5629
5630 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5631 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5632 alpha_linux_pc_in_sigtramp.
5633 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5634 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5635 alpha_osf1_pc_in_sigtramp.
5636 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5637 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5638 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5639 alphafbsd_pc_in_sigtramp.
5640 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5641 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5642 alphanbsd_pc_in_sigtramp.
5643 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5644 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5645
5e4f3379
JT
56462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5647
5648 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5649
da8ca43d
JT
56502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5651
5652 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5653 alphanbsd-tdep.c.
5654 (alphanbsd-nat.o): New dependency list.
5655 (alphanbsd-tdep.o): Ditto.
5656 * NEWS: Note new native NetBSD/alpha configuration.
5657 * alphanbsd-nat.c: New file.
5658 * alphanbsd-tdep.c: Ditto.
5659 * configure.host (alpha*-*-netbsd*): New host.
5660 * configure.tgt (alpha*-*-netbsd*): New target.
5661 * config/alpha/nbsd.mh: New file.
5662 * config/alpha/nbsd.mt: Ditto.
5663 * config/alpha/nm-nbsd.h: Ditto.
5664 * config/alpha/tm-nbsd.h: Ditto.
5665
36a6271d
JT
56662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5667
5668 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5669 (alpha-osf1-tdep.o): New dependency list.
5670 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5671 and skip_sigtramp_frame members.
5672 * alpha-linux-tdep.c: Include gdbcore.h.
5673 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5674 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5675 * alpha-osf1-tdep.c: New file.
5676 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5677 alpha-osf1-dep.c.
5678 (alpha_frame_past_sigtramp_frame): New function.
5679 (alpha_dynamic_sigtramp_offset): Ditto.
5680 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5681 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5682 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5683 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5684 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5685 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5686 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5687 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5688 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5689 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5690 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5691 to find_solib_trampoline_target.
5692 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5693 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5694 (SKIP_TRAMPOLINE_CODE): Remove.
5695 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5696 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5697 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5698 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5699 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5700 (PROC_SIGTRAMP_MAGIC): Ditto.
5701 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5702 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5703 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5704 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5705 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5706
2f4bc57b
JT
57072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5708
5709 * NEWS: Note that Alpha targets are now multi-arch.
5710
665132f9
MS
57112002-04-24 Michael Snyder <msnyder@redhat.com>
5712
5713 * parser-defs.h (prev_lexptr): New external variable.
5714 * parse.c (parse_exp_1): Set prev_lexptr to null before
5715 calling the language-specific parser.
5716 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5717 (yyerror): Use prev_lexptr in error reporting.
5718
32872fa7
DJ
57192002-04-24 Daniel Jacobowitz <drow@mvista.com>
5720
5721 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5722 * gregset.h: If FILL_FPXREGSET is defined, provide
5723 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5724 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5725 is defined, call fill_fpxregset.
5726
57e76fac
MS
57272002-04-24 Roland McGrath <roland@frob.com>
5728
5729 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5730 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5731 (supply_gregset, supply_fpregset): New functions.
5732
5733 * gnu-nat.c (gnu_find_memory_regions): New function.
5734 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5735 (gnu_xfer_memory): Add a cast.
5736
f43845b3
MS
57372002-04-24 Michael Snyder <msnyder@redhat.com>
5738
361d1df0 5739 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5740 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5741 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5742 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5743 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5744 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5745
a0abec03
AC
5746Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5747
5748 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5749 NUM_PSEUDO_REGS can be used.
5750
d7bd68ca
AC
57512002-04-24 Andrew Cagney <ac131313@redhat.com>
5752
5753 * arch-utils.h: Update copyright.
5754
5755 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5756 * gdbarch.h, gdbarch.c: Re-generate.
5757
5758 * inferior.h (IN_SIGTRAMP): Delete definition.
5759 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5760 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5761
5762 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5763 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5764 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5765 (find_proc_framesize): Ditto.
5766 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5767 (alpha_init_extra_frame_info): Ditto.
5768 * infrun.c (handle_inferior_event): Ditto.
5769 (handle_inferior_event): Ditto.
5770 (check_sigtramp2): Ditto.
5771 * blockframe.c (create_new_frame): Ditto.
5772 (get_prev_frame): Ditto.
5773 * ppc-linux-tdep.c: Update comments.
5774 * i386-linux-tdep.c: Update comments.
5775 * breakpoint.c (bpstat_what): Update comment.
5776
d06f167a
ML
57772002-04-24 Michal Ludvig <mludvig@suse.cz>
5778
5779 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5780 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5781 ptrace() calls.
5782 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5783
4867e41e
DM
57842002-04-24 David S. Miller <davem@redhat.com>
5785
21d83aa5
DM
5786 * i960-tdep.c (register_in_window_p): New function.
5787 (i960_find_saved_register): Use it instead of
5788 REGISTER_IN_WINDOW_P.
5789 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5790
4867e41e
DM
5791 * symtab.h (find_stab_function_addr): Kill extern.
5792 * minsyms.c (find_stab_function_addr): Remove from here...
5793 * dbxread.c: ... to here, and mark it static.
5794
69cdf6a2
DM
57952002-04-20 David S. Miller <davem@redhat.com>
5796
5797 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5798 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5799
5a595886
DM
58002002-04-21 David S. Miller <davem@redhat.com>
5801
5802 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5803 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5804 (vx_write_register): Likewise.
5805
1da1a192
JB
58062002-04-23 J. Brobecker <brobecker@gnat.com>
5807
5808 * source.c (is_regular_file): New function.
5809 (openp): Check wether file to open is a regular file
5810 to avoid opening directories.
5811
baa6f10b
JT
58122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5813
5814 * findvar.c (extract_signed_integer): Cast printf argument
5815 to suppress format warning.
5816 (extract_unsigned_integer): Likewise.
5817 * infcmd.c (registers_info): Likewise.
5818 * top.c (get_prompt_1): Likewise.
5819 * valops.c (value_assign): Likewise.
5820 * valprint.c (print_decimal): Likewise.
5821
b2c4da81
L
58222002-04-22 H.J. Lu (hjl@gnu.org)
5823
5824 * c-exp.y (typebase): Support
361d1df0 5825
b2c4da81
L
5826 [long|long long|short] [signed|unsigned] [int|]
5827
5828 and
5829
5830 signed [long|long long|short] int
5831
f267bd6a
JT
58322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5833
5834 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5835 and vax-tdep.h.
5836 * vax-tdep.h: New file.
5837 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5838 Make several routines static.
5839 (vax_get_saved_register): New function.
5840 (vax_gdbarch_init): New function.
5841 (_initialize_vax_tdep): Register vax_gdbarch_init.
5842 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5843 Remove macros now under the control of gdbarch.
5844
da3c6d4a
MS
58452002-04-22 Michael Snyder <msnyder@redhat.com>
5846
11d3b27d
MS
5847 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5848 Some whitespace and coding standards tweaks.
da3c6d4a 5849
a33f7558
JT
58502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5851
5852 * vax-tdep.c: Include regcache.h.
5853 (vax_call_dummy_words): New.
5854 (sizeof_vax_call_dummy_words): New.
5855 (vax_fix_call_dummy): New function.
5856 (vax_saved_pc_after_call): Ditto.
5857 * config/vax/tm-vax.h: Don't include regcache.h.
5858 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5859 (CALL_DUMMY): Remove.
5860 (CALL_DUMMY_WORDS): Define.
5861 (SIZEOF_CALL_DUMMY_WORDS): Define.
5862 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5863
47a73475
MS
58642002-04-18 Michael Snyder <msnyder@redhat.com>
5865
5866 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5867
52efde73
JT
58682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * vax-tdep.c (vax_frame_chain): New function.
5871 (vax_push_dummy_frame): Ditto.
5872 (vax_pop_frame): Ditto.
5873 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5874 (FRAMELESS_FUNCTION_INVOCATION): Use
5875 generic_frameless_function_invocation_not.
5876 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5877 (POP_FRAME): Use vax_pop_frame.
5878
ea74468c
JT
58792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * vax-tdep.c (vax_store_struct_return): New function.
5882 (vax_extract_return_value): Ditto.
5883 (vax_store_return_value): Ditto.
5884 (vax_extract_struct_value_address): Ditto.
5885 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5886 vax_store_struct_return.
5887 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5888 (STORE_RETURN_VALUE): Use vax_store_return_value.
5889 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5890
5516aa92
JT
58912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5892
5893 * vax-tdep.c (vax_frame_saved_pc): New function.
5894 (vax_frame_args_address_correct): Ditto.
5895 (vax_frame_args_address): Ditto.
5896 (vax_frame_locals_address): Ditto.
5897 (vax_frame_num_args): Move code to be in proximity to
5898 other frame-related functions.
5899 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5900 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5901 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5902 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5903 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5904
36af0b35
L
59052002-04-22 H.J. Lu (hjl@gnu.org)
5906
5907 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5908 includedir.
5909
ab62c900
JT
59102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5911
5912 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5913 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5914 (FRAME_INIT_SAVED_REGS): New macro.
5915
7232b100
JT
59162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5917
5918 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5919
b70d2aee
JT
59202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5923 where needed.
5924 (fetch_osf_core_registers): Likewise.
5925 (supply_gregset): Likewise.
5926
a0e8a2d1 59272002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 5928
a0e8a2d1
JB
5929 * symfile.h (get_section_index): Define.
5930 * symfile.c (get_section_index): New function.
5931 * mdebugread.c (SC_IS_SBSS): New macro.
5932 (SC_IS_BSS): Return true for the scBss storage class only, as
5933 the scSBss storage class refers to the .sbss section.
5934 (parse_partial_symbols): Discard the symbols which associated
5935 section does not exist.
5936 Make sure to use the .sbss section index for symbols which
5937 storage class is scBss, rather than using the .bss section index.
5938
51eb8b08
JT
59392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5940
5941 * vax-tdep.c: Update copyright years.
5942 (vax_register_name): New function.
5943 (vax_register_byte): Ditto.
5944 (vax_register_raw_size): Ditto.
5945 (vax_register_virtual_size): Ditto.
5946 (vax_register_virtual_type): Ditto.
5947 * config/vax/tm-vax.h: Update copyright years.
5948 (REGISTER_NAMES): Remove.
5949 (REGISTER_NAME): Define.
5950 (REGISTER_BYTE): Use vax_register_byte.
5951 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5952 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5953 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5954
6cc1c0a8
AC
59552002-04-21 Andrew Cagney <ac131313@redhat.com>
5956
5957 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5958 declaration
5959 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5960
9319a2fe
DM
59612002-04-21 David S. Miller <davem@redhat.com>
5962
5963 * arch-utils.c (generic_prologue_frameless_p): Kill
5964 SKIP_PROLOGUE_FRAMELESS_P code.
5965 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5966 references.
5967 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5968 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5969 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5970 references.
5971 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5972 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5973 (sparc_gdbarch_init): Pass it to
5974 set_gdbarch_prologue_frameless_p.
a0e8a2d1 5975
e9ed6d01
JT
59762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5977
5978 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5979 (alphabsd-nat.o): New dependency list.
5980
36012033
JT
59812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5984 alphafbsd-tdep.c.
5985 (alpha-linux-tdep.o): New dependency list.
5986 (alphafbsd-tdep.o): Likewise.
5987
3379287a
JT
59882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5989
5990 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5991 to here...
5992 * alpha-tdep.c: ...from here.
5993 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5994
4bcbd6cb
JT
59952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5996
5997 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5998 prototype from here...
5999 * alpha-tdep.h: ...to here.
6000
b31da25e
AC
60012002-04-21 Andrew Cagney <ac131313@redhat.com>
6002
6003 * frame.h (selected_frame_level): Document as deprecated.
6004 (frame_relative_level): Declare.
6005 * stack.c (frame_relative_level): New function.
6006 (selected_frame_level): Document as deprecated.
6007 (select_frame): Do not set the selected_frame_level.
6008
6009 * stack.c (frame_info, record_selected_frame): Update.
6010 (frame_command, current_frame_command): Update.
6011 (up_silently_base, up_command, down_silently_base): Update.
6012 (down_command): Update.
6013 * inflow.c (kill_command): Update.
6014 * tracepoint.c (finish_tfind_command): Update.
6015 * corelow.c (core_open): Update.
6016 * thread.c (info_threads_command): Update.
6017 (do_captured_thread_select): Update.
6018 * infcmd.c (finish_command): Update.
6019 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6020
9c1d6fe5
JT
60212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6022
6023 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6024
ab89facf
AC
60252002-04-21 Andrew Cagney <ac131313@redhat.com>
6026
6027 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6028 type const.
6029
82a4efa1
JT
60302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6031
6032 * alphafbsd-tdep.c: Update copyright years. Include
6033 alpha-tdep.h.
6034 (alphafbsd_use_struct_convention): Make static.
6035 (alphafbsd_init_abi): New function.
6036 (_initialize_alphafbsd_tdep): New function.
6037 * config/alpha/tm-fbsd.h: Update copyright years.
6038 (USE_STRUCT_CONVENTION): Remove.
6039
44dffaac
JT
60402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6041
6042 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6043 an Alpha ABI variant.
6044 (alpha_abi_handler_list): Declare.
6045 (alpha_gdbarch_register_os_abi): New function.
6046 (alpha_gdbarch_init): Give registered ABI variant handlers a
6047 chance to tweak the gdbarch once we have set up defaults.
6048 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6049
65585be4
JT
60502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6051
6052 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6053 to standard_coerce_float_to_double.
6054 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6055
d9b023cc
JT
60562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6057
6058 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6059 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6060 from gdbarch_tdep rather than a constant.
6061 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6062 the default text address for all Alpha Unix ABIs.
6063 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6064 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6065
dc129d82
JT
60662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * alpha-tdep.h: New file. Includes several Alpha target constants
6069 taken from...
6070 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6071 let gdbarch deal with.
6072 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6073 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6074 to dependency list.
6075 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6076 Alpha target register names.
6077 * alphabsd-nat.c: Likewise.
6078 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6079 Alpha target register names. Make serveral routines static.
6080 (alpha_get_saved_register): New function.
6081 (alpha_abi_names): New.
6082 (process_note_abi_tag_sections): New function.
6083 (get_elfosabi): New function.
6084 (alpha_gdbarch_init): New function.
6085 (alpha_dump_tdep): New function.
6086 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6087
d49d1e0a
AC
60882002-04-21 Andrew Cagney <ac131313@redhat.com>
6089
6090 * frame.c (find_saved_register): Delete #ifdef
6091 HAVE_REGISTER_WINDOWS code.
6092 * config/sparc/tm-sparc.h: Update comments.
6093 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6094
92e8c9ed
AC
60952002-04-21 Andrew Cagney <ac131313@redhat.com>
6096
6097 * i960-tdep.c (i960_find_saved_register): New function.
6098 (i960_get_saved_register): New function.
6099 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6100 (i960_get_saved_register): Declare.
6101 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6102
e1925118
DM
61032002-04-20 David S. Miller <davem@redhat.com>
6104
6105 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6106
29673b29
AC
61072002-04-20 Andrew Cagney <ac131313@redhat.com>
6108
6109 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6110 instead of NUM_PSEUDO_REGS.
6111
6c86dcd5
DM
61122002-04-20 David S. Miller <davem@redhat.com>
6113
6114 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6115 GDB_MULTI_ARCH_PARTIAL
6116 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6117 define, let tm-sp64.h do it.
6118
aa40ec90
JT
61192002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6120
6121 * frame.c (find_saved_register): Avoid a NULL pointer
6122 dereference and actually walk the frame list.
6123
0f79675b
AC
61242002-04-20 Andrew Cagney <ac131313@redhat.com>
6125
6126 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6127 sorted in most most-recent-used order. Document.
6128 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6129
c04a1aa8
DJ
61302002-04-20 Daniel Jacobowitz <drow@mvista.com>
6131
6132 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6133 (add_inferior): Call create_register_cache.
6134 (clear_inferiors): Call free_register_cache.
6135 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6136 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6137 (registers): Remove.
6138 (get_regcache): New function.
6139 (create_register_cache, free_register_cache): New functions.
6140 (set_register_cache): Don't initialize the register cache here.
6141 (registers_to_string, registers_from_string, register_data): Call
6142 get_regcache.
6143 * gdbserver/regcache.h: Add prototypes.
6144 * gdbserver/server.h: Likewise.
6145
611cb4a5
DJ
61462002-04-20 Daniel Jacobowitz <drow@mvista.com>
6147
6148 * gdbserver/mem-break.c: New file.
6149 * gdbserver/mem-break.h: New file.
6150 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6151 dependencies.
6152 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6153 member.
6154 (clear_inferiors): Free target_data member if set.
6155 (inferior_target_data, set_inferior_target_data): New functions.
6156 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6157 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6158 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6159 (struct inferior_linux_data): New.
6160 (linux_create_inferior): Use set_inferior_target_data.
6161 (linux_attach): Likewise. Call add_inferior.
6162 (linux_wait_for_one_inferior): New function.
6163 (linux_wait): Call it.
6164 (linux_write_memory): Add const.
6165 (initialize_low): Call set_breakpoint_data.
6166 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6167 handling members.
6168 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6169 call.
6170 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6171 prototypes.
6172 * gdbserver/target.c (read_inferior_memory)
6173 (write_inferior_memory): New functions.
6174 * gdbserver/target.h (read_inferior_memory)
6175 (write_inferior_memory): Change macros to prototypes.
6176 (struct target_ops): Update comments. Add const to write_memory
6177 definition.
6178
f91305dd 61792002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6180
6181 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6182 instead of ->prev.
6183 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6184 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6185 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6186 instead of ->prev.
6187
73d322b1
EZ
61882002-04-19 Elena Zannoni <ezannoni@redhat.com>
6189
6190 Fix PR gdb/471.
6191 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6192 (build_builtin_type_vec128): Ditto.
6193 (append_composite_type_field): Fix calculation of type length in
6194 union case.
6195
ccd9a834
EZ
61962002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6197
6198 * config/djgpp/README: Update.
6199
6200 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6201 compiler warnings.
6202
a57f9e49
JT
62032002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6204
6205 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6206 (alpha_setup_arbitrary_frame): ...to this.
6207 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6208 for alpha_setup_arbitrary_frame.
6209
f4f9705a
AC
62102002-04-18 Andrew Cagney <cagney@redhat.com>
6211
6212 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6213 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6214
f4f9705a
AC
6215 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6216 * target.h (memory_breakpoint_from_pc): Update declaration.
6217 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6218
6219 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6220 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6221 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6222 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6223 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6224 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6225 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6226 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6227 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6228 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6229 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6230 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6231
6232 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6233 const pointer.
6234 * monitor.c (monitor_insert_breakpoint): Ditto.
6235 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6236
6237 * config/mcore/tm-mcore.h: Update copyright.
6238 * mem-break.c: Ditto.
6239 * xstormy16-tdep.c: Ditto.
6240
29f319b8
PM
62412002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6242
6243 * p-exp.y: Add precedence rule for '^' token.
6244 This removes the shift/reduce conflicts.
6245 Remove the comment concerning these shift/reduce conflicts.
6246
ebeac11a
EZ
62472002-04-18 Elena Zannoni <ezannoni@redhat.com>
6248
6249 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6250 (registers_powerpc_nofp): New register set for processors
6251 without floating point unit.
6252
27c31547
DM
62532002-04-18 David S. Miller <davem@redhat.com>
6254
6255 * MAINTAINERS: Add myself to write-after-approval.
6256
47a73475
MS
62572002-04-17 Michael Snyder <msnyder@redhat.com>
6258
6259 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6260
953836b2
AC
62612002-04-17 Andrew Cagney <ac131313@redhat.com>
6262
6263 * rs6000-tdep.c (frame_initial_stack_address): Use
6264 frame_register_read to read the alloca_reg.
6265
8b0d4340
AC
62662002-04-17 Andrew Cagney <ac131313@redhat.com>
6267
6268 * frame.c (find_saved_register): Find saved registers in the next
6269 not prev frame.
6270 Fix PR gdb/365.
6271
d8864532
AC
62722002-04-17 Andrew Cagney <ac131313@redhat.com>
6273
6274 * gdbarch.sh (LANG): Set to ``c''.
6275
36cc83a3 62762002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6277
36cc83a3 6278 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6279
2f4150cc 62802002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6281
6282 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6283 Update copyright.
6284
628703c6 6285 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6286 Also fix PR gdb/391.
361d1df0 6287
56157b4a
AC
62882002-04-14 Andrew Cagney <ac131313@redhat.com>
6289
6290 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6291 * aclocal.m4, configure: Re-generate.
6292 Fix PR gdb/391.
361d1df0 6293
6d1e3329
EZ
62942002-04-14 Elena Zannoni <ezannoni@redhat.com>
6295
6296 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6297 instead of tm_print_insn.
6298
cb06fa07
EZ
62992002-04-14 Elena Zannoni <ezannoni@redhat.com>
6300
6301 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6302
f208ba17
AC
63032002-04-14 Andrew Cagney <ac131313@redhat.com>
6304
6305 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6306 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6307 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6308
20f01a46
DH
63092002-04-12 Don Howard <dhoward@redhat.com>
6310
6311 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6312 max_user_call_depth.
6313 (init_cmd_lists): Initialize the new value;
6314 * cli/cli-script.c (execute_user_command): Limit the call depth of
6315 user defined commands. This avoids a core-dump when user commands
6316 are infinitly recursive.
6317
a88376a3
KB
63182002-04-12 Kevin Buettner <kevinb@redhat.com>
6319
6320 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6321 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6322 from tdep struct instead of DEFAULT_LR_SAVE.
6323 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6324 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6325 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6326
f2172603
MS
63272002-04-12 Michael Snyder <msnyder@redhat.com>
6328
694f61fb 6329 * Remote.c: Spelling fix.
20fe79c8
MS
6330 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6331 If no symbol found for "sbrk", try "_sbrk".
6332 (make_output_phdrs): Use bfd_section_name.
6333 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6334 * eval.c: Indentation fix-ups.
169a7369
MS
6335 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6336 in case it gets applied to an address that is already
6337 in the instruction space.
de74f71f
MS
6338 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6339 * symfile.c: Fix indentation, long lines.
f2172603
MS
6340 * source.c: White space fix-up.
6341
cda5a58a
AC
63422002-04-12 Andrew Cagney <cagney@redhat.com>
6343
6344 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6345 * frame.c (frame_register_read): New function. Return non-zero on
6346 success.
6347 (read_relative_register_raw_bytes_for_frame): Delete.
6348 (read_relative_register_raw_bytes): Delete.
6349 * frame.h (frame_register_read): Declare.
6350 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6351 * sh-tdep.c: Ditto.
6352 * infcmd.c (do_registers_info): Ditto.
6353 * hppa-tdep.c: Ditto.
6354 * rs6000-tdep.c: Ditto.
6355 * h8500-tdep.c: Ditto.
6356 * mips-tdep.c: Ditto.
6357 * h8300-tdep.c: Ditto.
6358 * z8k-tdep.c: Ditto.
6359
2ea5f656
KB
63602002-04-12 Kevin Buettner <kevinb@redhat.com>
6361
6362 From Jimi X <jimix@watson.ibm.com>:
6363 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6364 64-bit SysV ABI.
6365
27b15785
KB
63662002-04-12 Kevin Buettner <kevinb@redhat.com>
6367
6368 From Jimi X <jimix@watson.ibm.com>:
6369 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6370 bfd info.
6371
5d57ee30
KB
63722002-04-12 Kevin Buettner <kevinb@redhat.com>
6373
6374 From Jimi X <jimix@watson.ibm.com>:
6375 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6376 register sets for these processor variants.
6377
bc1e36ca
DJ
63782002-04-11 Daniel Jacobowitz <drow@mvista.com>
6379
6380 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6381 registers which are allowed to fail to store.
6382 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6383 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6384 (ppc_cannot_store_register): FPSCR may not be storable.
6385 * regformats/reg-ppc.dat: Support FPSCR.
6386
e3f36dbd
KB
63872002-04-11 Kevin Buettner <kevinb@redhat.com>
6388
6389 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6390 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6391 Add fpscr as an invalid/unfetchable register.
6392 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6393 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6394 (fill_fpregset): Add support for register fpscr.
6395 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6396 (fill_gregset): Account for the fact that register ``mq'' might
6397 not exist.
6398 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6399 (registers_power): Add fpscr to register set at slot 71.
6400 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6401 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6402
943c9c25
MS
64032002-04-11 Michael Snyder <msnyder@redhat.com>
6404
6405 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6406 * configure: Regenerate.
6407 * config.in: Regenerate.
6408 * acconfig.h: Add define for _SYSCALL32.
6409 * core-sol2.c: Remove #define _SYSCALL32.
6410 * solib-legacy.c: Remove #define _SYSCALL32.
6411
d8c0a2e7
AC
64122002-04-10 Andrew Cagney <ac131313@redhat.com>
6413
6414 * stack.c (select_frame): Cleanup internal error message, do not
6415 use %p.
6416
7cc19214
AC
64172002-04-10 Andrew Cagney <ac131313@redhat.com>
6418
6419 * stack.c (select_frame): Check that selected_frame and the
6420 specified level are as expected.
6421 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6422 Update copyright.
6423 * frame.h (struct frame_info): Add field `level'. Update
6424 copyright.
6425 Work-in-progress PR gdb/464.
6426
67a2b77e
AC
64272002-04-10 Andrew Cagney <ac131313@redhat.com>
6428
6429 * maint.c (maint_print_section_info): Rename print_section_info.
6430 (print_bfd_section_info, print_objfile_section_info): Update.
6431 * inferior.h (struct gdbarch): Add opaque declaration.
6432 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6433 * gdbarch.h: Regenerate.
6434
8cfda98c
ML
64352002-04-10 Michal Ludvig <mludvig@suse.cz>
6436
6437 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6438 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6439 (kernel_u_size): Added.
6440 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6441 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6442
ca439ad2 64432002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6444
ca439ad2
JI
6445 * valarith.c (find_size_for_pointer_math): New function, either returns
6446 the size for a pointer's target, returns 1 for void *, or errors for
6447 incomplete types.
6448 (value_add, value_sub): use find_size_for_pointer_math.
6449
2f2893d9
DJ
64502002-04-09 Daniel Jacobowitz <drow@mvista.com>
6451
6452 * linux-low.c (linux_look_up_symbols): New hook.
6453 (linux_target_ops): Add linux_look_up_symbols.
6454 * remote-utils.c (decode_address): New function.
6455 (look_up_one_symbol): New function.
6456 * server.c (handle_query): Call target look_up_symbols hook.
6457 * server.h (look_up_one_symbol): Add prototype.
6458 * target.h (struct target_ops): Add look_up_symbols hook.
6459
2ec06d2e
DJ
64602002-04-09 Daniel Jacobowitz <drow@mvista.com>
6461
d64b8841
DJ
6462 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6463 * ChangeLog: Correct paths in last ChangeLog entry.
6464
64652002-04-09 Daniel Jacobowitz <drow@mvista.com>
6466
6467 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6468 (struct linux_target_ops): New.
6469 (extern the_low_target): New.
d64b8841 6470 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6471 (register_addr): Use the_low_target explicitly.
6472 (fetch_register): Likewise.
6473 (usr_fetch_inferior_registers): Likewise.
6474 (usr_store_inferior_registers): Likewise.
d64b8841 6475 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6476 (arm_num_regs): Define.
6477 (arm_regmap): Renamed from regmap, made static.
6478 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6479 made static.
6480 (arm_cannot_store_register): Renamed from cannot_store_register,
6481 made static.
6482 (the_low_target): New.
d64b8841 6483 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6484 (i386_num_regs): Define.
6485 (i386_regmap): Renamed from regmap, made static.
6486 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6487 made static.
6488 (i386_cannot_store_register): Renamed from cannot_store_register,
6489 made static.
6490 (the_low_target): New.
d64b8841 6491 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6492 (ia64_num_regs): Define.
6493 (ia64_regmap): Renamed from regmap, made static.
6494 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6495 made static.
6496 (ia64_cannot_store_register): Renamed from cannot_store_register,
6497 made static.
6498 (the_low_target): New.
d64b8841 6499 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6500 (m68k_num_regs): Define.
6501 (m68k_regmap): Renamed from regmap, made static.
6502 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6503 made static.
6504 (m68k_cannot_store_register): Renamed from cannot_store_register,
6505 made static.
6506 (the_low_target): New.
d64b8841 6507 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6508 (mips_num_regs): Define.
6509 (mips_regmap): Renamed from regmap, made static.
6510 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6511 made static.
6512 (mips_cannot_store_register): Renamed from cannot_store_register,
6513 made static.
6514 (the_low_target): New.
d64b8841 6515 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6516 (ppc_num_regs): Define.
6517 (ppc_regmap): Renamed from regmap, made static.
6518 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6519 made static.
6520 (ppc_cannot_store_register): Renamed from cannot_store_register,
6521 made static.
6522 (the_low_target): New.
d64b8841 6523 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6524 (s390_num_regs): Define.
6525 (s390_regmap): Renamed from regmap, made static.
6526 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6527 made static.
6528 (s390_cannot_store_register): Renamed from cannot_store_register,
6529 made static.
6530 (the_low_target): New.
d64b8841 6531 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6532 (sh_num_regs): Define.
6533 (sh_regmap): Renamed from regmap, made static.
6534 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6535 made static.
6536 (sh_cannot_store_register): Renamed from cannot_store_register,
6537 made static.
6538 (the_low_target): New.
d64b8841 6539 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6540 (the_low_target): New.
6541
96cb11df
AC
65422002-04-09 Andrew Cagney <ac131313@redhat.com>
6543
6544 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6545 override FP_REGNUM with frame->fp. Update copyright.
6546 * parse.c (num_std_regs, std_regs): Delete.
6547 (target_map_name_to_register): Do not search std_regs. Update
6548 function description.
6549 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6550 declarations. Update copyright.
6551 Fix PR gdb/251.
361d1df0 6552
c3a3ccc7
DJ
65532002-04-09 Daniel Jacobowitz <drow@mvista.com>
6554
6555 * gdbserver/Makefile.in: Add stamp-h target.
6556 * gdbserver/configure.in: Create stamp-h.
6557 * gdbserver/configure: Regenerated.
6558
ce3a066d
DJ
65592002-04-09 Daniel Jacobowitz <drow@mvista.com>
6560
6561 * gdbserver/inferiors.c: New file.
6562 * gdbserver/target.c: New file.
6563 * gdbserver/target.h: New file.
6564 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6565 dependencies.
6566 * gdbserver/linux-low.c (inferior_pid): New static variable,
6567 moved from server.c.
6568 (linux_create_inferior): Renamed from create_inferior.
6569 Call add_inferior. Return 0 on success instead of a PID.
6570 (linux_attach): Renamed from myattach.
6571 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6572 (linux_thread_alive): Renamed from mythread_alive.
6573 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6574 child dies.
6575 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6576 (regsets_store_inferior_registers): Correct error message.
6577 Add missing ``return 0''.
6578 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6579 (linux_store_registers): Renamed from store_inferior_registers.
6580 (linux_read_memory): Renamed from read_inferior_memory.
6581 (linux_write_memory): Renamed from write_inferior_memory.
6582 (linux_target_ops): New structure.
6583 (initialize_low): Call set_target_ops ().
6584 * gdbserver/remote-utils.c (unhexify): New function.
6585 (hexify): New function.
6586 (input_interrupt): Send signals to ``signal_pid''.
6587 * gdbserver/server.c (inferior_pid): Remove.
6588 (start_inferior): Update create_inferior call.
6589 (attach_inferior): Call add_inferior.
6590 (handle_query): New function.
6591 (main): Call handle_query for `q' packets.
6592 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6593 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6594
0729219d
DJ
65952002-04-09 Daniel Jacobowitz <drow@mvista.com>
6596
6597 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6598 dependencies.
6599 * gdbserver/configure.in: Check for <string.h>
6600 * gdbserver/configure: Regenerate.
6601 * gdbserver/config.in: Regenerate.
6602 * gdbserver/gdbreplay.c: Include needed system headers.
6603 (remote_open): Remove strchr prototype.
6604 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6605 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6606 (supply_register_by_name): Likewise.
6607 (collect_register): Change buf argument to void *.
6608 (collect_register_by_name): Likewise.
6609 * gdbserver/regcache.h: Add missing prototypes.
6610 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6611 * gdbserver/server.c (handle_query): New function.
6612 (attached): New static variable, moved out of main.
6613 (main): Quiet longjmp clobber warnings.
6614 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6615 * gdbserver/utils.c (error): Remove NORETURN.
6616 (fatal): Likewise.
6617
97658e92
DJ
66182002-04-09 Daniel Jacobowitz <drow@mvista.com>
6619
6620 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6621 after the last symbol in a block.
6622
6044e3eb
PM
66232002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6624
6625 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6626 is non zero as a found symbol.
6627
0406ec40
AC
66282002-04-08 Andrew Cagney <ac131313@redhat.com>
6629
6630 * findvar.c: Include "builtin-regs.h".
6631 (value_of_register): Call value_of_builtin_reg when applicable.
6632 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6633 (target_map_name_to_register): Call
6634 builtin_reg_map_name_to_regnum.
6635 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6636 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6637 (builtin_regs_h): Define.
6638 (builtin-regs.o): New target.
6639 (findvar.o): Add $(builtin_regs_h).
6640 * builtin-regs.c, builtin-regs.h: New files.
6641 * std-regs.c: New file.
6642 Partial fix for PR gdb/251.
6643
56a6dfb9
KB
66442002-04-08 Kevin Buettner <kevinb@redhat.com>
6645
6646 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6647 it's no longer required.
6648
3a808432
AC
66492002-04-08 Andrew Cagney <ac131313@redhat.com>
6650
6651 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6652
7c40d541
KB
66532002-04-08 Kevin Buettner <kevinb@redhat.com>
6654
6655 From Jimi X <jimix@watson.ibm.com>:
6656 * rs6000-tdep.c (rs6000_software_single_step): Use
6657 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6658 and size. Use target_insert_breakpoint() and
6659 target_remove_breakpoint() to insert and remove breakpoints
6660 instead of explicit memory reads and writes.
6661
cc9836a8
KB
66622002-04-08 Kevin Buettner <kevinb@redhat.com>
6663
6664 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6665 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6666 ELF_OBJECT_FORMAT ifdef.
6667
7495d1dc
KB
66682002-04-08 Kevin Buettner <kevinb@redhat.com>
6669
6670 From Jimi X <jimix@watson.ibm.com>:
6671 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6672
4288e836
KB
66732002-04-08 Kevin Buettner <kevinb@redhat.com>
6674
6675 From Jimi X <jimix@watson.ibm.com>:
6676 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6677 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6678
a4e4e501
MK
66792002-04-07 Mark Kettenis <kettenis@gnu.org>
6680
6681 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6682 s/asprintf/xasprintf/.
6683 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6684
006defba
AC
66852002-04-07 Andrew Cagney <ac131313@redhat.com>
6686
6687 I believe Jeff Law denies responsability for this one:
6688 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6689 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6690 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6691 Work-around for PR gdb/366.
6692
7aa83cac
EZ
66932002-04-07 Elena Zannoni <ezannoni@redhat.com>
6694
6695 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6696 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6697 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6698
cf1fcca1
EZ
66992002-04-07 Elena Zannoni <ezannoni@redhat.com>
6700
6701 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6702 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6703 information.
6704
3f289e6f
AC
67052002-04-07 Andrew Cagney <ac131313@redhat.com>
6706
6707 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6708 maintainer.
6709
129188f6
AC
67102002-04-07 Andrew Cagney <ac131313@redhat.com>
6711
6712 * README (Reporting Bugs in GDB): Document the bug web page as the
6713 prefered way of submitting bugs.
6714 Fix PR gdb/402.
6715
1200cd6e
AC
67162002-04-06 Andrew Cagney <ac131313@redhat.com>
6717
6718 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6719 -1. Update comment.
6720 * gdbarch.h, gdbarch.c: Re-generate.
6721
2853c33c
AS
67222002-04-07 Andreas Schwab <schwab@suse.de>
6723
6724 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6725 buffer to regcache_collect.
6726
c2169756
AC
67272002-04-06 Andrew Cagney <ac131313@redhat.com>
6728
6729 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6730 * gdbarch.c, gdbarch.h: Re-generate.
6731
25f1b008
AC
67322002-04-06 Andrew Cagney <ac131313@redhat.com>
6733
6734 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6735 declaration. Fix -Werror.
6736
59263426
DJ
67372002-04-05 Daniel Jacobowitz <drow@mvista.com>
6738
6739 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6740 * gdbarch.c: Regenerate.
6741
f5db4da3
MS
67422002-04-05 Michael Snyder <msnyder@redhat.com>
6743
80f8a6eb
MS
6744 * breakpoint.c (clear_command): Rewrite middle section to
6745 combine two loops with identical control conditions.
6746 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6747 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6748
ad3dcc5c
L
67492002-04-05 H.J. Lu (hjl@gnu.org)
6750
6751 * solib-svr4.c (bkpt_names): Add "__start".
6752
f32e7a74
AC
67532002-04-04 Andrew Cagney <ac131313@redhat.com>
6754
6755 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6756 as test for 64 bit target.
6757
8227c0ff
AC
67582002-04-05 Andrew Cagney <ac131313@redhat.com>
6759
6760 * h8500-tdep.c (h8500_write_fp): Delete function.
6761 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6762 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6763 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6765 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6766 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6767 (s390_write_fp):
6768 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6769 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6770 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6771 (d10v_write_fp): Delete function.
6772 * inferior.h (write_fp, generic_target_write_fp): Delete
6773 declarations.
6774 * regcache.c (generic_target_write_fp): Delete function.
6775 (write_fp): Delete function.
6776 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6777 * gdbarch.h, gdbarch.c: Regenerate.
6778 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6779 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6780 (sparc64_write_fp): Delete declaration.
6781 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6782 (h8500_write_fp): Delete declaration.
6783
2757dd86
AC
67842002-04-04 Andrew Cagney <ac131313@redhat.com>
6785
6786 * sparc-tdep.c (sparc64_write_fp): Delete.
6787 (sparc_push_dummy_frame): Replace write_fp call with code to store
6788 the FP directly.
6789 (sparc_gdbarch_init): Do not initialize write_fp.
6790
c69255e1
KB
67912002-04-05 Kevin Buettner <kevinb@redhat.com>
6792
6793 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6794 clause.
6795
ae767bfb
JB
67962002-03-29 Jim Blandy <jimb@redhat.com>
6797
6798 * stack.c (get_selected_block): Add new argument `addr_in_block',
6799 used to return the exact code address we used to select the block,
6800 not just the block.
6801 * blockframe.c (get_frame_block, get_current_block): Same.
6802 * frame.h (get_frame_block, get_current_block,
6803 get_selected_block): Update declarations.
6804 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6805 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6806
84d2ac95
MS
68072002-04-05 Michael Snyder <msnyder@redhat.com>
6808
6809 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6810 warning message.
6811
596aa3bf
JB
68122002-04-05 J. Brobecker <brobecker@gnat.com>
6813
6814 * utils.c (xfullpath): New function.
6815 * defs.h (xfullpath): Add declaration.
6816 * source.c (openp): Use xfullpath in place of gdb_realpath to
6817 avoid resolving the basename part of filenames when the
6818 associated file is a symbolic link. This fixes a potential
6819 inconsistency between the filenames known to GDB and the
6820 filenames it prints in the annotations.
6821 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6822 to be able to match a filename with either the real filename, or
6823 the name of any symbolic link to this file.
6824 (lookup_partial_symtab): Ditto.
6825
c02f5703
MS
68262002-04-04 Michael Snyder <msnyder@redhat.com>
6827
6828 * breakpoint.c: Add support for hardware breakpoints in overlays.
6829 (overlay_events_enabled): New state variable.
6830 (insert_breakpoints): Use overlay_events_enabled to decide
6831 whether to attempt to set a breakpoint at the overlay load addr.
6832 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6833 (remove_breakpoint): Use overlay_events_enabled to decide
6834 whether breakpoints need to be removed from overlay load addr.
6835 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6836 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6837 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6838 disable_overlay_breakpoints): Update overlay_events_enabled.
6839
5fb290d7
DJ
68402002-04-04 Daniel Jacobowitz <drow@mvista.com>
6841
6842 * dwarf2read.c (struct function_range): New.
6843 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6844 (check_cu_functions): New.
6845 (read_file_scope): Initialize global function lists.
6846 Call dwarf_decode_line after processing children.
6847 (read_func_scope): Add to global function list.
6848 (dwarf_decode_lines): Call check_cu_functions everywhere
6849 record_line is called. Call record_line with a linenumber
6850 of 0 to mark sequence ends.
6851
7b3fabf0
ML
68522002-04-04 Michal Ludvig <mludvig@suse.cz>
6853
361d1df0 6854 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6855 change sync with glibc.
6856
bce58c09
JB
68572002-04-03 Jim Blandy <jimb@redhat.com>
6858
6859 * configure.in: Call AC_C_INLINE.
6860 * configure: Regenerated.
361d1df0 6861
2fccf04a
DJ
68622002-04-01 Daniel Jacobowitz <drow@mvista.com>
6863
6864 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6865 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6866
2d1bfe2e
MK
68672002-03-31 Mark Kettenis <kettenis@gnu.org>
6868
a5941fbf
MK
6869 * NEWS: Mention gcore support on FreeBSD/i386.
6870
a90cd31d
MK
6871 * fbsd-proc.c: New file.
6872 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6873 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6874
2d1bfe2e
MK
6875 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6876 while statement.
6877
9eb6e5a1
JB
68782002-03-29 Jim Blandy <jimb@redhat.com>
6879
6880 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6881 unescaped newlines in string literals, but newer ones don't. So
6882 escape them.
6883
f02df580
MS
68842002-03-26 Michael Snyder <msnyder@redhat.com>
6885 Andrew Cagney <cagney@redhat.com>
6886
361d1df0 6887 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6888 restore file to memory.
6889 * cli/cli-dump.h: New file.
6890 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6891 * NEWS: Mention new commands.
f02df580 6892
109f874e
MS
68932002-03-28 Michael Snyder <msnyder@redhat.com>
6894
6895 * symfile.c (symbol_file_add): Move test for null symbols to later.
6896
520f6ade
AC
68972002-03-27 Andrew Cagney <ac131313@redhat.com>
6898
6899 From veksler at il.ibm.com:
6900 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6901 the xstrduped original path.
6902 Fix PR gdb/417.
6903
d4654627
MS
69042002-03-27 Michael Snyder <msnyder@redhat.com>
6905
6906 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6907 * infcmd.c (_initialize_infcmd): Ditto.
6908 * language.c (_initialize_language): Ditto.
6909 * symfile.c (_initialize_symfile): Ditto.
6910 * top.c (_init_main): Ditto.
6911 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6912
6be8bc0c
EZ
69132002-03-27 Elena Zannoni <ezannoni@redhat.com>
6914
6915 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6916 vector registers handling.
6917 (skip_prologue): Handle new AltiVec instructions. Fill in new
6918 fields of frame data.
6919 (frame_get_saved_regs): Fill in information for AltiVec registers.
6920
12af6855
JB
69212002-03-27 Jim Blandy <jimb@redhat.com>
6922
6923 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6924 a function; leave this macro here to invoke that function.
6925 (symbol_init_mangled_name): Declaration for that function.
6926 * symtab.c (symbol_init_mangled_name): New function.
6927
dc672865
AC
69282002-03-27 Andrew Cagney <ac131313@redhat.com>
6929
6930 * valarith.c: Replace strerror with safe_strerror.
6931 * tracepoint.c: Ditto.
6932 * lin-lwp.c: Ditto.
6933 * go32-nat.c: Ditto.
6934 * inflow.c: Ditto.
6935 * gnu-nat.c: Ditto.
6936
d96429cd
AS
69372002-03-27 Andreas Schwab <schwab@suse.de>
6938
6939 * event-top.c (command_line_handler): Remove useless if.
6940
7e336ba1
AJ
69412002-03-27 Andreas Jaeger <aj@suse.de>
6942
6943 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6944 comment.
6945
de220d0f
ML
69462002-03-27 Michal Ludvig <mludvig@suse.cz>
6947
6948 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6949 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6950 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6951 (x86_64_linux_dr_get_status, supply_gregset),
6952 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6953 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6954 (x86_64_register_info_table): Add.
6955 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6956 (x86_64_register_raw_size, x86_64_register_virtual_type),
6957 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6958 general x86_64_register_info_table.
6959 (i386_gdbarch_init): gdbarch_register_bytes is now set
6960 dynamicaly during initialization.
6961 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6962 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 6963
0e98d0a7
DJ
69642002-03-27 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * gdbserver/server.c (main): Call target_signal_to_host_p
6967 and target_signal_to_host on signals received from the remote.
6968 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6969 target_signal_from_host on signals sent to the remote.
6970 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6971 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6972
3130066b
DJ
69732002-03-27 Daniel Jacobowitz <drow@mvista.com>
6974
6975 * signals/signals.c: Include "server.h" in gdbserver build.
6976 (target_signal_from_name): Don't use STREQ.
6977 (_initialize_signals): Likewise. Don't include function in
6978 gdbserver build.
6979
9aedf4f4
DJ
69802002-03-27 Daniel Jacobowitz <drow@mvista.com>
6981
6982 * signals.c: Moved to...
6983 * signals/signals.c: Here.
7e336ba1 6984 * Makefile (signals.o): Update.
9aedf4f4 6985
3fa41cdb
JL
69862002-03-26 Jeff Law (law@redhat.com)
6987
6988 * somread.c (som_symtab_read): Remove some commented out code and
6989 updated related comments. Do not set the minimal symbol table to
6990 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6991 in a dynamic executable.
6992 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6993 where we are unable to find the minimal symbol for the given
6994 PC value.
6995
ee677e8d
MS
69962002-03-25 Jeff Law (law@redhat.com)
6997
6998 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6999
e76e1718
ML
70002002-03-25 Michal Ludvig <mludvig@suse.cz>
7001
7002 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7003
18a642a1
AC
70042002-03-23 Andrew Cagney <ac131313@redhat.com>
7005
7006 * command.h: Update copyright.
7007 (struct cmd_list_element): Replace definition with opaque
7008 declaration.
7009 (enum cmd_types): Document that it will eventually be moved to
7010 cli/cli-decode.h
7011 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7012 (MALLOCED_REPLACEMENT): Delete macro.
7013 * Makefile.in (cli_decode_h): Add $(command_h).
7014 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7015 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7016 * completer.c: Include "cli/cli-decode.h".
7017 * maint.c: Include "cli/cli-decode.h".
7018 * cli/cli-decode.h: Include "command.h".
7019 (enum command_class): Delete.
7020 (enum cmd_types): Comment out.
7021 (enum cmd_auto_boolean): Delete.
7022 (enum var_types): Delete.
7023
b2875cc0
AC
70242002-03-23 Andrew Cagney <ac131313@redhat.com>
7025
7026 * cli/cli-decode.c: Include "gdb_assert.h".
7027 (add_set_or_show_cmd): New static function.
7028 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7029 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7030 all fields, such as func, from the set command.
7031
3b45974e
AC
70322002-03-23 Andrew Cagney <ac131313@redhat.com>
7033
7034 * MAINTAINERS (sh-elf): Change warning flag to -w.
7035
823ca731
AC
70362002-03-23 Andrew Cagney <cagney@redhat.com>
7037
7038 * defs.h (error): Add printf format attribute.
7039 * thread-db.c (thread_from_lwp): Fix error format string.
7040 * stack.c (parse_frame_specification): Ditto.
7041 * cli/cli-decode.c (undef_cmd_error): Ditto.
7042 * scm-lang.c (scm_lookup_name): Ditto.
7043 * tracepoint.c (trace_error): Ditto.
7044 * remote-utils.c (usage): Ditto.
7045 * remote.c (compare_sections_command): Ditto.
7046 Fix PR gdb/328.
7047
0e101458
AC
70482002-03-22 Andrew Cagney <ac131313@redhat.com>
7049
7050 * gdbtypes.c (append_composite_type_field): New function.
7051 (init_composite_type): New function.
7052 * gdbtypes.h (append_composite_type_field): Declare.
7053 (init_composite_type): Ditto.
7054
8e0662df
EZ
70552002-03-22 Elena Zannoni <ezannoni@redhat.com>
7056
7057 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7058 function.
8e0662df
EZ
7059 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7060 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7061 structure returning convention for SYSV ABI case, but not
7062 for GNU/Linux, FreeBSD, or NetBSD.
7063
3121eff0
DJ
70642002-03-22 Daniel Jacobowitz <drow@mvista.com>
7065
7066 * symtab.h (lookup_block_symbol): Add mangled_name argument
7067 to prototype.
7068
7069 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7070 with new mangled_name argument.
7071 * linespec.c (decode_line_1): Likewise.
7072 * valops (value_of_this): Likewise.
7073 * symtab.c (lookup_transparent_type): Likewise.
7074 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7075 (lookup_symbol): If we are given a mangled name, pass it down
7076 to lookup_symbol_aux.
7077 (lookup_block_symbol): If we are given a mangled name to check
7078 against, only return symbols which match it.
7079
349b409f
CF
70802002-03-22 Christopher Faylor <cgf@redhat.com>
7081
7082 * win32-nat.c (child_create_inferior): Check for proper shell to use
7083 here, in case the user changes it on the fly.
7084 (_initialize_inftarg): Remove shell path considerations.
7085
2a873819
EZ
70862002-03-21 Elena Zannoni <ezannoni@redhat.com>
7087
7088 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7089 for gdbarch_max_register_raw_size and max_register_virtual_size.
7090 Adjust copyright year.
7091
a1b9830c
DJ
70922002-03-21 Daniel Jacobowitz <drow@mvista.com>
7093
7094 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7095 in a function to cover the entire beginning of the function
7096 as well if it does not already.
7097
8b5790f2
TR
70982002-03-21 Tom Rix <trix@redhat.com>
7099
7100 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7101 (rs6000_ptrace64): Renamed from ptrace64.
7102
bdbe5747
MH
71032002-03-20 Martin M. Hunt <hunt@redhat.com>
7104
7105 * gdbserver/remote-utils.c (remote_open): Don't call
7106 getprotobyname, we're all using TCP here so just use
7107 IPPROTO_TCP.
7e336ba1 7108 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7109
71102002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7111
bdbe5747
MH
7112 * regcache.c (_initialize_regcache): No need to call
7113 build_regcache() at this time; it gets called whenever
7114 the gdbarch changes.
7115
7781cd62
DB
71162002-03-20 David O'Brien <obrien@FreeBSD.org>
7117
7118 * sparc-nat.c: Include sys/param.h where possible.
7119
f65ca430
DJ
71202002-03-20 Daniel Jacobowitz <drow@mvista.com>
7121
7122 Fix PR gdb/422.
7123 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7124 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7125 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7126 complex types.
7127 * stabsread.c (rs6000_builtin_type): Likewise.
7128 (read_sun_floating_type): Likewise.
7129
0c867556
PS
71302002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7131
7132 * stabsread.c (read_member_functions): Remove skip code for duplicate
7133 constructor/destructor methods. Use standard parsing for these
7134 methods and just do not chain them to the list of methods after
7135 parsing.
7136
12b9c64f
AO
71372002-03-19 Alexandre Oliva <aoliva@redhat.com>
7138
7139 * coffread.c: Remove redundant static declarations. Replace
7140 occurrences of `PTR' with `void *'.
7141 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7142 * top.h (quit_cover): Likewise.
7143 * defs.h (catch_errors): Likewise.
7144
349c5d5f
AC
71452002-03-18 Andrew Cagney <ac131313@redhat.com>
7146
7147 * defs.h (XMALLOC): Define.
7148 * gdb-events.sh (XMALLOC): Delete macro.
7149 * gdb-events.c, gdb-events.h: Regenerate.
7150 * gdbarch.sh (XMALLOC): Delete macro.
7151 * gdbarch.c: Regenerate.
7152 * serial.c (XMALLOC): Delete macro.
7153 * ui-file.c (XMALLOC): Ditto.
7154 * ser-unix.h (XMALLOC): Ditto.
7155 * sh-tdep.c (XMALLOC): Ditto.
7156 * ui-out.c (XMALLOC): Ditto.
7157 * utils.c (XMALLOC): Ditto.
7158 * i386-tdep.c (XMALLOC): Ditto.
7159 * gdb-events.c (XMALLOC): Ditto.
7160 * d10v-tdep.c (XMALLOC): Ditto.
7161 * cli-out.c (XMALLOC): Ditto.
7162
7163 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7164 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7165 * ui-file.c, ui-out.c: Ditto.
7166
7d0766f3
AC
71672002-03-18 Andrew Cagney <ac131313@redhat.com>
7168
7169 * command.h (struct cmd_list_element): Add field context.
7170 (set_cmd_context, get_cmd_context): Declare.
7171 * cli/cli-decode.h: Ditto.
7172 * cli/cli-decode.c (get_cmd_context): New function.
7173 (set_cmd_context): New function.
7174 (add_cmd): Initialize context.
7175 Part of fixing PR gdb/145 and PR gdb/146.
7176
5913bcb0
AC
71772002-03-17 Andrew Cagney <ac131313@redhat.com>
7178
1868c04e
AC
7179 * cli/cli-decode.c (cmd_type): New function.
7180 * command.h (cmd_type): Declare.
7181 * infrun.c (set_schedlock_func): Call function cmd_type.
7182 * kod.c (kod_set_os): Call cmd_type.
7183 * cris-tdep.c (cris_version_update): Use function cmd_type.
7184 (cris_mode_update, cris_abi_update): Ditto.
7185
5913bcb0
AC
7186 * command.h: (execute_cmd_post_hook): Declare.
7187 (execute_cmd_pre_hook): Declare.
7188 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7189 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7190 functions. Execute pre/post hook while ensuring that afterwords
7191 hook_in is cleared.
7192 * top.c (execute_command): Use execute_cmd_post_hook, and
7193 execute_cmd_pre_hook to execute pre/post commands.
7194 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7195 hook_stop_stub.
7196 (hook_stop_stub): Call execute_cmd_pre_hook.
7197
b51450c9
AC
71982002-03-17 Andrew Cagney <ac131313@redhat.com>
7199
7200 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7201 set'' and this leads to a core dump. Move xstrdup of
7202 operating_system to after check that it is not NULL.
7203
f66c9f11
AC
72042002-03-17 Andrew Cagney <ac131313@redhat.com>
7205
8e694ecf
AC
7206 * kod.c (kod_set_os): Remove unnecessary check that
7207 ``command->type'' is set_cmd.
7208
f66c9f11
AC
7209 * valprint.c (set_input_radix): Use input_radix.
7210 (set_output_radix): Use output_radix.
7211 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7212 isn't reverted.
7213
9d01611c
AC
72142002-03-16 Andrew Cagney <ac131313@redhat.com>
7215
7216 * value.h (struct value): Delete field ``substring_addr''. Change
7217 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7218 force_core_addr_align and force_pointer_aligh.
7219
7220 * value.h (struct value): Fix typo in above change.
9d01611c 7221
4156bb53
PS
72222002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7223
7224 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7225 to fix internal_error from ``maintenance print architecture''.
7226
0e5e3ea6
PS
72272002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7228
7229 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7230 for gcc versions after gcc-2.8.1.
7231
9b013045
PS
72322002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7233
7234 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7235 for method resolution. Restore adjustment of ``this'' pointer after
7236 calling value_struct_elt, which was accidentally removed during the
7237 HP merge.
7238
376c9600
AC
72392002-03-15 Andrew Cagney <ac131313@redhat.com>
7240
7241 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7242 value_of_register.
7243 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7244 get_saved_register.
7245 * value.h (value_of_register): Update.
7246
a4db0f07
RH
72472002-03-14 Richard Henderson <rth@redhat.com>
7248
7249 * configure.in: Detect declaration for canonicalize_file_name.
7250 * utils.c (canonicalize_file_name): Declare, if needed.
7251 (gdb_realpath): Prefer realpath if available and usable.
7252 * config.in, configure: Rebuild.
7253
96383835
RH
72542002-03-14 Richard Henderson <rth@redhat.com>
7255
7256 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7257 a constant array bound.
7258
7259 * MAINTAINERS: Add myself to write-after-approval.
7260
75245b24
MS
72612002-03-14 Michael Snyder <msnyder@redhat.com>
7262
7263 * symfile.c (syms_from_objfile): Return immediately if no syms.
7264 (symbol_file_add): Return immediately if no syms.
7265 (find_sym_fns): Return immediately if no syms.
7266
e641a1ca
ML
72672002-03-13 Michal Ludvig <mludvig@suse.cz>
7268
7269 * gdbserver/remote-util.c (remote_open): Print remote-side's
7270 IP address when remote debugging over the network.
7e336ba1 7271
df08bfec
DB
72722002-03-12 David O'Brien <obrien@FreeBSD.org>
7273
7274 * config/sparc/fbsd.mh: Fix copyright.
7275 * config/sparc/fbsd.mt: Likewise.
7276
9a57864f
RE
72772002-03-11 Richard Earnshaw <rearnsha@arm.com>
7278
7279 * MAINTAINERS: Fix typo in name of gdb warnings option.
7280 (x86-64): Fix formating so that this can be parsed by awk.
7281
dd7bf85e
DJ
72822002-03-10 Daniel Jacobowitz <drow@mvista.com>
7283
7284 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7285 * defs.h: Include "gdb/signals.h".
7286 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7287
33a0a2ac
ML
72882002-03-10 Michal Ludvig <mludvig@suse.cz>
7289
7290 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7291 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7292 from x86-64-tdep.h
7293
dd824b04
DJ
72942002-03-10 Daniel Jacobowitz <drow@mvista.com>
7295 Don Howard <dhoward@redhat.com>
7296
7297 * mips-tdep.c (ST0_FR): Define.
7298 (mips2_fp_compat): New function, temporarily disabled.
7299 (mips_read_fp_register_single): New function.
7300 (mips_read_fp_register_double): New function.
7301 (mips_print_register): Use them.
7302 (do_fp_register_row): Likewise.
7303
6a41ff59
AC
73042002-03-09 Andrew Cagney <ac131313@redhat.com>
7305
7306 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7307 approval''.
7308
4ea09c10
PS
73092002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7310
7311 * stabsread.c (read_member_functions): Fix is_stub test for
7312 static member functions, improve comment.
7313
6ccc741d
RE
73142002-03-07 Richard Earnshaw <rearnsha@arm.com>
7315
7316 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7317 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7318 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7319 commands that set boolean values.
7320 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7321 (arm_rdi_resume): Always initialize PC.
7322 (arm_rdi_open): Don't use rslt as a boolean.
7323 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7324 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7325 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7326 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7327
438013df
AO
73282002-03-06 Alexandre Oliva <aoliva@redhat.com>
7329
7330 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7331 * configure: Rebuilt.
7332
70ed8774
SC
73332002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7334
7335 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7336 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7337
5ba2abeb
AC
73382002-03-06 Andrew Cagney <ac131313@redhat.com>
7339
7340 * cli/cli-decode.c (set_cmd_completer): New function.
7341 * command.h (set_cmd_completer): Declare.
7342 * cli/cli-decode.h (set_cmd_completer): Ditto.
7343
7344 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7345 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7346 * win32-nat.c (_initialize_inftarg): Ditto.
7347 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7348 * proc-api.c (_initialize_proc_api): Ditto.
7349 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7350 * source.c (_initialize_source): Ditto.
7351 * exec.c (_initialize_exec): Ditto.
7352 * solib.c (_initialize_solib): Ditto.
7353 * top.c (init_main): Ditto.
7354 * tracepoint.c (_initialize_tracepoint): Ditto.
7355 * symfile.c (_initialize_symfile): Ditto.
7356 * printcmd.c (_initialize_printcmd): Ditto.
7357 * infcmd.c (_initialize_infcmd): Ditto.
7358 * corefile.c (_initialize_core): Ditto.
7359
f779ca99
AC
73602002-03-05 Andrew Cagney <ac131313@redhat.com>
7361
7362 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7363
01a3934b
AC
73642002-03-05 Andrew Cagney <ac131313@redhat.com>
7365
7366 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7367
37057839
AC
73682002-03-05 Andrew Cagney <ac131313@redhat.com>
7369
7370 * NEWS: Update headings, 5.2 has branched.
7371
c6ecbae5
DJ
73722002-03-04 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7375 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7376 (register_addr, REGISTER_RAW_SIZE): Likewise.
7377 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7378 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7379
e9f30c21
ML
73802002-03-03 Michal Ludvig <mludvig@suse.cz>
7381
7382 * MAINTAINERS (x86-64): Add myself.
7383 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7384 changed value_ptr -> struct value *
7385
54394ac3
DB
73862002-03-01 David O'Brien <obrien@FreeBSD.org>
7387
7388 * configure.host (sparc64-*-freebsd): Add.
7389 * configure.tgt: Likewise.
7390 * config/sparc/fbsd.mh: New file.
7391 * config/sparc/fbsd.mt: Likewise.
7392 * config/sparc/nm-fbsd.h: Likewise.
7393 * config/sparc/tm-fbsd.h: Likewise.
7394
bfe95955
DJ
73952002-03-01 Daniel Jacobowitz <drow@mvista.com>
7396
7397 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7398 regformats/reg-s390x.dat.
7399
f33c6cbf
AC
74002002-03-01 Andrew Cagney <ac131313@redhat.com>
7401
7402 * utils.c: Add FIXME explaining true/false problem.
7403
5ecaa7dd
AC
74042002-02-28 Andrew Cagney <ac131313@redhat.com>
7405
7406 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7407
2a251cc2
MC
74082002-02-28 Michael Chastain <mec@shout.net>
7409
7410 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7411
6a8031a3 74122002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7413
7414 * gdbserver/linux-s390-low.c: New file.
7415 * regformats/reg-s390.dat: New file.
7416 * regformats/reg-s390x.dat: New file.
7417 * gdbserver/configure.srv: Add S/390.
7418 * gdbserver/Makefile.in: Add S/390.
7419 * configure.tgt: Enable gdbserver for S/390.
7420
ac469903
EZ
74212002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7422
7423 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7424 first line of the doc string for "info dos", except at the end of
7425 the sentence, since the short help stops at the first period.
7426
985cb1a3
JM
74272002-02-28 Jason Merrill <jason@redhat.com>
7428
7429 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7430
c570663e
FF
74312002-02-27 Fred Fish <fnf@redhat.com>
7432
7433 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7434 comment (dumy -> dummy).
7435
43630227
PS
74362002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7437
7438 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7439
b84911e8
RB
74402002-02-27 Rodney Brown <rbrown64@csc.com.au>
7441
7442 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7443
58caa3dc
DJ
74442002-02-27 Daniel Jacobowitz <drow@mvista.com>
7445
7446 * gdbserver/acconfig.h: New file.
7447 * gdbserver/i387-fp.c: New file.
7448 * gdbserver/i387-fp.h: New file.
7449 * gdbserver/linux-x86-64.c: New file.
7450 * regformats/reg-x86-64.dat: New file.
7451 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7452 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7453 * gdbserver/configure.in: Add support for regsets.
7454 * gdbserver/config.in: Regenerate.
7455 * gdbserver/configure: Regenerate.
7456 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7457 * gdbserver/linux-low.h: New file.
7458 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7459 for regsets.
7460 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7461 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7462 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7463 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7464 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7465 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7466 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7467 "i387-fp.h". Add PTRACE_GETREGS and friends.
7468 * gdbserver/regcache.c (supply_register): New function.
7469 (supply_register_by_name): New function.
7470 (collect_register): New function.
7471 (collect_register_by_name): New function.
7472
93652174
DJ
74732002-02-27 Daniel Jacobowitz <drow@mvista.com>
7474
7475 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7476 (config.status): Add configure.srv dependency.
7477 (server_h): Add config.h dependency.
7478
a02e4a61
DJ
74792002-02-27 Daniel Jacobowitz <drow@mvista.com>
7480
7481 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7482 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7483 * gdbserver/configure.srv: Change i386-*-linux* to use
7484 reg-i386-linux.o.
7485
ce0eebec
AC
74862002-02-26 Andrew Cagney <ac131313@redhat.com>
7487
7488 * x86-64-tdep.c: Re-indent. Update copyright date.
7489
82dbc5f7
AC
74902002-02-26 Andrew Cagney <ac131313@redhat.com>
7491
7492 From Michal Ludvig <mludvig@suse.cz>:
7493 * x86-64-tdep.c (value.h): Delete.
7494 (gdb_assert.h): Include.
7495 (x86_64_register_convert_to_virtual,
7496 x86_64_register_convert_to_raw ): Add check which lets only
7497 floating-point values to be converted.
7498 (value_push): Delete.
7499 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7500 (i386_gdbarch_init): Number of register_bytes fixed.
7501
e4621584
AC
75022002-02-26 Andrew Cagney <ac131313@redhat.com>
7503
7504 * MAINTAINERS: Add x86-64 target.
7505
81a9a963
AC
75062002-02-26 Andrew Cagney <ac131313@redhat.com>
7507
7508 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7509 * osfsolib.c (solib_map_sections): Ditto.
7510 * irix5-nat.c (solib_map_sections): Ditto.
7511 * corelow.c (gdb_check_format): Ditto.
7512 * symfile.c (symfile_bfd_open): Ditto.
7513 * solib.c (solib_map_sections): Ditto.
7514 Fix PR gdb/354.
7e336ba1 7515
0f017ab9
AC
75162002-02-26 Andrew Cagney <ac131313@redhat.com>
7517
7518 * remote.c (_initialize_remote): By default, disable ``e'' and
7519 ``E'' step out-of-range packets.
7520
75738c29
AS
75212002-02-26 Andreas Schwab <schwab@suse.de>
7522
7523 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7524 m68k_linux_frame_saved_pc.
7525 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7526 in_sigtramp.
7527 (SIGCONTEXT_PC_OFFSET): Remove.
7528 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7529 m68k_linux_sigtramp_saved_pc): New functions.
7530 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7531 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7532 (UCONTEXT_PC_OFFSET): Define.
7533 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7534 non-RT and RT signal trampolines.
7535
7e8ed687
RE
75362002-02-26 Richard Earnshaw <rearnsha@arm.com>
7537
7538 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7539 (TARGET_NBPG, STACK_END_ADDR): Delete
7540 (VARIABLES_INSIDE_BLOCK): Delete.
7541
6972bc8b
AC
75422002-02-25 Andrew Cagney <ac131313@redhat.com>
7543
7544 * utils.c (perror_with_name): Make string parameter constant.
7545 (print_sys_errmsg): Ditto.
7546 (query): Ditto.
7547 * defs.h (perror_with_name): Update.
7548 (print_sys_errmsg): Update.
7549 (query): Update.
7550
aa32f823
DJ
75512002-02-25 Daniel Jacobowitz <drow@mvista.com>
7552
7553 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7554 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7555
19caaa45
PS
75562002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7557
7558 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7559 if it already matches the current architecture from the exec file.
7560 Include arch-utils.h for gdbarch_info_init prototype.
7561 * Makefile.in (rs6000-nat.o): Update dependencies.
7562
d951901f
EZ
75632002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7564
7565 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7566 list of exported variables.
7567
7ea81414
DJ
75682002-02-24 Daniel Jacobowitz <drow@mvista.com>
7569
7570 * gdbserver/configure.srv: New file.
7571 * gdbserver/configure.in: Use configure.srv instead
7572 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7573 from it.
7574 * gdbserver/configure: Regenerated.
7575 * gdbserver/terminal.h: New file.
7576 * gdbserver/Makefile.in: Update for configure changes. Remove
7577 more unneeded include paths.
7578
080fe24b
AC
75792002-02-24 Andrew Cagney <ac131313@redhat.com>
7580
7581 From wiz at danbala:
7582 * config/sparc/tm-sp64.h: Fix grammar and typos.
7583 Fix PR gdb/287.
7584
8605d56e
AC
75852002-02-24 Andrew Cagney <ac131313@redhat.com>
7586
7587 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7588 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7589 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7590 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7591 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7592 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7593 * s390-tdep.c: Ditto.
92362027
AC
7594 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7595 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7596 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7597 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7598 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7599 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7600 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7601 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7602 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7603 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7604 Fix PR gdb/378.
7e336ba1 7605
8ed32cc0
AC
76062002-02-23 Andrew Cagney <ac131313@redhat.com>
7607
a3007b6f
AC
7608 * lin-thread.c: Delete file.
7609 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7610 to gdb_proc_service.h.
7611 * configure: Re-generate.
7612
50a9e2f1
AC
7613 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7614 * serial.c (serial_open): Delete check for "ocd".
7615 Fix PR gdb/349.
7616
8b6e7932
AC
7617 * Makefile.in (linux-thread.o): Delete target.
7618 * linux-thread.c: Delete file.
7619
d155c46b
AC
7620 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7621 renamed SH files to be consistent.
7622
8ed32cc0
AC
7623 * symtab.c (sort_search_symbols): Use xfree.
7624
0e18d038
RE
76252002-02-23 Richard Earnshaw <rearnsha@arm.com>
7626
7627 * arm-linux-tdep.c (arm_linux_init_abi): Register
7628 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7629 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7630 definition with undef, since we don't want the sysvr4 definition.
7631 (SKIP_TRAMPOLINE_CODE): Likewise.
7632
27aac7ff
AC
76332002-02-23 Andrew Cagney <ac131313@redhat.com>
7634
7635 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7636
7637 * configure.in: (AC_CHECK_FUNCS) Added test for
7638 canonicalize_file_name Regenerated.
7639 * config.in, configure: Regenerated.
7640 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7641 defined use canonicalize_file_name.
7e336ba1 7642
65a6e0ee
MC
76432002-02-23 Michael Chastain <mec@shout.net>
7644
7645 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7646
47b95330
AC
76472002-02-23 Andrew Cagney <ac131313@redhat.com>
7648
7649 * README: Remove references to cygnus.com.
7650 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7651 dot com'' form. Remove references to cygnus.com and sourceware.
7652
696f451b
AC
76532002-02-23 Andrew Cagney <ac131313@redhat.com>
7654
7655 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7656 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7657 1003.1-2001 no longer allows "head -1".
7658 * gdb/Makefile.in (version.c): Likewise.
7659 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7660 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7661 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7662
bbaca940
AC
76632002-02-23 Andrew Cagney <ac131313@redhat.com>
7664
7665 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7666 * command.h (cmd_cfunc_eq): Declare.
7667 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7668
7669 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7670 ``struct cmd_list_element *''.
7671 * cli/cli-cmds.c (is_complete_command): Update. Use
7672 cmd_cfunc_eq.
7673 * top.c (execute_command): Pass the command to
7674 is_complete_command.
7675 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7676
b8b8b047
AC
76772002-02-23 Andrew Cagney <ac131313@redhat.com>
7678
7679 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7680 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7681 architecture defines.
7682 * s390-tdep.c (s390_gdbarch_init): Likewise.
7683
19d3fc80
RE
76842002-02-23 Richard Earnshaw <rearnsha@arm.com>
7685
7686 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7687 (arm_linux_push_arguments): Likewise.
7688 (arm_linux_init_abi): Register them. Also register linux-specific
7689 call_dummy_words.
7690 (find_minsym_and_objfile): Use strcmp, not STREQ.
7691 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7692 (arm_linux_call_dummy_words): Delete declaration.
7693 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7694 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7695 declarations.
7696 (LOWEST_PC): Delete.
7697
3ab13650
PS
76982002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7699
7700 * maint.c (print_section_info): Do not prepend `0x' to filepos
7701 output, it will be handled by local_hex_string_custom.
7702
19d3fc80 77032002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7704
7705 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7706 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7707 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7708
d85a5daf
JB
77092002-02-22 Jim Blandy <jimb@redhat.com>
7710
7711 Indicate that the bcache functions don't change the strings
7712 they're passed.
7713 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7714 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7715
eeb25b8a
PM
77162002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7717
7718 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7719
6badb179
CF
77202002-02-21 Christopher Faylor <cgf@redhat.com>
7721
7722 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7723 find the complete path to a loaded DLL.
7724
e8717518
FF
77252002-02-21 Fred Fish <fnf@redhat.com>
7726
7727 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7728 that marks the end of the range of a function, enter a line number
7729 entry that has a line number of zero and a PC offset that matches
7730 the end of the function. This starts a range of PC's for which no
7731 line number information is known.
7732 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7733 PC's for which no line number info is found (line number is zero)
7734 then we didn't find any valid line information.
7735 * symtab.h: Document use of zero line number entry.
7736
9abe5450
EZ
77372002-02-21 Elena Zannoni <ezannoni@redhat.com>
7738
7739 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7740 (have_ptrace_getvrregs): Define for run time checks.
7741 (gdb_vrregset_t): New type for Altivec register handling.
7742 (fetch_register, store_register): Fetch/store altivec register
7743 when needed.
7744 (fetch_altivec_register, store_altivec_register): New functions.
7745 (supply_vrregset, fill_vrregset): New functions.
7746 (fetch_altivec_registers, store_altivec_registers): New functions.
7747 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7748 registers as well.
7749
aaa38bb5
AJ
77502002-02-21 Jiri Smid <smid@suse.cz>
7751
7752 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7753
b34db576
RE
77542002-02-21 Richard Earnshaw <rearnsha@arm.com>
7755
7756 * Makefile.in (armnbsd-nat.o): Update dependencies.
7757 * armnbsd-nat.c (supply_gregset): New function. Common code to
7758 supply the integer register set.
7759 (supply_fparegset): New function. Similar for FPA registers.
7760 (fetch_regs, fetch_fp_regs): Use them.
7761 (fetch_core_registers): Likewise.
7762 (fetch_elfcore_registers): New function.
7763 (arm_netbsd_elfcore_fns): New core-file type specification.
7764 (_initialize_arm_netbsd_nat): Register it.
7765
3e56fc4b
RE
77662002-02-21 Richard Earnshaw <rearnsha@arm.com>
7767
7768 * armnbsd-nat.c: Include gdbcore.h.
7769 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7770 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7771 'void' to declaration, to shut up ARI.
7772 (fetch_core_registers): Make static. Rewrite using supply_register.
7773 (arm_netbsd_core_fns): New core-file type specification.
7774 (_initialize_arm_netbsd_nat): New function.
7775
097f6b0b
CF
77762002-02-21 Christopher Faylor <cgf@redhat.com>
7777
7778 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7779 value.
7780
c914e0cc
CF
77812002-02-20 Christopher Faylor <cgf@redhat.com>
7782
7783 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7784 fails.
7785
385fa495
DJ
77862002-02-20 Daniel Jacobowitz <drow@mvista.com>
7787
7788 * jv-exp.y (parse_number): Change type of implicit longs
7789 to builtin_type_uint64.
7790
e5f1222d
DJ
77912002-02-20 Daniel Jacobowitz <drow@mvista.com>
7792
7793 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7794 to be an integer instead of a `union wait'.
7795
75c9abc6
DJ
77962002-02-20 Daniel Jacobowitz <drow@mvista.com>
7797
7798 * mips-linux-nat.c: Call the operating system GNU/Linux.
7799 * mips-linux-tdep.c: Likewise.
7800 * mips-tdep.c: Likewise.
7801
551792a5
DJ
78022002-02-20 Daniel Jacobowitz <drow@mvista.com>
7803
7804 Fix PR gdb/265.
7805 * jv-exp.y (parse_number): Handle 64-bit integers.
7806
ee6e2b82
DJ
78072002-02-20 Daniel Jacobowitz <drow@mvista.com>
7808
7809 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7810 AC_STDC_HEADERS to AC_HEADER_STDC.
7811 * gdbserver/configure: Regenerated.
7812
a48442a0
RE
78132002-02-20 Richard Earnshaw <rearnsha@arm.com>
7814
7815 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7816 is defined.
7817 * sparc-tdep.c (get_longjmp_target): Likewise.
7818
fe419ffc
RE
78192002-02-20 Richard Earnshaw <rearnsha@arm.com>
7820
7821 * News: Add news about ARM and Multi-arch. Mention the new target
7822 arm*-*-netbsd*.
7823
5832ed7e
JB
78242002-02-19 Jim Blandy <jimb@redhat.com>
7825
7826 * stabsread.c (error_type_complaint): Improve error message.
7827
84563040
DJ
78282002-02-19 Daniel Jacobowitz <drow@mvista.com>
7829
7830 * gdbserver/README: Update documentation.
7831 * gdbserver/configure.in: Update configury to match documentation.
7832 * gdbserver/Makefile.in: Likewise.
7833 * gdbserver/configure: Regenerated.
7834 * gdbserver/aclocal.m4: New file, generated by aclocal.
7835 * gdbserver/config.in: New file, generated by autoheader.
7836
375fd65b
RE
78372002-02-19 Richard Earnshaw <rearnsha@arm.com>
7838
7839 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7840 armnbsd-nat.c.
7841
08216dd7
RE
78422002-02-19 Richard Earnshaw <rearnsha@arm.com>
7843
7844 * arm-tdep.h (enum arm_float_model): New enum.
7845 (struct gdbarch_tdep): Add fp_model.
7846 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7847 up floating-point conversions until we know the floating-point model
7848 in use by the inferior. Don't complain about being unable to
7849 determine the ABI of the inferior when we don't have one.
7850 (arm_extract_return_value): Support different floating-point models.
7851 (arm_store_return_value): Likewise.
aaa38bb5 7852 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7853 ARM_FLOAT_SOFT.
7854 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7855
65d6d66a
PS
78562002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7857
7858 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7859 of ``current_gdbarch''.
7860
47221191
RE
78612002-02-19 Richard Earnshaw <rearnsha@arm.com>
7862
7863 * armnbsd-nat.c : ANSIfy all function declarations.
7864 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7865 (fetch_inferior_registers): Re-implement in terms of above.
7866 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7867 (store_inferior_registers): Re-implement in terms of above.
7868
fdf39c9a
RE
78692002-02-19 Richard Earnshaw <rearnsha@arm.com>
7870
aaa38bb5 7871 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7872 kernel.
7873 * arm-linux-tdep.c: Likewise.
7874 * config/arm/tm-linux.h: Likewise.
7875
93247f88
RE
78762002-02-19 Richard Earnshaw <rearnsha@arm.com>
7877
7878 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7879 * config/arm/nbsd.mt (TM_FILE): Delete.
7880 * config/arm/tm-nbsd.h: Delete.
7881
d7b486e7
RE
78822002-02-19 Richard Earnshaw <rearnsha@arm.com>
7883
7884 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7885 Initialize CALL_DUMMY_LENGTH.
7886
41d39a95
RE
78872002-02-19 Richard Earnshaw <rearnsha@arm.com>
7888
7889 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7890 function.
7891 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7892 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7893 defines one thing and that is incorrect for this port.
7894 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7895
e1195560
PM
78962002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7897
7898 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7899
c1748f97
PM
79002002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7901
7902 * win32-nat.c (display_selector): New function. Displays information
7903 about the information returned by GetThreadSelectorEntry API function.
7904 (display_selectors): New function. Displays the infomation of
7905 the selector given as argument, or of CS, DS ans FS selectors
7906 if no argument is given.
7907 ( _initialize_inftarg): Add "w32" as info prefix command.
7908 Add "info w32 selector" as command calling display_selectors.
7909
e41e6bbf
PM
79102002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7911
7912 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7913 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7914 if not defined.
7915
0d3a9f48
RE
79162002-02-18 Richard Earnshaw <rearnsha@arm.com>
7917
7918 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7919
3fb4b924
RE
79202002-02-18 Richard Earnshaw <rearnsha@arm.com>
7921
7922 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7923 (arm_fix_call_dummy): Call it.
7924 (arm_call_dummy_breakpoint_offset): Delete.
7925 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7926 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7927
7f55af32
AC
79282002-02-18 Andrew Cagney <ac131313@redhat.com>
7929
7930 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7931 Default to func_frame_chain_valid.
7932 * gdbarch.h, gdbarch.c: Re-generate.
7933 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7934
05f13b9c
EZ
79352002-02-18 Elena Zannoni <ezannoni@redhat.com>
7936
7937 * ppc-linux-nat.c: Update copyright.
7938 (fetch_register, store_register): Add tid parameter, don't compute
7939 tid here.
7940 (fetch_ppc_registers, store_ppc_registers): Add tid
7941 parameter. Pass it along to callees.
7942 (fetch_inferior_registers, store_inferior_registers): Compute tid
7943 here, and pass it to calleed functions.
7944 (fill_gregset, supply_fpregset): Clean up formatting.
7945
d7afb4c9
RE
79462002-02-18 Richard Earnshaw <rearnsha@arm.com>
7947
7948 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7949 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7950
9df628e0
RE
79512002-02-18 Richard Earnshaw <rearnsha@arm.com>
7952
7953 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7954 * gdbarch.c gdbarch.h: Regenerate.
7955 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7956 function.
7957 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7958 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7959 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7960
7961 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7962 * arm-tdep.c (arm_get_longjmp_target): New function.
7963 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7964 this to a positive value register arm_get_longjmp_target as the
7965 longjmp handler.
7966 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7967 (arm_linux_init_abi): Set up longjmp description in tdep.
7968 * armnbsd-nat.c (get_longjmp_target): Delete.
7969 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7970 description in tdep.
7971 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7972 (get_longjmp_target): Delete declaration.
7973 (GET_LONGJMP_TARGET): Delete.
7974 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7975 (GET_LONGJMP_TARGET): Delete.
7976
57bc8964
KB
79772002-02-17 Kevin Buettner <kevinb@redhat.com>
7978
7979 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7980 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7981 of ``current_gdbarch''.
7982
83d31a92
TT
79832002-02-17 Tom Tromey <tromey@redhat.com>
7984
7985 * cli/cli-cmds.c (compare_strings): New function.
7986 (complete_command): Only print each unique item once.
7987 * completer.h (complete_line): Declare.
7988 * completer.c (complete_line): New function.
7989 (line_completion_function): Use it.
7990
17ef5d92
AC
79912002-02-16 Andrew Cagney <ac131313@redhat.com>
7992
7993 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7994 * gdbarch.h, gdbarch.c: Re-generate.
7995
491b8946
DJ
79962002-02-16 Daniel Jacobowitz <drow@mvista.com>
7997
7998 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7999
80002002-02-16 Daniel Jacobowitz <drow@mvista.com>
8001
8002 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8003 * valops.c (value_arg_coerce): Don't take the address of a reference
8004 to convert an argument to a reference.
8005
dfe7f3ac
CF
80062002-02-15 Christopher Faylor <cgf@redhat.com>
8007
8008 * win32-nat.c (get_image_name): New function.
8009 (handle_load_dll): Use get_image_name function.
8010 (get_child_debug_event): Avoid registering debug events until possibly
8011 execed process is started.
8012 (child_create_inferior): Allow invocation via shell so that command
8013 line redirection, etc. works ok.
8014 (_initialize_inftarg): Add new command: "set shell" to control whether
8015 a shell is used to start a process.
8016
1d33e73a
DJ
80172002-02-15 Daniel Jacobowitz <drow@mvista.com>
8018
8019 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8020 instead of find_register_by_number.
8021 (cannot_store_register): Likewise.
8022
48cd0caa
PM
80232002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8024
aaa38bb5 8025 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8026 fprintf_unfiltered (gdb_stderr, ...).
8027
8656e7d8
DJ
80282002-02-15 Daniel Jacobowitz <drow@mvista.com>
8029
8030 * gdbserver/gdbserver.1: Document --attach.
8031
66e810cd
RE
80322002-02-15 Richard Earnshaw <rearnsha@arm.com>
8033
8034 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8035 descriptions.
8036 * arm-tdep.c (arm_default_arm_le_breakpoint)
8037 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8038 (arm_default_thumb_be_breakpoint): New. Initialize them from
8039 traditional breakpoint defines.
8040 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8041 (arm_gdbarch_init): Initialize new breakpoint variables.
8042 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8043 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8044 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8045 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8046 code out to ...
8047 (arm_netbsd_init_abi_common): ... here; new function.
8048 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8049 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8050 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8051 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8052
97e03143
RE
80532002-02-15 Richard Earnshaw <rearnsha@arm.com>
8054
8055 * arm-tdep.h (enum arm_abi): New enum.
8056 (struct gdbarch_tdep): New structure.
8057 (LOWEST_PC): Provide a default.
8058 (arm_gdbarch_register_os_abi): Declare new function.
8059 * arm-tdep.c (arm_abi_names): New array.
8060 (process_note_abi_tag_sections): New function.
8061 (get_elfosabi): New function.
8062 (arm_gdbarch_register_os_abi): New function.
8063 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8064 support for that ABI has been built in, then call the appropriate
8065 configuration routine. Use gdbarch_num_regs() to get the number
8066 of registers.
8067 (arm_dump_tdep): New function.
8068 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8069 place-holder functions.
8070 (_initialize_arm_tdep): Register them.
8071 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8072
8073 * armnbsd-tdep.c: New file.
8074 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8075 * config/arm/nbsd.mt (TDEPFILES): Add it.
8076 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8077
8078 * armnbsd-nat.c: Include regcache.h.
8079 * Makefile.in (armnbsd-nat.o): Update dependency list.
8080
8081 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8082
ad68be46
DJ
80832002-02-14 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * gdbserver/Makefile.in: Fix typos in target rules.
8086
003d6d1d
DJ
80872002-02-14 Daniel Jacobowitz <drow@mvista.com>
8088
aaa38bb5 8089 Fix part of PR gdb/267.
003d6d1d
DJ
8090 * linespec.c (find_methods): Handle constructors specially for now.
8091
6b230f1b
CV
80922002-02-14 Corinna Vinschen <vinschen@redhat.com>
8093
8094 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8095 handling.
8096 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8097 standard_coerce_float_to_double().
8098
1ea98d12
CF
80992002-02-14 Christopher Faylor <cgf@redhat.com>
8100
8101 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8102 GDBINIT_FILENAME.
8103
dd47e6fd
EZ
81042002-02-14 Elena Zannoni <ezannoni@redhat.com>
8105
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8107 find_variant_by_name, because it confuses the multiarch
8108 framework. Return NULL if there isn't an architecture with the
8109 user supplied name, instead of forcing a different one without
8110 recording the change with the multiarch machinery.
8111 (find_variant_by_name): Delete.
8112
d7e39b9e
PS
81132002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8114
8115 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8116 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8117
76e42a4f
MH
81182002-02-13 Martin M. Hunt <hunt@redhat.com>
8119
aaa38bb5 8120 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8121 print_frame_info_listing_hook, set current_source_symtab.
8122
0a30fbc4
DJ
81232002-02-14 Daniel Jacobowitz <drow@mvista.com>
8124
8125 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8126 and remove unused $(INCLUDE_DIR).
8127 Add regcache.c to OBS.
8128 Add generated register protocol files to clean target.
8129 Update dependencies for new objects, obsolete old target code.
8130
8131 * gdbserver/linux-low.c: Remove all platform-specific code to
8132 new files. Remove various dead code. Update to use regcache
8133 functionality.
8134 * gdbserver/remote-utils.c (fromhex): Add return statement
8135 to quiet warning.
8136 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8137 constant.
8138 (input_interrupt): Add integer parameter to match prototype
8139 of a signal handler.
8140 (outreg): Use register_data ().
8141 (prepare_resume_reply): Use gdbserver_expedite_regs.
8142 * gdbserver/server.c (main): Dynamically allocate own_buf because
8143 PBUFSIZ is no longer constant. Use registers_to_string () and
8144 registers_from_string ().
8145 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8146 for error (), fatal (), and warning (). Update definition of
8147 PBUFSIZ to use regcache functionality. Add include guard.
8148 * gdbserver/utils.c (fatal): Add missing ``const''.
8149 (warning): New function.
8150
8151 * regformats/regdat.sh: Include "regcache.h" in generated files.
8152 Provide init_registers () function.
8153 * regformats/regdef.h: Add prototype for set_register_cache ().
8154 Add include guard.
8155
8156 * gdbserver/linux-arm-low.c: New file.
8157 * gdbserver/linux-i386-low.c: New file.
8158 * gdbserver/linux-ia64-low.c: New file.
8159 * gdbserver/linux-m68k-low.c: New file.
8160 * gdbserver/linux-mips-low.c: New file.
8161 * gdbserver/linux-ppc-low.c: New file.
8162 * gdbserver/linux-sh-low.c: New file.
8163
8164 * gdbserver/regcache.c: New file.
8165 * gdbserver/regcache.h: New file.
8166
8167 * gdbserver/low-linux.c: Removed obsolete file.
8168
4cc841d0
DJ
81692002-02-14 Daniel Jacobowitz <drow@mvista.com>
8170
8171 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8172 * config/i386/linux.mt: Likewise.
8173 * config/ia64/linux.mt: Likewise.
8174 * config/m68k/linux.mh: Likewise.
8175 * config/powerpc/linux.mh: Likewise.
8176 * config/mips/linux.mt: Likewise.
8177
8178 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8179
8180 * config/i386/i386lynx.mh: Mark gdbserver variables
8181 as (currently) obsolete for this target.
8182 * config/i386/nbsd.mt: Likewise.
8183 * config/i386/nbsdelf.mt: Likewise.
8184 * config/m32r/m32r.mt: Likewise.
8185 * config/m68k/m68klynx.mh: Likewise.
8186 * config/m68k/nbsd.mt: Likewise.
8187 * config/m68k/sun3os4.mh: Likewise.
8188 * config/mips/vr5000.mt: Likewise.
8189 * config/ns32k/nbsd.mt: Likewise.
8190 * config/pa/hppabsd.mh: Likewise.
8191 * config/pa/hppaosf.mh: Likewise.
8192 * config/powerpc/nbsd.mt: Likewise.
8193 * config/rs6000/rs6000lynx.mh: Likewise.
8194 * config/s390/s390.mt: Likewise.
8195 * config/s390/s390x.mt: Likewise.
8196 * config/sparc/sparclynx.mh: Likewise.
8197 * config/sparc/sun4os4.mh: Likewise.
8198 * config/i386/x86-64linux.mt: Likewise.
8199 * config/sparc/linux.mh: Likewise.
8200
a85f51e7
DJ
82012002-02-14 Daniel Jacobowitz <drow@mvista.com>
8202
8203 * configure.tgt: Configure gdbserver only for known working
8204 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8205 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8206 SUBDIRS if it is configured. Update comment for ${nativefile}.
8207 * configure: Regenerated.
8208
65554fef
MS
82092002-02-13 Michael Snyder <msnyder@redhat.com>
8210
670a52db
MS
8211 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8212
6dbdc4a3
MS
8213 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8214 (default_gcore_mach): Just return 0, work around a problem in bfd.
8215 (default_gcore_target): OK to return NULL if exec_bfd is null.
8216 (make_mem_sec): Use a cast, avoid a warning.
8217
8218 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8219 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8220 sizeof (host pointer) != sizeof (target pointer)).
8221 (procfs_make_note_section): Avoid overflow in psargs string.
8222
aaa38bb5 8223 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8224 implementation return an error.
8225
82262002-02-13 Rodney Brown <rbrown64@csc.com.au>
8227
8228 * procfs.c (procfs_make_note_section): Provide a default definition
8229 (for alpha-dec-osf4.0f). Fix typos.
8230
1e4d76e7
EZ
82312002-02-13 Elena Zannoni <ezannoni@redhat.com>
8232
8233 * linux-proc.c: Add include of regcache.h.
8234 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8235
b6d1a1d5
AC
82362002-02-13 Andrew Cagney <ac131313@redhat.com>
8237
8238 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8239 * memattr.c (create_mem_region): Disallow useless empty region.
8240 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8241 non-overlapping.
b6d1a1d5 8242
6c6ea35e
MC
82432002-02-13 Michael Chastain <mec@shout.net>
8244
8245 * defs.h: Kill CONST_PTR.
8246 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8247 * c-lang.c (c_builtin_types): Likewise.
8248 * ch-lang.c (ch_builtin_types): Likewise.
8249 * f-lang.c (f_builtin_types): Likewise.
8250 * language.c (unknown_builtin_types): Likewise.
8251 * m2-lang.c (m2_builtin_types): Likewise.
8252 * p-lang.c (pascal_builtin_types): Likewise.
8253 * scm-lang.c (c_builtin_types): Likewise.
8254
3e0b0f48
KS
82552002-02-13 Keith Seitz <keiths@redhat.com>
8256
8257 * arm-tdep.h (arm_get_next_pc): Add declaration.
8258
67255d04
RE
82592002-02-13 Richard Earnshaw <rearnsha@arm.com>
8260
8261 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8262 with other related struct-returning functions.
8263 (arm_extract_struct_value_address): New function.
8264 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8265 initialize float_format, double_format and long_double_format as
8266 appropriate to the endianness of the target.
8267 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8268 (arm_use_struct_convention): Delete declaration.
8269 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8270
079777f6
KS
82712002-02-13 Keith Seitz <keiths@redhat.com>
8272
8273 * defs.h (core_addr_to_string_nz): New function.
8274
34588f23
MK
82752002-02-13 Mark Kettenis <kettenis@gnu.org>
8276
8277 Apply missing bits of 2002-01-15 patch.
8278 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8279 (fill_fpregset): Use i387_fill_fsave.
8280
49b563f9
KS
82812002-02-12 Keith Seitz <keiths@redhat.com>
8282
49b563f9
KS
8283 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8284 (core_addr_to_string_nz): New function.
8285
aeb98c60
RE
82862002-02-11 Richard Earnshaw <rearnsha@arm.com>
8287
8288 * arm-linux-nat.c: Really include arm-tdep.h.
8289 * config/arm/tm-linux.h (struct type, struct value): Declare.
8290
65554fef
MS
82912002-02-11 Michael Snyder <msnyder@redhat.com>
8292
8293 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8294 (gcore section): Ifdef for Solaris and Unixware only.
8295 (procfs_do_thread_registers): Unixware needs one lwpstatus
8296 per thread (not one prstatus or pstatus).
8297 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8298 not over all gdb threads. For unixware, call elfcore_write_pstatus
8299 once before iterating over threads.
8300
34e8f22d
RE
83012002-02-11 Richard Earnshaw <rearnsha@arm.com>
8302
8303 * arm-tdep.h: New file.
8304 * arm-tdep.c: Include arm-tdep.h.
8305 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8306 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8307 (arm_print_float_info, arm_register_type, convert_to_extended)
8308 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8309 (arm_extract_return_value, arm_register_name): Make static.
8310 (arm_software_single_step): Similarly. Fix types in declaration.
8311 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8312 (arm_store_return_value, arm_store_struct_return): New functions.
8313 (arm_gdbarch_init): Register the above functions. Also register
8314 call_dummy_start_offset, sizeof_call_dummy_words,
8315 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8316 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8317 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8318 prologue_cache.saved_regs here, rather than ...
8319 (_initialize_arm_tdep): ... here.
8320 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8321 declarations.
8322 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8323 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8324 (arm_print_float_info, arm_register_type, convert_to_extended)
8325 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8326 (arm_extract_return_value, arm_register_name): Delete declarations.
8327 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8328 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8329 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8330 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8331 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8332 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8333 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8334 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8335 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8336 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8337 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8338 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8339 interface.
8340 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8341 * remote-rdi.c remote-rdp.c: Likewise.
8342 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8343 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8344 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8345 definition.
8346
8347 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8348 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8349 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8350 from non-ARM_ prefixed definitions.
8351 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8352 all uses of above.
8353 * remote-rdi.c remote-rdp.c: Likewise.
8354 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8355
148754e5
RE
83562002-02-11 Richard Earnshaw <rearnsha@arm.com>
8357
8358 * arm-tdep.c (arm_frameless_function_invocation)
8359 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8360 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8361 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8362 (arm_pop_frame, arm_get_next_pc): Make static.
8363 (arm_gdbarch_init): Register above in gdbarch structure.
8364 (arm_read_fp): Renamed from arm_target_read_fp.
8365 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8366 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8367 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8368 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8369 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8370 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8371 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8372 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8373 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8374 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8375 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8376
434d2d4f
DJ
83772002-02-10 Daniel Jacobowitz <drow@mvista.com>
8378
8379 * symtab.c (compare_search_syms): New function.
8380 (sort_search_symbols): New function.
8381 (search_symbols): Sort symbols after searching rather than
8382 before.
8383
55241689
AC
83842002-02-10 Andrew Cagney <ac131313@redhat.com>
8385
8386 * NEWS: Linux -> GNU/Linux.
8387
028c194b
AC
83882002-02-10 Andrew Cagney <ac131313@redhat.com>
8389
8390 * gdbarch.sh: For for level one methods, disallow a definition
8391 when partially multi-arched. Add comments explaining rationale.
8392 * gdbarch.h: Re-generate.
8393
6acf50cd
AC
83942002-02-10 Andrew Cagney <ac131313@redhat.com>
8395
8396 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8397 multi-arch partial.
aaa38bb5 8398
50248794
AC
83992002-02-10 Andrew Cagney <ac131313@redhat.com>
8400
8401 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8402 field. Use diff -u.
8403 * gdbarch.c: Re-generate.
8404
c30e0066
AC
84052002-02-10 Andrew Cagney <ac131313@redhat.com>
8406
9b56c5f3 8407 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8408 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8409 partial.
8410
6e6d6484
AC
84112002-02-10 Andrew Cagney <ac131313@redhat.com>
8412
8413 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8414 multi-arch partial.
8415 (PUSH_ARGUMENTS): Switch to using predefault.
8416 * gdbarch.c: Regenerate.
8417
c203844d
AC
84182002-02-10 Andrew Cagney <ac131313@redhat.com>
8419
8420 * valops.c (PUSH_ARGUMENTS): Delete definition.
8421 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8422 partial. Default to default_push_arguments.
8423 * gdbarch.h, gdbarch.c: Regenerate.
8424
b5a2688f
AC
84252002-02-09 Andrew Cagney <ac131313@redhat.com>
8426
8427 * defs.h (throw_exception): Rename return_to_top_level. Update
8428 comments.
8429 * utils.c (error_stream, internal_verror, quit): Ditto.
8430 * top.c (throw_exception, catcher): Ditto.
8431 * sparclet-rom.c (sparclet_load): Ditto.
8432 * remote.c (interrupt_query, minitelnet): Ditto.
8433 * remote-sds.c (interrupt_query): Ditto.
8434 * remote-mips.c (mips_error, mips_kill): Ditto.
8435 * ocd.c (interrupt_query): Ditto.
8436 * monitor.c (monitor_interrupt_query): Ditto.
8437 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8438 * target.h: Update comment.
aaa38bb5 8439
b5a2688f 8440 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8441
2fa5c1e0
AC
84422002-02-09 Andrew Cagney <ac131313@redhat.com>
8443
8444 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8445 default_double_format.
8446 * gdbarch.h, gdbarch.c: Re-generate.
8447 * findvar.c (floatformat_unknown): Delete variable definition.
8448 * doublest.h (floatformat_unknown): Delete variable declaration.
8449
da966255
JB
84502002-02-09 Jim Blandy <jimb@redhat.com>
8451
8452 * stabsread.c (read_type): Add code to parse Sun's syntax for
8453 prototyped function types.
8454
123a4891
AC
84552002-02-09 Andrew Cagney <ac131313@redhat.com>
8456
8457 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8458 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8459
fb39c8f3
PS
84602002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8461
8462 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8463 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8464 now _initialize_xcoffsolib gets called again and overrides the
8465 commands from solib.c in a native configuration.
8466
0b87a11d
MK
84672002-02-09 Mark Kettenis <kettenis@gnu.org>
8468
8469 * doublest.c (store_typed_floating): Don't try to return a value.
8470 Fixes PR gdb/290.
8471
bdc2fc72
JB
84722002-02-08 Jim Blandy <jimb@redhat.com>
8473
8474 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8475 is prototyped and has no arguments, print its argument list as
8476 `(void)'.
8477
da69bbcf
CD
84782002-02-08 Chris Demetriou <cgd@broadcom.com>
8479
8480 * MAINTAINERS (write-after-approval): Add myself.
8481 (paper-trail): I've escaped!
aaa38bb5 8482
b69571f5
CF
84832002-02-08 Christopher Faylor <cgf@redhat.com>
8484
8485 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8486 changes.
8487 (_initialize_check_for_gdb_ini): Ditto.
8488
f6871398
MH
84892002-02-08 Martin M. Hunt <hunt@redhat.com>
8490
8491 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8492 xaprintf -> xasprintf.
8493
4e52d31c
PM
84942002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8495
8496 * win32-nat.c: Remove use of printf and sprintf functions.
8497
39bbf761
RE
84982002-02-08 Richard Earnshaw <rearnsha@arm.com>
8499
8500 * arm-tdep.c (arm_frame_chain_valid): Make static.
8501 (arm_push_arguments): Likewise.
8502 (arm_gdbarch_init): New function.
8503 (_initialize_arm_tdep): Call it.
8504 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8505 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8506 (FRAME_CHAIN_VALID): Delete.
8507 (arm_frame_chain_valid): Delete declaration.
8508 (PUSH_ARGUMENTS): Delete.
8509 (arm_push_arguments): Delete declaration.
8510 (CALL_DUMMY_P): Delete.
8511
9c9532c9
CV
85122002-02-08 Andrew Cagney <ac131313@redhat.com>
8513 Corinna Vinschen <vinschen@redhat.com>
8514
8515 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8516 on builtin float types.
8517
4e8f7a8b
DJ
85182002-02-08 Daniel Jacobowitz <drow@mvista.com>
8519
8520 * utils.c: Include <curses.h> before "bfd.h".
8521 * tui/tui-hooks.c: Likewise.
8522 * tui/tui.c: Likewise.
8523 * tui/tuiCommand.c: Likewise.
8524 * tui/tuiData.c: Likewise.
8525 * tui/tuiDataWin.c: Likewise.
8526 * tui/tuiDisassem.c: Likewise.
8527 * tui/tuiGeneralWin.c: Likewise.
8528 * tui/tuiIO.c: Likewise.
8529 * tui/tuiLayout.c: Likewise.
8530 * tui/tuiRegs.c: Likewise.
8531 * tui/tuiSource.c: Likewise.
8532 * tui/tuiSourceWin.c: Likewise.
8533 * tui/tuiStack.c: Likewise.
8534 * tui/tuiWin.c: Likewise.
8535
cd4bffcf
EZ
85362002-02-07 Elena Zannoni <ezannoni@redhat.com>
8537
8538 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8539 to include space for pseudoregs as well. Update loops accordingly.
8540 (sh_fp_frame_init_saved_regs): Ditto.
8541 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8542
26806ce2
AC
85432002-02-07 Andrew Cagney <ac131313@redhat.com>
8544
8545 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8546 Add Richard Earnshaw to Arm maintainers.
8547
97fdab62
AC
85482002-02-07 Andrew Cagney <ac131313@redhat.com>
8549
a6b98203
AC
8550 * defs.h (warning_begin): Delete declaration.
8551
97fdab62
AC
8552 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8553 Delete macro.
8554
78b29b40
MS
85552002-02-07 Michael Snyder <msnyder@redhat.com>
8556
aaa38bb5 8557 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8558 Logic bug, remove misplaced else.
8559
d8849953
KD
85602002-02-07 Klee Dienes <klee@apple.com>
8561
8562 * fork-inferior.c (fork_inferior): Add '!' to the list of
8563 characters that need to be quoted when building a string for the
8564 shell. Quote '!' specifically with a backslash, since CSH chokes
8565 when trying to evaluate "str!str".
aaa38bb5 8566
095778a0
NC
85672002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8568
8569 * rdi-share/host.h: Only provide a typedef for bool if it is not
8570 defined.
8571
1900040c
MS
85722002-02-04 Michael Snyder <msnyder@redhat.com>
8573
8574 * breakpoint.h (enum bptype): Add new overlay event bp type.
8575 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8576
1900040c
MS
8577 * breakpoint.c (create_internal_breakpoint): New function.
8578 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8579 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8580 (create_thread_event_breakpoint): Ditto.
8581 (create_solib_event_breakpoint): Ditto.
8582 (create_overlay_event_breakpoint): New function.
8583 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8584 (update_breakpoints_after_exec): Delete and re-initialize
8585 overlay event breakpoints after an exec. Add FIXME comment
8586 about longjmp breakpoint.
8587 (print_it_typical): Ignore overlay event breakpoints.
8588 (print_one_breakpoint): Ditto.
8589 (mention): Ditto.
8590 (bpstat_what): Do not stop for overlay event breakpoints.
8591 (delete_breakpoint): Don't delete overlay event breakpoints.
8592 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8593 (breakpoint_re_set): Re-create overlay event breakpoint.
8594
8595 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8596 (overlay_manual_command): Disable overlay breakpoints.
8597 (overlay_off_command): Disable overlay breakpoints.
8598
082fc60d
RE
85992002-02-06 Richard Earnshaw <rearnsha@arm.com>
8600
8601 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8602 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8603 to here from config/tm-arm.h.
8604 (coff_sym_is_thumb): Make static.
8605 (arm_elf_make_msymbol_special): New function.
8606 (arm_coff_make_msymbol_special): New function.
8607 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8608 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8609 (coff_sym_is_thumb): Delete declaration.
8610 (arm_elf_make_msymbol_special): Declare.
8611 (arm_coff_make_msymbol_special): Declare.
8612 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8613 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8614
039c5766
RE
86152002-02-06 Richard Earnshaw <rearnsha@arm.com>
8616
8617 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8618
86192002-02-06 Richard Earnshaw <rearnsha@arm.com>
8620
8621 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8622 * gdbarch.c gdbarch.h: Regenerate.
8623 * arch-utils.c (default_print_float_info): New function.
8624 * arch-utils.h (default_print_float_info): Prototype it.
8625 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8626 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8627 (PRINT_FLOAT_INFO): Document it.
8628
8629 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8630 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8631 (PRINT_FLOAT_INFO): Define.
8632
58fa08f0
PM
86332002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8634
aaa38bb5 8635 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8636 Add typecast to sprintf argument to suppress a warning.
8637
7393af7c
PM
86382002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8639
58fa08f0 8640 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8641 to allow easier handling of pass state.
8642 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8643 that gives exception name and address.
8644 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8645 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8646 exceptions added.
aaa38bb5
AJ
8647 (child_continue): Correctly report continue_status.
8648 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8649 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8650 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8651 the exception should be passed to debuggee or not.
8652
6af4589c
MS
86532002-02-05 Michael Snyder <msnyder@redhat.com>
8654
8655 * regcache.c (fetch_register): Call target_fetch_register
8656 only if we don't call FETCH_PSEUDO_REGISTER.
8657 (store_register): Call target_store_register only if we
8658 don't call STORE_PSEUDO_REGISTER.
8659
a2cf933a
EZ
86602002-02-05 Elena Zannoni <ezannoni@redhat.com>
8661
8662 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8663 ELF_MAKE_MSYMBOL_SPECIAL.
8664 * gdbarch.c, gdbarch.h: Regenerate.
8665 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8666 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8667 * elfread.c (elf_symtab_read): Compile use of
8668 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8669 multiarched.
8670 * coffread.c (coff_symtab_read): Ditto, for
8671 COFF_MAKE_MSYMBOL_SPECIAL.
8672
6bb7be43
JB
86732002-02-05 Jim Blandy <jimb@redhat.com>
8674
8675 * solib-svr4.c (svr4_truncate_ptr): New function.
8676 (svr4_relocate_section_addresses): Do the address arithmetic with
8677 the appropriate truncation for target addresses, even when
8678 CORE_ADDR is larger than a target address.
8679
e18651ec
DJ
86802002-02-05 Daniel Jacobowitz <drow@mvista.com>
8681
8682 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8683 to (int *).
8684
6b2725be
DJ
86852002-02-05 Daniel Jacobowitz <drow@mvista.com>
8686
8687 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8688 code.
8689
fca9e603
DJ
86902002-02-05 Daniel Jacobowitz <drow@mvista.com>
8691
8692 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8693
6c537a52
DJ
86942002-02-05 Daniel Jacobowitz <drow@mvista.com>
8695
8696 * gdbserver/linux-low.c: Remove unused include files.
8697
d844cde6
DJ
86982002-02-05 Daniel Jacobowitz <drow@mvista.com>
8699
8700 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8701 (read_inferior_memory): Use it.
8702 (write_inferior_memory): Likewise.
8703
d07c63e7
DJ
87042002-02-05 Daniel Jacobowitz <drow@mvista.com>
8705
8706 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8707 grubbing through sys_errlist.
8708
da6d8c04
DJ
87092002-02-05 Daniel Jacobowitz <drow@mvista.com>
8710
8711 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8712
5b421780
PM
87132002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8714 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8715
9f60d481
AC
87162002-02-04 Andrew Cagney <ac131313@redhat.com>
8717
8718 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8719 (do_sfunc, set_cmd_sfunc): New functions.
8720
8721 * command.h (struct cmd_list_element): Add field func.
8722 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8723 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8724 * cli/cli-decode.h: Ditto.
8725
8726 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8727 (help_all, help_cmd_list): Ditto.
8728 (find_cmd, complete_on_cmdlist): Ditto.
8729 * top.c (execute_command): Ditto.
8730
8731 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8732 function.sfunc.
8733
8734 * infcmd.c (notice_args_read): Fix function signature.
8735
8736 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8737 * cli/cli-decode.c (add_set_cmd): Ditto.
8738 * utils.c (initialize_utils): Ditto.
8739 * maint.c (_initialize_maint_cmds): Ditto.
8740 * infrun.c (_initialize_infrun): Ditto.
8741 * demangle.c (_initialize_demangler): Ditto.
8742 * remote.c (add_packet_config_cmd): Ditto.
8743 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8744 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8745 * proc-api.c (_initialize_proc_api): Ditto.
8746 * kod.c (_initialize_kod): Ditto.
8747 * valprint.c (_initialize_valprint): Ditto.
8748 * top.c (init_main): Ditto.
8749 * infcmd.c (_initialize_infcmd): Ditto.
8750 * corefile.c (_initialize_core): Ditto.
8751 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8752 * arch-utils.c (initialize_current_architecture): Ditto.
8753 (_initialize_gdbarch_utils): Ditto.
8754 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8755
8756 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8757 * wince.c (_initialize_inftarg): Ditto.
8758 * symfile.c (_initialize_symfile): Ditto.
8759 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8760 * language.c (_initialize_language): Ditto.
8761 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8762
f9ba0717
MS
87632002-02-04 Michael Snyder <msnyder@redhat.com>
8764
8765 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8766
0c74b2a7
DJ
87672002-02-04 Daniel Jacobowitz <drow@mvista.com>
8768
8769 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8770 Add rules for building the register data files.
8771
c638789f
DJ
87722002-02-04 Daniel Jacobowitz <drow@mvista.com>
8773
8774 * regformats/regdat.sh: Add braces to the definition of
8775 expedite_regs_${arch}.
8776
db253027
DJ
87772002-02-04 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * regformats/regdef.h (struct reg): Add comment describing the
8780 requirements for offset and size fields.
8781
206be19c
AS
87822002-02-04 Andreas Schwab <schwab@suse.de>
8783
8784 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8785 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8786
181c1381
RE
87872002-02-04 Richard Earnshaw <rearnsha@arm.com>
8788
8789 * gdbarch.sh (copyright): Update years in generated header.
8790 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8791 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8792 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8793 * dbxread.c: Likewise.
8794 * dwarfread.c: Likewise.
8795 * elfread.c: Likewise.
8796 * somread.c: Likewise.
8797
8798 * arm-tdep.c (arm_smash_text_address): New function.
8799 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8800
fa4ba8da
PM
88012002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8802
8803 Add support for hardware watchpoints on win32 native.
aaa38bb5 8804 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8805 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8806 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8807 of debug registers.
8808 (debug_registers_changed): New variable. Reflects when debug registers
8809 are changed and need to be written to inferior.
aaa38bb5 8810 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8811 was set, used when new threads are created.
8812 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8813 i386-nat code.
8814 (thread_rec): Set dr array if id is the thread of current_event .
8815 (child_continue, child_resume): Change the debug registers for all
8816 threads if debug_registers_changed.
8817 (child_add_thread): Change the debug registers if debug_registers_used.
8818 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8819 Link nm.h to new nm-cygwin.h file.
8820 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8821 of hardware registers.
8822
a73c86fb
AC
88232002-02-03 Andrew Cagney <ac131313@redhat.com>
8824
8825 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8826 Restore behavour broken by 2002-01-20 Andrew Cagney
8827 <ac131313@redhat.com> IEEE_FLOAT removal.
8828
acf5ed49
DJ
88292002-02-03 Daniel Jacobowitz <drow@mvista.com>
8830
8831 * c-valprint.c (c_val_print): Pass a proper valaddr to
8832 cp_print_class_method.
8833 * valops.c (search_struct_method): If there is only one method
8834 and args is NULL, return that method.
8835
493d28d5
DJ
88362002-02-03 Daniel Jacobowitz <drow@mvista.com>
8837
8838 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8839 accessing tag_name directly.
8840
7495dfdb
DJ
88412002-02-03 Daniel Jacobowitz <drow@mvista.com>
8842
8843 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8844 of accessing tag_name directly.
8845
dd6bda65
DJ
88462002-02-03 Daniel Jacobowitz <drow@mvista.com>
8847
8848 PR gdb/280
8849 * gdbtypes.c (replace_type): New function.
8850 * gdbtypes.h (replace_type): Add prototype.
8851 * stabsread.c (read_type): Use replace_type.
8852
88fe217c
RE
88532002-02-03 Richard Earnshaw <rearnsha@arm.com>
8854
8855 * Makefile.in (memattr.o): Add missing dependencies rule.
8856
e5d66720
PS
88572002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8858
8859 * breakpoint.c (break_at_finish_command): Really export.
8860 (break_at_finish_at_depth_command): Ditto.
8861 (tbreak_at_finish_command): Ditto.
8862 * hppa-tdep.c: Include completer.h.
8863 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8864 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8865
fffee0be
AC
88662002-02-01 Andrew Cagney <ac131313@redhat.com>
8867
8868 * utils.c (do_write): New function.
8869 (error_stream): Rewrite combining the code from error_begin and
8870 verror.
8871 (verror): Rewrite using error_stream.
8872 (error_begin): Delete function.
8873
255e7dbf
AC
88742002-02-01 Andrew Cagney <ac131313@redhat.com>
8875
8876 * utils.c (error_begin): Make static.
8877 * defs.h (error_begin): Delete declaration.
8878
8879 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8880 (decode_line_1): Use cplusplus_error instead of error_begin,
8881 cplusplus_hint and return_to_top_level.
8882 * coffread.c (coff_symfile_read): Use error instead of error_begin
8883 and return_to_top_level.
8884 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8885
ddfe3c15
AC
88862002-02-01 Andrew Cagney <ac131313@redhat.com>
8887
8888 * language.h (type_error, range_error): Make string parameter
8889 constant.
8890 * language.c (warning_pre_print): Delete extern declaration.
8891 * dwarfread.c (warning_pre_print): Ditto.
8892 * language.c (type_error, range_error): Rewrite to use verror and
8893 vwarning instead of warning_begin.
8894
03ac34d5
MS
88952002-02-01 Michael Snyder <msnyder@redhat.com>
8896
261c4ca2
MS
8897 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8898 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8899
e00d1dc8
AC
89002002-02-01 Andrew Cagney <ac131313@redhat.com>
8901
8902 * command.h (NO_FUNCTION): Delete macro.
8903 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8904 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8905 * tracepoint.c (_initialize_tracepoint): Ditto.
8906 * cli/cli-decode.c (add_set_cmd): Ditto.
8907 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8908
76b79d6e
DJ
89092002-02-01 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8912 Update ``this'' pointer when calling virtual functions.
8913
799f9e91
MS
89142002-02-01 Michael Snyder <msnyder@redhat.com>
8915
c7bd442c 8916 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
8917 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8918
3cf384d4
DJ
89192002-02-01 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * regformats/reg-arm.dat: New file.
8922 * regformats/reg-i386.dat: New file.
8923 * regformats/reg-ia64.dat: New file.
8924 * regformats/reg-m68k.dat: New file.
8925 * regformats/reg-mips.dat: New file.
8926 * regformats/reg-ppc.dat: New file.
8927 * regformats/reg-sh.dat: New file.
8928 * regformats/regdef.h: New file.
8929 * regformats/regdat.sh: New file.
8930
0defa245
RE
89312002-02-01 Richard Earnshaw <reanrsha@arm.com>
8932
8933 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8934 (arm_frame_args_address, arm_frame_locals_address): New functions.
8935 (arm_frame_num_args): New function.
8936 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8937 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8938 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8939
405f26e6
MS
89402002-01-31 Michael Snyder <msnyder@redhat.com>
8941
502fd408
MS
8942 * breakpoint.c (break_at_finish_command): Export.
8943 (break_at_finish_at_depth_command): Export.
8944 (tbreak_at_finish_command): Export.
8945 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8946 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8947 "tbreak" commands, which are HPPA specific.
8948
7d35e135
MS
8949 * printcmd.c (disassemble_command): Remove an ancient
8950 artifact of an old merge.
8951
aaa38bb5 8952 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
8953 Define enum constant values for overlay mode.
8954 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
8955 (overlay_is_mapped, overlay_auto_command,
8956 overlay_manual_command): Ditto.
d874f1e2 8957
aaa38bb5
AJ
8958 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8959 breakpoint_here_p, breakpoint_inserted_here_p,
8960 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
8961 describe_other_breakpoints, check_duplicates, clear_command):
8962 Coding standard fixes.
8963
8add0441 8964 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 8965 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
8966 code: check bfd SEC_READONLY flag for section.
8967
e351066e
AC
89682002-01-31 Andrew Cagney <ac131313@redhat.com>
8969
7d35e135 8970 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 8971
8a48e967
DJ
89722002-01-30 Daniel Jacobowitz <drow@mvista.com>
8973
8974 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8975 data symbols, since we search based on textlow and texthigh.
8976 (find_pc_sect_symtab): Likewise.
8977
f5a96129
AC
89782002-01-30 Andrew Cagney <ac131313@redhat.com>
8979
8980 * defs.h (vwarning): Declare.
f5a96129
AC
8981 * utils.c (vwarning): New function.
8982 (warning): Call vwarning.
8983 (warning_begin): Delete function.
8984
8985 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8986 the warning message.
8987 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8988 warning_begin.
8989
cefd4ef5
MS
89902002-01-30 Michael Snyder <msnyder@redhat.com>
8991
1a703748
MS
8992 * NEWS: Mention "set trust-readonly-sections" command.
8993 Mention generate-core-file command.
cefd4ef5 8994
3a11626d
MS
89952002-01-15 Michael Snyder <msnyder@redhat.com>
8996
8997 * target.c: New command, "set trust-readonly-sections on".
8998 (do_xfer_memory): Honor the suggestion to trust readonly sections
8999 by reading them from the object file instead of from the target.
9000 (initialize_targets): Register command "set trust-readonly-sections".
9001
d1c7e53b
AC
90022002-01-29 Andrew Cagney <ac131313@redhat.com>
9003
9004 * parse.c (target_map_name_to_register): Simplify, search regs and
9005 pseudo-regs using a single loop.
9006
e2c9a72c
AC
90072002-01-30 Andrew Cagney <ac131313@redhat.com>
9008
9009 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9010
69824b4e
MK
90112002-01-15 Rodney Brown <rbrown64@csc.com.au>
9012
9013 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9014 * config/i386/i386v42mp.mh: Add i387-nat.o .
9015 * i386v4-nat.c: Include i387-nat.h.
9016 (supply_fpregset): Use i387_supply_fsave.
9017 (fill_fpregset): Use i387_fill_fsave.
9018
6eb69eab
RE
90192002-01-30 Richard Earnshaw <rearnsha@arm.com>
9020
9021 * arm-tdep.c (arm_call_dummy_words): Define.
9022 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9023 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9024 (CALL_DUMMY_WORDS): Define.
9025 (arm_call_dummy_words): Declare.
9026 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9027 (arm_linux_call_dummy_words): Declare.
9028
9852326a
AS
90292002-01-30 Andreas Schwab <schwab@suse.de>
9030
9031 * m68klinux-nat.c: Fix last change to use regcache_collect
9032 instead of referencing registers[] directly.
9033
977a3030
AC
90342002-01-29 Andrew Cagney <ac131313@redhat.com>
9035
9036 * parse.c (target_map_name_to_register): Delete code wrapped in
9037 #ifdef REGISTER_NAME_ALIAS_HOOK.
9038
2076c72b
MS
90392002-01-28 Michael Snyder <msnyder@redhat.com>
9040
9041 * regcache.c (legacy_read_register_gen): Need to be able to
9042 read pseudo-register as well as real register.
9043 (legacy_write_register_gen): Ditto.
9044
8fcc723b
AC
90452002-01-28 Andrew Cagney <ac131313@redhat.com>
9046
9047 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9048 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9049 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9050 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9051 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9052 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9053 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9054 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9055 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9056 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9057 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9058 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9059 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9060 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9061 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9062 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9063 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9064 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9065 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9066 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9067
afe64c1a
AC
90682002-01-28 Andrew Cagney <ac131313@redhat.com>
9069
9070 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9071 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9072 (initialize_current_architecture): Update target_byte_order using
9073 information from BFD.
aaa38bb5 9074 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9075 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9076
75bc7ddf
AC
90772002-01-28 Andrew Cagney <ac131313@redhat.com>
9078
9079 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9080 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9081
9082 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9083 #ifdef INVALID_FLOAT.
9084 * infcmd.c (do_registers_info): Ditto.
9085 * values.c (unpack_double): Ditto. Add comment.
9086
9087 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9088 already commented out.
9089
0280a90a
AS
90902002-01-26 Andreas Schwab <schwab@suse.de>
9091
9092 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9093 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9094 registers and add support for PTRACE_GETREGS.
9095
7072a954
AC
90962002-01-24 Andrew Cagney <ac131313@redhat.com>
9097
9098 GDB 5.1.1 released from 5.1 branch.
9099 * NEWS: Add 5.1.1 news.
9100 * README: Sync with 5.1 branch.
9101
86f902e0
FF
91022002-01-23 Fred Fish <fnf@redhat.com>
9103
9104 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9105 stabstring on initial malloc. Reallocing will copy it for us,
9106 if necessary.
9107
8af51c36
EZ
91082002-01-23 Elena Zannoni <ezannoni@redhat.com>
9109
aaa38bb5 9110 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9111 (HFILES_NO_SRCDIR): Remove hpread.h.
9112 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9113 (hpread.o): Update dependencies.
9114 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9115
9116 * hp-psymtab-read.c: Remove file.
9117 * hp-symtab-read.c: Remove file.
9118 * hpread.h: Remove file.
9119
9120 * hpread.c: Merge all contents of hp-psymtab-read.c,
9121 hp-symtab-read.c and hpread.h into this file, as it was prior to
9122 January 1999.
9123
9124 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9125 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9126 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9127 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9128
dc5cfeb6
EZ
91292002-01-23 Elena Zannoni <ezannoni@redhat.com>
9130
9131 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9132 fill_gregset): Call gdbarch_tdep() just once, assign result to
9133 variable and use that, instead of calling the function several
9134 times.
9135
ea87b71b
AO
91362002-01-24 Alexandre Oliva <aoliva@redhat.com>
9137
9138 * configure.host: Accept sparcv9 as alias for sparc64.
9139 * configure.tgt: Likewise.
9140
13fc0c2f
KB
91412002-01-22 Kevin Buettner <kevinb@redhat.com>
9142
9143 * solib-aix5.c (build_so_list_from_mapfile)
9144 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9145 arguments is not reversed.
9146 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9147 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9148
7bd872fe
EZ
91492002-01-22 Elena Zannoni <ezannoni@redhat.com>
9150
9151 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9152 modified version of obsolete sh_fetch_pseudo_register.
9153 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9154 (sh4_register_read): New function.
9155 (sh_pseudo_register_write): New function. Renamed and modified
9156 version of obsolete sh_store_pseudo_register.
9157 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9158 (sh4_register_write): New function.
9159 (sh_gdbarch_init): Remove setting of gdbarch function
9160 fetch_pseudo_register and store_pseudo_register. Remove setting of
9161 register_convert_to_raw, register_convert_to_virtual,
9162 register_convertible.
9163 (sh_sh4_register_convertible): Delete. No longer needed. All is
9164 taken care by architecture specific functions
9165 register_read/register_write.
9166 (sh_sh4_register_convert_to_virtual): Make static.
9167 (sh_sh4_register_convert_to_raw): Ditto.
9168
069e84fd
AC
91692002-01-22 Andrew Cagney <ac131313@redhat.com>
9170
9171 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9172 (floatformat_is_nan, floatformat_mantissa): Ditto.
9173
9174 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9175 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9176 builtin_type_ieee_double_little,
9177 builtin_type_ieee_double_littlebyte_bigword,
9178 builtin_type_m68881_ext, builtin_type_i960_ext,
9179 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9180 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9181 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9182 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9183
211a4f69
CV
91842002-01-22 Corinna Vinschen <vinschen@redhat.com>
9185
9186 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9187 parameter. Set frameless flag if it exists and depended of
9188 whether the scanned function is frameless or not.
9189 (xstormy16_skip_prologue): If function is frameless, return
9190 result of xstormy16_scan_prologue().
9191 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9192 call.
9193
f81353e4
EZ
91942002-01-21 Elena Zannoni <ezannoni@redhat.com>
9195
9196 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9197 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9198 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9199 sh_sh4_register_byte, sh_sh4_register_raw_size,
9200 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9201 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9202 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9203 sh_store_pseudo_register, sh_do_pseudo_register): Call
9204 gdbarch_tdep() just once, assign result to variable and use that,
9205 instead of calling the function several times.
9206
63c73a17
MK
92072002-01-20 Mark Kettenis <kettenis@gnu.org>
9208
9209 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9210 macros instead of LAST_FPU_CTRL_REGNUM.
9211 (store_register): Likewise.
9212
39ad761d
JB
92132002-01-21 Jim Blandy <jimb@redhat.com>
9214
9215 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9216 is up-to-date before running the program, not just when a program
9217 exits.
9218
3d74b771
FF
92192002-01-21 Fred Fish <fnf@redhat.com>
9220
9221 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9222 when we have found all instructions we are looking for.
9223
966fbf70
RE
92242002-01-21 Richard Earnshaw <rearnsha@arm.com>
9225
9226 * arm-tdep.c (arm_register_name): New function.
9227 (arm_registers_names): Make static.
9228 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9229 (arm_register_name): Declare.
9230 (REGISTER_NAME): Use it.
9231
c3b4394c
RE
92322002-01-21 Richard Earnshaw <rearnsha@arm.com>
9233 Kevin Buettner <kevinb@redhat.com>
9234
9235 Convert arm targets to new FRAME interface.
9236 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9237 (arm_frame_find_save_regs): Delete.
9238 (arm_frame_init_saved_regs): New.
9239 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9240 Allocate extra_info as required. Convert all uses of fsr.regs
9241 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9242 to use extra_info.
9243 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9244 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9245 (check_prologue_cache, save_prologue_cache): Likewise.
9246 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9247 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9248 (FRAME_FIND_SAVED_REGS): Delete.
9249 (arm_frame_find_saved_regs): Delete prototype.
9250 (arm_frame_init_saved_regs): New prototype.
9251 (FRAME_INIT_SAVED_REGS): Define.
9252
61d99182
AC
92532002-01-20 Andrew Cagney <ac131313@redhat.com>
9254
9255 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9256
6aaea291
AC
92572002-01-20 Andrew Cagney <ac131313@redhat.com>
9258
9259 From Jeff Law <law@redhat.com>:
9260 * infttrace.c: Include <sys/pstat.h>.
9261 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9262 exec file if the ttrace equivalent fails.
9263
15f698d2
AC
92642002-01-20 Andrew Cagney <ac131313@redhat.com>
9265
9266 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9267 (closeLogFile): Ditto.
9268
f86ddd7c
MC
92692002-01-20 Michael Chastain <mec@shout.net>
9270
9271 * top.c (print_gdb_version): Bump copyright year to 2002.
9272
904507ce
AC
92732002-01-20 Andrew Cagney <ac131313@redhat.com>
9274
9275 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9276 Zannoni and Eli Zaretskii.
9277
d7f0b9ce
DJ
92782002-01-20 Daniel Jacobowitz <drow@mvista.com>
9279
9280 * buildsym.c: Update copyright years.
9281 * c-typeprint.c: Likewise.
9282 * dwarf2read.c: Likewise.
9283 * f-typeprint.c: Likewise.
9284 * gdbtypes.c: Likewise.
9285 * gdbtypes.h: Likewise.
9286 * hp-symtab-read.c: Likewise.
9287 * hpread.c: Likewise.
9288 * mdebugread.c: Likewise.
9289 * p-typeprint.c: Likewise.
9290
3fd3d7d2
AC
92912002-01-20 Andrew Cagney <ac131313@redhat.com>
9292
9293 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9294 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9295 byte-order selectable.
9296 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9297 * arch-utils.c: Ditto.
9298 (set_endian): Ditto.
9299 (set_endian_from_file): Ditto.
9300 * gdbserver/low-sim.c (create_inferior): Ditto.
9301 * gdbarch.sh: Ditto.
9302 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9303 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9304 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9305 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9306 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9307 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9308 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9309 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9310 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9311 macro definition.
9312 * config/mips/tm-wince.h: Remove #undef of macro
9313 TARGET_BYTE_ORDER_SELECTABLE.
9314 * config/sh/tm-wince.h: Ditto.
9315
b02dede2
DJ
93162002-01-20 Daniel Jacobowitz <drow@mvista.com>
9317
9318 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9319 member function fields. Add accessor macro
9320 TYPE_FN_FIELD_ARTIFICIAL.
9321 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9322 * c-typeprint.c (c_type_print_base): Skip artificial member
9323 functions.
9324
c3643761
DJ
93252002-01-20 Daniel Jacobowitz <drow@mvista.com>
9326
9327 * f-typeprint.c: Delete unused function f_type_print_args.
9328 * p-typeprint.c: Delete unused function pascal_type_print_args.
9329
8176bb6d
DJ
93302002-01-20 Daniel Jacobowitz <drow@mvista.com>
9331
9332 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9333 comment. Add ``artificial'' to ``union field_location''.
9334
9335 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9336
9337 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9338 * mdebugread.c (parse_symbol): Likewise.
9339 * stabsread.c (define_symbol): Likewise.
9340 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9341 initializing TYPE_FIELD_BITPOS to n (obsolete).
9342 (hpread_doc_function_type): Likewise.
9343 * hpread.c (hpread_function_type): Likewise.
9344
7fd60527
AC
93452002-01-20 Andrew Cagney <ac131313@redhat.com>
9346
9347 * configure.in (host_makefile_frag): Only require a host makefile
9348 fragment when a native build.
9349 * configure: Re-generate.
9350
c2f05ac9
AC
93512002-01-20 Andrew Cagney <ac131313@redhat.com>
9352
9353 * doublest.h (floatformat_from_type): Declare.
9354 * doublest.c (floatformat_from_type): New function.
9355 (convert_typed_floating): Use.
9356
9357 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9358 call to function floatformat_from_type.
9359
9360 * gdbarch.sh (IEEE_FLOAT): Delete.
9361 * gdbarch.h, gdbarch.c: Re-generate.
9362 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9363 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9364 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9365 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9366 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9367 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9368 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9369 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9370 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9371 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9372 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9373 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9374
9375 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9376 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9377 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9378 * sh-tdep.c (sh_gdbarch_init): Ditto.
9379 * mips-tdep.c (mips_gdbarch_init): Ditto.
9380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9381 * cris-tdep.c (cris_gdbarch_init): Ditto.
9382
abf22e64
AJ
93832002-01-20 Jiri Smid <smid@suse.cz>
9384
9385 * configure.host, configure.tgt: Support x86-64.
9386 * NEWS: Note new target x86-64.
9387
b7c4cbf8
AJ
9388 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9389 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9390 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9391 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9392 x86-64-linux-nat.o): Fix dependencies.
9393
82600034
AC
93942002-01-19 Andrew Cagney <ac131313@redhat.com>
9395
9396 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9397 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9398 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9399 * config/sparc/xm-sun4os4.h: Delete file.
9400 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9401
bbe5c628
AC
94022002-01-19 Andrew Cagney <ac131313@redhat.com>
9403
9404 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9405 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9406 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9407 * config/i386/i386lynx.mh (XM_FILE): Delete.
9408 * config/rs6000/xm-rs6000ly.h: Delete file.
9409 * config/sparc/xm-sparclynx.h: Delete file.
9410 * config/m68k/xm-m68klynx.h: Delete file.
9411 * config/i386/xm-i386lynx.h: Delete file.
9412 * config/xm-lynx.h: Delete file.
9413 * config/djgpp/fnchange.lst: Update.
9414
f8453e34
JT
94152002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9416
9417 * alpha-tdep.c (alpha_register_byte): New function.
9418 (alpha_register_raw_size): Ditto.
9419 (alpha_register_virtual_size): Ditto.
9420 (alpha_skip_prologue_internal): Renamed from
9421 alpha_skip_prologue.
9422 (alpha_skip_prologue): New version that calls
9423 alpha_skip_prologue_internal.
9424 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9425 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9426 second argument from alpha_skip_prologue.
9427 (REGISTER_BYTE): Use alpha_register_byte.
9428 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9429 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9430 (FRAMELESS_FUNCTION_INVOCATION): Use
9431 generic_frameless_function_invocation_not.
9432 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9433 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9434
52d9e613
AC
94352002-01-19 Andrew Cagney <ac131313@redhat.com>
9436
9437 * config/mips/xm-news-mips.h: Delete file.
9438 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9439
9440 * config/m88k/xm-m88k.h: Delete file.
9441 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9442 * config/m88k/xm-delta88v4.h: Ditto.
9443 * config/m88k/xm-delta88.h: Ditto.
9444
9445 * config/alpha/xm-fbsd.h: Delete file.
9446 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9447
9448 * config/sparc/xm-sparc.h: Delete file.
9449 * Makefile.in (xm-sun4os4.h): Delete dependency.
9450 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9451 * config/sparc/xm-sun4os4.h: Ditto.
9452 * config/sparc/xm-linux.h: Ditto.
9453
9454 * config/i386/xm-windows.h: Delete file.
9455
2d1b2124
AC
94562002-01-19 Andrew Cagney <ac131313@redhat.com>
9457
9458 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9459 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9460
ee1f65f0
JT
94612002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * alpha-tdep.c (alpha_call_dummy_words): New.
9464 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9465 (CALL_DUMMY_P): Define.
9466 (CALL_DUMMY_WORDS): Define.
9467 (SIZEOF_CALL_DUMMY_WORDS): Define.
9468
98081e55
PB
94692002-01-19 Per Bothner <per@bothner.com>
9470
9471 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9472 isn't NULL, which can happen with some gcj-3.x-produced code.
9473
0d056799
JT
94742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9475
9476 * alpha-tdep.c (alpha_register_virtual_type): New function.
9477 (alpha_init_frame_pc_first): Ditto.
9478 (alpha_fix_call_dummy): Ditto.
9479 (alpha_store_struct_return): Ditto.
9480 (alpha_extract_struct_value_address): Ditto.
9481 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9482 alpha_register_virtual_type.
9483 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9484 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9485 alpha_extract_struct_value_address.
9486 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9487 (INIT_FRAME_PC): Use init_frame_pc_noop.
9488 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9489
4604bcad
MK
94902002-01-19 Mark Kettenis <kettenis@gnu.org>
9491
9492 * i386gnu-nat.c: Include "i386-tdep.h".
9493 (fetch_fpregs): Simplify code dealing with uninitialized floating
9494 point states such that it doesn't require FP7_REGNUM.
9495
140f9984
JT
94962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9497
abf22e64
AJ
9498 * alpha-tdep.c (frame_extra_info): New.
9499 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9500 frame->extra_info.
9501 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9502 (alpha_frame_saved_pc): Use frame->extra_info.
9503 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9504 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9505 (init_extra_frame_info): Rename to...
9506 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9507 (alpha_print_extra_frame_info): New function.
140f9984
JT
9508 (alpha_frame_locals_address): Ditto.
9509 (alpha_frame_args_address): Ditto.
abf22e64 9510 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9511 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9512 alpha_frame_args_address.
abf22e64 9513 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9514 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9515 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9516 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9517 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9518 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9519
d734c450
JT
95202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9521
9522 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9523 (alpha_cannot_fetch_register): Ditto.
9524 (alpha_cannot_store_register): Ditto.
9525 (alpha_register_convertible): Ditto.
9526 (alpha_use_struct_convention): Ditto.
9527 * config/alpha/tm-alpha.h: Update copyright years.
9528 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9529 (INNER_THAN): Use core_addr_lessthan.
9530 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9531 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9532 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9533 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9534 (FRAME_CHAIN): Remove unnecessary cast.
9535
b4ceaee6
AC
95362002-01-18 Andrew Cagney <ac131313@redhat.com>
9537
9538 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9539 obsolete.
9540
0a65a603
AC
95412002-01-18 Andrew Cagney <ac131313@redhat.com>
9542
9543 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9544 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9545 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9546 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9547 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9548 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9549 * x86-64-linux-nat.c: Ditto.
9550
636a6dfc
JT
95512002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9552
abf22e64 9553 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9554 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9555 (REGISTER_NAME): Define.
9556
acceddb6
JT
95572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9558
9559 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9560
ec32e4be
JT
95612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9562
9563 * alpha-tdep.c: Update copyright years.
9564 (alpha_next_pc): New function.
9565 (alpha_software_single_step): Ditto.
9566 * config/alpha/tm-alpha.h: Add prototype for
9567 alpha_software_single_step.
9568
e771a871
JT
95692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9570
9571 * alphabsd-nat.c: Update copyright years.
9572 (fill_gregset): Use regcache_collect.
9573 (fill_fpregset): Likewise.
9574 (fetch_inferior_registers): Only fetch integer registers
9575 if requested to do so.
9576 (store_inferior_registers): Only store integer registers
9577 if requested to do so.
9578
7708fa01
AC
95792002-01-17 Andrew Cagney <ac131313@redhat.com>
9580
9581 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9582 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9583 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9584 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9585 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9586 * config/arm/linux.mh (XDEPFILES): Delete.
9587 * config/arm/nbsd.mh (XDEPFILES): Delete.
9588 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9589 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9590 * config/i386/i386m3.mh (XDEPFILES): Delete.
9591 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9592 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9593 * config/i386/fbsd.mh (XDEPFILES): Delete.
9594 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9595 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9596 * config/i386/i386v4.mh (XDEPFILES): Delete.
9597 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9598 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9599 * config/i386/i386aix.mh (XDEPFILES): Delete.
9600 * config/i386/go32.mh (XDEPFILES): Delete.
9601 * config/i386/cygwin.mh (XDEPFILES): Delete.
9602 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9603 * config/i386/i386mach.mh (XDEPFILES): Delete.
9604 * config/i386/i386v32.mh (XDEPFILES): Delete.
9605 * config/i386/linux.mh (XDEPFILES): Delete.
9606 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9607 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9608 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9609 * config/i386/i386sco.mh (XDEPFILES): Delete.
9610 * config/i386/i386v.mh (XDEPFILES): Delete.
9611 * config/i386/nbsd.mh (XDEPFILES): Delete.
9612 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9613 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9614 * config/i386/symmetry.mh (XDEPFILES): Delete.
9615 * config/i386/obsd.mh (XDEPFILES): Delete.
9616 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9617 * config/ia64/linux.mh (XDEPFILES): Delete.
9618 * config/ia64/aix.mh (XDEPFILES): Delete.
9619 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9620 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9621 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9622 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9623 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9624 * config/m68k/linux.mh (XDEPFILES): Delete.
9625 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9626 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9627 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9628 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9629 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9630 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9631 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9632 * config/m88k/delta88.mh (XDEPFILES): Delete.
9633 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9634 * config/m88k/m88k.mh (XDEPFILES): Delete.
9635 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9636 * config/mips/linux.mh (XDEPFILES): Delete.
9637 * config/mips/irix6.mh (XDEPFILES): Delete.
9638 * config/mips/irix5.mh (XDEPFILES): Delete.
9639 * config/mips/irix4.mh (XDEPFILES): Delete.
9640 * config/mips/irix3.mh (XDEPFILES): Delete.
9641 * config/mips/decstation.mh (XDEPFILES): Delete.
9642 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9643 (NATDEPFILES): Move core-aout.o to here.
9644 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9645 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9646 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9647 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9648 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9649 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9650 * config/pa/hpux11.mh (XDEPFILES): Delete.
9651 * config/powerpc/aix.mh (XDEPFILES): Delete.
9652 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9653 * config/powerpc/linux.mh (XDEPFILES): Delete.
9654 * config/romp/rtbsd.mh: Rename XDEPFILES.
9655 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9656 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9657 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9658 * config/s390/s390.mh (XDEPFILES): Delete.
9659 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9660 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9661 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9662 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9663 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9664 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9665 * config/sparc/linux.mh (XDEPFILES): Delete.
9666 * config/vax/vaxult.mh (XDEPFILES): Delete.
9667 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9668 * Makefile.in (DEPFILES): Remove XDEPFILES.
9669
375fc983
AC
96702002-01-17 Andrew Cagney <ac131313@redhat.com>
9671
9672 * utils.c (internal_verror): Fix comments, default is yes not no.
9673 Update queries to match. Default to quit and dump core.
9674
8926118c
AC
96752002-01-17 Andrew Cagney <ac131313@redhat.com>
9676
9677 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9678 copyright.
9679 * defs.h, event-top.c, gdbcmd.h: Ditto.
9680 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9681 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9682 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9683 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9684 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9685 * mi/mi-main.c:Ditto.
9686
9687 * stack.c, symfile.c: Update copyright.
9688
45b7b345
DJ
96892002-01-17 Daniel Jacobowitz <drow@mvista.com>
9690
db728ff7
DJ
9691 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9692 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9693 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9694 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9695
db728ff7
DJ
96962002-01-17 Daniel Jacobowitz <drow@mvista.com>
9697
9698 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9699 * gdbserver/low-lynx.c (myattach): Likewise.
9700 * gdbserver/low-nbsd.c (myattach): Likewise.
9701 * gdbserver/low-sim.c (myattach): Likewise.
9702 * gdbserver/low-sparc.c (myattach): Likewise.
9703 * gdbserver/low-sun3.c (myattach): Likewise.
9704
9705 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9706
db728ff7 9707 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9708 (main): Handle "--attach".
9709
8de3c354
AC
97102002-01-16 Andrew Cagney <ac131313@redhat.com>
9711
9712 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9713 maintainer.
9714
b0129042
DJ
97152002-01-15 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * c-typeprint.c (is_type_conversion_operator): Add additional
9718 check for non-conversion operators.
9719
ba8679fb 97202002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9721
9722 * linux-proc.c: Add "info proc" command, a la procfs.c.
9723 (read_mapping): New function, abstract and re-use code.
9724 (linux_find_memory_regions): Use new func read_mapping.
9725 (linux_info_proc_cmd): New function, implement "info proc".
9726 (_initialize_linux_proc): Add new command "info proc".
9727
e4f9b4d5
MS
97282002-01-15 Michael Snyder <msnyder@redhat.com>
9729
9730 * symfile.c (generic_load): Use bfd_map_over_sections method
9731 instead of manipulating bfd structure members directly.
9732 (add_section_size_callback): New function, bfd sections callback
9733 used by generic_load.
9734 (load_sections_callback): New function, bfd sections callback
9735 used by generic_load.
9736
08cf96df
EZ
97372002-01-15 Elena Zannoni <ezannoni@redhat.com>
9738
abf22e64 9739 [Based on work by Jim Blandy]
08cf96df
EZ
9740 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9741 (builtin_type_vec128): Export.
9742 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9743 types.
9744 (builtin_type_vec128): New builtin type for 128 bit vector
9745 registers.
9746 (build_gdbtypes): Initialize builtin_type_v16qi and
9747 builtin_type_v8hi. Create the vec128 register builtin type
9748 structure.
9749 (build_builtin_type_vec128): New function.
abf22e64 9750 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9751 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9752 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9753 AltiVec register to new builtin type.
9754
d7242108
DJ
97552001-01-15 Daniel Jacobowitz <drow@mvista.com>
9756
9757 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9758 to make_cv_type.
9759
4ee3352d
AC
97602002-01-14 Andrew Cagney <ac131313@redhat.com>
9761
9762 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9763 CLEAN_UP_REGISTER_VALUE.
9764 * regcache.c (supply_register): Update only call.
9765
f015b2e7
AC
97662002-01-14 Andrew Cagney <ac131313@redhat.com>
9767
9768 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9769 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9770 a29k-*-vxworks* targets as obsolete.
9771
356ae49d
MS
97722002-01-14 Michael Snyder <msnyder@redhat.com>
9773
9774 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9775 until we can resolve portability issues.
9776 * gregset.h: Remove references to fpxregs.
9777 * gcore.c (gcore_command): Initialize note_sec to NULL.
9778
ade8f45e
AC
97792002-01-13 Andrew Cagney <ac131313@redhat.com>
9780
9781 * signals.c (target_signal_to_name): Rewrite. Only use
9782 signals[].name when in bounds and non-NULL.
abf22e64 9783
89c49e7a
AC
97842002-01-13 Andrew Cagney <ac131313@redhat.com>
9785
9786 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9787 * signals.c (target_signal_to_name): Verify that SIG is within the
9788 bounds of the signals array.
9789
4daa9f9f
AC
97902002-01-13 Andrew Cagney <ac131313@redhat.com>
9791
9792 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9793
ba4bbdcb
KS
97942002-01-13 Keith Seitz <keiths@redhat.com>
9795
9796 * stack.c (print_frame_info_base): Print the frame's pc
9797 only if when print_frame_info_listing_hook is not defined.
9798
575bbeb6
KS
97992002-01-13 Keith Seitz <keiths@redhat.com>
9800
9801 * varobj.c (varobj_set_value): Make sure that there were no
9802 errors evaluating the object before attempting to set its
9803 value.
9804 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9805 so this offset adjustment is no longer necessary.
9806 (create_child): Don't set the error flag if the child is
9807 a CPLUS_FAKE_CHILD.
9808 (value_of_child): If value_fetch_lazy fails, return NULL
9809 so that callers will be notified that an error occurred.
9810 (c_value_of_variable): Delay check of variable's validity
9811 until later. We actually want all structs and unions to have
9812 the value "{...}".
9813 Do not return "???" for variables which could not be evaluated.
9814 This error condition must be returned to the caller so that it
9815 can get the error condition from gdb.
9816 (cplus_name_of_child): Adjust index for vptr before figuring
9817 out the name of the child.
9818 (cplus_value_of_child): If a child's (real) parent is not valid,
9819 don't even bother trying to give a value for it. Just return
9820 an error. Change all instances in this function.
9821 (cplus_type_of_child): If our parent is one of the "fake"
9822 parents, we need to get at the type of the real parent, and
9823 derive the child's true type using this information.
9824
b76898ab
AC
98252002-01-13 Andrew Cagney <ac131313@redhat.com>
9826
9827 From 2002-01-09 John Marshall <johnm@falch.net>:
9828 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9829 sources.redhat.com, and tweak some related URLs which had
9830 suffered from linkrot.
9831
b6649e88
AC
98322002-01-13 Andrew Cagney <ac131313@redhat.com>
9833
9834 From Jeff law:
9835 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9836 structures passed in registers.
9837
82cc5033
EZ
98382002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9839
9840 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9841 white space which prevented compilation. Reported by DSK
9842 <dsk@student.unsw.edu.au>.
9843
ba5f2f8a
MS
98442002-01-11 Michael Snyder <msnyder@redhat.com>
9845
fbd35540
MS
9846 * symfile.c (build_section_addr_info_from_section_tab):
9847 Use bfd access method instead of manipulating bfd directly.
9848 (syms_from_objfile): Ditto.
9849 (simple_overlay_update_1): Ditto.
9850 (simple_overlay_update): Ditto.
9851 (generic_load): Ditto.
9852 (overlay_unmapped_address): FIXME comment, bfd access methods.
9853 (sections_overlap): FIXME comment, bfd access methods.
9854 (pc_in_mapped_range): FIXME comment, bfd access methods.
9855 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9856 (section_is_mapped): FIXME comment, bfd access methods.
9857 (section_is_overlay): FIXME comment, bfd access methods.
9858
ba5f2f8a
MS
9859 * symfile.c (generic_load): Whitespace and long line cleanups.
9860 Remove duplicate variable, change several local variables to
9861 more appropriate data types.
9862 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9863
17df2af6
AC
98642002-01-12 Andrew Cagney <ac131313@redhat.com>
9865
9866 From Peter Schauer:
9867 * language.c (longest_local_hex_string_custom): Use phex_nz to
9868 convert NUM to a hex string.
9869
ec920329
EZ
98702002-01-12 Elena Zannoni <ezannoni@redhat.com>
9871
9872 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9873 the function.
538a76d6 9874 Update Copyright year.
ec920329 9875
3abd2e01
AC
98762002-01-12 Andrew Cagney <ac131313@redhat.com>
9877
9878 * language.c (longest_raw_hex_string): Delete unused function.
9879
b21b22e0
PS
98802002-01-11 Petr Sorfa <petrs@caldera.com>
9881
9882 * MAINTAINERS (write-after-approval): Add myself.
9883 * dwarf2read.c (read_tag_string_type): Handling of
9884 DW_AT_byte_size.
9885 (read_tag_string_type): FORTRAN fix to prevent propagation of
9886 first string size.
9887 (set_cu_language): Handling of DW_LANG_Fortran95
9888
747fe712
RE
98892002-01-11 Richard Earnshaw <rearnsha@arm.com>
9890
9891 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9892 GETPID(inferior_ptid).
9893 (store_inferior_registers): Likewise.
9894
f1bea926
JM
98952002-01-10 Jason Merrill <jason@redhat.com>
9896
9897 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9898 Fix DW_OP_minus.
9899
ae940673
AC
99002002-01-10 Andrew Cagney <ac131313@redhat.com>
9901
9902 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9903 and bfd/elf32-sh-nbsd.c.
9904
00546b04
MS
99052002-01-10 Michael Snyder <msnyder@redhat.com>
9906
352ed7b4
MS
9907 * NEWS: Mention --pid and corefile/proc-id behavior change.
9908
c18be923
MS
9909 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9910 * gcore.c: Include cli/cli-decode.h instead of command.h.
9911
00546b04
MS
9912 * main.c (captured_main): Add new command line option "--pid".
9913 If the second command line argument (following the symbol-file)
9914 begins with a digit, try to attach to it before trying to open
9915 it as a corefile.
9916 (print_gdb_help): Document the "--pid" argument.
9917
db60ec62
EZ
99182002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9919
9920 * completer.c (command_completer): New function.
9921
9922 * completer.h <command_completer>: Add prototype.
9923
9924 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9925 completer for the "help" command.
9926
39c22d1a
JM
99272002-01-09 Jason Merrill <jason@redhat.com>
9928
9929 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9930
c564377f
MS
99312002-01-09 Michael Snyder <msnyder@redhat.com>
9932
975aec09
MS
9933 * i386-linux-nat.c (fill_fpxregset): Make global.
9934 (store_fpxregset): Ditto.
9935
db4a10fa
MS
9936 * gregset.h (gdb_fpxregset_t): Define.
9937 (supply_fpxregset): Prototype.
9938 (fill_fpxregset): Prototype.
9939
c564377f
MS
9940 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9941
c3d45d70
RE
99422002-01-09 Richard Earnshaw <rearnsha@arm.com>
9943
9944 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9945 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9946 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9947
fcc87af1
AC
99482002-01-09 Andrew Cagney <ac131313@redhat.com>
9949
9950 * MAINTAINERS: Update target maintainer rules so that any
9951 Maintainer can approve a tested patch for a maintenance-only
9952 target.
9953
dd96c05b
RE
99542002-01-09 Richard Earnshaw <rearnsha@arm.com>
9955
d4297db9 9956 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 9957
d4297db9 9958 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
9959 IN_SIGTRAMP.
9960
145fdc6e
MS
99612002-01-08 Michael Snyder <msnyder@redhat.com>
9962
9963 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9964 real name of the executable, rather than the /proc name.
9965
be4d1333
MS
99662002-01-03 Michael Snyder <msnyder@redhat.com>
9967
9968 Implement a "generate-core-file" command in gdb, save target state.
9969 * gcore.c: New file. Implement new command 'generate-core-file'.
9970 Save a corefile image of the current state of the inferior.
9971 * linux-proc.c: Add linux-specific code for saving corefiles.
9972 * target.h (struct target_ops): Add new target vectors for saving
9973 corefiles; to_find_memory_regions and to_make_corefile_notes.
9974 (target_find_memory_regions): New macro.
9975 (target_make_corefile_notes): New macro.
9976 * target.c (update_current_target): Inherit new target methods.
9977 (dummy_find_memory_regions): New place-holder method.
9978 (dummy_make_corefile_notes): New place-holder method.
9979 (init_dummy_target): Initialize new dummy target vectors.
9980 * exec.c (exec_set_find_memory_regions): New function.
9981 Allow the exec_ops vector for memory regions to be taken over.
9982 (exec_make_note_section): New function, target vector method.
9983 * defs.h (exec_set_find_memory_regions): Export prototype.
9984 * procfs.c (proc_find_memory_regions): New function, corefile method.
9985 (procfs_make_note_section): New function, corefile method.
9986 (init_procfs_ops): Set new target vector pointers.
9987 (find_memory_regions_callback): New function.
9988 (procfs_do_thread_registers): New function.
9989 (procfs_corefile_thread_callback): New function.
9990 * sol-thread.c (sol_find_memory_regions): New function.
9991 (sol_make_note_section): New function.
9992 (init_sol_thread_ops): Initialize new target vectors.
9993 * inftarg.c (inftarg_set_find_memory_regions): New function.
9994 Allow to_find_memory_regions vector to be taken over.
9995 (inftarg_set_make_corefile_notes): New function.
9996 Allow to_make_corefile_notes vector to be taken over.
9997 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9998 interface layer if not target_has_execution (may be a corefile).
9999 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10000 * config/sparc/sun4sol2.mh: Ditto.
10001 * config/alpha/alpha-linux.mh: Ditto.
10002 * config/arm/linux.mh: Ditto.
10003 * config/i386/x86-64linux.mh: Ditto.
10004 * config/ia64/linux.mh: Ditto.
10005 * config/m68k/linux.mh: Ditto.
10006 * config/mips/linux.mh: Ditto.
10007 * config/powerpc/linux.mh: Ditto.
10008 * config/sparc/linux.mh: Ditto.
10009
c6b92abd
MS
100102002-01-07 Michael Snyder <msnyder@redhat.com>
10011
10012 * arm-linux-nat.c: Remove references to regcache.c internal data
10013 (registers[] and register_valid[]).
10014
4b09dc8c
MS
100152002-01-07 Michael Snyder <msnyder@redhat.com>
10016
abf22e64
AJ
10017 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10018 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10019 symbol file and shlibs.
10020 * Makefile.in: Add rule for linux-proc.o.
10021 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10022 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10023 * config/arm/linux.mh: Ditto.
10024 * config/i386/linux.mh: Ditto.
10025 * config/i386/x86-64linux.mh: Ditto.
10026 * config/ia64/linux.mh: Ditto.
10027 * config/m68k/linux.mh: Ditto.
10028 * config/mips/linux.mh: Ditto.
10029 * config/powerpc/linux.mh: Ditto.
10030 * config/sparc/linux.mh: Ditto.
10031
c25b74ac
PM
100322002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10033
10034 * win32-nat.c: Add i386-tdep.h dependency.
10035
94cd915f
MS
100362002-01-07 Michael Snyder <msnyder@redhat.com>
10037
c7cccb76
MS
10038 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10039 instead of bfd_get_arch_size. Don't bail out just because
10040 there's no exec_bfd.
abf22e64 10041
34c0bd93
MS
10042 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10043 * p-valprint.c (pascal_object_print_value): Ditto.
10044 * somread.c (som_symtab_read): Ditto.
10045 * symfile.c (simple_free_overlay_region_table): Ditto.
10046 * valops.c (value_assign): Ditto.
10047
21c1c920
MS
10048 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10049 use tilde_expand and strerror for opening save-tracepoints file.
10050
5bbd998e
MS
10051 * thread-db.c (thread_db_new_objfile): Indendation fix.
10052
94cd915f
MS
10053 * infptrace.c (GDB_MAX_ALLOCA): New define.
10054 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10055 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10056 can be overridden with whatever value is appropriate to the host).
10057 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10058 alloca to allocate potentially large buffer.
10059 * rs6000-nat.c (child_xfer_memory): Ditto.
10060 * symm-nat.c (child_xfer_memory): Ditto.
10061 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10062
494e8a93
JSC
100632002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10064
10065 From Nick Clifton <nickc@redhat.com>
10066 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10067
d0e1d48e
MS
100682002-01-07 Michael Snyder <msnyder@redhat.com>
10069
abf22e64 10070 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10071 Don't use exec_bfd if it's NULL.
10072
290b2c7a
MK
100732002-01-06 Mark Kettenis <kettenis@gnu.org>
10074
abf22e64 10075 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10076
aef21287
AC
100772002-01-06 Andrew Cagney <ac131313@redhat.com>
10078
10079 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10080 * gnu-nat.c: Ditto.
10081
30efa627
AC
100822002-01-06 Andrew Cagney <ac131313@redhat.com>
10083
10084 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10085 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10086 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10087 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10088 z8k-coff have not been multi-arched. Update z8k-coff build
10089 status.
10090
9b4ff276
AC
100912002-01-06 Andrew Cagney <ac131313@redhat.com>
10092
10093 * MAINTAINERS: Mark a29k target as obsolete.
10094 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10095 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10096 comments.
10097 * NEWS: Note that a29k targets are obsolete.
10098 * a29k-tdep.c: Mark as obsolete.
10099 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10100 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10101 a29k-*-vxworks* targets as obsolete.
10102 * remote-adapt.c: Obsolete.
10103 * remote-eb.c: Obsolete.
10104 * remote-mm.c: Obsolete.
10105 * remote-udi.c: Obsolete.
10106 * config/a29k/a29k-udi.mt: Obsolete.
10107 * config/a29k/a29k.mt: Obsolete.
10108 * config/a29k/tm-a29k.h: Obsolete.
10109 * config/a29k/tm-vx29k.h: Obsolete.
10110 * config/a29k/vx29k.mt: Obsolete.
10111
a9011d31
AC
101122002-01-05 Andrew Cagney <ac131313@redhat.com>
10113
10114 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10115 with BFD_ENDIAN_BIG.
10116
9299404e
AC
101172002-01-05 Andrew Cagney <ac131313@redhat.com>
10118
10119 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10120 * configure, config.in: Re-generate.
10121 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10122 * defs.h: Do not include <endian.h>.
10123
7e89e357
JT
101242002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10125
10126 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10127 * config.in: Regenerate.
10128 * configure.in: Update copyright years.
10129 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10130 * configure: Regenerate.
10131 * i386bsd-nat.c: Update copyright years.
10132 (fill_gregset): Use regcache_collect.
10133 (fetch_inferior_registers): Only fetch integer registers
10134 if requested to do so. Add support for XMM registers
10135 using PT_GETXMMREGS.
10136 (store_inferior_registers): Only store integer registers
10137 if requested to do so. Add support for XMM registers
10138 using PT_SETXMMREGS.
10139 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10140 (store_inferior_registers): Remove.
10141 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10142 (fetch_elfcore_registers): New function.
10143 (i386nbsd_elfcore_fns): New.
10144 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10145 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10146 i386bsd-nat.o.
10147 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10148 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10149 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10150 * config/i386/tm-nbsd.h: Update copyright years.
10151 (HAVE_SSE_REGS): Define.
10152 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10153 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10154 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10155 (SIGCONTEXT_PC_OFFSET): Remove.
10156 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10157
a752853e
AC
101582002-01-05 Andrew Cagney <ac131313@redhat.com>
10159
10160 * configure.tgt: Remove powerpc-*-macos* target.
10161 * config/m68k/xm-mpw.h: Delete file.
10162 * config/xm-mpw.h: Delete file.
10163 * ser-mac.c: Delete file.
10164 * mpw-make.sed: Delete file.
10165 * mpw-config.in: Delete file.
10166 * mac-xdep.c: Delete file.
10167 * mac-gdb.r: Delete file.
10168 * mac-defs.h: Delete file.
10169 * mac-nat.c: Delete file.
10170 * config/powerpc/macos.mh: Delete file.
10171 * config/powerpc/macos.mt: Delete file.
10172 * config/powerpc/nm-macos.h: Delete file.
10173 * config/powerpc/tm-macos.h: Delete file.
10174 * source.c (openp, open_source_file): Remove obsolete code.
10175 * top.c (gdb_readline): Ditto.
10176 * utils.c (query): Ditto.
10177 * event-top.c (display_gdb_prompt): Ditto.
10178 * Makefile.in (ser-mac.o): Delete obsolete target.
10179 * NEWS: Update.
10180
d7449b42
AC
101812002-01-04 Andrew Cagney <ac131313@redhat.com>
10182
10183 * defs.h (BIG_ENDIAN): Delete macro definition.
10184 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10185 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10186 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10187 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10188 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10189 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10190 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10191 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10192 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10193 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10194 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10195 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10196 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10197 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10198 * gdbarch.c: Re-generate.
10199
356374e8
DJ
102002002-01-04 Daniel Jacobowitz <drow@mvista.com>
10201
10202 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10203 for core files.
10204
a2b8f8f8
JT
102052002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10206
10207 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10208
12466af9
AC
102092002-01-04 Andrew Cagney <ac131313@redhat.com>
10210
10211 * value.h (value_ptr): Delete typedef.
10212
3549ab40
JT
102132002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10214
10215 * i386nbsd-nat.c: Update copyright years.
10216 Include i386-tdep.h.
10217
fedbd091
EZ
102182002-01-04 Elena Zannoni <ezannoni@redhat.com>
10219
10220 * stabsread.c: Update copyright years.
10221
10222 From Debashis Mahata <debashis.mahata@wipro.com>:
10223 (read_struct_fields): Deal with Sun C compiler erroneous stab
10224 output for structs and unions.
fec8b34f 10225 Fix PR gdb/269.
fedbd091 10226
eb43544b
DJ
102272002-01-04 Daniel Jacobowitz <drow@mvista.com>
10228
10229 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10230 prototype.
10231
1514d34e
DJ
102322002-01-04 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * cp-abi.c: Fix whitespace.
10235 (baseclass_offset): New wrapper function.
10236 * cp-abi.h (baseclass_offset): Add prototype.
10237 (struct cp_abi_ops): Add baseclass_offset pointer.
10238
10239 * valops.c (vb_match): Move to...
10240 * gnu-v2-abi.c (vb_match): here.
10241 * valops.c (baseclass_offset): Move to...
10242 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10243
10244 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10245
10246 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10247 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10248 * hpacc-abi.c (init_hpacc_ops): Likewise.
10249
7f8c9282
DJ
102502002-01-04 Daniel Jacobowitz <drow@mvista.com>
10251
10252 * valops.c (find_overload_match): Accept obj as a
10253 reference parameter. Update it before returning.
10254 * value.h (find_overload_match): Update prototype.
10255 * eval.c (evaluate_subexp_standard): Pass object to
10256 find_overload_match by reference.
10257
f23631e4
AC
102582002-01-03 Andrew Cagney <ac131313@redhat.com>
10259
10260 * valarith.c: Replace value_ptr with struct value pointer. Remove
10261 register attribute from value declarations.
10262 * valops.c: Ditto.
10263 * value.h: Ditto.
10264 * scm-lang.c (scm_lookup_name): Ditto.
10265
79e10fab 102662002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10267
79e10fab
AC
10268 Abstract the functionality of iterating over mapped memory
10269 regions into a general purpose iterator function.
abf22e64 10270 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10271 iterator for memory sections.
10272 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10273 (solib_mappings_callback): New function, callback for above.
10274 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10275 (info_mappings_callback): New function, callback for above.
10276
10277 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10278
c5ad026a
MK
102792002-01-01 Mark Kettenis <kettenis@gnu.org>
10280
d2a7c97a
MK
10281 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10282 * i386-tdep.c: Include "elf-bfd.h".
10283 (process_note_abi_tag_sections): New function.
10284 (i386_gdbarch_init): Add code to recognize various OS/ABI
10285 combinations.
10286
c5ad026a
MK
10287 * maint.c (_initialize_maint_cmds): Add missing \ in
10288 string-literal.
10289
a1a5b71e 10290For older changes see ChangeLog-2001
c906108c
SS
10291\f
10292Local Variables:
10293mode: change-log
10294left-margin: 8
10295fill-column: 74
10296version-control: never
10297End:
This page took 0.943289 seconds and 4 git commands to generate.