* ada-lang.c: run through gdb_indent.sh
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d2e4a39e
AS
12002-08-18 Aidan Skinner <aidan@velvet.net>
2
3 * ada-lang.c: run through gdb_indent.sh
4 * ada-lang.h: run through gdb_indent.sh
5 * ada-tasks.c: run through gdb_indent.sh
6 * ada-typeprint.c: run through gdb_indent.sh
7 * ada-valprint.c: run through gdb_indent.sh
8
01fc4e33
AC
92002-08-18 Andrew Cagney <ac131313@redhat.com>
10
11 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
12 ABI.
13
d8ee244c
MK
142002-08-18 Mark Kettenis <kettenis@gnu.org>
15
c38d8261
MK
16 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
17
222db64c
MK
18 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
19 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
20
c2848c82
MK
21 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
22 write_register_gen instead of write_register_bytes.
23
d8ee244c
MK
24 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
25 i[3456]-*-osf1mk* configurations have been made obsolete.
26 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
27 i[3456]86-*-osf1mk* hosts obsolete.
28 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
29 targets obsolete.
30 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
31 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
32 config/i386/i386m3.mt, config/i386/nm-m3.h,
33 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
34 config/i386/i386mk.mh, config/i386/i386mk.mt,
35 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
36 obsolete.
37 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
38 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
39 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
40
61d8d407
AC
412002-08-18 Andrew Cagney <ac131313@redhat.com>
42
43 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
44 (hppa_value_returned_from_stack): Declare.
45 (hppa_extract_return_value): Declare.
46 * config/pa/hppa.mt: New file.
47 * configure.tgt: Recognize hppa*-*-*.
48 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
49
0c52bd59
MK
502002-08-18 Mark Kettenis <kettenis@gnu.org>
51
52 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
53 comment.
54
b5686e99
MK
552002-08-17 Mark Kettenis <kettenis@gnu.org>
56
57 * top.c (gdb_rl_operate_and_get_next): Make sure
58 operate-and-get-next functions correctly even when the history
59 list is completely filled.
60
c1bab85b
AC
612002-08-18 Andrew Cagney <ac131313@redhat.com>
62
63 * MAINTAINERS (Target Instruction Set Architectures): Rename
64 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
65 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
66 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
67 already listed under Host/Native.
68
69 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
70 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
71 mips*-*-*.
72
32089c7c
AC
732002-08-17 Andrew Cagney <ac131313@redhat.com>
74
75 * config/ia64/ia64.mt: New file.
76 * config/alpha/alpha.mt: New file.
77 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
78 ia64-linux-gnu. Mention that ia64-elf is broken.
79 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
80
b4671f85
MK
812002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
82
83 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
84 generic_func_frame_valid instead of func_frame_valid.
85
c8edd8b4
JB
862002-08-16 Joel Brobecker <brobecker@gnat.com>
87
88 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
89 procfs appears to be broken when debugging on multi-processor
90 machines. So enable software single stepping in order to avoid
91 using the procfs interface to do next/step operations, using
92 internal breakpoints instead.
93
94 * infrun.c (handle_inferior_event): Readjust the stop_pc by
95 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
96 make this pc address equal to the value it would have if the
97 system stepping capability was used. Also set a new flag used
98 to ensure that we don't readjust the PC one more time later.
99
100 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
101 address by DECR_PC_AFTER_BREAK when software single step is
102 in use for this architecture, as this has already been taken
103 care of in handle_inferior_event().
104
238617f6
JB
1052002-08-16 Joel Brobecker <brobecker@gnat.com>
106
107 * infrun.c (handle_inferior_event): Minor reformatting, to make
108 a rather long condition expression easier to read.
109
541a7aac
AC
1102002-08-16 Andrew Cagney <ac131313@redhat.com>
111
112 * Makefile.in (gdbtk.o): Move to end of file.
113 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
114 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
115 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
116 (gdbtk-wrapper.o, gdbres.o): Ditto.
117
f92d4a7b
AC
1182002-08-16 Andrew Cagney <ac131313@redhat.com>
119
120 * Makefile.in (copying.o): Separate out compile rule.
121 (hpux-thread.o, procfs.o, signals.o): Ditto.
122 (v850ice.o, z8k-tdep.o): Ditto.
123 (tui-file.o): Move to TUI section.
124 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
125 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
126
1cce71eb
JB
1272002-08-16 Joel Brobecker <brobecker@gnat.com>
128
129 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
130 skip_trampoline_code, for better namespace-proofing.
131
132 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
133
0851f23d
JB
1342002-08-16 Joel Brobecker <brobecker@gnat.com>
135
136 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
137
f8d40ec8
JB
1382002-08-16 Joel Brobecker <brobecker@gnat.com>
139
140 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
141 signal, check whether we hit a breakpoint before checking for a
142 single step breakpoint. Otherwise, GDB fails to notice that a
143 breakpoint has been hit when stepping onto a breakpoint.
144
63d022e0
KS
1452002-08-16 Keith Seitz <keiths@redhat.com>
146
147 * gdb-events.sh (clear_gdb_event_hooks): New function.
148 * gdb-events.c: Regenerate.
149 * gdb-events.h: Regenerate.
150
6e31adb3
AC
1512002-08-16 Andrew Cagney <ac131313@redhat.com>
152
153 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
154 not_a_sw_breakpoint.
155 * breakpoint.h (bpstat_stop_status): Add parameter names.
156
c8189ed1
GS
1572002-08-16 Grace Sainsbury <graces@redhat.com>
158
159 * remote.c (remote_insert_hw_breakpoint)
160 (remote_remove_hw_breakpoint): Fix calculation of length field
161 for Z-packet.
162
d05285fa
MS
1632002-08-15 Michael Snyder <msnyder@redhat.com>
164
466d7106
MS
165 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
166 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
167 (supply_fpregset): Ditto.
168
d05285fa
MS
169 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
170 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
171 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 172 (TARGET_READ_SP): Delete.
bf1f5b4c 173 (DO_REGISTERS_INFO): Delete.
102182a9
MS
174 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
175 Delete.
176 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
177 from macros to functions.
bf1f5b4c 178
d05285fa
MS
179 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
180 (mips_register_convertible, mips_register_convert_to_virtual,
181 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
182 (mips_read_sp): New function.
183 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
184 (mips_do_registers_info): Make static.
185 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
186 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
187 (mips_register_convert_from_type, mips_register_convert_to_type):
188 New functions.
189 (mips_gdbarch_init): Set up function_start_offset,
190 register_virtual_size, pc_in_sigtramp.
d05285fa 191
e76f1f2e
AC
1922002-08-15 Andrew Cagney <ac131313@redhat.com>
193
194 * infcmd.c (vector_info): New function.
195 (_initialize_infcmd): Add command "info vector".
196 (print_vector_info): New function.
197
198 * gdbarch.sh (PRINT_VECTOR_INFO): New method
199 * gdbarch.h, gdbarch.c: Regenerate.
200
4782dc19
AC
2012002-08-15 Andrew Cagney <ac131313@redhat.com>
202
203 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
204 ``print_all''. Only print vector registers when ``print_all''.
205
23e3a7ac
AC
2062002-08-15 Andrew Cagney <ac131313@redhat.com>
207
8e186fd6
AC
208 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
209 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
210
23e3a7ac
AC
211 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
212 Add `args' parameter.
213 * gdbarch.h, gdbarch.c: Regenerate.
214
215 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
216
217 * infcmd.c (float_info): Call print_float_info.
218 (print_float_info): New function. By default, print the
219 floating-point registers.
220
221 * arch-utils.h (default_print_float_info): Delete declaration.
222 * arch-utils.c (default_print_float_info): Delete function.
223
e0ca2bb9
MK
2242002-08-16 Mark Kettenis <kettenis@gnu.org>
225
3f733acc
MK
226 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
227 out define.
228
7d8d2918
MK
229 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
230 FRAME.
231
1c7cc583
MK
232 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
233 * configure.host: Make i[3456]86-*-aix host obsolete.
234 * configure.tgt: Make i[3456]86-*-aix target obsolete.
235 * config/i386/i386aix.mh, config/i386/i386aix.mt,
236 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
237 config/i386/xm-i386aix.h: Make files obsolete.
238 * i386aix-nat.c: Make file obsolete.
239 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
240 (i386aix-nat.o): Make target obsolete.
241
e0ca2bb9
MK
242 * config/i386/nm-gnu.h: Removed.
243 * config/i386/nm-i386gnu.h: New file.
244 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
245 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
246 Moved here from ...
247 * config/i386/tm-i386gnu.h: ... here. Removed.
248 * config/i386/xm-i386gnu.h: Removed.
249 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
250 (NAT_FILE): Set to nm-i386gnu.h.
251 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
252 * i386-tdep.c: New file.
253 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
254 (i386gnu-tdep.o): Specify dependencies.
255
16057ec7 2562002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 257
6b99ee2e
MK
258 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
259 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
260 Adjust a few comments to reflect reality a bit closer.
261 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
262 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
263 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
264 target_insert_watchpoint, target_remove_watchpoint):
265 Move defines to ...
266 * config/i386/nm-i386sco5.h: ... here.
267 (kernel_u_size): Add prototype. Improve a few comments and add
268 protection against multiple inclusion.
269
d9a6f65c
MK
270 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
271 out define.
272
047eff6a
MK
273 * uw-thread.c (SP_ARG0): Define if not already defined.
274 * config/i386/tm-i386.h (SO_ARG0): Remove define.
275
dcdb1290
MK
276 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
277
5d2d0b2a
MK
278 * config/i386/tm-i386.h: Don't include "regcache.h".
279
61113f8b
MK
280 * i387-tdep.h (i387_print_float_info): New prototype.
281 * i387-tdep.c (print_i387_value, print_i387_ext,
282 print_i387_status_word, print_i387_control_word): Add `struct
283 ui_file *' argument and use it for output.
284 (i387_print_float_info): Renamed from i387_float_info. Add
285 `struct gdbarch *' and `struct ui_file *' arguments and use the
286 latter for output.
287 * i386-tdep.c: Include "i387-tdep.h".
288 (i386_gdbarch_init): Set print_float_info.
289 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
290 (FLOAT_INFO): Remove define.
291
46e0f506
MS
2922002-08-13 Michael Snyder <msnyder@redhat.com>
293
294 * mips-tdep.c (mips_push_arguments): Rename to
295 mips_eabi_push_arguments, and tune for EABI.
296 (MIPS_REGS_HAVE_HOME_P): Delete.
297 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
298 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
299 Delete references to mips_regs_have_home_p.
300
409268de
KS
3012002-08-14 Keith Seitz <keiths@redhat.com>
302
303 * Makefile.in (install-gdbtk): Create insight plugin directory.
304 Install plugins.tcl file.
305
ffc6a242
KS
3062002-08-14 Keith Seitz <keiths@redhat.com>
307
308 * configure.in: Move SUBDIRS to near top of the file so that
309 --enable options may add things to it.
310 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
311 * configure: Regenerate.
312
ebafbe83
MS
3132002-08-13 Michael Snyder <msnyder@redhat.com>
314
315 * mips-tdep.c (mips_o32o64_push_arguments): New function,
316 cloned from mips_push_arguments, tuned for o32/o64 ABI.
317 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
318
32f6f25d
AC
3192002-08-13 Andrew Cagney <ac131313@redhat.com>
320
321 * vax-tdep.c (vax_get_saved_register): Delete function.
322 (vax_gdbarch_init): Update.
323 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
324 (ns32k_gdbarch_init): Update.
325 * alpha-tdep.c (alpha_get_saved_register): Delete function.
326 (alpha_gdbarch_init): Update.
327
53826de9
AC
3282002-08-13 Andrew Cagney <cagney@redhat.com>
329
330 * regcache.c (init_regcache_descr): Overallocate the
331 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
332 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
333 nr_raw_registers.
334 (set_register_cached): Add range checking assertions. Use
335 current_regcache.
336
16057ec7 3372002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
338
339 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
340 numbers for MMX registers.
341
7b4c2dce
AC
3422002-08-13 Andrew Cagney <cagney@redhat.com>
343
344 * i386-tdep.c (i386_gdbarch_init): Use
345 generic_unwind_get_saved_register.
346
1e03ad20
KB
3472002-08-13 Kevin Buettner <kevinb@redhat.com>
348
349 * procfs.c (procfs_can_use_hw_breakpoint): New function.
350 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
351 target vector.
352 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
353 Delete. Add comment regarding this now-deleted target method.
354
548bcbec
SC
3552002-08-13 Stephane Carrez <stcarrez@nerim.fr>
356
357 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
358 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
359 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
360 real PC and the page number (if it's within the memory bank window).
361 (m68hc11_pseudo_register_write): Likewise when saving.
362 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
363 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
364 (m68hc11_register_raw_size): And use 32-bit for it.
365 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
366 16K memory bank is used by the prog; also use the virtual pc.
367
7df11f59
SC
3682002-08-13 Stephane Carrez <stcarrez@nerim.fr>
369
370 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
371 (m68hc11_gdbarch_init): Install it in gdbarch.
372 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
373 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
374 (MSYMBOL_SIZE): New for documentation.
375 (insn_return_kind): Enum to specify how a function returns.
376 (frame_extra_info): Cleanup and record the return mode.
377 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
378 register in address computation.
379 (m68hc11_get_return_insn): New to obtain the return instruction used
380 by the function.
381 (m68hc11_frame_init_saved_regs): Take into account the return
382 instruction used by the function for far and interrupt functions.
383 (m68hc11_init_extra_frame_info): Take into account page register.
384 (m68hc11_frame_args_address): Adjust according to the return mode.
385 (show_regs): Print page register only when it's used.
386
5706502a
SC
3872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
388
389 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
390 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
391 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
392 registers.
393 (m68hc11_register_raw_size): Likewise.
394
28fc6740
AC
3952002-08-13 Andrew Cagney <cagney@redhat.com>
396
397 * i386-tdep.c (i386_register_name): Handle mmx registers.
398 (mmx_regnum_p): New function.
399 (i386_mmx_names): New array.
400 (mmx_num_regs): New variable.
401 (i386_pseudo_register_read): New function.
402 (i386_pseudo_register_write): New function.
403 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
404
405 * regcache.c (regcache_raw_read_unsigned): New function.
406 (regcache_raw_read_signed): New function.
407 * regcache.h (regcache_raw_read_unsigned): Declare.
408 (regcache_raw_read_signed): Declare.
409
a378f419
AC
4102002-08-13 Andrew Cagney <cagney@redhat.com>
411
412 * regcache.c (regcache_raw_read_as_address): Delete function.
413 (regcache_cooked_read_signed): New function.
414 (regcache_cooked_read_unsigned): New function.
415 * regcache.h (regcache_cooked_read_signed): Declare.
416 (regcache_cooked_read_unsigned): Declare.
417 (regcache_raw_read_as_address): Delete declaration.
418
419 * blockframe.c (generic_read_register_dummy): Use
420 regcache_cooked_read_unsigned.
421 * i386-tdep.c (i386_extract_struct_value_address): Use
422 regcache_cooked_read_unsigned.
423
81967506
SC
4242002-08-13 Stephane Carrez <stcarrez@nerim.fr>
425
426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
427 double sizes according to ELF ABI flags.
428 (gdbarch_tdep): Record elf_flags.
429
ffe1f3ee
SC
4302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
431
432 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
433 (m6812_prolog): They can appear in 68HC12 function prologue.
434 (m68hc11_frame_chain): Cleanup.
435
98216c5d
AC
4362002-08-12 Andrew Cagney <cagney@redhat.com>
437
438 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
439 declarations.
440 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
441 (i386_linux_register_raw_size): Delete function.
442 (i386_linux_init_abi): Update.
443 * i386-tdep.c (i386_register_raw_size): Delete function.
444 (i386_register_byte): Delete function.
445 (i386_gdbarch_init): Update.
446 (i386_register_size): Delete array.
447 (i386_register_offset): Delete array.
448
449 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
450 (REGISTER_RAW_SIZE): Delete macro.
451 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
452 (REGISTER_BYTE): Delete macro.
453
3b19021e
AS
4542002-08-11 Aidan Skinner <aidan@velvet.net>
455
456 * ada-lang.c (ada_lookup_partial_symbol)
457 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
458 prototype names so that grep ^func works properly.
459
460 * ada-lang.c (ada_array_element_type)
461 (ada_lookup_partial_symbol): Fix typos in parameter list.
462
463 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
464 Fix prototype names so that grep ^func works properly.
465
b063e7a2
AC
4662002-08-10 Andrew Cagney <cagney@redhat.com>
467 Elena Zannoni <ezannoni@redhat.com>
468 Martin M. Hunt <hunt@redhat.com>
469
470 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
471 (build_builtin_type_vec128i): Set the vector bit.
472 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
473 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
474 (build_builtin_type_vec64): New function.
475 (build_builtin_type_vec64i): New function.
476 (build_gdbtypes): Initialize builtin_type_vec64 and
477 builtin_type_vec64i.
478
a7e3c2ad
AC
4792002-08-09 Andrew Cagney <cagney@redhat.com>
480
481 * regcache.c (regcache_dump): Compare the register offset
482 with REGISTER_BYTE.
483 * arch-utils.c (generic_register_byte): New function.
484 * arch-utils.h (generic_register_byte): Declare.
485 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
486 * gdbarch.h, gdbarch.c: Regenerate.
487
af030b9a
AC
4882002-08-09 Andrew Cagney <cagney@redhat.com>
489
490 * regcache.c: Include "gdbcmd.h"
491 (_initialize_regcache): Add commands "maintenance print
492 registers", "maintenance print raw-registers" and "maintenance
493 print cooked-registers".
494 (enum regcache_dump_what): Define.
495 (dump_endian_bytes): New function.
496 (regcache_dump): New function.
497 (regcache_print): New function.
498 (maintenance_print_registers): New function.
499 (maintenance_print_raw_registers): New function.
500 (maintenance_print_cooked_registers): New function.
501 * Makefile.in (regcache.o): Update dependencies.
502
cb3d25d1
MS
5032002-08-09 Michael Snyder <msnyder@redhat.com>
504
505 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
506 (mips_push_arguments): Correct some comments. Use paddr_nz
507 for printing addresses in debug output. Replace static
508 allocation using MAX_REGISTER_RAW_SIZE with alloca.
509 (mips_n32n64_push_arguments): New function, cloned from
510 mips_push_arguments and tuned for the n32/n64 ABI.
511 (mips_push_register): Buffer needs dynamic allocation.
512 (mips_print_register): Ditto.
513 (do_gp_register_row): Ditto.
514 (mips_store_return_value): Ditto.
515 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
516
2163ab9d
DH
5172002-08-09 Don Howard <dhoward@redhat.com>
518
519 * memattr.c (mem_info_command): Print special case of upper bound
520 as max CORE_ADDR + 1.
521
b78bcb18
MS
5222002-08-08 Michael Snyder <msnyder@redhat.com>
523
524 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
525 returns structs by ref if they're too big to fit in two registers.
526
ffabd70d
KB
5272002-08-09 Kevin Buettner <kevinb@redhat.com>
528
529 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
530 saved regs value.
531 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
532 mips_find_saved_regs().
533 (mips_pop_frame): Likewise.
534
fbcdb4a3
KB
5352002-08-09 Kevin Buettner <kevinb@redhat.com>
536
537 * blockframe.c (frame_saved_regs_register_unwind): Revise
538 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
539 frames are in use.
540
3c3bea1c
GS
5412002-08-09 Grace Sainsbury <graces@redhat.com>
542
543 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
544 T-packets; the 'a' is not taken as a register number.
545 (remote_check_watch_resources, remote_stopped_by_watchpoint)
546 (remote_stopped_data_address): New functions; add to target
547 vector.
548 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
549 prototypes to match other implementations of this
550 function. replace integer argument with pointer -- the length
551 field in the Z-packet is the length of what is pointed to or 1 if
552 pointer is null. Add to target vector.
553 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
554 target vector.
555
556 From Mark Salter:
557 * remote.c (remote_wait): Add support to extract optional
558 watchpoint information from T-packet. Ignore unrecognized
559 optional info in T-packet.
560 (remote_async_wait): Ditto.
561
5d1d95de
CV
5622002-08-09 Corinna Vinschen <vinschen@redhat.com>
563
564 * cli/cli-dump.c: Change fopen modes to use binary open modes
565 as defined in include/fopen-bin.h throughout.
566
c86b5b38
MS
5672002-08-08 Michael Snyder <msnyder@redhat.com>
568
569 * mips-tdep.c: Minor whitespace and indentation clean-ups.
570
b30590dc
KB
5712002-08-08 Kevin Buettner <kevinb@redhat.com>
572
573 * doublest.c (store_floating): Avoid floatformat_from_doublest()
574 assertion failure by returning early after a warning.
575
498868ed
KB
5762002-08-08 Kevin Buettner <kevinb@redhat.com>
577
578 * mips-tdep.c (mips_find_saved_regs): Make static.
579 (mips_frame_init_saved_regs): New function.
580 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
581 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
582 (mips_find_saved_regs): Delete declaration.
583
b2dd6311
GS
5842002-08-08 Grace Sainsbury <graces@redhat.com>
585
3c3bea1c
GS
586 * remote.c (remote_wait, remote_async_wait): Change
587 thread_num from int to ULONGEST.
588 (unpack_varlen_hex): Change result parameter from
589 int * to ULONGEST *.
b2dd6311 590
ea47855f
AC
5912002-08-08 Andrew Cagney <ac131313@redhat.com>
592
593 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
594 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
595 powerpc*-*-*.
596 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
597
69db8bae
AC
5982002-08-08 Andrew Cagney <cagney@redhat.com>
599
600 * gcore.c (override_derive_stack_segment): Delete variable.
601 (preempt_derive_stack_segment): Delete function.
602 (derive_stack_segment): Delete function.
603 (default_derive_stack_segment): Renamed to derive_stack_segment.
604 (override_derive_heap_segment): Delete variable.
605 (preempt_derive_heap_segment): Delete function.
606 (derive_heap_segment): Delete function.
607 (default_derive_heap_segment): Rename to derive_heap_segment.
608
cb811fe7
MS
6092002-08-06 Michael Snyder <msnyder@redhat.com>
610
611 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
612 * mips-tdep.c (mips_EABI_use_struct_convention,
613 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
614 New functions. (mips_use_struct_convention): Delete.
615 (mips_gdbarch_init): set use_gdbarch_convention.
616
8b389c40
MS
6172002-08-06 Michael Snyder <msnyder@redhat.com>
618
619 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
620 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
621 mips_o32_reg_struct_has_addr): New functions.
622 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
623
5c27f28a
AC
6242002-08-07 Andrew Cagney <ac131313@redhat.com>
625
626 * regcache.c (pseudo_register): Delete function.
627 (fetch_register): Delete function.
628 (store_register): Delete function.
629 (regcache_raw_read, legacy_read_register_gen): Use
630 target_fetch_registers instead of fetch_register.
631 (legacy_write_register_gen, regcache_raw_write): Use
632 target_store_register instead of store_register.
633 (write_register_bytes): Ditto.
634
635 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
636 (STORE_PSEUDO_REGISTER): Delete.
637 * gdbarch.h, gdbarch.c: Regenerate.
638
5b331675
CV
6392002-08-06 Corinna Vinschen <vinschen@redhat.com>
640
641 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
642 write dump file binary.
643
6acdf5c7
MS
6442002-08-05 Michael Snyder <msnyder@redhat.com>
645
646 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
647 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
648 (mips_gdbarch_init): Set N32 target to be mips64.
649
b2f01c35
KB
6502002-08-06 Kevin Buettner <kevinb@redhat.com>
651
652 * frame.c (find_saved_register): Break out of loop once saved
653 register address is found. Don't mention sparc in loop comment
654 anymore.
655
63db5580
KB
6562002-08-06 Kevin Buettner <kevinb@redhat.com>
657
658 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
659 mips_default_saved_regsize to 8.
660
5e34e75e
AC
6612002-08-06 Andrew Cagney <ac131313@redhat.com>
662
663 * gcore.c: Do not include <sys/procfs.h>.
664 * Makefile.in (gcore.o): Update dependencies.
665
eb4c54a2
AC
6662002-08-06 Andrew Cagney <cagney@redhat.com>
667
668 * configure.tgt: Make arc-*-* obsolete.
669 * NEWS: Mention that arc-*-* has been identifed as obsolete.
670 * MAINTAINERS: Make arc-elf obsolete.
671 * arc-tdep.c: Make file obsolete.
672 * config/arc/arc.mt: Ditto.
673 * config/arc/tm-arc.h: Ditto.
674
ced15480
TR
6752002-08-05 Theodore A. Roth <troth@verinet.com>
676
c1bab85b 677 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 678
b4743822
AC
6792002-08-05 Andrew Cagney <ac131313@redhat.com>
680
681 * mcore-tdep.c (mcore_gdbarch_init): Use
682 generic_unwind_get_saved_register instead of
683 generic_get_saved_register.
684 * v850-tdep.c (v850_gdbarch_init): Ditto.
685 * frv-tdep.c (frv_gdbarch_init): Ditto.
686 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
687 * s390-tdep.c (s390_gdbarch_init): Ditto.
688 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
689 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
690 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
691
3956d554
JB
6922002-08-05 Joel Brobecker <brobecker@gnat.com>
693
694 * objfiles.h: Add missing #include "symfile.h"
695
696 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
697
8249c0d6
AC
6982002-08-04 Andrew Cagney <ac131313@redhat.com>
699
700 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
701 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
702 of FIELD_BITSIZE.
703
b9d14705
DJ
7042002-08-04 Daniel Jacobowitz <drow@mvista.com>
705
706 * NEWS: Cleanup and nitpick.
707
dd73b9bb
AC
7082002-08-03 Andrew Cagney <ac131313@redhat.com>
709
710 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
711
043a27f8
AC
7122002-08-03 Andrew Cagney <ac131313@redhat.com>
713
714 * Makefile.in (gdbtk-bp.o): Update dependencies.
715 (gdbtk-register.o): Ditto.
716 (gdbtk-varobj.o): Ditto.
717
46ce284d
AC
7182002-08-03 Andrew Cagney <cagney@redhat.com>
719
720 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
721 m68hc11_fetch_pseudo_register.
722 (m68hc11_pseudo_register_write): Replace
723 m68hc11_store_pseudo_register.
724 (m68hc11_gdbarch_init): Update.
725
b66d6d2e
AC
726Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
727
728 * gdbarch.sh: Include "gdb_string.h".
729 * gdbarch.c: Regenerate.
730
731 * regcache.c: Include "gdb_string.h".
732 * ax-general.c: Ditto.
733 * varobj.c: Ditto.
734 * std-regs.c: Ditto.
735 * fbsd-proc.c: Ditto.
736 * thread.c: Ditto.
737
738 * Makefile.in (regcache.o): Update dependencies.
739 (thread.o, gdbarch.o): Ditto.
740 (ax-general.o, gdbarch.o): Ditto.
741 (varobj.o, std-regs.o): Ditto.
742 (fbsd-proc.o): Specify dependencies.
743
29e1842b
AC
7442002-08-02 Andrew Cagney <cagney@redhat.com>
745
746 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
747 regnum.
748 (regcache_cooked_write): Ditto.
749
68365089
AC
7502002-08-02 Andrew Cagney <ac131313@redhat.com>
751
752 * regcache.c (regcache_cooked_read): New function.
753 (regcache_cooked_write): New function.
754 (read_register_gen): Rewrite using regcache_cooked_read.
755 (write_register_gen): Rewrite using regcache_cooked_write.
756
757 * regcache.h (regcache_cooked_read, regcache_cooked_write):
758 Declare.
759
d8124050
AC
7602002-08-02 Andrew Cagney <cagney@redhat.com>
761
762 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
763 Replace the architecture methods register_read and register_write.
764 * gdbarch.h, gdbarch.c: Regenerate.
765 * regcache.c (init_regcache_descr): Update.
766 (read_register_gen): Update.
767 (write_register_gen): Update.
768 (supply_register): Update comment.
769
770 * sh-tdep.c (sh_gdbarch_init): Update.
771 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
772 `regcache' and `gdbarch' parameters. Make `buffer' a void
773 pointer. Update code.
774 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
775 `regcache' and `gdbarch' parameters. Make `buffer' a constant
776 void pointer. Update code.
777 (sh64_register_write): Delete.
778 (sh4_register_read): Delete.
779 (sh64_register_read): Delete.
780 (sh4_register_write): Delete.
781 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
782 void pointer, `to' parameter a void pointer.
783 (sh_sh64_register_convert_to_raw): Ditto.
784
a6425924
KB
7852002-08-01 Kevin Buettner <kevinb@redhat.com>
786
787 * mips-tdep.c (mips_register_virtual_type): Use architecture
788 invariant return values.
789
ff5922b5
AC
7902002-08-01 Andrew Cagney <cagney@redhat.com>
791
792 * linux-proc.c: Include "gdb_string.h".
793 * Makefile.in (linux-proc.o): Update dependency list.
794
32a6503c
KB
7952002-08-01 Kevin Buettner <kevinb@redhat.com>
796
797 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
798 comment.
799
ccaa32c7
GS
8002002-08-01 Grace Sainsbury <graces@redhat.com>
801
802 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
803 to_insert_watchpoint, to_remove_watchpoint,
804 to_stopped_by_watchpoint, to_stopped_data_address,
805 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
806 target vecctor. Define their corresponding macros so they call
807 them.
808
809 * target.c: Add default and debug versions of for
810 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
811 to_insert_watchpoint, to_remove_watchpoint,
812 to_stopped_by_watchpoint, to_stopped_data_address,
813 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
814
78fde5f8
KB
8152002-08-01 Kevin Buettner <kevinb@redhat.com>
816
817 * mips-tdep.c (mips_register_virtual_type): New function.
818 (mips_gdbarch_init): Register mips_register_virtual_type()
819 with gdbarch machinery.
820 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
821 this file instead of tm-bigmips.h.
822 (MIPS_REGSIZE): Delete this macro.
823 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
824 multiarch version in mips-tdep.c will be found.
825
db034ac5
AC
8262002-08-01 Andrew Cagney <cagney@redhat.com>
827
828 * NEWS: Menion that CHILL has been made obsolete.
829
830 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
831 * gdbserver/Makefile.in: Ditto.
832 * stabsread.c (read_range_type): Ditto.
833 * gdbtypes.h: Ditto.
834 * language.c (binop_type_check): Ditto.
835 (binop_result_type): Ditto.
836 (integral_type): Ditto.
837 (character_type): Ditto.
838 (string_type): Ditto.
839 (boolean_type): Ditto.
840 (structured_type): Ditto.
841 (lang_bool_type): Ditto.
842 (binop_type_check): Ditto.
843 * language.h (_LANG_chill): Ditto.
844 * dwarfread.c (set_cu_language): Ditto.
845 * dwarfread.c (CHILL_PRODUCER): Ditto.
846 * dwarfread.c (handle_producer): Ditto.
847 * expression.h (enum exp_opcode): Ditto.
848 * eval.c: Ditto for comments.
849 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
850 * expprint.c (print_subexp): Ditto.
851 (print_subexp): Ditto.
852 * valops.c (value_cast): Ditto.
853 (search_struct_field): Ditto.
854 * value.h (COERCE_VARYING_ARRAY): Ditto.
855 * symfile.c (init_filename_language_table): Ditto.
856 (add_psymbol_with_dem_name_to_list): Ditto.
857 * valarith.c (value_binop): Ditto.
858 (value_neg): Ditto.
859 * valops.c (value_slice): Ditto.
860 * symtab.h (union language_specific): Ditto.
861 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
862 (SYMBOL_DEMANGLED_NAME): Ditto.
863 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
864 * defs.h (enum language): Ditto.
865 * symtab.c (got_symtab): Ditto.
866 * utils.c (fprintf_symbol_filtered): Ditto.
867
868 * ch-typeprint.c: Make file obsolete.
869 * ch-valprint.c: Make file obsolete.
870 * ch-lang.h: Make file obsolete.
871 * ch-exp.c: Make file obsolete.
872 * ch-lang.c: Make file obsolete.
873
874 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
875 CHILL_LIB.
876 (TARGET_FLAGS_TO_PASS): Ditto.
877 (CHILLFLAGS): Obsolete.
878 (CHILL): Obsolete.
879 (CHILL_FOR_TARGET): Obsolete.
880 (CHILL_LIB): Obsolete.
881 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
882 ch-valprint.c.
883 (HFILES_NO_SRCDIR): Remove ch-lang.h.
884 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
885 ch-lang.o.
886 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
887 targets.
888
8aaf0b47
JB
8892002-07-31 Joel Brobecker <brobecker@gnat.com>
890
891 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
892 This does not change anything at the moment, but will be helpful
893 later when full Ada support is integrated.
894
f3a7b3a5
KB
8952002-07-31 Kevin Buettner <kevinb@redhat.com>
896
897 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
898 help message.
899
fb850278
KB
9002002-07-31 Kevin Buettner <kevinb@redhat.com>
901
902 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
903 and save it in a local variable. Use variable in later test.
904
e3bddbfa
KB
9052002-07-31 Kevin Buettner <kevinb@redhat.com>
906
907 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
908 test. (Thanks to Daniel Jacobowitz.)
909
28d169de
KB
9102002-07-31 Kevin Buettner <kevinb@redhat.com>
911
912 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
913 (mips_abi_strings): Add "n64".
914 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
915
7fe7e44e
KB
9162002-07-31 Kevin Buettner <kevinb@redhat.com>
917
918 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
919 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
920
c6caf090
KB
9212002-07-31 Kevin Buettner <kevinb@redhat.com>
922
923 * utils.c (host_pointer_to_address, address_to_host_pointer):
924 Use gdb_assert() instead of explicit call to internal_error().
925
c41669e0
KB
9262002-07-30 Kevin Buettner <kevinb@redhat.com>
927
928 * Makefile.in (rs6000-nat.o): Update dependencies.
929
930 From Nicholas Duffek:
931 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
932 (aix-thread.o): New rule.
933 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
934 * config/powerpc/aix432.mh: New file.
935
2fda4977
DJ
9362002-07-30 Daniel Jacobowitz <drow@mvista.com>
937
938 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
939 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
940 (fetch_core_registers, ppc_linux_supply_gregset)
941 (ppc_linux_supply_fpregset): New functions.
942 (ppc_linux_regset_core_fns): New.
943 (_initialize_ppc_linux_tdep): Call add_core_fns.
944 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
945 and ppc_linux_supply_gregset.
946 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
947 (supply_fpregset): Call ppc_linux_supply_fpregset.
948 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
949 corelow.o.
950 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
951
729051e6
DJ
9522002-07-30 Daniel Jacobowitz <drow@mvista.com>
953
954 * symtab.c (lookup_symbol): Demangle before lowercasing.
955
5f8a3188
AC
9562002-07-30 Andrew Cagney <ac131313@redhat.com>
957
958 * symtab.h: Replace #include "gdb_obstack.h" with opaque
959 declaration.
960 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
961 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
962 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
963 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
964 "gdb_string.h".
965 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
966 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
967 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
968 (avr-tdep.o, mon960-rom.o): Ditto.
969 (aout_stabs_gnu_h): Define.
970 (symtab_h): Remove $(gdb_obstack_h).
971
67f07146
JB
9722002-07-30 Jim Blandy <jimb@redhat.com>
973
974 Patch from David Carlton <carlton@math.stanford.edu>:
975 * gdbinit.in: Move the `dir' commands that add GDB's own source
976 directory to the search path to the end, so that the `gdb' source
977 directory will be searched first.
978
04ea0df1
AC
9792002-07-29 Andrew Cagney <ac131313@redhat.com>
980
981 * gdb_obstack.h: New file.
982 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
983 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
984 * objfiles.h: Include "gdb_obstack.h".
985 * Makefile.in (gdb_obstack_h): Define.
986 (symtab_h): Add $(gdb_obstack_h).
987 (objfiles_h): Add $(gdb_obstack_h).
988
989 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
990 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
991 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
992 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
993 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
994 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
995 * symfile.c, coffread.c, c-typeprint.c: Ditto.
996 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
997
998 * Makefile.in (bcache.o): Update dependencies.
999 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1000 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1001 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1002 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1003 (stabsread.o, symfile.o, symmisc.o): Ditto.
1004 (symtab.o, typeprint.o, macroexp.o): Ditto.
1005 (macrotab.o, mdebugread.o): Ditto.
1006 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1007 (coff_ecoff_h, aout_aout64_h): Define.
1008 (aout_stabs_gnu_h, libaout_h): Define.
1009
d138e37a
AC
10102002-07-29 Andrew Cagney <cagney@redhat.com>
1011
1012 * regcache.c (struct regcache_descr): Rename nr_registers to
1013 nr_cooked_registers. Revise comments describing the structure
1014 member fields.
1015 (init_regcache_descr): Update.
1016 (init_legacy_regcache_descr): Update.
1017 (read_register_gen, write_register_gen): When a cooked register in
1018 the raw register range, directly access the value from the raw
1019 register cache.
1020
460e6ec3
AC
10212002-07-29 Andrew Cagney <ac131313@redhat.com>
1022
1023 * z8k-tdep.c: Do not include "obstack.h".
1024 * h8300-tdep.c, h8500-tdep.c: Ditto.
1025 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1026 * valprint.c, v850-tdep.c: Ditto.
1027 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1028 * mn10200-tdep.c: Ditto.
1029
1030 * Makefile.in (z8k-tdep.o): Update dependencies.
1031 (m68hc11-tdep.o, valprint.o): Ditto.
1032 (v850-tdep.o, d10v-tdep.o): Ditto.
1033 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1034 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1035 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1036 (sh_opc_h, gdb_sim_sh_h): Define.
1037 (elf_sh_h, elf_bfd_h): Define.
1038 (opcode_m68hc11_h): Define.
1039 (OPCODES_SRC, OPCODES_DIR): define.
1040 (OPCODES): Use $(OPCODES_DIR).
1041 (gdb_sim_d10v_h): Rename sim_d10v_h.
1042 (gdb_sim_arm_h): Rename sim_arm_h.
1043
790c9cf0
KB
10442002-07-26 Kevin Buettner <kevinb@redhat.com>
1045
1046 * utils.c (host_pointer_to_address, address_to_host_pointer):
1047 Change internal_error() message to indicate function responsible
1048 for the error.
1049
9647fa49
KB
10502002-07-26 Kevin Buettner <kevinb@redhat.com>
1051
1052 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1053 calls to local_hex_string_custom().
1054
dabbe2c0
KB
10552002-07-26 Kevin Buettner <kevinb@redhat.com>
1056
1057 * irix5-nat.c: Move IRIX shared library support from here...
1058 * solib-irix.c: ...to here. Revised substantially to work with
1059 generic solib framework.
1060
b96d0a4e
KB
1061 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1062 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1063 * mips-irix-tdep.c: New file.
1064
313fb2f6
KB
1065 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1066 (mips-irix-tdep.o, solib-irix.o): New rules.
1067 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1068 solib-irix.o.
1069 * config/mips/irix6.mt (TDEPFILES): Likewise.
1070 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1071
ab2eaf26
KB
10722002-07-26 Kevin Buettner <kevinb@redhat.com>
1073
177e4768 1074 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1075 disabled (via ``#if 0'') includes.
1076
7244546a
KB
10772002-07-26 Kevin Buettner <kevinb@redhat.com>
1078
1079 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1080 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1081 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1082 Add support for the fpscr register.
1083 * rs6000-nat.c (regmap, fetch_inferior_registers)
1084 (store_inferior_registers, fetch_core_registers): Likewise.
1085
dd7be90a
KB
10862002-07-26 Kevin Buettner <kevinb@redhat.com>
1087
1088 * rs6000-nat.c (language.h): Include.
1089 (special_regs): Delete this array.
1090 (regmap): New function.
1091 (fetch_register, store_register): Use regmap() to map gdb
1092 register numbers to ptrace register numbers. Also, use
1093 outputs from regmap() to make decisions regarding type of
1094 ptrace() call to make. In particular, don't compare against
1095 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1096 (fetch_inferior_registers, store_inferior_registers): Where
1097 possible, obtain register numbers from tdep struct. Don't
1098 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1099 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1100 (LAST_UISA_SP_REGNUM): Delete.
1101
11bf77db
KB
11022002-07-25 Kevin Buettner <kevinb@redhat.com>
1103
1104 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1105 (fetch_registers, store_register, fetch_core_registers): Don't
1106 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1107 regcache_collect() as appropriate.
1108 (find_toc_address): Format hex address with local_hex_string().
1109
06afebeb
AC
11102002-07-25 Andrew Cagney <ac131313@redhat.com>
1111
1112 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1113 bfd/elf32-frv.c.
1114
8c554d79
TT
11152002-07-24 Tom Tromey <tromey@redhat.com>
1116
1117 * jv-exp.y: Marked all strings with _().
1118 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1119 internal_error.
1120 (MethodInvocation, CastExpression, parse_number, yyerror,
1121 java_type_from_name, push_expression_name, yylex): Typo fixes.
1122
e4c242d9
DJ
11232002-07-24 Daniel Jacobowitz <drow@mvista.com>
1124
1125 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1126 (tee_file_flush, tee_file_write, tee_file_fputs)
1127 (tee_file_isatty): New.
1128 * ui-file.h (tee_file_new): Add prototype.
1129
ebf56fd3
AS
11302002-07-24 Aidan Skinner <aidan@velvet.net>
1131
1132 * ada-lang.c: Change k&r style function definitions to prototyped
1133 form.
1134 * ada-typeprint.c: Change k&r style function definitions to prototyped
1135 form.
1136 * ada-valprint.c: Change k&r style function definitions to prototyped
1137 form.
1138
7fb623f7
AC
11392002-07-24 Andrew Cagney <cagney@redhat.com>
1140
1141 * README: Remove reference to remote-bug.
1142 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1143 remote-bug.c.
1144 (m88k-nat.o): Delete rule.
1145 (m88k-tdep.o): Delete rule.
1146 (remote-bug.o): Delete rule.
1147 * MAINTAINERS: Mark as obsolete.
1148 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1149 * m88k-tdep.c: Make file obsolete.
1150 * config/m88k/m88k.mh: Ditto.
1151 * config/m88k/delta88v4.mh: Ditto.
1152 * config/m88k/delta88v4.mt: Ditto.
1153 * config/m88k/delta88.mt: Ditto.
1154 * config/m88k/delta88.mh: Ditto.
1155 * remote-bug.c: Ditto.
1156 * config/m88k/tm-delta88.h: Ditto.
1157 * config/m88k/nm-delta88v4.h: Ditto.
1158 * config/m88k/xm-delta88.h: Ditto.
1159 * config/m88k/xm-dgux.h: Ditto.
1160 * config/m88k/tm-m88k.h: Ditto.
1161 * config/m88k/nm-m88k.h: Ditto.
1162 * config/m88k/tm-delta88v4.h: Ditto.
1163 * m88k-nat.c: Ditto.
1164 * cxux-nat.c: Ditto.
1165 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1166 and m88*-*-* obsolete.
1167 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1168 m88*-*-* obsolete.
1169
37611a2b
AC
11702002-07-24 Andrew Cagney <cagney@redhat.com>
1171
1172 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1173 constant. Same for local pointer variables.
1174 (extract_signed_integer): Ditto.
1175 * defs.h (extract_unsigned_integer): Update.
1176 (extract_signed_integer): Update.
1177
18ff0538
KB
11782002-07-24 Kevin Buettner <kevinb@redhat.com>
1179
1180 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1181 * gdbserver/configure: Regenerate.
1182 * gdbserver/config.in: Regenerate.
1183
1aaa5f99
AC
11842002-07-24 Andrew Cagney <cagney@redhat.com>
1185
1186 * regcache.c (regcache_raw_write): Change buf parameter to a
1187 constant void pointer.
1188 (regcache_raw_read): Change buf parameter to a void pointer.
1189 (legacy_write_register_gen): Change myaddr parameter a constant
1190 void pointer.
1191 (supply_register): Change val parameter to a const void pointer.
1192 * regcache.h (regcache_raw_write): Update declaration.
1193 (regcache_raw_read): Update declaration.
1194 (supply_register): Update declaration.
1195
b4f5539f
TT
11962002-07-24 Tom Tromey <tromey@redhat.com>
1197
1198 * defs.h (gdb_readline_wrapper): Declare.
1199 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1200 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1201 * top.c (gdb_readline_wrapper): New function.
1202 (command_line_input): Use it.
1203
0818c12a
AC
12042002-07-24 Andrew Cagney <cagney@redhat.com>
1205
1206 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1207 regcache_read and regcache_write.
1208 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1209 * regcache.c: Update.
1210 * sh-tdep.c (sh64_push_arguments): Update comment.
1211 (sh_pseudo_register_read): Update.
1212 (sh_pseudo_register_write): Update.
1213 (sh4_register_read): Update.
1214 (sh4_register_write): Update.
1215 (sh64_pseudo_register_read): Update.
1216 (sh64_pseudo_register_write): Update.
1217 (sh64_register_read): Update.
1218 (sh64_register_write): Update.
1219 * i386-tdep.c (i386_extract_return_value): Update.
1220 (i386_extract_struct_value_address): Update.
1221 (i386_extract_return_value): Update.
1222 * blockframe.c (generic_read_register_dummy): Update.
1223 (generic_call_dummy_register_unwind): Update
1224 * infrun.c (write_inferior_status_register): Update.
1225
f7321c06
JB
12262002-07-23 Jim Blandy <jimb@redhat.com>
1227
1228 * parser-defs.h (expression_context_pc): Make this extern.
1229 (Thanks to Michael Snyder.)
1230
2037aebb
AC
12312002-07-23 Andrew Cagney <ac131313@redhat.com>
1232
1233 GDB 5.2.1 released from 5.2 branch.
1234 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1235 * README: Update to mention 5.2.1.
1236
66504d44
MS
12372002-07-23 Mark Salter <msalter@redhat.com>
1238
1239 * remote.c (remote_read_bytes): Fix check for error.
1240
27bae383
KB
12412002-07-22 Kevin Buettner <kevinb@redhat.com>
1242
1243 * aix-thread.c (language.h): Include.
1244 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1245 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1246 Print newlines at end of debug messages.
1247 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1248 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1249
12502002-07-22 Kevin Buettner <kevinb@redhat.com>
1251
1252 * aix-thread.c (ppc-tdep.h): Include.
1253 (special_register_p): New function.
1254 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1255 (store_regs_user_thread): Use register number information from
1256 gdbarch_tdep struct instead of hardcoded offsets relative to
1257 FIRST_UISA_SP_REGNUM.
1258 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1259 special_register_p() instead of using FPLAST_REGNUM and
1260 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1261 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1262 will be MQ's register number.
1263
12642002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1265
1266 * aix-thread.c (ops): Rename to aix_thread_ops.
1267 (base_ops): Rename to base_target.
1268 (ops_attach): Rename to aix_thread_attach.
1269 (ops_detach): Rename to aix_thread_detach.
1270 (ops_resume): Rename to aix_thread_detach.
1271 (ops_wait): Rename to aix_thread_wait.
1272 (ops_kill): Rename to aix_thread_kill.
1273 (init_ops): Rename to init_aix_thread_ops.
1274 (ops_fetch_register): Rename to aix_thread_fetch_register.
1275 (ops_store_register): Rename to aix_thread_store_register.
1276 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1277 (ops_thread_alive): Rename to aix_thread_thread_alive.
1278 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1279 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1280 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1281 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1282 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1283 (store_regs_lib): Rename to store_regs_user_thread.
1284 (store_regs_kern): Rename to store_regs_kernel_thread.
1285
27bae383 12862002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1287
1288 * aix-thread.c (ops_prepare_to_store): Eliminate.
1289 (init_ops): Don't initialize ops.prepare_to_store.
1290 (store_regs_kern): Pre-fetch register buffers from child,
1291 because some registers may not be in the cache. Copy
1292 regs from register cache only if they are cached.
1293 (store_regs_lib): Copy regs from register cache only
1294 if they are cached.
1295 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1296 fill_gprs64): Ditto.
1297
61c5da0b
KB
12982002-07-22 Kevin Buettner <kevinb@redhat.com>
1299
1300 * aix-thread.c (gdb_assert.h): Include.
1301 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1302 register sizes (from register cache) match size of buffer holding
1303 register data.
1304 (fill_sprs32): Change parameter types to match those in the ptrace()
1305 buffer.
1306 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1307 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1308
13092002-07-22 Michael Snyder <msnyder@redhat.com>
1310
1311 * aix-thread.c (supply_sprs64): Cosmetic change.
1312 (supply_sprs32): Cosmetic change.
1313 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1314 (fill_sprs64): Use regcache_collect instead of read_register.
1315 (store_regs_lib): Use regcache_collect instead of
1316 read_register. Use fill_sprs32 instead of fill_sprs64,
1317 if debugging a 32-bit architecture.
1318 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1319 out of the register cache, instead of passing a pointer into
1320 the register cache directly to ptrace. Use regcache_collect
1321 insteaad of read_register.
1322 (ops_prepare_to_store): Use target_read_registers instead
1323 of read_register_bytes.
1324
36479eb1
AS
13252002-07-20 Aidan Skinner <aidan@velvet.net>
1326
1327 * MAINTAINERS: Add self under write after approval.
1328
80ae6ee2
AS
13292002-07-20 Aidan Skinner <aidan@velvet.net>
1330
1331 * ada-tasks.c: Change k&r style function definitions to prototyped
1332 form.
1333
8a8ab2b9
AC
13342002-07-19 Andrew Cagney <ac131313@redhat.com>
1335
1336 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1337 * x86-64-tdep.c: Include "objfiles.h".
1338 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1339 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1340
fb16b900
ML
13412002-07-17 Michal Ludvig <michal@suse.cz>
1342
1343 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1344 (update_context): Initialise cfa variable.
1345
0fe7bf7b
MS
13462002-07-17 Michael Snyder <msnyder@redhat.com>
1347
1348 * aix-thread.c: Shorten some long lines.
1349 Bring comments into line with code spec.
1350
488f131b
JB
13512002-07-18 Joel Brobecker <brobecker@gnat.com>
1352
1353 * infrun.c: Re-indent using gdb_indent.sh.
1354
46c415d2
JB
13552002-07-18 Joel Brobecker <brobecker@gnat.com>
1356
1357 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1358 Leave the indentation temporarily untouched, to minimize the diffs.
1359
cdecafbe
EZ
13602002-07-18 Elena Zannoni <ezannoni@redhat.com>
1361
1362 * stabsread.c: Make os9k sections of the code obsolete,
1363 for real this time.
1364 * stabsread.h: Make os9k sections of the code obsolete.
1365
7b6aa020
ML
13662002-07-18 Michal Ludvig <mludvig@suse.cz>
1367
09ec9b38
ML
1368 * linux-low.c (regsets_store_inferior_registers): Add free()
1369 at the end of a loop to prevent memory leak.
1370 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1371 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1372 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1373 line a comment.
4894ac5d 1374 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1375
233282cd
JB
13762002-07-17 Jim Blandy <jimb@redhat.com>
1377
1378 * macrocmd.c (info_macro_command): Remove newline from error
1379 message.
1380
7b6aa020 13812002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1382
1383 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1384 (sh_gdbarch_init): Use it for sh-dsp.
1385
f7ef9339
KB
13862002-07-16 Kevin Buettner <kevinb@redhat.com>
1387
1388 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1389 64-bit DWARF2 format.
1390
8dd72958
JB
13912002-07-16 Joel Brobecker <brobecker@gnat.com>
1392
1393 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1394 <sys/proc.h> when not available.
1395
a99a9e1b
AC
13962002-07-16 Andrew Cagney <ac131313@redhat.com>
1397
1398 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1399 * stabsread.c: Make os9k sections of the code obsolete.
1400 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1401 * config/i386/i386os9k.mt: Make file obsolete.
1402 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1403 (COMMON_OBS): Remove os9kread.o
1404 (SFILES): Remove os9kread.c.
1405 (os9kread.o, remote-os9k.o): Make target obsolete.
1406 * remote-os9k.c: Make file obsolete.
1407 * os9kread.c: Make file obsolete.
1408 * Makefile.in
1409
7a3085c1
AC
14102002-07-16 Andrew Cagney <ac131313@redhat.com>
1411
1412 * NEWS: Mention that the FR30 has been made obsolete.
1413 * fr30-tdep.c: Make file obsolete.
1414 * config/fr30/tm-fr30.h: Ditto.
1415 * config/fr30/fr30.mt: Ditto.
1416 * configure.tgt: Make fr30-*-elf obsolete.
1417 * MAINTAINERS: Make fr30-elf obsolete.
1418
28a93f5a
PM
14192002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1420
1421 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1422 found is not inside a section.
1423
be006b8b
KB
14242002-07-15 Kevin Buettner <kevinb@redhat.com>
1425
1426 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1427 strerror().
1428 (pdc_realloc): Use xrealloc() instead of realloc().
1429
14fa3751
KB
14302002-07-15 Kevin Buettner <kevinb@redhat.com>
1431
1432 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1433 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1434 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1435 macros.
1436
42cc437f
KB
14372002-07-15 Kevin Buettner <kevinb@redhat.com>
1438
1439 * aix-thread.c (ptrace_check): Eliminate goto.
1440 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1441 problem.
1442
8e2c28d4
KB
14432002-07-15 Kevin Buettner <kevinb@redhat.com>
1444
1445 * aix-thread.c (gdbcmd.h): Include.
1446 (DEBUG, DBG, DBG2, dbg): Eliminate.
1447 (debug_aix_thread): New static global.
1448 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1449 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1450 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1451 invocations to DBG and DBG2 macros to test against
1452 ``debug_aix_thread'' and call fprintf_unfiltered().
1453 (_initialize_aix_thread): Add new command "set debug aix-thread".
1454
30413464
AC
14552002-07-15 Andrew Cagney <ac131313@redhat.com>
1456
1457 From Gerhard Tonn <TON@de.ibm.com>:
1458 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1459 instead of supply_register.
1460
7c43edc1
AC
14612002-07-15 Andrew Cagney <ac131313@redhat.com>
1462
1463 * dwarf2cfi.c: Include "gdb_assert.h".
1464 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1465 non-NULL.
1466 (update_context): Do not use __func__. Add missing ``break''.
1467 (update_context): Do not use __func__.
1468
9364a0ef
EZ
14692002-07-15 Elena Zannoni <ezannoni@redhat.com>
1470
1471 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1472 and its setting. Set gdbarch instruction printing functions
1473 directly. For non-rs6000 case use new function
1474 gdb_print_insn_powerpc.
1475 (gdb_print_insn_powerpc): New function.
1476
3fbeef0b
AC
14772002-07-13 Andrew Cagney <ac131313@redhat.com>
1478
92eb23c5 1479 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1480 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1481 * configure.tgt: Mark d30v-*-* as obsolete.
1482 * d30v-tdep.c: Mark file as obsolete.
1483 * config/d30v/d30v.mt: Ditto.
1484 * config/d30v/tm-d30v.h: Ditto.
1485
aacb1f0a
AS
14862002-07-13 Aidan Skinner <aidan@velvet.net>
1487
1488 * ada-tasks.c (add_task_entry): replace calls to
1489 malloc() with xmalloc
1490 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1491
1492 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1493 ada_finish_decode_line_1, all_sals_for_line
1494 ada_breakpoint_rewrite): replace calls to free() with xfree()
1495
c11d79f2
KB
14962002-07-12 Kevin Buettner <kevinb@redhat.com>
1497
1498 From Nicholas Duffek (with minor changes by Martin Hunt,
1499 Louis Hamilton, and Kevin Buettner):
1500 * aix-thread.c: New file.
1501
8e19ed76
PS
15022002-07-12 Petr Sorfa <petrs@caldera.com>
1503
1504 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1505 complaint for invalid attribute class or form.
1506 (read_func_scope): DW_AT_frame_base
1507 better handling of DW_AT_block*.
1508 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1509 better handling of DW_AT_block*.
1510 (read_common_block): DW_AT_location
1511 better handling of DW_AT_block*.
1512 (read_partial_die): DW_AT_location better handling
1513 of DW_AT_block*.
1514 (new_symbol): DW_AT_external better handling of
1515 DW_AT_block*. Proper initialization of variable
1516 "addr".
1517 (attr_form_is_block): New function that returns true
1518 if the attribute's form is of DW_FORM_block*.
1519
295401f7
DJ
15202002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1521
1522 * valops.c (find_method_list): Remove comment about
1523 removed STATIC_MEMFUNCP argument.
1524 (value_find_oload_method_list): Likewise.
1525
e42dc924
KB
15262002-07-12 Kevin Buettner <kevinb@redhat.com>
1527
1528 From Nicholas Duffek:
1529 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1530 target_new_objfile_hook.
1531
6904b546
KB
15322002-07-12 Kevin Buettner <kevinb@redhat.com>
1533
1534 From Nicholas Duffek:
1535 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1536 csect.
1537
53fe9346
AC
15382002-07-12 Andrew Cagney <cagney@redhat.com>
1539
1540 * MAINTAINERS: Mention --enable-sim-build-warnings.
1541 (m68hc11-elf): Disable sim build warnings.
1542 (m32r-elf): Mark as broken obsolete candidate.
1543 (x86_64-linux-gnu): Mark as buildable with -Werror.
1544 (arm-elf): Change -w to ``,'' which enables warnings but not
1545 -Werror.
1546
af5f3db6
AC
15472002-07-12 Andrew Cagney <ac131313@redhat.com>
1548
1549 * bcache.h: Update copyright.
1550 (struct bstring, struct bcache): Move definition to "bcache.c".
1551 Replaced by opaque declaration.
1552 (bcache_xfree): Replace free_bcache.
1553 (bcache_xmalloc, bcache_memory_used): Declare.
1554
1555 * bcache.c: Update copyright.
1556 (struct bstring, struct bcache): Moved to here from "bcache.h".
1557 Update comments.
1558 (bcache_xmalloc, bcache_memory_used): New functions.
1559 (bcache_xfree): Replace function free_bcache.
1560
1561 * Makefile.in (objfiles.o): Add $(bcache_h).
1562 (objfiles_h): Remove $(bcache_h).
1563 (symfile.o): Add $(bcache_h).
1564
1565 * symmisc.c: Update copyright.
1566 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1567 (print_objfile_statistics): Use bcache_memory_used.
1568
1569 * symfile.c: Include "bcache.h".
1570 (reread_symbols): Use bcache_xfree.
1571 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1572 (add_psymbol_to_list): Pass psymbol_cache by value.
1573 (add_psymbol_with_dem_name_to_list): Ditto.
1574
1575 * objfiles.h: Update copyright.
1576 (struct bcache): Declare opaque. Do not include "bcache.h".
1577 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1578 bcache'' pointers.
1579 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1580
1581 * objfiles.c: Include "bcache.h". Update copyright.
1582 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1583 macro_cache.
1584 (free_objfile): Use bcache_xfree.
1585
444199e7
GS
15862002-07-11 Grace Sainsbury <graces@redhat.com>
1587
1588 * monitor.c (monitor_fetch_register): Make name a constant.
1589 (monitor_store_register): Same.
1590
261397f8
DJ
15912002-07-11 Daniel Jacobowitz <drow@mvista.com>
1592
1593 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1594 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1595 (finish_block) For non-function blocks, hash the symbol table. For
1596 function blocks, mark the symbol table as unhashed.
1597 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1598 (msymbol_hash_iw): Likewise.
1599 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1600 value.
1601 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1602 (lookup_minimal_symbol): Likewise for both.
1603 * symtab.h (struct block): Add `hashtable' flag. Comment the
1604 hashtable.
1605 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1606 (ALL_BLOCK_SYMBOLS): Update.
1607 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1608 (struct symbol): Add `hash_next' pointer.
1609 * symtab.c (lookup_block_symbol): Search using the hash table when
1610 possible.
1611 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1612 (search_symbols, find_addr_symbol): Likewise.
1613
1614 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1615 (read_dst_symtab): Likewise.
1616 * jv-lang.c (get_java_class_symtab): Likewise.
1617 * mdebugread.c: Include "gdb_assert.h".
1618 (shrink_block): Assert that the block being modified is not hashed.
1619 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1620 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1621 symbols.
1622 (dump_symtab): Recognize hashed blocks.
1623 * printcmd.c (print_frame_args): Assert that function blocks do not
1624 have hashed symbol tables.
1625 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1626 (fill_in_ada_prototype, debug_print_block): Likewise.
1627 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1628
6f0eaa01
CV
16292002-07-11 Corinna Vinschen <vinschen@redhat.com>
1630
1631 * stack.c (print_frame): Use result of frame_address_in_block()
1632 instead of fi->pc when evaluating symbols.
1633 (backtrace_command_1): Ditto.
1634
a208b0cb
AC
16352002-07-11 Andrew Cagney <cagney@redhat.com>
1636
1637 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1638 Make static.
1639
1640 * arm-tdep.c (arm_register_name): Make return type constant.
1641
a6b6b089
AC
16422002-07-10 Andrew Cagney <ac131313@redhat.com>
1643
5ae5f592
AC
1644 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1645 prototype.
1646 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1647 * s390-tdep.c (s390_fp_regnum): Ditto.
1648 (s390_read_fp): Ditto.
1649 (s390_pop_frame): Ditto.
1650 (_initialize_s390_tdep): Ditto.
1651 * remote.c (get_remote_state): Ditto.
1652 * procfs.c (mappingflags): Ditto.
1653 * memattr.c (_initialize_mem): Ditto.
1654 * mcore-tdep.c (mcore_pop_frame): Ditto.
1655 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1656 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1657 * language.c (set_case_str): Ditto.
1658 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1659 * frv-tdep.c (new_variant): Ditto.
1660 (frv_stopped_data_address): Ditto.
1661 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1662 (context_alloc): Ditto.
1663 (frame_state_alloc): Ditto.
1664 (unwind_tmp_obstack_init): Ditto.
1665 (unwind_tmp_obstack_free): Ditto.
1666 (cfi_read_fp): Ditto.
1667 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1668 (cris_pop_frame): Ditto.
1669 * c-lang.c (scanning_macro_expansion): Ditto.
1670 (finished_macro_expansion): Ditto.
1671 (c_preprocess_and_parse): Ditto.
1672 * gdbarch.sh: Ditto.
1673 * gdbarch.h, gdbarch.c: Regenerate.
1674 * config/mn10200/tm-mn10200.h: Adjust indentation.
1675 * target.c: Adjust indentation.
1676 * symtab.h: Adjust indentation.
1677 * stabsread.h: Adjust indentation.
1678 * remote-es.c: Adjust indentation.
1679 * os9kread.c: Adjust indentation.
1680
16812002-07-10 Andrew Cagney <ac131313@redhat.com>
1682
a6b6b089
AC
1683 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1684 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1685
a1789893
GS
16862002-07-10 Grace Sainsbury <graces@redhat.com>
1687
1688 * NEWS: Mention m68k, mcore multi-arching.
1689 * MAINTAINERS: Change status of m68k, mcore to reflect
1690 multi-arching.
1691
02f0d45d
DJ
16922002-07-10 Daniel Jacobowitz <drow@mvista.com>
1693
1694 * valops.c (find_overload_match): Free oload_syms.
1695
f15f768e
JB
16962002-07-09 Joel Brobecker <brobecker@gnat.com>
1697
1698 Define HAVE_SYS_PROC_H if sys/proc.h exists
1699 * configure.in: Add check for sys/proc.h
1700 * config.in: Regenerate.
1701 * configure: Regenerate.
1702
902a7139
GS
17032002-07-09 Grace Sainsbury <graces@redhat.com>
1704
1705 * config/m68k/tm-m68k.h: Remove macros wrapped in
1706 #if !GDB_MULTI_ARCH.
1707
82e0fd98
DB
17082002-07-09 David O'Brien <obrien@FreeBSD.org>
1709
1710 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1711 (perror_with_name, remote_close, remote_open, expect, play): Static.
1712
a534e424
AC
17132002-07-08 Andrew Cagney <ac131313@redhat.com>
1714
1715 * config.in, configure: Regenerate.
1716
9b94f7bf
MK
17172002-07-08 Mark Kettenis <kettenis@gnu.org>
1718
1719 * dwarf2cfi.c: Include "gcore.h".
1720 (execute_stack_op): Fix implementation of the
1721 DW_OP_deref and DW_OP_deref_size operators by letting do their
1722 lookup in the target.
1723
1d34db41
MK
17242002-07-07 Mark Kettenis <kettenis@gnu.org>
1725
1726 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1727 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1728 tdep->sc_sp_offset.
1729
79d5b63a
DJ
17302002-07-05 Daniel Jacobowitz <drow@mvista.com>
1731
1732 Fix PR gdb/595, gdb/602
1733 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1734 Don't call value_cast, just read the vtable pointer; update comments
1735 to match.
1736
3bb912e8
GS
17372002-07-05 Grace Sainsbury <graces@redhat.com>
1738
1739 * config/mcore/tm-mcore.h: Remove file.
1740 * config/mcore/mcore.mt: Remove definition of TM_FILE
1741 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1742
ca39387d
MK
17432002-07-05 Mark Kettenis <kettenis@gnu.org>
1744
1745 * i386bsd-tdep.c: Include "gdb_string.h".
1746
efdc1108
GS
17472002-07-04 Grace Sainsbury <graces@redhat.com>
1748
1749 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1750 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1751 mcore-tdep.
1752 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1753 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1754 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1755 (RETVAL_REGNUM): Move macros from tm-mcore.h
1756 (mcore_reg_struct_has_addr): New function.
1757 (mcore_gdbarch_init): Added initializations for the macros removed
1758 from tm-mcore.h.
1759
bb21884d
MK
17602002-07-04 Mark Kettenis <kettenis@gnu.org>
1761
1762 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1763 traditonal string branding within the ELF header.
1764
228c6d41
DJ
17652002-07-04 Daniel Jacobowitz <drow@mvista.com>
1766
1767 * symtab.c (remove_params): New function.
1768 (make_symbol_overload_list): Use it instead of cplus_demangle.
1769 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1770
2404952e
MK
17712002-07-04 Mark Kettenis <kettenis@gnu.org>
1772
e5e4acad
MK
1773 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1774
baadce09
MK
1775 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1776 New variables.
1777 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1778 and tdep->sigtramp_end.
1779 * i386obsd-nat.c: New file.
1780 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1781
2404952e
MK
1782 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1783 Don't call get_current_frame().
1784
9b4f1ba7
PM
17852002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1786
1787 * i386-nat.c (child_post_startup_inferior): New function
1788 calling i386_cleanup_dregs if
1789 I386_USE_GENERIC_WATCHPOINTS is defined.
1790 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1791 conditional to acknowledge that i386-nat.c has its
1792 own child_post_startup_inferior function.
1793
c0d1d883
MK
17942002-07-04 Mark Kettenis <kettenis@gnu.org>
1795
00f8375e
MK
1796 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1797 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1798 instead of MAX_REGISTER_RAW_SIZE.
1799 (i386_extract_return_value, i386_extract_struct_value_address):
1800 Convert to use regcache.
1801 (i386_gdbarch_init): Set max_register_raw_size and
1802 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1803 Set extract_return_value and extract_struct_value_address instead
1804 of their deprecated variants.
1805
c0d1d883
MK
1806 Convert i386 target to generic dummy frames.
1807 * i386-tdep.c: Include "symfile.h".
1808 (i386_frameless_signal_p): Consider a function to be frameless if
1809 the pc points at the first instruction of the function.
1810 (i386_frame_chain): Handle (generic) call dummies.
1811 (i386_frame_saved_pc): Likewise.
1812 (i386_frame_init_saved_regs): Remove code dealing with call
1813 dummies on the stack.
1814 (i386_push_dummy_frame): Removed.
1815 (i386_call_dummy_words): Removed.
1816 (i386_fix_call_dummy): Removed.
1817 (i386_push_return_address): New function.
1818 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1819 parameter, and don't call get_current_frame.
1820 (i386_pop_frame): New function.
1821 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1822 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1823 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1824 call_dummy_length to 0, set call_dummy_words to NULL, set
1825 sizeof_call_dummy_words to 0, set fix_call_dummy to
1826 generic_fix_call_dummy, set pc_in_call_dummy to
1827 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1828 generic_push_dummy_frame, set push_return_address to
1829 i386_push_return_address and set frame_chain_valid to
1830 generic_file_frame_chain_valid.
1831
638c1580
ML
18322002-07-04 Michal Ludvig <mludvig@suse.cz>
1833
1834 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1835 byte offsets instead of an array of indexes.
1836 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1837
049ee0e4
AC
18382002-07-03 Andrew Cagney <ac131313@redhat.com>
1839
1840 * gdbarch.sh (struct regcache): Add opaque declaration.
1841 (EXTRACT_RETURN_VALUE): New architecture method.
1842 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1843 * gdbarch.h, gdbarch.c: Regenerate.
1844 * arch-utils.c (legacy_extract_return_value): New function.
1845 * arch-utils.h (legacy_extract_return_value): Declare.
1846 * values.c (value_being_returned): Re-enable code handling
1847 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1848 deprecated_grub_regcache_for_registers call to block handling
1849 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1850 (EXTRACT_RETURN_VALUE): Do not define.
1851
4e0d9804
GS
18522002-07-03 Grace Sainsbury <graces@redhat.com>
1853
1854 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1855 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1856 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1857 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1858 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1859 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1860 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1861 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1862 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1863 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1864 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1865 argument so the function fits the prototype in the architecture
1866 vector.
1867 (mcore_pop_frame): Remove argument so the function fits the
1868 prototype. Use get_current_frame instead of the argument.
1869 (mcore_push_arguments): Change type of struct_return so the
1870 function can be used in the architecture vector.
1871 (mcore_store_struct_return): Add.
1872 (mcore_frame_init_saved_regs): Add.
1873 (mcore_gdbarch_init): Add function calls to replace the macros
1874 removed from tm-mcore.h
1875
36160dc4
AC
18762002-07-03 Andrew Cagney <ac131313@redhat.com>
1877
1878 * infcmd.c (print_return_value): Remove compatibility code calling
1879 deprecated_grub_regcache_for_registers.
1880
1881 * values.c: Include "regcache.h".
1882 (value_being_returned): Update. Use
1883 deprecated_grub_regcache_for_registers to extract the register
1884 buffer address.
1885 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1886 ``struct regcache''.
1887 * Makefile.in (values.o): Add dependency on $(regcache_h).
1888
1889 * inferior.h (run_stack_dummy): Change type of second parameter to
1890 a ``struct regcache''.
1891 * valops.c (hand_function_call): Change type of retbuf to ``struct
1892 regcache''. Allocate using regcache_xmalloc, clean using
1893 make_cleanup_regcache_xfree.
1894 * infcmd.c (run_stack_dummy): Update. Use
1895 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1896
1897 * regcache.c (do_regcache_xfree): New function.
1898 (make_cleanup_regcache_xfree): New function.
1899 * regcache.h (make_cleanup_regcache_xfree): Declare.
1900
e64d9b3d
MH
19012002-07-03 Martin M. Hunt <hunt@redhat.com>
1902
4dd79c29
MH
1903 * event-top.c (command_line_handler): Don't read past
1904 beginning of buffer.
e64d9b3d 1905
4dd79c29
MH
19062002-07-03 Martin M. Hunt <hunt@redhat.com>
1907
e64d9b3d
MH
1908 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1909 struct frame_id.
1910 (varobj_create): Store frame_id for root.
1911 (varobj_gen_name): Use xasprintf.
1912 (varobj_update): Save and restore frame using get_frame_id() and
1913 frame_find_by_id().
1914 (create_child): Use xasprintf.
1915 (new_root_variable): Initialize frame_id.
1916 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1917 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1918 to prevent memory leak.
1919
26e6c56a
AC
19202002-07-03 Andrew Cagney <ac131313@redhat.com>
1921
1922 * valops.c (hand_function_call): Move declaration of retbuf to
1923 start of function, allocate using malloc, add a cleanup but before
1924 the inf_status cleanup, cleanup the buffer. Rename local variable
1925 old_chain to inf_status_cleanup.
1926
f436dd25
MH
19272002-07-03 Martin M. Hunt <hunt@redhat.com>
1928
1929 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1930
1931 * cli/cli-decode.c (cmd_func_p): New function.
1932 (cmd_func): New function.
1933
1934 * command.h: Add cmd_func() and cmd_func_p().
1935
4cfe2084
GS
19362002-07-03 Grace Sainsbury <graces@redhat.com>
1937
1938 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1939 (REGISTER_SIZE): Remove.
1940 (MAX_REGISTER_RAW_SIZE): Remove.
1941 (REGISTER_VIRTUAL_TYPE): Remove.
1942 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1943 (REGISTER_NAME): Remove.
1944 (USE_GENERIC_DUMMY_FRAMES): Remove.
1945 (CALL_DUMMY): Remove.
1946 (CALL_DUMMY_START_OFFSET): Remove.
1947 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1948 (CALL_DUMMY_LOCATION): Remove.
1949 (FIX_CALL_DUMMY): Remove.
1950 (CALL_DUMMY_ADDRESS): Remove.
1951 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1952 (SAVE_DUMMY_FRAME_TOS): Remove.
1953 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1954 (mcore_register_virtual_type): New function.
1955 (mcore_register_byte): New function.
1956 (mcore_register_size): New function.
1957 (mcore_register_name): New function.
1958 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1959 macros removed from tm-mcore.h.
1960 (mcore_dump_tdep): Add.
1961 (_initialize_mcore_tdep): Add gdbarch_register call.
1962
4fd667e9
MK
19632002-07-03 Mark Kettenis <kettenis@gnu.org>
1964
1965 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1966 frameless_look_for_prologue, such that we actually call this
1967 function.
1968
42f99ac2
JB
19692002-07-02 Joel Brobecker <brobecker@gnat.com>
1970
1971 * frame.h (frame_address_in_block): New function.
1972
1973 * blockframe.c (frame_address_in_block): New function extracted
1974 from get_frame_block().
1975 (get_frame_block): Use frame_address_in_block().
1976 (block_innermost_frame): Use frame_address_in_block() to match
1977 the frame pc address against the block boundaries rather than
1978 the frame pc directly. This prevents a failure when a frame pc
1979 is actually a return-address pointing immediately after the end
1980 of the given block.
1981
103a1597 19822002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
1983
1984 * MAINTAINERS: Add self under write after approval.
1985
19862002-07-02 Grace Sainsbury <graces@redhat.com>
1987
103a1597
GS
1988 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1989 used in architecture vector. The default is
1990 m68k_local_breakpoint_from_pc.
1991 (m68k_local_breakpoint_from_pc): Add.
1992 (enum): Add register numbers from tm-m68k.h.
1993 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1994 vector.
1995 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1996 GDB_MULTI_ARCH_PARTIAL.
1997 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1998 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1999 m68k-tdep.c.
2000 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2001 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2002 to enum in m68k-tdep.c
2003
7a5a0534
JB
20042002-07-02 Joel Brobecker <brobecker@gnat.com>
2005
2006 * solib-osf.c (open_map): Compute the list of shared libraries
2007 loaded by the inferior, rather than the list of libraries loaded
2008 by GDB itself. Otherwise, GDB ends up reading the symbols from
2009 the wrong shared libraries...
2010
6f558d74
MK
20112002-07-02 Mark Kettenis <kettenis@gnu.org>
2012
b7d15bf7
MK
2013 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2014 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2015 macros.
2016 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2017 Remove functions.
2018 (FRAMELESS_SIGNAL): Remove function.
2019 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2020 i386_linux_saved_pc_after_call): Removed.
2021 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2022 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2023 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2024
6bff26de
MK
2025 * i386-tdep.c (i386_frameless_signal_p): New function.
2026 (i386_frame_chain): Deal with frameless signals.
2027 (i386_sigtramp_saved_sp): New function.
2028 (i386_frame_saved_pc): Deal with frameless signals.
2029 (i386_saved_pc_after_call): Make sure the correct value is
2030 returned just after entry into a sigtramp.
2031 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2032 i386fbsd4_sc_sp_offset): New variables.
2033 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2034 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2035 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2036 similiar to what we already did for sc_pc_offset.
2037 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2038 tdep->sc_sp_offset.
2039
6f558d74
MK
2040 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2041
145564b7
ML
20422002-07-02 Michal Ludvig <mludvig@suse.cz>
2043
2044 * config/i386/tm-x86-64linux.h: New.
2045 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2046 definitions.
2047 * config/i386/nm-x86-64.h: Rename to ...
2048 * config/i386/nm-x86-64linux.h: ... this one.
2049 * config/i386/x86-64linux.mh: Reflect the above change.
2050
3a1e71e3
MK
20512002-07-01 Mark Kettenis <kettenis@gnu.org>
2052
21d0e8a4
MK
2053 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2054 with sigcontext_addr. Add sc_sp_offset.
2055 (i386bsd_sigtramp_saved_pc): Remove prototype.
2056 (i386bsd_sicontext_addr): Add prototype.
2057 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2058 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2059 (i386_svr4_sigtramp_saved_pc): Removed.
2060 (i386_svr4_sigcontext_addr): New function.
2061 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2062 Initialize tdep->sigcontext_addr instead. Initialize
2063 tdep->sc_pc_offset and tdep->sc_sp_offset.
2064 (i386_gdbarch_init): Likewise.
2065 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2066 any more.
2067 (i386bsd_sigtramp_saved_pc): Remove function.
2068 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2069 Initialize tdep->sigcontext_addr instead. Initialize
2070 tdep->sc_pc_offset.
2071 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2072 of tdep->sigtramp_saved_pc.
2073 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2074 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2075 instead.
2076
3a1e71e3
MK
2077 * i386-tdep.c (i386_frameless_function_invocation,
2078 i386_frame_num_args, i386_frame_init_saved_regs,
2079 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2080 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2081 i386_extract_return_value, i386_store_return_value,
2082 i386_extract_struct_value_address, i386_register_virtual_type,
2083 i386_register_convertible, i386_register_convert_to_virtual,
2084 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2085 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2086 static.
2087
52e9098c
MK
20882002-07-01 Mark Kettenis <kettenis@gnu.org>
2089
77b13a25
MK
2090 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2091
52e9098c
MK
2092 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2093 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2094 this macro. Include "value.h".
2095
1b372fff
AS
20962002-06-30 Aidan Skinner <aidan@velvet.net>
2097
2098 * ada-exp.tab.c: remove as it's a generated file
2099 * ada-lex.c: remove as it's a generated file
2100
9c5045b5
MK
21012002-06-30 Mark Kettenis <kettenis@gnu.org>
2102
4a93c5bb
MK
2103 * config/i386/tm-i386.h (struct frame_info, struct
2104 frame_saved_regs, struct value, struct type): Remove forward
2105 declarations.
2106
322d4fe0
MK
2107 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2108 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2109 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2110 (FILL_FPXREGSET): Define.
2111
fdd8263d
MK
2112 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2113
482e577b
MK
2114 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2115 i[3456]86-*-netbsd* case.
2116 * config/i386/tm-obsd.h: Removed.
2117 * config/i386/obsd.mt: Removed.
2118 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2119 core-aout.o.
2120 (MH_CFLAGS): Add -DYYDEBUG=0.
2121
6916549a
MK
2122 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2123 i386nbsd_sc_pc_offset on OpenBSD too.
2124
9c5045b5
MK
2125 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2126 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2127 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2128 define.
2129 * i386bsd-tdep.c: Include "arch-utils.h".
2130 (i386bsd_aout_in_solib_call_trampoline): New function.
2131 (i386bsd_init_abi): Set in_solib_call_trampoline to
2132 i386bsd_aout_in_solib_call_trampoline.
2133 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2134 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2135
aa84d1bb
AC
21362002-06-28 Andrew Cagney <ac131313@redhat.com>
2137
2138 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2139 (struct obstack, struct bcache): Add opaque declarations.
2140 * Makefile.in (macrotab_h): Update
2141
b4d83933
AC
21422002-06-28 Andrew Cagney <ac131313@redhat.com>
2143
2144 * blockframe.c (generic_find_dummy_frame): Change return type to
2145 ``struct regcache''.
2146 (struct dummy_frame): Replace field ``registers'' with regcache, a
2147 struct regcache object.
2148 (generic_find_dummy_frame): Update.
2149 (generic_push_dummy_frame): Update. Use regcache_xfree,
2150 regcache_xmalloc and regcache_cpy.
2151 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2152 regcache_xfree.
2153 (deprecated_generic_find_dummy_frame): Update.
2154 (generic_read_register_dummy): Update. Use
2155 regcache_read_as_address.
2156 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2157 (generic_get_saved_register): Update. Use regcache_read.
2158
08c0b5bc
AC
21592002-06-28 Andrew Cagney <ac131313@redhat.com>
2160
2161 * Makefile.in (objfiles_h): Add $(bcache_h).
2162 * objfiles.h: Include "bcache.h".
2163
2164 * Makefile.in (symtab_h): Remove $(bcache_h).
2165 * symtab.h: Do not include "bcache.h".
2166
1f89801a
AC
21672002-06-28 Andrew Cagney <ac131313@redhat.com>
2168
2169 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2170 generic_func_frame_chain_valid.
2171
b9644b58
DB
21722002-06-28 David O'Brien <obrien@FreeBSD.org>
2173
2174 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2175 * config/i386/tm-fbsd.h: Likewise.
2176
dd486634
AC
21772002-06-28 Andrew Cagney <ac131313@redhat.com>
2178
2179 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2180 generic_unwind_get_saved_register.
2181
0b434a00
AC
21822002-06-27 Andrew Cagney <ac131313@redhat.com>
2183
2184 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2185 * regcache.c (supply_register): Add missing argument to
2186 register_buffer call.
2187
f30e5a77
AC
21882002-06-27 Andrew Cagney <ac131313@redhat.com>
2189
2190 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2191 Solaris /bin/grep does not not like it. From Peter Schauer.
2192
9f064c95
TT
21932002-06-26 Tom Tromey <tromey@redhat.com>
2194
2195 * command.h (add_setshow_cmd): Declare.
2196 (add_setshow_cmd_full): Declare.
2197 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2198 returns void. Use add_setshow_cmd_full.
2199 (add_setshow_cmd_full): New function.
2200 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2201 (add_setshow_boolean_cmd): Likewise.
2202
099c7589
JT
22032002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2204
2205 * config/vax/tm-vax.h: Protect from multiple inclusion.
2206 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2207 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2208 * config/vax/tm-vaxbsd.h: ...here. New file.
2209 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2210
1d049c5e
JT
22112002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2212
2213 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2214 (BELIEVE_PCC_PROMOTION): Remove.
2215 (AP_REGNUM): Move to...
2216 * config/vax/nm-vax.h: ...here.
2217 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2218 (vax_breakpoint_from_pc): New function.
2219 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2220 and gdbarch_believe_pcc_promotion.
2221
4791e091
JT
22222002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2223
2224 * Makefile.in (vax_tdep_h): Define.
2225 (vax-tdep.o): Use $(vax_tdep_h).
2226 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2227 (vax_dump_tdep): New function.
2228 (_initialize_vax_tdep): Register vax_dump_tdep.
2229 * vax-tdep.h: Include osabi.h.
2230 (struct gdbarch_tdep): New.
2231
da130f98
AC
22322002-06-26 Andrew Cagney <cagney@redhat.com>
2233
2234 * frame.h (deprecated_generic_find_dummy_frame): Rename
2235 generic_find_dummy_frame.
2236 * blockframe.c (generic_find_dummy_frame): Make static.
2237 (deprecated_generic_find_dummy_frame): New function.
2238 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2239 generic_find_dummy_frame with deprecated_find_dummy_frame.
2240 (sh64_nofp_frame_init_saved_regs): Ditto.
2241 (sh_fp_frame_init_saved_regs): Ditto.
2242 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2243 (s390_frame_chain): Ditto.
2244 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2245
6300c360
GS
22462002-06-26 Grace Sainsbury <graces@redhat.com>
2247
2248 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2249 gdbarch vector are at the top.
2250 (NUM_REGS): Remove.
2251 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2252 (FRAME_ARGS_ADDRESS): Remove.
2253 (FRAME_LOCALS_ADDRESS): Remove.
2254 (FRAME_NUM_ARGS): Remove.
2255 (FRAME_ARGS_SKIP): Remove.
2256 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2257 (m68k_gdbarch_init): Add gdbarch initializations for macros
2258 undefined in tm-m68k.h
2259
1c617db8
GS
22602002-06-26 Grace Sainsbury <graces@redhat.com>
2261
2262 * monitor.h: Add the function regname to monitor_ops
2263 structure. This way NUM_REGS does not have to be a constant.
2264 * monitor.c (monitor_fetch_register): Added support for regname
2265 function. The function is called if the array regnames is NULL.
2266 (monitor_store_register): Same.
da130f98
AC
2267 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2268 regnames array.
1c617db8
GS
2269 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2270 cpu32bug_cmds.regname to point to new function.
2271 * abug-rom.c (abug_regname): Same as above.
2272 (init_abug_cmds): Same.
2273 * dbug-rom.c (dbug_regname): Same as above.
2274 (init_dbug_cmds): Same.
2275 * remote-est.c (est_regname): Same.
2276 (init_est_cmds): Same.
2277 * rom68k-rom.c (rom68k_regname): Same.
2278 (init_rom68k_cmds): Same.
2279
ea9365bb
TT
22802002-06-25 Tom Tromey <tromey@redhat.com>
2281
2282 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2283
72cec141
AC
22842002-06-25 Andrew Cagney <cagney@redhat.com>
2285
2286 * infrun.c (stop_registers): Change variable's type to ``struct
2287 regcache'''.
2288 (xmalloc_inferior_status): Delete function.
2289 (free_inferior_status): Delete function.
2290 (normal_stop): Use regcache_cpy.
2291 (struct inferior_status): Change type of fields ``stop_registers''
2292 and ``registers'' to ``struct regcache''.
2293 (write_inferior_status_register): Use regcache_write.
2294 (save_inferior_status): Instead of calling
2295 xmalloc_inferior_status, allocate the inf_status buffer directly.
2296 Use regcache_dup_no_passthrough and regcache_dup to save the
2297 buffers.
2298 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2299 Replace the stop_registers regcache instead of overriding it. Use
2300 regcache_xfree. Instead of calling free_inferior_status, xfree
2301 the buffer directly.
2302 (discard_inferior_status): Use regcache_xfree. Instead of calling
2303 free_inferior_status, xfree the buffer directly.
2304 (build_infrun): Use regcache_xmalloc.
2305 (_initialize_infrun): Delete redundant call to build_infrun.
2306
2307 * Makefile.in (infcmd.o): Add $(regcache_h).
2308
2309 * infcmd.c: Include "regcache.h".
2310 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2311 obtain the address of `stop_registers' register buffer.
2312 (print_return_value): Ditto.
2313
2314 * inferior.h (struct regcache): Add opaque declaration.
2315 (stop_registers): Change variable's declared type to ``struct
2316 regcache''.
2317
defc6f8c
TT
23182002-06-24 Tom Tromey <tromey@redhat.com>
2319
c0e624e7
TT
2320 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2321 * target.c (initialize_targets): Fixed typo in
2322 trust-readonly-sections `show' documentation.
2323
defc6f8c
TT
2324 * main.c: Marked all strings with _().
2325
2b236d82
DH
23262002-06-24 Don Howard <dhoward@redhat.com>
2327
2328 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2329 that means max CORE_ADDR+1.
2330 (lookup_mem_region): Ditto.
2331 (mem_info_command): Ditto.
2332
942dc0e9
GS
23332002-06-24 Grace Sainsbury <graces@redhat.com>
2334
2335 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2336 (REGISTER_BYTES_OK): Remove.
2337 (REGISTER_BYTES): Remove.
2338 (STORE_STRUCT_RETURN): Remove.
2339 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2340 (STORE_RETURN_VALUE): Remove.
2341 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2342 (FRAME_CHAIN): Remove.
2343 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2344 (FRAME_SAVED_PC): Remove.
2345 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2346 (m68k_store_struct_return): Add.
2347 (m68k_deprecated_extract_return_value): Add.
2348 (m68k_deprecated_extract_struct_value_address): Add.
2349 (m68k_store_return_value): Add.
2350 (m68k_frame_chain): Add.
2351 (m68k_frameless_function_invocation): Add.
2352 (m68k_frame_saved_pc): Add.
2353 (m68k_gdbarch_init): added set_gdbarch calls for new
2354 functions and deleted macros.
2355
03c30d4d
TT
23562002-06-23 Tom Tromey <tromey@redhat.com>
2357
2358 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2359 (ALLDEPFILES): Likewise.
2360 (udiheaders): Removed.
2361 (udip2soc.o): Likewise.
2362 (udi2go32.o): Likewise.
2363 (udr.o): Likewise.
2364 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2365
37e71372
AC
23662002-06-22 Andrew Cagney <ac131313@redhat.com>
2367
06a6ac57
AC
2368 * infrun.c (_initialize_infrun): Delete unnecessary call to
2369 build_infrun.
2370
37e71372
AC
2371 * regcache.h: Update comments describing the regcache_cpy family
2372 of functions.
2373 (regcache_save, regcache_restore): Delete declaration.
2374 (regcache_save_no_passthrough): Delete declaration.
2375 (regcache_restore_no_passthrough): Delete declaration.
2376 * regcache.c (regcache_save): Delete function.
2377 (regcache_save_no_passthrough): Delete function.
2378 (regcache_restore): Delete function.
2379 (regcache_restore_no_passthrough): Delete function.
2380
78f6d055
AC
23812002-06-21 Andrew Cagney <ac131313@redhat.com>
2382
2383 * config/m68k/tm-m68k.h: Fix typo.
2384 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2385 (m68k_frame_init_saved_regs): Declare.
2386
78b119cb
JB
23872002-06-21 Jim Blandy <jimb@redhat.com>
2388
2389 Remove some vestiges of Harris 88k support.
2390 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2391 register numbering quirk.
2392 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2393 odd symbols occurring in Harris 88k ELF targets.
2394
0fbb3da7
TT
23952002-06-21 Tom Tromey <tromey@redhat.com>
2396
2397 * gdb_locale.h: New file.
2398 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2399 (defs_h): Added gdb_locale.h.
2400 * configure, config.in: Rebuilt.
2401 * configure.in (PACKAGE): Define.
2402 * defs.h: Include gdb_locale.h.
2403 * main.c (captured_main): Call setlocale, bindtextdomain,
2404 textdomain.
2405
456f8b9d
DB
24062002-06-21 Dave Brolley <brolley@redhat.com>
2407
2408 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2409 * config/frv/frv.mt: New file.
2410 * config/frv/tm-frv.h: New file.
2411 * configure.tgt: Support frv-*-*.
2412 * Makefile.in (frv-tdep.o): New target.
2413 * frv-tdep.c: New file.
2414 * NEWS: Mention frv.
2415
cdd463f9
DB
24162002-06-21 Dave Brolley <brolley@redhat.com>
2417
2418 * MAINTAINERS: Add self to "Write After Approval" list.
2419
5d3ed2e3
GS
24202002-06-21 Grace Sainsbury <graces@redhat.com>
2421
2422 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2423 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2424 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2425 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2426 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2427
2428 * m68k-tdep.c: Include arch-utils.h
2429 (m68k_register_raw_size): Add.
2430 (m68k_register_virtual_size): Add.
2431 (m68k_register_virtual_type): Add.
2432 (m68k_register_name): Add.
2433 (m68k_stack_align): Add.
2434 (m68k_register_byte): Add.
2435 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2436 tm-m68k.h.
2437
7f8e7424
GS
24382002-06-21 Grace Sainsbury <graces@redhat.com>
2439
a2c6a6d5 2440 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2441 m68k_find_saved_regs.
2442 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2443 references to it with frame->saved_regs.
7f8e7424
GS
2444 (m68k_gdbarch_init): Added function calls to initialize the
2445 gdbarch structure.
a2c6a6d5
GS
2446 (m68k_fix_call_dummy): Add.
2447 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2448 (CALL_DUMMY): Remove.
2449 (CALL_DUMMY_LENGTH): Remove.
2450 (CALL_DUMMY_START_OFFSET): Remove.
2451 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2452 (FIX_CALL_DUMMY): Remove.
2453 (PUSH_DUMMY_FRAME): Remove.
2454 (POP_FRAME): Remove.
7f8e7424 2455
f461f5cf
PM
24562002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2457
2458 * parse.c (parse_fprintf): New function used to avoid calls to
2459 fprintf in bison parser generated debug code.
2460 * parser-defs.h: Declaration of new parse_fprintf function.
2461 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2462 Set YYDEBUG to 1 by default.
2463 Set YYFPRINTF as parse_fprintf.
2464
7f0c12ed
ML
24652002-06-21 Michal Ludvig <mludvig@suse.cz>
2466
2467 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2468 encoding anymore.
2469 (pointer_encoding, enum ptr_encoding): New.
2470 (execute_cfa_program): Take care about pointer encoding.
2471 (dwarf2_build_frame_info): Only call parse_frame_info for
2472 .debug_frame and .eh_frame.
2473 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2474 fixed augmentation handling, added relative addressing,
2475 ignore duplicate FDEs. Added comments.
19d833a2 2476 * dwarf2cfi.c: Reindented.
7f0c12ed 2477
87c4a039
EZ
24782002-06-20 Elena Zannoni <ezannoni@redhat.com>
2479
2480 * event-top.c (command_handler): Don't use space_at_cmd_start
2481 unless there is sbrk() on the host. Assign time and space data
2482 to union fields of the appropriate length.
2483
1cf877ad
ML
24842002-06-20 Michal Ludvig <mludvig@suse.cz>
2485
2486 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2487 x86_64_register_name. Return type changed to 'const char *'.
2488 (x86_64_register_name2nr): Rename to x86_64_register_number.
2489 (x86_64_gdbarch_init): Update to reflect the change.
2490 * x86-64-tdep.h: Ditto.
2491 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2492 (supply_fpregset): Ditto.
2493
3fadccb3
AC
24942002-06-19 Andrew Cagney <cagney@redhat.com>
2495
2496 * regcache.h: Update copyright.
2497 (struct regcache, struct gdbarch): Add opaque declarations.
2498 (current_regcache): Declare global variable.
2499 (regcache_read, regcache_write): Add gdbarch parameter.
2500 (regcache_save, regcache_save_no_passthrough)
2501 (regcache_restore, regcache_restore_no_passthrough)
2502 (regcache_dup, regcache_dup_no_passthrough)
2503 (regcache_cpy, regcache_cpy_no_passthrough)
2504 (deprecated_grub_regcache_for_registers)
2505 (deprecated_grub_regcache_for_register_valid)
2506 (regcache_valid_p): Add function declarations.
2507
2508 * regcache.c: Update copyright.
2509 (regcache_descr_handle): New global variable.
2510 (struct regcache_descr): Define.
2511 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2512 (regcache_descr, xfree_regcache_descr): New functions.
2513 (struct regcache): Define.
2514 (regcache_xmalloc, regcache_xfree): New functions.
2515 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2516 (regcache_dup, regcache_dup_no_passthrough): New functions.
2517 (regcache_valid_p, regcache_read_as_address): New functions.
2518 (deprecated_grub_regcache_for_registers): New function.
2519 (deprecated_grub_regcache_for_register_valid): New function.
2520 (current_regcache): New global variable.
2521 (register_buffer): Add regcache parameter. Update calls.
2522 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2523 (read_register_gen, write_register_gen): Update register_buffer
2524 call. Test for legacy_p instead of gdbarch_register_read_p or
2525 gdbarch_register_write_p.
2526 (regcache_collect): Update register_buffer call.
2527 (build_regcache): Rewrite. Use deprecated grub functions.
2528 (regcache_save, regcache_save_no_passthrough): New functions.
2529 (regcache_restore, regcache_restore_no_passthrough): New
2530 functions.
2531 (_initialize_regcache): Create the regcache_data_handle. Swap
2532 current_regcache global variable.
2533
2534 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2535 parameter to regcache_read and regcache_write calls.
2536 (sh4_register_read): Ditto.
2537 (sh64_pseudo_register_read): Ditto.
2538 (sh64_register_read): Ditto.
2539 (sh_pseudo_register_write): Ditto.
2540 (sh4_register_write): Ditto.
2541 (sh64_pseudo_register_write): Ditto.
2542 (sh64_register_write): Ditto.
2543
2544 * defs.h (XCALLOC): Define.
2545
152d9db6
GS
25462002-06-19 Grace Sainsbury <graces@redhat.com>
2547
2548 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2549 * m68k-tdep.c (m68k_gdbarch_init): Added.
2550 (m68k_dump_tdep): Added.
2551
170911c7
DJ
25522002-06-19 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * ada-lang.c (fill_in_ada_prototype): Update comment.
2555
2e4ebe70
DJ
25562002-06-19 Daniel Jacobowitz <drow@mvista.com>
2557
2558 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2559 MIPS_ABI_LAST.
2560 (mips_abi_string, mips_abi_strings): New.
2561 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2562 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2563 tdep->mips_abi_string. Honor mips_abi_string. Default to
2564 O32 if no ABI is found.
2565 (mips_dump_tdep): Use mips_abi_strings.
2566 (mips_abi_update): New function.
2567 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2568 ``set mips abi'' and ``show mips abi''. Check the size of
2569 mips_abi_strings.
2570
16775908
AC
25712002-06-19 Andrew Cagney <cagney@redhat.com>
2572
2573 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2574 constant.
2575
5051bfa4 25762002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2577
5051bfa4
JB
2578 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2579 current frame using only the first stack size adjustment. All
2580 subsequent size adjustments are not considered to be part of
2581 the "static" part of the current frame.
2582 Compute the address of the saved registers relative to the
2583 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2584 in use in this frame.
2585
56468235
DH
25862002-06-18 Don Howard <dhoward@redhat.com>
2587
2588 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2589 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2590 suggesting this solution.
2591
0b624158
AC
25922002-06-18 Andrew Cagney <ac131313@redhat.com>
2593
2594 * config/romp/xm-rtbsd.h: Delete file.
2595 * config/romp/rtbsd.mh: Delete file.
2596
221ea385
KS
25972002-06-18 Keith Seitz <keiths@redhat.com>
2598
2599 * breakpoint.c (condition_command): Post breakpoint_modify
2600 when a condition is added to an existing breakpoint.
2601 (commands_command): Likewise for commands.
2602 (set_ignore_count): Likewise for ignore counts.
2603 If no tty, do not simply return, still need to send event
2604 notification.
2605 (ignore_command): Only print a newline if the command came
2606 from a tty.
2607 Don't call breakpoints_changed, since this is now properly
2608 handled by set_ignore_count.
2609
5402eed1
AC
26102002-06-18 Andrew Cagney <cagney@redhat.com>
2611
2612 * MAINTAINERS: Note that cris-elf target can be compiled with
2613 -Werror.
2614 * cris-tdep.c (cris_register_name): Make return type constant.
2615 (cris_breakpoint_from_pc): Ditto.
2616
cc22880b
ML
26172002-06-18 Michal Ludvig <mludvig@suse.cz>
2618
2619 * frame.h (struct frame_info): Change type of context to
2620 'struct context'.
2621
fa88f677
AC
26222002-06-17 Andrew Cagney <cagney@redhat.com>
2623
2624 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2625 pointer.
2626 * gdbarch.h, gdbarch.c: Regenerate.
2627 * config/mips/tm-mips.h (mips_register_name): Update.
2628 * i386-tdep.h (i386_register_name): Update.
2629 * mips-tdep.c (mips_register_name): Update
2630 * alpha-tdep.c (alpha_register_name): Update.
2631 * arch-utils.c (legacy_register_name): Update.
2632 * arch-utils.h (legacy_register_name): Update.
2633 * avr-tdep.c (avr_register_name): Update.
2634 * ia64-tdep.c (ia64_register_name): Update.
2635 * i386-tdep.c (i386_register_name): Update.
2636 * sparc-tdep.c (sparc32_register_name): Update.
2637 (sparc64_register_name): Update.
2638 (sparclite_register_name): Update.
2639 (sparclet_register_name): Update.
2640 * sh-tdep.c (sh_generic_register_name): Update.
2641 (sh_sh_register_name): Update.
2642 (sh_sh3_register_name): Update.
2643 (sh_sh3e_register_name): Update.
2644 (sh_sh_dsp_register_name): Update.
2645 (sh_sh3_dsp_register_name): Update.
2646 (sh_sh4_register_name): Update.
2647 (sh_sh64_register_name): Update.
2648 * s390-tdep.c (s390_register_name): Update.
2649 * rs6000-tdep.c (rs6000_register_name): Update.
2650 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2651 (ns32k_register_name_32382): Update.
2652 * d10v-tdep.c (d10v_ts2_register_name): Update.
2653 (d10v_ts3_register_name): Update.
2654 * xstormy16-tdep.c (xstormy16_register_name): Update.
2655 * vax-tdep.c (vax_register_name): Update.
2656 * v850-tdep.c (v850_register_name): Update.
2657 * m68hc11-tdep.c (m68hc11_register_name): Update.
2658 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2659 (am33_register_name): Update.
2660
ea1e7ef6
GS
26612002-06-17 Grace Sainsbury <graces@redhat.com>
2662
2663 * m68k-tdep.c: Reindented.
2664
9b02dd1b
AC
26652002-06-17 Andrew Cagney <ac131313@redhat.com>
2666
2667 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2668 list of predefined types.
2669
8758dec1
MK
26702002-06-16 Mark Kettenis <kettenis@gnu.org>
2671
b6197528
MK
2672 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2673 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2674 REGISTER_CONVERT_TO_RAW): Remove defines.
2675 (i386_register_virtual_type, i386_register_convertible,
2676 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2677 Remove prototypes.
2678 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2679 macros mentioned above.
2680
82b47e62
MK
2681 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2682 (i386lynx_saved_pc_after_call): Remove prototype.
2683 * i386ly-tdep.c: Include "i386-tdep.h".
2684 (i386lynx_saved_pc_after_call): Make static. Use
2685 read_memory_nobpt instead of read_memory. Use
2686 read_memory_unsigned_integer instead of read_memory_integer.
2687 (i386lynx_init_abi): New function.
2688 (i386lynx_coff_osabi_sniffer): New function.
2689 (_initialize_i386bsd_tdep): New function.
2690
8758dec1
MK
2691 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2692 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2693 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2694 (i386_fix_call_dummy): Remove prototype.
2695 * i386-tdep.c (i386_call_dummy_words): New variable.
2696 (i386_gdbarch_init): Adjust for removal of the
2697 macros mentioned above.
2698
e9e68a56
AC
26992002-06-15 Andrew Cagney <ac131313@redhat.com>
2700
2701 * command.h (add_setshow_auto_boolean_cmd): Replace
2702 add_set_auto_boolean_cmd.
2703 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2704 add_set_auto_boolean_cmd.
2705 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2706 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2707 mask-address'' command.
2708 (show_mask_address): Add cmd parameter.
2709 * remote.c (add_packet_config_cmd): Update. Change type of
2710 set_func and show_func to cmd_sfunc_ftype.
2711 (_initialize_remote): Update `set remote Z-packet'
2712 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2713 (show_remote_protocol_e_packet_cmd): Ditto.
2714 (show_remote_protocol_E_packet_cmd): Ditto.
2715 (show_remote_protocol_P_packet_cmd): Ditto.
2716 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2717 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2718 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2719 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2720 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2721 (show_remote_protocol_Z_packet_cmd): Ditto.
2722 (show_remote_protocol_binary_download_cmd): Ditto.
2723 (show_remote_cmd): Pass NULL to all of above.
2724
fc08ec52
MK
27252002-06-15 Mark Kettenis <kettenis@gnu.org>
2726
2727 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2728 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2729 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2730 POP_FRAME): Remove defines.
2731 (i386_push_arguments, i386_store_struct_return,
2732 i386_extract_return_value, i386_store_return_value,
2733 i386_extract_struct_value_address, i386_push_dummy_frame,
2734 i386_pop_frame): Renove prototypes.
2735 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2736 macros mentioned above.
2737
e707bbc2
AC
27382002-06-15 Andrew Cagney <ac131313@redhat.com>
2739
2740 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2741 add_set_boolean_cmd.
2742 (add_setshow_cmd): New function.
2743 * command.h (add_setshow_boolean_cmd): Replace
2744 add_set_boolean_cmd.
2745 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2746 and ``set rdiromatzero''.
2747 * maint.c (_initialize_maint_cmds): Update commented out code.
2748 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2749 * target.c (initialize_targets): Update `set
2750 trust-readonly-sections'.
2751 * remote.c (_initialize_remote): Update `set remotebreak'.
2752
42fdc8df
MK
27532002-06-15 Mark Kettenis <kettenis@gnu.org>
2754
93924b6b
MK
2755 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2756 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2757 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2758 fit into multi-arch framework.
2759 (i386_breakpoint_from_pc): New function.
2760 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2761 above.
2762
42fdc8df
MK
2763 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2764 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2765 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2766 (i386_frameless_function_invocation, i386_frame_num_args,
2767 i386_frame_init_saved_regs): Remove prototypes.
2768 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2769 macros mentioned above.
2770
9773a94b
AC
27712002-06-15 Andrew Cagney <ac131313@redhat.com>
2772
2773 * cli/cli-decode.c (set_cmd_cfunc): Update.
2774 (set_cmd_sfunc): Update.
2775 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2776 (set_cmd_sfunc, set_cmd_cfunc): Update.
2777 * cli/cli-decode.h: Update.
2778
6e157172
MK
27792002-06-15 Mark Kettenis <kettenis@gnu.org>
2780
2781 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2782 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2783
7f19b9a2
AC
27842002-06-15 Andrew Cagney <ac131313@redhat.com>
2785
2786 * defs.h (auto_boolean): Declare enum.
2787 * command.h (cmd_auto_boolean): Delete enum.
2788 * mips-tdep.c (mask_address_var): Update.
2789 (mips_mask_address_p): Update.
2790 (show_mask_address): Update.
2791 * remote.c (struct packet_config): Update.
2792 (update_packet_config): Update.
2793 (show_packet_config_cmd): Update.
2794 (packet_ok): Update.
2795 (add_packet_config_cmd): Update.
2796 (_initialize_remote):
2797 * command.h: Update.
2798 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2799 (do_setshow_command): Update.
2800 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2801 * cli/cli-decode.h: Update.
2802
1cf88de5
MK
28032002-06-15 Mark Kettenis <kettenis@gnu.org>
2804
22ba8cf2
MK
2805 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2806 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2807 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2808 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2809 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2810 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2811
762c5349
MK
2812 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2813 list of DJGPP COFF targets.
2814
091198bb
MK
2815 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2816 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2817 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2818 (FP0_REGNUM): Remove define.
2819 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2820 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2821 (i386_register_virtual_size): Remove protoype.
2822 * i386-tdep.c (i386_register_virtual_size): Removed.
2823 (i386_extract_return_value, i386_store_return_value): Use
2824 FP0_REGNUM instead of NUM_FREGS to determine whether the
2825 floating-point registers are available.
2826 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2827 Adjust for removal of macros mentioned above.
2828
28292002-06-15 Mark Kettenis <kettenis@gnu.org>
2830
fcc9bf01
MK
2831 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2832 comments.
2833 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2834 Remove prototypes.
2835 (supply_gregset, fill_gregset): Remove use of register keyword and
2836 remove declaration for regmap. Use I386_NUM_GREGS instead of
2837 NUM_REGS and NUM_FREGS.
2838 (FPREGSET_FSAVE_OFFSET): Remove.
2839 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2840 NUM_FREGS to determine whether the floating-point registers are
2841 available.
2842
65e78234
MK
2843 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2844 gnu_store_registers): Replace usage of NUM_GREGS with
2845 I386_NUM_GREGS.
2846
98df6387
MK
2847 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2848 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2849 usage of NUM_GREGS with I386_NUM_GREGS.
2850
099a9414
MK
2851 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2852
57976e88
MK
2853 * i386bsd-nat.c: Include "i386-tdep.h".
2854 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2855 I386_NUM_GREGS.
2856
b335f4a6
MK
2857 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2858 and associated comment. They no longer make any sense, since we
2859 don't use this file anymore on Linux.
2860
1cf88de5
MK
2861 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2862 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2863 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2864 elements in these arrays.
2865 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2866 MAX_NUM_REGS.
2867
daa66587
MK
28682002-06-15 Mark Kettenis <kettenis@gnu.org>
2869
2870 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2871 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2872
26e9b323
AC
28732002-06-14 Andrew Cagney <cagney@redhat.com>
2874
2875 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2876 EXTRACT_RETURN_VALUE.
2877 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2878 EXTRACT_STRUCT_VALUE_ADDRESS.
2879 * gdbarch.h, gdbarch.c: Regenerate.
2880
2881 * values.c (value_being_returned): Handle
2882 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2883 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2884
2885 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2886 * arm-tdep.c (arm_gdbarch_init): Update.
2887 * avr-tdep.c (avr_gdbarch_init): Update.
2888 * cris-tdep.c (cris_gdbarch_init): Update.
2889 * d10v-tdep.c (d10v_gdbarch_init): Update.
2890 * ia64-tdep.c (ia64_gdbarch_init): Update.
2891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2892 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2893 * s390-tdep.c (s390_gdbarch_init): Update.
2894 * sh-tdep.c (sh_gdbarch_init): Update.
2895 * s390-tdep.c (s390_gdbarch_init): Update.
2896 * sparc-tdep.c (sparc_gdbarch_init): Update.
2897 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2898 * v850-tdep.c (v850_gdbarch_init): Update.
2899 * vax-tdep.c (vax_gdbarch_init): Update.
2900 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2902
2903 * config/arc/tm-arc.h: Update.
2904 * config/d30v/tm-d30v.h: Update.
2905 * config/fr30/tm-fr30.h: Update.
2906 * config/h8300/tm-h8300.h: Update.
2907 * config/h8500/tm-h8500.h: Update.
2908 * config/i386/tm-i386.h: Update.
2909 * config/i386/tm-ptx.h: Update.
2910 * config/i386/tm-symmetry.h: Update.
2911 * config/i960/tm-i960.h: Update.
2912 * config/m32r/tm-m32r.h: Update.
2913 * config/m68k/tm-delta68.h: Update.
2914 * config/m68k/tm-linux.h: Update.
2915 * config/m68k/tm-m68k.h: Update.
2916 * config/m88k/tm-m88k.h: Update.
2917 * config/mcore/tm-mcore.h: Update.
2918 * config/mips/tm-mips.h: Update.
2919 * config/mn10200/tm-mn10200.h: Update.
2920 * config/pa/tm-hppa.h: Update.
2921 * config/pa/tm-hppa64.h: Update.
2922 * config/sparc/tm-sp64.h: Update.
2923 * config/sparc/tm-sparc.h: Update.
2924 * config/sparc/tm-sparclet.h: Update.
2925 * config/z8k/tm-z8k.h: Update.
2926
5179e78f
AC
29272002-06-14 Andrew Cagney <cagney@redhat.com>
2928
2929 * Makefile.in (i386_linux_tdep_h): Define.
2930 (i386_tdep_h, i387_tdep_h): Define.
2931 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2932 $(i386_tdep_h) and $(i387_tdep_h).
2933 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2934
8201327c
MK
29352002-06-14 Mark Kettenis <kettenis@gnu.org>
2936
edf393ac
MK
2937 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2938 Already covered by the default.
2939
896fb97d
MK
2940 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2941 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2942 (i386_gdbarch_init): Initialize long_double_format and long_double
2943 bit.
2944
8201327c
MK
2945 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2946 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2947 Move these to ...
2948 * config/i386/i386sol2.mh: ... here.
2949 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2950 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2951 (SIGCONTEXT_PC_OFFSET): Remove define.
2952 (IN_SIGTRAMP): Remove define.
2953 * i386-sol2-tdep.c: New file.
2954
2955 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2956 * config/i386/tm-i386nw.h: Removed.
2957
2958 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2959 USE_STRUCT_CONVENTION): Remove defines.
2960 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2961 (get_longjmp_target): Remove prototype.
2962 (IN_SIGTRAMP): Remove define.
2963 (i386bsd_in_sigtramp): Remove prototype.
2964 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2965 function. Update comment accordingly
2966 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2967 (FRAME_SAVED_PC): Remove define.
2968 (i386bsd_frame_saved_pc): Remove prototype.
2969 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2970 GET_LONGJMP_TARGET): Remove defines.
2971 (get_longjmp_target): Remove prototype.
2972 (IN_SIGTRAMP): Remove define.
2973 (i386bsd_in_sigtramp): Remove prototype.
2974 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2975 function. Update comment accordingly
2976 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2977 (FRAME_SAVED_PC): Remove define.
2978 (i386bsd_frame_saved_pc): Remove prototype.
2979 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2980 Remove prototype.
2981 (USE_STRUCT_CONVENTION): Remove prototype.
2982 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2983 declaration.
2984 (_initialize_i386bsd_nat): Revise logic to determine some
2985 constants at compile time when compiling a native GDB. Warn if
2986 things don't match up with what we expect.
2987 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2988 Remove variables.
2989 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2990 to use date stored in `struct gdbarch_tdep'.
2991 (i386bsd_sigcontext_offset): Remove varaible.
2992 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2993 stored in `struct gdbarch_tdep'.
2994 (i386bsd_frame_saved_pc): Make static.
2995 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2996 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2997 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2998 i386fbsd4_sc_pc_offset): New variables.
2999 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3000 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3001 functions.
3002 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3003 functions.
3004 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3005 Modify the value of i386fbsd_sigtramp_start and
3006 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3007 i386fbsd_sigtramp_end.
3008 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3009 function.
3010
3011 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3012 define to i386-linux-tdep.h.
3013 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3014 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3015 defines.
3016 (i386_linux_register_name, i386_linux_register_byte,
3017 i386_linux_register_raw_size): Remove prototypes.
3018 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3019 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3020 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3021 TARGET_WRITE_PC): Remove defines.
3022 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3023 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3024 i386_linux_write_pc): Remove prototypes.
3025 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3026 (get_longjmp_target): Remove prototype.
3027 * i386-linux-tdep.h: New file.
3028 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3029 * i386-linux-tdep.c: Include "i386-tdep.h" and
3030 "i386-linux-tdep.h".
3031 (i386_linux_register_name, i386_linux_register_byte,
3032 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3033 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3034 Make static.
3035 (i386_linux_init_abi): New function.
3036 (_initialize_i386_linux_tdep): New function.
3037
3038 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3039 (i386_saved_pc_after_call): Remove prototype.
3040 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3041 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3042 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3043 (i386_register_name, i386_stab_reg_to_regnum,
3044 i386_dwarf_reg_to_regnum): Remove prototypes.
3045 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3046 SIZEOF_SSE_REGS): Remove defines.
3047 (REGISTER_BYTES): Remove define.
3048 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3049 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3050 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3051 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3052 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3053 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3054 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3055 (get_longjmp_target): Remove prototype.
3056 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3057 (sigtramp_saved_pc): Remove define.
3058 (i386v4_sigtramp_saved_pc): Remove prototype.
3059 * config/i386/tm-go32.h (FRAME_CHAIN,
3060 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3061 (i386go32_frame_saved_pc): Remove prototype.
3062 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3063 (get_longjmp_target): Remove prototype.
3064 * i386-tdep.h: Include "osabi.h".
3065 (enum i386_abi): Removed.
3066 (enum struct_return): New enum.
3067 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3068 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3069 sc_pc_offset members.
3070 (i386_gdbarch_register_os_abi): Remove prototype.
3071 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3072 I386_SSE_NUM_REGS): New defines.
3073 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3074 I386_SSE_SIZEOF_REGS): New defines.
3075 (i386_register_name, i386_register_byte, i386_register_raw_size):
3076 New prototypes.
3077 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3078 (i386bsd_sigtramp_saved_pc): New prototype.
3079 * i386-tdep.c: Don't include "elf-bfd.h".
3080 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3081 i386_frame_chain, i386_saved_pc_after_call): Make static.
3082 (i386_frame_saved_pc): Rewrite to call architecture dependent
3083 function to deal with signal handlers. Make static.
3084 (i386go32_frame_saved_pc): Removed.
3085 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3086 Removed.
3087 (i386_get_longjmp_target): New function.
3088 (default_struct_convention, pcc_struct_convention,
3089 reg_struct_convention, valid_conventions, struct_convention): New
3090 variables.
3091 (i386_use_struct_convention): New function.
3092 (i386v4_sigtramp_saved_pc): Renamed to
3093 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3094 (i386_pc_in_sigtramp): New function.
3095 (i386_abi_names): Removed.
3096 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3097 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3098 Removed.
3099 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3100 i386_gdbarch_register_os_abi): Removed.
3101 (struct i386_abi_handler): Removed.
3102 (i386_abi_handler_list): Removed.
3103 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3104 functions.
3105 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3106 i386_nw_init_abi): New functions.
3107 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3108 Use set_gdbarch_xxx() calls instead of relying on macros for a
3109 number of calls.
3110 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3111 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3112 Register the various architecture variants defined in this file.
3113
ad2f7632
DJ
31142002-06-14 Daniel Jacobowitz <drow@mvista.com>
3115
3116 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3117 (struct main_type): Remove arg_types member. Update comments for
3118 struct field.
3119 (TYPE_ARG_TYPES): Remove.
3120 (TYPE_FN_FIELD_ARGS): Update.
3121 (smash_to_method_type): Update prototype.
3122
3123 * c-typeprint.c (cp_type_print_method_args): Take method type
3124 instead of argument list. Use new argument layout. Simplify.
3125 (c_type_print_args): Use new argument layout. Simplify.
3126 (c_type_print_base): Update call to cp_type_print_method_args.
3127 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3128 argument; use die->type instead. Update call to
3129 smash_to_method_type.
3130 (read_structure_scope): Update call to dwarf2_add_member_fn.
3131 * gdbtypes.c (allocate_stub_method): Update comment.
3132 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3133 Use new argument layout.
3134 (check_stub_method): Use new argument layout. Don't count
3135 void as an argument.
3136 (print_arg_types): Update comments. Use new argument layout.
3137 (recursive_dump_type): Don't print arg_types member.
3138 * hpread.c (hpread_read_struct_type): Use new argument layout.
3139 (fixup_class_method_type): Likewise.
3140 (hpread_type_lookup): Likewise.
3141 * stabsread.c (read_type): Update calls to read_args and
3142 smash_to_method_type.
3143 (read_args): Use new argument layout. Simplify.
3144 * valops.c (typecmp): Use new argument layout. Update parameters
3145 and comments. Simplify.
3146 (hand_function_call): Use new argument layout.
3147 (search_struct_method): Update call to typecmp.
3148 (find_overload_match): Use new argument layout.
3149
6da02953
DJ
31502002-06-13 Daniel Jacobowitz <drow@mvista.com>
3151
3152 * NEWS: Mention multithreaded debug support for gdbserver.
3153
519b2366
DJ
31542002-06-13 Daniel Jacobowitz <drow@mvista.com>
3155
3156 * MAINTAINERS: Mention NEWS.
3157
a7f48742
DJ
31582002-06-13 Daniel Jacobowitz <drow@mvista.com>
3159
3160 * gdbserver/regcache.c: Add comment.
3161
6c0d6680
DJ
31622002-06-13 Daniel Jacobowitz <drow@mvista.com>
3163
3164 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3165 (struct mips_objfile_private, compare_pdr_entries): New.
3166 (non_heuristic_proc_desc): Read the ".pdr" section if it
3167 is present.
3168
6529d2dd
AC
31692002-06-12 Andrew Cagney <ac131313@redhat.com>
3170
3171 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3172 (arm_debug): New static variable.
3173 (_initialize_arm_tdep): Add ``set debug arm'' command.
3174
26216b98
AC
31752002-06-12 Andrew Cagney <ac131313@redhat.com>
3176
3177 * Makefile.in (sim_arm_h): Define.
3178 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3179 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3180 (arm_register_sim_regno): New function, map an internal REGNUM
3181 onto a simulator register number.
3182 (arm_gdbarch_init): Set register_sim_regno.
3183
814b3ba0
AH
31842002-06-09 Aldy Hernandez <aldyh@redhat.com>
3185
3186 * MAINTAINERS: Add self.
3187
475b0867
JB
31882002-06-11 Jim Blandy <jimb@redhat.com>
3189
919d772c
JB
3190 * source.c (source_info): Mention whether the symtab has
3191 information about preprocessor macros.
3192
475b0867
JB
3193 Call the command `info macro', not `show macro'.
3194 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3195 Fix error message.
3196 (_initialize_macrocmd): Register `info_macro_command' in
3197 `infolist', not `showlist'.
3198
9e364162
DJ
31992002-06-11 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3202 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3203 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3204 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3205 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3206 unconditionally.
3207 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3208 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3209 (_initialize_mips_tdep): Remove dead code.
3210 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3211 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3212 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3213 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3214 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3215 MIPS_LAST_FP_ARG_REGNUM): Remove.
3216
32172002-06-11 Daniel Jacobowitz <drow@mvista.com>
3218
3219 * gdbserver/thread-db.c: New file.
3220 * gdbserver/proc-service.c: New file.
3221 * gdbserver/acinclude.m4: New file.
3222 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3223 proc-service.o, and thread-db.o.
3224 (linux-low.o): Add USE_THREAD_DB.
3225 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3226 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3227 * gdbserver/aclocal.m4: Regenerated.
3228 * gdbserver/config.in: Regenerated.
3229 * gdbserver/configure: Regenerated.
3230 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3231 thread_db.h, and linux/elf.h headrs.
3232 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3233 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3234 Check for -lthread_db and thread support.
3235 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3236 PowerPC, and SuperH.
3237 * gdbserver/i387-fp.c: Constify arguments.
3238 * gdbserver/i387-fp.h: Likewise.
3239 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3240 `struct inferior_info'. Remove PID member. Use generic inferior
3241 list header. All uses updated.
3242 (inferiors, signal_pid): Removed.
3243 (all_threads): New variable.
3244 (get_thread): Define.
3245 (add_inferior_to_list): New function.
3246 (for_each_inferior): New function.
3247 (change_inferior_id): New function.
3248 (add_inferior): Removed.
3249 (remove_inferior): New function.
3250 (add_thread): New function.
3251 (free_one_thread): New function.
3252 (remove_thread): New function.
3253 (clear_inferiors): Use for_each_inferior and free_one_thread.
3254 (find_inferior): New function.
3255 (find_inferior_id): New function.
3256 (inferior_target_data): Update argument type.
3257 (set_inferior_target_data): Likewise.
3258 (inferior_regcache_data): Likewise.
3259 (set_inferior_regcache_data): Likewise.
3260 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3261 (all_processes, stopping_threads, using_thrads)
3262 (struct pending_signals, debug_threads, pid_of): New.
3263 (inferior_pid): Replace with macro.
3264 (struct inferior_linux_data): Remove.
3265 (get_stop_pc, add_process): New functions.
3266 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3267 Use add_process and add_thread.
3268 (linux_attach_lwp): New function, based on old linux_attach. Use
3269 add_process and add_thread. Set stop_expected for new threads.
3270 (linux_attach): New function.
3271 (linux_kill_one_process): New function.
3272 (linux_kill): Kill all LWPs.
3273 (linux_thread_alive): Use find_inferior_id.
3274 (check_removed_breakpoints, status_pending_p): New functions.
3275 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3276 Update. Use WNOHANG. Wait for cloned processes also. Update process
3277 struct for the found process.
3278 (linux_wait_for_event): New function.
3279 (linux_wait): Use it. Support LWPs.
3280 (send_sigstop, wait_for_sigstop, stop_all_processes)
3281 (linux_resume_one_process, linux_continue_one_process): New functions.
3282 (linux_resume): Support LWPs.
3283 (REGISTER_RAW_SIZE): Remove.
3284 (fetch_register): Use register_size instead. Call supply_register.
3285 (usr_store_inferior_registers): Likewise. Call collect_register.
3286 Fix recursive case.
3287 (regsets_fetch_inferior_registers): Improve error message.
3288 (regsets_store_inferior_registers): Add debugging.
3289 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3290 (unstopped_p, linux_signal_pid): New functions.
3291 (linux_target_ops): Add linux_signal_pid.
3292 (linux_init_signals): New function.
3293 (initialize_low): Call it. Initialize using_threads.
3294 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3295 flag.
3296 (get_regcache): Fetch registers lazily. Add fetch argument
3297 and update all callers.
3298 (regcache_invalidate_one, regcache_invalidate): New
3299 functions.
3300 (new_register_cache): Renamed from create_register_cache.
3301 Return the new regcache.
3302 (free_register_cache): Change argument to a void *.
3303 (registers_to_string, registers_from_string): Call get_regcache
3304 with fetch flag set.
3305 (register_data): Make static. Pass fetch flag to get_regcache.
3306 (supply_register): Call get_regcache with fetch flag clear.
3307 (collect_register): Call get_regcache with fetch flag set.
3308 (collect_register_as_string): New function.
3309 * gdbserver/regcache.h: Update.
3310 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3311 stderr.
3312 Handle input interrupts while waiting for an ACK.
3313 (input_interrupt): Use signal_pid method.
3314 (getpkt): Flush after debug output and use stderr.
3315 (outreg): Use collect_register_as_string.
3316 (new_thread_notify, dead_thread_notify): New functions.
3317 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3318 and general_thread.
3319 (look_up_one_symbol): Flush after debug output.
3320 * gdbserver/server.c (step_thread, server_waiting): New variables.
3321 (start_inferior): Don't use signal_pid. Update call to mywait.
3322 (attach_inferior): Update call to mywait.
3323 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3324 (main): Don't fetch/store registers explicitly. Use
3325 set_desired_inferior. Support proposed ``Hs'' packet. Update
3326 calls to mywait.
3327 * gdbserver/server.h: Update.
3328 (struct inferior_list, struct_inferior_list_entry): New.
3329 * gdbserver/target.c (set_desired_inferior): New.
3330 (write_inferior_memory): Constify.
3331 (mywait): New function.
3332 * gdbserver/target.h: Update.
3333 (struct target_ops): New signal_pid method.
3334 (mywait): Removed macro, added prototype.
3335
3336 * gdbserver/linux-low.h (regset_func): Removed.
3337 (regset_fill_func, regset_store_func): New.
3338 (enum regset_type): New.
3339 (struct regset_info): Add type field. Use new operation types.
3340 (struct linux_target_ops): stop_pc renamed to get_pc.
3341 Add decr_pc_after_break and breakpoint_at.
3342 (get_process, get_thread_proess, get_process_thread)
3343 (strut process_info, all_processes, linux_attach_lwp)
3344 (thread_db_init): New.
3345
3346 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3347 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3348 (the_low_target): Add new members.
3349 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3350 (i386_store_fpxregset): Constify.
3351 (target_regsets): Add new kind identifier.
3352 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3353 (i386_set_pc): Add debugging.
3354 (i386_breakpoint_at): New function.
3355 (the_low_target): Add new members.
3356 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3357 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3358 (mips_breakpoint_at): New.
3359 (the_low_target): Add new members.
3360 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3361 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3362 (the_low_target): Add new members.
3363 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3364 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3365 (the_low_target): Add new members.
3366 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3367 identifier.
3368
23aa4c72
ML
33692002-06-11 Michal Ludvig <mludvig@suse.cz>
3370
3371 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3372 (unwind_tmp_obstack_free, parse_frame_info)
3373 (update_context, cfi_read_fp, cfi_write_fp)
3374 (cfi_frame_chain, cfi_init_extra_frame_info)
3375 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3376 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3377
70eb15a4
CV
33782002-06-11 Corinna Vinschen <vinschen@redhat.com>
3379
3380 * v850-tdep.c (v850_type_is_scalar): New function.
3381 (v850_use_struct_convention): Match current gcc implementation
3382 as close as possible.
3383 (v850_push_arguments): Fix stack_offset handling. Don't write
3384 struct_addr into register. This is done by v850_store_struct_return.
3385 (v850_extract_return_value): Care for structs.
3386 (v850_store_return_value): Ditto.
3387 (v850_store_struct_return): Actually write address.
3388
482a4d06
ML
33892002-06-11 Michal Ludvig <mludvig@suse.cz>
3390
3391 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3392 without debug information too.
3393
d855c300
AC
33942002-06-10 Andrew Cagney <ac131313@redhat.com>
3395
3396 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3397 Make multi-arch pure.
3398 * gdbarch.h, gdbarch.c: Re-generate.
3399 * arm-tdep.c (arm_print_float_info): Update.
3400 * arch-utils.h (default_print_float_info): Update.
3401 * arch-utils.c (default_print_float_info): Update.
3402 * infcmd.c (float_info): Update call.
3403
dd12a101
AC
34042002-06-10 Andrew Cagney <ac131313@redhat.com>
3405
3406 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3407 the front of the initialize list.
3408
101dcfbe
AC
34092002-06-10 Andrew Cagney <ac131313@redhat.com>
3410
3411 * infrun.c (struct inferior_status): Replace fields
3412 selected_frame_address and selected_level with field
3413 selected_frame_id.
3414 (save_inferior_status): Update. Use get_frame_id.
3415 (struct restore_selected_frame_args): Delete.
3416 (restore_selected_frame): Update. Use frame_find_by_id.
3417 (restore_inferior_status): Update.
3418
3419 * breakpoint.h (struct breakpoint): Change type of
3420 watchpoint_frame to frame_id.
3421 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3422 call to get_current_frame.
3423 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3424 get_current_frame.
3425 (watchpoint_check): Use frame_find_by_id.
3426
3427 * frame.h (record_selected_frame): Delete declaration.
3428 * stack.c (record_selected_frame): Delete function.
3429
3430 * frame.h (struct frame_id): Define.
3431 (get_frame_id): Declare.
3432 (frame_find_by_id): Declare.
3433 * frame.c (frame_find_by_id): New function.
3434 (get_frame_id): New function.
3435
304270b6
AV
34362002-06-10 Andrey Volkov <avolkov@transas.com>
3437
3438 * ser-e7kpc.c: Fix duplicated define and call of
3439 _initialize_ser_e7000pc
3440
2f2cf184
DJ
34412002-06-09 Daniel Jacobowitz <drow@mvista.com>
3442
3443 * signals/signals.c (target_signal_from_host): Fix #ifdef
3444 SIGRTMIN case.
3445 (do_target_signal_to_host): Likewise.
3446
caaa3122
DJ
34472002-06-09 Daniel Jacobowitz <drow@mvista.com>
3448
3449 * mips-tdep.c (mips_find_abi_section): New function.
3450 (mips_gdbarch_init): Call it.
3451
6ac5df3a
MK
34522002-06-09 Mark Kettenis <kettenis@gnu.org>
3453
3454 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3455 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3456 after Andrew's 2002-06-08 gdbarch change.
3457
82ea117a
MK
34582002-06-09 Mark Kettenis <kettenis@gnu.org>
3459
3460 * i386-linux-nat.c (suppy_gregset): Don't supply
3461 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3462 register cache.
3463 (fill_gregset): Don't fetch it under the same circumstances.
3464
3c25f8c7
AC
34652002-06-09 Andrew Cagney <cagney@redhat.com>
3466
3467 * Makefile.in (callback_h): Define.
3468 (remote_sim_h): Update path to remote-sim.h.
3469 (remote-rdp.o): Add $(callback_h).
3470 (remote-sim.o): Use $(callback_h).
3471 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3472 * remote-rdp.c: Include "gdb/callback.h".
3473
1029b7fa
MK
34742002-06-09 Mark Kettenis <kettenis@gnu.org>
3475
3476 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3477 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3478
616675d3
AC
34792002-06-08 Andrew Cagney <ac131313@redhat.com>
3480
a3efda28
AC
3481 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3482 * rdi-share/serpardr.c: Ditto.
3483 * rdi-share/unixcomm.c: Ditto.
3484 * rdi-share/serdrv.c: Ditto.
3485 * rdi-share/hostchan.h: Ditto.
3486 * rdi-share/hostchan.c: Ditto.
3487 * rdi-share/host.h: Ditto.
3488 * rdi-share/devsw.c: Ditto.
3489
c5f10366
AC
3490 * objfiles.h: Change type of obj_private to void pointer.
3491 * pa64solib.c: Update copyright. Don't include "assert.h", use
3492 strcmp instead of STREQ, use LONGEST, do not use PTR
3493 * somsolib.c: Ditto.
3494
616675d3
AC
3495 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3496 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3497 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3498
e4b415d9
AC
34992002-06-08 Andrew Cagney <ac131313@redhat.com>
3500
3501 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3502 (default_get_saved_register): Delete function.
3503 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3504 generic_unwind_get_saved_register.
3505 * gdbarch.h, gdbarch.c: Re-generate.
3506
ca0d0b52
AC
35072002-06-08 Andrew Cagney <ac131313@redhat.com>
3508
3509 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3510 generic_func_frame_chain_valid.
3511 * gdbarch.h, gdbarch.c: Re-generate.
3512 * blockframe.c (generic_func_frame_chain_valid): Only check
3513 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3514 passing FP to PC_IN_CALL_DUMMY.
3515 Fix PR gdb/360.
3516
76860b5f
AC
35172002-06-08 Andrew Cagney <ac131313@redhat.com>
3518
3519 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3520 (register_gdbarch_data): Initialize init_p.
3521 (gdbarch_data): Initialize data pointer using the init function.
3522 (init_gdbarch_data): Delete function.
3523 (gdbarch_update_p): Update.
3524 (initialize_non_multiarch): Update.
3525 (struct gdbarch): Add field initialized_p.
3526 * gdbarch.h, gdbarch.c: Re-generate.
3527
8dda9770
ML
35282002-06-07 Michal Ludvig <mludvig@suse.cz>
3529
3530 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3531 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3532 better do the things actually here.
3533 * x86-64-tdep.c (x86_64_register_name2nr): New.
3534 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3535 (x86_64_gdbarch_init): Respect the above change.
3536 * x86-64-tdep.h (x86_64_register_name2nr)
3537 (x86_64_register_nr2name): Add prototypes.
3538 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3539
3d79a47c
MS
35402002-06-06 Michael Snyder <msnyder@redhat.com>
3541
7bd91a28
MS
3542 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3543 Delete extra braces and re-indent.
3544 (d10v_store_return_value): Char return values
3d79a47c
MS
3545 must be shifted over by one byte in R0.
3546 (d10v_extract_return_value): Delete extra braces, re-indent.
3547
095a4c96
EZ
35482002-06-06 Elena Zannoni <ezannoni@redhat.com>
3549
3550 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3551 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3552 (d10v_integer_to_address): Rewrite.
3553 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3554 the d10v specific functions which take care of converting to the
3555 correct space.
3556
e8a77ca4
EZ
35572002-06-06 Elena Zannoni <ezannoni@redhat.com>
3558
3559 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3560 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3561
4f2e4a4f
AC
35622002-06-02 Andrew Cagney <ac131313@redhat.com>
3563
3564 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3565 includes.
3566 * config/tm-linux.h: Ditto.
3567 * config/alpha/tm-alphalinux.h: Ditto.
3568 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3569 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3570 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3571 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3572 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3573 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3574 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3575 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3576 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3577 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3578 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3579 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3580 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3581 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3582 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3583 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3584 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3585 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3586 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3587 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3588 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3589 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3590 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3591 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3592 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3593 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3594 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3595 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3596 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3597 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3598 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3599 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3600 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3601 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3602 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3603 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3604 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3605
ae2ab2ce
AS
36062002-05-04 Aidan Skinner <aidan@velvet.net>
3607
3608 * ada-exp.tab.c: New file
3609 * ada-exp.y: New file
3610 * ada-lang.c: New file
3611 * ada-lang.h: New file
3612 * ada-lex.c: New file
3613 * ada-lex.l: New file
3614 * ada-tasks.c: New file
3615 * ada-typeprint.c: New file
3616 * ada-valprint.c: New file
3617
0ddd0135
JT
36182002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3619
3620 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3621 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3622
750fbacc
JT
36232002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3624
3625 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3626 insetead of ppc-linux-tdep.o.
3627 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3628 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3629
df94e18a
AC
36302002-06-02 Andrew Cagney <ac131313@redhat.com>
3631
3632 2002-05-07 Christian Groessler <chris@groessler.org>
3633 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3634 bit register contents for little endian hosts.
3635
1a38ab75
AC
36362002-06-01 Andrew Cagney <ac131313@redhat.com>
3637
3638 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3639 any maintainer.
3640
8b1632ac
AC
36412002-06-01 Andrew Cagney <ac131313@redhat.com>
3642
3643 * gdbarch.h: Regenerate.
3644
627054c8
AC
36452002-06-01 Andrew Cagney <ac131313@redhat.com>
3646
3647 * MAINTAINERS: Add everyone to write-after-approval list.
3648
4f460812
AC
36492002-06-01 Andrew Cagney <ac131313@redhat.com>
3650
3651 * stack.c (frame_info): Use frame_register_unwind instead of
3652 saved_regs. Mention when the SP is on the stack or in a register.
3653
3654 * frame.h (frame_register_unwind_ftype): Define. Document.
3655 (struct frame_info): Add field register_unwind and
3656 register_unwind_cache.
3657 (frame_register_unwind): Declare.
3658 (generic_unwind_get_saved_register): Declare.
3659
3660 * frame.c (frame_register_unwind): New function.
3661 (generic_unwind_get_saved_register): New function.
3662
3663 * blockframe.c (generic_call_dummy_register_unwind): New function.
3664 (frame_saved_regs_register_unwind): New function.
3665 (set_unwind_by_pc): New function.
3666 (create_new_frame): New function.
3667 (get_prev_frame): New function.
3668
de888f76
AC
36692002-05-30 Andrew Cagney <ac131313@redhat.com>
3670
3671 * a29k-share/: Delete directory.
3672 * remote-vx29k.c: Delete file.
3673
2f2c3626
JT
36742002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3675
3676 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3677 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3678
9ce5c36a
JT
36792002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3680
3681 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3682 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3683 (sparc64nbsd-nat.o)
3684 (sparcnbsd-nat.o)
3685 (sparcnbsd-tdep.o): New dependency lists.
3686 * NEWS: Note new UltraSPARC NetBSD native configuration.
3687 * configure.host (sparc64-*-netbsd*): New host.
3688 * configure.tgt (sparc-*-netbsdelf*)
3689 (sparc-*-netbsd*): Set gdb_target to nbsd.
3690 (sparc64-*-netbsd*): New target.
3691 * sparc64nbsd-nat.c: New file.
3692 * sparcnbsd-nat.c: New file.
3693 * sparcnbsd-tdep.c: New file.
3694 * sparcnbsd-tdep.h: New file.
3695 * config/sparc/nbsd.mt: New file.
3696 * config/sparc/nbsd64.mh: New file.
3697 * config/sparc/nbsd64.mt: New file.
3698 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3699 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3700 (HOST_IPC): Remove.
3701 * config/sparc/nbsdaout.mt: Remove.
3702 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3703 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3704 (HOST_IPC): Remove.
3705 * config/sparc/nbsdelf.mt: Remove.
3706 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3707 sparc-nat.c compatiblity defines.
3708 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3709 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3710 * config/sparc/tm-nbsd64.h: New file.
3711 * config/sparc/tm-nbsdaout.h: Remove.
3712 * config/sparc/xm-nbsd.h: Remove.
3713
ef3cf062
JT
37142002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3715
3716 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3717 * sparc-tdep.c: Include osabi.h.
3718 (gdbarch_tdep): Add osabi member.
3719 (_initialize_sparc_tdep): Use gdbarch_register.
3720 (sparc_gdbarch_init): Use generic OS ABI framework.
3721 (sparc_dump_tdep): New function.
3722
ee8ff470
KB
37232002-05-30 Kevin Buettner <kevinb@redhat.com>
3724
3725 * corefile.c (do_captured_read_memory_integer): Return non-zero
3726 result.
3727 (safe_read_memory_integer): Copy result of memory read when
3728 status is non-zero. Also, add comments.
3729
7b112f9c
JT
37302002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3731
3732 * Makefile.in (ppc_tdep_h): Define.
3733 (ppc-linux-nat.o)
3734 (ppc-linux-tdep.o)
3735 (rs6000-tdep.o): Use $(ppc_tdep_h).
3736 (ppc-sysv-tdep.o)
3737 (ppcnbsd-nat.o)
3738 (ppcnbsd-tdep.o): New dependency lists.
3739 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3740 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3741 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3742 (ppc_sysv_abi_broken_use_struct_convention)
3743 (ppc_sysv_abi_use_struct_convention)
3744 (ppc_sysv_abi_push_arguments): Move to...
3745 * ppc-sysv-tdep.c: ...here.
3746 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3747 * rs6000-tdep.c (process_note_abi_tag_sections)
3748 (get_elfosabi): Remove.
3749 (rs6000_gdbarch_init): Use generic OS ABI framework.
3750 (rs6000_dump_tdep): New function.
3751 (_initialize_rs6000_tdep): Use gdbarch_register.
3752 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3753 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3754 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3755 of ppc-linux-tdep.o.
3756 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3757 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3758 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3759 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3760 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3761 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3762
480dd42a
JB
37632002-05-29 Jim Blandy <jimb@redhat.com>
3764
3765 * macroscope.c (default_macro_scope): Put `void' in empty argument
3766 list.
3767
4182591f
AC
37682002-05-29 Andrew Cagney <ac131313@redhat.com>
3769
3770 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3771 * arch-utils.c: Include "sim-regno.h".
3772 * gdbarch.sh: Don't include "sim-regno.h".
3773 * gdbarch.h, gdbarch.c: Regenerate.
3774 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3775 here.
3776 * arch-utils.h (legacy_register_sim_regno): To here.
3777 * remote-sim.c (legacy_register_sim_regno): Move function from
3778 here.
3779 * arch-utils.c (legacy_register_sim_regno): To here.
3780
8238d0bf
AC
37812002-05-28 Andrew Cagney <ac131313@redhat.com>
3782
3783 * sim-regno.h: New file.
3784 * Makefile.in (sim_regno_h): Define.
3785 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3786 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3787 (legacy_register_sim_regno): New function.
3788 (one2one_register_sim_regno): New function.
3789 (gdbsim_fetch_register): Rewrite.
3790 (gdbsim_store_register): Only store a register when
3791 REGISTER_SIM_REGNO is valid.
3792 * d10v-tdep.c: Include "sim-regno.h".
3793 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3794 (d10v_ts3_register_sim_regno): Ditto.
3795 * gdbarch.sh: Include "sim-regno.h".
3796 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3797 * gdbarch.h, gdbarch.c: Regenerate.
3798 * arch-utils.h (default_register_sim_regno): Delete declaration.
3799 * arch-utils.c (default_register_sim_regno): Delete function.
3800
485721b1
JT
38012002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3802
3803 * ppcnbsd-nat.c: Rewrite.
3804 * ppcnbsd-tdep.c: New file.
3805 * ppcnbsd-tdep.h: New file.
3806 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3807 solib.o, and solib-svr4.o.
3808 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3809 nbsd-tdep.o, and corelow.o.
3810
697f244d
AC
38112002-05-28 Andrew Cagney <ac131313@redhat.com>
3812
3813 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3814 `tr' and `sed'. Mention that `broken' targets are not expected to
3815 build.
3816
f08caad1 38172002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3818
3819 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3820 Let PC point right after the prologue before looking up symbols.
3821
3139facc
MH
38222002-05-27 Martin M. Hunt <hunt@redhat.com>
3823
3824 * i386-tdep.c (i386_register_virtual_type): Return
3825 builtin_type_vec128i for SSE registers.
3826
3827 * gdbtypes.h (builtin_type_vec128i): Declare.
3828
3829 * gdbtypes.c (build_builtin_type_vec128i): New function.
3830 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3831 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3832 (build_gdbtypes): Initialize new builtin vector types.
3833 (_initialize_gdbtypes): Register new vector types with gdbarch.
3834
6e3ba3b8
JT
38352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3836
3837 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3838 since it has been multi-arch'd.
3839 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3840 Move Alpha and VAX multi-arch news entries to same section
3841 as other multi-arch news.
3842
93d5585d
JT
38432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3844
3845 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3846 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3847 static. Rename some register numbers to put them in ns32k-tdep
3848 private namespace.
3849 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3850 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3851 functions.
3852 (_initialize_ns32k_tdep): Use gdbarch_register.
3853 * ns32k-tdep.h: New file.
3854 * ns32knbsd-tdep.c: New file.
3855 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3856 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3857 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3858 REGISTER_BYTES, REGISTER_BYTE): Remove.
3859 * config/ns32k/tm-ns32k.h: New file.
3860 * config/ns32k/tm-umax.h: Remove.
3861
efb2c70e
JT
38622002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3863
3864 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3865 ns32k_store_struct_return, ns32k_extract_return_value,
3866 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3867 functions.
3868 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3869 ns32k_saved_pc_after_call.
3870 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3871 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3872 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3873 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3874 ns32k_extract_struct_value_address.
3875
7bcc927b
JT
38762002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3877
3878 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3879 ns32k_fix_call_dummy): New.
3880 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3881 ns32k_call_dummy_words.
3882 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3883 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3884 CALL_DUMMY_NARGS): Remove.
3885 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3886
78f9d765
JT
38872002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3888
3889 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3890 ns32k_frame_saved_pc, ns32k_frame_args_address,
3891 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3892 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3893 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3894 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3895 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3896 (BREAKPOINT): Remove..
3897 (FRAME_CHAIN): Define as ns32k_frame_chain.
3898 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3899 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3900 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3901 (FRAME_FIND_SAVED_REGS): Remove.
3902 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3903 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3904 (POP_FRAME): Define as ns32k_pop_frame.
3905
f2c762e0
JT
39062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3907
3908 * ns32k-tdep.c (ns32k_register_byte_32082,
3909 ns32k_register_byte_32382, ns32k_register_raw_size,
3910 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3911 functions.
3912 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3913 ns32k_register_byte_32382.
3914 * config/ns32k/tm-umax.h: Update copyright years.
3915 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3916 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3917 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3918 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3919 (ns32k_get_enter_addr): Fix prototype.
3920
af137673
JT
39212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3922
3923 * ns32k-tdep.c: Update copyright years.
3924 (ns32k_register_name_32082): New function.
3925 (ns32k_register_name_32382): Ditto.
3926 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3927 (REGISTER_NAME): Define as ns32k_register_name_32382.
3928 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3929 (REGISTER_NAME): Define as ns32k_register_name_32082.
3930
a8bc7b56
JB
39312002-05-24 Jim Blandy <jimb@redhat.com>
3932
3933 * dwarf2read.c (free_line_header): Use xfree, not free.
3934
83a45910
JT
39352002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3936
3937 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3938 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3939
0db71247
AC
39402002-05-23 Andrew Cagney <ac131313@redhat.com>
3941
3942 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3943
b9e5e4dd
AC
39442002-05-23 Andrew Cagney <ac131313@redhat.com>
3945
3946 From Ross Alexander at NEC Europe:
3947 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3948
de530e84
MS
39492002-05-23 Michael Snyder <msnyder@redhat.com>
3950
3951 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3952 for input, rather than parse_and_eval_address.
3953
b91b96f4
AC
39542002-05-23 Andrew Cagney <ac131313@redhat.com>
3955
3956 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3957 * Makefile.in (sim_d10v_h): Update definition.
3958
8b279e7a
AC
39592002-05-24 Andrew Cagney <cagney@redhat.com>
3960
3961 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3962 change `2002-05-22 Michael Snyder' below.
3963 (d10v_push_arguments): Ditto.
3964 (d10v_extract_return_value): Ditto.
3965
0a3d0425
JB
39662002-05-23 Jim Blandy <jimb@redhat.com>
3967
3968 * macrotab.c (check_for_redefinition): Don't complain if the new
3969 definition is the same as the previous one. Take more arguments
3970 to allow the comparison.
3971 (macro_define_object, macro_define_function): Pass more arguments
3972 to check_for_redefinition.
3973
78eac43e
MS
39742002-05-22 Michael Snyder <msnyder@redhat.com>
3975
3976 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3977 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3978 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3979 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3980 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3981 Add a temp variable to save a call (and a memory read).
3982 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3983 if possible (so that PC_IN_CALL_DUMMY will work).
3984
9bc1edb8
CV
39852002-05-22 Corinna Vinschen <vinschen@redhat.com>
3986
3987 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3988
005ef3d2
ML
39892002-05-22 Michal Ludvig <mludvig@suse.cz>
3990
3991 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3992 fde->cie_ptr.
3993 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3994 (dwarf2_build_frame_info): Add offset to fde->initial_location
3995 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
3996 (execute_stack_op): Change type of 'result' from ULONGEST to
3997 CORE_ADDR.
005ef3d2 3998
fcf4f891
JT
39992002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4000
4001 * config/alpha/tm-nbsd.h: Include solib.h.
4002
cfef91e4
JT
40032002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4004
4005 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4006 assumptions about the host's byte order.
4007
9964235a
JT
40082002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4009
4010 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4011 to dependency list.
4012 * alphanbsd-tdep.c: Include solib-svr4.h.
4013 * shnbsd-tdep.c: Ditto.
4014
9eeef8ef
JT
40152002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4016
4017 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4018 nbsd-tdep.h to dependency list.
4019 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4020 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4021 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4022 nbsdaout.mh and nbsdelf.mh consistently.
4023 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4024 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4025 nbsdaout.mt and nbsdelf.mh consistently.
4026 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4027 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4028 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4029 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4030 a.out shared library stuff from here...
4031 * config/nm-nbsdaout.h: ...to here.
4032 * config/tm-nbsd.h: Remove.
4033 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4034 * config/arm/nbsd.mh: Remove.
4035 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4036 nbsd-tdep.o.
4037 * config/arm/nbsdaout.mh: New file.
4038 * config/arm/nbsdelf.mh: New file.
4039 * config/arm/nm-nbsdaout.h: New file.
4040 * config/i386/nbsd.mh: Remove.
4041 * config/i386/nbsd.mt: Remove.
4042 * config/i386/nbsdaout.mh: New file.
4043 * config/i386/nbsdaout.mt: New file.
4044 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4045 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4046 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4047 i386_register_u_addr): Remove.
4048 * config/i386/nm-nbsdaout.h: New file.
4049 * config/i386/nm-nbsdelf.h: Remove.
4050 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4051 (USE_STRUCT_CONVENTION): Remove.
4052 * config/i386/tm-nbsdaout.h: New file.
4053 * config/i386/tm-nbsdelf.h: Remove.
4054 * config/m68k/nbsd.mh: Remove.
4055 * config/m68k/nbsd.mt: Remove.
4056 * config/m68k/nbsdaout.mh: New file.
4057 * config/m68k/nbsdaout.mt: New file.
4058 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4059 * config/m68k/nm-nbsdaout.h: New file.
4060 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4061 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4062 * config/ns32k/nbsd.mh: Remove.
4063 * config/ns32k/nbsd.mt: Remove.
4064 * config/ns32k/nbsdaout.mh: New file.
4065 * config/ns32k/nbsdaout.mt: New file.
4066 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4067 * config/ns32k/nm-nbsdaout.h: New file.
4068 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4069 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4070 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4071 (SVR4_SHARED_LIBS): Remove.
4072 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4073 * config/sparc/nbsd.mh: Remove.
4074 * config/sparc/nbsd.mt: Remove.
4075 * config/sparc/nbsdaout.mh: New file.
4076 * config/sparc/nbsdaout.mt: New file.
4077 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4078 * config/sparc/nbsdelf.mt: New file.
4079 * config/sparc/nm-nbsdaout.h: New file.
4080 * config/sparc/nm-nbsdelf.h: Remove.
4081 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4082 * config/sparc/tm-nbsdaout.h: New file.
4083
257ce470
JT
40842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4085
4086 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4087 mipsnbsd-tdep.c
4088 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4089
76a6d5fe
JT
40902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4091
4092 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4093 shnbsd-nat.c.
4094 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4095
45888261
JT
40962002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4097
4098 * NEWS: Note new MIPS NetBSD native configuration.
4099 * configure.host (mips*-*-netbsd*): New host.
4100 * configure.tgt (mips*-*-netbsd*): New target.
4101 * mipsnbsd-nat.c: New file.
4102 * mipsnbsd-tdep.c: New file.
4103 * mipsnbsd-tdep.h: New file.
4104 * config/mips/nbsd.mh: New file.
4105 * config/mips/nbsd.mt: New file.
4106 * config/mips/nm-nbsd.h: New file.
4107 * config/mips/tm-nbsd.h: New file.
4108
70f80edf
JT
41092002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4110
4111 * Makefile.in (SFILES): Add osabi.c.
4112 (COMMON_OBS): Add osabi.o.
4113 (osabi.o): New dependency list.
4114 * osabi.c: New file.
4115 * osabi.h: New file.
4116 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4117
4118 * Makefile.in (alpha_tdep_h): Define and use instead of
4119 alpha-tdep.h.
4120 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4121 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4122 Remove.
4123 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4124 * alpha-tdep.h: Include osabi.h.
4125 (alpha_abi): Remove.
4126 (gdbarch_tdep): Use generic OS ABI framework.
4127 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4128 gdbarch_register_osabi.
4129 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4130 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4131 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4132
4133 * Makefile.in (sh_tdep_h): Add osabi.h.
4134 * sh-tdep.h (sh_osabi): Remove.
4135 (gdbarch_tdep): Use generic OS ABI framework.
4136 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4137 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4138 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4139 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4140
4141 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4142 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4143 gdbarch_register_osabi.
4144 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4145 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4146 (get_elfosabi): Rename to...
4147 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4148 ABI framework support routines.
4149 (arm_gdbarch_init): Use generic OS ABI framework.
4150 (arm_dump_tdep): Likewise.
4151 (_initialize_arm_tdep): Likewise.
4152 * arm-tdep.h: Include osabi.h.
4153 (arm_abi): Remove.
4154 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4155 osabi member.
4156 (arm_gdbarch_register_os_abi): Remove prototype.
4157 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4158 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4159
4160 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4161 * mips-tdep.c: Include osabi.h.
4162 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4163 OS ABI framework.
4164
d194345b
KH
41652002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4166
4167 * h8300-tdep.c: Fix formatting.
4168
70c6b0d1
EZ
41692002-05-20 Elena Zannoni <ezannoni@redhat.com>
4170
4171 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4172 printing vector registers.
4173
165b8e33
AC
41742002-05-19 Andrew Cagney <ac131313@redhat.com>
4175
4176 From Fernando Nasser:
4177 * remote.c (remote_async_open_1): Re-throw the exception when the
4178 connection fails.
4179 (remote_cisco_open): Ditto.
4180 (remote_open_1): Ditto.
4181
36918e70
AC
41822002-05-19 Andrew Cagney <ac131313@redhat.com>
4183
4184 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4185 (remote_start_remote): Add uiout parameter. Pass through to
4186 remote_start_remote_dummy.
4187 (remote_open_1): Use catch_exception instead of catch_errors.
4188 (remote_async_open_1): Ditto.
4189 (remote_cisco_open): Ditto.
4190
ae44c0c4
AC
41912002-05-19 Andrew Cagney <ac131313@redhat.com>
4192
4193 * remote.c (remote_start_remote): Replace PTR with void pointer.
4194 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4195 static.
4196
8efe637d
AC
41972002-05-18 Andrew Cagney <ac131313@redhat.com>
4198
4199 * gdb_indent.sh: Allow the script to be run in the sim directory.
4200
2f1b5984
MK
42012002-05-18 Mark Kettenis <kettenis@gnu.org>
4202
f0f625e2
MK
4203 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4204 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4205
2f1b5984
MK
4206 * corelow.c (core_open): Only call set_gdbarch_from_file if
4207 exec_bfd is NULL.
4208
fc974602
AV
42092002-05-17 Andrey Volkov <avolkov@transas.com>
4210
4211 * h8300-tdep.c: Add support of EXR register
4212 * config/h8300/tm-h8300.h: Ditto.
4213
906709f4
AV
42142002-05-17 Andrey Volkov <avolkov@transas.com>
4215
4216 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4217
6e591d68
AV
42182002-05-17 Andrey Volkov <avolkov@transas.com>
4219
4220 * h8300-tdep.c: Change literal regnums to REGNO.
4221
84f0252a
JB
42222002-05-17 Jim Blandy <jimb@redhat.com>
4223
e0e9281e
JB
4224 * NEWS: Note addition of macro support.
4225
84f0252a
JB
4226 Expand preprocessor macros in C expressions.
4227 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4228 (scan_macro_expansion, scanning_macro_expansion,
4229 finished_macro_expansion): New function declarations.
4230 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4231 variable declarations.
4232 * parser-defs.h (expression_context_pc): New declaration.
4233 * parse.c (expression_context_pc): New variable.
4234 (parse_exp_1): Set expression_context_pc, as well as
4235 expression_context_block.
4236 * c-exp.y (yylex): If we're not already reading the result of a
4237 macro expansion, try to macro-expand the next token. When we're
4238 done scanning a macro expansion, switch back to the mainline text.
4239 Commas and `if's in a macro's expansion don't terminate the input.
4240 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4241 (macro_original_text, macro_expanded_text,
4242 expression_macro_lookup_func, expression_macro_lookup_baton): New
4243 variables.
4244 (scan_macro_expansion, scanning_macro_expansion,
4245 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4246 c_preprocess_and_parse): New functions.
4247 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4248 c_preprocess_and_parse, instead of c_parse.
4249 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4250 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4251
1c509ca8
JR
4252Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4253
4254 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4255 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4256 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4257
2250ee0c
CV
42582002-05-17 Corinna Vinschen <vinschen@redhat.com>
4259
4260 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4261
ab3b8126
JT
42622002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4263
4264 * Makefile.in (sh_tdep_h): Define and use.
4265 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4266 register enum): Move to...
4267 * * sh-tdep.h: ...here.
4268 * sh-tdep.c: Include sh-tdep.h.
4269 * sh3-rom.c: Likewise.
4270 * shnbsd-tdep.c: Likewise.
4271
ed9d4749
MS
42722002-05-16 Michael Snyder <msnyder@redhat.com>
4273
4274 * arm-tdep.c: Spelling fix in comment.
4275
2e276125
JB
42762002-05-16 Jim Blandy <jimb@redhat.com>
4277
6821892e
JB
4278 Add commands for manually expanding macros and showing their
4279 definitions.
4280 * macrocmd.c, macroscope.c, macroscope.h: New files.
4281 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4282 (macroscope_h): New variable.
4283 (HFILES_NO_SRCDIR): Add macroscope.h.
4284 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4285 (macroscope.o, macrocmd.o): New rules.
4286
2e276125
JB
4287 Teach the Dwarf 2 reader to read macro information.
4288 * dwarf2read.c: #include "macrotab.h".
4289 (dwarf_macinfo_buffer): New variable.
4290 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4291 dwarf_macinfo_size.
4292 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4293 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4294 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4295 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4296 dwarf2_macro_spaces_in_definition): New complaints.
4297 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4298 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4299 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4300 the partial symbol table.
4301 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4302 from what's recorded in the partial symbol table.
4303 (read_file_scope): If the compilation unit has a
4304 `DW_AT_macro_info' attribute, read its macro information.
4305 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4306
2f53fe6c
DJ
43072002-05-16 Daniel Jacobowitz <drow@mvista.com>
4308
4309 Fix PR gdb/546
4310 * ser-tcp.c: Don't include <netinet/udp.h>.
4311
2be99286
SC
43122002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4313
4314 * MAINTAINERS: Update my email address.
4315
c9af212b 43162002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4317
4318 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4319 include file of the same name.
4320
bf5f1a52
CV
43212002-05-16 Corinna Vinschen <vinschen@redhat.com>
4322
4323 * configure.tgt: Mark v850 as multi-arched.
4324 * config/v850/tm-v850.h: Remove file.
4325 * config/v850/v850.mt: Eliminate TM_FILE.
4326
435e042a
CV
43272002-05-16 Corinna Vinschen <vinschen@redhat.com>
4328
4329 * v850-tdep.c: Full multi-arch.
4330 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4331 Define GDB_MULTI_ARCH to 2.
4332
9819c6c8
PM
43332002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4334
4335 * p-exp.y (current_type): New static variable.
4336 Carries the type of the expression at the position that is parsed.
4337 (push_current_type, pop_current_type): Two new functions. Used
4338 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4339 (search_field): New static variable. Set to one after parsing a point
4340 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4341 (FIELDNAME): New token. After a point only a token belonging to
4342 current_type type definition is allowed.
4343 (all over token rules): reset and change current_type according
4344 to rules.
4345 (exp '[' rule): insert implicit array index field if
4346 exp is a pascal string type.
4347
3a06899a
CV
43482002-05-16 Corinna Vinschen <vinschen@redhat.com>
4349
4350 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4351 frame info. Use frame_info's saved_regs instead of matching member
4352 in extra_frame_info throughout.
4353 (v850_frame_init_saved_regs): New function.
4354 (v850_init_extra_frame_info): Move most functionality into
4355 v850_frame_init_saved_regs().
4356 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4357 (v850_frame_find_saved_regs): Remove declaration.
4358 (FRAME_FIND_SAVED_REGS): Remove definition.
4359 (v850_frame_init_saved_regs): Add declaration.
4360 (FRAME_INIT_SAVED_REGS): Add definition.
4361
6ed14b0e
CV
43622002-05-16 Corinna Vinschen <vinschen@redhat.com>
4363
4364 * v850-tdep.c: Begin multi-arch'ing v850.
4365 (v850_target_architecture_hook): Remove function.
4366 (v850_gdbarch_init): New function. Add code previously in
4367 v850_target_architecture_hook().
4368 (_initialize_v850_tdep): Don't set target_architecture_hook.
4369 Call register_gdbarch_init() instead.
4370
42725910
DJ
43712002-05-16 Daniel Jacobowitz <drow@mvista.com>
4372
4373 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4374 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4375 (fixup_class_method_type): Likewise.
4376
0bc68c49
DJ
43772002-05-15 Daniel Jacobowitz <drow@mvista.com>
4378
4379 From Martin Pool <mbp@samba.org>:
4380 * gdbserver/server.c (gdbserver_usage): New function.
4381 (main): Call it.
4382
99d9066e
JB
43832002-05-15 Jim Blandy <jimb@redhat.com>
4384
4385 Add macro structures to GDB's symbol tables. Nobody puts anything
4386 in them yet.
4387 * symtab.h (struct symtab): New member: `macro_table'.
4388 * buildsym.h (pending_macros): New global variable.
4389 * buildsym.c: #include "macrotab.h".
4390 (buildsym_init): Initialize `pending_macros'.
4391 (end_symtab): If we found macro information while reading a CU's
4392 debugging info, do build a symtab structure for it. Make the
4393 symtab point to the macro information, and clear the
4394 `pending_macros' pointer which held it while we were reading the
4395 debug info.
4396 (really_free_pendings): Free any pending macro table.
4397 * objfiles.h (struct objfile): New member: `macro_cache'.
4398 * objfiles.c (allocate_objfile): Set allocate and free functions
4399 for the macro cache's objstack.
4400 (free_objfile): Empty the macro cache's obstack.
4401 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4402 set new allocate and free functions for it.
4403 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4404 free functions for the macro cache's objstack. (Why is this
4405 function building its own objfile?)
4406 * symmisc.c (print_objfile_statistics): Print statistics on the
4407 macro bcache.
4408 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4409
c899585b
RE
44102002-05-15 Richard Earnshaw <rearnsha@arm.com>
4411
4412 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4413 (REGISTER_U_ADDR): Delete definition.
4414 (arm_register_u_addr): Delete declaration.
4415
a6cdd8c5
RE
44162002-05-15 Richard Earnshaw <rearnsha@arm.com>
4417
4418 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4419 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4420
fd3a5ca1
DJ
44212002-05-14 Daniel Jacobowitz <drow@mvista.com>
4422
4423 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4424 stop_at -> stop_pc.
4425
c97dcfc7
AC
44262002-05-14 Andrew Cagney <ac131313@redhat.com>
4427
4428 * regcache.c (register_valid): Revise comments refering to "Not
4429 available" and "unavailable".
4430 * frame.c (frame_register_read): Ditto.
4431 * findvar.c (value_of_register): Ditto.
4432
93021b7d
AC
44332002-05-15 Andrew Cagney <cagney@redhat.com>
4434
4435 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4436 (remote-sim.o): Update dependencies.
4437 (d10v-tdep.o): Specify dependencies.
4438 (sim_d10v_h): Define.
4439
a86bc61c
JB
44402002-05-14 Jim Blandy <jimb@redhat.com>
4441
4442 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4443 * macrotab.c (macro_lookup_inclusion, find_definition,
4444 new_macro_table): Same.
4445
4446 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4447 not `! strcmp ()'. This is a dubious improvement.
4448 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4449
4450 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4451 although it's not necessary, to avoid a warning.
4452
2fdde8f8
DJ
44532002-05-14 Daniel Jacobowitz <drow@mvista.com>
4454
4455 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4456 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4457 TYPE_INSTANCE_FLAGS.
4458 (struct main_type): New.
4459 (struct type): Move most members to struct main_type. Change
4460 cv_type and as_type to new type_chain member. Add instance_flags.
4461 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4462 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4463 (finish_cv_type): Remove prototype.
4464 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4465 Set TYPE_CHAIN.
4466 (alloc_type_instance): New function.
4467 (smash_type): New function.
4468 (make_pointer_type, make_reference_type, make_function_type)
4469 (smash_to_member_type, smash_to_method_type): Call smash_type.
4470 (make_qualified_type): New function.
4471 (make_type_with_address_space): Call make_qualified_type.
4472 (make_cv_type): Likewise.
4473 (finish_cv_type): Remove unnecessary function.
4474 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4475 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4476 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4477 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4478 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4479 * hpread.c (hpread_read_struct_type): Likewise.
4480 * stabsread.c (read_struct_type): Likewise.
4481
843fedf4
EZ
44822002-05-14 Elena Zannoni <ezannoni@redhat.com>
4483
4484 * configure.tgt: Add a catch all sh* target, for cases like
4485 sh[2,3,4]-elf and sh-hms.
4486
05a6c72c
KS
44872002-05-14 Keith Seitz <keiths@redhat.com>
4488
4489 * event-loop.c (create_file_handler): Don't do anything but
4490 update data when we are given a fd which we are already
4491 monitoring.
4492
5d085aaf
ML
44932002-05-14 Michal Ludvig <mludvig@suse.cz>
4494
4495 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4496 (update_context): Use __func__ in warnings.
4497
9db8d71f
DJ
44982002-05-14 Daniel Jacobowitz <drow@mvista.com>
4499
4500 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4501 and tcp_close to net_open and net_close.
4502 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4503 using UDP if requested. Don't try to disable Nagle on UDP
4504 sockets.
4505 * remote.c (remote_serial_open): New function. Warn about UDP.
4506 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4507
5dbc6baa
EZ
45082002-05-13 Elena Zannoni <ezannoni@redhat.com>
4509
4510 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4511
cc3023f7
EZ
45122002-05-13 Elena Zannoni <ezannoni@redhat.com>
4513
4514 * configure.tgt: Remove sh-hms target.
4515 * MAINTAINERS: Don't list sh-hms as a separate target.
4516
ec2bcbe7
JB
45172002-05-13 Jim Blandy <jimb@redhat.com>
4518
4519 Add first preprocessor macro-expansion files.
4520 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4521 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4522 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4523 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4524 (COMMON_OBS): Add macrotab.o, macroexp.o.
4525 (macroexp.o, macrotab.o): New rules.
4526
6d531722
AC
45272002-05-13 Andrew Cagney <ac131313@redhat.com>
4528
4529 * config/m88k/tm-m88k.h: Update copyright.
4530 (m88k_target_write_pc): Declare
4531 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4532 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4533 (SHIFT_INST_REGS): Update definition.
4534 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4535 using old definition of TARGET_WRITE_PC.
4536 * regcache.c (generic_target_write_pc): Delete code handling
4537 NNPC_REGNUM.
4538 * gdbarch.sh (NNPC_REGNUM): Delete.
4539 * gdbarch.h, gdbarch.c: Regenerate.
4540
3e3f2739
RE
45412002-05-13 Richard Earnshaw <rearnsha@arm.com>
4542
4543 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4544 builtin reg number.
4545
0004e5a2
DJ
45462002-05-13 Daniel Jacobowitz <drow@mvista.com>
4547
4548 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4549 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4550 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4551 access macros.
4552 * c-typeprint.c (cp_type_print_method_args): Likewise.
4553 (c_type_print_args): Likewise.
4554 * d10v-tdep.c (d10v_push_arguments): Likewise.
4555 (d10v_extract_return_value): Likewise.
4556 * expprint.c (print_subexp): Likewise.
4557 * gdbtypes.c (lookup_primitive_typename): Likewise.
4558 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4559 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4560 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4561 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4562 (TYPE_VECTOR): Likewise.
4563 * hpread.c (hpread_read_struct_type)
4564 (fix_static_member_physnames, fixup_class_method_type)
4565 (hpread_type_lookup): Likewise.
4566 * mdebugread.c (parse_symbol, parse_type): Likewise.
4567 * p-lang.c (is_pascal_string_type): Likewise.
4568 * valops.c (hand_function_call): Likewise.
4569 * x86-64-tdep.c (classify_argument): Likewise.
4570
4571 * hpread.c (hpread_read_function_type)
4572 (hpread_read_doc_function_type): Call replace_type.
4573 * dstread.c (create_new_type): Delete.
4574 (decode_dst_structure, process_dst_function): Call alloc_type.
4575 Use type access macros.
4576
dff95cc7
MK
45772002-05-12 Mark Kettenis <kettenis@gnu.org>
4578
4579 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4580 the're not supported by the current architecture.
4581 (i387_fill_fxsave): Likewise.
4582
bbcd32ad
FF
45832002-05-12 Fred Fish <fnf@redhat.com>
4584
4585 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4586 sect_index_xxx members to index the first slot in section_offsets
4587 if all of the section_offsets are zero.
4588
89cf4787
MK
45892002-05-12 Mark Kettenis <kettenis@gnu.org>
4590
4591 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4592 checked in with last change.
4593
1f77ffc5
MK
45942002-05-12 Mark Kettenis <kettenis@gnu.org>
4595
4596 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4597 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4598 config.sub.
4599
89b8b4a9
DJ
46002002-05-12 Daniel Jacobowitz <drow@mvista.com>
4601
4602 * Makefile.in: Update dependencies.
4603
14a5e767
AC
46042002-05-11 Andrew Cagney <ac131313@redhat.com>
4605
4606 * language.c (local_hex_string_custom): Simplify. Do not depend
4607 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4608
4609 * memattr.c (mem_info_command): Replace calls to
4610 longest_local_hex_string and longest_local_hex_string_custom.
4611 * buildsym.c (make_blockvector): Ditto.
4612 * solib.c (info_sharedlibrary_command): Ditto.
4613 * tracepoint.c (tracepoints_info): Ditto.
4614 * symtab.c (print_msymbol_info): Ditto.
4615
4616 * language.c (local_hex_string): Delete.
4617 (local_hex_string_custom): Delete.
4618 (longest_local_hex_string): Rename to local_hex_string.
4619 (longest_local_hex_string_custom): Rename to
4620 local_hex_string_custom.
4621 * language.h (local_hex_string): Change parameter type to LONGEST.
4622 (local_hex_string_custom): Ditto.
4623 (longest_local_hex_string): Delete declaration.
4624 (longest_local_hex_string_custom): Ditto.
4625
4626 * solib.c: Update copyright.
4627 * memattr.c: Update copyright.
4628
13d01224
AC
46292002-05-11 Andrew Cagney <ac131313@redhat.com>
4630
4631 * arch-utils.h (legacy_register_to_value): Declare.
4632 (legacy_value_to_register): Declare.
4633 (legacy_convert_register_p): Declare.
4634 * arch-utils.c (legacy_register_to_value): New function.
4635 (legacy_value_to_register): New function.
4636 (legacy_convert_register_p): New function.
4637
4638 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4639 (VALUE_TO_REGISTER): Define.
4640 (CONVERT_REGISTER_P): Define.
4641 * gdbarch.h, gdbarch.c: Regenerate.
4642
4643 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4644 VALUE_TO_REGISTER.
4645 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4646 CONVERT_REGISTER_P.
4647
4a1970e4
DJ
46482005-05-11 Daniel Jacobowitz <drow@mvista.com>
4649 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4650
4651 * Makefile.in: Update dependencies for valops.c.
4652 * valops.c: Include "gdb_assert.h".
4653 (typecmp): Skip THIS parameter to methods.
4654 (find_method_list): Remove static_memfuncp argument,
4655 update callers. Check for stub methods.
4656 (find_value_oload_method_list): Don't set *static_memfuncp.
4657 (find_overload_match): Don't check for stub methods. Assert
4658 that methods are not stubbed. Handle static methods.
4659 (value_find_oload_method_list): Remove static_memfuncp argument.
4660 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4661 to the argument list for static stub methods.
4662 * value.h (value_find_oload_method_list): Update prototype.
4663
b2e75d78
AC
46642002-05-11 Andrew Cagney <ac131313@redhat.com>
4665
4666 * arch-utils.h (generic_register_size): Declare.
4667 (generic_register_raw_size, generic_register_virtual_size): Delete
4668 declarations.
4669 * arch-utils.c (generic_register_raw_size): Delete.
4670 (generic_register_size): New function.
4671 (generic_register_virtual_size): Delete.
4672
4673 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4674 default generic_register_size.
4675 * gdbarch.h, gdbarch.c: Re-generate.
4676
4677 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4678 register_virtual_size.
4679 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4680 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4681
451fbdda
AC
46822002-05-11 Andrew Cagney <ac131313@redhat.com>
4683
4684 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4685 * gdbarch.h, gdbarch.c: Regenerate.
4686 * gnu-v3-abi.c: Update copyright.
4687 (vtable_address_point_offset): Update.
4688 (gnuv3_rtti_type): Update.
4689 (gnuv3_baseclass_offset): Update.
4690 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4691 (init_fetch_link_map_offsets): Update.
4692 * remote.c (get_remote_state): Update.
4693
6d2f5cea
DJ
46942002-05-11 Daniel Jacobowitz <drow@mvista.com>
4695
4696 * TODO: Remove value_headof/value_from_vtable_info comment.
4697 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4698 * values.c (value_headof, value_from_vtable_info): Delete.
4699 * value.h (value_from_vtable_info): Delete prototype.
4700
d2324da4
AC
47012002-05-11 Andrew Cagney <ac131313@redhat.com>
4702
4703 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4704 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4705 $(gdb_regex_h).
4706 (gdb_assert_h): Define.
4707 (gdb_wait_h): Define.
4708 (gdb_regex_h): Define.
4709
5c717440
DJ
47102002-05-11 Daniel Jacobowitz <drow@mvista.com>
4711
4712 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4713 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4714
6c7861b3
JT
47152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4716
4717 * nbsd-tdep.c: Fix comment.
4718
ea5bc2a6
JT
47192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4720
4721 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4722 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4723 (nbsd-tdep.o): New dependency list.
4724 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4725 nbsd-tdep.h.
4726 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4727 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4728 * nbsd-tdep.c: New file.
4729 * nbsd-tdep.h: New file.
4730 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4731 nbsd-tdep.h.
4732 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4733 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4734 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4735 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4736
b28da865
JT
47372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4738
4739 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4740 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4741 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4742 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4743 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4744 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4745
4b8ff1fa
JT
47462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4747
4748 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4749 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4750 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4751 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4752 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4753 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4754 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4755
dfe6eb1f
JT
47562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4757
4758 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4759 fetch_elfcore_registers to...
4760 * i386nbsd-tdep.c: ...here.
4761 (i386nbsd_use_struct_convention): Rename to...
4762 (i386nbsd_aout_use_struct_convention): ...this.
4763 (i386nbsd_supply_reg): New function.
4764 (i386nbsd_fill_reg): New function.
4765 (fetch_core_registers): Use i386nbsd_supply_reg.
4766 (fetch_elfcore_registers): Likewise.
4767 (_initialize_i386nbsd_tdep): New function.
4768 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4769 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4770 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4771 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4772 (i386nbsd_aout_use_struct_convention): ...this.
4773
20cb8cda
JT
47742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4775
4776 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4777 (store_inferior_registers): Use shnbsd_fill_reg.
4778 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4779 sh_nbsd_supply_register): Collapse into...
4780 (shnbsd_supply_reg): ...this.
4781 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4782 (shnbsd_fill_reg): ...this.
4783 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4784 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4785 (fetch_core_registers): Use shnbsd_supply_reg.
4786 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4787 (sh_nbsd_core_fns): Rename to...
4788 (shnbsd_core_fns): ...this.
4789 (sh_nbsd_elfcore_fns): Rename to...
4790 (shnbsd_elfcore_fns): ...this.
4791 (sh_nbsd_init_abi): Rename to...
4792 (shnbsd_init_abi): ...this.
4793 (_initialize_sh_nbsd_tdep): Rename to...
4794 (_initialize_shnbsd_tdep): ...this.
4795 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4796 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4797 sh_nbsd_fill_register): Remove prototypes.
4798 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4799
e750d25e
JT
48002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4801
4802 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4803 (i387-nat.o): Delete dependency list.
4804 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4805 (x86-64-linux-nat.o): Likewise.
4806 * i387-nat.c: Delete file, moving contents to...
4807 * i387-tdep.c: ...here.
4808 * i387-nat.h: Rename...
4809 * i387-tdep.h: ...to this.
4810 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4811 * i386-linux-nat.c: Likewise.
4812 * i386bsd-nat.c: Likewise.
4813 * i386gnu-nat.c: Likewise.
4814 * i386nbsd-nat.c: Likewise.
4815 * i386v4-nat.c: Likewise.
4816 * x86-64-linux-nat.c: Likewise.
4817 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4818 * config/i386/go32.mh (NATDEPFILES): Likewise.
4819 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4820 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4821 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4822 * config/i386/linux.mh (NATDEPFILES): Likewise.
4823 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4824 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4825 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4826 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4827
1aee598a
JT
48282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4829
4830 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4831 (alphanbsd-nat.o): Remove dependency list.
4832 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4833 * alphanbsd-nat.c: Delete. Contents moved to...
4834 * alphanbsd-tdep.c: ...here.
4835 (_initialize_alphanbsd_tdep): Register core functions.
4836 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4837
12bcb0fe
JT
48382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4839
4840 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4841 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4842 (alphanbsd-nat.o): Likewise.
4843 (alphabsd-tdep.o): New dependency list.
4844 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4845 (fill_gregset): Use alphabsd_fill_reg.
4846 (supply_fpregset): Use alphabsd_supply_fpreg.
4847 (fill_fpregset): Use alphabsd_fill_fpreg.
4848 (fetch_inferior_registers): Use struct reg and struct fpreg
4849 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4850 and alphabsd_supply_fpreg.
4851 (store_inferior_registers): Use struct reg and struct fpreg
4852 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4853 and alphabsd_fill_fpreg.
4854 * alphabsd-tdep.c: New file.
4855 * alphabsd-tdep.h: New file.
4856 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4857 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4858 alphabsd_supply_fpreg.
4859 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4860 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4861
361d1df0
EC
48622002-05-11 Eric Christopher <echristo@redhat.com>
4863
4864 * mips-tdep.c (mips_double_register_type): Fix thinko.
4865 (mips_single_register_type): Ditto.
4866 * MAINTAINERS: Add self.
4867
92dd7cee
MK
48682002-05-11 Mark Kettenis <kettenis@gnu.org>
4869
4870 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4871 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4872 right thing on architectures with different endianness and/or
4873 integer sizes.
4874
e27da16d
JT
48752002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4876
4877 From Christian Limpach <chris@Pin.LU>
4878 * configure.in: Change sed expression which comments out
4879 NATDEPFILES to also comment out continuation lines.
4880 * configure: Regenerate.
4881
ddde02bd
EZ
48822002-05-10 Elena Zannoni <ezannoni@redhat.com>
4883
4884 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4885 big patch.
4886
1c922164
EZ
48872002-05-10 Elena Zannoni <ezannoni@redhat.com>
4888
4889 * sh-tdep.c: Include correct file.
4890
283150cd
EZ
48912002-05-10 Elena Zannoni <ezannoni@redhat.com>
4892
4893 New support for sh64-elf (sh5) target.
4894
4895 * configure.tgt: For sh64-elf target, default to sh-elf.
4896
4897 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4898 (struct gdbarch_tdep): Add new fields for new registers and ABI
4899 info.
361d1df0 4900
283150cd
EZ
4901 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4902 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4903 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4904 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4905 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4906 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4907 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4908 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4909 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4910 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4911 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4912 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4913 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4914 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4915 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4916 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4917 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4918 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4919 sign_extend, sh64_nofp_frame_init_saved_regs,
4920 sh64_init_extra_frame_info, sh64_get_saved_register,
4921 sh64_extract_struct_value_address, sh64_pop_frame,
4922 sh64_push_arguments, sh64_extract_return_value,
4923 sh64_store_return_value, sh64_show_media_regs,
4924 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4925 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4926 sh_sh64_register_virtual_type,
4927 sh_sh64_register_convert_to_virtual,
4928 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4929 sh64_register_read, sh64_pseudo_register_write,
4930 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4931 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4932 sh64_do_pseudo_register, sh_compact_do_registers_info,
4933 sh64_do_registers_info, sh_gdbarch_init): New functions.
4934
3117ed25
EZ
49352002-05-10 Elena Zannoni <ezannoni@redhat.com>
4936
4937 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4938
2654e6d4
DJ
49392002-05-10 Daniel Jacobowitz <drow@mvista.com>
4940
4941 * linespec.c (decode_line_1): Check for a double quote after
4942 a filename correctly.
4943
9ab3e532
JB
49442002-05-10 Jim Blandy <jimb@redhat.com>
4945
4946 Properly track the size of the current objfile's .debug_line section.
4947 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4948 (DWARF_LINE_SIZE): New macro.
4949 (dwarf2_build_psymtabs_hard): Record the line section's size in
4950 the partial symbol table.
4951 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4952 symbol table.
4953
126fa72d
PS
49542002-05-10 Petr Sorfa <petrs@caldera.com>
4955
4956 * ia64-tdep.c: Handle breakpoints on L instruction type
4957 in MLX instruction bundle by moving the breakpoint to
4958 the third slot (X instruction type) as L holds only data.
4959
1f077a3e
KB
49602002-05-10 Kevin Buettner <kevinb@redhat.com>
4961
4962 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4963 (process_one_symbol): Complain about discarding local symbols
4964 due to a misplaced N_LBRAC entry.
4965
8120c9d5 49662002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
4967
4968 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
4969 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4970 decrease the depth we are at, in the case of templates.
361d1df0 4971
67b2c998
DJ
49722002-05-09 Daniel Jacobowitz <drow@mvista.com>
4973
4974 * mips-tdep.c (mips_float_register_type): New function.
4975 (mips_double_register_type): New function.
4976 (mips_print_register): Use them.
4977 (do_fp_register_row): Likewise.
4978
fd326606
DJ
49792002-05-09 Daniel Jacobowitz <drow@mvista.com>
4980
6609d9af 4981 * signals/signals.c (signals): Remove conditional compilation around
fd326606 4982 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 4983 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 4984
bef35864
MS
49852002-05-09 Michael Snyder <msnyder@redhat.com>
4986
4987 * remote-rdp.c (remote_rdp_can_run): Remove.
4988
c55a3f73
TT
49892002-05-09 Tom Tromey <tromey@redhat.com>
4990
4991 * jv-valprint.c (java_val_print): Handle `char' as a special case
4992 of TYPE_CODE_INT.
4993
b8d5e71d
MS
49942002-05-09 Michael Snyder <msnyder@redhat.com>
4995
4996 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4997 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 4998 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 4999 str r(0123),[sp,#nn].
361d1df0 5000 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5001 order-independent by placing it in a loop.
5002
e2cd42dd
MS
50032002-05-06 Michael Snyder <msnyder@redhat.com>
5004
5005 * stabsread.c (read_type): Add recognition for new attribute:
5006 "@V;" means that an array type is actually a vector.
5007 This is analogous to the vector flag that's been added to dwarf2.
5008
3ce1502b
MK
50092002-05-09 Mark Kettenis <kettenis@gnu.org>
5010
5011 * i386-tdep.h (i386_abi): New enum.
5012 (struct gdbarch_tdep): Replace os_ident member with abi.
5013 (i386_gdbarch_register_os_abi): New prototype.
5014 * i386-tdep.c (i386_abi_names): New array.
5015 (process_note_abi_tag_sections): Removed.
5016 (process_note_sections): New function.
5017 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5018 (struct i386_abi_handler): New struct.
5019 (i386_abi_handler_list): New variable.
5020 (i386_gdbarch_register_os_abi): New function.
5021 (i386_gdbarch_init): Adapt for the changes given above.
5022
084c156a
DJ
50232002-05-08 Daniel Jacobowitz <drow@mvista.com>
5024
5025 * gregset.h: Say "GNU/Linux".
5026
6599f021
EZ
50272002-05-08 Elena Zannoni <ezannoni@redhat.com>
5028
5029 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5030 (build_gdbtypes): Build builtin_type_v2_float.
5031 (_initialize_gdbtypes): Register new builtin type.
5032
40af4b0c
AC
50332002-05-08 Andrew Cagney <ac131313@redhat.com>
5034
5035 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5036 (clear_gdbarch_swap): New function.
5037 (initialize_non_multiarch): Call.
5038 (gdbarch_update_p): Before calling init(), swap out and clear the
5039 existing architecture.
5040 * gdbarch.c: Regenerate.
5041
4fe84f46
JT
50422002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5043
5044 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5045 alphanbsd-tdep.c.
5046
4015edd1
JT
50472002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5048
5049 * sh-nbsd-nat.c: Rename to...
5050 * shnbsd-nat.c: ...this.
5051 * sh-nbsd-tdep.c: Rename to...
5052 * shnbsd-tdep.c: ...this.
5053 * sh-nbsd-tdep.h: Rename to...
5054 * shnbsd-tdep.h: ...this.
5055 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5056 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5057
0e2bd219
RE
50582002-05-08 Richard Earnshaw <rearnsha@arm.com>
5059
5060 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5061 concatenation for command help messages.
5062
13a38d45
JT
50632002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5064
5065 * NEWS: Note new sh*-*-netbsdelf* configuration.
5066 * configure.host: Set gdb_host_cpu to sh for all sh*.
5067 (sh*-*-netbsdelf*): New host.
5068 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5069 (sh*-*-netbsdelf*): New target.
5070 * sh-nbsd-nat.c: New file.
5071 * sh-nbsd-tdep.c: New file.
5072 * sh-nbsd-tdep.h: New file.
5073 * config/sh/nbsd.mh: New file.
5074 * config/sh/nbsd.mt: New file.
5075 * config/sh/nm-nbsd.h: New file.
5076 * config/sh/tm-nbsd.h: New file.
5077
d658f924
JT
50782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5079
5080 * sh-tdep.c (sh_osabi_names): Declare.
5081 (process_note_abi_tag_sections): New function.
5082 (get_elfosabi): Ditto.
5083 (sh_gdbarch_register_os_abi): Ditto.
5084 (sh_dump_tdep): Ditto.
5085 _initialize_sh_tdep): Use gdbarch_register to register
5086 sh_gdbarch_init and sh_dump_tdep.
5087 * config/sh/tm-sh.h (sh_osabi): Declare.
5088 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5089
848cfffb
AC
50902002-05-07 Andrew Cagney <ac131313@redhat.com>
5091
5092 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5093 (thumb_scan_prologue): Ditto.
5094 (arm_find_callers_reg): Ditto.
5095 (arm_frame_chain): Ditto.
5096 (arm_init_extra_frame_info): Ditto.
5097 (arm_frame_saved_pc): Ditto.
5098 (arm_pop_frame): Ditto.
5099 (arm_push_return_address): New function.
5100 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5101 call_dummy_location, call_dummy_breakpoint_offset_p,
5102 call_dummy_breakpoint_offset, call_dummy_p,
5103 call_dummy_stack_adjust_p, call_dummy_words,
5104 sizeof_call_dummy_words, call_dummy_start_offset,
5105 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5106 call_dummy_address, push_return_address and push_dummy_frame for
5107 generic dummy frames.
5108
e7d717c0
JT
51092002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5110
5111 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5112 size computation for alloca.
5113 (sh_fp_frame_init_saved_regs): Likewise.
5114
7bbcf283
RE
51152002-05-07 Richard Earnshaw <rearnsha@arm.com>
5116
5117 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5118 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5119 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5120 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5121 * remote-rdp.c (remote_rdp_fetch_register): Use
5122 ARM_MAX_REGISTER_RAW_SIZE.
5123 (remote_rdp_store_register): Likewise.
5124
4657573b
ML
51252002-05-07 Michal Ludvig <mludvig@suse.cz>
5126
361d1df0 5127 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5128 added default labels to switch {} statements.
5129 * x86-64-tdep.c: Ditto.
5130 * x86-64-linux-nat.c: Ditto.
5131
010f3b2f
JT
51322002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5133
5134 * solib.h: Protect against multiple inclusion.
5135
debd256d
JB
51362002-05-06 Jim Blandy <jimb@redhat.com>
5137
9ab3e532
JB
5138 Add first preprocessor macro-expansion files.
5139 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5140 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5141 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5142 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5143 (COMMON_OBS): Add macrotab.o, macroexp.o.
5144 (macroexp.o, macrotab.o): New rules.
5145
debd256d
JB
5146 Separate the job of reading the line number info statement program
5147 header (...expialidocious) out into its own function.
5148 * dwarf2read.c (struct line_head, struct filenames, struct
5149 directories): Replace with...
5150 (struct line_header): New structure, containing the full
5151 contents of the statement program header, including the
5152 include directory and file name tables.
5153 (read_file_scope): If we have line number info, instead of just
5154 calling dwarf_decode_lines to do all the work, call
5155 dwarf_decode_line_header first to get a `struct line_header'
5156 containing the data in the statement program header, and then
5157 pass that to dwarf_decode_lines, which will pick up where that
5158 left off. Be sure to clean up the `struct line_header' object.
5159 (dwarf_decode_line_header, free_line_header, add_include_dir,
5160 add_file_name): New functions.
5161 (dwarf_decode_lines): Move all the code to read the statement
5162 program header into dwarf_decode_line_header. Take the line
5163 header it built as the first argument, instead of the offset to
5164 the compilation unit's line number info. Use the new `struct
5165 line_header' type instead of the old structures. No need to do
5166 cleanups here now, since we don't allocate anything.
5167 (dwarf2_statement_list_fits_in_line_number_section,
5168 dwarf2_line_header_too_long): New complaints.
5169
ac3aafc7
EZ
51702002-05-06 Elena Zannoni <ezannoni@redhat.com>
5171
5172 * gdbtypes.c (init_vector_type): New function.
5173 (build_builtin_type_vec128): Simplify the representation of SIMD
5174 registers.
5175 (build_gdbtypes): Initialize new builtin vector types.
5176 (_initialize_gdbtypes): Register new vector types with gdbarch.
5177 (builtin_type_v4_float, builtin_type_v4_int32,
5178 builtin_type_v8_int16, builtin_type_v16_int8,
5179 builtin_type_v2_int32, builtin_type_v4_int16,
5180 builtin_type_v8_int8): New (renamed) SIMD types.
5181
13e49980
MK
51822002-05-06 Mark Kettenis <kettenis@gnu.org>
5183
5184 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5185 (i387_fill_fxsave): Likewise.
5186
997b20b8
AO
51872002-05-05 Alexandre Oliva <aoliva@redhat.com>
5188
5189 * alpha-tdep.c (alpha_extract_return_value): Don't use
5190 non-constant array size in prototype.
5191
535c96ce
AC
51922002-05-04 Andrew Cagney <ac131313@redhat.com>
5193
5194 From Brian Taylor <briant at model dot com>:
5195 * ui-out.c (ui_out_field_core_addr): Use the function
5196 longest_local_hex_string_custom'to format addresses > 32 bits
5197 wide.
5198
5199 * ui-out.c (ui_out_field_core_addr): Update comment.
5200
bedfa57b
AC
52012002-05-04 Andrew Cagney <ac131313@redhat.com>
5202
5203 * stack.c (select_and_print_frame): Make static. Delete the
5204 parameter `level'.
5205 (func_command): Update call.
5206 (select_frame_command): Delete code computing the frame level.
5207 * frame.h (select_and_print_frame): Delete declaration.
5208
f621c63e
AC
52092002-05-04 Andrew Cagney <ac131313@redhat.com>
5210
5211 * sparc-tdep.c (sparc_get_saved_register): Comment why
5212 get_prev_frame call is safe.
5213
0f7d239c
AC
52142002-05-04 Andrew Cagney <ac131313@redhat.com>
5215
5216 * frame.h (select_frame): Delete level parameter.
5217 * stack.c (select_frame): Update. Use frame_relative_level to
5218 obtain the frame's level.
5219 (select_and_print_frame): Update call.
5220 (select_frame_command): Ditto.
5221 (up_silently_base): Ditto.
5222 (down_silently_base): Ditto.
5223 * ocd.c (ocd_start_remote): Ditto.
5224 * remote-rdp.c (remote_rdp_open): Ditto.
5225 * remote-mips.c (mips_initialize): Ditto.
5226 (common_open): Ditto.
5227 * remote-e7000.c (e7000_start_remote): Ditto.
5228 * m3-nat.c (select_thread): Ditto.
5229 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5230 (child_get_current_exception_event): Ditto.
5231 * varobj.c (varobj_create): Ditto.
5232 (varobj_update): Ditto.
5233 (c_value_of_root): Ditto.
5234 * tracepoint.c (finish_tfind_command): Ditto.
5235 * corelow.c (core_open): Ditto.
5236 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5237 * thread.c (info_threads_command): Ditto.
5238 (switch_to_thread): Ditto.
5239 * infrun.c (normal_stop): Ditto.
5240 (restore_selected_frame): Ditto.
5241 (restore_inferior_status): Ditto.
5242 * breakpoint.c (insert_breakpoints): Ditto.
5243 (watchpoint_check): Ditto.
5244 (bpstat_stop_status): Ditto.
5245 (do_enable_breakpoint): Ditto.
5246 * blockframe.c (flush_cached_frames): Ditto.
5247 (reinit_frame_cache): Ditto.
5248
71d6c7b1
AC
52492002-05-04 Andrew Cagney <ac131313@redhat.com>
5250
5251 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5252 maintainer.
5253
cda6c68a
JB
52542002-05-04 Jim Blandy <jimb@redhat.com>
5255
5256 * gdbtypes.c (replace_type): Doc fix.
5257
5c1c87f0
AC
52582002-05-04 Andrew Cagney <ac131313@redhat.com>
5259
5260 * valprint.c (strcat_longest): Delete commented out function.
5261 Update copyright.
5262
cd9bfe15
AC
52632002-05-04 Andrew Cagney <ac131313@redhat.com>
5264
5265 * MAINTAINERS: Mark a29k as deleted.
5266 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5267 Move new configurations to the top.
5268 * configure.tgt: Remove a29k.
5269 * config/a29k/tm-vx29k.h: Delete.
5270 * config/a29k/vx29k.mt: Delete.
5271 * config/a29k/tm-a29k.h: Delete.
5272 * config/a29k/a29k-udi.mt: Delete.
5273 * config/a29k/a29k.mt: Delete.
5274 * a29k-tdep.c: Delete.
5275 * remote-udi.c: Delete.
5276 * remote-mm.c: Delete.
5277 * remote-eb.c: Delete.
5278 * remote-adapt.c: Delete.
5279 * Makefile.in: Remove obsolete code.
5280 * gdbserver/Makefile.in: Ditto.
5281 * config/s390/s390x.mt: Ditto.
5282 * config/s390/s390.mt: Ditto.
5283 * config/sparc/sparclynx.mh: Ditto.
5284 * config/sparc/linux.mh: Ditto.
5285 * config/pa/hppaosf.mh: Ditto.
5286 * config/pa/hppabsd.mh: Ditto.
5287 * config/ns32k/nbsd.mt: Ditto.
5288 * config/mips/vr5000.mt: Ditto.
5289 * config/m68k/sun3os4.mh: Ditto.
5290 * config/m68k/nbsd.mt: Ditto.
5291 * config/m68k/m68klynx.mh: Ditto.
5292 * config/m32r/m32r.mt: Ditto.
5293 * config/i386/x86-64linux.mt: Ditto.
5294 * config/i386/nbsdelf.mt: Ditto.
5295 * config/i386/nbsd.mt: Ditto.
5296 * config/i386/i386lynx.mh: Ditto.
5297
bf0c5130
AC
52982002-05-04 Andrew Cagney <ac131313@redhat.com>
5299
5300 * target.c (debug_print_register): New function. Handle oversize
5301 registers.
5302 (debug_to_fetch_registers): Call.
5303 (debug_to_store_registers): Call.
5304
2ae1c2d2
JB
53052002-05-03 Jim Blandy <jimb@redhat.com>
5306
13a393b0
JB
5307 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5308 (read_type): Doc fix.
5309 * gdbtypes.c (replace_type): Doc fix.
5310
2ae1c2d2
JB
5311 * stabsread.c (multiply_defined_struct): New complaint.
5312 (read_struct_type): If the type we were passed isn't empty, or
5313 incomplete, don't read the new struct type into it; complain,
5314 and return the original type unchanged. Take a new `type_code'
5315 argument, which is the type code for the new type.
5316 (read_type): Rather than storing the type's type code here, pass
5317 it as an argument to read_struct_type, and let that take care of
5318 storing it. That way, we don't overwrite the original type code,
5319 so read_struct_type can use it to decide whether we're overwriting
5320 something we shouldn't.
5321 (complain_about_struct_wipeout): New function.
5322
8de9bdc4
AC
53232002-05-03 Andrew Cagney <ac131313@redhat.com>
5324
5325 * gdbarch.sh: Assert that gdbarch is non-NULL.
5326 * gdbarch.c: Regenerate.
5327
f773fdbb
JM
53282002-05-03 Jason Merrill <jason@redhat.com>
5329
5330 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5331 and return NULL.
5332
0e04a514
ML
53332002-05-03 Michal Ludvig <mludvig@suse.cz>
5334
5335 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5336 (x86_64_dwarf2gdb_regno_map_length),
5337 (x86_64_dwarf2_reg_to_regnum): Added.
5338 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5339 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5340 (_initialize_x86_64_tdep): Synced with the change above.
5341 (x86_64_skip_prologue): Reformulated message.
5342
065432a8
PM
53432002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5344
5345 * f-exp.y: Also use new prev_lexptr variable
5346 to improve error reporting. Based on Michael Snyder
5347 2002-04-24 dated patch to c-exp.y.
5348 * jv-exp.y: Likewise.
5349 * m2-exp.y: Likewise.
5350
a3162708
EZ
53512002-05-02 Elena Zannoni <ezannoni@redhat.com>
5352
5353 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5354 we are dealing with vectors.
5355
03620c38
PM
53562002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5357
5358 * config/m68k/tm-nbsd.h: Obvious fix,
5359 correct machine name.
5360
6604db2e
PM
53612002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5362
5363 * p-typeprint.c (pascal_type_print_base): Add support
5364 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5365
0906b739
PM
53662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5367
5368 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5369 for fondamental pascal 'char' type.
5370
e2625b33
PM
53712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5372
5373 * p-lang.h (is_pascal_string_type): Declaration changed,
5374 new sixth argument of type char ** added.
361d1df0 5375 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5376 changed. Args length_pos, length_size, string_pos, char_size
5377 can now be NULL. New argument arrayname set to the field
5378 name of the char array. Return value set to char array
5379 field index plus one.
361d1df0 5380 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5381 is_pascal_string_type function.
5382
cf17c188
AC
53832002-05-02 Andrew Cagney <cagney@redhat.com>
5384
5385 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5386 <cagney@redhat.com> change.
5387 * gdbarch.c: Regenerate.
5388
52bca491
AC
53892002-05-02 Andrew Cagney <cagney@redhat.com>
5390
5391 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5392 before probing for a new one. Detect errorenous gdbarch_init
5393 functions.
5394 * gdbarch.c: Regenerate.
5395
d5e72505
AC
53962002-05-01 Andrew Cagney <cagney@redhat.com>
5397
5398 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5399 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5400 * config/v850/tm-v850.h: Ditto. Update copyright.
5401
af566d9f
AC
54022002-04-30 Andrew Cagney <ac131313@redhat.com>
5403
5404 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5405 current_gdbarch.
5406
880d85fa
MS
54072002-04-30 Michael Snyder <msnyder@redhat.com>
5408
94c30b78
MS
5409 * arm-tdep.c: Whitespace clean-ups.
5410 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5411 should have been removed as part of 4/24 change.
5412
6f5987a6
KB
54132002-04-30 Kevin Buettner <kevinb@redhat.com>
5414
5415 * rs6000-tdep.c: Added comment describing how fpscr register
5416 numbers were chosen.
5417
1a113c93
MS
54182002-04-30 Michael Snyder <msnyder@redhat.com>
5419
5420 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5421
9a6f53fe
EZ
54222002-04-29 Elena Zannoni <ezannoni@redhat.com>
5423
5424 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5425 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5426 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5427
11ed25ac
KB
54282002-04-29 Kevin Buettner <kevinb@redhat.com>
5429
5430 From Louis Hamilton <hamilton@redhat.com>:
5431 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5432 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5433 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5434 not bfd-private xcoff data, to determine wordsize.
5435 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5436
ae232405
AC
54372002-04-29 Andrew Cagney <ac131313@redhat.com>
5438
5439 GDB 5.2 released from 5.2 branch.
5440
91fd20f7
ML
54412002-04-29 Michal Ludvig <mludvig@suse.cz>
5442
5443 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5444 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5445 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5446
2dc5091b
EZ
54472002-04-29 Elena Zannoni <ezannoni@redhat.com>
5448
5449 * rs6000-tdep.c (rs6000_extract_return_value,
5450 rs6000_store_return_value): Handle returning vectors.
5451 (rs6000_gdbarch_init): Use
5452 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5453 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5454 New function.
5455 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5456 vectors.
5457 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5458 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5459
2b9848d8
PM
54602002-04-24 Pierre Muller <ics.u-strasbg.fr>
5461
5462 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5463 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5464 with fprintf_unfiltered (gdb_stderr,...).
5465
f8d17dc5
PM
54662002-04-24 Pierre Muller <ics.u-strasbg.fr>
5467
5468 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5469 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5470 Replace fprintf (stderr,...
5471 with fprintf_unfiltered (gdb_stderr,....
5472 * remote-es.c: Likewise.
5473 * remote-os9k.c: Likewise.
5474 * remote-st.c: Likewise.
5475
2f2f1ad1
AS
54762002-04-28 Andreas Schwab <schwab@suse.de>
5477
5478 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5479 linux-proc.o and gcore.o.
5480
b6779aa2
AC
54812002-04-26 Michal Ludvig <mludvig@suse.cz>
5482
5483 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5484 code without frame pointers.
5485
7e57f5f4
AC
54862002-04-26 Andrew Cagney <ac131313@redhat.com>
5487
5488 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5489 ON_STACK is needed.
5490
2ceb85d0
BE
54912002-04-26 Ben Elliston <bje@redhat.com>
5492
5493 * target.c (do_xfer_memory): Correct reference to the new option
5494 "trust-readonly-sections".
5495
f5f8a009
EZ
54962002-04-26 Elena Zannoni <ezannoni@redhat.com>
5497
5498 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5499 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5500 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5501 vectors.
5502 (read_array_type): Record the fact that this array type is really a
5503 vector (i.e. are passed in by value).
5504
5868c862
JT
55052002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5506
5507 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5508 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5509 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5510 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5511 * alpha-linux-tdep.c: Include frame.h.
5512 (alpha_linux_sigcontext_addr): New function.
5513 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5514 alpha_linux_sigcontext_addr.
5515 * alpha-osf1-tdep.c: Include gdbcore.h.
5516 (alpha_osf1_sigcontext_addr): New function.
5517 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5518 alpha_osf1_sigcontext_addr.
5519 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5520 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5521
bfb01f37
AC
55222002-04-26 Andrew Cagney <ac131313@redhat.com>
5523
361d1df0 5524 * stack.c (selected_frame_level):
bfb01f37
AC
5525 (select_frame): Do not set selected_frame_level.
5526 * frame.h (selected_frame_level): Delete declaration.
5527
15813d3f
AC
55282002-04-26 Andrew Cagney <ac131313@redhat.com>
5529
5530 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5531 convert_from_func_ptr-addr when AIX / PowerOpen.
5532
6096c27a
AC
55332002-04-25 Andrew Cagney <ac131313@redhat.com>
5534
5535 * valops.c (hand_function_call): Call
5536 generic_save_call_dummy_addr.
5537 * frame.h (generic_save_call_dummy_addr): Declare.
5538 * blockframe.c (struct dummy_frame): Add fields call_lo and
5539 call_hi.
5540 (generic_find_dummy_frame): Check for PC in range call_lo to
5541 call_hi instead of entry_point_address.
5542 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5543 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5544 (generic_save_call_dummy_addr): New function.
5545
f510d44e
DM
55462002-04-24 David S. Miller <davem@redhat.com>
5547
5548 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5549 sparc_skip_prologue.
5550 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5551 information to find prologue when possible.
5552 (sparc_prologue_frameless_p): Call examine_prologue directly.
5553 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5554 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5555 second argument.
5556 (SKIP_PROLOGUE): Likewise.
5557
15d72a92
JT
55582002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5559
5560 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5561 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5562 indicate that the condition it was testing is always true.
5563 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5564 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5565 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5566
accc6d1f
JT
55672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5568
5569 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5570 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5571 tdep->jb_pc and tdep->jb_elt_size.
5572 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5573 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5574 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5575 * alpha-nat.c (get_longjmp_target): Remove.
5576 (JB_ELEMENT_SIZE): Ditto.
5577 (JB_PC): Ditto.
5578 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5579 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5580 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5581 to alpha_get_longjmp_target.
5582 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5583 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5584 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5585
1bfdc549
AC
55862002-04-25 Andrew Cagney <ac131313@redhat.com>
5587
5588 * README: Update to GDB 5.2.
5589
1bd316f0
AC
55902002-04-25 Andrew Cagney <ac131313@redhat.com>
5591
5592 * gdbarch.sh (LC_ALL): Set to `c'.
5593
2e5ff58c
TR
55942002-04-25 Theodore A. Roth <troth@verinet.com>
5595
5596 * avr-tdep.c: Ran through gdb_indent.sh.
5597
e33ce519
TR
55982002-04-25 Theodore A. Roth <troth@verinet.com>
5599
5600 * MAINTAINERS: Add myself as AVR maintainer.
5601 * NEWS: Note new target avr.
5602
8818c391
TR
56032002-04-25 Theodore A. Roth <troth@verinet.com>
5604
5605 * Makefile.in: Add support for AVR target.
5606 * configure.tgt: Add support for AVR target.
5607 * avr-tdep.c: New file
5608 * config/avr/avr.mt: New file.
5609
79509c2d
TR
56102002-04-25 Theodore A. Roth <troth@verinet.com>
5611
5612 * MAINTAINERS: Add myself to write-after-approval.
5613
dac8068e
PM
56142002-04-24 Pierre Muller <ics.u-strasbg.fr>
5615
5616 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5617 with fprintf_unfiltered (gdb_stderr,....
5618
25bf3106
PM
56192002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5620
5621 Fix PR gdb/508.
5622 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5623
24467a86
PM
56242002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5625
5626 * p-exp.y: Also use new prev_lexptr variable
5627 to improve error reporting. Based on Michael Snyder
5628 2002-04-24 dated patch to c-exp.y.
5629
95b80706
JT
56302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5631
5632 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5633 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5634 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5635 to 0.
5636 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5637 and struct value.
5638 (FUNCTION_START_OFFSET): Remove.
5639 (BREAKPOINT): Ditto.
5640
e90cc612
JT
56412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5642
5643 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5644 * NEWS: Ditto.
5645
6c72f9f9
JT
56462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5647
5648 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5649 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5650 alpha_linux_pc_in_sigtramp.
5651 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5652 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5653 alpha_osf1_pc_in_sigtramp.
5654 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5655 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5656 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5657 alphafbsd_pc_in_sigtramp.
5658 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5659 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5660 alphanbsd_pc_in_sigtramp.
5661 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5662 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5663
5e4f3379
JT
56642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5665
5666 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5667
da8ca43d
JT
56682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5669
5670 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5671 alphanbsd-tdep.c.
5672 (alphanbsd-nat.o): New dependency list.
5673 (alphanbsd-tdep.o): Ditto.
5674 * NEWS: Note new native NetBSD/alpha configuration.
5675 * alphanbsd-nat.c: New file.
5676 * alphanbsd-tdep.c: Ditto.
5677 * configure.host (alpha*-*-netbsd*): New host.
5678 * configure.tgt (alpha*-*-netbsd*): New target.
5679 * config/alpha/nbsd.mh: New file.
5680 * config/alpha/nbsd.mt: Ditto.
5681 * config/alpha/nm-nbsd.h: Ditto.
5682 * config/alpha/tm-nbsd.h: Ditto.
5683
36a6271d
JT
56842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5685
5686 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5687 (alpha-osf1-tdep.o): New dependency list.
5688 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5689 and skip_sigtramp_frame members.
5690 * alpha-linux-tdep.c: Include gdbcore.h.
5691 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5692 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5693 * alpha-osf1-tdep.c: New file.
5694 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5695 alpha-osf1-dep.c.
5696 (alpha_frame_past_sigtramp_frame): New function.
5697 (alpha_dynamic_sigtramp_offset): Ditto.
5698 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5699 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5700 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5701 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5702 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5703 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5704 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5705 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5706 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5707 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5708 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5709 to find_solib_trampoline_target.
5710 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5711 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5712 (SKIP_TRAMPOLINE_CODE): Remove.
5713 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5714 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5715 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5716 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5717 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5718 (PROC_SIGTRAMP_MAGIC): Ditto.
5719 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5720 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5721 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5722 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5723 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5724
2f4bc57b
JT
57252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5726
5727 * NEWS: Note that Alpha targets are now multi-arch.
5728
665132f9
MS
57292002-04-24 Michael Snyder <msnyder@redhat.com>
5730
5731 * parser-defs.h (prev_lexptr): New external variable.
5732 * parse.c (parse_exp_1): Set prev_lexptr to null before
5733 calling the language-specific parser.
5734 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5735 (yyerror): Use prev_lexptr in error reporting.
5736
32872fa7
DJ
57372002-04-24 Daniel Jacobowitz <drow@mvista.com>
5738
5739 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5740 * gregset.h: If FILL_FPXREGSET is defined, provide
5741 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5742 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5743 is defined, call fill_fpxregset.
5744
57e76fac
MS
57452002-04-24 Roland McGrath <roland@frob.com>
5746
5747 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5748 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5749 (supply_gregset, supply_fpregset): New functions.
5750
5751 * gnu-nat.c (gnu_find_memory_regions): New function.
5752 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5753 (gnu_xfer_memory): Add a cast.
5754
f43845b3
MS
57552002-04-24 Michael Snyder <msnyder@redhat.com>
5756
361d1df0 5757 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5758 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5759 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5760 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5761 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5762 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5763
a0abec03
AC
5764Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5765
5766 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5767 NUM_PSEUDO_REGS can be used.
5768
d7bd68ca
AC
57692002-04-24 Andrew Cagney <ac131313@redhat.com>
5770
5771 * arch-utils.h: Update copyright.
5772
5773 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5774 * gdbarch.h, gdbarch.c: Re-generate.
5775
5776 * inferior.h (IN_SIGTRAMP): Delete definition.
5777 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5778 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5779
5780 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5781 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5782 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5783 (find_proc_framesize): Ditto.
5784 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5785 (alpha_init_extra_frame_info): Ditto.
5786 * infrun.c (handle_inferior_event): Ditto.
5787 (handle_inferior_event): Ditto.
5788 (check_sigtramp2): Ditto.
5789 * blockframe.c (create_new_frame): Ditto.
5790 (get_prev_frame): Ditto.
5791 * ppc-linux-tdep.c: Update comments.
5792 * i386-linux-tdep.c: Update comments.
5793 * breakpoint.c (bpstat_what): Update comment.
5794
d06f167a
ML
57952002-04-24 Michal Ludvig <mludvig@suse.cz>
5796
5797 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5798 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5799 ptrace() calls.
5800 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5801
4867e41e
DM
58022002-04-24 David S. Miller <davem@redhat.com>
5803
21d83aa5
DM
5804 * i960-tdep.c (register_in_window_p): New function.
5805 (i960_find_saved_register): Use it instead of
5806 REGISTER_IN_WINDOW_P.
5807 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5808
4867e41e
DM
5809 * symtab.h (find_stab_function_addr): Kill extern.
5810 * minsyms.c (find_stab_function_addr): Remove from here...
5811 * dbxread.c: ... to here, and mark it static.
5812
69cdf6a2
DM
58132002-04-20 David S. Miller <davem@redhat.com>
5814
5815 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5816 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5817
5a595886
DM
58182002-04-21 David S. Miller <davem@redhat.com>
5819
5820 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5821 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5822 (vx_write_register): Likewise.
5823
1da1a192
JB
58242002-04-23 J. Brobecker <brobecker@gnat.com>
5825
5826 * source.c (is_regular_file): New function.
5827 (openp): Check wether file to open is a regular file
5828 to avoid opening directories.
5829
baa6f10b
JT
58302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5831
5832 * findvar.c (extract_signed_integer): Cast printf argument
5833 to suppress format warning.
5834 (extract_unsigned_integer): Likewise.
5835 * infcmd.c (registers_info): Likewise.
5836 * top.c (get_prompt_1): Likewise.
5837 * valops.c (value_assign): Likewise.
5838 * valprint.c (print_decimal): Likewise.
5839
b2c4da81
L
58402002-04-22 H.J. Lu (hjl@gnu.org)
5841
5842 * c-exp.y (typebase): Support
361d1df0 5843
b2c4da81
L
5844 [long|long long|short] [signed|unsigned] [int|]
5845
5846 and
5847
5848 signed [long|long long|short] int
5849
f267bd6a
JT
58502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5851
5852 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5853 and vax-tdep.h.
5854 * vax-tdep.h: New file.
5855 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5856 Make several routines static.
5857 (vax_get_saved_register): New function.
5858 (vax_gdbarch_init): New function.
5859 (_initialize_vax_tdep): Register vax_gdbarch_init.
5860 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5861 Remove macros now under the control of gdbarch.
5862
da3c6d4a
MS
58632002-04-22 Michael Snyder <msnyder@redhat.com>
5864
11d3b27d
MS
5865 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5866 Some whitespace and coding standards tweaks.
da3c6d4a 5867
a33f7558
JT
58682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * vax-tdep.c: Include regcache.h.
5871 (vax_call_dummy_words): New.
5872 (sizeof_vax_call_dummy_words): New.
5873 (vax_fix_call_dummy): New function.
5874 (vax_saved_pc_after_call): Ditto.
5875 * config/vax/tm-vax.h: Don't include regcache.h.
5876 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5877 (CALL_DUMMY): Remove.
5878 (CALL_DUMMY_WORDS): Define.
5879 (SIZEOF_CALL_DUMMY_WORDS): Define.
5880 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5881
47a73475
MS
58822002-04-18 Michael Snyder <msnyder@redhat.com>
5883
5884 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5885
52efde73
JT
58862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5887
5888 * vax-tdep.c (vax_frame_chain): New function.
5889 (vax_push_dummy_frame): Ditto.
5890 (vax_pop_frame): Ditto.
5891 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5892 (FRAMELESS_FUNCTION_INVOCATION): Use
5893 generic_frameless_function_invocation_not.
5894 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5895 (POP_FRAME): Use vax_pop_frame.
5896
ea74468c
JT
58972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5898
5899 * vax-tdep.c (vax_store_struct_return): New function.
5900 (vax_extract_return_value): Ditto.
5901 (vax_store_return_value): Ditto.
5902 (vax_extract_struct_value_address): Ditto.
5903 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5904 vax_store_struct_return.
5905 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5906 (STORE_RETURN_VALUE): Use vax_store_return_value.
5907 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5908
5516aa92
JT
59092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5910
5911 * vax-tdep.c (vax_frame_saved_pc): New function.
5912 (vax_frame_args_address_correct): Ditto.
5913 (vax_frame_args_address): Ditto.
5914 (vax_frame_locals_address): Ditto.
5915 (vax_frame_num_args): Move code to be in proximity to
5916 other frame-related functions.
5917 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5918 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5919 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5920 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5921 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5922
36af0b35
L
59232002-04-22 H.J. Lu (hjl@gnu.org)
5924
5925 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5926 includedir.
5927
ab62c900
JT
59282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5929
5930 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5931 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5932 (FRAME_INIT_SAVED_REGS): New macro.
5933
7232b100
JT
59342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5935
5936 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5937
b70d2aee
JT
59382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5939
5940 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5941 where needed.
5942 (fetch_osf_core_registers): Likewise.
5943 (supply_gregset): Likewise.
5944
a0e8a2d1 59452002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 5946
a0e8a2d1
JB
5947 * symfile.h (get_section_index): Define.
5948 * symfile.c (get_section_index): New function.
5949 * mdebugread.c (SC_IS_SBSS): New macro.
5950 (SC_IS_BSS): Return true for the scBss storage class only, as
5951 the scSBss storage class refers to the .sbss section.
5952 (parse_partial_symbols): Discard the symbols which associated
5953 section does not exist.
5954 Make sure to use the .sbss section index for symbols which
5955 storage class is scBss, rather than using the .bss section index.
5956
51eb8b08
JT
59572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5958
5959 * vax-tdep.c: Update copyright years.
5960 (vax_register_name): New function.
5961 (vax_register_byte): Ditto.
5962 (vax_register_raw_size): Ditto.
5963 (vax_register_virtual_size): Ditto.
5964 (vax_register_virtual_type): Ditto.
5965 * config/vax/tm-vax.h: Update copyright years.
5966 (REGISTER_NAMES): Remove.
5967 (REGISTER_NAME): Define.
5968 (REGISTER_BYTE): Use vax_register_byte.
5969 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5970 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5971 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5972
6cc1c0a8
AC
59732002-04-21 Andrew Cagney <ac131313@redhat.com>
5974
5975 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5976 declaration
5977 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5978
9319a2fe
DM
59792002-04-21 David S. Miller <davem@redhat.com>
5980
5981 * arch-utils.c (generic_prologue_frameless_p): Kill
5982 SKIP_PROLOGUE_FRAMELESS_P code.
5983 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5984 references.
5985 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5986 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5987 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5988 references.
5989 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5990 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5991 (sparc_gdbarch_init): Pass it to
5992 set_gdbarch_prologue_frameless_p.
a0e8a2d1 5993
e9ed6d01
JT
59942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5995
5996 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5997 (alphabsd-nat.o): New dependency list.
5998
36012033
JT
59992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6000
6001 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6002 alphafbsd-tdep.c.
6003 (alpha-linux-tdep.o): New dependency list.
6004 (alphafbsd-tdep.o): Likewise.
6005
3379287a
JT
60062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6007
6008 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6009 to here...
6010 * alpha-tdep.c: ...from here.
6011 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6012
4bcbd6cb
JT
60132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6014
6015 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6016 prototype from here...
6017 * alpha-tdep.h: ...to here.
6018
b31da25e
AC
60192002-04-21 Andrew Cagney <ac131313@redhat.com>
6020
6021 * frame.h (selected_frame_level): Document as deprecated.
6022 (frame_relative_level): Declare.
6023 * stack.c (frame_relative_level): New function.
6024 (selected_frame_level): Document as deprecated.
6025 (select_frame): Do not set the selected_frame_level.
6026
6027 * stack.c (frame_info, record_selected_frame): Update.
6028 (frame_command, current_frame_command): Update.
6029 (up_silently_base, up_command, down_silently_base): Update.
6030 (down_command): Update.
6031 * inflow.c (kill_command): Update.
6032 * tracepoint.c (finish_tfind_command): Update.
6033 * corelow.c (core_open): Update.
6034 * thread.c (info_threads_command): Update.
6035 (do_captured_thread_select): Update.
6036 * infcmd.c (finish_command): Update.
6037 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6038
9c1d6fe5
JT
60392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6040
6041 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6042
ab89facf
AC
60432002-04-21 Andrew Cagney <ac131313@redhat.com>
6044
6045 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6046 type const.
6047
82a4efa1
JT
60482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6049
6050 * alphafbsd-tdep.c: Update copyright years. Include
6051 alpha-tdep.h.
6052 (alphafbsd_use_struct_convention): Make static.
6053 (alphafbsd_init_abi): New function.
6054 (_initialize_alphafbsd_tdep): New function.
6055 * config/alpha/tm-fbsd.h: Update copyright years.
6056 (USE_STRUCT_CONVENTION): Remove.
6057
44dffaac
JT
60582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6059
6060 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6061 an Alpha ABI variant.
6062 (alpha_abi_handler_list): Declare.
6063 (alpha_gdbarch_register_os_abi): New function.
6064 (alpha_gdbarch_init): Give registered ABI variant handlers a
6065 chance to tweak the gdbarch once we have set up defaults.
6066 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6067
65585be4
JT
60682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6069
6070 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6071 to standard_coerce_float_to_double.
6072 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6073
d9b023cc
JT
60742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6075
6076 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6077 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6078 from gdbarch_tdep rather than a constant.
6079 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6080 the default text address for all Alpha Unix ABIs.
6081 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6082 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6083
dc129d82
JT
60842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6085
6086 * alpha-tdep.h: New file. Includes several Alpha target constants
6087 taken from...
6088 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6089 let gdbarch deal with.
6090 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6091 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6092 to dependency list.
6093 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6094 Alpha target register names.
6095 * alphabsd-nat.c: Likewise.
6096 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6097 Alpha target register names. Make serveral routines static.
6098 (alpha_get_saved_register): New function.
6099 (alpha_abi_names): New.
6100 (process_note_abi_tag_sections): New function.
6101 (get_elfosabi): New function.
6102 (alpha_gdbarch_init): New function.
6103 (alpha_dump_tdep): New function.
6104 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6105
d49d1e0a
AC
61062002-04-21 Andrew Cagney <ac131313@redhat.com>
6107
6108 * frame.c (find_saved_register): Delete #ifdef
6109 HAVE_REGISTER_WINDOWS code.
6110 * config/sparc/tm-sparc.h: Update comments.
6111 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6112
92e8c9ed
AC
61132002-04-21 Andrew Cagney <ac131313@redhat.com>
6114
6115 * i960-tdep.c (i960_find_saved_register): New function.
6116 (i960_get_saved_register): New function.
6117 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6118 (i960_get_saved_register): Declare.
6119 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6120
e1925118
DM
61212002-04-20 David S. Miller <davem@redhat.com>
6122
6123 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6124
29673b29
AC
61252002-04-20 Andrew Cagney <ac131313@redhat.com>
6126
6127 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6128 instead of NUM_PSEUDO_REGS.
6129
6c86dcd5
DM
61302002-04-20 David S. Miller <davem@redhat.com>
6131
6132 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6133 GDB_MULTI_ARCH_PARTIAL
6134 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6135 define, let tm-sp64.h do it.
6136
aa40ec90
JT
61372002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6138
6139 * frame.c (find_saved_register): Avoid a NULL pointer
6140 dereference and actually walk the frame list.
6141
0f79675b
AC
61422002-04-20 Andrew Cagney <ac131313@redhat.com>
6143
6144 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6145 sorted in most most-recent-used order. Document.
6146 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6147
c04a1aa8
DJ
61482002-04-20 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6151 (add_inferior): Call create_register_cache.
6152 (clear_inferiors): Call free_register_cache.
6153 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6154 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6155 (registers): Remove.
6156 (get_regcache): New function.
6157 (create_register_cache, free_register_cache): New functions.
6158 (set_register_cache): Don't initialize the register cache here.
6159 (registers_to_string, registers_from_string, register_data): Call
6160 get_regcache.
6161 * gdbserver/regcache.h: Add prototypes.
6162 * gdbserver/server.h: Likewise.
6163
611cb4a5
DJ
61642002-04-20 Daniel Jacobowitz <drow@mvista.com>
6165
6166 * gdbserver/mem-break.c: New file.
6167 * gdbserver/mem-break.h: New file.
6168 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6169 dependencies.
6170 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6171 member.
6172 (clear_inferiors): Free target_data member if set.
6173 (inferior_target_data, set_inferior_target_data): New functions.
6174 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6175 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6176 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6177 (struct inferior_linux_data): New.
6178 (linux_create_inferior): Use set_inferior_target_data.
6179 (linux_attach): Likewise. Call add_inferior.
6180 (linux_wait_for_one_inferior): New function.
6181 (linux_wait): Call it.
6182 (linux_write_memory): Add const.
6183 (initialize_low): Call set_breakpoint_data.
6184 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6185 handling members.
6186 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6187 call.
6188 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6189 prototypes.
6190 * gdbserver/target.c (read_inferior_memory)
6191 (write_inferior_memory): New functions.
6192 * gdbserver/target.h (read_inferior_memory)
6193 (write_inferior_memory): Change macros to prototypes.
6194 (struct target_ops): Update comments. Add const to write_memory
6195 definition.
6196
f91305dd 61972002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6198
6199 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6200 instead of ->prev.
6201 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6202 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6203 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6204 instead of ->prev.
6205
73d322b1
EZ
62062002-04-19 Elena Zannoni <ezannoni@redhat.com>
6207
6208 Fix PR gdb/471.
6209 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6210 (build_builtin_type_vec128): Ditto.
6211 (append_composite_type_field): Fix calculation of type length in
6212 union case.
6213
ccd9a834
EZ
62142002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6215
6216 * config/djgpp/README: Update.
6217
6218 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6219 compiler warnings.
6220
a57f9e49
JT
62212002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6222
6223 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6224 (alpha_setup_arbitrary_frame): ...to this.
6225 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6226 for alpha_setup_arbitrary_frame.
6227
f4f9705a
AC
62282002-04-18 Andrew Cagney <cagney@redhat.com>
6229
6230 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6231 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6232
f4f9705a
AC
6233 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6234 * target.h (memory_breakpoint_from_pc): Update declaration.
6235 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6236
6237 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6238 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6239 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6240 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6241 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6242 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6243 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6244 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6245 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6246 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6247 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6248 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6249
6250 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6251 const pointer.
6252 * monitor.c (monitor_insert_breakpoint): Ditto.
6253 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6254
6255 * config/mcore/tm-mcore.h: Update copyright.
6256 * mem-break.c: Ditto.
6257 * xstormy16-tdep.c: Ditto.
6258
29f319b8
PM
62592002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6260
6261 * p-exp.y: Add precedence rule for '^' token.
6262 This removes the shift/reduce conflicts.
6263 Remove the comment concerning these shift/reduce conflicts.
6264
ebeac11a
EZ
62652002-04-18 Elena Zannoni <ezannoni@redhat.com>
6266
6267 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6268 (registers_powerpc_nofp): New register set for processors
6269 without floating point unit.
6270
27c31547
DM
62712002-04-18 David S. Miller <davem@redhat.com>
6272
6273 * MAINTAINERS: Add myself to write-after-approval.
6274
47a73475
MS
62752002-04-17 Michael Snyder <msnyder@redhat.com>
6276
6277 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6278
953836b2
AC
62792002-04-17 Andrew Cagney <ac131313@redhat.com>
6280
6281 * rs6000-tdep.c (frame_initial_stack_address): Use
6282 frame_register_read to read the alloca_reg.
6283
8b0d4340
AC
62842002-04-17 Andrew Cagney <ac131313@redhat.com>
6285
6286 * frame.c (find_saved_register): Find saved registers in the next
6287 not prev frame.
6288 Fix PR gdb/365.
6289
d8864532
AC
62902002-04-17 Andrew Cagney <ac131313@redhat.com>
6291
6292 * gdbarch.sh (LANG): Set to ``c''.
6293
36cc83a3 62942002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6295
36cc83a3 6296 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6297
2f4150cc 62982002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6299
6300 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6301 Update copyright.
6302
628703c6 6303 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6304 Also fix PR gdb/391.
361d1df0 6305
56157b4a
AC
63062002-04-14 Andrew Cagney <ac131313@redhat.com>
6307
6308 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6309 * aclocal.m4, configure: Re-generate.
6310 Fix PR gdb/391.
361d1df0 6311
6d1e3329
EZ
63122002-04-14 Elena Zannoni <ezannoni@redhat.com>
6313
6314 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6315 instead of tm_print_insn.
6316
cb06fa07
EZ
63172002-04-14 Elena Zannoni <ezannoni@redhat.com>
6318
6319 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6320
f208ba17
AC
63212002-04-14 Andrew Cagney <ac131313@redhat.com>
6322
6323 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6324 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6325 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6326
20f01a46
DH
63272002-04-12 Don Howard <dhoward@redhat.com>
6328
6329 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6330 max_user_call_depth.
6331 (init_cmd_lists): Initialize the new value;
6332 * cli/cli-script.c (execute_user_command): Limit the call depth of
6333 user defined commands. This avoids a core-dump when user commands
6334 are infinitly recursive.
6335
a88376a3
KB
63362002-04-12 Kevin Buettner <kevinb@redhat.com>
6337
6338 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6339 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6340 from tdep struct instead of DEFAULT_LR_SAVE.
6341 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6342 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6343 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6344
f2172603
MS
63452002-04-12 Michael Snyder <msnyder@redhat.com>
6346
694f61fb 6347 * Remote.c: Spelling fix.
20fe79c8
MS
6348 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6349 If no symbol found for "sbrk", try "_sbrk".
6350 (make_output_phdrs): Use bfd_section_name.
6351 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6352 * eval.c: Indentation fix-ups.
169a7369
MS
6353 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6354 in case it gets applied to an address that is already
6355 in the instruction space.
de74f71f
MS
6356 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6357 * symfile.c: Fix indentation, long lines.
f2172603
MS
6358 * source.c: White space fix-up.
6359
cda5a58a
AC
63602002-04-12 Andrew Cagney <cagney@redhat.com>
6361
6362 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6363 * frame.c (frame_register_read): New function. Return non-zero on
6364 success.
6365 (read_relative_register_raw_bytes_for_frame): Delete.
6366 (read_relative_register_raw_bytes): Delete.
6367 * frame.h (frame_register_read): Declare.
6368 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6369 * sh-tdep.c: Ditto.
6370 * infcmd.c (do_registers_info): Ditto.
6371 * hppa-tdep.c: Ditto.
6372 * rs6000-tdep.c: Ditto.
6373 * h8500-tdep.c: Ditto.
6374 * mips-tdep.c: Ditto.
6375 * h8300-tdep.c: Ditto.
6376 * z8k-tdep.c: Ditto.
6377
2ea5f656
KB
63782002-04-12 Kevin Buettner <kevinb@redhat.com>
6379
6380 From Jimi X <jimix@watson.ibm.com>:
6381 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6382 64-bit SysV ABI.
6383
27b15785
KB
63842002-04-12 Kevin Buettner <kevinb@redhat.com>
6385
6386 From Jimi X <jimix@watson.ibm.com>:
6387 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6388 bfd info.
6389
5d57ee30
KB
63902002-04-12 Kevin Buettner <kevinb@redhat.com>
6391
6392 From Jimi X <jimix@watson.ibm.com>:
6393 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6394 register sets for these processor variants.
6395
bc1e36ca
DJ
63962002-04-11 Daniel Jacobowitz <drow@mvista.com>
6397
6398 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6399 registers which are allowed to fail to store.
6400 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6401 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6402 (ppc_cannot_store_register): FPSCR may not be storable.
6403 * regformats/reg-ppc.dat: Support FPSCR.
6404
e3f36dbd
KB
64052002-04-11 Kevin Buettner <kevinb@redhat.com>
6406
6407 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6408 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6409 Add fpscr as an invalid/unfetchable register.
6410 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6411 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6412 (fill_fpregset): Add support for register fpscr.
6413 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6414 (fill_gregset): Account for the fact that register ``mq'' might
6415 not exist.
6416 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6417 (registers_power): Add fpscr to register set at slot 71.
6418 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6419 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6420
943c9c25
MS
64212002-04-11 Michael Snyder <msnyder@redhat.com>
6422
6423 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6424 * configure: Regenerate.
6425 * config.in: Regenerate.
6426 * acconfig.h: Add define for _SYSCALL32.
6427 * core-sol2.c: Remove #define _SYSCALL32.
6428 * solib-legacy.c: Remove #define _SYSCALL32.
6429
d8c0a2e7
AC
64302002-04-10 Andrew Cagney <ac131313@redhat.com>
6431
6432 * stack.c (select_frame): Cleanup internal error message, do not
6433 use %p.
6434
7cc19214
AC
64352002-04-10 Andrew Cagney <ac131313@redhat.com>
6436
6437 * stack.c (select_frame): Check that selected_frame and the
6438 specified level are as expected.
6439 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6440 Update copyright.
6441 * frame.h (struct frame_info): Add field `level'. Update
6442 copyright.
6443 Work-in-progress PR gdb/464.
6444
67a2b77e
AC
64452002-04-10 Andrew Cagney <ac131313@redhat.com>
6446
6447 * maint.c (maint_print_section_info): Rename print_section_info.
6448 (print_bfd_section_info, print_objfile_section_info): Update.
6449 * inferior.h (struct gdbarch): Add opaque declaration.
6450 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6451 * gdbarch.h: Regenerate.
6452
8cfda98c
ML
64532002-04-10 Michal Ludvig <mludvig@suse.cz>
6454
6455 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6456 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6457 (kernel_u_size): Added.
6458 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6459 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6460
ca439ad2 64612002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6462
ca439ad2
JI
6463 * valarith.c (find_size_for_pointer_math): New function, either returns
6464 the size for a pointer's target, returns 1 for void *, or errors for
6465 incomplete types.
6466 (value_add, value_sub): use find_size_for_pointer_math.
6467
2f2893d9
DJ
64682002-04-09 Daniel Jacobowitz <drow@mvista.com>
6469
6470 * linux-low.c (linux_look_up_symbols): New hook.
6471 (linux_target_ops): Add linux_look_up_symbols.
6472 * remote-utils.c (decode_address): New function.
6473 (look_up_one_symbol): New function.
6474 * server.c (handle_query): Call target look_up_symbols hook.
6475 * server.h (look_up_one_symbol): Add prototype.
6476 * target.h (struct target_ops): Add look_up_symbols hook.
6477
2ec06d2e
DJ
64782002-04-09 Daniel Jacobowitz <drow@mvista.com>
6479
d64b8841
DJ
6480 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6481 * ChangeLog: Correct paths in last ChangeLog entry.
6482
64832002-04-09 Daniel Jacobowitz <drow@mvista.com>
6484
6485 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6486 (struct linux_target_ops): New.
6487 (extern the_low_target): New.
d64b8841 6488 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6489 (register_addr): Use the_low_target explicitly.
6490 (fetch_register): Likewise.
6491 (usr_fetch_inferior_registers): Likewise.
6492 (usr_store_inferior_registers): Likewise.
d64b8841 6493 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6494 (arm_num_regs): Define.
6495 (arm_regmap): Renamed from regmap, made static.
6496 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6497 made static.
6498 (arm_cannot_store_register): Renamed from cannot_store_register,
6499 made static.
6500 (the_low_target): New.
d64b8841 6501 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6502 (i386_num_regs): Define.
6503 (i386_regmap): Renamed from regmap, made static.
6504 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6505 made static.
6506 (i386_cannot_store_register): Renamed from cannot_store_register,
6507 made static.
6508 (the_low_target): New.
d64b8841 6509 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6510 (ia64_num_regs): Define.
6511 (ia64_regmap): Renamed from regmap, made static.
6512 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6513 made static.
6514 (ia64_cannot_store_register): Renamed from cannot_store_register,
6515 made static.
6516 (the_low_target): New.
d64b8841 6517 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6518 (m68k_num_regs): Define.
6519 (m68k_regmap): Renamed from regmap, made static.
6520 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6521 made static.
6522 (m68k_cannot_store_register): Renamed from cannot_store_register,
6523 made static.
6524 (the_low_target): New.
d64b8841 6525 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6526 (mips_num_regs): Define.
6527 (mips_regmap): Renamed from regmap, made static.
6528 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6529 made static.
6530 (mips_cannot_store_register): Renamed from cannot_store_register,
6531 made static.
6532 (the_low_target): New.
d64b8841 6533 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6534 (ppc_num_regs): Define.
6535 (ppc_regmap): Renamed from regmap, made static.
6536 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6537 made static.
6538 (ppc_cannot_store_register): Renamed from cannot_store_register,
6539 made static.
6540 (the_low_target): New.
d64b8841 6541 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6542 (s390_num_regs): Define.
6543 (s390_regmap): Renamed from regmap, made static.
6544 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6545 made static.
6546 (s390_cannot_store_register): Renamed from cannot_store_register,
6547 made static.
6548 (the_low_target): New.
d64b8841 6549 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6550 (sh_num_regs): Define.
6551 (sh_regmap): Renamed from regmap, made static.
6552 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6553 made static.
6554 (sh_cannot_store_register): Renamed from cannot_store_register,
6555 made static.
6556 (the_low_target): New.
d64b8841 6557 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6558 (the_low_target): New.
6559
96cb11df
AC
65602002-04-09 Andrew Cagney <ac131313@redhat.com>
6561
6562 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6563 override FP_REGNUM with frame->fp. Update copyright.
6564 * parse.c (num_std_regs, std_regs): Delete.
6565 (target_map_name_to_register): Do not search std_regs. Update
6566 function description.
6567 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6568 declarations. Update copyright.
6569 Fix PR gdb/251.
361d1df0 6570
c3a3ccc7
DJ
65712002-04-09 Daniel Jacobowitz <drow@mvista.com>
6572
6573 * gdbserver/Makefile.in: Add stamp-h target.
6574 * gdbserver/configure.in: Create stamp-h.
6575 * gdbserver/configure: Regenerated.
6576
ce3a066d
DJ
65772002-04-09 Daniel Jacobowitz <drow@mvista.com>
6578
6579 * gdbserver/inferiors.c: New file.
6580 * gdbserver/target.c: New file.
6581 * gdbserver/target.h: New file.
6582 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6583 dependencies.
6584 * gdbserver/linux-low.c (inferior_pid): New static variable,
6585 moved from server.c.
6586 (linux_create_inferior): Renamed from create_inferior.
6587 Call add_inferior. Return 0 on success instead of a PID.
6588 (linux_attach): Renamed from myattach.
6589 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6590 (linux_thread_alive): Renamed from mythread_alive.
6591 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6592 child dies.
6593 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6594 (regsets_store_inferior_registers): Correct error message.
6595 Add missing ``return 0''.
6596 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6597 (linux_store_registers): Renamed from store_inferior_registers.
6598 (linux_read_memory): Renamed from read_inferior_memory.
6599 (linux_write_memory): Renamed from write_inferior_memory.
6600 (linux_target_ops): New structure.
6601 (initialize_low): Call set_target_ops ().
6602 * gdbserver/remote-utils.c (unhexify): New function.
6603 (hexify): New function.
6604 (input_interrupt): Send signals to ``signal_pid''.
6605 * gdbserver/server.c (inferior_pid): Remove.
6606 (start_inferior): Update create_inferior call.
6607 (attach_inferior): Call add_inferior.
6608 (handle_query): New function.
6609 (main): Call handle_query for `q' packets.
6610 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6611 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6612
0729219d
DJ
66132002-04-09 Daniel Jacobowitz <drow@mvista.com>
6614
6615 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6616 dependencies.
6617 * gdbserver/configure.in: Check for <string.h>
6618 * gdbserver/configure: Regenerate.
6619 * gdbserver/config.in: Regenerate.
6620 * gdbserver/gdbreplay.c: Include needed system headers.
6621 (remote_open): Remove strchr prototype.
6622 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6623 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6624 (supply_register_by_name): Likewise.
6625 (collect_register): Change buf argument to void *.
6626 (collect_register_by_name): Likewise.
6627 * gdbserver/regcache.h: Add missing prototypes.
6628 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6629 * gdbserver/server.c (handle_query): New function.
6630 (attached): New static variable, moved out of main.
6631 (main): Quiet longjmp clobber warnings.
6632 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6633 * gdbserver/utils.c (error): Remove NORETURN.
6634 (fatal): Likewise.
6635
97658e92
DJ
66362002-04-09 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6639 after the last symbol in a block.
6640
6044e3eb
PM
66412002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6642
6643 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6644 is non zero as a found symbol.
6645
0406ec40
AC
66462002-04-08 Andrew Cagney <ac131313@redhat.com>
6647
6648 * findvar.c: Include "builtin-regs.h".
6649 (value_of_register): Call value_of_builtin_reg when applicable.
6650 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6651 (target_map_name_to_register): Call
6652 builtin_reg_map_name_to_regnum.
6653 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6654 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6655 (builtin_regs_h): Define.
6656 (builtin-regs.o): New target.
6657 (findvar.o): Add $(builtin_regs_h).
6658 * builtin-regs.c, builtin-regs.h: New files.
6659 * std-regs.c: New file.
6660 Partial fix for PR gdb/251.
6661
56a6dfb9
KB
66622002-04-08 Kevin Buettner <kevinb@redhat.com>
6663
6664 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6665 it's no longer required.
6666
3a808432
AC
66672002-04-08 Andrew Cagney <ac131313@redhat.com>
6668
6669 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6670
7c40d541
KB
66712002-04-08 Kevin Buettner <kevinb@redhat.com>
6672
6673 From Jimi X <jimix@watson.ibm.com>:
6674 * rs6000-tdep.c (rs6000_software_single_step): Use
6675 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6676 and size. Use target_insert_breakpoint() and
6677 target_remove_breakpoint() to insert and remove breakpoints
6678 instead of explicit memory reads and writes.
6679
cc9836a8
KB
66802002-04-08 Kevin Buettner <kevinb@redhat.com>
6681
6682 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6683 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6684 ELF_OBJECT_FORMAT ifdef.
6685
7495d1dc
KB
66862002-04-08 Kevin Buettner <kevinb@redhat.com>
6687
6688 From Jimi X <jimix@watson.ibm.com>:
6689 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6690
4288e836
KB
66912002-04-08 Kevin Buettner <kevinb@redhat.com>
6692
6693 From Jimi X <jimix@watson.ibm.com>:
6694 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6695 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6696
a4e4e501
MK
66972002-04-07 Mark Kettenis <kettenis@gnu.org>
6698
6699 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6700 s/asprintf/xasprintf/.
6701 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6702
006defba
AC
67032002-04-07 Andrew Cagney <ac131313@redhat.com>
6704
6705 I believe Jeff Law denies responsability for this one:
6706 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6707 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6708 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6709 Work-around for PR gdb/366.
6710
7aa83cac
EZ
67112002-04-07 Elena Zannoni <ezannoni@redhat.com>
6712
6713 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6714 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6715 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6716
cf1fcca1
EZ
67172002-04-07 Elena Zannoni <ezannoni@redhat.com>
6718
6719 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6720 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6721 information.
6722
3f289e6f
AC
67232002-04-07 Andrew Cagney <ac131313@redhat.com>
6724
6725 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6726 maintainer.
6727
129188f6
AC
67282002-04-07 Andrew Cagney <ac131313@redhat.com>
6729
6730 * README (Reporting Bugs in GDB): Document the bug web page as the
6731 prefered way of submitting bugs.
6732 Fix PR gdb/402.
6733
1200cd6e
AC
67342002-04-06 Andrew Cagney <ac131313@redhat.com>
6735
6736 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6737 -1. Update comment.
6738 * gdbarch.h, gdbarch.c: Re-generate.
6739
2853c33c
AS
67402002-04-07 Andreas Schwab <schwab@suse.de>
6741
6742 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6743 buffer to regcache_collect.
6744
c2169756
AC
67452002-04-06 Andrew Cagney <ac131313@redhat.com>
6746
6747 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6748 * gdbarch.c, gdbarch.h: Re-generate.
6749
25f1b008
AC
67502002-04-06 Andrew Cagney <ac131313@redhat.com>
6751
6752 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6753 declaration. Fix -Werror.
6754
59263426
DJ
67552002-04-05 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6758 * gdbarch.c: Regenerate.
6759
f5db4da3
MS
67602002-04-05 Michael Snyder <msnyder@redhat.com>
6761
80f8a6eb
MS
6762 * breakpoint.c (clear_command): Rewrite middle section to
6763 combine two loops with identical control conditions.
6764 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6765 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6766
ad3dcc5c
L
67672002-04-05 H.J. Lu (hjl@gnu.org)
6768
6769 * solib-svr4.c (bkpt_names): Add "__start".
6770
f32e7a74
AC
67712002-04-04 Andrew Cagney <ac131313@redhat.com>
6772
6773 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6774 as test for 64 bit target.
6775
8227c0ff
AC
67762002-04-05 Andrew Cagney <ac131313@redhat.com>
6777
6778 * h8500-tdep.c (h8500_write_fp): Delete function.
6779 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6780 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6781 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6783 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6784 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6785 (s390_write_fp):
6786 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6787 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6788 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6789 (d10v_write_fp): Delete function.
6790 * inferior.h (write_fp, generic_target_write_fp): Delete
6791 declarations.
6792 * regcache.c (generic_target_write_fp): Delete function.
6793 (write_fp): Delete function.
6794 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6795 * gdbarch.h, gdbarch.c: Regenerate.
6796 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6797 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6798 (sparc64_write_fp): Delete declaration.
6799 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6800 (h8500_write_fp): Delete declaration.
6801
2757dd86
AC
68022002-04-04 Andrew Cagney <ac131313@redhat.com>
6803
6804 * sparc-tdep.c (sparc64_write_fp): Delete.
6805 (sparc_push_dummy_frame): Replace write_fp call with code to store
6806 the FP directly.
6807 (sparc_gdbarch_init): Do not initialize write_fp.
6808
c69255e1
KB
68092002-04-05 Kevin Buettner <kevinb@redhat.com>
6810
6811 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6812 clause.
6813
ae767bfb
JB
68142002-03-29 Jim Blandy <jimb@redhat.com>
6815
6816 * stack.c (get_selected_block): Add new argument `addr_in_block',
6817 used to return the exact code address we used to select the block,
6818 not just the block.
6819 * blockframe.c (get_frame_block, get_current_block): Same.
6820 * frame.h (get_frame_block, get_current_block,
6821 get_selected_block): Update declarations.
6822 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6823 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6824
84d2ac95
MS
68252002-04-05 Michael Snyder <msnyder@redhat.com>
6826
6827 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6828 warning message.
6829
596aa3bf
JB
68302002-04-05 J. Brobecker <brobecker@gnat.com>
6831
6832 * utils.c (xfullpath): New function.
6833 * defs.h (xfullpath): Add declaration.
6834 * source.c (openp): Use xfullpath in place of gdb_realpath to
6835 avoid resolving the basename part of filenames when the
6836 associated file is a symbolic link. This fixes a potential
6837 inconsistency between the filenames known to GDB and the
6838 filenames it prints in the annotations.
6839 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6840 to be able to match a filename with either the real filename, or
6841 the name of any symbolic link to this file.
6842 (lookup_partial_symtab): Ditto.
6843
c02f5703
MS
68442002-04-04 Michael Snyder <msnyder@redhat.com>
6845
6846 * breakpoint.c: Add support for hardware breakpoints in overlays.
6847 (overlay_events_enabled): New state variable.
6848 (insert_breakpoints): Use overlay_events_enabled to decide
6849 whether to attempt to set a breakpoint at the overlay load addr.
6850 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6851 (remove_breakpoint): Use overlay_events_enabled to decide
6852 whether breakpoints need to be removed from overlay load addr.
6853 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6854 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6855 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6856 disable_overlay_breakpoints): Update overlay_events_enabled.
6857
5fb290d7
DJ
68582002-04-04 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * dwarf2read.c (struct function_range): New.
6861 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6862 (check_cu_functions): New.
6863 (read_file_scope): Initialize global function lists.
6864 Call dwarf_decode_line after processing children.
6865 (read_func_scope): Add to global function list.
6866 (dwarf_decode_lines): Call check_cu_functions everywhere
6867 record_line is called. Call record_line with a linenumber
6868 of 0 to mark sequence ends.
6869
7b3fabf0
ML
68702002-04-04 Michal Ludvig <mludvig@suse.cz>
6871
361d1df0 6872 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6873 change sync with glibc.
6874
bce58c09
JB
68752002-04-03 Jim Blandy <jimb@redhat.com>
6876
6877 * configure.in: Call AC_C_INLINE.
6878 * configure: Regenerated.
361d1df0 6879
2fccf04a
DJ
68802002-04-01 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6883 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6884
2d1bfe2e
MK
68852002-03-31 Mark Kettenis <kettenis@gnu.org>
6886
a5941fbf
MK
6887 * NEWS: Mention gcore support on FreeBSD/i386.
6888
a90cd31d
MK
6889 * fbsd-proc.c: New file.
6890 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6891 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6892
2d1bfe2e
MK
6893 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6894 while statement.
6895
9eb6e5a1
JB
68962002-03-29 Jim Blandy <jimb@redhat.com>
6897
6898 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6899 unescaped newlines in string literals, but newer ones don't. So
6900 escape them.
6901
f02df580
MS
69022002-03-26 Michael Snyder <msnyder@redhat.com>
6903 Andrew Cagney <cagney@redhat.com>
6904
361d1df0 6905 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6906 restore file to memory.
6907 * cli/cli-dump.h: New file.
6908 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6909 * NEWS: Mention new commands.
f02df580 6910
109f874e
MS
69112002-03-28 Michael Snyder <msnyder@redhat.com>
6912
6913 * symfile.c (symbol_file_add): Move test for null symbols to later.
6914
520f6ade
AC
69152002-03-27 Andrew Cagney <ac131313@redhat.com>
6916
6917 From veksler at il.ibm.com:
6918 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6919 the xstrduped original path.
6920 Fix PR gdb/417.
6921
d4654627
MS
69222002-03-27 Michael Snyder <msnyder@redhat.com>
6923
6924 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6925 * infcmd.c (_initialize_infcmd): Ditto.
6926 * language.c (_initialize_language): Ditto.
6927 * symfile.c (_initialize_symfile): Ditto.
6928 * top.c (_init_main): Ditto.
6929 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6930
6be8bc0c
EZ
69312002-03-27 Elena Zannoni <ezannoni@redhat.com>
6932
6933 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6934 vector registers handling.
6935 (skip_prologue): Handle new AltiVec instructions. Fill in new
6936 fields of frame data.
6937 (frame_get_saved_regs): Fill in information for AltiVec registers.
6938
12af6855
JB
69392002-03-27 Jim Blandy <jimb@redhat.com>
6940
6941 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6942 a function; leave this macro here to invoke that function.
6943 (symbol_init_mangled_name): Declaration for that function.
6944 * symtab.c (symbol_init_mangled_name): New function.
6945
dc672865
AC
69462002-03-27 Andrew Cagney <ac131313@redhat.com>
6947
6948 * valarith.c: Replace strerror with safe_strerror.
6949 * tracepoint.c: Ditto.
6950 * lin-lwp.c: Ditto.
6951 * go32-nat.c: Ditto.
6952 * inflow.c: Ditto.
6953 * gnu-nat.c: Ditto.
6954
d96429cd
AS
69552002-03-27 Andreas Schwab <schwab@suse.de>
6956
6957 * event-top.c (command_line_handler): Remove useless if.
6958
7e336ba1
AJ
69592002-03-27 Andreas Jaeger <aj@suse.de>
6960
6961 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6962 comment.
6963
de220d0f
ML
69642002-03-27 Michal Ludvig <mludvig@suse.cz>
6965
6966 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6967 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6968 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6969 (x86_64_linux_dr_get_status, supply_gregset),
6970 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6971 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6972 (x86_64_register_info_table): Add.
6973 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6974 (x86_64_register_raw_size, x86_64_register_virtual_type),
6975 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6976 general x86_64_register_info_table.
6977 (i386_gdbarch_init): gdbarch_register_bytes is now set
6978 dynamicaly during initialization.
6979 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6980 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 6981
0e98d0a7
DJ
69822002-03-27 Daniel Jacobowitz <drow@mvista.com>
6983
6984 * gdbserver/server.c (main): Call target_signal_to_host_p
6985 and target_signal_to_host on signals received from the remote.
6986 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6987 target_signal_from_host on signals sent to the remote.
6988 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6989 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6990
3130066b
DJ
69912002-03-27 Daniel Jacobowitz <drow@mvista.com>
6992
6993 * signals/signals.c: Include "server.h" in gdbserver build.
6994 (target_signal_from_name): Don't use STREQ.
6995 (_initialize_signals): Likewise. Don't include function in
6996 gdbserver build.
6997
9aedf4f4
DJ
69982002-03-27 Daniel Jacobowitz <drow@mvista.com>
6999
7000 * signals.c: Moved to...
7001 * signals/signals.c: Here.
7e336ba1 7002 * Makefile (signals.o): Update.
9aedf4f4 7003
3fa41cdb
JL
70042002-03-26 Jeff Law (law@redhat.com)
7005
7006 * somread.c (som_symtab_read): Remove some commented out code and
7007 updated related comments. Do not set the minimal symbol table to
7008 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7009 in a dynamic executable.
7010 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7011 where we are unable to find the minimal symbol for the given
7012 PC value.
7013
ee677e8d
MS
70142002-03-25 Jeff Law (law@redhat.com)
7015
7016 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7017
e76e1718
ML
70182002-03-25 Michal Ludvig <mludvig@suse.cz>
7019
7020 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7021
18a642a1
AC
70222002-03-23 Andrew Cagney <ac131313@redhat.com>
7023
7024 * command.h: Update copyright.
7025 (struct cmd_list_element): Replace definition with opaque
7026 declaration.
7027 (enum cmd_types): Document that it will eventually be moved to
7028 cli/cli-decode.h
7029 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7030 (MALLOCED_REPLACEMENT): Delete macro.
7031 * Makefile.in (cli_decode_h): Add $(command_h).
7032 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7033 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7034 * completer.c: Include "cli/cli-decode.h".
7035 * maint.c: Include "cli/cli-decode.h".
7036 * cli/cli-decode.h: Include "command.h".
7037 (enum command_class): Delete.
7038 (enum cmd_types): Comment out.
7039 (enum cmd_auto_boolean): Delete.
7040 (enum var_types): Delete.
7041
b2875cc0
AC
70422002-03-23 Andrew Cagney <ac131313@redhat.com>
7043
7044 * cli/cli-decode.c: Include "gdb_assert.h".
7045 (add_set_or_show_cmd): New static function.
7046 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7047 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7048 all fields, such as func, from the set command.
7049
3b45974e
AC
70502002-03-23 Andrew Cagney <ac131313@redhat.com>
7051
7052 * MAINTAINERS (sh-elf): Change warning flag to -w.
7053
823ca731
AC
70542002-03-23 Andrew Cagney <cagney@redhat.com>
7055
7056 * defs.h (error): Add printf format attribute.
7057 * thread-db.c (thread_from_lwp): Fix error format string.
7058 * stack.c (parse_frame_specification): Ditto.
7059 * cli/cli-decode.c (undef_cmd_error): Ditto.
7060 * scm-lang.c (scm_lookup_name): Ditto.
7061 * tracepoint.c (trace_error): Ditto.
7062 * remote-utils.c (usage): Ditto.
7063 * remote.c (compare_sections_command): Ditto.
7064 Fix PR gdb/328.
7065
0e101458
AC
70662002-03-22 Andrew Cagney <ac131313@redhat.com>
7067
7068 * gdbtypes.c (append_composite_type_field): New function.
7069 (init_composite_type): New function.
7070 * gdbtypes.h (append_composite_type_field): Declare.
7071 (init_composite_type): Ditto.
7072
8e0662df
EZ
70732002-03-22 Elena Zannoni <ezannoni@redhat.com>
7074
7075 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7076 function.
8e0662df
EZ
7077 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7078 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7079 structure returning convention for SYSV ABI case, but not
7080 for GNU/Linux, FreeBSD, or NetBSD.
7081
3121eff0
DJ
70822002-03-22 Daniel Jacobowitz <drow@mvista.com>
7083
7084 * symtab.h (lookup_block_symbol): Add mangled_name argument
7085 to prototype.
7086
7087 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7088 with new mangled_name argument.
7089 * linespec.c (decode_line_1): Likewise.
7090 * valops (value_of_this): Likewise.
7091 * symtab.c (lookup_transparent_type): Likewise.
7092 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7093 (lookup_symbol): If we are given a mangled name, pass it down
7094 to lookup_symbol_aux.
7095 (lookup_block_symbol): If we are given a mangled name to check
7096 against, only return symbols which match it.
7097
349b409f
CF
70982002-03-22 Christopher Faylor <cgf@redhat.com>
7099
7100 * win32-nat.c (child_create_inferior): Check for proper shell to use
7101 here, in case the user changes it on the fly.
7102 (_initialize_inftarg): Remove shell path considerations.
7103
2a873819
EZ
71042002-03-21 Elena Zannoni <ezannoni@redhat.com>
7105
7106 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7107 for gdbarch_max_register_raw_size and max_register_virtual_size.
7108 Adjust copyright year.
7109
a1b9830c
DJ
71102002-03-21 Daniel Jacobowitz <drow@mvista.com>
7111
7112 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7113 in a function to cover the entire beginning of the function
7114 as well if it does not already.
7115
8b5790f2
TR
71162002-03-21 Tom Rix <trix@redhat.com>
7117
7118 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7119 (rs6000_ptrace64): Renamed from ptrace64.
7120
bdbe5747
MH
71212002-03-20 Martin M. Hunt <hunt@redhat.com>
7122
7123 * gdbserver/remote-utils.c (remote_open): Don't call
7124 getprotobyname, we're all using TCP here so just use
7125 IPPROTO_TCP.
7e336ba1 7126 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7127
71282002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7129
bdbe5747
MH
7130 * regcache.c (_initialize_regcache): No need to call
7131 build_regcache() at this time; it gets called whenever
7132 the gdbarch changes.
7133
7781cd62
DB
71342002-03-20 David O'Brien <obrien@FreeBSD.org>
7135
7136 * sparc-nat.c: Include sys/param.h where possible.
7137
f65ca430
DJ
71382002-03-20 Daniel Jacobowitz <drow@mvista.com>
7139
7140 Fix PR gdb/422.
7141 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7142 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7143 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7144 complex types.
7145 * stabsread.c (rs6000_builtin_type): Likewise.
7146 (read_sun_floating_type): Likewise.
7147
0c867556
PS
71482002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7149
7150 * stabsread.c (read_member_functions): Remove skip code for duplicate
7151 constructor/destructor methods. Use standard parsing for these
7152 methods and just do not chain them to the list of methods after
7153 parsing.
7154
12b9c64f
AO
71552002-03-19 Alexandre Oliva <aoliva@redhat.com>
7156
7157 * coffread.c: Remove redundant static declarations. Replace
7158 occurrences of `PTR' with `void *'.
7159 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7160 * top.h (quit_cover): Likewise.
7161 * defs.h (catch_errors): Likewise.
7162
349c5d5f
AC
71632002-03-18 Andrew Cagney <ac131313@redhat.com>
7164
7165 * defs.h (XMALLOC): Define.
7166 * gdb-events.sh (XMALLOC): Delete macro.
7167 * gdb-events.c, gdb-events.h: Regenerate.
7168 * gdbarch.sh (XMALLOC): Delete macro.
7169 * gdbarch.c: Regenerate.
7170 * serial.c (XMALLOC): Delete macro.
7171 * ui-file.c (XMALLOC): Ditto.
7172 * ser-unix.h (XMALLOC): Ditto.
7173 * sh-tdep.c (XMALLOC): Ditto.
7174 * ui-out.c (XMALLOC): Ditto.
7175 * utils.c (XMALLOC): Ditto.
7176 * i386-tdep.c (XMALLOC): Ditto.
7177 * gdb-events.c (XMALLOC): Ditto.
7178 * d10v-tdep.c (XMALLOC): Ditto.
7179 * cli-out.c (XMALLOC): Ditto.
7180
7181 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7182 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7183 * ui-file.c, ui-out.c: Ditto.
7184
7d0766f3
AC
71852002-03-18 Andrew Cagney <ac131313@redhat.com>
7186
7187 * command.h (struct cmd_list_element): Add field context.
7188 (set_cmd_context, get_cmd_context): Declare.
7189 * cli/cli-decode.h: Ditto.
7190 * cli/cli-decode.c (get_cmd_context): New function.
7191 (set_cmd_context): New function.
7192 (add_cmd): Initialize context.
7193 Part of fixing PR gdb/145 and PR gdb/146.
7194
5913bcb0
AC
71952002-03-17 Andrew Cagney <ac131313@redhat.com>
7196
1868c04e
AC
7197 * cli/cli-decode.c (cmd_type): New function.
7198 * command.h (cmd_type): Declare.
7199 * infrun.c (set_schedlock_func): Call function cmd_type.
7200 * kod.c (kod_set_os): Call cmd_type.
7201 * cris-tdep.c (cris_version_update): Use function cmd_type.
7202 (cris_mode_update, cris_abi_update): Ditto.
7203
5913bcb0
AC
7204 * command.h: (execute_cmd_post_hook): Declare.
7205 (execute_cmd_pre_hook): Declare.
7206 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7207 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7208 functions. Execute pre/post hook while ensuring that afterwords
7209 hook_in is cleared.
7210 * top.c (execute_command): Use execute_cmd_post_hook, and
7211 execute_cmd_pre_hook to execute pre/post commands.
7212 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7213 hook_stop_stub.
7214 (hook_stop_stub): Call execute_cmd_pre_hook.
7215
b51450c9
AC
72162002-03-17 Andrew Cagney <ac131313@redhat.com>
7217
7218 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7219 set'' and this leads to a core dump. Move xstrdup of
7220 operating_system to after check that it is not NULL.
7221
f66c9f11
AC
72222002-03-17 Andrew Cagney <ac131313@redhat.com>
7223
8e694ecf
AC
7224 * kod.c (kod_set_os): Remove unnecessary check that
7225 ``command->type'' is set_cmd.
7226
f66c9f11
AC
7227 * valprint.c (set_input_radix): Use input_radix.
7228 (set_output_radix): Use output_radix.
7229 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7230 isn't reverted.
7231
9d01611c
AC
72322002-03-16 Andrew Cagney <ac131313@redhat.com>
7233
7234 * value.h (struct value): Delete field ``substring_addr''. Change
7235 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7236 force_core_addr_align and force_pointer_aligh.
7237
7238 * value.h (struct value): Fix typo in above change.
9d01611c 7239
4156bb53
PS
72402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7241
7242 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7243 to fix internal_error from ``maintenance print architecture''.
7244
0e5e3ea6
PS
72452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7246
7247 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7248 for gcc versions after gcc-2.8.1.
7249
9b013045
PS
72502002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7251
7252 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7253 for method resolution. Restore adjustment of ``this'' pointer after
7254 calling value_struct_elt, which was accidentally removed during the
7255 HP merge.
7256
376c9600
AC
72572002-03-15 Andrew Cagney <ac131313@redhat.com>
7258
7259 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7260 value_of_register.
7261 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7262 get_saved_register.
7263 * value.h (value_of_register): Update.
7264
a4db0f07
RH
72652002-03-14 Richard Henderson <rth@redhat.com>
7266
7267 * configure.in: Detect declaration for canonicalize_file_name.
7268 * utils.c (canonicalize_file_name): Declare, if needed.
7269 (gdb_realpath): Prefer realpath if available and usable.
7270 * config.in, configure: Rebuild.
7271
96383835
RH
72722002-03-14 Richard Henderson <rth@redhat.com>
7273
7274 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7275 a constant array bound.
7276
7277 * MAINTAINERS: Add myself to write-after-approval.
7278
75245b24
MS
72792002-03-14 Michael Snyder <msnyder@redhat.com>
7280
7281 * symfile.c (syms_from_objfile): Return immediately if no syms.
7282 (symbol_file_add): Return immediately if no syms.
7283 (find_sym_fns): Return immediately if no syms.
7284
e641a1ca
ML
72852002-03-13 Michal Ludvig <mludvig@suse.cz>
7286
7287 * gdbserver/remote-util.c (remote_open): Print remote-side's
7288 IP address when remote debugging over the network.
7e336ba1 7289
df08bfec
DB
72902002-03-12 David O'Brien <obrien@FreeBSD.org>
7291
7292 * config/sparc/fbsd.mh: Fix copyright.
7293 * config/sparc/fbsd.mt: Likewise.
7294
9a57864f
RE
72952002-03-11 Richard Earnshaw <rearnsha@arm.com>
7296
7297 * MAINTAINERS: Fix typo in name of gdb warnings option.
7298 (x86-64): Fix formating so that this can be parsed by awk.
7299
dd7bf85e
DJ
73002002-03-10 Daniel Jacobowitz <drow@mvista.com>
7301
7302 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7303 * defs.h: Include "gdb/signals.h".
7304 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7305
33a0a2ac
ML
73062002-03-10 Michal Ludvig <mludvig@suse.cz>
7307
7308 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7309 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7310 from x86-64-tdep.h
7311
dd824b04
DJ
73122002-03-10 Daniel Jacobowitz <drow@mvista.com>
7313 Don Howard <dhoward@redhat.com>
7314
7315 * mips-tdep.c (ST0_FR): Define.
7316 (mips2_fp_compat): New function, temporarily disabled.
7317 (mips_read_fp_register_single): New function.
7318 (mips_read_fp_register_double): New function.
7319 (mips_print_register): Use them.
7320 (do_fp_register_row): Likewise.
7321
6a41ff59
AC
73222002-03-09 Andrew Cagney <ac131313@redhat.com>
7323
7324 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7325 approval''.
7326
4ea09c10
PS
73272002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7328
7329 * stabsread.c (read_member_functions): Fix is_stub test for
7330 static member functions, improve comment.
7331
6ccc741d
RE
73322002-03-07 Richard Earnshaw <rearnsha@arm.com>
7333
7334 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7335 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7336 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7337 commands that set boolean values.
7338 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7339 (arm_rdi_resume): Always initialize PC.
7340 (arm_rdi_open): Don't use rslt as a boolean.
7341 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7342 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7343 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7344 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7345
438013df
AO
73462002-03-06 Alexandre Oliva <aoliva@redhat.com>
7347
7348 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7349 * configure: Rebuilt.
7350
70ed8774
SC
73512002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7352
7353 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7354 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7355
5ba2abeb
AC
73562002-03-06 Andrew Cagney <ac131313@redhat.com>
7357
7358 * cli/cli-decode.c (set_cmd_completer): New function.
7359 * command.h (set_cmd_completer): Declare.
7360 * cli/cli-decode.h (set_cmd_completer): Ditto.
7361
7362 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7363 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7364 * win32-nat.c (_initialize_inftarg): Ditto.
7365 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7366 * proc-api.c (_initialize_proc_api): Ditto.
7367 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7368 * source.c (_initialize_source): Ditto.
7369 * exec.c (_initialize_exec): Ditto.
7370 * solib.c (_initialize_solib): Ditto.
7371 * top.c (init_main): Ditto.
7372 * tracepoint.c (_initialize_tracepoint): Ditto.
7373 * symfile.c (_initialize_symfile): Ditto.
7374 * printcmd.c (_initialize_printcmd): Ditto.
7375 * infcmd.c (_initialize_infcmd): Ditto.
7376 * corefile.c (_initialize_core): Ditto.
7377
f779ca99
AC
73782002-03-05 Andrew Cagney <ac131313@redhat.com>
7379
7380 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7381
01a3934b
AC
73822002-03-05 Andrew Cagney <ac131313@redhat.com>
7383
7384 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7385
37057839
AC
73862002-03-05 Andrew Cagney <ac131313@redhat.com>
7387
7388 * NEWS: Update headings, 5.2 has branched.
7389
c6ecbae5
DJ
73902002-03-04 Daniel Jacobowitz <drow@mvista.com>
7391
7392 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7393 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7394 (register_addr, REGISTER_RAW_SIZE): Likewise.
7395 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7396 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7397
e9f30c21
ML
73982002-03-03 Michal Ludvig <mludvig@suse.cz>
7399
7400 * MAINTAINERS (x86-64): Add myself.
7401 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7402 changed value_ptr -> struct value *
7403
54394ac3
DB
74042002-03-01 David O'Brien <obrien@FreeBSD.org>
7405
7406 * configure.host (sparc64-*-freebsd): Add.
7407 * configure.tgt: Likewise.
7408 * config/sparc/fbsd.mh: New file.
7409 * config/sparc/fbsd.mt: Likewise.
7410 * config/sparc/nm-fbsd.h: Likewise.
7411 * config/sparc/tm-fbsd.h: Likewise.
7412
bfe95955
DJ
74132002-03-01 Daniel Jacobowitz <drow@mvista.com>
7414
7415 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7416 regformats/reg-s390x.dat.
7417
f33c6cbf
AC
74182002-03-01 Andrew Cagney <ac131313@redhat.com>
7419
7420 * utils.c: Add FIXME explaining true/false problem.
7421
5ecaa7dd
AC
74222002-02-28 Andrew Cagney <ac131313@redhat.com>
7423
7424 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7425
2a251cc2
MC
74262002-02-28 Michael Chastain <mec@shout.net>
7427
7428 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7429
6a8031a3 74302002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7431
7432 * gdbserver/linux-s390-low.c: New file.
7433 * regformats/reg-s390.dat: New file.
7434 * regformats/reg-s390x.dat: New file.
7435 * gdbserver/configure.srv: Add S/390.
7436 * gdbserver/Makefile.in: Add S/390.
7437 * configure.tgt: Enable gdbserver for S/390.
7438
ac469903
EZ
74392002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7440
7441 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7442 first line of the doc string for "info dos", except at the end of
7443 the sentence, since the short help stops at the first period.
7444
985cb1a3
JM
74452002-02-28 Jason Merrill <jason@redhat.com>
7446
7447 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7448
c570663e
FF
74492002-02-27 Fred Fish <fnf@redhat.com>
7450
7451 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7452 comment (dumy -> dummy).
7453
43630227
PS
74542002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7455
7456 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7457
b84911e8
RB
74582002-02-27 Rodney Brown <rbrown64@csc.com.au>
7459
7460 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7461
58caa3dc
DJ
74622002-02-27 Daniel Jacobowitz <drow@mvista.com>
7463
7464 * gdbserver/acconfig.h: New file.
7465 * gdbserver/i387-fp.c: New file.
7466 * gdbserver/i387-fp.h: New file.
7467 * gdbserver/linux-x86-64.c: New file.
7468 * regformats/reg-x86-64.dat: New file.
7469 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7470 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7471 * gdbserver/configure.in: Add support for regsets.
7472 * gdbserver/config.in: Regenerate.
7473 * gdbserver/configure: Regenerate.
7474 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7475 * gdbserver/linux-low.h: New file.
7476 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7477 for regsets.
7478 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7479 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7480 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7481 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7482 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7483 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7484 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7485 "i387-fp.h". Add PTRACE_GETREGS and friends.
7486 * gdbserver/regcache.c (supply_register): New function.
7487 (supply_register_by_name): New function.
7488 (collect_register): New function.
7489 (collect_register_by_name): New function.
7490
93652174
DJ
74912002-02-27 Daniel Jacobowitz <drow@mvista.com>
7492
7493 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7494 (config.status): Add configure.srv dependency.
7495 (server_h): Add config.h dependency.
7496
a02e4a61
DJ
74972002-02-27 Daniel Jacobowitz <drow@mvista.com>
7498
7499 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7500 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7501 * gdbserver/configure.srv: Change i386-*-linux* to use
7502 reg-i386-linux.o.
7503
ce0eebec
AC
75042002-02-26 Andrew Cagney <ac131313@redhat.com>
7505
7506 * x86-64-tdep.c: Re-indent. Update copyright date.
7507
82dbc5f7
AC
75082002-02-26 Andrew Cagney <ac131313@redhat.com>
7509
7510 From Michal Ludvig <mludvig@suse.cz>:
7511 * x86-64-tdep.c (value.h): Delete.
7512 (gdb_assert.h): Include.
7513 (x86_64_register_convert_to_virtual,
7514 x86_64_register_convert_to_raw ): Add check which lets only
7515 floating-point values to be converted.
7516 (value_push): Delete.
7517 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7518 (i386_gdbarch_init): Number of register_bytes fixed.
7519
e4621584
AC
75202002-02-26 Andrew Cagney <ac131313@redhat.com>
7521
7522 * MAINTAINERS: Add x86-64 target.
7523
81a9a963
AC
75242002-02-26 Andrew Cagney <ac131313@redhat.com>
7525
7526 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7527 * osfsolib.c (solib_map_sections): Ditto.
7528 * irix5-nat.c (solib_map_sections): Ditto.
7529 * corelow.c (gdb_check_format): Ditto.
7530 * symfile.c (symfile_bfd_open): Ditto.
7531 * solib.c (solib_map_sections): Ditto.
7532 Fix PR gdb/354.
7e336ba1 7533
0f017ab9
AC
75342002-02-26 Andrew Cagney <ac131313@redhat.com>
7535
7536 * remote.c (_initialize_remote): By default, disable ``e'' and
7537 ``E'' step out-of-range packets.
7538
75738c29
AS
75392002-02-26 Andreas Schwab <schwab@suse.de>
7540
7541 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7542 m68k_linux_frame_saved_pc.
7543 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7544 in_sigtramp.
7545 (SIGCONTEXT_PC_OFFSET): Remove.
7546 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7547 m68k_linux_sigtramp_saved_pc): New functions.
7548 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7549 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7550 (UCONTEXT_PC_OFFSET): Define.
7551 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7552 non-RT and RT signal trampolines.
7553
7e8ed687
RE
75542002-02-26 Richard Earnshaw <rearnsha@arm.com>
7555
7556 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7557 (TARGET_NBPG, STACK_END_ADDR): Delete
7558 (VARIABLES_INSIDE_BLOCK): Delete.
7559
6972bc8b
AC
75602002-02-25 Andrew Cagney <ac131313@redhat.com>
7561
7562 * utils.c (perror_with_name): Make string parameter constant.
7563 (print_sys_errmsg): Ditto.
7564 (query): Ditto.
7565 * defs.h (perror_with_name): Update.
7566 (print_sys_errmsg): Update.
7567 (query): Update.
7568
aa32f823
DJ
75692002-02-25 Daniel Jacobowitz <drow@mvista.com>
7570
7571 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7572 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7573
19caaa45
PS
75742002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7575
7576 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7577 if it already matches the current architecture from the exec file.
7578 Include arch-utils.h for gdbarch_info_init prototype.
7579 * Makefile.in (rs6000-nat.o): Update dependencies.
7580
d951901f
EZ
75812002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7582
7583 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7584 list of exported variables.
7585
7ea81414
DJ
75862002-02-24 Daniel Jacobowitz <drow@mvista.com>
7587
7588 * gdbserver/configure.srv: New file.
7589 * gdbserver/configure.in: Use configure.srv instead
7590 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7591 from it.
7592 * gdbserver/configure: Regenerated.
7593 * gdbserver/terminal.h: New file.
7594 * gdbserver/Makefile.in: Update for configure changes. Remove
7595 more unneeded include paths.
7596
080fe24b
AC
75972002-02-24 Andrew Cagney <ac131313@redhat.com>
7598
7599 From wiz at danbala:
7600 * config/sparc/tm-sp64.h: Fix grammar and typos.
7601 Fix PR gdb/287.
7602
8605d56e
AC
76032002-02-24 Andrew Cagney <ac131313@redhat.com>
7604
7605 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7606 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7607 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7608 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7609 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7610 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7611 * s390-tdep.c: Ditto.
92362027
AC
7612 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7613 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7614 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7615 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7616 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7617 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7618 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7619 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7620 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7621 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7622 Fix PR gdb/378.
7e336ba1 7623
8ed32cc0
AC
76242002-02-23 Andrew Cagney <ac131313@redhat.com>
7625
a3007b6f
AC
7626 * lin-thread.c: Delete file.
7627 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7628 to gdb_proc_service.h.
7629 * configure: Re-generate.
7630
50a9e2f1
AC
7631 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7632 * serial.c (serial_open): Delete check for "ocd".
7633 Fix PR gdb/349.
7634
8b6e7932
AC
7635 * Makefile.in (linux-thread.o): Delete target.
7636 * linux-thread.c: Delete file.
7637
d155c46b
AC
7638 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7639 renamed SH files to be consistent.
7640
8ed32cc0
AC
7641 * symtab.c (sort_search_symbols): Use xfree.
7642
0e18d038
RE
76432002-02-23 Richard Earnshaw <rearnsha@arm.com>
7644
7645 * arm-linux-tdep.c (arm_linux_init_abi): Register
7646 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7647 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7648 definition with undef, since we don't want the sysvr4 definition.
7649 (SKIP_TRAMPOLINE_CODE): Likewise.
7650
27aac7ff
AC
76512002-02-23 Andrew Cagney <ac131313@redhat.com>
7652
7653 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7654
7655 * configure.in: (AC_CHECK_FUNCS) Added test for
7656 canonicalize_file_name Regenerated.
7657 * config.in, configure: Regenerated.
7658 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7659 defined use canonicalize_file_name.
7e336ba1 7660
65a6e0ee
MC
76612002-02-23 Michael Chastain <mec@shout.net>
7662
7663 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7664
47b95330
AC
76652002-02-23 Andrew Cagney <ac131313@redhat.com>
7666
7667 * README: Remove references to cygnus.com.
7668 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7669 dot com'' form. Remove references to cygnus.com and sourceware.
7670
696f451b
AC
76712002-02-23 Andrew Cagney <ac131313@redhat.com>
7672
7673 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7674 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7675 1003.1-2001 no longer allows "head -1".
7676 * gdb/Makefile.in (version.c): Likewise.
7677 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7678 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7679 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7680
bbaca940
AC
76812002-02-23 Andrew Cagney <ac131313@redhat.com>
7682
7683 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7684 * command.h (cmd_cfunc_eq): Declare.
7685 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7686
7687 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7688 ``struct cmd_list_element *''.
7689 * cli/cli-cmds.c (is_complete_command): Update. Use
7690 cmd_cfunc_eq.
7691 * top.c (execute_command): Pass the command to
7692 is_complete_command.
7693 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7694
b8b8b047
AC
76952002-02-23 Andrew Cagney <ac131313@redhat.com>
7696
7697 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7698 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7699 architecture defines.
7700 * s390-tdep.c (s390_gdbarch_init): Likewise.
7701
19d3fc80
RE
77022002-02-23 Richard Earnshaw <rearnsha@arm.com>
7703
7704 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7705 (arm_linux_push_arguments): Likewise.
7706 (arm_linux_init_abi): Register them. Also register linux-specific
7707 call_dummy_words.
7708 (find_minsym_and_objfile): Use strcmp, not STREQ.
7709 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7710 (arm_linux_call_dummy_words): Delete declaration.
7711 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7712 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7713 declarations.
7714 (LOWEST_PC): Delete.
7715
3ab13650
PS
77162002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7717
7718 * maint.c (print_section_info): Do not prepend `0x' to filepos
7719 output, it will be handled by local_hex_string_custom.
7720
19d3fc80 77212002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7722
7723 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7724 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7725 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7726
d85a5daf
JB
77272002-02-22 Jim Blandy <jimb@redhat.com>
7728
7729 Indicate that the bcache functions don't change the strings
7730 they're passed.
7731 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7732 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7733
eeb25b8a
PM
77342002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7735
7736 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7737
6badb179
CF
77382002-02-21 Christopher Faylor <cgf@redhat.com>
7739
7740 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7741 find the complete path to a loaded DLL.
7742
e8717518
FF
77432002-02-21 Fred Fish <fnf@redhat.com>
7744
7745 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7746 that marks the end of the range of a function, enter a line number
7747 entry that has a line number of zero and a PC offset that matches
7748 the end of the function. This starts a range of PC's for which no
7749 line number information is known.
7750 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7751 PC's for which no line number info is found (line number is zero)
7752 then we didn't find any valid line information.
7753 * symtab.h: Document use of zero line number entry.
7754
9abe5450
EZ
77552002-02-21 Elena Zannoni <ezannoni@redhat.com>
7756
7757 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7758 (have_ptrace_getvrregs): Define for run time checks.
7759 (gdb_vrregset_t): New type for Altivec register handling.
7760 (fetch_register, store_register): Fetch/store altivec register
7761 when needed.
7762 (fetch_altivec_register, store_altivec_register): New functions.
7763 (supply_vrregset, fill_vrregset): New functions.
7764 (fetch_altivec_registers, store_altivec_registers): New functions.
7765 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7766 registers as well.
7767
aaa38bb5
AJ
77682002-02-21 Jiri Smid <smid@suse.cz>
7769
7770 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7771
b34db576
RE
77722002-02-21 Richard Earnshaw <rearnsha@arm.com>
7773
7774 * Makefile.in (armnbsd-nat.o): Update dependencies.
7775 * armnbsd-nat.c (supply_gregset): New function. Common code to
7776 supply the integer register set.
7777 (supply_fparegset): New function. Similar for FPA registers.
7778 (fetch_regs, fetch_fp_regs): Use them.
7779 (fetch_core_registers): Likewise.
7780 (fetch_elfcore_registers): New function.
7781 (arm_netbsd_elfcore_fns): New core-file type specification.
7782 (_initialize_arm_netbsd_nat): Register it.
7783
3e56fc4b
RE
77842002-02-21 Richard Earnshaw <rearnsha@arm.com>
7785
7786 * armnbsd-nat.c: Include gdbcore.h.
7787 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7788 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7789 'void' to declaration, to shut up ARI.
7790 (fetch_core_registers): Make static. Rewrite using supply_register.
7791 (arm_netbsd_core_fns): New core-file type specification.
7792 (_initialize_arm_netbsd_nat): New function.
7793
097f6b0b
CF
77942002-02-21 Christopher Faylor <cgf@redhat.com>
7795
7796 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7797 value.
7798
c914e0cc
CF
77992002-02-20 Christopher Faylor <cgf@redhat.com>
7800
7801 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7802 fails.
7803
385fa495
DJ
78042002-02-20 Daniel Jacobowitz <drow@mvista.com>
7805
7806 * jv-exp.y (parse_number): Change type of implicit longs
7807 to builtin_type_uint64.
7808
e5f1222d
DJ
78092002-02-20 Daniel Jacobowitz <drow@mvista.com>
7810
7811 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7812 to be an integer instead of a `union wait'.
7813
75c9abc6
DJ
78142002-02-20 Daniel Jacobowitz <drow@mvista.com>
7815
7816 * mips-linux-nat.c: Call the operating system GNU/Linux.
7817 * mips-linux-tdep.c: Likewise.
7818 * mips-tdep.c: Likewise.
7819
551792a5
DJ
78202002-02-20 Daniel Jacobowitz <drow@mvista.com>
7821
7822 Fix PR gdb/265.
7823 * jv-exp.y (parse_number): Handle 64-bit integers.
7824
ee6e2b82
DJ
78252002-02-20 Daniel Jacobowitz <drow@mvista.com>
7826
7827 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7828 AC_STDC_HEADERS to AC_HEADER_STDC.
7829 * gdbserver/configure: Regenerated.
7830
a48442a0
RE
78312002-02-20 Richard Earnshaw <rearnsha@arm.com>
7832
7833 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7834 is defined.
7835 * sparc-tdep.c (get_longjmp_target): Likewise.
7836
fe419ffc
RE
78372002-02-20 Richard Earnshaw <rearnsha@arm.com>
7838
7839 * News: Add news about ARM and Multi-arch. Mention the new target
7840 arm*-*-netbsd*.
7841
5832ed7e
JB
78422002-02-19 Jim Blandy <jimb@redhat.com>
7843
7844 * stabsread.c (error_type_complaint): Improve error message.
7845
84563040
DJ
78462002-02-19 Daniel Jacobowitz <drow@mvista.com>
7847
7848 * gdbserver/README: Update documentation.
7849 * gdbserver/configure.in: Update configury to match documentation.
7850 * gdbserver/Makefile.in: Likewise.
7851 * gdbserver/configure: Regenerated.
7852 * gdbserver/aclocal.m4: New file, generated by aclocal.
7853 * gdbserver/config.in: New file, generated by autoheader.
7854
375fd65b
RE
78552002-02-19 Richard Earnshaw <rearnsha@arm.com>
7856
7857 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7858 armnbsd-nat.c.
7859
08216dd7
RE
78602002-02-19 Richard Earnshaw <rearnsha@arm.com>
7861
7862 * arm-tdep.h (enum arm_float_model): New enum.
7863 (struct gdbarch_tdep): Add fp_model.
7864 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7865 up floating-point conversions until we know the floating-point model
7866 in use by the inferior. Don't complain about being unable to
7867 determine the ABI of the inferior when we don't have one.
7868 (arm_extract_return_value): Support different floating-point models.
7869 (arm_store_return_value): Likewise.
aaa38bb5 7870 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7871 ARM_FLOAT_SOFT.
7872 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7873
65d6d66a
PS
78742002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7875
7876 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7877 of ``current_gdbarch''.
7878
47221191
RE
78792002-02-19 Richard Earnshaw <rearnsha@arm.com>
7880
7881 * armnbsd-nat.c : ANSIfy all function declarations.
7882 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7883 (fetch_inferior_registers): Re-implement in terms of above.
7884 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7885 (store_inferior_registers): Re-implement in terms of above.
7886
fdf39c9a
RE
78872002-02-19 Richard Earnshaw <rearnsha@arm.com>
7888
aaa38bb5 7889 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7890 kernel.
7891 * arm-linux-tdep.c: Likewise.
7892 * config/arm/tm-linux.h: Likewise.
7893
93247f88
RE
78942002-02-19 Richard Earnshaw <rearnsha@arm.com>
7895
7896 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7897 * config/arm/nbsd.mt (TM_FILE): Delete.
7898 * config/arm/tm-nbsd.h: Delete.
7899
d7b486e7
RE
79002002-02-19 Richard Earnshaw <rearnsha@arm.com>
7901
7902 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7903 Initialize CALL_DUMMY_LENGTH.
7904
41d39a95
RE
79052002-02-19 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7908 function.
7909 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7910 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7911 defines one thing and that is incorrect for this port.
7912 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7913
e1195560
PM
79142002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7915
7916 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7917
c1748f97
PM
79182002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7919
7920 * win32-nat.c (display_selector): New function. Displays information
7921 about the information returned by GetThreadSelectorEntry API function.
7922 (display_selectors): New function. Displays the infomation of
7923 the selector given as argument, or of CS, DS ans FS selectors
7924 if no argument is given.
7925 ( _initialize_inftarg): Add "w32" as info prefix command.
7926 Add "info w32 selector" as command calling display_selectors.
7927
e41e6bbf
PM
79282002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7929
7930 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7931 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7932 if not defined.
7933
0d3a9f48
RE
79342002-02-18 Richard Earnshaw <rearnsha@arm.com>
7935
7936 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7937
3fb4b924
RE
79382002-02-18 Richard Earnshaw <rearnsha@arm.com>
7939
7940 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7941 (arm_fix_call_dummy): Call it.
7942 (arm_call_dummy_breakpoint_offset): Delete.
7943 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7944 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7945
7f55af32
AC
79462002-02-18 Andrew Cagney <ac131313@redhat.com>
7947
7948 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7949 Default to func_frame_chain_valid.
7950 * gdbarch.h, gdbarch.c: Re-generate.
7951 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7952
05f13b9c
EZ
79532002-02-18 Elena Zannoni <ezannoni@redhat.com>
7954
7955 * ppc-linux-nat.c: Update copyright.
7956 (fetch_register, store_register): Add tid parameter, don't compute
7957 tid here.
7958 (fetch_ppc_registers, store_ppc_registers): Add tid
7959 parameter. Pass it along to callees.
7960 (fetch_inferior_registers, store_inferior_registers): Compute tid
7961 here, and pass it to calleed functions.
7962 (fill_gregset, supply_fpregset): Clean up formatting.
7963
d7afb4c9
RE
79642002-02-18 Richard Earnshaw <rearnsha@arm.com>
7965
7966 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7967 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7968
9df628e0
RE
79692002-02-18 Richard Earnshaw <rearnsha@arm.com>
7970
7971 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7972 * gdbarch.c gdbarch.h: Regenerate.
7973 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7974 function.
7975 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7976 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7977 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7978
7979 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7980 * arm-tdep.c (arm_get_longjmp_target): New function.
7981 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7982 this to a positive value register arm_get_longjmp_target as the
7983 longjmp handler.
7984 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7985 (arm_linux_init_abi): Set up longjmp description in tdep.
7986 * armnbsd-nat.c (get_longjmp_target): Delete.
7987 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7988 description in tdep.
7989 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7990 (get_longjmp_target): Delete declaration.
7991 (GET_LONGJMP_TARGET): Delete.
7992 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7993 (GET_LONGJMP_TARGET): Delete.
7994
57bc8964
KB
79952002-02-17 Kevin Buettner <kevinb@redhat.com>
7996
7997 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7998 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7999 of ``current_gdbarch''.
8000
83d31a92
TT
80012002-02-17 Tom Tromey <tromey@redhat.com>
8002
8003 * cli/cli-cmds.c (compare_strings): New function.
8004 (complete_command): Only print each unique item once.
8005 * completer.h (complete_line): Declare.
8006 * completer.c (complete_line): New function.
8007 (line_completion_function): Use it.
8008
17ef5d92
AC
80092002-02-16 Andrew Cagney <ac131313@redhat.com>
8010
8011 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8012 * gdbarch.h, gdbarch.c: Re-generate.
8013
491b8946
DJ
80142002-02-16 Daniel Jacobowitz <drow@mvista.com>
8015
8016 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8017
80182002-02-16 Daniel Jacobowitz <drow@mvista.com>
8019
8020 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8021 * valops.c (value_arg_coerce): Don't take the address of a reference
8022 to convert an argument to a reference.
8023
dfe7f3ac
CF
80242002-02-15 Christopher Faylor <cgf@redhat.com>
8025
8026 * win32-nat.c (get_image_name): New function.
8027 (handle_load_dll): Use get_image_name function.
8028 (get_child_debug_event): Avoid registering debug events until possibly
8029 execed process is started.
8030 (child_create_inferior): Allow invocation via shell so that command
8031 line redirection, etc. works ok.
8032 (_initialize_inftarg): Add new command: "set shell" to control whether
8033 a shell is used to start a process.
8034
1d33e73a
DJ
80352002-02-15 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8038 instead of find_register_by_number.
8039 (cannot_store_register): Likewise.
8040
48cd0caa
PM
80412002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8042
aaa38bb5 8043 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8044 fprintf_unfiltered (gdb_stderr, ...).
8045
8656e7d8
DJ
80462002-02-15 Daniel Jacobowitz <drow@mvista.com>
8047
8048 * gdbserver/gdbserver.1: Document --attach.
8049
66e810cd
RE
80502002-02-15 Richard Earnshaw <rearnsha@arm.com>
8051
8052 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8053 descriptions.
8054 * arm-tdep.c (arm_default_arm_le_breakpoint)
8055 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8056 (arm_default_thumb_be_breakpoint): New. Initialize them from
8057 traditional breakpoint defines.
8058 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8059 (arm_gdbarch_init): Initialize new breakpoint variables.
8060 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8061 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8062 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8063 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8064 code out to ...
8065 (arm_netbsd_init_abi_common): ... here; new function.
8066 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8067 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8068 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8069 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8070
97e03143
RE
80712002-02-15 Richard Earnshaw <rearnsha@arm.com>
8072
8073 * arm-tdep.h (enum arm_abi): New enum.
8074 (struct gdbarch_tdep): New structure.
8075 (LOWEST_PC): Provide a default.
8076 (arm_gdbarch_register_os_abi): Declare new function.
8077 * arm-tdep.c (arm_abi_names): New array.
8078 (process_note_abi_tag_sections): New function.
8079 (get_elfosabi): New function.
8080 (arm_gdbarch_register_os_abi): New function.
8081 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8082 support for that ABI has been built in, then call the appropriate
8083 configuration routine. Use gdbarch_num_regs() to get the number
8084 of registers.
8085 (arm_dump_tdep): New function.
8086 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8087 place-holder functions.
8088 (_initialize_arm_tdep): Register them.
8089 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8090
8091 * armnbsd-tdep.c: New file.
8092 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8093 * config/arm/nbsd.mt (TDEPFILES): Add it.
8094 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8095
8096 * armnbsd-nat.c: Include regcache.h.
8097 * Makefile.in (armnbsd-nat.o): Update dependency list.
8098
8099 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8100
ad68be46
DJ
81012002-02-14 Daniel Jacobowitz <drow@mvista.com>
8102
8103 * gdbserver/Makefile.in: Fix typos in target rules.
8104
003d6d1d
DJ
81052002-02-14 Daniel Jacobowitz <drow@mvista.com>
8106
aaa38bb5 8107 Fix part of PR gdb/267.
003d6d1d
DJ
8108 * linespec.c (find_methods): Handle constructors specially for now.
8109
6b230f1b
CV
81102002-02-14 Corinna Vinschen <vinschen@redhat.com>
8111
8112 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8113 handling.
8114 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8115 standard_coerce_float_to_double().
8116
1ea98d12
CF
81172002-02-14 Christopher Faylor <cgf@redhat.com>
8118
8119 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8120 GDBINIT_FILENAME.
8121
dd47e6fd
EZ
81222002-02-14 Elena Zannoni <ezannoni@redhat.com>
8123
8124 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8125 find_variant_by_name, because it confuses the multiarch
8126 framework. Return NULL if there isn't an architecture with the
8127 user supplied name, instead of forcing a different one without
8128 recording the change with the multiarch machinery.
8129 (find_variant_by_name): Delete.
8130
d7e39b9e
PS
81312002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8132
8133 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8134 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8135
76e42a4f
MH
81362002-02-13 Martin M. Hunt <hunt@redhat.com>
8137
aaa38bb5 8138 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8139 print_frame_info_listing_hook, set current_source_symtab.
8140
0a30fbc4
DJ
81412002-02-14 Daniel Jacobowitz <drow@mvista.com>
8142
8143 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8144 and remove unused $(INCLUDE_DIR).
8145 Add regcache.c to OBS.
8146 Add generated register protocol files to clean target.
8147 Update dependencies for new objects, obsolete old target code.
8148
8149 * gdbserver/linux-low.c: Remove all platform-specific code to
8150 new files. Remove various dead code. Update to use regcache
8151 functionality.
8152 * gdbserver/remote-utils.c (fromhex): Add return statement
8153 to quiet warning.
8154 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8155 constant.
8156 (input_interrupt): Add integer parameter to match prototype
8157 of a signal handler.
8158 (outreg): Use register_data ().
8159 (prepare_resume_reply): Use gdbserver_expedite_regs.
8160 * gdbserver/server.c (main): Dynamically allocate own_buf because
8161 PBUFSIZ is no longer constant. Use registers_to_string () and
8162 registers_from_string ().
8163 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8164 for error (), fatal (), and warning (). Update definition of
8165 PBUFSIZ to use regcache functionality. Add include guard.
8166 * gdbserver/utils.c (fatal): Add missing ``const''.
8167 (warning): New function.
8168
8169 * regformats/regdat.sh: Include "regcache.h" in generated files.
8170 Provide init_registers () function.
8171 * regformats/regdef.h: Add prototype for set_register_cache ().
8172 Add include guard.
8173
8174 * gdbserver/linux-arm-low.c: New file.
8175 * gdbserver/linux-i386-low.c: New file.
8176 * gdbserver/linux-ia64-low.c: New file.
8177 * gdbserver/linux-m68k-low.c: New file.
8178 * gdbserver/linux-mips-low.c: New file.
8179 * gdbserver/linux-ppc-low.c: New file.
8180 * gdbserver/linux-sh-low.c: New file.
8181
8182 * gdbserver/regcache.c: New file.
8183 * gdbserver/regcache.h: New file.
8184
8185 * gdbserver/low-linux.c: Removed obsolete file.
8186
4cc841d0
DJ
81872002-02-14 Daniel Jacobowitz <drow@mvista.com>
8188
8189 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8190 * config/i386/linux.mt: Likewise.
8191 * config/ia64/linux.mt: Likewise.
8192 * config/m68k/linux.mh: Likewise.
8193 * config/powerpc/linux.mh: Likewise.
8194 * config/mips/linux.mt: Likewise.
8195
8196 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8197
8198 * config/i386/i386lynx.mh: Mark gdbserver variables
8199 as (currently) obsolete for this target.
8200 * config/i386/nbsd.mt: Likewise.
8201 * config/i386/nbsdelf.mt: Likewise.
8202 * config/m32r/m32r.mt: Likewise.
8203 * config/m68k/m68klynx.mh: Likewise.
8204 * config/m68k/nbsd.mt: Likewise.
8205 * config/m68k/sun3os4.mh: Likewise.
8206 * config/mips/vr5000.mt: Likewise.
8207 * config/ns32k/nbsd.mt: Likewise.
8208 * config/pa/hppabsd.mh: Likewise.
8209 * config/pa/hppaosf.mh: Likewise.
8210 * config/powerpc/nbsd.mt: Likewise.
8211 * config/rs6000/rs6000lynx.mh: Likewise.
8212 * config/s390/s390.mt: Likewise.
8213 * config/s390/s390x.mt: Likewise.
8214 * config/sparc/sparclynx.mh: Likewise.
8215 * config/sparc/sun4os4.mh: Likewise.
8216 * config/i386/x86-64linux.mt: Likewise.
8217 * config/sparc/linux.mh: Likewise.
8218
a85f51e7
DJ
82192002-02-14 Daniel Jacobowitz <drow@mvista.com>
8220
8221 * configure.tgt: Configure gdbserver only for known working
8222 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8223 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8224 SUBDIRS if it is configured. Update comment for ${nativefile}.
8225 * configure: Regenerated.
8226
65554fef
MS
82272002-02-13 Michael Snyder <msnyder@redhat.com>
8228
670a52db
MS
8229 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8230
6dbdc4a3
MS
8231 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8232 (default_gcore_mach): Just return 0, work around a problem in bfd.
8233 (default_gcore_target): OK to return NULL if exec_bfd is null.
8234 (make_mem_sec): Use a cast, avoid a warning.
8235
8236 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8237 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8238 sizeof (host pointer) != sizeof (target pointer)).
8239 (procfs_make_note_section): Avoid overflow in psargs string.
8240
aaa38bb5 8241 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8242 implementation return an error.
8243
82442002-02-13 Rodney Brown <rbrown64@csc.com.au>
8245
8246 * procfs.c (procfs_make_note_section): Provide a default definition
8247 (for alpha-dec-osf4.0f). Fix typos.
8248
1e4d76e7
EZ
82492002-02-13 Elena Zannoni <ezannoni@redhat.com>
8250
8251 * linux-proc.c: Add include of regcache.h.
8252 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8253
b6d1a1d5
AC
82542002-02-13 Andrew Cagney <ac131313@redhat.com>
8255
8256 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8257 * memattr.c (create_mem_region): Disallow useless empty region.
8258 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8259 non-overlapping.
b6d1a1d5 8260
6c6ea35e
MC
82612002-02-13 Michael Chastain <mec@shout.net>
8262
8263 * defs.h: Kill CONST_PTR.
8264 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8265 * c-lang.c (c_builtin_types): Likewise.
8266 * ch-lang.c (ch_builtin_types): Likewise.
8267 * f-lang.c (f_builtin_types): Likewise.
8268 * language.c (unknown_builtin_types): Likewise.
8269 * m2-lang.c (m2_builtin_types): Likewise.
8270 * p-lang.c (pascal_builtin_types): Likewise.
8271 * scm-lang.c (c_builtin_types): Likewise.
8272
3e0b0f48
KS
82732002-02-13 Keith Seitz <keiths@redhat.com>
8274
8275 * arm-tdep.h (arm_get_next_pc): Add declaration.
8276
67255d04
RE
82772002-02-13 Richard Earnshaw <rearnsha@arm.com>
8278
8279 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8280 with other related struct-returning functions.
8281 (arm_extract_struct_value_address): New function.
8282 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8283 initialize float_format, double_format and long_double_format as
8284 appropriate to the endianness of the target.
8285 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8286 (arm_use_struct_convention): Delete declaration.
8287 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8288
079777f6
KS
82892002-02-13 Keith Seitz <keiths@redhat.com>
8290
8291 * defs.h (core_addr_to_string_nz): New function.
8292
34588f23
MK
82932002-02-13 Mark Kettenis <kettenis@gnu.org>
8294
8295 Apply missing bits of 2002-01-15 patch.
8296 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8297 (fill_fpregset): Use i387_fill_fsave.
8298
49b563f9
KS
82992002-02-12 Keith Seitz <keiths@redhat.com>
8300
49b563f9
KS
8301 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8302 (core_addr_to_string_nz): New function.
8303
aeb98c60
RE
83042002-02-11 Richard Earnshaw <rearnsha@arm.com>
8305
8306 * arm-linux-nat.c: Really include arm-tdep.h.
8307 * config/arm/tm-linux.h (struct type, struct value): Declare.
8308
65554fef
MS
83092002-02-11 Michael Snyder <msnyder@redhat.com>
8310
8311 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8312 (gcore section): Ifdef for Solaris and Unixware only.
8313 (procfs_do_thread_registers): Unixware needs one lwpstatus
8314 per thread (not one prstatus or pstatus).
8315 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8316 not over all gdb threads. For unixware, call elfcore_write_pstatus
8317 once before iterating over threads.
8318
34e8f22d
RE
83192002-02-11 Richard Earnshaw <rearnsha@arm.com>
8320
8321 * arm-tdep.h: New file.
8322 * arm-tdep.c: Include arm-tdep.h.
8323 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8324 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8325 (arm_print_float_info, arm_register_type, convert_to_extended)
8326 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8327 (arm_extract_return_value, arm_register_name): Make static.
8328 (arm_software_single_step): Similarly. Fix types in declaration.
8329 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8330 (arm_store_return_value, arm_store_struct_return): New functions.
8331 (arm_gdbarch_init): Register the above functions. Also register
8332 call_dummy_start_offset, sizeof_call_dummy_words,
8333 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8334 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8335 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8336 prologue_cache.saved_regs here, rather than ...
8337 (_initialize_arm_tdep): ... here.
8338 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8339 declarations.
8340 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8341 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8342 (arm_print_float_info, arm_register_type, convert_to_extended)
8343 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8344 (arm_extract_return_value, arm_register_name): Delete declarations.
8345 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8346 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8347 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8348 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8349 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8350 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8351 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8352 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8353 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8354 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8355 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8356 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8357 interface.
8358 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8359 * remote-rdi.c remote-rdp.c: Likewise.
8360 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8361 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8362 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8363 definition.
8364
8365 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8366 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8367 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8368 from non-ARM_ prefixed definitions.
8369 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8370 all uses of above.
8371 * remote-rdi.c remote-rdp.c: Likewise.
8372 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8373
148754e5
RE
83742002-02-11 Richard Earnshaw <rearnsha@arm.com>
8375
8376 * arm-tdep.c (arm_frameless_function_invocation)
8377 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8378 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8379 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8380 (arm_pop_frame, arm_get_next_pc): Make static.
8381 (arm_gdbarch_init): Register above in gdbarch structure.
8382 (arm_read_fp): Renamed from arm_target_read_fp.
8383 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8384 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8385 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8386 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8387 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8388 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8389 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8390 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8391 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8392 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8393 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8394
434d2d4f
DJ
83952002-02-10 Daniel Jacobowitz <drow@mvista.com>
8396
8397 * symtab.c (compare_search_syms): New function.
8398 (sort_search_symbols): New function.
8399 (search_symbols): Sort symbols after searching rather than
8400 before.
8401
55241689
AC
84022002-02-10 Andrew Cagney <ac131313@redhat.com>
8403
8404 * NEWS: Linux -> GNU/Linux.
8405
028c194b
AC
84062002-02-10 Andrew Cagney <ac131313@redhat.com>
8407
8408 * gdbarch.sh: For for level one methods, disallow a definition
8409 when partially multi-arched. Add comments explaining rationale.
8410 * gdbarch.h: Re-generate.
8411
6acf50cd
AC
84122002-02-10 Andrew Cagney <ac131313@redhat.com>
8413
8414 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8415 multi-arch partial.
aaa38bb5 8416
50248794
AC
84172002-02-10 Andrew Cagney <ac131313@redhat.com>
8418
8419 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8420 field. Use diff -u.
8421 * gdbarch.c: Re-generate.
8422
c30e0066
AC
84232002-02-10 Andrew Cagney <ac131313@redhat.com>
8424
9b56c5f3 8425 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8426 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8427 partial.
8428
6e6d6484
AC
84292002-02-10 Andrew Cagney <ac131313@redhat.com>
8430
8431 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8432 multi-arch partial.
8433 (PUSH_ARGUMENTS): Switch to using predefault.
8434 * gdbarch.c: Regenerate.
8435
c203844d
AC
84362002-02-10 Andrew Cagney <ac131313@redhat.com>
8437
8438 * valops.c (PUSH_ARGUMENTS): Delete definition.
8439 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8440 partial. Default to default_push_arguments.
8441 * gdbarch.h, gdbarch.c: Regenerate.
8442
b5a2688f
AC
84432002-02-09 Andrew Cagney <ac131313@redhat.com>
8444
8445 * defs.h (throw_exception): Rename return_to_top_level. Update
8446 comments.
8447 * utils.c (error_stream, internal_verror, quit): Ditto.
8448 * top.c (throw_exception, catcher): Ditto.
8449 * sparclet-rom.c (sparclet_load): Ditto.
8450 * remote.c (interrupt_query, minitelnet): Ditto.
8451 * remote-sds.c (interrupt_query): Ditto.
8452 * remote-mips.c (mips_error, mips_kill): Ditto.
8453 * ocd.c (interrupt_query): Ditto.
8454 * monitor.c (monitor_interrupt_query): Ditto.
8455 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8456 * target.h: Update comment.
aaa38bb5 8457
b5a2688f 8458 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8459
2fa5c1e0
AC
84602002-02-09 Andrew Cagney <ac131313@redhat.com>
8461
8462 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8463 default_double_format.
8464 * gdbarch.h, gdbarch.c: Re-generate.
8465 * findvar.c (floatformat_unknown): Delete variable definition.
8466 * doublest.h (floatformat_unknown): Delete variable declaration.
8467
da966255
JB
84682002-02-09 Jim Blandy <jimb@redhat.com>
8469
8470 * stabsread.c (read_type): Add code to parse Sun's syntax for
8471 prototyped function types.
8472
123a4891
AC
84732002-02-09 Andrew Cagney <ac131313@redhat.com>
8474
8475 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8476 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8477
fb39c8f3
PS
84782002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8479
8480 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8481 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8482 now _initialize_xcoffsolib gets called again and overrides the
8483 commands from solib.c in a native configuration.
8484
0b87a11d
MK
84852002-02-09 Mark Kettenis <kettenis@gnu.org>
8486
8487 * doublest.c (store_typed_floating): Don't try to return a value.
8488 Fixes PR gdb/290.
8489
bdc2fc72
JB
84902002-02-08 Jim Blandy <jimb@redhat.com>
8491
8492 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8493 is prototyped and has no arguments, print its argument list as
8494 `(void)'.
8495
da69bbcf
CD
84962002-02-08 Chris Demetriou <cgd@broadcom.com>
8497
8498 * MAINTAINERS (write-after-approval): Add myself.
8499 (paper-trail): I've escaped!
aaa38bb5 8500
b69571f5
CF
85012002-02-08 Christopher Faylor <cgf@redhat.com>
8502
8503 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8504 changes.
8505 (_initialize_check_for_gdb_ini): Ditto.
8506
f6871398
MH
85072002-02-08 Martin M. Hunt <hunt@redhat.com>
8508
8509 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8510 xaprintf -> xasprintf.
8511
4e52d31c
PM
85122002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8513
8514 * win32-nat.c: Remove use of printf and sprintf functions.
8515
39bbf761
RE
85162002-02-08 Richard Earnshaw <rearnsha@arm.com>
8517
8518 * arm-tdep.c (arm_frame_chain_valid): Make static.
8519 (arm_push_arguments): Likewise.
8520 (arm_gdbarch_init): New function.
8521 (_initialize_arm_tdep): Call it.
8522 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8523 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8524 (FRAME_CHAIN_VALID): Delete.
8525 (arm_frame_chain_valid): Delete declaration.
8526 (PUSH_ARGUMENTS): Delete.
8527 (arm_push_arguments): Delete declaration.
8528 (CALL_DUMMY_P): Delete.
8529
9c9532c9
CV
85302002-02-08 Andrew Cagney <ac131313@redhat.com>
8531 Corinna Vinschen <vinschen@redhat.com>
8532
8533 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8534 on builtin float types.
8535
4e8f7a8b
DJ
85362002-02-08 Daniel Jacobowitz <drow@mvista.com>
8537
8538 * utils.c: Include <curses.h> before "bfd.h".
8539 * tui/tui-hooks.c: Likewise.
8540 * tui/tui.c: Likewise.
8541 * tui/tuiCommand.c: Likewise.
8542 * tui/tuiData.c: Likewise.
8543 * tui/tuiDataWin.c: Likewise.
8544 * tui/tuiDisassem.c: Likewise.
8545 * tui/tuiGeneralWin.c: Likewise.
8546 * tui/tuiIO.c: Likewise.
8547 * tui/tuiLayout.c: Likewise.
8548 * tui/tuiRegs.c: Likewise.
8549 * tui/tuiSource.c: Likewise.
8550 * tui/tuiSourceWin.c: Likewise.
8551 * tui/tuiStack.c: Likewise.
8552 * tui/tuiWin.c: Likewise.
8553
cd4bffcf
EZ
85542002-02-07 Elena Zannoni <ezannoni@redhat.com>
8555
8556 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8557 to include space for pseudoregs as well. Update loops accordingly.
8558 (sh_fp_frame_init_saved_regs): Ditto.
8559 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8560
26806ce2
AC
85612002-02-07 Andrew Cagney <ac131313@redhat.com>
8562
8563 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8564 Add Richard Earnshaw to Arm maintainers.
8565
97fdab62
AC
85662002-02-07 Andrew Cagney <ac131313@redhat.com>
8567
a6b98203
AC
8568 * defs.h (warning_begin): Delete declaration.
8569
97fdab62
AC
8570 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8571 Delete macro.
8572
78b29b40
MS
85732002-02-07 Michael Snyder <msnyder@redhat.com>
8574
aaa38bb5 8575 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8576 Logic bug, remove misplaced else.
8577
d8849953
KD
85782002-02-07 Klee Dienes <klee@apple.com>
8579
8580 * fork-inferior.c (fork_inferior): Add '!' to the list of
8581 characters that need to be quoted when building a string for the
8582 shell. Quote '!' specifically with a backslash, since CSH chokes
8583 when trying to evaluate "str!str".
aaa38bb5 8584
095778a0
NC
85852002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8586
8587 * rdi-share/host.h: Only provide a typedef for bool if it is not
8588 defined.
8589
1900040c
MS
85902002-02-04 Michael Snyder <msnyder@redhat.com>
8591
8592 * breakpoint.h (enum bptype): Add new overlay event bp type.
8593 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8594
1900040c
MS
8595 * breakpoint.c (create_internal_breakpoint): New function.
8596 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8597 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8598 (create_thread_event_breakpoint): Ditto.
8599 (create_solib_event_breakpoint): Ditto.
8600 (create_overlay_event_breakpoint): New function.
8601 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8602 (update_breakpoints_after_exec): Delete and re-initialize
8603 overlay event breakpoints after an exec. Add FIXME comment
8604 about longjmp breakpoint.
8605 (print_it_typical): Ignore overlay event breakpoints.
8606 (print_one_breakpoint): Ditto.
8607 (mention): Ditto.
8608 (bpstat_what): Do not stop for overlay event breakpoints.
8609 (delete_breakpoint): Don't delete overlay event breakpoints.
8610 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8611 (breakpoint_re_set): Re-create overlay event breakpoint.
8612
8613 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8614 (overlay_manual_command): Disable overlay breakpoints.
8615 (overlay_off_command): Disable overlay breakpoints.
8616
082fc60d
RE
86172002-02-06 Richard Earnshaw <rearnsha@arm.com>
8618
8619 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8620 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8621 to here from config/tm-arm.h.
8622 (coff_sym_is_thumb): Make static.
8623 (arm_elf_make_msymbol_special): New function.
8624 (arm_coff_make_msymbol_special): New function.
8625 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8626 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8627 (coff_sym_is_thumb): Delete declaration.
8628 (arm_elf_make_msymbol_special): Declare.
8629 (arm_coff_make_msymbol_special): Declare.
8630 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8631 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8632
039c5766
RE
86332002-02-06 Richard Earnshaw <rearnsha@arm.com>
8634
8635 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8636
86372002-02-06 Richard Earnshaw <rearnsha@arm.com>
8638
8639 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8640 * gdbarch.c gdbarch.h: Regenerate.
8641 * arch-utils.c (default_print_float_info): New function.
8642 * arch-utils.h (default_print_float_info): Prototype it.
8643 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8644 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8645 (PRINT_FLOAT_INFO): Document it.
8646
8647 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8648 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8649 (PRINT_FLOAT_INFO): Define.
8650
58fa08f0
PM
86512002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8652
aaa38bb5 8653 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8654 Add typecast to sprintf argument to suppress a warning.
8655
7393af7c
PM
86562002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8657
58fa08f0 8658 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8659 to allow easier handling of pass state.
8660 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8661 that gives exception name and address.
8662 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8663 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8664 exceptions added.
aaa38bb5
AJ
8665 (child_continue): Correctly report continue_status.
8666 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8667 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8668 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8669 the exception should be passed to debuggee or not.
8670
6af4589c
MS
86712002-02-05 Michael Snyder <msnyder@redhat.com>
8672
8673 * regcache.c (fetch_register): Call target_fetch_register
8674 only if we don't call FETCH_PSEUDO_REGISTER.
8675 (store_register): Call target_store_register only if we
8676 don't call STORE_PSEUDO_REGISTER.
8677
a2cf933a
EZ
86782002-02-05 Elena Zannoni <ezannoni@redhat.com>
8679
8680 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8681 ELF_MAKE_MSYMBOL_SPECIAL.
8682 * gdbarch.c, gdbarch.h: Regenerate.
8683 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8684 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8685 * elfread.c (elf_symtab_read): Compile use of
8686 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8687 multiarched.
8688 * coffread.c (coff_symtab_read): Ditto, for
8689 COFF_MAKE_MSYMBOL_SPECIAL.
8690
6bb7be43
JB
86912002-02-05 Jim Blandy <jimb@redhat.com>
8692
8693 * solib-svr4.c (svr4_truncate_ptr): New function.
8694 (svr4_relocate_section_addresses): Do the address arithmetic with
8695 the appropriate truncation for target addresses, even when
8696 CORE_ADDR is larger than a target address.
8697
e18651ec
DJ
86982002-02-05 Daniel Jacobowitz <drow@mvista.com>
8699
8700 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8701 to (int *).
8702
6b2725be
DJ
87032002-02-05 Daniel Jacobowitz <drow@mvista.com>
8704
8705 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8706 code.
8707
fca9e603
DJ
87082002-02-05 Daniel Jacobowitz <drow@mvista.com>
8709
8710 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8711
6c537a52
DJ
87122002-02-05 Daniel Jacobowitz <drow@mvista.com>
8713
8714 * gdbserver/linux-low.c: Remove unused include files.
8715
d844cde6
DJ
87162002-02-05 Daniel Jacobowitz <drow@mvista.com>
8717
8718 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8719 (read_inferior_memory): Use it.
8720 (write_inferior_memory): Likewise.
8721
d07c63e7
DJ
87222002-02-05 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8725 grubbing through sys_errlist.
8726
da6d8c04
DJ
87272002-02-05 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8730
5b421780
PM
87312002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8732 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8733
9f60d481
AC
87342002-02-04 Andrew Cagney <ac131313@redhat.com>
8735
8736 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8737 (do_sfunc, set_cmd_sfunc): New functions.
8738
8739 * command.h (struct cmd_list_element): Add field func.
8740 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8741 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8742 * cli/cli-decode.h: Ditto.
8743
8744 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8745 (help_all, help_cmd_list): Ditto.
8746 (find_cmd, complete_on_cmdlist): Ditto.
8747 * top.c (execute_command): Ditto.
8748
8749 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8750 function.sfunc.
8751
8752 * infcmd.c (notice_args_read): Fix function signature.
8753
8754 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8755 * cli/cli-decode.c (add_set_cmd): Ditto.
8756 * utils.c (initialize_utils): Ditto.
8757 * maint.c (_initialize_maint_cmds): Ditto.
8758 * infrun.c (_initialize_infrun): Ditto.
8759 * demangle.c (_initialize_demangler): Ditto.
8760 * remote.c (add_packet_config_cmd): Ditto.
8761 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8762 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8763 * proc-api.c (_initialize_proc_api): Ditto.
8764 * kod.c (_initialize_kod): Ditto.
8765 * valprint.c (_initialize_valprint): Ditto.
8766 * top.c (init_main): Ditto.
8767 * infcmd.c (_initialize_infcmd): Ditto.
8768 * corefile.c (_initialize_core): Ditto.
8769 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8770 * arch-utils.c (initialize_current_architecture): Ditto.
8771 (_initialize_gdbarch_utils): Ditto.
8772 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8773
8774 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8775 * wince.c (_initialize_inftarg): Ditto.
8776 * symfile.c (_initialize_symfile): Ditto.
8777 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8778 * language.c (_initialize_language): Ditto.
8779 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8780
f9ba0717
MS
87812002-02-04 Michael Snyder <msnyder@redhat.com>
8782
8783 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8784
0c74b2a7
DJ
87852002-02-04 Daniel Jacobowitz <drow@mvista.com>
8786
8787 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8788 Add rules for building the register data files.
8789
c638789f
DJ
87902002-02-04 Daniel Jacobowitz <drow@mvista.com>
8791
8792 * regformats/regdat.sh: Add braces to the definition of
8793 expedite_regs_${arch}.
8794
db253027
DJ
87952002-02-04 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * regformats/regdef.h (struct reg): Add comment describing the
8798 requirements for offset and size fields.
8799
206be19c
AS
88002002-02-04 Andreas Schwab <schwab@suse.de>
8801
8802 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8803 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8804
181c1381
RE
88052002-02-04 Richard Earnshaw <rearnsha@arm.com>
8806
8807 * gdbarch.sh (copyright): Update years in generated header.
8808 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8809 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8810 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8811 * dbxread.c: Likewise.
8812 * dwarfread.c: Likewise.
8813 * elfread.c: Likewise.
8814 * somread.c: Likewise.
8815
8816 * arm-tdep.c (arm_smash_text_address): New function.
8817 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8818
fa4ba8da
PM
88192002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8820
8821 Add support for hardware watchpoints on win32 native.
aaa38bb5 8822 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8823 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8824 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8825 of debug registers.
8826 (debug_registers_changed): New variable. Reflects when debug registers
8827 are changed and need to be written to inferior.
aaa38bb5 8828 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8829 was set, used when new threads are created.
8830 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8831 i386-nat code.
8832 (thread_rec): Set dr array if id is the thread of current_event .
8833 (child_continue, child_resume): Change the debug registers for all
8834 threads if debug_registers_changed.
8835 (child_add_thread): Change the debug registers if debug_registers_used.
8836 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8837 Link nm.h to new nm-cygwin.h file.
8838 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8839 of hardware registers.
8840
a73c86fb
AC
88412002-02-03 Andrew Cagney <ac131313@redhat.com>
8842
8843 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8844 Restore behavour broken by 2002-01-20 Andrew Cagney
8845 <ac131313@redhat.com> IEEE_FLOAT removal.
8846
acf5ed49
DJ
88472002-02-03 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * c-valprint.c (c_val_print): Pass a proper valaddr to
8850 cp_print_class_method.
8851 * valops.c (search_struct_method): If there is only one method
8852 and args is NULL, return that method.
8853
493d28d5
DJ
88542002-02-03 Daniel Jacobowitz <drow@mvista.com>
8855
8856 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8857 accessing tag_name directly.
8858
7495dfdb
DJ
88592002-02-03 Daniel Jacobowitz <drow@mvista.com>
8860
8861 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8862 of accessing tag_name directly.
8863
dd6bda65
DJ
88642002-02-03 Daniel Jacobowitz <drow@mvista.com>
8865
8866 PR gdb/280
8867 * gdbtypes.c (replace_type): New function.
8868 * gdbtypes.h (replace_type): Add prototype.
8869 * stabsread.c (read_type): Use replace_type.
8870
88fe217c
RE
88712002-02-03 Richard Earnshaw <rearnsha@arm.com>
8872
8873 * Makefile.in (memattr.o): Add missing dependencies rule.
8874
e5d66720
PS
88752002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8876
8877 * breakpoint.c (break_at_finish_command): Really export.
8878 (break_at_finish_at_depth_command): Ditto.
8879 (tbreak_at_finish_command): Ditto.
8880 * hppa-tdep.c: Include completer.h.
8881 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8882 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8883
fffee0be
AC
88842002-02-01 Andrew Cagney <ac131313@redhat.com>
8885
8886 * utils.c (do_write): New function.
8887 (error_stream): Rewrite combining the code from error_begin and
8888 verror.
8889 (verror): Rewrite using error_stream.
8890 (error_begin): Delete function.
8891
255e7dbf
AC
88922002-02-01 Andrew Cagney <ac131313@redhat.com>
8893
8894 * utils.c (error_begin): Make static.
8895 * defs.h (error_begin): Delete declaration.
8896
8897 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8898 (decode_line_1): Use cplusplus_error instead of error_begin,
8899 cplusplus_hint and return_to_top_level.
8900 * coffread.c (coff_symfile_read): Use error instead of error_begin
8901 and return_to_top_level.
8902 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8903
ddfe3c15
AC
89042002-02-01 Andrew Cagney <ac131313@redhat.com>
8905
8906 * language.h (type_error, range_error): Make string parameter
8907 constant.
8908 * language.c (warning_pre_print): Delete extern declaration.
8909 * dwarfread.c (warning_pre_print): Ditto.
8910 * language.c (type_error, range_error): Rewrite to use verror and
8911 vwarning instead of warning_begin.
8912
03ac34d5
MS
89132002-02-01 Michael Snyder <msnyder@redhat.com>
8914
261c4ca2
MS
8915 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8916 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8917
e00d1dc8
AC
89182002-02-01 Andrew Cagney <ac131313@redhat.com>
8919
8920 * command.h (NO_FUNCTION): Delete macro.
8921 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8922 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8923 * tracepoint.c (_initialize_tracepoint): Ditto.
8924 * cli/cli-decode.c (add_set_cmd): Ditto.
8925 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8926
76b79d6e
DJ
89272002-02-01 Daniel Jacobowitz <drow@mvista.com>
8928
8929 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8930 Update ``this'' pointer when calling virtual functions.
8931
799f9e91
MS
89322002-02-01 Michael Snyder <msnyder@redhat.com>
8933
c7bd442c 8934 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
8935 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8936
3cf384d4
DJ
89372002-02-01 Daniel Jacobowitz <drow@mvista.com>
8938
8939 * regformats/reg-arm.dat: New file.
8940 * regformats/reg-i386.dat: New file.
8941 * regformats/reg-ia64.dat: New file.
8942 * regformats/reg-m68k.dat: New file.
8943 * regformats/reg-mips.dat: New file.
8944 * regformats/reg-ppc.dat: New file.
8945 * regformats/reg-sh.dat: New file.
8946 * regformats/regdef.h: New file.
8947 * regformats/regdat.sh: New file.
8948
0defa245
RE
89492002-02-01 Richard Earnshaw <reanrsha@arm.com>
8950
8951 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8952 (arm_frame_args_address, arm_frame_locals_address): New functions.
8953 (arm_frame_num_args): New function.
8954 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8955 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8956 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8957
405f26e6
MS
89582002-01-31 Michael Snyder <msnyder@redhat.com>
8959
502fd408
MS
8960 * breakpoint.c (break_at_finish_command): Export.
8961 (break_at_finish_at_depth_command): Export.
8962 (tbreak_at_finish_command): Export.
8963 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8964 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8965 "tbreak" commands, which are HPPA specific.
8966
7d35e135
MS
8967 * printcmd.c (disassemble_command): Remove an ancient
8968 artifact of an old merge.
8969
aaa38bb5 8970 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
8971 Define enum constant values for overlay mode.
8972 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
8973 (overlay_is_mapped, overlay_auto_command,
8974 overlay_manual_command): Ditto.
d874f1e2 8975
aaa38bb5
AJ
8976 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8977 breakpoint_here_p, breakpoint_inserted_here_p,
8978 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
8979 describe_other_breakpoints, check_duplicates, clear_command):
8980 Coding standard fixes.
8981
8add0441 8982 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 8983 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
8984 code: check bfd SEC_READONLY flag for section.
8985
e351066e
AC
89862002-01-31 Andrew Cagney <ac131313@redhat.com>
8987
7d35e135 8988 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 8989
8a48e967
DJ
89902002-01-30 Daniel Jacobowitz <drow@mvista.com>
8991
8992 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8993 data symbols, since we search based on textlow and texthigh.
8994 (find_pc_sect_symtab): Likewise.
8995
f5a96129
AC
89962002-01-30 Andrew Cagney <ac131313@redhat.com>
8997
8998 * defs.h (vwarning): Declare.
f5a96129
AC
8999 * utils.c (vwarning): New function.
9000 (warning): Call vwarning.
9001 (warning_begin): Delete function.
9002
9003 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9004 the warning message.
9005 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9006 warning_begin.
9007
cefd4ef5
MS
90082002-01-30 Michael Snyder <msnyder@redhat.com>
9009
1a703748
MS
9010 * NEWS: Mention "set trust-readonly-sections" command.
9011 Mention generate-core-file command.
cefd4ef5 9012
3a11626d
MS
90132002-01-15 Michael Snyder <msnyder@redhat.com>
9014
9015 * target.c: New command, "set trust-readonly-sections on".
9016 (do_xfer_memory): Honor the suggestion to trust readonly sections
9017 by reading them from the object file instead of from the target.
9018 (initialize_targets): Register command "set trust-readonly-sections".
9019
d1c7e53b
AC
90202002-01-29 Andrew Cagney <ac131313@redhat.com>
9021
9022 * parse.c (target_map_name_to_register): Simplify, search regs and
9023 pseudo-regs using a single loop.
9024
e2c9a72c
AC
90252002-01-30 Andrew Cagney <ac131313@redhat.com>
9026
9027 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9028
69824b4e
MK
90292002-01-15 Rodney Brown <rbrown64@csc.com.au>
9030
9031 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9032 * config/i386/i386v42mp.mh: Add i387-nat.o .
9033 * i386v4-nat.c: Include i387-nat.h.
9034 (supply_fpregset): Use i387_supply_fsave.
9035 (fill_fpregset): Use i387_fill_fsave.
9036
6eb69eab
RE
90372002-01-30 Richard Earnshaw <rearnsha@arm.com>
9038
9039 * arm-tdep.c (arm_call_dummy_words): Define.
9040 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9041 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9042 (CALL_DUMMY_WORDS): Define.
9043 (arm_call_dummy_words): Declare.
9044 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9045 (arm_linux_call_dummy_words): Declare.
9046
9852326a
AS
90472002-01-30 Andreas Schwab <schwab@suse.de>
9048
9049 * m68klinux-nat.c: Fix last change to use regcache_collect
9050 instead of referencing registers[] directly.
9051
977a3030
AC
90522002-01-29 Andrew Cagney <ac131313@redhat.com>
9053
9054 * parse.c (target_map_name_to_register): Delete code wrapped in
9055 #ifdef REGISTER_NAME_ALIAS_HOOK.
9056
2076c72b
MS
90572002-01-28 Michael Snyder <msnyder@redhat.com>
9058
9059 * regcache.c (legacy_read_register_gen): Need to be able to
9060 read pseudo-register as well as real register.
9061 (legacy_write_register_gen): Ditto.
9062
8fcc723b
AC
90632002-01-28 Andrew Cagney <ac131313@redhat.com>
9064
9065 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9066 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9067 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9068 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9069 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9070 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9071 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9072 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9073 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9074 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9075 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9076 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9077 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9078 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9079 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9080 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9081 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9082 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9083 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9084 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9085
afe64c1a
AC
90862002-01-28 Andrew Cagney <ac131313@redhat.com>
9087
9088 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9089 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9090 (initialize_current_architecture): Update target_byte_order using
9091 information from BFD.
aaa38bb5 9092 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9093 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9094
75bc7ddf
AC
90952002-01-28 Andrew Cagney <ac131313@redhat.com>
9096
9097 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9098 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9099
9100 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9101 #ifdef INVALID_FLOAT.
9102 * infcmd.c (do_registers_info): Ditto.
9103 * values.c (unpack_double): Ditto. Add comment.
9104
9105 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9106 already commented out.
9107
0280a90a
AS
91082002-01-26 Andreas Schwab <schwab@suse.de>
9109
9110 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9111 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9112 registers and add support for PTRACE_GETREGS.
9113
7072a954
AC
91142002-01-24 Andrew Cagney <ac131313@redhat.com>
9115
9116 GDB 5.1.1 released from 5.1 branch.
9117 * NEWS: Add 5.1.1 news.
9118 * README: Sync with 5.1 branch.
9119
86f902e0
FF
91202002-01-23 Fred Fish <fnf@redhat.com>
9121
9122 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9123 stabstring on initial malloc. Reallocing will copy it for us,
9124 if necessary.
9125
8af51c36
EZ
91262002-01-23 Elena Zannoni <ezannoni@redhat.com>
9127
aaa38bb5 9128 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9129 (HFILES_NO_SRCDIR): Remove hpread.h.
9130 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9131 (hpread.o): Update dependencies.
9132 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9133
9134 * hp-psymtab-read.c: Remove file.
9135 * hp-symtab-read.c: Remove file.
9136 * hpread.h: Remove file.
9137
9138 * hpread.c: Merge all contents of hp-psymtab-read.c,
9139 hp-symtab-read.c and hpread.h into this file, as it was prior to
9140 January 1999.
9141
9142 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9143 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9144 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9145 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9146
dc5cfeb6
EZ
91472002-01-23 Elena Zannoni <ezannoni@redhat.com>
9148
9149 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9150 fill_gregset): Call gdbarch_tdep() just once, assign result to
9151 variable and use that, instead of calling the function several
9152 times.
9153
ea87b71b
AO
91542002-01-24 Alexandre Oliva <aoliva@redhat.com>
9155
9156 * configure.host: Accept sparcv9 as alias for sparc64.
9157 * configure.tgt: Likewise.
9158
13fc0c2f
KB
91592002-01-22 Kevin Buettner <kevinb@redhat.com>
9160
9161 * solib-aix5.c (build_so_list_from_mapfile)
9162 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9163 arguments is not reversed.
9164 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9165 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9166
7bd872fe
EZ
91672002-01-22 Elena Zannoni <ezannoni@redhat.com>
9168
9169 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9170 modified version of obsolete sh_fetch_pseudo_register.
9171 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9172 (sh4_register_read): New function.
9173 (sh_pseudo_register_write): New function. Renamed and modified
9174 version of obsolete sh_store_pseudo_register.
9175 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9176 (sh4_register_write): New function.
9177 (sh_gdbarch_init): Remove setting of gdbarch function
9178 fetch_pseudo_register and store_pseudo_register. Remove setting of
9179 register_convert_to_raw, register_convert_to_virtual,
9180 register_convertible.
9181 (sh_sh4_register_convertible): Delete. No longer needed. All is
9182 taken care by architecture specific functions
9183 register_read/register_write.
9184 (sh_sh4_register_convert_to_virtual): Make static.
9185 (sh_sh4_register_convert_to_raw): Ditto.
9186
069e84fd
AC
91872002-01-22 Andrew Cagney <ac131313@redhat.com>
9188
9189 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9190 (floatformat_is_nan, floatformat_mantissa): Ditto.
9191
9192 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9193 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9194 builtin_type_ieee_double_little,
9195 builtin_type_ieee_double_littlebyte_bigword,
9196 builtin_type_m68881_ext, builtin_type_i960_ext,
9197 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9198 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9199 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9200 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9201
211a4f69
CV
92022002-01-22 Corinna Vinschen <vinschen@redhat.com>
9203
9204 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9205 parameter. Set frameless flag if it exists and depended of
9206 whether the scanned function is frameless or not.
9207 (xstormy16_skip_prologue): If function is frameless, return
9208 result of xstormy16_scan_prologue().
9209 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9210 call.
9211
f81353e4
EZ
92122002-01-21 Elena Zannoni <ezannoni@redhat.com>
9213
9214 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9215 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9216 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9217 sh_sh4_register_byte, sh_sh4_register_raw_size,
9218 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9219 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9220 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9221 sh_store_pseudo_register, sh_do_pseudo_register): Call
9222 gdbarch_tdep() just once, assign result to variable and use that,
9223 instead of calling the function several times.
9224
63c73a17
MK
92252002-01-20 Mark Kettenis <kettenis@gnu.org>
9226
9227 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9228 macros instead of LAST_FPU_CTRL_REGNUM.
9229 (store_register): Likewise.
9230
39ad761d
JB
92312002-01-21 Jim Blandy <jimb@redhat.com>
9232
9233 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9234 is up-to-date before running the program, not just when a program
9235 exits.
9236
3d74b771
FF
92372002-01-21 Fred Fish <fnf@redhat.com>
9238
9239 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9240 when we have found all instructions we are looking for.
9241
966fbf70
RE
92422002-01-21 Richard Earnshaw <rearnsha@arm.com>
9243
9244 * arm-tdep.c (arm_register_name): New function.
9245 (arm_registers_names): Make static.
9246 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9247 (arm_register_name): Declare.
9248 (REGISTER_NAME): Use it.
9249
c3b4394c
RE
92502002-01-21 Richard Earnshaw <rearnsha@arm.com>
9251 Kevin Buettner <kevinb@redhat.com>
9252
9253 Convert arm targets to new FRAME interface.
9254 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9255 (arm_frame_find_save_regs): Delete.
9256 (arm_frame_init_saved_regs): New.
9257 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9258 Allocate extra_info as required. Convert all uses of fsr.regs
9259 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9260 to use extra_info.
9261 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9262 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9263 (check_prologue_cache, save_prologue_cache): Likewise.
9264 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9265 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9266 (FRAME_FIND_SAVED_REGS): Delete.
9267 (arm_frame_find_saved_regs): Delete prototype.
9268 (arm_frame_init_saved_regs): New prototype.
9269 (FRAME_INIT_SAVED_REGS): Define.
9270
61d99182
AC
92712002-01-20 Andrew Cagney <ac131313@redhat.com>
9272
9273 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9274
6aaea291
AC
92752002-01-20 Andrew Cagney <ac131313@redhat.com>
9276
9277 From Jeff Law <law@redhat.com>:
9278 * infttrace.c: Include <sys/pstat.h>.
9279 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9280 exec file if the ttrace equivalent fails.
9281
15f698d2
AC
92822002-01-20 Andrew Cagney <ac131313@redhat.com>
9283
9284 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9285 (closeLogFile): Ditto.
9286
f86ddd7c
MC
92872002-01-20 Michael Chastain <mec@shout.net>
9288
9289 * top.c (print_gdb_version): Bump copyright year to 2002.
9290
904507ce
AC
92912002-01-20 Andrew Cagney <ac131313@redhat.com>
9292
9293 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9294 Zannoni and Eli Zaretskii.
9295
d7f0b9ce
DJ
92962002-01-20 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * buildsym.c: Update copyright years.
9299 * c-typeprint.c: Likewise.
9300 * dwarf2read.c: Likewise.
9301 * f-typeprint.c: Likewise.
9302 * gdbtypes.c: Likewise.
9303 * gdbtypes.h: Likewise.
9304 * hp-symtab-read.c: Likewise.
9305 * hpread.c: Likewise.
9306 * mdebugread.c: Likewise.
9307 * p-typeprint.c: Likewise.
9308
3fd3d7d2
AC
93092002-01-20 Andrew Cagney <ac131313@redhat.com>
9310
9311 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9312 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9313 byte-order selectable.
9314 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9315 * arch-utils.c: Ditto.
9316 (set_endian): Ditto.
9317 (set_endian_from_file): Ditto.
9318 * gdbserver/low-sim.c (create_inferior): Ditto.
9319 * gdbarch.sh: Ditto.
9320 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9321 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9322 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9323 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9324 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9325 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9326 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9327 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9328 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9329 macro definition.
9330 * config/mips/tm-wince.h: Remove #undef of macro
9331 TARGET_BYTE_ORDER_SELECTABLE.
9332 * config/sh/tm-wince.h: Ditto.
9333
b02dede2
DJ
93342002-01-20 Daniel Jacobowitz <drow@mvista.com>
9335
9336 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9337 member function fields. Add accessor macro
9338 TYPE_FN_FIELD_ARTIFICIAL.
9339 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9340 * c-typeprint.c (c_type_print_base): Skip artificial member
9341 functions.
9342
c3643761
DJ
93432002-01-20 Daniel Jacobowitz <drow@mvista.com>
9344
9345 * f-typeprint.c: Delete unused function f_type_print_args.
9346 * p-typeprint.c: Delete unused function pascal_type_print_args.
9347
8176bb6d
DJ
93482002-01-20 Daniel Jacobowitz <drow@mvista.com>
9349
9350 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9351 comment. Add ``artificial'' to ``union field_location''.
9352
9353 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9354
9355 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9356 * mdebugread.c (parse_symbol): Likewise.
9357 * stabsread.c (define_symbol): Likewise.
9358 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9359 initializing TYPE_FIELD_BITPOS to n (obsolete).
9360 (hpread_doc_function_type): Likewise.
9361 * hpread.c (hpread_function_type): Likewise.
9362
7fd60527
AC
93632002-01-20 Andrew Cagney <ac131313@redhat.com>
9364
9365 * configure.in (host_makefile_frag): Only require a host makefile
9366 fragment when a native build.
9367 * configure: Re-generate.
9368
c2f05ac9
AC
93692002-01-20 Andrew Cagney <ac131313@redhat.com>
9370
9371 * doublest.h (floatformat_from_type): Declare.
9372 * doublest.c (floatformat_from_type): New function.
9373 (convert_typed_floating): Use.
9374
9375 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9376 call to function floatformat_from_type.
9377
9378 * gdbarch.sh (IEEE_FLOAT): Delete.
9379 * gdbarch.h, gdbarch.c: Re-generate.
9380 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9381 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9382 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9383 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9384 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9385 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9386 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9387 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9388 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9389 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9390 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9391 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9392
9393 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9394 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9395 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9396 * sh-tdep.c (sh_gdbarch_init): Ditto.
9397 * mips-tdep.c (mips_gdbarch_init): Ditto.
9398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9399 * cris-tdep.c (cris_gdbarch_init): Ditto.
9400
abf22e64
AJ
94012002-01-20 Jiri Smid <smid@suse.cz>
9402
9403 * configure.host, configure.tgt: Support x86-64.
9404 * NEWS: Note new target x86-64.
9405
b7c4cbf8
AJ
9406 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9407 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9408 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9409 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9410 x86-64-linux-nat.o): Fix dependencies.
9411
82600034
AC
94122002-01-19 Andrew Cagney <ac131313@redhat.com>
9413
9414 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9415 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9416 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9417 * config/sparc/xm-sun4os4.h: Delete file.
9418 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9419
bbe5c628
AC
94202002-01-19 Andrew Cagney <ac131313@redhat.com>
9421
9422 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9423 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9424 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9425 * config/i386/i386lynx.mh (XM_FILE): Delete.
9426 * config/rs6000/xm-rs6000ly.h: Delete file.
9427 * config/sparc/xm-sparclynx.h: Delete file.
9428 * config/m68k/xm-m68klynx.h: Delete file.
9429 * config/i386/xm-i386lynx.h: Delete file.
9430 * config/xm-lynx.h: Delete file.
9431 * config/djgpp/fnchange.lst: Update.
9432
f8453e34
JT
94332002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * alpha-tdep.c (alpha_register_byte): New function.
9436 (alpha_register_raw_size): Ditto.
9437 (alpha_register_virtual_size): Ditto.
9438 (alpha_skip_prologue_internal): Renamed from
9439 alpha_skip_prologue.
9440 (alpha_skip_prologue): New version that calls
9441 alpha_skip_prologue_internal.
9442 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9443 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9444 second argument from alpha_skip_prologue.
9445 (REGISTER_BYTE): Use alpha_register_byte.
9446 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9447 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9448 (FRAMELESS_FUNCTION_INVOCATION): Use
9449 generic_frameless_function_invocation_not.
9450 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9451 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9452
52d9e613
AC
94532002-01-19 Andrew Cagney <ac131313@redhat.com>
9454
9455 * config/mips/xm-news-mips.h: Delete file.
9456 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9457
9458 * config/m88k/xm-m88k.h: Delete file.
9459 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9460 * config/m88k/xm-delta88v4.h: Ditto.
9461 * config/m88k/xm-delta88.h: Ditto.
9462
9463 * config/alpha/xm-fbsd.h: Delete file.
9464 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9465
9466 * config/sparc/xm-sparc.h: Delete file.
9467 * Makefile.in (xm-sun4os4.h): Delete dependency.
9468 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9469 * config/sparc/xm-sun4os4.h: Ditto.
9470 * config/sparc/xm-linux.h: Ditto.
9471
9472 * config/i386/xm-windows.h: Delete file.
9473
2d1b2124
AC
94742002-01-19 Andrew Cagney <ac131313@redhat.com>
9475
9476 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9477 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9478
ee1f65f0
JT
94792002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9480
9481 * alpha-tdep.c (alpha_call_dummy_words): New.
9482 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9483 (CALL_DUMMY_P): Define.
9484 (CALL_DUMMY_WORDS): Define.
9485 (SIZEOF_CALL_DUMMY_WORDS): Define.
9486
98081e55
PB
94872002-01-19 Per Bothner <per@bothner.com>
9488
9489 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9490 isn't NULL, which can happen with some gcj-3.x-produced code.
9491
0d056799
JT
94922002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9493
9494 * alpha-tdep.c (alpha_register_virtual_type): New function.
9495 (alpha_init_frame_pc_first): Ditto.
9496 (alpha_fix_call_dummy): Ditto.
9497 (alpha_store_struct_return): Ditto.
9498 (alpha_extract_struct_value_address): Ditto.
9499 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9500 alpha_register_virtual_type.
9501 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9502 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9503 alpha_extract_struct_value_address.
9504 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9505 (INIT_FRAME_PC): Use init_frame_pc_noop.
9506 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9507
4604bcad
MK
95082002-01-19 Mark Kettenis <kettenis@gnu.org>
9509
9510 * i386gnu-nat.c: Include "i386-tdep.h".
9511 (fetch_fpregs): Simplify code dealing with uninitialized floating
9512 point states such that it doesn't require FP7_REGNUM.
9513
140f9984
JT
95142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9515
abf22e64
AJ
9516 * alpha-tdep.c (frame_extra_info): New.
9517 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9518 frame->extra_info.
9519 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9520 (alpha_frame_saved_pc): Use frame->extra_info.
9521 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9522 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9523 (init_extra_frame_info): Rename to...
9524 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9525 (alpha_print_extra_frame_info): New function.
140f9984
JT
9526 (alpha_frame_locals_address): Ditto.
9527 (alpha_frame_args_address): Ditto.
abf22e64 9528 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9529 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9530 alpha_frame_args_address.
abf22e64 9531 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9532 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9533 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9534 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9535 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9536 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9537
d734c450
JT
95382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9539
9540 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9541 (alpha_cannot_fetch_register): Ditto.
9542 (alpha_cannot_store_register): Ditto.
9543 (alpha_register_convertible): Ditto.
9544 (alpha_use_struct_convention): Ditto.
9545 * config/alpha/tm-alpha.h: Update copyright years.
9546 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9547 (INNER_THAN): Use core_addr_lessthan.
9548 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9549 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9550 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9551 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9552 (FRAME_CHAIN): Remove unnecessary cast.
9553
b4ceaee6
AC
95542002-01-18 Andrew Cagney <ac131313@redhat.com>
9555
9556 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9557 obsolete.
9558
0a65a603
AC
95592002-01-18 Andrew Cagney <ac131313@redhat.com>
9560
9561 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9562 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9563 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9564 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9565 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9566 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9567 * x86-64-linux-nat.c: Ditto.
9568
636a6dfc
JT
95692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9570
abf22e64 9571 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9572 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9573 (REGISTER_NAME): Define.
9574
acceddb6
JT
95752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9576
9577 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9578
ec32e4be
JT
95792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9580
9581 * alpha-tdep.c: Update copyright years.
9582 (alpha_next_pc): New function.
9583 (alpha_software_single_step): Ditto.
9584 * config/alpha/tm-alpha.h: Add prototype for
9585 alpha_software_single_step.
9586
e771a871
JT
95872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9588
9589 * alphabsd-nat.c: Update copyright years.
9590 (fill_gregset): Use regcache_collect.
9591 (fill_fpregset): Likewise.
9592 (fetch_inferior_registers): Only fetch integer registers
9593 if requested to do so.
9594 (store_inferior_registers): Only store integer registers
9595 if requested to do so.
9596
7708fa01
AC
95972002-01-17 Andrew Cagney <ac131313@redhat.com>
9598
9599 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9600 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9601 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9602 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9603 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9604 * config/arm/linux.mh (XDEPFILES): Delete.
9605 * config/arm/nbsd.mh (XDEPFILES): Delete.
9606 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9607 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9608 * config/i386/i386m3.mh (XDEPFILES): Delete.
9609 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9610 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9611 * config/i386/fbsd.mh (XDEPFILES): Delete.
9612 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9613 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9614 * config/i386/i386v4.mh (XDEPFILES): Delete.
9615 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9616 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9617 * config/i386/i386aix.mh (XDEPFILES): Delete.
9618 * config/i386/go32.mh (XDEPFILES): Delete.
9619 * config/i386/cygwin.mh (XDEPFILES): Delete.
9620 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9621 * config/i386/i386mach.mh (XDEPFILES): Delete.
9622 * config/i386/i386v32.mh (XDEPFILES): Delete.
9623 * config/i386/linux.mh (XDEPFILES): Delete.
9624 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9625 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9626 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9627 * config/i386/i386sco.mh (XDEPFILES): Delete.
9628 * config/i386/i386v.mh (XDEPFILES): Delete.
9629 * config/i386/nbsd.mh (XDEPFILES): Delete.
9630 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9631 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9632 * config/i386/symmetry.mh (XDEPFILES): Delete.
9633 * config/i386/obsd.mh (XDEPFILES): Delete.
9634 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9635 * config/ia64/linux.mh (XDEPFILES): Delete.
9636 * config/ia64/aix.mh (XDEPFILES): Delete.
9637 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9638 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9639 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9640 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9641 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9642 * config/m68k/linux.mh (XDEPFILES): Delete.
9643 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9644 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9645 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9646 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9647 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9648 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9649 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9650 * config/m88k/delta88.mh (XDEPFILES): Delete.
9651 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9652 * config/m88k/m88k.mh (XDEPFILES): Delete.
9653 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9654 * config/mips/linux.mh (XDEPFILES): Delete.
9655 * config/mips/irix6.mh (XDEPFILES): Delete.
9656 * config/mips/irix5.mh (XDEPFILES): Delete.
9657 * config/mips/irix4.mh (XDEPFILES): Delete.
9658 * config/mips/irix3.mh (XDEPFILES): Delete.
9659 * config/mips/decstation.mh (XDEPFILES): Delete.
9660 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9661 (NATDEPFILES): Move core-aout.o to here.
9662 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9663 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9664 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9665 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9666 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9667 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9668 * config/pa/hpux11.mh (XDEPFILES): Delete.
9669 * config/powerpc/aix.mh (XDEPFILES): Delete.
9670 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9671 * config/powerpc/linux.mh (XDEPFILES): Delete.
9672 * config/romp/rtbsd.mh: Rename XDEPFILES.
9673 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9674 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9675 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9676 * config/s390/s390.mh (XDEPFILES): Delete.
9677 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9678 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9679 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9680 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9681 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9682 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9683 * config/sparc/linux.mh (XDEPFILES): Delete.
9684 * config/vax/vaxult.mh (XDEPFILES): Delete.
9685 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9686 * Makefile.in (DEPFILES): Remove XDEPFILES.
9687
375fc983
AC
96882002-01-17 Andrew Cagney <ac131313@redhat.com>
9689
9690 * utils.c (internal_verror): Fix comments, default is yes not no.
9691 Update queries to match. Default to quit and dump core.
9692
8926118c
AC
96932002-01-17 Andrew Cagney <ac131313@redhat.com>
9694
9695 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9696 copyright.
9697 * defs.h, event-top.c, gdbcmd.h: Ditto.
9698 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9699 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9700 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9701 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9702 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9703 * mi/mi-main.c:Ditto.
9704
9705 * stack.c, symfile.c: Update copyright.
9706
45b7b345
DJ
97072002-01-17 Daniel Jacobowitz <drow@mvista.com>
9708
db728ff7
DJ
9709 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9710 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9711 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9712 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9713
db728ff7
DJ
97142002-01-17 Daniel Jacobowitz <drow@mvista.com>
9715
9716 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9717 * gdbserver/low-lynx.c (myattach): Likewise.
9718 * gdbserver/low-nbsd.c (myattach): Likewise.
9719 * gdbserver/low-sim.c (myattach): Likewise.
9720 * gdbserver/low-sparc.c (myattach): Likewise.
9721 * gdbserver/low-sun3.c (myattach): Likewise.
9722
9723 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9724
db728ff7 9725 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9726 (main): Handle "--attach".
9727
8de3c354
AC
97282002-01-16 Andrew Cagney <ac131313@redhat.com>
9729
9730 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9731 maintainer.
9732
b0129042
DJ
97332002-01-15 Daniel Jacobowitz <drow@mvista.com>
9734
9735 * c-typeprint.c (is_type_conversion_operator): Add additional
9736 check for non-conversion operators.
9737
ba8679fb 97382002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9739
9740 * linux-proc.c: Add "info proc" command, a la procfs.c.
9741 (read_mapping): New function, abstract and re-use code.
9742 (linux_find_memory_regions): Use new func read_mapping.
9743 (linux_info_proc_cmd): New function, implement "info proc".
9744 (_initialize_linux_proc): Add new command "info proc".
9745
e4f9b4d5
MS
97462002-01-15 Michael Snyder <msnyder@redhat.com>
9747
9748 * symfile.c (generic_load): Use bfd_map_over_sections method
9749 instead of manipulating bfd structure members directly.
9750 (add_section_size_callback): New function, bfd sections callback
9751 used by generic_load.
9752 (load_sections_callback): New function, bfd sections callback
9753 used by generic_load.
9754
08cf96df
EZ
97552002-01-15 Elena Zannoni <ezannoni@redhat.com>
9756
abf22e64 9757 [Based on work by Jim Blandy]
08cf96df
EZ
9758 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9759 (builtin_type_vec128): Export.
9760 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9761 types.
9762 (builtin_type_vec128): New builtin type for 128 bit vector
9763 registers.
9764 (build_gdbtypes): Initialize builtin_type_v16qi and
9765 builtin_type_v8hi. Create the vec128 register builtin type
9766 structure.
9767 (build_builtin_type_vec128): New function.
abf22e64 9768 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9769 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9770 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9771 AltiVec register to new builtin type.
9772
d7242108
DJ
97732001-01-15 Daniel Jacobowitz <drow@mvista.com>
9774
9775 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9776 to make_cv_type.
9777
4ee3352d
AC
97782002-01-14 Andrew Cagney <ac131313@redhat.com>
9779
9780 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9781 CLEAN_UP_REGISTER_VALUE.
9782 * regcache.c (supply_register): Update only call.
9783
f015b2e7
AC
97842002-01-14 Andrew Cagney <ac131313@redhat.com>
9785
9786 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9787 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9788 a29k-*-vxworks* targets as obsolete.
9789
356ae49d
MS
97902002-01-14 Michael Snyder <msnyder@redhat.com>
9791
9792 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9793 until we can resolve portability issues.
9794 * gregset.h: Remove references to fpxregs.
9795 * gcore.c (gcore_command): Initialize note_sec to NULL.
9796
ade8f45e
AC
97972002-01-13 Andrew Cagney <ac131313@redhat.com>
9798
9799 * signals.c (target_signal_to_name): Rewrite. Only use
9800 signals[].name when in bounds and non-NULL.
abf22e64 9801
89c49e7a
AC
98022002-01-13 Andrew Cagney <ac131313@redhat.com>
9803
9804 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9805 * signals.c (target_signal_to_name): Verify that SIG is within the
9806 bounds of the signals array.
9807
4daa9f9f
AC
98082002-01-13 Andrew Cagney <ac131313@redhat.com>
9809
9810 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9811
ba4bbdcb
KS
98122002-01-13 Keith Seitz <keiths@redhat.com>
9813
9814 * stack.c (print_frame_info_base): Print the frame's pc
9815 only if when print_frame_info_listing_hook is not defined.
9816
575bbeb6
KS
98172002-01-13 Keith Seitz <keiths@redhat.com>
9818
9819 * varobj.c (varobj_set_value): Make sure that there were no
9820 errors evaluating the object before attempting to set its
9821 value.
9822 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9823 so this offset adjustment is no longer necessary.
9824 (create_child): Don't set the error flag if the child is
9825 a CPLUS_FAKE_CHILD.
9826 (value_of_child): If value_fetch_lazy fails, return NULL
9827 so that callers will be notified that an error occurred.
9828 (c_value_of_variable): Delay check of variable's validity
9829 until later. We actually want all structs and unions to have
9830 the value "{...}".
9831 Do not return "???" for variables which could not be evaluated.
9832 This error condition must be returned to the caller so that it
9833 can get the error condition from gdb.
9834 (cplus_name_of_child): Adjust index for vptr before figuring
9835 out the name of the child.
9836 (cplus_value_of_child): If a child's (real) parent is not valid,
9837 don't even bother trying to give a value for it. Just return
9838 an error. Change all instances in this function.
9839 (cplus_type_of_child): If our parent is one of the "fake"
9840 parents, we need to get at the type of the real parent, and
9841 derive the child's true type using this information.
9842
b76898ab
AC
98432002-01-13 Andrew Cagney <ac131313@redhat.com>
9844
9845 From 2002-01-09 John Marshall <johnm@falch.net>:
9846 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9847 sources.redhat.com, and tweak some related URLs which had
9848 suffered from linkrot.
9849
b6649e88
AC
98502002-01-13 Andrew Cagney <ac131313@redhat.com>
9851
9852 From Jeff law:
9853 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9854 structures passed in registers.
9855
82cc5033
EZ
98562002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9857
9858 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9859 white space which prevented compilation. Reported by DSK
9860 <dsk@student.unsw.edu.au>.
9861
ba5f2f8a
MS
98622002-01-11 Michael Snyder <msnyder@redhat.com>
9863
fbd35540
MS
9864 * symfile.c (build_section_addr_info_from_section_tab):
9865 Use bfd access method instead of manipulating bfd directly.
9866 (syms_from_objfile): Ditto.
9867 (simple_overlay_update_1): Ditto.
9868 (simple_overlay_update): Ditto.
9869 (generic_load): Ditto.
9870 (overlay_unmapped_address): FIXME comment, bfd access methods.
9871 (sections_overlap): FIXME comment, bfd access methods.
9872 (pc_in_mapped_range): FIXME comment, bfd access methods.
9873 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9874 (section_is_mapped): FIXME comment, bfd access methods.
9875 (section_is_overlay): FIXME comment, bfd access methods.
9876
ba5f2f8a
MS
9877 * symfile.c (generic_load): Whitespace and long line cleanups.
9878 Remove duplicate variable, change several local variables to
9879 more appropriate data types.
9880 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9881
17df2af6
AC
98822002-01-12 Andrew Cagney <ac131313@redhat.com>
9883
9884 From Peter Schauer:
9885 * language.c (longest_local_hex_string_custom): Use phex_nz to
9886 convert NUM to a hex string.
9887
ec920329
EZ
98882002-01-12 Elena Zannoni <ezannoni@redhat.com>
9889
9890 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9891 the function.
538a76d6 9892 Update Copyright year.
ec920329 9893
3abd2e01
AC
98942002-01-12 Andrew Cagney <ac131313@redhat.com>
9895
9896 * language.c (longest_raw_hex_string): Delete unused function.
9897
b21b22e0
PS
98982002-01-11 Petr Sorfa <petrs@caldera.com>
9899
9900 * MAINTAINERS (write-after-approval): Add myself.
9901 * dwarf2read.c (read_tag_string_type): Handling of
9902 DW_AT_byte_size.
9903 (read_tag_string_type): FORTRAN fix to prevent propagation of
9904 first string size.
9905 (set_cu_language): Handling of DW_LANG_Fortran95
9906
747fe712
RE
99072002-01-11 Richard Earnshaw <rearnsha@arm.com>
9908
9909 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9910 GETPID(inferior_ptid).
9911 (store_inferior_registers): Likewise.
9912
f1bea926
JM
99132002-01-10 Jason Merrill <jason@redhat.com>
9914
9915 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9916 Fix DW_OP_minus.
9917
ae940673
AC
99182002-01-10 Andrew Cagney <ac131313@redhat.com>
9919
9920 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9921 and bfd/elf32-sh-nbsd.c.
9922
00546b04
MS
99232002-01-10 Michael Snyder <msnyder@redhat.com>
9924
352ed7b4
MS
9925 * NEWS: Mention --pid and corefile/proc-id behavior change.
9926
c18be923
MS
9927 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9928 * gcore.c: Include cli/cli-decode.h instead of command.h.
9929
00546b04
MS
9930 * main.c (captured_main): Add new command line option "--pid".
9931 If the second command line argument (following the symbol-file)
9932 begins with a digit, try to attach to it before trying to open
9933 it as a corefile.
9934 (print_gdb_help): Document the "--pid" argument.
9935
db60ec62
EZ
99362002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9937
9938 * completer.c (command_completer): New function.
9939
9940 * completer.h <command_completer>: Add prototype.
9941
9942 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9943 completer for the "help" command.
9944
39c22d1a
JM
99452002-01-09 Jason Merrill <jason@redhat.com>
9946
9947 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9948
c564377f
MS
99492002-01-09 Michael Snyder <msnyder@redhat.com>
9950
975aec09
MS
9951 * i386-linux-nat.c (fill_fpxregset): Make global.
9952 (store_fpxregset): Ditto.
9953
db4a10fa
MS
9954 * gregset.h (gdb_fpxregset_t): Define.
9955 (supply_fpxregset): Prototype.
9956 (fill_fpxregset): Prototype.
9957
c564377f
MS
9958 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9959
c3d45d70
RE
99602002-01-09 Richard Earnshaw <rearnsha@arm.com>
9961
9962 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9963 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9964 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9965
fcc87af1
AC
99662002-01-09 Andrew Cagney <ac131313@redhat.com>
9967
9968 * MAINTAINERS: Update target maintainer rules so that any
9969 Maintainer can approve a tested patch for a maintenance-only
9970 target.
9971
dd96c05b
RE
99722002-01-09 Richard Earnshaw <rearnsha@arm.com>
9973
d4297db9 9974 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 9975
d4297db9 9976 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
9977 IN_SIGTRAMP.
9978
145fdc6e
MS
99792002-01-08 Michael Snyder <msnyder@redhat.com>
9980
9981 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9982 real name of the executable, rather than the /proc name.
9983
be4d1333
MS
99842002-01-03 Michael Snyder <msnyder@redhat.com>
9985
9986 Implement a "generate-core-file" command in gdb, save target state.
9987 * gcore.c: New file. Implement new command 'generate-core-file'.
9988 Save a corefile image of the current state of the inferior.
9989 * linux-proc.c: Add linux-specific code for saving corefiles.
9990 * target.h (struct target_ops): Add new target vectors for saving
9991 corefiles; to_find_memory_regions and to_make_corefile_notes.
9992 (target_find_memory_regions): New macro.
9993 (target_make_corefile_notes): New macro.
9994 * target.c (update_current_target): Inherit new target methods.
9995 (dummy_find_memory_regions): New place-holder method.
9996 (dummy_make_corefile_notes): New place-holder method.
9997 (init_dummy_target): Initialize new dummy target vectors.
9998 * exec.c (exec_set_find_memory_regions): New function.
9999 Allow the exec_ops vector for memory regions to be taken over.
10000 (exec_make_note_section): New function, target vector method.
10001 * defs.h (exec_set_find_memory_regions): Export prototype.
10002 * procfs.c (proc_find_memory_regions): New function, corefile method.
10003 (procfs_make_note_section): New function, corefile method.
10004 (init_procfs_ops): Set new target vector pointers.
10005 (find_memory_regions_callback): New function.
10006 (procfs_do_thread_registers): New function.
10007 (procfs_corefile_thread_callback): New function.
10008 * sol-thread.c (sol_find_memory_regions): New function.
10009 (sol_make_note_section): New function.
10010 (init_sol_thread_ops): Initialize new target vectors.
10011 * inftarg.c (inftarg_set_find_memory_regions): New function.
10012 Allow to_find_memory_regions vector to be taken over.
10013 (inftarg_set_make_corefile_notes): New function.
10014 Allow to_make_corefile_notes vector to be taken over.
10015 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10016 interface layer if not target_has_execution (may be a corefile).
10017 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10018 * config/sparc/sun4sol2.mh: Ditto.
10019 * config/alpha/alpha-linux.mh: Ditto.
10020 * config/arm/linux.mh: Ditto.
10021 * config/i386/x86-64linux.mh: Ditto.
10022 * config/ia64/linux.mh: Ditto.
10023 * config/m68k/linux.mh: Ditto.
10024 * config/mips/linux.mh: Ditto.
10025 * config/powerpc/linux.mh: Ditto.
10026 * config/sparc/linux.mh: Ditto.
10027
c6b92abd
MS
100282002-01-07 Michael Snyder <msnyder@redhat.com>
10029
10030 * arm-linux-nat.c: Remove references to regcache.c internal data
10031 (registers[] and register_valid[]).
10032
4b09dc8c
MS
100332002-01-07 Michael Snyder <msnyder@redhat.com>
10034
abf22e64
AJ
10035 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10036 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10037 symbol file and shlibs.
10038 * Makefile.in: Add rule for linux-proc.o.
10039 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10040 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10041 * config/arm/linux.mh: Ditto.
10042 * config/i386/linux.mh: Ditto.
10043 * config/i386/x86-64linux.mh: Ditto.
10044 * config/ia64/linux.mh: Ditto.
10045 * config/m68k/linux.mh: Ditto.
10046 * config/mips/linux.mh: Ditto.
10047 * config/powerpc/linux.mh: Ditto.
10048 * config/sparc/linux.mh: Ditto.
10049
c25b74ac
PM
100502002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10051
10052 * win32-nat.c: Add i386-tdep.h dependency.
10053
94cd915f
MS
100542002-01-07 Michael Snyder <msnyder@redhat.com>
10055
c7cccb76
MS
10056 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10057 instead of bfd_get_arch_size. Don't bail out just because
10058 there's no exec_bfd.
abf22e64 10059
34c0bd93
MS
10060 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10061 * p-valprint.c (pascal_object_print_value): Ditto.
10062 * somread.c (som_symtab_read): Ditto.
10063 * symfile.c (simple_free_overlay_region_table): Ditto.
10064 * valops.c (value_assign): Ditto.
10065
21c1c920
MS
10066 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10067 use tilde_expand and strerror for opening save-tracepoints file.
10068
5bbd998e
MS
10069 * thread-db.c (thread_db_new_objfile): Indendation fix.
10070
94cd915f
MS
10071 * infptrace.c (GDB_MAX_ALLOCA): New define.
10072 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10073 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10074 can be overridden with whatever value is appropriate to the host).
10075 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10076 alloca to allocate potentially large buffer.
10077 * rs6000-nat.c (child_xfer_memory): Ditto.
10078 * symm-nat.c (child_xfer_memory): Ditto.
10079 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10080
494e8a93
JSC
100812002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10082
10083 From Nick Clifton <nickc@redhat.com>
10084 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10085
d0e1d48e
MS
100862002-01-07 Michael Snyder <msnyder@redhat.com>
10087
abf22e64 10088 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10089 Don't use exec_bfd if it's NULL.
10090
290b2c7a
MK
100912002-01-06 Mark Kettenis <kettenis@gnu.org>
10092
abf22e64 10093 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10094
aef21287
AC
100952002-01-06 Andrew Cagney <ac131313@redhat.com>
10096
10097 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10098 * gnu-nat.c: Ditto.
10099
30efa627
AC
101002002-01-06 Andrew Cagney <ac131313@redhat.com>
10101
10102 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10103 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10104 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10105 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10106 z8k-coff have not been multi-arched. Update z8k-coff build
10107 status.
10108
9b4ff276
AC
101092002-01-06 Andrew Cagney <ac131313@redhat.com>
10110
10111 * MAINTAINERS: Mark a29k target as obsolete.
10112 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10113 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10114 comments.
10115 * NEWS: Note that a29k targets are obsolete.
10116 * a29k-tdep.c: Mark as obsolete.
10117 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10118 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10119 a29k-*-vxworks* targets as obsolete.
10120 * remote-adapt.c: Obsolete.
10121 * remote-eb.c: Obsolete.
10122 * remote-mm.c: Obsolete.
10123 * remote-udi.c: Obsolete.
10124 * config/a29k/a29k-udi.mt: Obsolete.
10125 * config/a29k/a29k.mt: Obsolete.
10126 * config/a29k/tm-a29k.h: Obsolete.
10127 * config/a29k/tm-vx29k.h: Obsolete.
10128 * config/a29k/vx29k.mt: Obsolete.
10129
a9011d31
AC
101302002-01-05 Andrew Cagney <ac131313@redhat.com>
10131
10132 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10133 with BFD_ENDIAN_BIG.
10134
9299404e
AC
101352002-01-05 Andrew Cagney <ac131313@redhat.com>
10136
10137 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10138 * configure, config.in: Re-generate.
10139 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10140 * defs.h: Do not include <endian.h>.
10141
7e89e357
JT
101422002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10143
10144 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10145 * config.in: Regenerate.
10146 * configure.in: Update copyright years.
10147 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10148 * configure: Regenerate.
10149 * i386bsd-nat.c: Update copyright years.
10150 (fill_gregset): Use regcache_collect.
10151 (fetch_inferior_registers): Only fetch integer registers
10152 if requested to do so. Add support for XMM registers
10153 using PT_GETXMMREGS.
10154 (store_inferior_registers): Only store integer registers
10155 if requested to do so. Add support for XMM registers
10156 using PT_SETXMMREGS.
10157 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10158 (store_inferior_registers): Remove.
10159 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10160 (fetch_elfcore_registers): New function.
10161 (i386nbsd_elfcore_fns): New.
10162 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10163 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10164 i386bsd-nat.o.
10165 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10166 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10167 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10168 * config/i386/tm-nbsd.h: Update copyright years.
10169 (HAVE_SSE_REGS): Define.
10170 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10171 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10172 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10173 (SIGCONTEXT_PC_OFFSET): Remove.
10174 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10175
a752853e
AC
101762002-01-05 Andrew Cagney <ac131313@redhat.com>
10177
10178 * configure.tgt: Remove powerpc-*-macos* target.
10179 * config/m68k/xm-mpw.h: Delete file.
10180 * config/xm-mpw.h: Delete file.
10181 * ser-mac.c: Delete file.
10182 * mpw-make.sed: Delete file.
10183 * mpw-config.in: Delete file.
10184 * mac-xdep.c: Delete file.
10185 * mac-gdb.r: Delete file.
10186 * mac-defs.h: Delete file.
10187 * mac-nat.c: Delete file.
10188 * config/powerpc/macos.mh: Delete file.
10189 * config/powerpc/macos.mt: Delete file.
10190 * config/powerpc/nm-macos.h: Delete file.
10191 * config/powerpc/tm-macos.h: Delete file.
10192 * source.c (openp, open_source_file): Remove obsolete code.
10193 * top.c (gdb_readline): Ditto.
10194 * utils.c (query): Ditto.
10195 * event-top.c (display_gdb_prompt): Ditto.
10196 * Makefile.in (ser-mac.o): Delete obsolete target.
10197 * NEWS: Update.
10198
d7449b42
AC
101992002-01-04 Andrew Cagney <ac131313@redhat.com>
10200
10201 * defs.h (BIG_ENDIAN): Delete macro definition.
10202 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10203 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10204 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10205 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10206 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10207 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10208 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10209 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10210 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10211 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10212 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10213 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10214 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10215 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10216 * gdbarch.c: Re-generate.
10217
356374e8
DJ
102182002-01-04 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10221 for core files.
10222
a2b8f8f8
JT
102232002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10224
10225 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10226
12466af9
AC
102272002-01-04 Andrew Cagney <ac131313@redhat.com>
10228
10229 * value.h (value_ptr): Delete typedef.
10230
3549ab40
JT
102312002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10232
10233 * i386nbsd-nat.c: Update copyright years.
10234 Include i386-tdep.h.
10235
fedbd091
EZ
102362002-01-04 Elena Zannoni <ezannoni@redhat.com>
10237
10238 * stabsread.c: Update copyright years.
10239
10240 From Debashis Mahata <debashis.mahata@wipro.com>:
10241 (read_struct_fields): Deal with Sun C compiler erroneous stab
10242 output for structs and unions.
fec8b34f 10243 Fix PR gdb/269.
fedbd091 10244
eb43544b
DJ
102452002-01-04 Daniel Jacobowitz <drow@mvista.com>
10246
10247 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10248 prototype.
10249
1514d34e
DJ
102502002-01-04 Daniel Jacobowitz <drow@mvista.com>
10251
10252 * cp-abi.c: Fix whitespace.
10253 (baseclass_offset): New wrapper function.
10254 * cp-abi.h (baseclass_offset): Add prototype.
10255 (struct cp_abi_ops): Add baseclass_offset pointer.
10256
10257 * valops.c (vb_match): Move to...
10258 * gnu-v2-abi.c (vb_match): here.
10259 * valops.c (baseclass_offset): Move to...
10260 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10261
10262 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10263
10264 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10265 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10266 * hpacc-abi.c (init_hpacc_ops): Likewise.
10267
7f8c9282
DJ
102682002-01-04 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * valops.c (find_overload_match): Accept obj as a
10271 reference parameter. Update it before returning.
10272 * value.h (find_overload_match): Update prototype.
10273 * eval.c (evaluate_subexp_standard): Pass object to
10274 find_overload_match by reference.
10275
f23631e4
AC
102762002-01-03 Andrew Cagney <ac131313@redhat.com>
10277
10278 * valarith.c: Replace value_ptr with struct value pointer. Remove
10279 register attribute from value declarations.
10280 * valops.c: Ditto.
10281 * value.h: Ditto.
10282 * scm-lang.c (scm_lookup_name): Ditto.
10283
79e10fab 102842002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10285
79e10fab
AC
10286 Abstract the functionality of iterating over mapped memory
10287 regions into a general purpose iterator function.
abf22e64 10288 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10289 iterator for memory sections.
10290 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10291 (solib_mappings_callback): New function, callback for above.
10292 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10293 (info_mappings_callback): New function, callback for above.
10294
10295 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10296
c5ad026a
MK
102972002-01-01 Mark Kettenis <kettenis@gnu.org>
10298
d2a7c97a
MK
10299 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10300 * i386-tdep.c: Include "elf-bfd.h".
10301 (process_note_abi_tag_sections): New function.
10302 (i386_gdbarch_init): Add code to recognize various OS/ABI
10303 combinations.
10304
c5ad026a
MK
10305 * maint.c (_initialize_maint_cmds): Add missing \ in
10306 string-literal.
10307
a1a5b71e 10308For older changes see ChangeLog-2001
c906108c
SS
10309\f
10310Local Variables:
10311mode: change-log
10312left-margin: 8
10313fill-column: 74
10314version-control: never
10315End:
This page took 0.741905 seconds and 4 git commands to generate.