* remote.c (remote_open_1): Add async_p.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
92d1e331
DJ
12002-08-18 Daniel Jacobowitz <drow@mvista.com>
2
3 * remote.c (remote_open_1): Add async_p.
4 (remote_async_open_1): Delete.
5 (open_remote_target): Delete.
6 (remote_open, extended_remote_open): Update calls to remote_open_1.
7 (remote_async_open, extended_remote_async_open): Call
8 remote_open_1 instead of remote_async_open_1.
9
247055de
MK
102002-08-19 Mark Kettenis <kettenis@gnu.org>
11
12 * blockframe.c: Fix a few coding standard violations.
13
641eda39
MK
142002-08-19 Mark Kettenis <kettenis@gnu.org>
15
0b717710
MK
16 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
17 here from ...
18 * config/i386/tm-i386sco5.h: ... here. File removed.
19 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
20
26d28e12 21 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
22 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
23 (TM_FILE): Set to tm-i386.h.
24 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
25 * config/i386/tm-i386v.h: Remove file.
26 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
27 instead of "i386/tm-i386v.h".
28 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
29 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
30 "i386/tm-i386v.h".
31 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
32 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
33 "i386/tm-i386.h".
34
d4e0bab4
MK
352002-08-18 Mark Kettenis <kettenis@gnu.org>
36
37 * config/i386/nm-i386v.h: Add protection against
38 multiple-inclusion.
39 (i386_register_u_addr): Remove prototype.
40 (register_u_addr): New prototype.
41 (REGISTER_U_ADDR): Redefine accordingly.
42 * i386v-nat.c: Improve several comments.
43 (i386_register_u_addr): Change signature and rename to
44 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
45 ubase variable.
46
46cac009
AC
472002-08-18 Andrew Cagney <ac131313@redhat.com>
48
49 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
50 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
51 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
52 deprecated_extract_return_value.
53 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
54 rename mips_o32o64_push_arguments.
55 (mips_gdbarch_init): Update.
56 (mips_extract_return_value): Delete.
57 (mips_o32_extract_return_value): Clone mips_extract_return_value.
58 (mips_o64_extract_return_value): Clone mips_extract_return_value.
59 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
60 (mips_n32n64_extract_return_value): Clone
61 mips_extract_return_value.
62 (mips_store_return_value): Delete.
63 (mips_o32_store_return_value): Clone mips_store_return_value.
64 (mips_o64_store_return_value): Clone mips_store_return_value.
65 (mips_eabi_store_return_value): Clone mips_store_return_value.
66 (mips_n32n64_store_return_value): Clone mips_store_return_value.
67
d2e4a39e
AS
682002-08-18 Aidan Skinner <aidan@velvet.net>
69
0c30c098
AS
70 * ada-lang.c: Use gdb_string.h instead of <string.h>.
71 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
72
732002-08-18 Aidan Skinner <aidan@velvet.net>
74
75 * ada-lang.c: Run through gdb_indent.sh.
76 * ada-lang.h: Run through gdb_indent.sh.
77 * ada-tasks.c: Run through gdb_indent.sh.
78 * ada-typeprint.c: Run through gdb_indent.sh.
79 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 80
01fc4e33
AC
812002-08-18 Andrew Cagney <ac131313@redhat.com>
82
83 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
84 ABI.
85
d8ee244c
MK
862002-08-18 Mark Kettenis <kettenis@gnu.org>
87
c38d8261
MK
88 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
89
222db64c
MK
90 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
91 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
92
c2848c82
MK
93 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
94 write_register_gen instead of write_register_bytes.
95
d8ee244c
MK
96 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
97 i[3456]-*-osf1mk* configurations have been made obsolete.
98 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
99 i[3456]86-*-osf1mk* hosts obsolete.
100 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
101 targets obsolete.
102 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
103 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
104 config/i386/i386m3.mt, config/i386/nm-m3.h,
105 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
106 config/i386/i386mk.mh, config/i386/i386mk.mt,
107 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
108 obsolete.
109 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
110 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
111 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
112
61d8d407
AC
1132002-08-18 Andrew Cagney <ac131313@redhat.com>
114
115 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
116 (hppa_value_returned_from_stack): Declare.
117 (hppa_extract_return_value): Declare.
118 * config/pa/hppa.mt: New file.
119 * configure.tgt: Recognize hppa*-*-*.
120 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
121
0c52bd59
MK
1222002-08-18 Mark Kettenis <kettenis@gnu.org>
123
124 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
125 comment.
126
b5686e99
MK
1272002-08-17 Mark Kettenis <kettenis@gnu.org>
128
129 * top.c (gdb_rl_operate_and_get_next): Make sure
130 operate-and-get-next functions correctly even when the history
131 list is completely filled.
132
c1bab85b
AC
1332002-08-18 Andrew Cagney <ac131313@redhat.com>
134
135 * MAINTAINERS (Target Instruction Set Architectures): Rename
136 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
137 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
138 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
139 already listed under Host/Native.
140
141 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
142 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
143 mips*-*-*.
144
32089c7c
AC
1452002-08-17 Andrew Cagney <ac131313@redhat.com>
146
147 * config/ia64/ia64.mt: New file.
148 * config/alpha/alpha.mt: New file.
149 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
150 ia64-linux-gnu. Mention that ia64-elf is broken.
151 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
152
b4671f85
MK
1532002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
154
155 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
156 generic_func_frame_valid instead of func_frame_valid.
157
c8edd8b4
JB
1582002-08-16 Joel Brobecker <brobecker@gnat.com>
159
160 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
161 procfs appears to be broken when debugging on multi-processor
162 machines. So enable software single stepping in order to avoid
163 using the procfs interface to do next/step operations, using
164 internal breakpoints instead.
165
166 * infrun.c (handle_inferior_event): Readjust the stop_pc by
167 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
168 make this pc address equal to the value it would have if the
169 system stepping capability was used. Also set a new flag used
170 to ensure that we don't readjust the PC one more time later.
171
172 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
173 address by DECR_PC_AFTER_BREAK when software single step is
174 in use for this architecture, as this has already been taken
175 care of in handle_inferior_event().
176
238617f6
JB
1772002-08-16 Joel Brobecker <brobecker@gnat.com>
178
179 * infrun.c (handle_inferior_event): Minor reformatting, to make
180 a rather long condition expression easier to read.
181
541a7aac
AC
1822002-08-16 Andrew Cagney <ac131313@redhat.com>
183
184 * Makefile.in (gdbtk.o): Move to end of file.
185 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
186 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
187 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
188 (gdbtk-wrapper.o, gdbres.o): Ditto.
189
f92d4a7b
AC
1902002-08-16 Andrew Cagney <ac131313@redhat.com>
191
192 * Makefile.in (copying.o): Separate out compile rule.
193 (hpux-thread.o, procfs.o, signals.o): Ditto.
194 (v850ice.o, z8k-tdep.o): Ditto.
195 (tui-file.o): Move to TUI section.
196 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
197 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
198
1cce71eb
JB
1992002-08-16 Joel Brobecker <brobecker@gnat.com>
200
201 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
202 skip_trampoline_code, for better namespace-proofing.
203
204 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
205
0851f23d
JB
2062002-08-16 Joel Brobecker <brobecker@gnat.com>
207
208 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
209
f8d40ec8
JB
2102002-08-16 Joel Brobecker <brobecker@gnat.com>
211
212 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
213 signal, check whether we hit a breakpoint before checking for a
214 single step breakpoint. Otherwise, GDB fails to notice that a
215 breakpoint has been hit when stepping onto a breakpoint.
216
63d022e0
KS
2172002-08-16 Keith Seitz <keiths@redhat.com>
218
219 * gdb-events.sh (clear_gdb_event_hooks): New function.
220 * gdb-events.c: Regenerate.
221 * gdb-events.h: Regenerate.
222
6e31adb3
AC
2232002-08-16 Andrew Cagney <ac131313@redhat.com>
224
225 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
226 not_a_sw_breakpoint.
227 * breakpoint.h (bpstat_stop_status): Add parameter names.
228
c8189ed1
GS
2292002-08-16 Grace Sainsbury <graces@redhat.com>
230
231 * remote.c (remote_insert_hw_breakpoint)
232 (remote_remove_hw_breakpoint): Fix calculation of length field
233 for Z-packet.
234
d05285fa
MS
2352002-08-15 Michael Snyder <msnyder@redhat.com>
236
466d7106
MS
237 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
238 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
239 (supply_fpregset): Ditto.
240
d05285fa
MS
241 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
242 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
243 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 244 (TARGET_READ_SP): Delete.
bf1f5b4c 245 (DO_REGISTERS_INFO): Delete.
102182a9
MS
246 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
247 Delete.
248 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
249 from macros to functions.
bf1f5b4c 250
d05285fa
MS
251 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
252 (mips_register_convertible, mips_register_convert_to_virtual,
253 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
254 (mips_read_sp): New function.
255 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
256 (mips_do_registers_info): Make static.
257 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
258 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
259 (mips_register_convert_from_type, mips_register_convert_to_type):
260 New functions.
261 (mips_gdbarch_init): Set up function_start_offset,
262 register_virtual_size, pc_in_sigtramp.
d05285fa 263
e76f1f2e
AC
2642002-08-15 Andrew Cagney <ac131313@redhat.com>
265
266 * infcmd.c (vector_info): New function.
267 (_initialize_infcmd): Add command "info vector".
268 (print_vector_info): New function.
269
270 * gdbarch.sh (PRINT_VECTOR_INFO): New method
271 * gdbarch.h, gdbarch.c: Regenerate.
272
4782dc19
AC
2732002-08-15 Andrew Cagney <ac131313@redhat.com>
274
275 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
276 ``print_all''. Only print vector registers when ``print_all''.
277
23e3a7ac
AC
2782002-08-15 Andrew Cagney <ac131313@redhat.com>
279
8e186fd6
AC
280 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
281 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
282
23e3a7ac
AC
283 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
284 Add `args' parameter.
285 * gdbarch.h, gdbarch.c: Regenerate.
286
287 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
288
289 * infcmd.c (float_info): Call print_float_info.
290 (print_float_info): New function. By default, print the
291 floating-point registers.
292
293 * arch-utils.h (default_print_float_info): Delete declaration.
294 * arch-utils.c (default_print_float_info): Delete function.
295
e0ca2bb9
MK
2962002-08-16 Mark Kettenis <kettenis@gnu.org>
297
3f733acc
MK
298 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
299 out define.
300
7d8d2918
MK
301 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
302 FRAME.
303
1c7cc583
MK
304 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
305 * configure.host: Make i[3456]86-*-aix host obsolete.
306 * configure.tgt: Make i[3456]86-*-aix target obsolete.
307 * config/i386/i386aix.mh, config/i386/i386aix.mt,
308 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
309 config/i386/xm-i386aix.h: Make files obsolete.
310 * i386aix-nat.c: Make file obsolete.
311 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
312 (i386aix-nat.o): Make target obsolete.
313
e0ca2bb9
MK
314 * config/i386/nm-gnu.h: Removed.
315 * config/i386/nm-i386gnu.h: New file.
316 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
317 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
318 Moved here from ...
319 * config/i386/tm-i386gnu.h: ... here. Removed.
320 * config/i386/xm-i386gnu.h: Removed.
321 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
322 (NAT_FILE): Set to nm-i386gnu.h.
323 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
324 * i386-tdep.c: New file.
325 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
326 (i386gnu-tdep.o): Specify dependencies.
327
16057ec7 3282002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 329
6b99ee2e
MK
330 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
331 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
332 Adjust a few comments to reflect reality a bit closer.
333 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
334 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
335 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
336 target_insert_watchpoint, target_remove_watchpoint):
337 Move defines to ...
338 * config/i386/nm-i386sco5.h: ... here.
339 (kernel_u_size): Add prototype. Improve a few comments and add
340 protection against multiple inclusion.
341
d9a6f65c
MK
342 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
343 out define.
344
047eff6a
MK
345 * uw-thread.c (SP_ARG0): Define if not already defined.
346 * config/i386/tm-i386.h (SO_ARG0): Remove define.
347
dcdb1290
MK
348 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
349
5d2d0b2a
MK
350 * config/i386/tm-i386.h: Don't include "regcache.h".
351
61113f8b
MK
352 * i387-tdep.h (i387_print_float_info): New prototype.
353 * i387-tdep.c (print_i387_value, print_i387_ext,
354 print_i387_status_word, print_i387_control_word): Add `struct
355 ui_file *' argument and use it for output.
356 (i387_print_float_info): Renamed from i387_float_info. Add
357 `struct gdbarch *' and `struct ui_file *' arguments and use the
358 latter for output.
359 * i386-tdep.c: Include "i387-tdep.h".
360 (i386_gdbarch_init): Set print_float_info.
361 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
362 (FLOAT_INFO): Remove define.
363
46e0f506
MS
3642002-08-13 Michael Snyder <msnyder@redhat.com>
365
366 * mips-tdep.c (mips_push_arguments): Rename to
367 mips_eabi_push_arguments, and tune for EABI.
368 (MIPS_REGS_HAVE_HOME_P): Delete.
369 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
370 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
371 Delete references to mips_regs_have_home_p.
372
409268de
KS
3732002-08-14 Keith Seitz <keiths@redhat.com>
374
375 * Makefile.in (install-gdbtk): Create insight plugin directory.
376 Install plugins.tcl file.
377
ffc6a242
KS
3782002-08-14 Keith Seitz <keiths@redhat.com>
379
380 * configure.in: Move SUBDIRS to near top of the file so that
381 --enable options may add things to it.
382 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
383 * configure: Regenerate.
384
ebafbe83
MS
3852002-08-13 Michael Snyder <msnyder@redhat.com>
386
387 * mips-tdep.c (mips_o32o64_push_arguments): New function,
388 cloned from mips_push_arguments, tuned for o32/o64 ABI.
389 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
390
32f6f25d
AC
3912002-08-13 Andrew Cagney <ac131313@redhat.com>
392
393 * vax-tdep.c (vax_get_saved_register): Delete function.
394 (vax_gdbarch_init): Update.
395 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
396 (ns32k_gdbarch_init): Update.
397 * alpha-tdep.c (alpha_get_saved_register): Delete function.
398 (alpha_gdbarch_init): Update.
399
53826de9
AC
4002002-08-13 Andrew Cagney <cagney@redhat.com>
401
402 * regcache.c (init_regcache_descr): Overallocate the
403 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
404 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
405 nr_raw_registers.
406 (set_register_cached): Add range checking assertions. Use
407 current_regcache.
408
16057ec7 4092002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
410
411 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
412 numbers for MMX registers.
413
7b4c2dce
AC
4142002-08-13 Andrew Cagney <cagney@redhat.com>
415
416 * i386-tdep.c (i386_gdbarch_init): Use
417 generic_unwind_get_saved_register.
418
1e03ad20
KB
4192002-08-13 Kevin Buettner <kevinb@redhat.com>
420
421 * procfs.c (procfs_can_use_hw_breakpoint): New function.
422 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
423 target vector.
424 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
425 Delete. Add comment regarding this now-deleted target method.
426
548bcbec
SC
4272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
428
429 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
430 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
431 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
432 real PC and the page number (if it's within the memory bank window).
433 (m68hc11_pseudo_register_write): Likewise when saving.
434 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
435 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
436 (m68hc11_register_raw_size): And use 32-bit for it.
437 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
438 16K memory bank is used by the prog; also use the virtual pc.
439
7df11f59
SC
4402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
441
442 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
443 (m68hc11_gdbarch_init): Install it in gdbarch.
444 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
445 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
446 (MSYMBOL_SIZE): New for documentation.
447 (insn_return_kind): Enum to specify how a function returns.
448 (frame_extra_info): Cleanup and record the return mode.
449 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
450 register in address computation.
451 (m68hc11_get_return_insn): New to obtain the return instruction used
452 by the function.
453 (m68hc11_frame_init_saved_regs): Take into account the return
454 instruction used by the function for far and interrupt functions.
455 (m68hc11_init_extra_frame_info): Take into account page register.
456 (m68hc11_frame_args_address): Adjust according to the return mode.
457 (show_regs): Print page register only when it's used.
458
5706502a
SC
4592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
460
461 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
462 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
463 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
464 registers.
465 (m68hc11_register_raw_size): Likewise.
466
28fc6740
AC
4672002-08-13 Andrew Cagney <cagney@redhat.com>
468
469 * i386-tdep.c (i386_register_name): Handle mmx registers.
470 (mmx_regnum_p): New function.
471 (i386_mmx_names): New array.
472 (mmx_num_regs): New variable.
473 (i386_pseudo_register_read): New function.
474 (i386_pseudo_register_write): New function.
475 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
476
477 * regcache.c (regcache_raw_read_unsigned): New function.
478 (regcache_raw_read_signed): New function.
479 * regcache.h (regcache_raw_read_unsigned): Declare.
480 (regcache_raw_read_signed): Declare.
481
a378f419
AC
4822002-08-13 Andrew Cagney <cagney@redhat.com>
483
484 * regcache.c (regcache_raw_read_as_address): Delete function.
485 (regcache_cooked_read_signed): New function.
486 (regcache_cooked_read_unsigned): New function.
487 * regcache.h (regcache_cooked_read_signed): Declare.
488 (regcache_cooked_read_unsigned): Declare.
489 (regcache_raw_read_as_address): Delete declaration.
490
491 * blockframe.c (generic_read_register_dummy): Use
492 regcache_cooked_read_unsigned.
493 * i386-tdep.c (i386_extract_struct_value_address): Use
494 regcache_cooked_read_unsigned.
495
81967506
SC
4962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
497
498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
499 double sizes according to ELF ABI flags.
500 (gdbarch_tdep): Record elf_flags.
501
ffe1f3ee
SC
5022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
503
504 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
505 (m6812_prolog): They can appear in 68HC12 function prologue.
506 (m68hc11_frame_chain): Cleanup.
507
98216c5d
AC
5082002-08-12 Andrew Cagney <cagney@redhat.com>
509
510 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
511 declarations.
512 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
513 (i386_linux_register_raw_size): Delete function.
514 (i386_linux_init_abi): Update.
515 * i386-tdep.c (i386_register_raw_size): Delete function.
516 (i386_register_byte): Delete function.
517 (i386_gdbarch_init): Update.
518 (i386_register_size): Delete array.
519 (i386_register_offset): Delete array.
520
521 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
522 (REGISTER_RAW_SIZE): Delete macro.
523 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
524 (REGISTER_BYTE): Delete macro.
525
3b19021e
AS
5262002-08-11 Aidan Skinner <aidan@velvet.net>
527
528 * ada-lang.c (ada_lookup_partial_symbol)
529 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
530 prototype names so that grep ^func works properly.
531
532 * ada-lang.c (ada_array_element_type)
533 (ada_lookup_partial_symbol): Fix typos in parameter list.
534
535 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
536 Fix prototype names so that grep ^func works properly.
537
b063e7a2
AC
5382002-08-10 Andrew Cagney <cagney@redhat.com>
539 Elena Zannoni <ezannoni@redhat.com>
540 Martin M. Hunt <hunt@redhat.com>
541
542 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
543 (build_builtin_type_vec128i): Set the vector bit.
544 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
545 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
546 (build_builtin_type_vec64): New function.
547 (build_builtin_type_vec64i): New function.
548 (build_gdbtypes): Initialize builtin_type_vec64 and
549 builtin_type_vec64i.
550
a7e3c2ad
AC
5512002-08-09 Andrew Cagney <cagney@redhat.com>
552
553 * regcache.c (regcache_dump): Compare the register offset
554 with REGISTER_BYTE.
555 * arch-utils.c (generic_register_byte): New function.
556 * arch-utils.h (generic_register_byte): Declare.
557 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
558 * gdbarch.h, gdbarch.c: Regenerate.
559
af030b9a
AC
5602002-08-09 Andrew Cagney <cagney@redhat.com>
561
562 * regcache.c: Include "gdbcmd.h"
563 (_initialize_regcache): Add commands "maintenance print
564 registers", "maintenance print raw-registers" and "maintenance
565 print cooked-registers".
566 (enum regcache_dump_what): Define.
567 (dump_endian_bytes): New function.
568 (regcache_dump): New function.
569 (regcache_print): New function.
570 (maintenance_print_registers): New function.
571 (maintenance_print_raw_registers): New function.
572 (maintenance_print_cooked_registers): New function.
573 * Makefile.in (regcache.o): Update dependencies.
574
cb3d25d1
MS
5752002-08-09 Michael Snyder <msnyder@redhat.com>
576
577 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
578 (mips_push_arguments): Correct some comments. Use paddr_nz
579 for printing addresses in debug output. Replace static
580 allocation using MAX_REGISTER_RAW_SIZE with alloca.
581 (mips_n32n64_push_arguments): New function, cloned from
582 mips_push_arguments and tuned for the n32/n64 ABI.
583 (mips_push_register): Buffer needs dynamic allocation.
584 (mips_print_register): Ditto.
585 (do_gp_register_row): Ditto.
586 (mips_store_return_value): Ditto.
587 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
588
2163ab9d
DH
5892002-08-09 Don Howard <dhoward@redhat.com>
590
591 * memattr.c (mem_info_command): Print special case of upper bound
592 as max CORE_ADDR + 1.
593
b78bcb18
MS
5942002-08-08 Michael Snyder <msnyder@redhat.com>
595
596 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
597 returns structs by ref if they're too big to fit in two registers.
598
ffabd70d
KB
5992002-08-09 Kevin Buettner <kevinb@redhat.com>
600
601 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
602 saved regs value.
603 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
604 mips_find_saved_regs().
605 (mips_pop_frame): Likewise.
606
fbcdb4a3
KB
6072002-08-09 Kevin Buettner <kevinb@redhat.com>
608
609 * blockframe.c (frame_saved_regs_register_unwind): Revise
610 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
611 frames are in use.
612
3c3bea1c
GS
6132002-08-09 Grace Sainsbury <graces@redhat.com>
614
615 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
616 T-packets; the 'a' is not taken as a register number.
617 (remote_check_watch_resources, remote_stopped_by_watchpoint)
618 (remote_stopped_data_address): New functions; add to target
619 vector.
620 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
621 prototypes to match other implementations of this
622 function. replace integer argument with pointer -- the length
623 field in the Z-packet is the length of what is pointed to or 1 if
624 pointer is null. Add to target vector.
625 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
626 target vector.
627
628 From Mark Salter:
629 * remote.c (remote_wait): Add support to extract optional
630 watchpoint information from T-packet. Ignore unrecognized
631 optional info in T-packet.
632 (remote_async_wait): Ditto.
633
5d1d95de
CV
6342002-08-09 Corinna Vinschen <vinschen@redhat.com>
635
636 * cli/cli-dump.c: Change fopen modes to use binary open modes
637 as defined in include/fopen-bin.h throughout.
638
c86b5b38
MS
6392002-08-08 Michael Snyder <msnyder@redhat.com>
640
641 * mips-tdep.c: Minor whitespace and indentation clean-ups.
642
b30590dc
KB
6432002-08-08 Kevin Buettner <kevinb@redhat.com>
644
645 * doublest.c (store_floating): Avoid floatformat_from_doublest()
646 assertion failure by returning early after a warning.
647
498868ed
KB
6482002-08-08 Kevin Buettner <kevinb@redhat.com>
649
650 * mips-tdep.c (mips_find_saved_regs): Make static.
651 (mips_frame_init_saved_regs): New function.
652 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
653 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
654 (mips_find_saved_regs): Delete declaration.
655
b2dd6311
GS
6562002-08-08 Grace Sainsbury <graces@redhat.com>
657
3c3bea1c
GS
658 * remote.c (remote_wait, remote_async_wait): Change
659 thread_num from int to ULONGEST.
660 (unpack_varlen_hex): Change result parameter from
661 int * to ULONGEST *.
b2dd6311 662
ea47855f
AC
6632002-08-08 Andrew Cagney <ac131313@redhat.com>
664
665 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
666 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
667 powerpc*-*-*.
668 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
669
69db8bae
AC
6702002-08-08 Andrew Cagney <cagney@redhat.com>
671
672 * gcore.c (override_derive_stack_segment): Delete variable.
673 (preempt_derive_stack_segment): Delete function.
674 (derive_stack_segment): Delete function.
675 (default_derive_stack_segment): Renamed to derive_stack_segment.
676 (override_derive_heap_segment): Delete variable.
677 (preempt_derive_heap_segment): Delete function.
678 (derive_heap_segment): Delete function.
679 (default_derive_heap_segment): Rename to derive_heap_segment.
680
cb811fe7
MS
6812002-08-06 Michael Snyder <msnyder@redhat.com>
682
683 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
684 * mips-tdep.c (mips_EABI_use_struct_convention,
685 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
686 New functions. (mips_use_struct_convention): Delete.
687 (mips_gdbarch_init): set use_gdbarch_convention.
688
8b389c40
MS
6892002-08-06 Michael Snyder <msnyder@redhat.com>
690
691 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
692 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
693 mips_o32_reg_struct_has_addr): New functions.
694 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
695
5c27f28a
AC
6962002-08-07 Andrew Cagney <ac131313@redhat.com>
697
698 * regcache.c (pseudo_register): Delete function.
699 (fetch_register): Delete function.
700 (store_register): Delete function.
701 (regcache_raw_read, legacy_read_register_gen): Use
702 target_fetch_registers instead of fetch_register.
703 (legacy_write_register_gen, regcache_raw_write): Use
704 target_store_register instead of store_register.
705 (write_register_bytes): Ditto.
706
707 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
708 (STORE_PSEUDO_REGISTER): Delete.
709 * gdbarch.h, gdbarch.c: Regenerate.
710
5b331675
CV
7112002-08-06 Corinna Vinschen <vinschen@redhat.com>
712
713 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
714 write dump file binary.
715
6acdf5c7
MS
7162002-08-05 Michael Snyder <msnyder@redhat.com>
717
718 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
719 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
720 (mips_gdbarch_init): Set N32 target to be mips64.
721
b2f01c35
KB
7222002-08-06 Kevin Buettner <kevinb@redhat.com>
723
724 * frame.c (find_saved_register): Break out of loop once saved
725 register address is found. Don't mention sparc in loop comment
726 anymore.
727
63db5580
KB
7282002-08-06 Kevin Buettner <kevinb@redhat.com>
729
730 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
731 mips_default_saved_regsize to 8.
732
5e34e75e
AC
7332002-08-06 Andrew Cagney <ac131313@redhat.com>
734
735 * gcore.c: Do not include <sys/procfs.h>.
736 * Makefile.in (gcore.o): Update dependencies.
737
eb4c54a2
AC
7382002-08-06 Andrew Cagney <cagney@redhat.com>
739
740 * configure.tgt: Make arc-*-* obsolete.
741 * NEWS: Mention that arc-*-* has been identifed as obsolete.
742 * MAINTAINERS: Make arc-elf obsolete.
743 * arc-tdep.c: Make file obsolete.
744 * config/arc/arc.mt: Ditto.
745 * config/arc/tm-arc.h: Ditto.
746
ced15480
TR
7472002-08-05 Theodore A. Roth <troth@verinet.com>
748
c1bab85b 749 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 750
b4743822
AC
7512002-08-05 Andrew Cagney <ac131313@redhat.com>
752
753 * mcore-tdep.c (mcore_gdbarch_init): Use
754 generic_unwind_get_saved_register instead of
755 generic_get_saved_register.
756 * v850-tdep.c (v850_gdbarch_init): Ditto.
757 * frv-tdep.c (frv_gdbarch_init): Ditto.
758 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
759 * s390-tdep.c (s390_gdbarch_init): Ditto.
760 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
761 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
762 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
763
3956d554
JB
7642002-08-05 Joel Brobecker <brobecker@gnat.com>
765
766 * objfiles.h: Add missing #include "symfile.h"
767
768 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
769
8249c0d6
AC
7702002-08-04 Andrew Cagney <ac131313@redhat.com>
771
772 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
773 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
774 of FIELD_BITSIZE.
775
b9d14705
DJ
7762002-08-04 Daniel Jacobowitz <drow@mvista.com>
777
778 * NEWS: Cleanup and nitpick.
779
dd73b9bb
AC
7802002-08-03 Andrew Cagney <ac131313@redhat.com>
781
782 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
783
043a27f8
AC
7842002-08-03 Andrew Cagney <ac131313@redhat.com>
785
786 * Makefile.in (gdbtk-bp.o): Update dependencies.
787 (gdbtk-register.o): Ditto.
788 (gdbtk-varobj.o): Ditto.
789
46ce284d
AC
7902002-08-03 Andrew Cagney <cagney@redhat.com>
791
792 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
793 m68hc11_fetch_pseudo_register.
794 (m68hc11_pseudo_register_write): Replace
795 m68hc11_store_pseudo_register.
796 (m68hc11_gdbarch_init): Update.
797
b66d6d2e
AC
798Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
799
800 * gdbarch.sh: Include "gdb_string.h".
801 * gdbarch.c: Regenerate.
802
803 * regcache.c: Include "gdb_string.h".
804 * ax-general.c: Ditto.
805 * varobj.c: Ditto.
806 * std-regs.c: Ditto.
807 * fbsd-proc.c: Ditto.
808 * thread.c: Ditto.
809
810 * Makefile.in (regcache.o): Update dependencies.
811 (thread.o, gdbarch.o): Ditto.
812 (ax-general.o, gdbarch.o): Ditto.
813 (varobj.o, std-regs.o): Ditto.
814 (fbsd-proc.o): Specify dependencies.
815
29e1842b
AC
8162002-08-02 Andrew Cagney <cagney@redhat.com>
817
818 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
819 regnum.
820 (regcache_cooked_write): Ditto.
821
68365089
AC
8222002-08-02 Andrew Cagney <ac131313@redhat.com>
823
824 * regcache.c (regcache_cooked_read): New function.
825 (regcache_cooked_write): New function.
826 (read_register_gen): Rewrite using regcache_cooked_read.
827 (write_register_gen): Rewrite using regcache_cooked_write.
828
829 * regcache.h (regcache_cooked_read, regcache_cooked_write):
830 Declare.
831
d8124050
AC
8322002-08-02 Andrew Cagney <cagney@redhat.com>
833
834 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
835 Replace the architecture methods register_read and register_write.
836 * gdbarch.h, gdbarch.c: Regenerate.
837 * regcache.c (init_regcache_descr): Update.
838 (read_register_gen): Update.
839 (write_register_gen): Update.
840 (supply_register): Update comment.
841
842 * sh-tdep.c (sh_gdbarch_init): Update.
843 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
844 `regcache' and `gdbarch' parameters. Make `buffer' a void
845 pointer. Update code.
846 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
847 `regcache' and `gdbarch' parameters. Make `buffer' a constant
848 void pointer. Update code.
849 (sh64_register_write): Delete.
850 (sh4_register_read): Delete.
851 (sh64_register_read): Delete.
852 (sh4_register_write): Delete.
853 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
854 void pointer, `to' parameter a void pointer.
855 (sh_sh64_register_convert_to_raw): Ditto.
856
a6425924
KB
8572002-08-01 Kevin Buettner <kevinb@redhat.com>
858
859 * mips-tdep.c (mips_register_virtual_type): Use architecture
860 invariant return values.
861
ff5922b5
AC
8622002-08-01 Andrew Cagney <cagney@redhat.com>
863
864 * linux-proc.c: Include "gdb_string.h".
865 * Makefile.in (linux-proc.o): Update dependency list.
866
32a6503c
KB
8672002-08-01 Kevin Buettner <kevinb@redhat.com>
868
869 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
870 comment.
871
ccaa32c7
GS
8722002-08-01 Grace Sainsbury <graces@redhat.com>
873
874 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
875 to_insert_watchpoint, to_remove_watchpoint,
876 to_stopped_by_watchpoint, to_stopped_data_address,
877 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
878 target vecctor. Define their corresponding macros so they call
879 them.
880
881 * target.c: Add default and debug versions of for
882 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
883 to_insert_watchpoint, to_remove_watchpoint,
884 to_stopped_by_watchpoint, to_stopped_data_address,
885 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
886
78fde5f8
KB
8872002-08-01 Kevin Buettner <kevinb@redhat.com>
888
889 * mips-tdep.c (mips_register_virtual_type): New function.
890 (mips_gdbarch_init): Register mips_register_virtual_type()
891 with gdbarch machinery.
892 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
893 this file instead of tm-bigmips.h.
894 (MIPS_REGSIZE): Delete this macro.
895 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
896 multiarch version in mips-tdep.c will be found.
897
db034ac5
AC
8982002-08-01 Andrew Cagney <cagney@redhat.com>
899
900 * NEWS: Menion that CHILL has been made obsolete.
901
902 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
903 * gdbserver/Makefile.in: Ditto.
904 * stabsread.c (read_range_type): Ditto.
905 * gdbtypes.h: Ditto.
906 * language.c (binop_type_check): Ditto.
907 (binop_result_type): Ditto.
908 (integral_type): Ditto.
909 (character_type): Ditto.
910 (string_type): Ditto.
911 (boolean_type): Ditto.
912 (structured_type): Ditto.
913 (lang_bool_type): Ditto.
914 (binop_type_check): Ditto.
915 * language.h (_LANG_chill): Ditto.
916 * dwarfread.c (set_cu_language): Ditto.
917 * dwarfread.c (CHILL_PRODUCER): Ditto.
918 * dwarfread.c (handle_producer): Ditto.
919 * expression.h (enum exp_opcode): Ditto.
920 * eval.c: Ditto for comments.
921 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
922 * expprint.c (print_subexp): Ditto.
923 (print_subexp): Ditto.
924 * valops.c (value_cast): Ditto.
925 (search_struct_field): Ditto.
926 * value.h (COERCE_VARYING_ARRAY): Ditto.
927 * symfile.c (init_filename_language_table): Ditto.
928 (add_psymbol_with_dem_name_to_list): Ditto.
929 * valarith.c (value_binop): Ditto.
930 (value_neg): Ditto.
931 * valops.c (value_slice): Ditto.
932 * symtab.h (union language_specific): Ditto.
933 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
934 (SYMBOL_DEMANGLED_NAME): Ditto.
935 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
936 * defs.h (enum language): Ditto.
937 * symtab.c (got_symtab): Ditto.
938 * utils.c (fprintf_symbol_filtered): Ditto.
939
940 * ch-typeprint.c: Make file obsolete.
941 * ch-valprint.c: Make file obsolete.
942 * ch-lang.h: Make file obsolete.
943 * ch-exp.c: Make file obsolete.
944 * ch-lang.c: Make file obsolete.
945
946 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
947 CHILL_LIB.
948 (TARGET_FLAGS_TO_PASS): Ditto.
949 (CHILLFLAGS): Obsolete.
950 (CHILL): Obsolete.
951 (CHILL_FOR_TARGET): Obsolete.
952 (CHILL_LIB): Obsolete.
953 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
954 ch-valprint.c.
955 (HFILES_NO_SRCDIR): Remove ch-lang.h.
956 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
957 ch-lang.o.
958 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
959 targets.
960
8aaf0b47
JB
9612002-07-31 Joel Brobecker <brobecker@gnat.com>
962
963 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
964 This does not change anything at the moment, but will be helpful
965 later when full Ada support is integrated.
966
f3a7b3a5
KB
9672002-07-31 Kevin Buettner <kevinb@redhat.com>
968
969 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
970 help message.
971
fb850278
KB
9722002-07-31 Kevin Buettner <kevinb@redhat.com>
973
974 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
975 and save it in a local variable. Use variable in later test.
976
e3bddbfa
KB
9772002-07-31 Kevin Buettner <kevinb@redhat.com>
978
979 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
980 test. (Thanks to Daniel Jacobowitz.)
981
28d169de
KB
9822002-07-31 Kevin Buettner <kevinb@redhat.com>
983
984 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
985 (mips_abi_strings): Add "n64".
986 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
987
7fe7e44e
KB
9882002-07-31 Kevin Buettner <kevinb@redhat.com>
989
990 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
991 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
992
c6caf090
KB
9932002-07-31 Kevin Buettner <kevinb@redhat.com>
994
995 * utils.c (host_pointer_to_address, address_to_host_pointer):
996 Use gdb_assert() instead of explicit call to internal_error().
997
c41669e0
KB
9982002-07-30 Kevin Buettner <kevinb@redhat.com>
999
1000 * Makefile.in (rs6000-nat.o): Update dependencies.
1001
1002 From Nicholas Duffek:
1003 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1004 (aix-thread.o): New rule.
1005 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1006 * config/powerpc/aix432.mh: New file.
1007
2fda4977
DJ
10082002-07-30 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1011 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1012 (fetch_core_registers, ppc_linux_supply_gregset)
1013 (ppc_linux_supply_fpregset): New functions.
1014 (ppc_linux_regset_core_fns): New.
1015 (_initialize_ppc_linux_tdep): Call add_core_fns.
1016 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1017 and ppc_linux_supply_gregset.
1018 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1019 (supply_fpregset): Call ppc_linux_supply_fpregset.
1020 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1021 corelow.o.
1022 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1023
729051e6
DJ
10242002-07-30 Daniel Jacobowitz <drow@mvista.com>
1025
1026 * symtab.c (lookup_symbol): Demangle before lowercasing.
1027
5f8a3188
AC
10282002-07-30 Andrew Cagney <ac131313@redhat.com>
1029
1030 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1031 declaration.
1032 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1033 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1034 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1035 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1036 "gdb_string.h".
1037 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1038 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1039 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1040 (avr-tdep.o, mon960-rom.o): Ditto.
1041 (aout_stabs_gnu_h): Define.
1042 (symtab_h): Remove $(gdb_obstack_h).
1043
67f07146
JB
10442002-07-30 Jim Blandy <jimb@redhat.com>
1045
1046 Patch from David Carlton <carlton@math.stanford.edu>:
1047 * gdbinit.in: Move the `dir' commands that add GDB's own source
1048 directory to the search path to the end, so that the `gdb' source
1049 directory will be searched first.
1050
04ea0df1
AC
10512002-07-29 Andrew Cagney <ac131313@redhat.com>
1052
1053 * gdb_obstack.h: New file.
1054 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1055 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1056 * objfiles.h: Include "gdb_obstack.h".
1057 * Makefile.in (gdb_obstack_h): Define.
1058 (symtab_h): Add $(gdb_obstack_h).
1059 (objfiles_h): Add $(gdb_obstack_h).
1060
1061 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1062 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1063 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1064 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1065 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1066 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1067 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1068 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1069
1070 * Makefile.in (bcache.o): Update dependencies.
1071 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1072 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1073 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1074 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1075 (stabsread.o, symfile.o, symmisc.o): Ditto.
1076 (symtab.o, typeprint.o, macroexp.o): Ditto.
1077 (macrotab.o, mdebugread.o): Ditto.
1078 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1079 (coff_ecoff_h, aout_aout64_h): Define.
1080 (aout_stabs_gnu_h, libaout_h): Define.
1081
d138e37a
AC
10822002-07-29 Andrew Cagney <cagney@redhat.com>
1083
1084 * regcache.c (struct regcache_descr): Rename nr_registers to
1085 nr_cooked_registers. Revise comments describing the structure
1086 member fields.
1087 (init_regcache_descr): Update.
1088 (init_legacy_regcache_descr): Update.
1089 (read_register_gen, write_register_gen): When a cooked register in
1090 the raw register range, directly access the value from the raw
1091 register cache.
1092
460e6ec3
AC
10932002-07-29 Andrew Cagney <ac131313@redhat.com>
1094
1095 * z8k-tdep.c: Do not include "obstack.h".
1096 * h8300-tdep.c, h8500-tdep.c: Ditto.
1097 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1098 * valprint.c, v850-tdep.c: Ditto.
1099 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1100 * mn10200-tdep.c: Ditto.
1101
1102 * Makefile.in (z8k-tdep.o): Update dependencies.
1103 (m68hc11-tdep.o, valprint.o): Ditto.
1104 (v850-tdep.o, d10v-tdep.o): Ditto.
1105 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1106 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1107 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1108 (sh_opc_h, gdb_sim_sh_h): Define.
1109 (elf_sh_h, elf_bfd_h): Define.
1110 (opcode_m68hc11_h): Define.
1111 (OPCODES_SRC, OPCODES_DIR): define.
1112 (OPCODES): Use $(OPCODES_DIR).
1113 (gdb_sim_d10v_h): Rename sim_d10v_h.
1114 (gdb_sim_arm_h): Rename sim_arm_h.
1115
790c9cf0
KB
11162002-07-26 Kevin Buettner <kevinb@redhat.com>
1117
1118 * utils.c (host_pointer_to_address, address_to_host_pointer):
1119 Change internal_error() message to indicate function responsible
1120 for the error.
1121
9647fa49
KB
11222002-07-26 Kevin Buettner <kevinb@redhat.com>
1123
1124 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1125 calls to local_hex_string_custom().
1126
dabbe2c0
KB
11272002-07-26 Kevin Buettner <kevinb@redhat.com>
1128
1129 * irix5-nat.c: Move IRIX shared library support from here...
1130 * solib-irix.c: ...to here. Revised substantially to work with
1131 generic solib framework.
1132
b96d0a4e
KB
1133 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1134 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1135 * mips-irix-tdep.c: New file.
1136
313fb2f6
KB
1137 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1138 (mips-irix-tdep.o, solib-irix.o): New rules.
1139 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1140 solib-irix.o.
1141 * config/mips/irix6.mt (TDEPFILES): Likewise.
1142 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1143
ab2eaf26
KB
11442002-07-26 Kevin Buettner <kevinb@redhat.com>
1145
177e4768 1146 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1147 disabled (via ``#if 0'') includes.
1148
7244546a
KB
11492002-07-26 Kevin Buettner <kevinb@redhat.com>
1150
1151 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1152 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1153 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1154 Add support for the fpscr register.
1155 * rs6000-nat.c (regmap, fetch_inferior_registers)
1156 (store_inferior_registers, fetch_core_registers): Likewise.
1157
dd7be90a
KB
11582002-07-26 Kevin Buettner <kevinb@redhat.com>
1159
1160 * rs6000-nat.c (language.h): Include.
1161 (special_regs): Delete this array.
1162 (regmap): New function.
1163 (fetch_register, store_register): Use regmap() to map gdb
1164 register numbers to ptrace register numbers. Also, use
1165 outputs from regmap() to make decisions regarding type of
1166 ptrace() call to make. In particular, don't compare against
1167 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1168 (fetch_inferior_registers, store_inferior_registers): Where
1169 possible, obtain register numbers from tdep struct. Don't
1170 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1171 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1172 (LAST_UISA_SP_REGNUM): Delete.
1173
11bf77db
KB
11742002-07-25 Kevin Buettner <kevinb@redhat.com>
1175
1176 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1177 (fetch_registers, store_register, fetch_core_registers): Don't
1178 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1179 regcache_collect() as appropriate.
1180 (find_toc_address): Format hex address with local_hex_string().
1181
06afebeb
AC
11822002-07-25 Andrew Cagney <ac131313@redhat.com>
1183
1184 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1185 bfd/elf32-frv.c.
1186
8c554d79
TT
11872002-07-24 Tom Tromey <tromey@redhat.com>
1188
1189 * jv-exp.y: Marked all strings with _().
1190 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1191 internal_error.
1192 (MethodInvocation, CastExpression, parse_number, yyerror,
1193 java_type_from_name, push_expression_name, yylex): Typo fixes.
1194
e4c242d9
DJ
11952002-07-24 Daniel Jacobowitz <drow@mvista.com>
1196
1197 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1198 (tee_file_flush, tee_file_write, tee_file_fputs)
1199 (tee_file_isatty): New.
1200 * ui-file.h (tee_file_new): Add prototype.
1201
ebf56fd3
AS
12022002-07-24 Aidan Skinner <aidan@velvet.net>
1203
1204 * ada-lang.c: Change k&r style function definitions to prototyped
1205 form.
1206 * ada-typeprint.c: Change k&r style function definitions to prototyped
1207 form.
1208 * ada-valprint.c: Change k&r style function definitions to prototyped
1209 form.
1210
7fb623f7
AC
12112002-07-24 Andrew Cagney <cagney@redhat.com>
1212
1213 * README: Remove reference to remote-bug.
1214 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1215 remote-bug.c.
1216 (m88k-nat.o): Delete rule.
1217 (m88k-tdep.o): Delete rule.
1218 (remote-bug.o): Delete rule.
1219 * MAINTAINERS: Mark as obsolete.
1220 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1221 * m88k-tdep.c: Make file obsolete.
1222 * config/m88k/m88k.mh: Ditto.
1223 * config/m88k/delta88v4.mh: Ditto.
1224 * config/m88k/delta88v4.mt: Ditto.
1225 * config/m88k/delta88.mt: Ditto.
1226 * config/m88k/delta88.mh: Ditto.
1227 * remote-bug.c: Ditto.
1228 * config/m88k/tm-delta88.h: Ditto.
1229 * config/m88k/nm-delta88v4.h: Ditto.
1230 * config/m88k/xm-delta88.h: Ditto.
1231 * config/m88k/xm-dgux.h: Ditto.
1232 * config/m88k/tm-m88k.h: Ditto.
1233 * config/m88k/nm-m88k.h: Ditto.
1234 * config/m88k/tm-delta88v4.h: Ditto.
1235 * m88k-nat.c: Ditto.
1236 * cxux-nat.c: Ditto.
1237 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1238 and m88*-*-* obsolete.
1239 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1240 m88*-*-* obsolete.
1241
37611a2b
AC
12422002-07-24 Andrew Cagney <cagney@redhat.com>
1243
1244 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1245 constant. Same for local pointer variables.
1246 (extract_signed_integer): Ditto.
1247 * defs.h (extract_unsigned_integer): Update.
1248 (extract_signed_integer): Update.
1249
18ff0538
KB
12502002-07-24 Kevin Buettner <kevinb@redhat.com>
1251
1252 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1253 * gdbserver/configure: Regenerate.
1254 * gdbserver/config.in: Regenerate.
1255
1aaa5f99
AC
12562002-07-24 Andrew Cagney <cagney@redhat.com>
1257
1258 * regcache.c (regcache_raw_write): Change buf parameter to a
1259 constant void pointer.
1260 (regcache_raw_read): Change buf parameter to a void pointer.
1261 (legacy_write_register_gen): Change myaddr parameter a constant
1262 void pointer.
1263 (supply_register): Change val parameter to a const void pointer.
1264 * regcache.h (regcache_raw_write): Update declaration.
1265 (regcache_raw_read): Update declaration.
1266 (supply_register): Update declaration.
1267
b4f5539f
TT
12682002-07-24 Tom Tromey <tromey@redhat.com>
1269
1270 * defs.h (gdb_readline_wrapper): Declare.
1271 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1272 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1273 * top.c (gdb_readline_wrapper): New function.
1274 (command_line_input): Use it.
1275
0818c12a
AC
12762002-07-24 Andrew Cagney <cagney@redhat.com>
1277
1278 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1279 regcache_read and regcache_write.
1280 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1281 * regcache.c: Update.
1282 * sh-tdep.c (sh64_push_arguments): Update comment.
1283 (sh_pseudo_register_read): Update.
1284 (sh_pseudo_register_write): Update.
1285 (sh4_register_read): Update.
1286 (sh4_register_write): Update.
1287 (sh64_pseudo_register_read): Update.
1288 (sh64_pseudo_register_write): Update.
1289 (sh64_register_read): Update.
1290 (sh64_register_write): Update.
1291 * i386-tdep.c (i386_extract_return_value): Update.
1292 (i386_extract_struct_value_address): Update.
1293 (i386_extract_return_value): Update.
1294 * blockframe.c (generic_read_register_dummy): Update.
1295 (generic_call_dummy_register_unwind): Update
1296 * infrun.c (write_inferior_status_register): Update.
1297
f7321c06
JB
12982002-07-23 Jim Blandy <jimb@redhat.com>
1299
1300 * parser-defs.h (expression_context_pc): Make this extern.
1301 (Thanks to Michael Snyder.)
1302
2037aebb
AC
13032002-07-23 Andrew Cagney <ac131313@redhat.com>
1304
1305 GDB 5.2.1 released from 5.2 branch.
1306 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1307 * README: Update to mention 5.2.1.
1308
66504d44
MS
13092002-07-23 Mark Salter <msalter@redhat.com>
1310
1311 * remote.c (remote_read_bytes): Fix check for error.
1312
27bae383
KB
13132002-07-22 Kevin Buettner <kevinb@redhat.com>
1314
1315 * aix-thread.c (language.h): Include.
1316 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1317 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1318 Print newlines at end of debug messages.
1319 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1320 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1321
13222002-07-22 Kevin Buettner <kevinb@redhat.com>
1323
1324 * aix-thread.c (ppc-tdep.h): Include.
1325 (special_register_p): New function.
1326 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1327 (store_regs_user_thread): Use register number information from
1328 gdbarch_tdep struct instead of hardcoded offsets relative to
1329 FIRST_UISA_SP_REGNUM.
1330 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1331 special_register_p() instead of using FPLAST_REGNUM and
1332 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1333 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1334 will be MQ's register number.
1335
13362002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1337
1338 * aix-thread.c (ops): Rename to aix_thread_ops.
1339 (base_ops): Rename to base_target.
1340 (ops_attach): Rename to aix_thread_attach.
1341 (ops_detach): Rename to aix_thread_detach.
1342 (ops_resume): Rename to aix_thread_detach.
1343 (ops_wait): Rename to aix_thread_wait.
1344 (ops_kill): Rename to aix_thread_kill.
1345 (init_ops): Rename to init_aix_thread_ops.
1346 (ops_fetch_register): Rename to aix_thread_fetch_register.
1347 (ops_store_register): Rename to aix_thread_store_register.
1348 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1349 (ops_thread_alive): Rename to aix_thread_thread_alive.
1350 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1351 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1352 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1353 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1354 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1355 (store_regs_lib): Rename to store_regs_user_thread.
1356 (store_regs_kern): Rename to store_regs_kernel_thread.
1357
27bae383 13582002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1359
1360 * aix-thread.c (ops_prepare_to_store): Eliminate.
1361 (init_ops): Don't initialize ops.prepare_to_store.
1362 (store_regs_kern): Pre-fetch register buffers from child,
1363 because some registers may not be in the cache. Copy
1364 regs from register cache only if they are cached.
1365 (store_regs_lib): Copy regs from register cache only
1366 if they are cached.
1367 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1368 fill_gprs64): Ditto.
1369
61c5da0b
KB
13702002-07-22 Kevin Buettner <kevinb@redhat.com>
1371
1372 * aix-thread.c (gdb_assert.h): Include.
1373 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1374 register sizes (from register cache) match size of buffer holding
1375 register data.
1376 (fill_sprs32): Change parameter types to match those in the ptrace()
1377 buffer.
1378 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1379 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1380
13812002-07-22 Michael Snyder <msnyder@redhat.com>
1382
1383 * aix-thread.c (supply_sprs64): Cosmetic change.
1384 (supply_sprs32): Cosmetic change.
1385 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1386 (fill_sprs64): Use regcache_collect instead of read_register.
1387 (store_regs_lib): Use regcache_collect instead of
1388 read_register. Use fill_sprs32 instead of fill_sprs64,
1389 if debugging a 32-bit architecture.
1390 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1391 out of the register cache, instead of passing a pointer into
1392 the register cache directly to ptrace. Use regcache_collect
1393 insteaad of read_register.
1394 (ops_prepare_to_store): Use target_read_registers instead
1395 of read_register_bytes.
1396
36479eb1
AS
13972002-07-20 Aidan Skinner <aidan@velvet.net>
1398
1399 * MAINTAINERS: Add self under write after approval.
1400
80ae6ee2
AS
14012002-07-20 Aidan Skinner <aidan@velvet.net>
1402
1403 * ada-tasks.c: Change k&r style function definitions to prototyped
1404 form.
1405
8a8ab2b9
AC
14062002-07-19 Andrew Cagney <ac131313@redhat.com>
1407
1408 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1409 * x86-64-tdep.c: Include "objfiles.h".
1410 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1411 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1412
fb16b900
ML
14132002-07-17 Michal Ludvig <michal@suse.cz>
1414
1415 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1416 (update_context): Initialise cfa variable.
1417
0fe7bf7b
MS
14182002-07-17 Michael Snyder <msnyder@redhat.com>
1419
1420 * aix-thread.c: Shorten some long lines.
1421 Bring comments into line with code spec.
1422
488f131b
JB
14232002-07-18 Joel Brobecker <brobecker@gnat.com>
1424
1425 * infrun.c: Re-indent using gdb_indent.sh.
1426
46c415d2
JB
14272002-07-18 Joel Brobecker <brobecker@gnat.com>
1428
1429 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1430 Leave the indentation temporarily untouched, to minimize the diffs.
1431
cdecafbe
EZ
14322002-07-18 Elena Zannoni <ezannoni@redhat.com>
1433
1434 * stabsread.c: Make os9k sections of the code obsolete,
1435 for real this time.
1436 * stabsread.h: Make os9k sections of the code obsolete.
1437
7b6aa020
ML
14382002-07-18 Michal Ludvig <mludvig@suse.cz>
1439
09ec9b38
ML
1440 * linux-low.c (regsets_store_inferior_registers): Add free()
1441 at the end of a loop to prevent memory leak.
1442 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1443 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1444 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1445 line a comment.
4894ac5d 1446 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1447
233282cd
JB
14482002-07-17 Jim Blandy <jimb@redhat.com>
1449
1450 * macrocmd.c (info_macro_command): Remove newline from error
1451 message.
1452
7b6aa020 14532002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1454
1455 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1456 (sh_gdbarch_init): Use it for sh-dsp.
1457
f7ef9339
KB
14582002-07-16 Kevin Buettner <kevinb@redhat.com>
1459
1460 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1461 64-bit DWARF2 format.
1462
8dd72958
JB
14632002-07-16 Joel Brobecker <brobecker@gnat.com>
1464
1465 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1466 <sys/proc.h> when not available.
1467
a99a9e1b
AC
14682002-07-16 Andrew Cagney <ac131313@redhat.com>
1469
1470 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1471 * stabsread.c: Make os9k sections of the code obsolete.
1472 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1473 * config/i386/i386os9k.mt: Make file obsolete.
1474 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1475 (COMMON_OBS): Remove os9kread.o
1476 (SFILES): Remove os9kread.c.
1477 (os9kread.o, remote-os9k.o): Make target obsolete.
1478 * remote-os9k.c: Make file obsolete.
1479 * os9kread.c: Make file obsolete.
1480 * Makefile.in
1481
7a3085c1
AC
14822002-07-16 Andrew Cagney <ac131313@redhat.com>
1483
1484 * NEWS: Mention that the FR30 has been made obsolete.
1485 * fr30-tdep.c: Make file obsolete.
1486 * config/fr30/tm-fr30.h: Ditto.
1487 * config/fr30/fr30.mt: Ditto.
1488 * configure.tgt: Make fr30-*-elf obsolete.
1489 * MAINTAINERS: Make fr30-elf obsolete.
1490
28a93f5a
PM
14912002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1492
1493 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1494 found is not inside a section.
1495
be006b8b
KB
14962002-07-15 Kevin Buettner <kevinb@redhat.com>
1497
1498 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1499 strerror().
1500 (pdc_realloc): Use xrealloc() instead of realloc().
1501
14fa3751
KB
15022002-07-15 Kevin Buettner <kevinb@redhat.com>
1503
1504 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1505 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1506 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1507 macros.
1508
42cc437f
KB
15092002-07-15 Kevin Buettner <kevinb@redhat.com>
1510
1511 * aix-thread.c (ptrace_check): Eliminate goto.
1512 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1513 problem.
1514
8e2c28d4
KB
15152002-07-15 Kevin Buettner <kevinb@redhat.com>
1516
1517 * aix-thread.c (gdbcmd.h): Include.
1518 (DEBUG, DBG, DBG2, dbg): Eliminate.
1519 (debug_aix_thread): New static global.
1520 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1521 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1522 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1523 invocations to DBG and DBG2 macros to test against
1524 ``debug_aix_thread'' and call fprintf_unfiltered().
1525 (_initialize_aix_thread): Add new command "set debug aix-thread".
1526
30413464
AC
15272002-07-15 Andrew Cagney <ac131313@redhat.com>
1528
1529 From Gerhard Tonn <TON@de.ibm.com>:
1530 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1531 instead of supply_register.
1532
7c43edc1
AC
15332002-07-15 Andrew Cagney <ac131313@redhat.com>
1534
1535 * dwarf2cfi.c: Include "gdb_assert.h".
1536 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1537 non-NULL.
1538 (update_context): Do not use __func__. Add missing ``break''.
1539 (update_context): Do not use __func__.
1540
9364a0ef
EZ
15412002-07-15 Elena Zannoni <ezannoni@redhat.com>
1542
1543 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1544 and its setting. Set gdbarch instruction printing functions
1545 directly. For non-rs6000 case use new function
1546 gdb_print_insn_powerpc.
1547 (gdb_print_insn_powerpc): New function.
1548
3fbeef0b
AC
15492002-07-13 Andrew Cagney <ac131313@redhat.com>
1550
92eb23c5 1551 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1552 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1553 * configure.tgt: Mark d30v-*-* as obsolete.
1554 * d30v-tdep.c: Mark file as obsolete.
1555 * config/d30v/d30v.mt: Ditto.
1556 * config/d30v/tm-d30v.h: Ditto.
1557
aacb1f0a
AS
15582002-07-13 Aidan Skinner <aidan@velvet.net>
1559
1560 * ada-tasks.c (add_task_entry): replace calls to
1561 malloc() with xmalloc
1562 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1563
1564 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1565 ada_finish_decode_line_1, all_sals_for_line
1566 ada_breakpoint_rewrite): replace calls to free() with xfree()
1567
c11d79f2
KB
15682002-07-12 Kevin Buettner <kevinb@redhat.com>
1569
1570 From Nicholas Duffek (with minor changes by Martin Hunt,
1571 Louis Hamilton, and Kevin Buettner):
1572 * aix-thread.c: New file.
1573
8e19ed76
PS
15742002-07-12 Petr Sorfa <petrs@caldera.com>
1575
1576 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1577 complaint for invalid attribute class or form.
1578 (read_func_scope): DW_AT_frame_base
1579 better handling of DW_AT_block*.
1580 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1581 better handling of DW_AT_block*.
1582 (read_common_block): DW_AT_location
1583 better handling of DW_AT_block*.
1584 (read_partial_die): DW_AT_location better handling
1585 of DW_AT_block*.
1586 (new_symbol): DW_AT_external better handling of
1587 DW_AT_block*. Proper initialization of variable
1588 "addr".
1589 (attr_form_is_block): New function that returns true
1590 if the attribute's form is of DW_FORM_block*.
1591
295401f7
DJ
15922002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1593
1594 * valops.c (find_method_list): Remove comment about
1595 removed STATIC_MEMFUNCP argument.
1596 (value_find_oload_method_list): Likewise.
1597
e42dc924
KB
15982002-07-12 Kevin Buettner <kevinb@redhat.com>
1599
1600 From Nicholas Duffek:
1601 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1602 target_new_objfile_hook.
1603
6904b546
KB
16042002-07-12 Kevin Buettner <kevinb@redhat.com>
1605
1606 From Nicholas Duffek:
1607 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1608 csect.
1609
53fe9346
AC
16102002-07-12 Andrew Cagney <cagney@redhat.com>
1611
1612 * MAINTAINERS: Mention --enable-sim-build-warnings.
1613 (m68hc11-elf): Disable sim build warnings.
1614 (m32r-elf): Mark as broken obsolete candidate.
1615 (x86_64-linux-gnu): Mark as buildable with -Werror.
1616 (arm-elf): Change -w to ``,'' which enables warnings but not
1617 -Werror.
1618
af5f3db6
AC
16192002-07-12 Andrew Cagney <ac131313@redhat.com>
1620
1621 * bcache.h: Update copyright.
1622 (struct bstring, struct bcache): Move definition to "bcache.c".
1623 Replaced by opaque declaration.
1624 (bcache_xfree): Replace free_bcache.
1625 (bcache_xmalloc, bcache_memory_used): Declare.
1626
1627 * bcache.c: Update copyright.
1628 (struct bstring, struct bcache): Moved to here from "bcache.h".
1629 Update comments.
1630 (bcache_xmalloc, bcache_memory_used): New functions.
1631 (bcache_xfree): Replace function free_bcache.
1632
1633 * Makefile.in (objfiles.o): Add $(bcache_h).
1634 (objfiles_h): Remove $(bcache_h).
1635 (symfile.o): Add $(bcache_h).
1636
1637 * symmisc.c: Update copyright.
1638 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1639 (print_objfile_statistics): Use bcache_memory_used.
1640
1641 * symfile.c: Include "bcache.h".
1642 (reread_symbols): Use bcache_xfree.
1643 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1644 (add_psymbol_to_list): Pass psymbol_cache by value.
1645 (add_psymbol_with_dem_name_to_list): Ditto.
1646
1647 * objfiles.h: Update copyright.
1648 (struct bcache): Declare opaque. Do not include "bcache.h".
1649 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1650 bcache'' pointers.
1651 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1652
1653 * objfiles.c: Include "bcache.h". Update copyright.
1654 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1655 macro_cache.
1656 (free_objfile): Use bcache_xfree.
1657
444199e7
GS
16582002-07-11 Grace Sainsbury <graces@redhat.com>
1659
1660 * monitor.c (monitor_fetch_register): Make name a constant.
1661 (monitor_store_register): Same.
1662
261397f8
DJ
16632002-07-11 Daniel Jacobowitz <drow@mvista.com>
1664
1665 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1666 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1667 (finish_block) For non-function blocks, hash the symbol table. For
1668 function blocks, mark the symbol table as unhashed.
1669 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1670 (msymbol_hash_iw): Likewise.
1671 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1672 value.
1673 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1674 (lookup_minimal_symbol): Likewise for both.
1675 * symtab.h (struct block): Add `hashtable' flag. Comment the
1676 hashtable.
1677 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1678 (ALL_BLOCK_SYMBOLS): Update.
1679 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1680 (struct symbol): Add `hash_next' pointer.
1681 * symtab.c (lookup_block_symbol): Search using the hash table when
1682 possible.
1683 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1684 (search_symbols, find_addr_symbol): Likewise.
1685
1686 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1687 (read_dst_symtab): Likewise.
1688 * jv-lang.c (get_java_class_symtab): Likewise.
1689 * mdebugread.c: Include "gdb_assert.h".
1690 (shrink_block): Assert that the block being modified is not hashed.
1691 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1692 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1693 symbols.
1694 (dump_symtab): Recognize hashed blocks.
1695 * printcmd.c (print_frame_args): Assert that function blocks do not
1696 have hashed symbol tables.
1697 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1698 (fill_in_ada_prototype, debug_print_block): Likewise.
1699 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1700
6f0eaa01
CV
17012002-07-11 Corinna Vinschen <vinschen@redhat.com>
1702
1703 * stack.c (print_frame): Use result of frame_address_in_block()
1704 instead of fi->pc when evaluating symbols.
1705 (backtrace_command_1): Ditto.
1706
a208b0cb
AC
17072002-07-11 Andrew Cagney <cagney@redhat.com>
1708
1709 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1710 Make static.
1711
1712 * arm-tdep.c (arm_register_name): Make return type constant.
1713
a6b6b089
AC
17142002-07-10 Andrew Cagney <ac131313@redhat.com>
1715
5ae5f592
AC
1716 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1717 prototype.
1718 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1719 * s390-tdep.c (s390_fp_regnum): Ditto.
1720 (s390_read_fp): Ditto.
1721 (s390_pop_frame): Ditto.
1722 (_initialize_s390_tdep): Ditto.
1723 * remote.c (get_remote_state): Ditto.
1724 * procfs.c (mappingflags): Ditto.
1725 * memattr.c (_initialize_mem): Ditto.
1726 * mcore-tdep.c (mcore_pop_frame): Ditto.
1727 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1728 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1729 * language.c (set_case_str): Ditto.
1730 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1731 * frv-tdep.c (new_variant): Ditto.
1732 (frv_stopped_data_address): Ditto.
1733 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1734 (context_alloc): Ditto.
1735 (frame_state_alloc): Ditto.
1736 (unwind_tmp_obstack_init): Ditto.
1737 (unwind_tmp_obstack_free): Ditto.
1738 (cfi_read_fp): Ditto.
1739 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1740 (cris_pop_frame): Ditto.
1741 * c-lang.c (scanning_macro_expansion): Ditto.
1742 (finished_macro_expansion): Ditto.
1743 (c_preprocess_and_parse): Ditto.
1744 * gdbarch.sh: Ditto.
1745 * gdbarch.h, gdbarch.c: Regenerate.
1746 * config/mn10200/tm-mn10200.h: Adjust indentation.
1747 * target.c: Adjust indentation.
1748 * symtab.h: Adjust indentation.
1749 * stabsread.h: Adjust indentation.
1750 * remote-es.c: Adjust indentation.
1751 * os9kread.c: Adjust indentation.
1752
17532002-07-10 Andrew Cagney <ac131313@redhat.com>
1754
a6b6b089
AC
1755 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1756 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1757
a1789893
GS
17582002-07-10 Grace Sainsbury <graces@redhat.com>
1759
1760 * NEWS: Mention m68k, mcore multi-arching.
1761 * MAINTAINERS: Change status of m68k, mcore to reflect
1762 multi-arching.
1763
02f0d45d
DJ
17642002-07-10 Daniel Jacobowitz <drow@mvista.com>
1765
1766 * valops.c (find_overload_match): Free oload_syms.
1767
f15f768e
JB
17682002-07-09 Joel Brobecker <brobecker@gnat.com>
1769
1770 Define HAVE_SYS_PROC_H if sys/proc.h exists
1771 * configure.in: Add check for sys/proc.h
1772 * config.in: Regenerate.
1773 * configure: Regenerate.
1774
902a7139
GS
17752002-07-09 Grace Sainsbury <graces@redhat.com>
1776
1777 * config/m68k/tm-m68k.h: Remove macros wrapped in
1778 #if !GDB_MULTI_ARCH.
1779
82e0fd98
DB
17802002-07-09 David O'Brien <obrien@FreeBSD.org>
1781
1782 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1783 (perror_with_name, remote_close, remote_open, expect, play): Static.
1784
a534e424
AC
17852002-07-08 Andrew Cagney <ac131313@redhat.com>
1786
1787 * config.in, configure: Regenerate.
1788
9b94f7bf
MK
17892002-07-08 Mark Kettenis <kettenis@gnu.org>
1790
1791 * dwarf2cfi.c: Include "gcore.h".
1792 (execute_stack_op): Fix implementation of the
1793 DW_OP_deref and DW_OP_deref_size operators by letting do their
1794 lookup in the target.
1795
1d34db41
MK
17962002-07-07 Mark Kettenis <kettenis@gnu.org>
1797
1798 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1799 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1800 tdep->sc_sp_offset.
1801
79d5b63a
DJ
18022002-07-05 Daniel Jacobowitz <drow@mvista.com>
1803
1804 Fix PR gdb/595, gdb/602
1805 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1806 Don't call value_cast, just read the vtable pointer; update comments
1807 to match.
1808
3bb912e8
GS
18092002-07-05 Grace Sainsbury <graces@redhat.com>
1810
1811 * config/mcore/tm-mcore.h: Remove file.
1812 * config/mcore/mcore.mt: Remove definition of TM_FILE
1813 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1814
ca39387d
MK
18152002-07-05 Mark Kettenis <kettenis@gnu.org>
1816
1817 * i386bsd-tdep.c: Include "gdb_string.h".
1818
efdc1108
GS
18192002-07-04 Grace Sainsbury <graces@redhat.com>
1820
1821 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1822 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1823 mcore-tdep.
1824 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1825 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1826 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1827 (RETVAL_REGNUM): Move macros from tm-mcore.h
1828 (mcore_reg_struct_has_addr): New function.
1829 (mcore_gdbarch_init): Added initializations for the macros removed
1830 from tm-mcore.h.
1831
bb21884d
MK
18322002-07-04 Mark Kettenis <kettenis@gnu.org>
1833
1834 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1835 traditonal string branding within the ELF header.
1836
228c6d41
DJ
18372002-07-04 Daniel Jacobowitz <drow@mvista.com>
1838
1839 * symtab.c (remove_params): New function.
1840 (make_symbol_overload_list): Use it instead of cplus_demangle.
1841 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1842
2404952e
MK
18432002-07-04 Mark Kettenis <kettenis@gnu.org>
1844
e5e4acad
MK
1845 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1846
baadce09
MK
1847 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1848 New variables.
1849 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1850 and tdep->sigtramp_end.
1851 * i386obsd-nat.c: New file.
1852 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1853
2404952e
MK
1854 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1855 Don't call get_current_frame().
1856
9b4f1ba7
PM
18572002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1858
1859 * i386-nat.c (child_post_startup_inferior): New function
1860 calling i386_cleanup_dregs if
1861 I386_USE_GENERIC_WATCHPOINTS is defined.
1862 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1863 conditional to acknowledge that i386-nat.c has its
1864 own child_post_startup_inferior function.
1865
c0d1d883
MK
18662002-07-04 Mark Kettenis <kettenis@gnu.org>
1867
00f8375e
MK
1868 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1869 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1870 instead of MAX_REGISTER_RAW_SIZE.
1871 (i386_extract_return_value, i386_extract_struct_value_address):
1872 Convert to use regcache.
1873 (i386_gdbarch_init): Set max_register_raw_size and
1874 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1875 Set extract_return_value and extract_struct_value_address instead
1876 of their deprecated variants.
1877
c0d1d883
MK
1878 Convert i386 target to generic dummy frames.
1879 * i386-tdep.c: Include "symfile.h".
1880 (i386_frameless_signal_p): Consider a function to be frameless if
1881 the pc points at the first instruction of the function.
1882 (i386_frame_chain): Handle (generic) call dummies.
1883 (i386_frame_saved_pc): Likewise.
1884 (i386_frame_init_saved_regs): Remove code dealing with call
1885 dummies on the stack.
1886 (i386_push_dummy_frame): Removed.
1887 (i386_call_dummy_words): Removed.
1888 (i386_fix_call_dummy): Removed.
1889 (i386_push_return_address): New function.
1890 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1891 parameter, and don't call get_current_frame.
1892 (i386_pop_frame): New function.
1893 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1894 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1895 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1896 call_dummy_length to 0, set call_dummy_words to NULL, set
1897 sizeof_call_dummy_words to 0, set fix_call_dummy to
1898 generic_fix_call_dummy, set pc_in_call_dummy to
1899 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1900 generic_push_dummy_frame, set push_return_address to
1901 i386_push_return_address and set frame_chain_valid to
1902 generic_file_frame_chain_valid.
1903
638c1580
ML
19042002-07-04 Michal Ludvig <mludvig@suse.cz>
1905
1906 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1907 byte offsets instead of an array of indexes.
1908 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1909
049ee0e4
AC
19102002-07-03 Andrew Cagney <ac131313@redhat.com>
1911
1912 * gdbarch.sh (struct regcache): Add opaque declaration.
1913 (EXTRACT_RETURN_VALUE): New architecture method.
1914 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1915 * gdbarch.h, gdbarch.c: Regenerate.
1916 * arch-utils.c (legacy_extract_return_value): New function.
1917 * arch-utils.h (legacy_extract_return_value): Declare.
1918 * values.c (value_being_returned): Re-enable code handling
1919 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1920 deprecated_grub_regcache_for_registers call to block handling
1921 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1922 (EXTRACT_RETURN_VALUE): Do not define.
1923
4e0d9804
GS
19242002-07-03 Grace Sainsbury <graces@redhat.com>
1925
1926 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1927 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1928 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1929 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1930 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1931 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1932 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1933 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1934 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1935 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1936 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1937 argument so the function fits the prototype in the architecture
1938 vector.
1939 (mcore_pop_frame): Remove argument so the function fits the
1940 prototype. Use get_current_frame instead of the argument.
1941 (mcore_push_arguments): Change type of struct_return so the
1942 function can be used in the architecture vector.
1943 (mcore_store_struct_return): Add.
1944 (mcore_frame_init_saved_regs): Add.
1945 (mcore_gdbarch_init): Add function calls to replace the macros
1946 removed from tm-mcore.h
1947
36160dc4
AC
19482002-07-03 Andrew Cagney <ac131313@redhat.com>
1949
1950 * infcmd.c (print_return_value): Remove compatibility code calling
1951 deprecated_grub_regcache_for_registers.
1952
1953 * values.c: Include "regcache.h".
1954 (value_being_returned): Update. Use
1955 deprecated_grub_regcache_for_registers to extract the register
1956 buffer address.
1957 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1958 ``struct regcache''.
1959 * Makefile.in (values.o): Add dependency on $(regcache_h).
1960
1961 * inferior.h (run_stack_dummy): Change type of second parameter to
1962 a ``struct regcache''.
1963 * valops.c (hand_function_call): Change type of retbuf to ``struct
1964 regcache''. Allocate using regcache_xmalloc, clean using
1965 make_cleanup_regcache_xfree.
1966 * infcmd.c (run_stack_dummy): Update. Use
1967 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1968
1969 * regcache.c (do_regcache_xfree): New function.
1970 (make_cleanup_regcache_xfree): New function.
1971 * regcache.h (make_cleanup_regcache_xfree): Declare.
1972
e64d9b3d
MH
19732002-07-03 Martin M. Hunt <hunt@redhat.com>
1974
4dd79c29
MH
1975 * event-top.c (command_line_handler): Don't read past
1976 beginning of buffer.
e64d9b3d 1977
4dd79c29
MH
19782002-07-03 Martin M. Hunt <hunt@redhat.com>
1979
e64d9b3d
MH
1980 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1981 struct frame_id.
1982 (varobj_create): Store frame_id for root.
1983 (varobj_gen_name): Use xasprintf.
1984 (varobj_update): Save and restore frame using get_frame_id() and
1985 frame_find_by_id().
1986 (create_child): Use xasprintf.
1987 (new_root_variable): Initialize frame_id.
1988 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1989 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1990 to prevent memory leak.
1991
26e6c56a
AC
19922002-07-03 Andrew Cagney <ac131313@redhat.com>
1993
1994 * valops.c (hand_function_call): Move declaration of retbuf to
1995 start of function, allocate using malloc, add a cleanup but before
1996 the inf_status cleanup, cleanup the buffer. Rename local variable
1997 old_chain to inf_status_cleanup.
1998
f436dd25
MH
19992002-07-03 Martin M. Hunt <hunt@redhat.com>
2000
2001 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2002
2003 * cli/cli-decode.c (cmd_func_p): New function.
2004 (cmd_func): New function.
2005
2006 * command.h: Add cmd_func() and cmd_func_p().
2007
4cfe2084
GS
20082002-07-03 Grace Sainsbury <graces@redhat.com>
2009
2010 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2011 (REGISTER_SIZE): Remove.
2012 (MAX_REGISTER_RAW_SIZE): Remove.
2013 (REGISTER_VIRTUAL_TYPE): Remove.
2014 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2015 (REGISTER_NAME): Remove.
2016 (USE_GENERIC_DUMMY_FRAMES): Remove.
2017 (CALL_DUMMY): Remove.
2018 (CALL_DUMMY_START_OFFSET): Remove.
2019 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2020 (CALL_DUMMY_LOCATION): Remove.
2021 (FIX_CALL_DUMMY): Remove.
2022 (CALL_DUMMY_ADDRESS): Remove.
2023 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2024 (SAVE_DUMMY_FRAME_TOS): Remove.
2025 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2026 (mcore_register_virtual_type): New function.
2027 (mcore_register_byte): New function.
2028 (mcore_register_size): New function.
2029 (mcore_register_name): New function.
2030 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2031 macros removed from tm-mcore.h.
2032 (mcore_dump_tdep): Add.
2033 (_initialize_mcore_tdep): Add gdbarch_register call.
2034
4fd667e9
MK
20352002-07-03 Mark Kettenis <kettenis@gnu.org>
2036
2037 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2038 frameless_look_for_prologue, such that we actually call this
2039 function.
2040
42f99ac2
JB
20412002-07-02 Joel Brobecker <brobecker@gnat.com>
2042
2043 * frame.h (frame_address_in_block): New function.
2044
2045 * blockframe.c (frame_address_in_block): New function extracted
2046 from get_frame_block().
2047 (get_frame_block): Use frame_address_in_block().
2048 (block_innermost_frame): Use frame_address_in_block() to match
2049 the frame pc address against the block boundaries rather than
2050 the frame pc directly. This prevents a failure when a frame pc
2051 is actually a return-address pointing immediately after the end
2052 of the given block.
2053
103a1597 20542002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2055
2056 * MAINTAINERS: Add self under write after approval.
2057
20582002-07-02 Grace Sainsbury <graces@redhat.com>
2059
103a1597
GS
2060 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2061 used in architecture vector. The default is
2062 m68k_local_breakpoint_from_pc.
2063 (m68k_local_breakpoint_from_pc): Add.
2064 (enum): Add register numbers from tm-m68k.h.
2065 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2066 vector.
2067 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2068 GDB_MULTI_ARCH_PARTIAL.
2069 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2070 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2071 m68k-tdep.c.
2072 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2073 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2074 to enum in m68k-tdep.c
2075
7a5a0534
JB
20762002-07-02 Joel Brobecker <brobecker@gnat.com>
2077
2078 * solib-osf.c (open_map): Compute the list of shared libraries
2079 loaded by the inferior, rather than the list of libraries loaded
2080 by GDB itself. Otherwise, GDB ends up reading the symbols from
2081 the wrong shared libraries...
2082
6f558d74
MK
20832002-07-02 Mark Kettenis <kettenis@gnu.org>
2084
b7d15bf7
MK
2085 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2086 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2087 macros.
2088 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2089 Remove functions.
2090 (FRAMELESS_SIGNAL): Remove function.
2091 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2092 i386_linux_saved_pc_after_call): Removed.
2093 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2094 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2095 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2096
6bff26de
MK
2097 * i386-tdep.c (i386_frameless_signal_p): New function.
2098 (i386_frame_chain): Deal with frameless signals.
2099 (i386_sigtramp_saved_sp): New function.
2100 (i386_frame_saved_pc): Deal with frameless signals.
2101 (i386_saved_pc_after_call): Make sure the correct value is
2102 returned just after entry into a sigtramp.
2103 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2104 i386fbsd4_sc_sp_offset): New variables.
2105 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2106 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2107 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2108 similiar to what we already did for sc_pc_offset.
2109 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2110 tdep->sc_sp_offset.
2111
6f558d74
MK
2112 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2113
145564b7
ML
21142002-07-02 Michal Ludvig <mludvig@suse.cz>
2115
2116 * config/i386/tm-x86-64linux.h: New.
2117 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2118 definitions.
2119 * config/i386/nm-x86-64.h: Rename to ...
2120 * config/i386/nm-x86-64linux.h: ... this one.
2121 * config/i386/x86-64linux.mh: Reflect the above change.
2122
3a1e71e3
MK
21232002-07-01 Mark Kettenis <kettenis@gnu.org>
2124
21d0e8a4
MK
2125 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2126 with sigcontext_addr. Add sc_sp_offset.
2127 (i386bsd_sigtramp_saved_pc): Remove prototype.
2128 (i386bsd_sicontext_addr): Add prototype.
2129 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2130 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2131 (i386_svr4_sigtramp_saved_pc): Removed.
2132 (i386_svr4_sigcontext_addr): New function.
2133 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2134 Initialize tdep->sigcontext_addr instead. Initialize
2135 tdep->sc_pc_offset and tdep->sc_sp_offset.
2136 (i386_gdbarch_init): Likewise.
2137 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2138 any more.
2139 (i386bsd_sigtramp_saved_pc): Remove function.
2140 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2141 Initialize tdep->sigcontext_addr instead. Initialize
2142 tdep->sc_pc_offset.
2143 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2144 of tdep->sigtramp_saved_pc.
2145 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2146 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2147 instead.
2148
3a1e71e3
MK
2149 * i386-tdep.c (i386_frameless_function_invocation,
2150 i386_frame_num_args, i386_frame_init_saved_regs,
2151 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2152 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2153 i386_extract_return_value, i386_store_return_value,
2154 i386_extract_struct_value_address, i386_register_virtual_type,
2155 i386_register_convertible, i386_register_convert_to_virtual,
2156 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2157 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2158 static.
2159
52e9098c
MK
21602002-07-01 Mark Kettenis <kettenis@gnu.org>
2161
77b13a25
MK
2162 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2163
52e9098c
MK
2164 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2165 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2166 this macro. Include "value.h".
2167
1b372fff
AS
21682002-06-30 Aidan Skinner <aidan@velvet.net>
2169
2170 * ada-exp.tab.c: remove as it's a generated file
2171 * ada-lex.c: remove as it's a generated file
2172
9c5045b5
MK
21732002-06-30 Mark Kettenis <kettenis@gnu.org>
2174
4a93c5bb
MK
2175 * config/i386/tm-i386.h (struct frame_info, struct
2176 frame_saved_regs, struct value, struct type): Remove forward
2177 declarations.
2178
322d4fe0
MK
2179 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2180 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2181 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2182 (FILL_FPXREGSET): Define.
2183
fdd8263d
MK
2184 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2185
482e577b
MK
2186 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2187 i[3456]86-*-netbsd* case.
2188 * config/i386/tm-obsd.h: Removed.
2189 * config/i386/obsd.mt: Removed.
2190 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2191 core-aout.o.
2192 (MH_CFLAGS): Add -DYYDEBUG=0.
2193
6916549a
MK
2194 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2195 i386nbsd_sc_pc_offset on OpenBSD too.
2196
9c5045b5
MK
2197 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2198 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2199 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2200 define.
2201 * i386bsd-tdep.c: Include "arch-utils.h".
2202 (i386bsd_aout_in_solib_call_trampoline): New function.
2203 (i386bsd_init_abi): Set in_solib_call_trampoline to
2204 i386bsd_aout_in_solib_call_trampoline.
2205 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2206 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2207
aa84d1bb
AC
22082002-06-28 Andrew Cagney <ac131313@redhat.com>
2209
2210 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2211 (struct obstack, struct bcache): Add opaque declarations.
2212 * Makefile.in (macrotab_h): Update
2213
b4d83933
AC
22142002-06-28 Andrew Cagney <ac131313@redhat.com>
2215
2216 * blockframe.c (generic_find_dummy_frame): Change return type to
2217 ``struct regcache''.
2218 (struct dummy_frame): Replace field ``registers'' with regcache, a
2219 struct regcache object.
2220 (generic_find_dummy_frame): Update.
2221 (generic_push_dummy_frame): Update. Use regcache_xfree,
2222 regcache_xmalloc and regcache_cpy.
2223 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2224 regcache_xfree.
2225 (deprecated_generic_find_dummy_frame): Update.
2226 (generic_read_register_dummy): Update. Use
2227 regcache_read_as_address.
2228 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2229 (generic_get_saved_register): Update. Use regcache_read.
2230
08c0b5bc
AC
22312002-06-28 Andrew Cagney <ac131313@redhat.com>
2232
2233 * Makefile.in (objfiles_h): Add $(bcache_h).
2234 * objfiles.h: Include "bcache.h".
2235
2236 * Makefile.in (symtab_h): Remove $(bcache_h).
2237 * symtab.h: Do not include "bcache.h".
2238
1f89801a
AC
22392002-06-28 Andrew Cagney <ac131313@redhat.com>
2240
2241 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2242 generic_func_frame_chain_valid.
2243
b9644b58
DB
22442002-06-28 David O'Brien <obrien@FreeBSD.org>
2245
2246 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2247 * config/i386/tm-fbsd.h: Likewise.
2248
dd486634
AC
22492002-06-28 Andrew Cagney <ac131313@redhat.com>
2250
2251 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2252 generic_unwind_get_saved_register.
2253
0b434a00
AC
22542002-06-27 Andrew Cagney <ac131313@redhat.com>
2255
2256 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2257 * regcache.c (supply_register): Add missing argument to
2258 register_buffer call.
2259
f30e5a77
AC
22602002-06-27 Andrew Cagney <ac131313@redhat.com>
2261
2262 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2263 Solaris /bin/grep does not not like it. From Peter Schauer.
2264
9f064c95
TT
22652002-06-26 Tom Tromey <tromey@redhat.com>
2266
2267 * command.h (add_setshow_cmd): Declare.
2268 (add_setshow_cmd_full): Declare.
2269 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2270 returns void. Use add_setshow_cmd_full.
2271 (add_setshow_cmd_full): New function.
2272 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2273 (add_setshow_boolean_cmd): Likewise.
2274
099c7589
JT
22752002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2276
2277 * config/vax/tm-vax.h: Protect from multiple inclusion.
2278 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2279 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2280 * config/vax/tm-vaxbsd.h: ...here. New file.
2281 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2282
1d049c5e
JT
22832002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2284
2285 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2286 (BELIEVE_PCC_PROMOTION): Remove.
2287 (AP_REGNUM): Move to...
2288 * config/vax/nm-vax.h: ...here.
2289 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2290 (vax_breakpoint_from_pc): New function.
2291 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2292 and gdbarch_believe_pcc_promotion.
2293
4791e091
JT
22942002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2295
2296 * Makefile.in (vax_tdep_h): Define.
2297 (vax-tdep.o): Use $(vax_tdep_h).
2298 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2299 (vax_dump_tdep): New function.
2300 (_initialize_vax_tdep): Register vax_dump_tdep.
2301 * vax-tdep.h: Include osabi.h.
2302 (struct gdbarch_tdep): New.
2303
da130f98
AC
23042002-06-26 Andrew Cagney <cagney@redhat.com>
2305
2306 * frame.h (deprecated_generic_find_dummy_frame): Rename
2307 generic_find_dummy_frame.
2308 * blockframe.c (generic_find_dummy_frame): Make static.
2309 (deprecated_generic_find_dummy_frame): New function.
2310 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2311 generic_find_dummy_frame with deprecated_find_dummy_frame.
2312 (sh64_nofp_frame_init_saved_regs): Ditto.
2313 (sh_fp_frame_init_saved_regs): Ditto.
2314 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2315 (s390_frame_chain): Ditto.
2316 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2317
6300c360
GS
23182002-06-26 Grace Sainsbury <graces@redhat.com>
2319
2320 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2321 gdbarch vector are at the top.
2322 (NUM_REGS): Remove.
2323 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2324 (FRAME_ARGS_ADDRESS): Remove.
2325 (FRAME_LOCALS_ADDRESS): Remove.
2326 (FRAME_NUM_ARGS): Remove.
2327 (FRAME_ARGS_SKIP): Remove.
2328 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2329 (m68k_gdbarch_init): Add gdbarch initializations for macros
2330 undefined in tm-m68k.h
2331
1c617db8
GS
23322002-06-26 Grace Sainsbury <graces@redhat.com>
2333
2334 * monitor.h: Add the function regname to monitor_ops
2335 structure. This way NUM_REGS does not have to be a constant.
2336 * monitor.c (monitor_fetch_register): Added support for regname
2337 function. The function is called if the array regnames is NULL.
2338 (monitor_store_register): Same.
da130f98
AC
2339 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2340 regnames array.
1c617db8
GS
2341 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2342 cpu32bug_cmds.regname to point to new function.
2343 * abug-rom.c (abug_regname): Same as above.
2344 (init_abug_cmds): Same.
2345 * dbug-rom.c (dbug_regname): Same as above.
2346 (init_dbug_cmds): Same.
2347 * remote-est.c (est_regname): Same.
2348 (init_est_cmds): Same.
2349 * rom68k-rom.c (rom68k_regname): Same.
2350 (init_rom68k_cmds): Same.
2351
ea9365bb
TT
23522002-06-25 Tom Tromey <tromey@redhat.com>
2353
2354 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2355
72cec141
AC
23562002-06-25 Andrew Cagney <cagney@redhat.com>
2357
2358 * infrun.c (stop_registers): Change variable's type to ``struct
2359 regcache'''.
2360 (xmalloc_inferior_status): Delete function.
2361 (free_inferior_status): Delete function.
2362 (normal_stop): Use regcache_cpy.
2363 (struct inferior_status): Change type of fields ``stop_registers''
2364 and ``registers'' to ``struct regcache''.
2365 (write_inferior_status_register): Use regcache_write.
2366 (save_inferior_status): Instead of calling
2367 xmalloc_inferior_status, allocate the inf_status buffer directly.
2368 Use regcache_dup_no_passthrough and regcache_dup to save the
2369 buffers.
2370 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2371 Replace the stop_registers regcache instead of overriding it. Use
2372 regcache_xfree. Instead of calling free_inferior_status, xfree
2373 the buffer directly.
2374 (discard_inferior_status): Use regcache_xfree. Instead of calling
2375 free_inferior_status, xfree the buffer directly.
2376 (build_infrun): Use regcache_xmalloc.
2377 (_initialize_infrun): Delete redundant call to build_infrun.
2378
2379 * Makefile.in (infcmd.o): Add $(regcache_h).
2380
2381 * infcmd.c: Include "regcache.h".
2382 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2383 obtain the address of `stop_registers' register buffer.
2384 (print_return_value): Ditto.
2385
2386 * inferior.h (struct regcache): Add opaque declaration.
2387 (stop_registers): Change variable's declared type to ``struct
2388 regcache''.
2389
defc6f8c
TT
23902002-06-24 Tom Tromey <tromey@redhat.com>
2391
c0e624e7
TT
2392 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2393 * target.c (initialize_targets): Fixed typo in
2394 trust-readonly-sections `show' documentation.
2395
defc6f8c
TT
2396 * main.c: Marked all strings with _().
2397
2b236d82
DH
23982002-06-24 Don Howard <dhoward@redhat.com>
2399
2400 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2401 that means max CORE_ADDR+1.
2402 (lookup_mem_region): Ditto.
2403 (mem_info_command): Ditto.
2404
942dc0e9
GS
24052002-06-24 Grace Sainsbury <graces@redhat.com>
2406
2407 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2408 (REGISTER_BYTES_OK): Remove.
2409 (REGISTER_BYTES): Remove.
2410 (STORE_STRUCT_RETURN): Remove.
2411 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2412 (STORE_RETURN_VALUE): Remove.
2413 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2414 (FRAME_CHAIN): Remove.
2415 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2416 (FRAME_SAVED_PC): Remove.
2417 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2418 (m68k_store_struct_return): Add.
2419 (m68k_deprecated_extract_return_value): Add.
2420 (m68k_deprecated_extract_struct_value_address): Add.
2421 (m68k_store_return_value): Add.
2422 (m68k_frame_chain): Add.
2423 (m68k_frameless_function_invocation): Add.
2424 (m68k_frame_saved_pc): Add.
2425 (m68k_gdbarch_init): added set_gdbarch calls for new
2426 functions and deleted macros.
2427
03c30d4d
TT
24282002-06-23 Tom Tromey <tromey@redhat.com>
2429
2430 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2431 (ALLDEPFILES): Likewise.
2432 (udiheaders): Removed.
2433 (udip2soc.o): Likewise.
2434 (udi2go32.o): Likewise.
2435 (udr.o): Likewise.
2436 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2437
37e71372
AC
24382002-06-22 Andrew Cagney <ac131313@redhat.com>
2439
06a6ac57
AC
2440 * infrun.c (_initialize_infrun): Delete unnecessary call to
2441 build_infrun.
2442
37e71372
AC
2443 * regcache.h: Update comments describing the regcache_cpy family
2444 of functions.
2445 (regcache_save, regcache_restore): Delete declaration.
2446 (regcache_save_no_passthrough): Delete declaration.
2447 (regcache_restore_no_passthrough): Delete declaration.
2448 * regcache.c (regcache_save): Delete function.
2449 (regcache_save_no_passthrough): Delete function.
2450 (regcache_restore): Delete function.
2451 (regcache_restore_no_passthrough): Delete function.
2452
78f6d055
AC
24532002-06-21 Andrew Cagney <ac131313@redhat.com>
2454
2455 * config/m68k/tm-m68k.h: Fix typo.
2456 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2457 (m68k_frame_init_saved_regs): Declare.
2458
78b119cb
JB
24592002-06-21 Jim Blandy <jimb@redhat.com>
2460
2461 Remove some vestiges of Harris 88k support.
2462 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2463 register numbering quirk.
2464 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2465 odd symbols occurring in Harris 88k ELF targets.
2466
0fbb3da7
TT
24672002-06-21 Tom Tromey <tromey@redhat.com>
2468
2469 * gdb_locale.h: New file.
2470 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2471 (defs_h): Added gdb_locale.h.
2472 * configure, config.in: Rebuilt.
2473 * configure.in (PACKAGE): Define.
2474 * defs.h: Include gdb_locale.h.
2475 * main.c (captured_main): Call setlocale, bindtextdomain,
2476 textdomain.
2477
456f8b9d
DB
24782002-06-21 Dave Brolley <brolley@redhat.com>
2479
2480 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2481 * config/frv/frv.mt: New file.
2482 * config/frv/tm-frv.h: New file.
2483 * configure.tgt: Support frv-*-*.
2484 * Makefile.in (frv-tdep.o): New target.
2485 * frv-tdep.c: New file.
2486 * NEWS: Mention frv.
2487
cdd463f9
DB
24882002-06-21 Dave Brolley <brolley@redhat.com>
2489
2490 * MAINTAINERS: Add self to "Write After Approval" list.
2491
5d3ed2e3
GS
24922002-06-21 Grace Sainsbury <graces@redhat.com>
2493
2494 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2495 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2496 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2497 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2498 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2499
2500 * m68k-tdep.c: Include arch-utils.h
2501 (m68k_register_raw_size): Add.
2502 (m68k_register_virtual_size): Add.
2503 (m68k_register_virtual_type): Add.
2504 (m68k_register_name): Add.
2505 (m68k_stack_align): Add.
2506 (m68k_register_byte): Add.
2507 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2508 tm-m68k.h.
2509
7f8e7424
GS
25102002-06-21 Grace Sainsbury <graces@redhat.com>
2511
a2c6a6d5 2512 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2513 m68k_find_saved_regs.
2514 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2515 references to it with frame->saved_regs.
7f8e7424
GS
2516 (m68k_gdbarch_init): Added function calls to initialize the
2517 gdbarch structure.
a2c6a6d5
GS
2518 (m68k_fix_call_dummy): Add.
2519 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2520 (CALL_DUMMY): Remove.
2521 (CALL_DUMMY_LENGTH): Remove.
2522 (CALL_DUMMY_START_OFFSET): Remove.
2523 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2524 (FIX_CALL_DUMMY): Remove.
2525 (PUSH_DUMMY_FRAME): Remove.
2526 (POP_FRAME): Remove.
7f8e7424 2527
f461f5cf
PM
25282002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2529
2530 * parse.c (parse_fprintf): New function used to avoid calls to
2531 fprintf in bison parser generated debug code.
2532 * parser-defs.h: Declaration of new parse_fprintf function.
2533 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2534 Set YYDEBUG to 1 by default.
2535 Set YYFPRINTF as parse_fprintf.
2536
7f0c12ed
ML
25372002-06-21 Michal Ludvig <mludvig@suse.cz>
2538
2539 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2540 encoding anymore.
2541 (pointer_encoding, enum ptr_encoding): New.
2542 (execute_cfa_program): Take care about pointer encoding.
2543 (dwarf2_build_frame_info): Only call parse_frame_info for
2544 .debug_frame and .eh_frame.
2545 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2546 fixed augmentation handling, added relative addressing,
2547 ignore duplicate FDEs. Added comments.
19d833a2 2548 * dwarf2cfi.c: Reindented.
7f0c12ed 2549
87c4a039
EZ
25502002-06-20 Elena Zannoni <ezannoni@redhat.com>
2551
2552 * event-top.c (command_handler): Don't use space_at_cmd_start
2553 unless there is sbrk() on the host. Assign time and space data
2554 to union fields of the appropriate length.
2555
1cf877ad
ML
25562002-06-20 Michal Ludvig <mludvig@suse.cz>
2557
2558 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2559 x86_64_register_name. Return type changed to 'const char *'.
2560 (x86_64_register_name2nr): Rename to x86_64_register_number.
2561 (x86_64_gdbarch_init): Update to reflect the change.
2562 * x86-64-tdep.h: Ditto.
2563 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2564 (supply_fpregset): Ditto.
2565
3fadccb3
AC
25662002-06-19 Andrew Cagney <cagney@redhat.com>
2567
2568 * regcache.h: Update copyright.
2569 (struct regcache, struct gdbarch): Add opaque declarations.
2570 (current_regcache): Declare global variable.
2571 (regcache_read, regcache_write): Add gdbarch parameter.
2572 (regcache_save, regcache_save_no_passthrough)
2573 (regcache_restore, regcache_restore_no_passthrough)
2574 (regcache_dup, regcache_dup_no_passthrough)
2575 (regcache_cpy, regcache_cpy_no_passthrough)
2576 (deprecated_grub_regcache_for_registers)
2577 (deprecated_grub_regcache_for_register_valid)
2578 (regcache_valid_p): Add function declarations.
2579
2580 * regcache.c: Update copyright.
2581 (regcache_descr_handle): New global variable.
2582 (struct regcache_descr): Define.
2583 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2584 (regcache_descr, xfree_regcache_descr): New functions.
2585 (struct regcache): Define.
2586 (regcache_xmalloc, regcache_xfree): New functions.
2587 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2588 (regcache_dup, regcache_dup_no_passthrough): New functions.
2589 (regcache_valid_p, regcache_read_as_address): New functions.
2590 (deprecated_grub_regcache_for_registers): New function.
2591 (deprecated_grub_regcache_for_register_valid): New function.
2592 (current_regcache): New global variable.
2593 (register_buffer): Add regcache parameter. Update calls.
2594 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2595 (read_register_gen, write_register_gen): Update register_buffer
2596 call. Test for legacy_p instead of gdbarch_register_read_p or
2597 gdbarch_register_write_p.
2598 (regcache_collect): Update register_buffer call.
2599 (build_regcache): Rewrite. Use deprecated grub functions.
2600 (regcache_save, regcache_save_no_passthrough): New functions.
2601 (regcache_restore, regcache_restore_no_passthrough): New
2602 functions.
2603 (_initialize_regcache): Create the regcache_data_handle. Swap
2604 current_regcache global variable.
2605
2606 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2607 parameter to regcache_read and regcache_write calls.
2608 (sh4_register_read): Ditto.
2609 (sh64_pseudo_register_read): Ditto.
2610 (sh64_register_read): Ditto.
2611 (sh_pseudo_register_write): Ditto.
2612 (sh4_register_write): Ditto.
2613 (sh64_pseudo_register_write): Ditto.
2614 (sh64_register_write): Ditto.
2615
2616 * defs.h (XCALLOC): Define.
2617
152d9db6
GS
26182002-06-19 Grace Sainsbury <graces@redhat.com>
2619
2620 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2621 * m68k-tdep.c (m68k_gdbarch_init): Added.
2622 (m68k_dump_tdep): Added.
2623
170911c7
DJ
26242002-06-19 Daniel Jacobowitz <drow@mvista.com>
2625
2626 * ada-lang.c (fill_in_ada_prototype): Update comment.
2627
2e4ebe70
DJ
26282002-06-19 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2631 MIPS_ABI_LAST.
2632 (mips_abi_string, mips_abi_strings): New.
2633 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2634 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2635 tdep->mips_abi_string. Honor mips_abi_string. Default to
2636 O32 if no ABI is found.
2637 (mips_dump_tdep): Use mips_abi_strings.
2638 (mips_abi_update): New function.
2639 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2640 ``set mips abi'' and ``show mips abi''. Check the size of
2641 mips_abi_strings.
2642
16775908
AC
26432002-06-19 Andrew Cagney <cagney@redhat.com>
2644
2645 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2646 constant.
2647
5051bfa4 26482002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2649
5051bfa4
JB
2650 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2651 current frame using only the first stack size adjustment. All
2652 subsequent size adjustments are not considered to be part of
2653 the "static" part of the current frame.
2654 Compute the address of the saved registers relative to the
2655 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2656 in use in this frame.
2657
56468235
DH
26582002-06-18 Don Howard <dhoward@redhat.com>
2659
2660 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2661 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2662 suggesting this solution.
2663
0b624158
AC
26642002-06-18 Andrew Cagney <ac131313@redhat.com>
2665
2666 * config/romp/xm-rtbsd.h: Delete file.
2667 * config/romp/rtbsd.mh: Delete file.
2668
221ea385
KS
26692002-06-18 Keith Seitz <keiths@redhat.com>
2670
2671 * breakpoint.c (condition_command): Post breakpoint_modify
2672 when a condition is added to an existing breakpoint.
2673 (commands_command): Likewise for commands.
2674 (set_ignore_count): Likewise for ignore counts.
2675 If no tty, do not simply return, still need to send event
2676 notification.
2677 (ignore_command): Only print a newline if the command came
2678 from a tty.
2679 Don't call breakpoints_changed, since this is now properly
2680 handled by set_ignore_count.
2681
5402eed1
AC
26822002-06-18 Andrew Cagney <cagney@redhat.com>
2683
2684 * MAINTAINERS: Note that cris-elf target can be compiled with
2685 -Werror.
2686 * cris-tdep.c (cris_register_name): Make return type constant.
2687 (cris_breakpoint_from_pc): Ditto.
2688
cc22880b
ML
26892002-06-18 Michal Ludvig <mludvig@suse.cz>
2690
2691 * frame.h (struct frame_info): Change type of context to
2692 'struct context'.
2693
fa88f677
AC
26942002-06-17 Andrew Cagney <cagney@redhat.com>
2695
2696 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2697 pointer.
2698 * gdbarch.h, gdbarch.c: Regenerate.
2699 * config/mips/tm-mips.h (mips_register_name): Update.
2700 * i386-tdep.h (i386_register_name): Update.
2701 * mips-tdep.c (mips_register_name): Update
2702 * alpha-tdep.c (alpha_register_name): Update.
2703 * arch-utils.c (legacy_register_name): Update.
2704 * arch-utils.h (legacy_register_name): Update.
2705 * avr-tdep.c (avr_register_name): Update.
2706 * ia64-tdep.c (ia64_register_name): Update.
2707 * i386-tdep.c (i386_register_name): Update.
2708 * sparc-tdep.c (sparc32_register_name): Update.
2709 (sparc64_register_name): Update.
2710 (sparclite_register_name): Update.
2711 (sparclet_register_name): Update.
2712 * sh-tdep.c (sh_generic_register_name): Update.
2713 (sh_sh_register_name): Update.
2714 (sh_sh3_register_name): Update.
2715 (sh_sh3e_register_name): Update.
2716 (sh_sh_dsp_register_name): Update.
2717 (sh_sh3_dsp_register_name): Update.
2718 (sh_sh4_register_name): Update.
2719 (sh_sh64_register_name): Update.
2720 * s390-tdep.c (s390_register_name): Update.
2721 * rs6000-tdep.c (rs6000_register_name): Update.
2722 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2723 (ns32k_register_name_32382): Update.
2724 * d10v-tdep.c (d10v_ts2_register_name): Update.
2725 (d10v_ts3_register_name): Update.
2726 * xstormy16-tdep.c (xstormy16_register_name): Update.
2727 * vax-tdep.c (vax_register_name): Update.
2728 * v850-tdep.c (v850_register_name): Update.
2729 * m68hc11-tdep.c (m68hc11_register_name): Update.
2730 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2731 (am33_register_name): Update.
2732
ea1e7ef6
GS
27332002-06-17 Grace Sainsbury <graces@redhat.com>
2734
2735 * m68k-tdep.c: Reindented.
2736
9b02dd1b
AC
27372002-06-17 Andrew Cagney <ac131313@redhat.com>
2738
2739 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2740 list of predefined types.
2741
8758dec1
MK
27422002-06-16 Mark Kettenis <kettenis@gnu.org>
2743
b6197528
MK
2744 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2745 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2746 REGISTER_CONVERT_TO_RAW): Remove defines.
2747 (i386_register_virtual_type, i386_register_convertible,
2748 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2749 Remove prototypes.
2750 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2751 macros mentioned above.
2752
82b47e62
MK
2753 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2754 (i386lynx_saved_pc_after_call): Remove prototype.
2755 * i386ly-tdep.c: Include "i386-tdep.h".
2756 (i386lynx_saved_pc_after_call): Make static. Use
2757 read_memory_nobpt instead of read_memory. Use
2758 read_memory_unsigned_integer instead of read_memory_integer.
2759 (i386lynx_init_abi): New function.
2760 (i386lynx_coff_osabi_sniffer): New function.
2761 (_initialize_i386bsd_tdep): New function.
2762
8758dec1
MK
2763 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2764 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2765 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2766 (i386_fix_call_dummy): Remove prototype.
2767 * i386-tdep.c (i386_call_dummy_words): New variable.
2768 (i386_gdbarch_init): Adjust for removal of the
2769 macros mentioned above.
2770
e9e68a56
AC
27712002-06-15 Andrew Cagney <ac131313@redhat.com>
2772
2773 * command.h (add_setshow_auto_boolean_cmd): Replace
2774 add_set_auto_boolean_cmd.
2775 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2776 add_set_auto_boolean_cmd.
2777 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2778 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2779 mask-address'' command.
2780 (show_mask_address): Add cmd parameter.
2781 * remote.c (add_packet_config_cmd): Update. Change type of
2782 set_func and show_func to cmd_sfunc_ftype.
2783 (_initialize_remote): Update `set remote Z-packet'
2784 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2785 (show_remote_protocol_e_packet_cmd): Ditto.
2786 (show_remote_protocol_E_packet_cmd): Ditto.
2787 (show_remote_protocol_P_packet_cmd): Ditto.
2788 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2789 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2790 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2791 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2792 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2793 (show_remote_protocol_Z_packet_cmd): Ditto.
2794 (show_remote_protocol_binary_download_cmd): Ditto.
2795 (show_remote_cmd): Pass NULL to all of above.
2796
fc08ec52
MK
27972002-06-15 Mark Kettenis <kettenis@gnu.org>
2798
2799 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2800 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2801 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2802 POP_FRAME): Remove defines.
2803 (i386_push_arguments, i386_store_struct_return,
2804 i386_extract_return_value, i386_store_return_value,
2805 i386_extract_struct_value_address, i386_push_dummy_frame,
2806 i386_pop_frame): Renove prototypes.
2807 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2808 macros mentioned above.
2809
e707bbc2
AC
28102002-06-15 Andrew Cagney <ac131313@redhat.com>
2811
2812 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2813 add_set_boolean_cmd.
2814 (add_setshow_cmd): New function.
2815 * command.h (add_setshow_boolean_cmd): Replace
2816 add_set_boolean_cmd.
2817 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2818 and ``set rdiromatzero''.
2819 * maint.c (_initialize_maint_cmds): Update commented out code.
2820 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2821 * target.c (initialize_targets): Update `set
2822 trust-readonly-sections'.
2823 * remote.c (_initialize_remote): Update `set remotebreak'.
2824
42fdc8df
MK
28252002-06-15 Mark Kettenis <kettenis@gnu.org>
2826
93924b6b
MK
2827 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2828 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2829 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2830 fit into multi-arch framework.
2831 (i386_breakpoint_from_pc): New function.
2832 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2833 above.
2834
42fdc8df
MK
2835 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2836 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2837 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2838 (i386_frameless_function_invocation, i386_frame_num_args,
2839 i386_frame_init_saved_regs): Remove prototypes.
2840 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2841 macros mentioned above.
2842
9773a94b
AC
28432002-06-15 Andrew Cagney <ac131313@redhat.com>
2844
2845 * cli/cli-decode.c (set_cmd_cfunc): Update.
2846 (set_cmd_sfunc): Update.
2847 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2848 (set_cmd_sfunc, set_cmd_cfunc): Update.
2849 * cli/cli-decode.h: Update.
2850
6e157172
MK
28512002-06-15 Mark Kettenis <kettenis@gnu.org>
2852
2853 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2854 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2855
7f19b9a2
AC
28562002-06-15 Andrew Cagney <ac131313@redhat.com>
2857
2858 * defs.h (auto_boolean): Declare enum.
2859 * command.h (cmd_auto_boolean): Delete enum.
2860 * mips-tdep.c (mask_address_var): Update.
2861 (mips_mask_address_p): Update.
2862 (show_mask_address): Update.
2863 * remote.c (struct packet_config): Update.
2864 (update_packet_config): Update.
2865 (show_packet_config_cmd): Update.
2866 (packet_ok): Update.
2867 (add_packet_config_cmd): Update.
2868 (_initialize_remote):
2869 * command.h: Update.
2870 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2871 (do_setshow_command): Update.
2872 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2873 * cli/cli-decode.h: Update.
2874
1cf88de5
MK
28752002-06-15 Mark Kettenis <kettenis@gnu.org>
2876
22ba8cf2
MK
2877 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2878 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2879 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2880 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2881 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2882 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2883
762c5349
MK
2884 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2885 list of DJGPP COFF targets.
2886
091198bb
MK
2887 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2888 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2889 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2890 (FP0_REGNUM): Remove define.
2891 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2892 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2893 (i386_register_virtual_size): Remove protoype.
2894 * i386-tdep.c (i386_register_virtual_size): Removed.
2895 (i386_extract_return_value, i386_store_return_value): Use
2896 FP0_REGNUM instead of NUM_FREGS to determine whether the
2897 floating-point registers are available.
2898 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2899 Adjust for removal of macros mentioned above.
2900
29012002-06-15 Mark Kettenis <kettenis@gnu.org>
2902
fcc9bf01
MK
2903 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2904 comments.
2905 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2906 Remove prototypes.
2907 (supply_gregset, fill_gregset): Remove use of register keyword and
2908 remove declaration for regmap. Use I386_NUM_GREGS instead of
2909 NUM_REGS and NUM_FREGS.
2910 (FPREGSET_FSAVE_OFFSET): Remove.
2911 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2912 NUM_FREGS to determine whether the floating-point registers are
2913 available.
2914
65e78234
MK
2915 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2916 gnu_store_registers): Replace usage of NUM_GREGS with
2917 I386_NUM_GREGS.
2918
98df6387
MK
2919 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2920 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2921 usage of NUM_GREGS with I386_NUM_GREGS.
2922
099a9414
MK
2923 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2924
57976e88
MK
2925 * i386bsd-nat.c: Include "i386-tdep.h".
2926 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2927 I386_NUM_GREGS.
2928
b335f4a6
MK
2929 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2930 and associated comment. They no longer make any sense, since we
2931 don't use this file anymore on Linux.
2932
1cf88de5
MK
2933 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2934 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2935 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2936 elements in these arrays.
2937 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2938 MAX_NUM_REGS.
2939
daa66587
MK
29402002-06-15 Mark Kettenis <kettenis@gnu.org>
2941
2942 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2943 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2944
26e9b323
AC
29452002-06-14 Andrew Cagney <cagney@redhat.com>
2946
2947 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2948 EXTRACT_RETURN_VALUE.
2949 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2950 EXTRACT_STRUCT_VALUE_ADDRESS.
2951 * gdbarch.h, gdbarch.c: Regenerate.
2952
2953 * values.c (value_being_returned): Handle
2954 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2955 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2956
2957 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2958 * arm-tdep.c (arm_gdbarch_init): Update.
2959 * avr-tdep.c (avr_gdbarch_init): Update.
2960 * cris-tdep.c (cris_gdbarch_init): Update.
2961 * d10v-tdep.c (d10v_gdbarch_init): Update.
2962 * ia64-tdep.c (ia64_gdbarch_init): Update.
2963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2964 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2965 * s390-tdep.c (s390_gdbarch_init): Update.
2966 * sh-tdep.c (sh_gdbarch_init): Update.
2967 * s390-tdep.c (s390_gdbarch_init): Update.
2968 * sparc-tdep.c (sparc_gdbarch_init): Update.
2969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2970 * v850-tdep.c (v850_gdbarch_init): Update.
2971 * vax-tdep.c (vax_gdbarch_init): Update.
2972 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2974
2975 * config/arc/tm-arc.h: Update.
2976 * config/d30v/tm-d30v.h: Update.
2977 * config/fr30/tm-fr30.h: Update.
2978 * config/h8300/tm-h8300.h: Update.
2979 * config/h8500/tm-h8500.h: Update.
2980 * config/i386/tm-i386.h: Update.
2981 * config/i386/tm-ptx.h: Update.
2982 * config/i386/tm-symmetry.h: Update.
2983 * config/i960/tm-i960.h: Update.
2984 * config/m32r/tm-m32r.h: Update.
2985 * config/m68k/tm-delta68.h: Update.
2986 * config/m68k/tm-linux.h: Update.
2987 * config/m68k/tm-m68k.h: Update.
2988 * config/m88k/tm-m88k.h: Update.
2989 * config/mcore/tm-mcore.h: Update.
2990 * config/mips/tm-mips.h: Update.
2991 * config/mn10200/tm-mn10200.h: Update.
2992 * config/pa/tm-hppa.h: Update.
2993 * config/pa/tm-hppa64.h: Update.
2994 * config/sparc/tm-sp64.h: Update.
2995 * config/sparc/tm-sparc.h: Update.
2996 * config/sparc/tm-sparclet.h: Update.
2997 * config/z8k/tm-z8k.h: Update.
2998
5179e78f
AC
29992002-06-14 Andrew Cagney <cagney@redhat.com>
3000
3001 * Makefile.in (i386_linux_tdep_h): Define.
3002 (i386_tdep_h, i387_tdep_h): Define.
3003 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3004 $(i386_tdep_h) and $(i387_tdep_h).
3005 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3006
8201327c
MK
30072002-06-14 Mark Kettenis <kettenis@gnu.org>
3008
edf393ac
MK
3009 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3010 Already covered by the default.
3011
896fb97d
MK
3012 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3013 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3014 (i386_gdbarch_init): Initialize long_double_format and long_double
3015 bit.
3016
8201327c
MK
3017 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3018 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3019 Move these to ...
3020 * config/i386/i386sol2.mh: ... here.
3021 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3022 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3023 (SIGCONTEXT_PC_OFFSET): Remove define.
3024 (IN_SIGTRAMP): Remove define.
3025 * i386-sol2-tdep.c: New file.
3026
3027 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3028 * config/i386/tm-i386nw.h: Removed.
3029
3030 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3031 USE_STRUCT_CONVENTION): Remove defines.
3032 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3033 (get_longjmp_target): Remove prototype.
3034 (IN_SIGTRAMP): Remove define.
3035 (i386bsd_in_sigtramp): Remove prototype.
3036 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3037 function. Update comment accordingly
3038 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3039 (FRAME_SAVED_PC): Remove define.
3040 (i386bsd_frame_saved_pc): Remove prototype.
3041 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3042 GET_LONGJMP_TARGET): Remove defines.
3043 (get_longjmp_target): Remove prototype.
3044 (IN_SIGTRAMP): Remove define.
3045 (i386bsd_in_sigtramp): Remove prototype.
3046 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3047 function. Update comment accordingly
3048 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3049 (FRAME_SAVED_PC): Remove define.
3050 (i386bsd_frame_saved_pc): Remove prototype.
3051 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3052 Remove prototype.
3053 (USE_STRUCT_CONVENTION): Remove prototype.
3054 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3055 declaration.
3056 (_initialize_i386bsd_nat): Revise logic to determine some
3057 constants at compile time when compiling a native GDB. Warn if
3058 things don't match up with what we expect.
3059 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3060 Remove variables.
3061 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3062 to use date stored in `struct gdbarch_tdep'.
3063 (i386bsd_sigcontext_offset): Remove varaible.
3064 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3065 stored in `struct gdbarch_tdep'.
3066 (i386bsd_frame_saved_pc): Make static.
3067 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3068 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3069 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3070 i386fbsd4_sc_pc_offset): New variables.
3071 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3072 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3073 functions.
3074 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3075 functions.
3076 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3077 Modify the value of i386fbsd_sigtramp_start and
3078 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3079 i386fbsd_sigtramp_end.
3080 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3081 function.
3082
3083 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3084 define to i386-linux-tdep.h.
3085 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3086 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3087 defines.
3088 (i386_linux_register_name, i386_linux_register_byte,
3089 i386_linux_register_raw_size): Remove prototypes.
3090 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3091 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3092 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3093 TARGET_WRITE_PC): Remove defines.
3094 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3095 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3096 i386_linux_write_pc): Remove prototypes.
3097 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3098 (get_longjmp_target): Remove prototype.
3099 * i386-linux-tdep.h: New file.
3100 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3101 * i386-linux-tdep.c: Include "i386-tdep.h" and
3102 "i386-linux-tdep.h".
3103 (i386_linux_register_name, i386_linux_register_byte,
3104 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3105 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3106 Make static.
3107 (i386_linux_init_abi): New function.
3108 (_initialize_i386_linux_tdep): New function.
3109
3110 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3111 (i386_saved_pc_after_call): Remove prototype.
3112 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3113 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3114 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3115 (i386_register_name, i386_stab_reg_to_regnum,
3116 i386_dwarf_reg_to_regnum): Remove prototypes.
3117 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3118 SIZEOF_SSE_REGS): Remove defines.
3119 (REGISTER_BYTES): Remove define.
3120 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3121 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3122 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3123 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3124 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3125 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3126 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3127 (get_longjmp_target): Remove prototype.
3128 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3129 (sigtramp_saved_pc): Remove define.
3130 (i386v4_sigtramp_saved_pc): Remove prototype.
3131 * config/i386/tm-go32.h (FRAME_CHAIN,
3132 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3133 (i386go32_frame_saved_pc): Remove prototype.
3134 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3135 (get_longjmp_target): Remove prototype.
3136 * i386-tdep.h: Include "osabi.h".
3137 (enum i386_abi): Removed.
3138 (enum struct_return): New enum.
3139 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3140 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3141 sc_pc_offset members.
3142 (i386_gdbarch_register_os_abi): Remove prototype.
3143 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3144 I386_SSE_NUM_REGS): New defines.
3145 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3146 I386_SSE_SIZEOF_REGS): New defines.
3147 (i386_register_name, i386_register_byte, i386_register_raw_size):
3148 New prototypes.
3149 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3150 (i386bsd_sigtramp_saved_pc): New prototype.
3151 * i386-tdep.c: Don't include "elf-bfd.h".
3152 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3153 i386_frame_chain, i386_saved_pc_after_call): Make static.
3154 (i386_frame_saved_pc): Rewrite to call architecture dependent
3155 function to deal with signal handlers. Make static.
3156 (i386go32_frame_saved_pc): Removed.
3157 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3158 Removed.
3159 (i386_get_longjmp_target): New function.
3160 (default_struct_convention, pcc_struct_convention,
3161 reg_struct_convention, valid_conventions, struct_convention): New
3162 variables.
3163 (i386_use_struct_convention): New function.
3164 (i386v4_sigtramp_saved_pc): Renamed to
3165 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3166 (i386_pc_in_sigtramp): New function.
3167 (i386_abi_names): Removed.
3168 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3169 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3170 Removed.
3171 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3172 i386_gdbarch_register_os_abi): Removed.
3173 (struct i386_abi_handler): Removed.
3174 (i386_abi_handler_list): Removed.
3175 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3176 functions.
3177 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3178 i386_nw_init_abi): New functions.
3179 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3180 Use set_gdbarch_xxx() calls instead of relying on macros for a
3181 number of calls.
3182 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3183 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3184 Register the various architecture variants defined in this file.
3185
ad2f7632
DJ
31862002-06-14 Daniel Jacobowitz <drow@mvista.com>
3187
3188 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3189 (struct main_type): Remove arg_types member. Update comments for
3190 struct field.
3191 (TYPE_ARG_TYPES): Remove.
3192 (TYPE_FN_FIELD_ARGS): Update.
3193 (smash_to_method_type): Update prototype.
3194
3195 * c-typeprint.c (cp_type_print_method_args): Take method type
3196 instead of argument list. Use new argument layout. Simplify.
3197 (c_type_print_args): Use new argument layout. Simplify.
3198 (c_type_print_base): Update call to cp_type_print_method_args.
3199 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3200 argument; use die->type instead. Update call to
3201 smash_to_method_type.
3202 (read_structure_scope): Update call to dwarf2_add_member_fn.
3203 * gdbtypes.c (allocate_stub_method): Update comment.
3204 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3205 Use new argument layout.
3206 (check_stub_method): Use new argument layout. Don't count
3207 void as an argument.
3208 (print_arg_types): Update comments. Use new argument layout.
3209 (recursive_dump_type): Don't print arg_types member.
3210 * hpread.c (hpread_read_struct_type): Use new argument layout.
3211 (fixup_class_method_type): Likewise.
3212 (hpread_type_lookup): Likewise.
3213 * stabsread.c (read_type): Update calls to read_args and
3214 smash_to_method_type.
3215 (read_args): Use new argument layout. Simplify.
3216 * valops.c (typecmp): Use new argument layout. Update parameters
3217 and comments. Simplify.
3218 (hand_function_call): Use new argument layout.
3219 (search_struct_method): Update call to typecmp.
3220 (find_overload_match): Use new argument layout.
3221
6da02953
DJ
32222002-06-13 Daniel Jacobowitz <drow@mvista.com>
3223
3224 * NEWS: Mention multithreaded debug support for gdbserver.
3225
519b2366
DJ
32262002-06-13 Daniel Jacobowitz <drow@mvista.com>
3227
3228 * MAINTAINERS: Mention NEWS.
3229
a7f48742
DJ
32302002-06-13 Daniel Jacobowitz <drow@mvista.com>
3231
3232 * gdbserver/regcache.c: Add comment.
3233
6c0d6680
DJ
32342002-06-13 Daniel Jacobowitz <drow@mvista.com>
3235
3236 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3237 (struct mips_objfile_private, compare_pdr_entries): New.
3238 (non_heuristic_proc_desc): Read the ".pdr" section if it
3239 is present.
3240
6529d2dd
AC
32412002-06-12 Andrew Cagney <ac131313@redhat.com>
3242
3243 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3244 (arm_debug): New static variable.
3245 (_initialize_arm_tdep): Add ``set debug arm'' command.
3246
26216b98
AC
32472002-06-12 Andrew Cagney <ac131313@redhat.com>
3248
3249 * Makefile.in (sim_arm_h): Define.
3250 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3251 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3252 (arm_register_sim_regno): New function, map an internal REGNUM
3253 onto a simulator register number.
3254 (arm_gdbarch_init): Set register_sim_regno.
3255
814b3ba0
AH
32562002-06-09 Aldy Hernandez <aldyh@redhat.com>
3257
3258 * MAINTAINERS: Add self.
3259
475b0867
JB
32602002-06-11 Jim Blandy <jimb@redhat.com>
3261
919d772c
JB
3262 * source.c (source_info): Mention whether the symtab has
3263 information about preprocessor macros.
3264
475b0867
JB
3265 Call the command `info macro', not `show macro'.
3266 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3267 Fix error message.
3268 (_initialize_macrocmd): Register `info_macro_command' in
3269 `infolist', not `showlist'.
3270
9e364162
DJ
32712002-06-11 Daniel Jacobowitz <drow@mvista.com>
3272
3273 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3274 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3275 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3276 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3277 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3278 unconditionally.
3279 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3280 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3281 (_initialize_mips_tdep): Remove dead code.
3282 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3283 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3284 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3285 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3286 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3287 MIPS_LAST_FP_ARG_REGNUM): Remove.
3288
32892002-06-11 Daniel Jacobowitz <drow@mvista.com>
3290
3291 * gdbserver/thread-db.c: New file.
3292 * gdbserver/proc-service.c: New file.
3293 * gdbserver/acinclude.m4: New file.
3294 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3295 proc-service.o, and thread-db.o.
3296 (linux-low.o): Add USE_THREAD_DB.
3297 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3298 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3299 * gdbserver/aclocal.m4: Regenerated.
3300 * gdbserver/config.in: Regenerated.
3301 * gdbserver/configure: Regenerated.
3302 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3303 thread_db.h, and linux/elf.h headrs.
3304 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3305 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3306 Check for -lthread_db and thread support.
3307 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3308 PowerPC, and SuperH.
3309 * gdbserver/i387-fp.c: Constify arguments.
3310 * gdbserver/i387-fp.h: Likewise.
3311 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3312 `struct inferior_info'. Remove PID member. Use generic inferior
3313 list header. All uses updated.
3314 (inferiors, signal_pid): Removed.
3315 (all_threads): New variable.
3316 (get_thread): Define.
3317 (add_inferior_to_list): New function.
3318 (for_each_inferior): New function.
3319 (change_inferior_id): New function.
3320 (add_inferior): Removed.
3321 (remove_inferior): New function.
3322 (add_thread): New function.
3323 (free_one_thread): New function.
3324 (remove_thread): New function.
3325 (clear_inferiors): Use for_each_inferior and free_one_thread.
3326 (find_inferior): New function.
3327 (find_inferior_id): New function.
3328 (inferior_target_data): Update argument type.
3329 (set_inferior_target_data): Likewise.
3330 (inferior_regcache_data): Likewise.
3331 (set_inferior_regcache_data): Likewise.
3332 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3333 (all_processes, stopping_threads, using_thrads)
3334 (struct pending_signals, debug_threads, pid_of): New.
3335 (inferior_pid): Replace with macro.
3336 (struct inferior_linux_data): Remove.
3337 (get_stop_pc, add_process): New functions.
3338 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3339 Use add_process and add_thread.
3340 (linux_attach_lwp): New function, based on old linux_attach. Use
3341 add_process and add_thread. Set stop_expected for new threads.
3342 (linux_attach): New function.
3343 (linux_kill_one_process): New function.
3344 (linux_kill): Kill all LWPs.
3345 (linux_thread_alive): Use find_inferior_id.
3346 (check_removed_breakpoints, status_pending_p): New functions.
3347 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3348 Update. Use WNOHANG. Wait for cloned processes also. Update process
3349 struct for the found process.
3350 (linux_wait_for_event): New function.
3351 (linux_wait): Use it. Support LWPs.
3352 (send_sigstop, wait_for_sigstop, stop_all_processes)
3353 (linux_resume_one_process, linux_continue_one_process): New functions.
3354 (linux_resume): Support LWPs.
3355 (REGISTER_RAW_SIZE): Remove.
3356 (fetch_register): Use register_size instead. Call supply_register.
3357 (usr_store_inferior_registers): Likewise. Call collect_register.
3358 Fix recursive case.
3359 (regsets_fetch_inferior_registers): Improve error message.
3360 (regsets_store_inferior_registers): Add debugging.
3361 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3362 (unstopped_p, linux_signal_pid): New functions.
3363 (linux_target_ops): Add linux_signal_pid.
3364 (linux_init_signals): New function.
3365 (initialize_low): Call it. Initialize using_threads.
3366 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3367 flag.
3368 (get_regcache): Fetch registers lazily. Add fetch argument
3369 and update all callers.
3370 (regcache_invalidate_one, regcache_invalidate): New
3371 functions.
3372 (new_register_cache): Renamed from create_register_cache.
3373 Return the new regcache.
3374 (free_register_cache): Change argument to a void *.
3375 (registers_to_string, registers_from_string): Call get_regcache
3376 with fetch flag set.
3377 (register_data): Make static. Pass fetch flag to get_regcache.
3378 (supply_register): Call get_regcache with fetch flag clear.
3379 (collect_register): Call get_regcache with fetch flag set.
3380 (collect_register_as_string): New function.
3381 * gdbserver/regcache.h: Update.
3382 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3383 stderr.
3384 Handle input interrupts while waiting for an ACK.
3385 (input_interrupt): Use signal_pid method.
3386 (getpkt): Flush after debug output and use stderr.
3387 (outreg): Use collect_register_as_string.
3388 (new_thread_notify, dead_thread_notify): New functions.
3389 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3390 and general_thread.
3391 (look_up_one_symbol): Flush after debug output.
3392 * gdbserver/server.c (step_thread, server_waiting): New variables.
3393 (start_inferior): Don't use signal_pid. Update call to mywait.
3394 (attach_inferior): Update call to mywait.
3395 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3396 (main): Don't fetch/store registers explicitly. Use
3397 set_desired_inferior. Support proposed ``Hs'' packet. Update
3398 calls to mywait.
3399 * gdbserver/server.h: Update.
3400 (struct inferior_list, struct_inferior_list_entry): New.
3401 * gdbserver/target.c (set_desired_inferior): New.
3402 (write_inferior_memory): Constify.
3403 (mywait): New function.
3404 * gdbserver/target.h: Update.
3405 (struct target_ops): New signal_pid method.
3406 (mywait): Removed macro, added prototype.
3407
3408 * gdbserver/linux-low.h (regset_func): Removed.
3409 (regset_fill_func, regset_store_func): New.
3410 (enum regset_type): New.
3411 (struct regset_info): Add type field. Use new operation types.
3412 (struct linux_target_ops): stop_pc renamed to get_pc.
3413 Add decr_pc_after_break and breakpoint_at.
3414 (get_process, get_thread_proess, get_process_thread)
3415 (strut process_info, all_processes, linux_attach_lwp)
3416 (thread_db_init): New.
3417
3418 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3419 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3420 (the_low_target): Add new members.
3421 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3422 (i386_store_fpxregset): Constify.
3423 (target_regsets): Add new kind identifier.
3424 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3425 (i386_set_pc): Add debugging.
3426 (i386_breakpoint_at): New function.
3427 (the_low_target): Add new members.
3428 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3429 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3430 (mips_breakpoint_at): New.
3431 (the_low_target): Add new members.
3432 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3433 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3434 (the_low_target): Add new members.
3435 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3436 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3437 (the_low_target): Add new members.
3438 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3439 identifier.
3440
23aa4c72
ML
34412002-06-11 Michal Ludvig <mludvig@suse.cz>
3442
3443 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3444 (unwind_tmp_obstack_free, parse_frame_info)
3445 (update_context, cfi_read_fp, cfi_write_fp)
3446 (cfi_frame_chain, cfi_init_extra_frame_info)
3447 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3448 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3449
70eb15a4
CV
34502002-06-11 Corinna Vinschen <vinschen@redhat.com>
3451
3452 * v850-tdep.c (v850_type_is_scalar): New function.
3453 (v850_use_struct_convention): Match current gcc implementation
3454 as close as possible.
3455 (v850_push_arguments): Fix stack_offset handling. Don't write
3456 struct_addr into register. This is done by v850_store_struct_return.
3457 (v850_extract_return_value): Care for structs.
3458 (v850_store_return_value): Ditto.
3459 (v850_store_struct_return): Actually write address.
3460
482a4d06
ML
34612002-06-11 Michal Ludvig <mludvig@suse.cz>
3462
3463 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3464 without debug information too.
3465
d855c300
AC
34662002-06-10 Andrew Cagney <ac131313@redhat.com>
3467
3468 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3469 Make multi-arch pure.
3470 * gdbarch.h, gdbarch.c: Re-generate.
3471 * arm-tdep.c (arm_print_float_info): Update.
3472 * arch-utils.h (default_print_float_info): Update.
3473 * arch-utils.c (default_print_float_info): Update.
3474 * infcmd.c (float_info): Update call.
3475
dd12a101
AC
34762002-06-10 Andrew Cagney <ac131313@redhat.com>
3477
3478 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3479 the front of the initialize list.
3480
101dcfbe
AC
34812002-06-10 Andrew Cagney <ac131313@redhat.com>
3482
3483 * infrun.c (struct inferior_status): Replace fields
3484 selected_frame_address and selected_level with field
3485 selected_frame_id.
3486 (save_inferior_status): Update. Use get_frame_id.
3487 (struct restore_selected_frame_args): Delete.
3488 (restore_selected_frame): Update. Use frame_find_by_id.
3489 (restore_inferior_status): Update.
3490
3491 * breakpoint.h (struct breakpoint): Change type of
3492 watchpoint_frame to frame_id.
3493 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3494 call to get_current_frame.
3495 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3496 get_current_frame.
3497 (watchpoint_check): Use frame_find_by_id.
3498
3499 * frame.h (record_selected_frame): Delete declaration.
3500 * stack.c (record_selected_frame): Delete function.
3501
3502 * frame.h (struct frame_id): Define.
3503 (get_frame_id): Declare.
3504 (frame_find_by_id): Declare.
3505 * frame.c (frame_find_by_id): New function.
3506 (get_frame_id): New function.
3507
304270b6
AV
35082002-06-10 Andrey Volkov <avolkov@transas.com>
3509
3510 * ser-e7kpc.c: Fix duplicated define and call of
3511 _initialize_ser_e7000pc
3512
2f2cf184
DJ
35132002-06-09 Daniel Jacobowitz <drow@mvista.com>
3514
3515 * signals/signals.c (target_signal_from_host): Fix #ifdef
3516 SIGRTMIN case.
3517 (do_target_signal_to_host): Likewise.
3518
caaa3122
DJ
35192002-06-09 Daniel Jacobowitz <drow@mvista.com>
3520
3521 * mips-tdep.c (mips_find_abi_section): New function.
3522 (mips_gdbarch_init): Call it.
3523
6ac5df3a
MK
35242002-06-09 Mark Kettenis <kettenis@gnu.org>
3525
3526 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3527 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3528 after Andrew's 2002-06-08 gdbarch change.
3529
82ea117a
MK
35302002-06-09 Mark Kettenis <kettenis@gnu.org>
3531
3532 * i386-linux-nat.c (suppy_gregset): Don't supply
3533 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3534 register cache.
3535 (fill_gregset): Don't fetch it under the same circumstances.
3536
3c25f8c7
AC
35372002-06-09 Andrew Cagney <cagney@redhat.com>
3538
3539 * Makefile.in (callback_h): Define.
3540 (remote_sim_h): Update path to remote-sim.h.
3541 (remote-rdp.o): Add $(callback_h).
3542 (remote-sim.o): Use $(callback_h).
3543 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3544 * remote-rdp.c: Include "gdb/callback.h".
3545
1029b7fa
MK
35462002-06-09 Mark Kettenis <kettenis@gnu.org>
3547
3548 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3549 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3550
616675d3
AC
35512002-06-08 Andrew Cagney <ac131313@redhat.com>
3552
a3efda28
AC
3553 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3554 * rdi-share/serpardr.c: Ditto.
3555 * rdi-share/unixcomm.c: Ditto.
3556 * rdi-share/serdrv.c: Ditto.
3557 * rdi-share/hostchan.h: Ditto.
3558 * rdi-share/hostchan.c: Ditto.
3559 * rdi-share/host.h: Ditto.
3560 * rdi-share/devsw.c: Ditto.
3561
c5f10366
AC
3562 * objfiles.h: Change type of obj_private to void pointer.
3563 * pa64solib.c: Update copyright. Don't include "assert.h", use
3564 strcmp instead of STREQ, use LONGEST, do not use PTR
3565 * somsolib.c: Ditto.
3566
616675d3
AC
3567 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3568 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3569 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3570
e4b415d9
AC
35712002-06-08 Andrew Cagney <ac131313@redhat.com>
3572
3573 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3574 (default_get_saved_register): Delete function.
3575 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3576 generic_unwind_get_saved_register.
3577 * gdbarch.h, gdbarch.c: Re-generate.
3578
ca0d0b52
AC
35792002-06-08 Andrew Cagney <ac131313@redhat.com>
3580
3581 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3582 generic_func_frame_chain_valid.
3583 * gdbarch.h, gdbarch.c: Re-generate.
3584 * blockframe.c (generic_func_frame_chain_valid): Only check
3585 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3586 passing FP to PC_IN_CALL_DUMMY.
3587 Fix PR gdb/360.
3588
76860b5f
AC
35892002-06-08 Andrew Cagney <ac131313@redhat.com>
3590
3591 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3592 (register_gdbarch_data): Initialize init_p.
3593 (gdbarch_data): Initialize data pointer using the init function.
3594 (init_gdbarch_data): Delete function.
3595 (gdbarch_update_p): Update.
3596 (initialize_non_multiarch): Update.
3597 (struct gdbarch): Add field initialized_p.
3598 * gdbarch.h, gdbarch.c: Re-generate.
3599
8dda9770
ML
36002002-06-07 Michal Ludvig <mludvig@suse.cz>
3601
3602 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3603 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3604 better do the things actually here.
3605 * x86-64-tdep.c (x86_64_register_name2nr): New.
3606 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3607 (x86_64_gdbarch_init): Respect the above change.
3608 * x86-64-tdep.h (x86_64_register_name2nr)
3609 (x86_64_register_nr2name): Add prototypes.
3610 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3611
3d79a47c
MS
36122002-06-06 Michael Snyder <msnyder@redhat.com>
3613
7bd91a28
MS
3614 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3615 Delete extra braces and re-indent.
3616 (d10v_store_return_value): Char return values
3d79a47c
MS
3617 must be shifted over by one byte in R0.
3618 (d10v_extract_return_value): Delete extra braces, re-indent.
3619
095a4c96
EZ
36202002-06-06 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3623 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3624 (d10v_integer_to_address): Rewrite.
3625 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3626 the d10v specific functions which take care of converting to the
3627 correct space.
3628
e8a77ca4
EZ
36292002-06-06 Elena Zannoni <ezannoni@redhat.com>
3630
3631 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3632 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3633
4f2e4a4f
AC
36342002-06-02 Andrew Cagney <ac131313@redhat.com>
3635
3636 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3637 includes.
3638 * config/tm-linux.h: Ditto.
3639 * config/alpha/tm-alphalinux.h: Ditto.
3640 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3641 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3642 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3643 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3644 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3645 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3646 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3647 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3648 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3649 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3650 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3651 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3652 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3653 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3654 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3655 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3656 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3657 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3658 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3659 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3660 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3661 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3662 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3663 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3664 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3665 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3666 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3667 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3668 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3669 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3670 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3671 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3672 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3673 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3674 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3675 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3676 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3677
ae2ab2ce
AS
36782002-05-04 Aidan Skinner <aidan@velvet.net>
3679
3680 * ada-exp.tab.c: New file
3681 * ada-exp.y: New file
3682 * ada-lang.c: New file
3683 * ada-lang.h: New file
3684 * ada-lex.c: New file
3685 * ada-lex.l: New file
3686 * ada-tasks.c: New file
3687 * ada-typeprint.c: New file
3688 * ada-valprint.c: New file
3689
0ddd0135
JT
36902002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3691
3692 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3693 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3694
750fbacc
JT
36952002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3696
3697 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3698 insetead of ppc-linux-tdep.o.
3699 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3700 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3701
df94e18a
AC
37022002-06-02 Andrew Cagney <ac131313@redhat.com>
3703
3704 2002-05-07 Christian Groessler <chris@groessler.org>
3705 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3706 bit register contents for little endian hosts.
3707
1a38ab75
AC
37082002-06-01 Andrew Cagney <ac131313@redhat.com>
3709
3710 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3711 any maintainer.
3712
8b1632ac
AC
37132002-06-01 Andrew Cagney <ac131313@redhat.com>
3714
3715 * gdbarch.h: Regenerate.
3716
627054c8
AC
37172002-06-01 Andrew Cagney <ac131313@redhat.com>
3718
3719 * MAINTAINERS: Add everyone to write-after-approval list.
3720
4f460812
AC
37212002-06-01 Andrew Cagney <ac131313@redhat.com>
3722
3723 * stack.c (frame_info): Use frame_register_unwind instead of
3724 saved_regs. Mention when the SP is on the stack or in a register.
3725
3726 * frame.h (frame_register_unwind_ftype): Define. Document.
3727 (struct frame_info): Add field register_unwind and
3728 register_unwind_cache.
3729 (frame_register_unwind): Declare.
3730 (generic_unwind_get_saved_register): Declare.
3731
3732 * frame.c (frame_register_unwind): New function.
3733 (generic_unwind_get_saved_register): New function.
3734
3735 * blockframe.c (generic_call_dummy_register_unwind): New function.
3736 (frame_saved_regs_register_unwind): New function.
3737 (set_unwind_by_pc): New function.
3738 (create_new_frame): New function.
3739 (get_prev_frame): New function.
3740
de888f76
AC
37412002-05-30 Andrew Cagney <ac131313@redhat.com>
3742
3743 * a29k-share/: Delete directory.
3744 * remote-vx29k.c: Delete file.
3745
2f2c3626
JT
37462002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3747
3748 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3749 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3750
9ce5c36a
JT
37512002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3752
3753 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3754 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3755 (sparc64nbsd-nat.o)
3756 (sparcnbsd-nat.o)
3757 (sparcnbsd-tdep.o): New dependency lists.
3758 * NEWS: Note new UltraSPARC NetBSD native configuration.
3759 * configure.host (sparc64-*-netbsd*): New host.
3760 * configure.tgt (sparc-*-netbsdelf*)
3761 (sparc-*-netbsd*): Set gdb_target to nbsd.
3762 (sparc64-*-netbsd*): New target.
3763 * sparc64nbsd-nat.c: New file.
3764 * sparcnbsd-nat.c: New file.
3765 * sparcnbsd-tdep.c: New file.
3766 * sparcnbsd-tdep.h: New file.
3767 * config/sparc/nbsd.mt: New file.
3768 * config/sparc/nbsd64.mh: New file.
3769 * config/sparc/nbsd64.mt: New file.
3770 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3771 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3772 (HOST_IPC): Remove.
3773 * config/sparc/nbsdaout.mt: Remove.
3774 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3775 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3776 (HOST_IPC): Remove.
3777 * config/sparc/nbsdelf.mt: Remove.
3778 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3779 sparc-nat.c compatiblity defines.
3780 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3781 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3782 * config/sparc/tm-nbsd64.h: New file.
3783 * config/sparc/tm-nbsdaout.h: Remove.
3784 * config/sparc/xm-nbsd.h: Remove.
3785
ef3cf062
JT
37862002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3787
3788 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3789 * sparc-tdep.c: Include osabi.h.
3790 (gdbarch_tdep): Add osabi member.
3791 (_initialize_sparc_tdep): Use gdbarch_register.
3792 (sparc_gdbarch_init): Use generic OS ABI framework.
3793 (sparc_dump_tdep): New function.
3794
ee8ff470
KB
37952002-05-30 Kevin Buettner <kevinb@redhat.com>
3796
3797 * corefile.c (do_captured_read_memory_integer): Return non-zero
3798 result.
3799 (safe_read_memory_integer): Copy result of memory read when
3800 status is non-zero. Also, add comments.
3801
7b112f9c
JT
38022002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3803
3804 * Makefile.in (ppc_tdep_h): Define.
3805 (ppc-linux-nat.o)
3806 (ppc-linux-tdep.o)
3807 (rs6000-tdep.o): Use $(ppc_tdep_h).
3808 (ppc-sysv-tdep.o)
3809 (ppcnbsd-nat.o)
3810 (ppcnbsd-tdep.o): New dependency lists.
3811 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3812 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3813 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3814 (ppc_sysv_abi_broken_use_struct_convention)
3815 (ppc_sysv_abi_use_struct_convention)
3816 (ppc_sysv_abi_push_arguments): Move to...
3817 * ppc-sysv-tdep.c: ...here.
3818 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3819 * rs6000-tdep.c (process_note_abi_tag_sections)
3820 (get_elfosabi): Remove.
3821 (rs6000_gdbarch_init): Use generic OS ABI framework.
3822 (rs6000_dump_tdep): New function.
3823 (_initialize_rs6000_tdep): Use gdbarch_register.
3824 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3825 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3826 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3827 of ppc-linux-tdep.o.
3828 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3829 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3830 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3831 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3832 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3833 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3834
480dd42a
JB
38352002-05-29 Jim Blandy <jimb@redhat.com>
3836
3837 * macroscope.c (default_macro_scope): Put `void' in empty argument
3838 list.
3839
4182591f
AC
38402002-05-29 Andrew Cagney <ac131313@redhat.com>
3841
3842 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3843 * arch-utils.c: Include "sim-regno.h".
3844 * gdbarch.sh: Don't include "sim-regno.h".
3845 * gdbarch.h, gdbarch.c: Regenerate.
3846 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3847 here.
3848 * arch-utils.h (legacy_register_sim_regno): To here.
3849 * remote-sim.c (legacy_register_sim_regno): Move function from
3850 here.
3851 * arch-utils.c (legacy_register_sim_regno): To here.
3852
8238d0bf
AC
38532002-05-28 Andrew Cagney <ac131313@redhat.com>
3854
3855 * sim-regno.h: New file.
3856 * Makefile.in (sim_regno_h): Define.
3857 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3858 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3859 (legacy_register_sim_regno): New function.
3860 (one2one_register_sim_regno): New function.
3861 (gdbsim_fetch_register): Rewrite.
3862 (gdbsim_store_register): Only store a register when
3863 REGISTER_SIM_REGNO is valid.
3864 * d10v-tdep.c: Include "sim-regno.h".
3865 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3866 (d10v_ts3_register_sim_regno): Ditto.
3867 * gdbarch.sh: Include "sim-regno.h".
3868 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3869 * gdbarch.h, gdbarch.c: Regenerate.
3870 * arch-utils.h (default_register_sim_regno): Delete declaration.
3871 * arch-utils.c (default_register_sim_regno): Delete function.
3872
485721b1
JT
38732002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3874
3875 * ppcnbsd-nat.c: Rewrite.
3876 * ppcnbsd-tdep.c: New file.
3877 * ppcnbsd-tdep.h: New file.
3878 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3879 solib.o, and solib-svr4.o.
3880 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3881 nbsd-tdep.o, and corelow.o.
3882
697f244d
AC
38832002-05-28 Andrew Cagney <ac131313@redhat.com>
3884
3885 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3886 `tr' and `sed'. Mention that `broken' targets are not expected to
3887 build.
3888
f08caad1 38892002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3890
3891 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3892 Let PC point right after the prologue before looking up symbols.
3893
3139facc
MH
38942002-05-27 Martin M. Hunt <hunt@redhat.com>
3895
3896 * i386-tdep.c (i386_register_virtual_type): Return
3897 builtin_type_vec128i for SSE registers.
3898
3899 * gdbtypes.h (builtin_type_vec128i): Declare.
3900
3901 * gdbtypes.c (build_builtin_type_vec128i): New function.
3902 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3903 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3904 (build_gdbtypes): Initialize new builtin vector types.
3905 (_initialize_gdbtypes): Register new vector types with gdbarch.
3906
6e3ba3b8
JT
39072002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3908
3909 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3910 since it has been multi-arch'd.
3911 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3912 Move Alpha and VAX multi-arch news entries to same section
3913 as other multi-arch news.
3914
93d5585d
JT
39152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3916
3917 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3918 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3919 static. Rename some register numbers to put them in ns32k-tdep
3920 private namespace.
3921 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3922 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3923 functions.
3924 (_initialize_ns32k_tdep): Use gdbarch_register.
3925 * ns32k-tdep.h: New file.
3926 * ns32knbsd-tdep.c: New file.
3927 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3928 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3929 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3930 REGISTER_BYTES, REGISTER_BYTE): Remove.
3931 * config/ns32k/tm-ns32k.h: New file.
3932 * config/ns32k/tm-umax.h: Remove.
3933
efb2c70e
JT
39342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3935
3936 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3937 ns32k_store_struct_return, ns32k_extract_return_value,
3938 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3939 functions.
3940 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3941 ns32k_saved_pc_after_call.
3942 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3943 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3944 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3945 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3946 ns32k_extract_struct_value_address.
3947
7bcc927b
JT
39482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3949
3950 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3951 ns32k_fix_call_dummy): New.
3952 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3953 ns32k_call_dummy_words.
3954 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3955 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3956 CALL_DUMMY_NARGS): Remove.
3957 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3958
78f9d765
JT
39592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3960
3961 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3962 ns32k_frame_saved_pc, ns32k_frame_args_address,
3963 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3964 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3965 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3966 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3967 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3968 (BREAKPOINT): Remove..
3969 (FRAME_CHAIN): Define as ns32k_frame_chain.
3970 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3971 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3972 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3973 (FRAME_FIND_SAVED_REGS): Remove.
3974 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3975 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3976 (POP_FRAME): Define as ns32k_pop_frame.
3977
f2c762e0
JT
39782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3979
3980 * ns32k-tdep.c (ns32k_register_byte_32082,
3981 ns32k_register_byte_32382, ns32k_register_raw_size,
3982 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3983 functions.
3984 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3985 ns32k_register_byte_32382.
3986 * config/ns32k/tm-umax.h: Update copyright years.
3987 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3988 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3989 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3990 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3991 (ns32k_get_enter_addr): Fix prototype.
3992
af137673
JT
39932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3994
3995 * ns32k-tdep.c: Update copyright years.
3996 (ns32k_register_name_32082): New function.
3997 (ns32k_register_name_32382): Ditto.
3998 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3999 (REGISTER_NAME): Define as ns32k_register_name_32382.
4000 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4001 (REGISTER_NAME): Define as ns32k_register_name_32082.
4002
a8bc7b56
JB
40032002-05-24 Jim Blandy <jimb@redhat.com>
4004
4005 * dwarf2read.c (free_line_header): Use xfree, not free.
4006
83a45910
JT
40072002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4008
4009 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4010 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4011
0db71247
AC
40122002-05-23 Andrew Cagney <ac131313@redhat.com>
4013
4014 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4015
b9e5e4dd
AC
40162002-05-23 Andrew Cagney <ac131313@redhat.com>
4017
4018 From Ross Alexander at NEC Europe:
4019 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4020
de530e84
MS
40212002-05-23 Michael Snyder <msnyder@redhat.com>
4022
4023 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4024 for input, rather than parse_and_eval_address.
4025
b91b96f4
AC
40262002-05-23 Andrew Cagney <ac131313@redhat.com>
4027
4028 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4029 * Makefile.in (sim_d10v_h): Update definition.
4030
8b279e7a
AC
40312002-05-24 Andrew Cagney <cagney@redhat.com>
4032
4033 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4034 change `2002-05-22 Michael Snyder' below.
4035 (d10v_push_arguments): Ditto.
4036 (d10v_extract_return_value): Ditto.
4037
0a3d0425
JB
40382002-05-23 Jim Blandy <jimb@redhat.com>
4039
4040 * macrotab.c (check_for_redefinition): Don't complain if the new
4041 definition is the same as the previous one. Take more arguments
4042 to allow the comparison.
4043 (macro_define_object, macro_define_function): Pass more arguments
4044 to check_for_redefinition.
4045
78eac43e
MS
40462002-05-22 Michael Snyder <msnyder@redhat.com>
4047
4048 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4049 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4050 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4051 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4052 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4053 Add a temp variable to save a call (and a memory read).
4054 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4055 if possible (so that PC_IN_CALL_DUMMY will work).
4056
9bc1edb8
CV
40572002-05-22 Corinna Vinschen <vinschen@redhat.com>
4058
4059 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4060
005ef3d2
ML
40612002-05-22 Michal Ludvig <mludvig@suse.cz>
4062
4063 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4064 fde->cie_ptr.
4065 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4066 (dwarf2_build_frame_info): Add offset to fde->initial_location
4067 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4068 (execute_stack_op): Change type of 'result' from ULONGEST to
4069 CORE_ADDR.
005ef3d2 4070
fcf4f891
JT
40712002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4072
4073 * config/alpha/tm-nbsd.h: Include solib.h.
4074
cfef91e4
JT
40752002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4076
4077 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4078 assumptions about the host's byte order.
4079
9964235a
JT
40802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4081
4082 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4083 to dependency list.
4084 * alphanbsd-tdep.c: Include solib-svr4.h.
4085 * shnbsd-tdep.c: Ditto.
4086
9eeef8ef
JT
40872002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4088
4089 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4090 nbsd-tdep.h to dependency list.
4091 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4092 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4093 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4094 nbsdaout.mh and nbsdelf.mh consistently.
4095 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4096 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4097 nbsdaout.mt and nbsdelf.mh consistently.
4098 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4099 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4100 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4101 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4102 a.out shared library stuff from here...
4103 * config/nm-nbsdaout.h: ...to here.
4104 * config/tm-nbsd.h: Remove.
4105 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4106 * config/arm/nbsd.mh: Remove.
4107 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4108 nbsd-tdep.o.
4109 * config/arm/nbsdaout.mh: New file.
4110 * config/arm/nbsdelf.mh: New file.
4111 * config/arm/nm-nbsdaout.h: New file.
4112 * config/i386/nbsd.mh: Remove.
4113 * config/i386/nbsd.mt: Remove.
4114 * config/i386/nbsdaout.mh: New file.
4115 * config/i386/nbsdaout.mt: New file.
4116 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4117 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4118 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4119 i386_register_u_addr): Remove.
4120 * config/i386/nm-nbsdaout.h: New file.
4121 * config/i386/nm-nbsdelf.h: Remove.
4122 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4123 (USE_STRUCT_CONVENTION): Remove.
4124 * config/i386/tm-nbsdaout.h: New file.
4125 * config/i386/tm-nbsdelf.h: Remove.
4126 * config/m68k/nbsd.mh: Remove.
4127 * config/m68k/nbsd.mt: Remove.
4128 * config/m68k/nbsdaout.mh: New file.
4129 * config/m68k/nbsdaout.mt: New file.
4130 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4131 * config/m68k/nm-nbsdaout.h: New file.
4132 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4133 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4134 * config/ns32k/nbsd.mh: Remove.
4135 * config/ns32k/nbsd.mt: Remove.
4136 * config/ns32k/nbsdaout.mh: New file.
4137 * config/ns32k/nbsdaout.mt: New file.
4138 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4139 * config/ns32k/nm-nbsdaout.h: New file.
4140 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4141 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4142 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4143 (SVR4_SHARED_LIBS): Remove.
4144 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4145 * config/sparc/nbsd.mh: Remove.
4146 * config/sparc/nbsd.mt: Remove.
4147 * config/sparc/nbsdaout.mh: New file.
4148 * config/sparc/nbsdaout.mt: New file.
4149 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4150 * config/sparc/nbsdelf.mt: New file.
4151 * config/sparc/nm-nbsdaout.h: New file.
4152 * config/sparc/nm-nbsdelf.h: Remove.
4153 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4154 * config/sparc/tm-nbsdaout.h: New file.
4155
257ce470
JT
41562002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4157
4158 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4159 mipsnbsd-tdep.c
4160 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4161
76a6d5fe
JT
41622002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4163
4164 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4165 shnbsd-nat.c.
4166 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4167
45888261
JT
41682002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4169
4170 * NEWS: Note new MIPS NetBSD native configuration.
4171 * configure.host (mips*-*-netbsd*): New host.
4172 * configure.tgt (mips*-*-netbsd*): New target.
4173 * mipsnbsd-nat.c: New file.
4174 * mipsnbsd-tdep.c: New file.
4175 * mipsnbsd-tdep.h: New file.
4176 * config/mips/nbsd.mh: New file.
4177 * config/mips/nbsd.mt: New file.
4178 * config/mips/nm-nbsd.h: New file.
4179 * config/mips/tm-nbsd.h: New file.
4180
70f80edf
JT
41812002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4182
4183 * Makefile.in (SFILES): Add osabi.c.
4184 (COMMON_OBS): Add osabi.o.
4185 (osabi.o): New dependency list.
4186 * osabi.c: New file.
4187 * osabi.h: New file.
4188 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4189
4190 * Makefile.in (alpha_tdep_h): Define and use instead of
4191 alpha-tdep.h.
4192 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4193 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4194 Remove.
4195 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4196 * alpha-tdep.h: Include osabi.h.
4197 (alpha_abi): Remove.
4198 (gdbarch_tdep): Use generic OS ABI framework.
4199 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4200 gdbarch_register_osabi.
4201 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4202 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4203 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4204
4205 * Makefile.in (sh_tdep_h): Add osabi.h.
4206 * sh-tdep.h (sh_osabi): Remove.
4207 (gdbarch_tdep): Use generic OS ABI framework.
4208 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4209 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4210 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4211 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4212
4213 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4214 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4215 gdbarch_register_osabi.
4216 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4217 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4218 (get_elfosabi): Rename to...
4219 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4220 ABI framework support routines.
4221 (arm_gdbarch_init): Use generic OS ABI framework.
4222 (arm_dump_tdep): Likewise.
4223 (_initialize_arm_tdep): Likewise.
4224 * arm-tdep.h: Include osabi.h.
4225 (arm_abi): Remove.
4226 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4227 osabi member.
4228 (arm_gdbarch_register_os_abi): Remove prototype.
4229 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4230 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4231
4232 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4233 * mips-tdep.c: Include osabi.h.
4234 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4235 OS ABI framework.
4236
d194345b
KH
42372002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4238
4239 * h8300-tdep.c: Fix formatting.
4240
70c6b0d1
EZ
42412002-05-20 Elena Zannoni <ezannoni@redhat.com>
4242
4243 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4244 printing vector registers.
4245
165b8e33
AC
42462002-05-19 Andrew Cagney <ac131313@redhat.com>
4247
4248 From Fernando Nasser:
4249 * remote.c (remote_async_open_1): Re-throw the exception when the
4250 connection fails.
4251 (remote_cisco_open): Ditto.
4252 (remote_open_1): Ditto.
4253
36918e70
AC
42542002-05-19 Andrew Cagney <ac131313@redhat.com>
4255
4256 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4257 (remote_start_remote): Add uiout parameter. Pass through to
4258 remote_start_remote_dummy.
4259 (remote_open_1): Use catch_exception instead of catch_errors.
4260 (remote_async_open_1): Ditto.
4261 (remote_cisco_open): Ditto.
4262
ae44c0c4
AC
42632002-05-19 Andrew Cagney <ac131313@redhat.com>
4264
4265 * remote.c (remote_start_remote): Replace PTR with void pointer.
4266 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4267 static.
4268
8efe637d
AC
42692002-05-18 Andrew Cagney <ac131313@redhat.com>
4270
4271 * gdb_indent.sh: Allow the script to be run in the sim directory.
4272
2f1b5984
MK
42732002-05-18 Mark Kettenis <kettenis@gnu.org>
4274
f0f625e2
MK
4275 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4276 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4277
2f1b5984
MK
4278 * corelow.c (core_open): Only call set_gdbarch_from_file if
4279 exec_bfd is NULL.
4280
fc974602
AV
42812002-05-17 Andrey Volkov <avolkov@transas.com>
4282
4283 * h8300-tdep.c: Add support of EXR register
4284 * config/h8300/tm-h8300.h: Ditto.
4285
906709f4
AV
42862002-05-17 Andrey Volkov <avolkov@transas.com>
4287
4288 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4289
6e591d68
AV
42902002-05-17 Andrey Volkov <avolkov@transas.com>
4291
4292 * h8300-tdep.c: Change literal regnums to REGNO.
4293
84f0252a
JB
42942002-05-17 Jim Blandy <jimb@redhat.com>
4295
e0e9281e
JB
4296 * NEWS: Note addition of macro support.
4297
84f0252a
JB
4298 Expand preprocessor macros in C expressions.
4299 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4300 (scan_macro_expansion, scanning_macro_expansion,
4301 finished_macro_expansion): New function declarations.
4302 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4303 variable declarations.
4304 * parser-defs.h (expression_context_pc): New declaration.
4305 * parse.c (expression_context_pc): New variable.
4306 (parse_exp_1): Set expression_context_pc, as well as
4307 expression_context_block.
4308 * c-exp.y (yylex): If we're not already reading the result of a
4309 macro expansion, try to macro-expand the next token. When we're
4310 done scanning a macro expansion, switch back to the mainline text.
4311 Commas and `if's in a macro's expansion don't terminate the input.
4312 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4313 (macro_original_text, macro_expanded_text,
4314 expression_macro_lookup_func, expression_macro_lookup_baton): New
4315 variables.
4316 (scan_macro_expansion, scanning_macro_expansion,
4317 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4318 c_preprocess_and_parse): New functions.
4319 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4320 c_preprocess_and_parse, instead of c_parse.
4321 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4322 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4323
1c509ca8
JR
4324Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4325
4326 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4327 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4328 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4329
2250ee0c
CV
43302002-05-17 Corinna Vinschen <vinschen@redhat.com>
4331
4332 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4333
ab3b8126
JT
43342002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4335
4336 * Makefile.in (sh_tdep_h): Define and use.
4337 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4338 register enum): Move to...
4339 * * sh-tdep.h: ...here.
4340 * sh-tdep.c: Include sh-tdep.h.
4341 * sh3-rom.c: Likewise.
4342 * shnbsd-tdep.c: Likewise.
4343
ed9d4749
MS
43442002-05-16 Michael Snyder <msnyder@redhat.com>
4345
4346 * arm-tdep.c: Spelling fix in comment.
4347
2e276125
JB
43482002-05-16 Jim Blandy <jimb@redhat.com>
4349
6821892e
JB
4350 Add commands for manually expanding macros and showing their
4351 definitions.
4352 * macrocmd.c, macroscope.c, macroscope.h: New files.
4353 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4354 (macroscope_h): New variable.
4355 (HFILES_NO_SRCDIR): Add macroscope.h.
4356 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4357 (macroscope.o, macrocmd.o): New rules.
4358
2e276125
JB
4359 Teach the Dwarf 2 reader to read macro information.
4360 * dwarf2read.c: #include "macrotab.h".
4361 (dwarf_macinfo_buffer): New variable.
4362 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4363 dwarf_macinfo_size.
4364 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4365 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4366 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4367 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4368 dwarf2_macro_spaces_in_definition): New complaints.
4369 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4370 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4371 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4372 the partial symbol table.
4373 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4374 from what's recorded in the partial symbol table.
4375 (read_file_scope): If the compilation unit has a
4376 `DW_AT_macro_info' attribute, read its macro information.
4377 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4378
2f53fe6c
DJ
43792002-05-16 Daniel Jacobowitz <drow@mvista.com>
4380
4381 Fix PR gdb/546
4382 * ser-tcp.c: Don't include <netinet/udp.h>.
4383
2be99286
SC
43842002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4385
4386 * MAINTAINERS: Update my email address.
4387
c9af212b 43882002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4389
4390 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4391 include file of the same name.
4392
bf5f1a52
CV
43932002-05-16 Corinna Vinschen <vinschen@redhat.com>
4394
4395 * configure.tgt: Mark v850 as multi-arched.
4396 * config/v850/tm-v850.h: Remove file.
4397 * config/v850/v850.mt: Eliminate TM_FILE.
4398
435e042a
CV
43992002-05-16 Corinna Vinschen <vinschen@redhat.com>
4400
4401 * v850-tdep.c: Full multi-arch.
4402 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4403 Define GDB_MULTI_ARCH to 2.
4404
9819c6c8
PM
44052002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4406
4407 * p-exp.y (current_type): New static variable.
4408 Carries the type of the expression at the position that is parsed.
4409 (push_current_type, pop_current_type): Two new functions. Used
4410 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4411 (search_field): New static variable. Set to one after parsing a point
4412 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4413 (FIELDNAME): New token. After a point only a token belonging to
4414 current_type type definition is allowed.
4415 (all over token rules): reset and change current_type according
4416 to rules.
4417 (exp '[' rule): insert implicit array index field if
4418 exp is a pascal string type.
4419
3a06899a
CV
44202002-05-16 Corinna Vinschen <vinschen@redhat.com>
4421
4422 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4423 frame info. Use frame_info's saved_regs instead of matching member
4424 in extra_frame_info throughout.
4425 (v850_frame_init_saved_regs): New function.
4426 (v850_init_extra_frame_info): Move most functionality into
4427 v850_frame_init_saved_regs().
4428 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4429 (v850_frame_find_saved_regs): Remove declaration.
4430 (FRAME_FIND_SAVED_REGS): Remove definition.
4431 (v850_frame_init_saved_regs): Add declaration.
4432 (FRAME_INIT_SAVED_REGS): Add definition.
4433
6ed14b0e
CV
44342002-05-16 Corinna Vinschen <vinschen@redhat.com>
4435
4436 * v850-tdep.c: Begin multi-arch'ing v850.
4437 (v850_target_architecture_hook): Remove function.
4438 (v850_gdbarch_init): New function. Add code previously in
4439 v850_target_architecture_hook().
4440 (_initialize_v850_tdep): Don't set target_architecture_hook.
4441 Call register_gdbarch_init() instead.
4442
42725910
DJ
44432002-05-16 Daniel Jacobowitz <drow@mvista.com>
4444
4445 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4446 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4447 (fixup_class_method_type): Likewise.
4448
0bc68c49
DJ
44492002-05-15 Daniel Jacobowitz <drow@mvista.com>
4450
4451 From Martin Pool <mbp@samba.org>:
4452 * gdbserver/server.c (gdbserver_usage): New function.
4453 (main): Call it.
4454
99d9066e
JB
44552002-05-15 Jim Blandy <jimb@redhat.com>
4456
4457 Add macro structures to GDB's symbol tables. Nobody puts anything
4458 in them yet.
4459 * symtab.h (struct symtab): New member: `macro_table'.
4460 * buildsym.h (pending_macros): New global variable.
4461 * buildsym.c: #include "macrotab.h".
4462 (buildsym_init): Initialize `pending_macros'.
4463 (end_symtab): If we found macro information while reading a CU's
4464 debugging info, do build a symtab structure for it. Make the
4465 symtab point to the macro information, and clear the
4466 `pending_macros' pointer which held it while we were reading the
4467 debug info.
4468 (really_free_pendings): Free any pending macro table.
4469 * objfiles.h (struct objfile): New member: `macro_cache'.
4470 * objfiles.c (allocate_objfile): Set allocate and free functions
4471 for the macro cache's objstack.
4472 (free_objfile): Empty the macro cache's obstack.
4473 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4474 set new allocate and free functions for it.
4475 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4476 free functions for the macro cache's objstack. (Why is this
4477 function building its own objfile?)
4478 * symmisc.c (print_objfile_statistics): Print statistics on the
4479 macro bcache.
4480 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4481
c899585b
RE
44822002-05-15 Richard Earnshaw <rearnsha@arm.com>
4483
4484 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4485 (REGISTER_U_ADDR): Delete definition.
4486 (arm_register_u_addr): Delete declaration.
4487
a6cdd8c5
RE
44882002-05-15 Richard Earnshaw <rearnsha@arm.com>
4489
4490 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4491 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4492
fd3a5ca1
DJ
44932002-05-14 Daniel Jacobowitz <drow@mvista.com>
4494
4495 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4496 stop_at -> stop_pc.
4497
c97dcfc7
AC
44982002-05-14 Andrew Cagney <ac131313@redhat.com>
4499
4500 * regcache.c (register_valid): Revise comments refering to "Not
4501 available" and "unavailable".
4502 * frame.c (frame_register_read): Ditto.
4503 * findvar.c (value_of_register): Ditto.
4504
93021b7d
AC
45052002-05-15 Andrew Cagney <cagney@redhat.com>
4506
4507 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4508 (remote-sim.o): Update dependencies.
4509 (d10v-tdep.o): Specify dependencies.
4510 (sim_d10v_h): Define.
4511
a86bc61c
JB
45122002-05-14 Jim Blandy <jimb@redhat.com>
4513
4514 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4515 * macrotab.c (macro_lookup_inclusion, find_definition,
4516 new_macro_table): Same.
4517
4518 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4519 not `! strcmp ()'. This is a dubious improvement.
4520 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4521
4522 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4523 although it's not necessary, to avoid a warning.
4524
2fdde8f8
DJ
45252002-05-14 Daniel Jacobowitz <drow@mvista.com>
4526
4527 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4528 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4529 TYPE_INSTANCE_FLAGS.
4530 (struct main_type): New.
4531 (struct type): Move most members to struct main_type. Change
4532 cv_type and as_type to new type_chain member. Add instance_flags.
4533 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4534 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4535 (finish_cv_type): Remove prototype.
4536 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4537 Set TYPE_CHAIN.
4538 (alloc_type_instance): New function.
4539 (smash_type): New function.
4540 (make_pointer_type, make_reference_type, make_function_type)
4541 (smash_to_member_type, smash_to_method_type): Call smash_type.
4542 (make_qualified_type): New function.
4543 (make_type_with_address_space): Call make_qualified_type.
4544 (make_cv_type): Likewise.
4545 (finish_cv_type): Remove unnecessary function.
4546 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4547 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4548 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4549 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4550 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4551 * hpread.c (hpread_read_struct_type): Likewise.
4552 * stabsread.c (read_struct_type): Likewise.
4553
843fedf4
EZ
45542002-05-14 Elena Zannoni <ezannoni@redhat.com>
4555
4556 * configure.tgt: Add a catch all sh* target, for cases like
4557 sh[2,3,4]-elf and sh-hms.
4558
05a6c72c
KS
45592002-05-14 Keith Seitz <keiths@redhat.com>
4560
4561 * event-loop.c (create_file_handler): Don't do anything but
4562 update data when we are given a fd which we are already
4563 monitoring.
4564
5d085aaf
ML
45652002-05-14 Michal Ludvig <mludvig@suse.cz>
4566
4567 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4568 (update_context): Use __func__ in warnings.
4569
9db8d71f
DJ
45702002-05-14 Daniel Jacobowitz <drow@mvista.com>
4571
4572 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4573 and tcp_close to net_open and net_close.
4574 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4575 using UDP if requested. Don't try to disable Nagle on UDP
4576 sockets.
4577 * remote.c (remote_serial_open): New function. Warn about UDP.
4578 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4579
5dbc6baa
EZ
45802002-05-13 Elena Zannoni <ezannoni@redhat.com>
4581
4582 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4583
cc3023f7
EZ
45842002-05-13 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * configure.tgt: Remove sh-hms target.
4587 * MAINTAINERS: Don't list sh-hms as a separate target.
4588
ec2bcbe7
JB
45892002-05-13 Jim Blandy <jimb@redhat.com>
4590
4591 Add first preprocessor macro-expansion files.
4592 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4593 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4594 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4595 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4596 (COMMON_OBS): Add macrotab.o, macroexp.o.
4597 (macroexp.o, macrotab.o): New rules.
4598
6d531722
AC
45992002-05-13 Andrew Cagney <ac131313@redhat.com>
4600
4601 * config/m88k/tm-m88k.h: Update copyright.
4602 (m88k_target_write_pc): Declare
4603 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4604 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4605 (SHIFT_INST_REGS): Update definition.
4606 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4607 using old definition of TARGET_WRITE_PC.
4608 * regcache.c (generic_target_write_pc): Delete code handling
4609 NNPC_REGNUM.
4610 * gdbarch.sh (NNPC_REGNUM): Delete.
4611 * gdbarch.h, gdbarch.c: Regenerate.
4612
3e3f2739
RE
46132002-05-13 Richard Earnshaw <rearnsha@arm.com>
4614
4615 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4616 builtin reg number.
4617
0004e5a2
DJ
46182002-05-13 Daniel Jacobowitz <drow@mvista.com>
4619
4620 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4621 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4622 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4623 access macros.
4624 * c-typeprint.c (cp_type_print_method_args): Likewise.
4625 (c_type_print_args): Likewise.
4626 * d10v-tdep.c (d10v_push_arguments): Likewise.
4627 (d10v_extract_return_value): Likewise.
4628 * expprint.c (print_subexp): Likewise.
4629 * gdbtypes.c (lookup_primitive_typename): Likewise.
4630 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4631 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4632 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4633 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4634 (TYPE_VECTOR): Likewise.
4635 * hpread.c (hpread_read_struct_type)
4636 (fix_static_member_physnames, fixup_class_method_type)
4637 (hpread_type_lookup): Likewise.
4638 * mdebugread.c (parse_symbol, parse_type): Likewise.
4639 * p-lang.c (is_pascal_string_type): Likewise.
4640 * valops.c (hand_function_call): Likewise.
4641 * x86-64-tdep.c (classify_argument): Likewise.
4642
4643 * hpread.c (hpread_read_function_type)
4644 (hpread_read_doc_function_type): Call replace_type.
4645 * dstread.c (create_new_type): Delete.
4646 (decode_dst_structure, process_dst_function): Call alloc_type.
4647 Use type access macros.
4648
dff95cc7
MK
46492002-05-12 Mark Kettenis <kettenis@gnu.org>
4650
4651 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4652 the're not supported by the current architecture.
4653 (i387_fill_fxsave): Likewise.
4654
bbcd32ad
FF
46552002-05-12 Fred Fish <fnf@redhat.com>
4656
4657 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4658 sect_index_xxx members to index the first slot in section_offsets
4659 if all of the section_offsets are zero.
4660
89cf4787
MK
46612002-05-12 Mark Kettenis <kettenis@gnu.org>
4662
4663 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4664 checked in with last change.
4665
1f77ffc5
MK
46662002-05-12 Mark Kettenis <kettenis@gnu.org>
4667
4668 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4669 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4670 config.sub.
4671
89b8b4a9
DJ
46722002-05-12 Daniel Jacobowitz <drow@mvista.com>
4673
4674 * Makefile.in: Update dependencies.
4675
14a5e767
AC
46762002-05-11 Andrew Cagney <ac131313@redhat.com>
4677
4678 * language.c (local_hex_string_custom): Simplify. Do not depend
4679 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4680
4681 * memattr.c (mem_info_command): Replace calls to
4682 longest_local_hex_string and longest_local_hex_string_custom.
4683 * buildsym.c (make_blockvector): Ditto.
4684 * solib.c (info_sharedlibrary_command): Ditto.
4685 * tracepoint.c (tracepoints_info): Ditto.
4686 * symtab.c (print_msymbol_info): Ditto.
4687
4688 * language.c (local_hex_string): Delete.
4689 (local_hex_string_custom): Delete.
4690 (longest_local_hex_string): Rename to local_hex_string.
4691 (longest_local_hex_string_custom): Rename to
4692 local_hex_string_custom.
4693 * language.h (local_hex_string): Change parameter type to LONGEST.
4694 (local_hex_string_custom): Ditto.
4695 (longest_local_hex_string): Delete declaration.
4696 (longest_local_hex_string_custom): Ditto.
4697
4698 * solib.c: Update copyright.
4699 * memattr.c: Update copyright.
4700
13d01224
AC
47012002-05-11 Andrew Cagney <ac131313@redhat.com>
4702
4703 * arch-utils.h (legacy_register_to_value): Declare.
4704 (legacy_value_to_register): Declare.
4705 (legacy_convert_register_p): Declare.
4706 * arch-utils.c (legacy_register_to_value): New function.
4707 (legacy_value_to_register): New function.
4708 (legacy_convert_register_p): New function.
4709
4710 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4711 (VALUE_TO_REGISTER): Define.
4712 (CONVERT_REGISTER_P): Define.
4713 * gdbarch.h, gdbarch.c: Regenerate.
4714
4715 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4716 VALUE_TO_REGISTER.
4717 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4718 CONVERT_REGISTER_P.
4719
4a1970e4
DJ
47202005-05-11 Daniel Jacobowitz <drow@mvista.com>
4721 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4722
4723 * Makefile.in: Update dependencies for valops.c.
4724 * valops.c: Include "gdb_assert.h".
4725 (typecmp): Skip THIS parameter to methods.
4726 (find_method_list): Remove static_memfuncp argument,
4727 update callers. Check for stub methods.
4728 (find_value_oload_method_list): Don't set *static_memfuncp.
4729 (find_overload_match): Don't check for stub methods. Assert
4730 that methods are not stubbed. Handle static methods.
4731 (value_find_oload_method_list): Remove static_memfuncp argument.
4732 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4733 to the argument list for static stub methods.
4734 * value.h (value_find_oload_method_list): Update prototype.
4735
b2e75d78
AC
47362002-05-11 Andrew Cagney <ac131313@redhat.com>
4737
4738 * arch-utils.h (generic_register_size): Declare.
4739 (generic_register_raw_size, generic_register_virtual_size): Delete
4740 declarations.
4741 * arch-utils.c (generic_register_raw_size): Delete.
4742 (generic_register_size): New function.
4743 (generic_register_virtual_size): Delete.
4744
4745 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4746 default generic_register_size.
4747 * gdbarch.h, gdbarch.c: Re-generate.
4748
4749 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4750 register_virtual_size.
4751 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4752 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4753
451fbdda
AC
47542002-05-11 Andrew Cagney <ac131313@redhat.com>
4755
4756 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4757 * gdbarch.h, gdbarch.c: Regenerate.
4758 * gnu-v3-abi.c: Update copyright.
4759 (vtable_address_point_offset): Update.
4760 (gnuv3_rtti_type): Update.
4761 (gnuv3_baseclass_offset): Update.
4762 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4763 (init_fetch_link_map_offsets): Update.
4764 * remote.c (get_remote_state): Update.
4765
6d2f5cea
DJ
47662002-05-11 Daniel Jacobowitz <drow@mvista.com>
4767
4768 * TODO: Remove value_headof/value_from_vtable_info comment.
4769 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4770 * values.c (value_headof, value_from_vtable_info): Delete.
4771 * value.h (value_from_vtable_info): Delete prototype.
4772
d2324da4
AC
47732002-05-11 Andrew Cagney <ac131313@redhat.com>
4774
4775 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4776 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4777 $(gdb_regex_h).
4778 (gdb_assert_h): Define.
4779 (gdb_wait_h): Define.
4780 (gdb_regex_h): Define.
4781
5c717440
DJ
47822002-05-11 Daniel Jacobowitz <drow@mvista.com>
4783
4784 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4785 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4786
6c7861b3
JT
47872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4788
4789 * nbsd-tdep.c: Fix comment.
4790
ea5bc2a6
JT
47912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4792
4793 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4794 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4795 (nbsd-tdep.o): New dependency list.
4796 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4797 nbsd-tdep.h.
4798 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4799 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4800 * nbsd-tdep.c: New file.
4801 * nbsd-tdep.h: New file.
4802 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4803 nbsd-tdep.h.
4804 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4805 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4806 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4807 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4808
b28da865
JT
48092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4810
4811 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4812 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4813 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4814 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4815 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4816 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4817
4b8ff1fa
JT
48182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4819
4820 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4821 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4822 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4823 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4824 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4825 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4826 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4827
dfe6eb1f
JT
48282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4829
4830 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4831 fetch_elfcore_registers to...
4832 * i386nbsd-tdep.c: ...here.
4833 (i386nbsd_use_struct_convention): Rename to...
4834 (i386nbsd_aout_use_struct_convention): ...this.
4835 (i386nbsd_supply_reg): New function.
4836 (i386nbsd_fill_reg): New function.
4837 (fetch_core_registers): Use i386nbsd_supply_reg.
4838 (fetch_elfcore_registers): Likewise.
4839 (_initialize_i386nbsd_tdep): New function.
4840 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4841 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4842 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4843 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4844 (i386nbsd_aout_use_struct_convention): ...this.
4845
20cb8cda
JT
48462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4847
4848 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4849 (store_inferior_registers): Use shnbsd_fill_reg.
4850 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4851 sh_nbsd_supply_register): Collapse into...
4852 (shnbsd_supply_reg): ...this.
4853 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4854 (shnbsd_fill_reg): ...this.
4855 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4856 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4857 (fetch_core_registers): Use shnbsd_supply_reg.
4858 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4859 (sh_nbsd_core_fns): Rename to...
4860 (shnbsd_core_fns): ...this.
4861 (sh_nbsd_elfcore_fns): Rename to...
4862 (shnbsd_elfcore_fns): ...this.
4863 (sh_nbsd_init_abi): Rename to...
4864 (shnbsd_init_abi): ...this.
4865 (_initialize_sh_nbsd_tdep): Rename to...
4866 (_initialize_shnbsd_tdep): ...this.
4867 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4868 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4869 sh_nbsd_fill_register): Remove prototypes.
4870 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4871
e750d25e
JT
48722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4873
4874 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4875 (i387-nat.o): Delete dependency list.
4876 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4877 (x86-64-linux-nat.o): Likewise.
4878 * i387-nat.c: Delete file, moving contents to...
4879 * i387-tdep.c: ...here.
4880 * i387-nat.h: Rename...
4881 * i387-tdep.h: ...to this.
4882 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4883 * i386-linux-nat.c: Likewise.
4884 * i386bsd-nat.c: Likewise.
4885 * i386gnu-nat.c: Likewise.
4886 * i386nbsd-nat.c: Likewise.
4887 * i386v4-nat.c: Likewise.
4888 * x86-64-linux-nat.c: Likewise.
4889 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4890 * config/i386/go32.mh (NATDEPFILES): Likewise.
4891 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4892 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4893 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4894 * config/i386/linux.mh (NATDEPFILES): Likewise.
4895 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4896 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4897 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4898 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4899
1aee598a
JT
49002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4901
4902 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4903 (alphanbsd-nat.o): Remove dependency list.
4904 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4905 * alphanbsd-nat.c: Delete. Contents moved to...
4906 * alphanbsd-tdep.c: ...here.
4907 (_initialize_alphanbsd_tdep): Register core functions.
4908 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4909
12bcb0fe
JT
49102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4911
4912 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4913 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4914 (alphanbsd-nat.o): Likewise.
4915 (alphabsd-tdep.o): New dependency list.
4916 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4917 (fill_gregset): Use alphabsd_fill_reg.
4918 (supply_fpregset): Use alphabsd_supply_fpreg.
4919 (fill_fpregset): Use alphabsd_fill_fpreg.
4920 (fetch_inferior_registers): Use struct reg and struct fpreg
4921 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4922 and alphabsd_supply_fpreg.
4923 (store_inferior_registers): Use struct reg and struct fpreg
4924 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4925 and alphabsd_fill_fpreg.
4926 * alphabsd-tdep.c: New file.
4927 * alphabsd-tdep.h: New file.
4928 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4929 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4930 alphabsd_supply_fpreg.
4931 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4932 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4933
361d1df0
EC
49342002-05-11 Eric Christopher <echristo@redhat.com>
4935
4936 * mips-tdep.c (mips_double_register_type): Fix thinko.
4937 (mips_single_register_type): Ditto.
4938 * MAINTAINERS: Add self.
4939
92dd7cee
MK
49402002-05-11 Mark Kettenis <kettenis@gnu.org>
4941
4942 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4943 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4944 right thing on architectures with different endianness and/or
4945 integer sizes.
4946
e27da16d
JT
49472002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4948
4949 From Christian Limpach <chris@Pin.LU>
4950 * configure.in: Change sed expression which comments out
4951 NATDEPFILES to also comment out continuation lines.
4952 * configure: Regenerate.
4953
ddde02bd
EZ
49542002-05-10 Elena Zannoni <ezannoni@redhat.com>
4955
4956 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4957 big patch.
4958
1c922164
EZ
49592002-05-10 Elena Zannoni <ezannoni@redhat.com>
4960
4961 * sh-tdep.c: Include correct file.
4962
283150cd
EZ
49632002-05-10 Elena Zannoni <ezannoni@redhat.com>
4964
4965 New support for sh64-elf (sh5) target.
4966
4967 * configure.tgt: For sh64-elf target, default to sh-elf.
4968
4969 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4970 (struct gdbarch_tdep): Add new fields for new registers and ABI
4971 info.
361d1df0 4972
283150cd
EZ
4973 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4974 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4975 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4976 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4977 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4978 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4979 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4980 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4981 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4982 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4983 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4984 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4985 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4986 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4987 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4988 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4989 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4990 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4991 sign_extend, sh64_nofp_frame_init_saved_regs,
4992 sh64_init_extra_frame_info, sh64_get_saved_register,
4993 sh64_extract_struct_value_address, sh64_pop_frame,
4994 sh64_push_arguments, sh64_extract_return_value,
4995 sh64_store_return_value, sh64_show_media_regs,
4996 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4997 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4998 sh_sh64_register_virtual_type,
4999 sh_sh64_register_convert_to_virtual,
5000 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5001 sh64_register_read, sh64_pseudo_register_write,
5002 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5003 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5004 sh64_do_pseudo_register, sh_compact_do_registers_info,
5005 sh64_do_registers_info, sh_gdbarch_init): New functions.
5006
3117ed25
EZ
50072002-05-10 Elena Zannoni <ezannoni@redhat.com>
5008
5009 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5010
2654e6d4
DJ
50112002-05-10 Daniel Jacobowitz <drow@mvista.com>
5012
5013 * linespec.c (decode_line_1): Check for a double quote after
5014 a filename correctly.
5015
9ab3e532
JB
50162002-05-10 Jim Blandy <jimb@redhat.com>
5017
5018 Properly track the size of the current objfile's .debug_line section.
5019 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5020 (DWARF_LINE_SIZE): New macro.
5021 (dwarf2_build_psymtabs_hard): Record the line section's size in
5022 the partial symbol table.
5023 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5024 symbol table.
5025
126fa72d
PS
50262002-05-10 Petr Sorfa <petrs@caldera.com>
5027
5028 * ia64-tdep.c: Handle breakpoints on L instruction type
5029 in MLX instruction bundle by moving the breakpoint to
5030 the third slot (X instruction type) as L holds only data.
5031
1f077a3e
KB
50322002-05-10 Kevin Buettner <kevinb@redhat.com>
5033
5034 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5035 (process_one_symbol): Complain about discarding local symbols
5036 due to a misplaced N_LBRAC entry.
5037
8120c9d5 50382002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5039
5040 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5041 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5042 decrease the depth we are at, in the case of templates.
361d1df0 5043
67b2c998
DJ
50442002-05-09 Daniel Jacobowitz <drow@mvista.com>
5045
5046 * mips-tdep.c (mips_float_register_type): New function.
5047 (mips_double_register_type): New function.
5048 (mips_print_register): Use them.
5049 (do_fp_register_row): Likewise.
5050
fd326606
DJ
50512002-05-09 Daniel Jacobowitz <drow@mvista.com>
5052
6609d9af 5053 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5054 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5055 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5056
bef35864
MS
50572002-05-09 Michael Snyder <msnyder@redhat.com>
5058
5059 * remote-rdp.c (remote_rdp_can_run): Remove.
5060
c55a3f73
TT
50612002-05-09 Tom Tromey <tromey@redhat.com>
5062
5063 * jv-valprint.c (java_val_print): Handle `char' as a special case
5064 of TYPE_CODE_INT.
5065
b8d5e71d
MS
50662002-05-09 Michael Snyder <msnyder@redhat.com>
5067
5068 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5069 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5070 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5071 str r(0123),[sp,#nn].
361d1df0 5072 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5073 order-independent by placing it in a loop.
5074
e2cd42dd
MS
50752002-05-06 Michael Snyder <msnyder@redhat.com>
5076
5077 * stabsread.c (read_type): Add recognition for new attribute:
5078 "@V;" means that an array type is actually a vector.
5079 This is analogous to the vector flag that's been added to dwarf2.
5080
3ce1502b
MK
50812002-05-09 Mark Kettenis <kettenis@gnu.org>
5082
5083 * i386-tdep.h (i386_abi): New enum.
5084 (struct gdbarch_tdep): Replace os_ident member with abi.
5085 (i386_gdbarch_register_os_abi): New prototype.
5086 * i386-tdep.c (i386_abi_names): New array.
5087 (process_note_abi_tag_sections): Removed.
5088 (process_note_sections): New function.
5089 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5090 (struct i386_abi_handler): New struct.
5091 (i386_abi_handler_list): New variable.
5092 (i386_gdbarch_register_os_abi): New function.
5093 (i386_gdbarch_init): Adapt for the changes given above.
5094
084c156a
DJ
50952002-05-08 Daniel Jacobowitz <drow@mvista.com>
5096
5097 * gregset.h: Say "GNU/Linux".
5098
6599f021
EZ
50992002-05-08 Elena Zannoni <ezannoni@redhat.com>
5100
5101 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5102 (build_gdbtypes): Build builtin_type_v2_float.
5103 (_initialize_gdbtypes): Register new builtin type.
5104
40af4b0c
AC
51052002-05-08 Andrew Cagney <ac131313@redhat.com>
5106
5107 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5108 (clear_gdbarch_swap): New function.
5109 (initialize_non_multiarch): Call.
5110 (gdbarch_update_p): Before calling init(), swap out and clear the
5111 existing architecture.
5112 * gdbarch.c: Regenerate.
5113
4fe84f46
JT
51142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5115
5116 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5117 alphanbsd-tdep.c.
5118
4015edd1
JT
51192002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5120
5121 * sh-nbsd-nat.c: Rename to...
5122 * shnbsd-nat.c: ...this.
5123 * sh-nbsd-tdep.c: Rename to...
5124 * shnbsd-tdep.c: ...this.
5125 * sh-nbsd-tdep.h: Rename to...
5126 * shnbsd-tdep.h: ...this.
5127 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5128 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5129
0e2bd219
RE
51302002-05-08 Richard Earnshaw <rearnsha@arm.com>
5131
5132 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5133 concatenation for command help messages.
5134
13a38d45
JT
51352002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5136
5137 * NEWS: Note new sh*-*-netbsdelf* configuration.
5138 * configure.host: Set gdb_host_cpu to sh for all sh*.
5139 (sh*-*-netbsdelf*): New host.
5140 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5141 (sh*-*-netbsdelf*): New target.
5142 * sh-nbsd-nat.c: New file.
5143 * sh-nbsd-tdep.c: New file.
5144 * sh-nbsd-tdep.h: New file.
5145 * config/sh/nbsd.mh: New file.
5146 * config/sh/nbsd.mt: New file.
5147 * config/sh/nm-nbsd.h: New file.
5148 * config/sh/tm-nbsd.h: New file.
5149
d658f924
JT
51502002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5151
5152 * sh-tdep.c (sh_osabi_names): Declare.
5153 (process_note_abi_tag_sections): New function.
5154 (get_elfosabi): Ditto.
5155 (sh_gdbarch_register_os_abi): Ditto.
5156 (sh_dump_tdep): Ditto.
5157 _initialize_sh_tdep): Use gdbarch_register to register
5158 sh_gdbarch_init and sh_dump_tdep.
5159 * config/sh/tm-sh.h (sh_osabi): Declare.
5160 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5161
848cfffb
AC
51622002-05-07 Andrew Cagney <ac131313@redhat.com>
5163
5164 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5165 (thumb_scan_prologue): Ditto.
5166 (arm_find_callers_reg): Ditto.
5167 (arm_frame_chain): Ditto.
5168 (arm_init_extra_frame_info): Ditto.
5169 (arm_frame_saved_pc): Ditto.
5170 (arm_pop_frame): Ditto.
5171 (arm_push_return_address): New function.
5172 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5173 call_dummy_location, call_dummy_breakpoint_offset_p,
5174 call_dummy_breakpoint_offset, call_dummy_p,
5175 call_dummy_stack_adjust_p, call_dummy_words,
5176 sizeof_call_dummy_words, call_dummy_start_offset,
5177 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5178 call_dummy_address, push_return_address and push_dummy_frame for
5179 generic dummy frames.
5180
e7d717c0
JT
51812002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5182
5183 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5184 size computation for alloca.
5185 (sh_fp_frame_init_saved_regs): Likewise.
5186
7bbcf283
RE
51872002-05-07 Richard Earnshaw <rearnsha@arm.com>
5188
5189 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5190 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5191 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5192 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5193 * remote-rdp.c (remote_rdp_fetch_register): Use
5194 ARM_MAX_REGISTER_RAW_SIZE.
5195 (remote_rdp_store_register): Likewise.
5196
4657573b
ML
51972002-05-07 Michal Ludvig <mludvig@suse.cz>
5198
361d1df0 5199 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5200 added default labels to switch {} statements.
5201 * x86-64-tdep.c: Ditto.
5202 * x86-64-linux-nat.c: Ditto.
5203
010f3b2f
JT
52042002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5205
5206 * solib.h: Protect against multiple inclusion.
5207
debd256d
JB
52082002-05-06 Jim Blandy <jimb@redhat.com>
5209
9ab3e532
JB
5210 Add first preprocessor macro-expansion files.
5211 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5212 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5213 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5214 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5215 (COMMON_OBS): Add macrotab.o, macroexp.o.
5216 (macroexp.o, macrotab.o): New rules.
5217
debd256d
JB
5218 Separate the job of reading the line number info statement program
5219 header (...expialidocious) out into its own function.
5220 * dwarf2read.c (struct line_head, struct filenames, struct
5221 directories): Replace with...
5222 (struct line_header): New structure, containing the full
5223 contents of the statement program header, including the
5224 include directory and file name tables.
5225 (read_file_scope): If we have line number info, instead of just
5226 calling dwarf_decode_lines to do all the work, call
5227 dwarf_decode_line_header first to get a `struct line_header'
5228 containing the data in the statement program header, and then
5229 pass that to dwarf_decode_lines, which will pick up where that
5230 left off. Be sure to clean up the `struct line_header' object.
5231 (dwarf_decode_line_header, free_line_header, add_include_dir,
5232 add_file_name): New functions.
5233 (dwarf_decode_lines): Move all the code to read the statement
5234 program header into dwarf_decode_line_header. Take the line
5235 header it built as the first argument, instead of the offset to
5236 the compilation unit's line number info. Use the new `struct
5237 line_header' type instead of the old structures. No need to do
5238 cleanups here now, since we don't allocate anything.
5239 (dwarf2_statement_list_fits_in_line_number_section,
5240 dwarf2_line_header_too_long): New complaints.
5241
ac3aafc7
EZ
52422002-05-06 Elena Zannoni <ezannoni@redhat.com>
5243
5244 * gdbtypes.c (init_vector_type): New function.
5245 (build_builtin_type_vec128): Simplify the representation of SIMD
5246 registers.
5247 (build_gdbtypes): Initialize new builtin vector types.
5248 (_initialize_gdbtypes): Register new vector types with gdbarch.
5249 (builtin_type_v4_float, builtin_type_v4_int32,
5250 builtin_type_v8_int16, builtin_type_v16_int8,
5251 builtin_type_v2_int32, builtin_type_v4_int16,
5252 builtin_type_v8_int8): New (renamed) SIMD types.
5253
13e49980
MK
52542002-05-06 Mark Kettenis <kettenis@gnu.org>
5255
5256 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5257 (i387_fill_fxsave): Likewise.
5258
997b20b8
AO
52592002-05-05 Alexandre Oliva <aoliva@redhat.com>
5260
5261 * alpha-tdep.c (alpha_extract_return_value): Don't use
5262 non-constant array size in prototype.
5263
535c96ce
AC
52642002-05-04 Andrew Cagney <ac131313@redhat.com>
5265
5266 From Brian Taylor <briant at model dot com>:
5267 * ui-out.c (ui_out_field_core_addr): Use the function
5268 longest_local_hex_string_custom'to format addresses > 32 bits
5269 wide.
5270
5271 * ui-out.c (ui_out_field_core_addr): Update comment.
5272
bedfa57b
AC
52732002-05-04 Andrew Cagney <ac131313@redhat.com>
5274
5275 * stack.c (select_and_print_frame): Make static. Delete the
5276 parameter `level'.
5277 (func_command): Update call.
5278 (select_frame_command): Delete code computing the frame level.
5279 * frame.h (select_and_print_frame): Delete declaration.
5280
f621c63e
AC
52812002-05-04 Andrew Cagney <ac131313@redhat.com>
5282
5283 * sparc-tdep.c (sparc_get_saved_register): Comment why
5284 get_prev_frame call is safe.
5285
0f7d239c
AC
52862002-05-04 Andrew Cagney <ac131313@redhat.com>
5287
5288 * frame.h (select_frame): Delete level parameter.
5289 * stack.c (select_frame): Update. Use frame_relative_level to
5290 obtain the frame's level.
5291 (select_and_print_frame): Update call.
5292 (select_frame_command): Ditto.
5293 (up_silently_base): Ditto.
5294 (down_silently_base): Ditto.
5295 * ocd.c (ocd_start_remote): Ditto.
5296 * remote-rdp.c (remote_rdp_open): Ditto.
5297 * remote-mips.c (mips_initialize): Ditto.
5298 (common_open): Ditto.
5299 * remote-e7000.c (e7000_start_remote): Ditto.
5300 * m3-nat.c (select_thread): Ditto.
5301 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5302 (child_get_current_exception_event): Ditto.
5303 * varobj.c (varobj_create): Ditto.
5304 (varobj_update): Ditto.
5305 (c_value_of_root): Ditto.
5306 * tracepoint.c (finish_tfind_command): Ditto.
5307 * corelow.c (core_open): Ditto.
5308 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5309 * thread.c (info_threads_command): Ditto.
5310 (switch_to_thread): Ditto.
5311 * infrun.c (normal_stop): Ditto.
5312 (restore_selected_frame): Ditto.
5313 (restore_inferior_status): Ditto.
5314 * breakpoint.c (insert_breakpoints): Ditto.
5315 (watchpoint_check): Ditto.
5316 (bpstat_stop_status): Ditto.
5317 (do_enable_breakpoint): Ditto.
5318 * blockframe.c (flush_cached_frames): Ditto.
5319 (reinit_frame_cache): Ditto.
5320
71d6c7b1
AC
53212002-05-04 Andrew Cagney <ac131313@redhat.com>
5322
5323 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5324 maintainer.
5325
cda6c68a
JB
53262002-05-04 Jim Blandy <jimb@redhat.com>
5327
5328 * gdbtypes.c (replace_type): Doc fix.
5329
5c1c87f0
AC
53302002-05-04 Andrew Cagney <ac131313@redhat.com>
5331
5332 * valprint.c (strcat_longest): Delete commented out function.
5333 Update copyright.
5334
cd9bfe15
AC
53352002-05-04 Andrew Cagney <ac131313@redhat.com>
5336
5337 * MAINTAINERS: Mark a29k as deleted.
5338 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5339 Move new configurations to the top.
5340 * configure.tgt: Remove a29k.
5341 * config/a29k/tm-vx29k.h: Delete.
5342 * config/a29k/vx29k.mt: Delete.
5343 * config/a29k/tm-a29k.h: Delete.
5344 * config/a29k/a29k-udi.mt: Delete.
5345 * config/a29k/a29k.mt: Delete.
5346 * a29k-tdep.c: Delete.
5347 * remote-udi.c: Delete.
5348 * remote-mm.c: Delete.
5349 * remote-eb.c: Delete.
5350 * remote-adapt.c: Delete.
5351 * Makefile.in: Remove obsolete code.
5352 * gdbserver/Makefile.in: Ditto.
5353 * config/s390/s390x.mt: Ditto.
5354 * config/s390/s390.mt: Ditto.
5355 * config/sparc/sparclynx.mh: Ditto.
5356 * config/sparc/linux.mh: Ditto.
5357 * config/pa/hppaosf.mh: Ditto.
5358 * config/pa/hppabsd.mh: Ditto.
5359 * config/ns32k/nbsd.mt: Ditto.
5360 * config/mips/vr5000.mt: Ditto.
5361 * config/m68k/sun3os4.mh: Ditto.
5362 * config/m68k/nbsd.mt: Ditto.
5363 * config/m68k/m68klynx.mh: Ditto.
5364 * config/m32r/m32r.mt: Ditto.
5365 * config/i386/x86-64linux.mt: Ditto.
5366 * config/i386/nbsdelf.mt: Ditto.
5367 * config/i386/nbsd.mt: Ditto.
5368 * config/i386/i386lynx.mh: Ditto.
5369
bf0c5130
AC
53702002-05-04 Andrew Cagney <ac131313@redhat.com>
5371
5372 * target.c (debug_print_register): New function. Handle oversize
5373 registers.
5374 (debug_to_fetch_registers): Call.
5375 (debug_to_store_registers): Call.
5376
2ae1c2d2
JB
53772002-05-03 Jim Blandy <jimb@redhat.com>
5378
13a393b0
JB
5379 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5380 (read_type): Doc fix.
5381 * gdbtypes.c (replace_type): Doc fix.
5382
2ae1c2d2
JB
5383 * stabsread.c (multiply_defined_struct): New complaint.
5384 (read_struct_type): If the type we were passed isn't empty, or
5385 incomplete, don't read the new struct type into it; complain,
5386 and return the original type unchanged. Take a new `type_code'
5387 argument, which is the type code for the new type.
5388 (read_type): Rather than storing the type's type code here, pass
5389 it as an argument to read_struct_type, and let that take care of
5390 storing it. That way, we don't overwrite the original type code,
5391 so read_struct_type can use it to decide whether we're overwriting
5392 something we shouldn't.
5393 (complain_about_struct_wipeout): New function.
5394
8de9bdc4
AC
53952002-05-03 Andrew Cagney <ac131313@redhat.com>
5396
5397 * gdbarch.sh: Assert that gdbarch is non-NULL.
5398 * gdbarch.c: Regenerate.
5399
f773fdbb
JM
54002002-05-03 Jason Merrill <jason@redhat.com>
5401
5402 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5403 and return NULL.
5404
0e04a514
ML
54052002-05-03 Michal Ludvig <mludvig@suse.cz>
5406
5407 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5408 (x86_64_dwarf2gdb_regno_map_length),
5409 (x86_64_dwarf2_reg_to_regnum): Added.
5410 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5411 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5412 (_initialize_x86_64_tdep): Synced with the change above.
5413 (x86_64_skip_prologue): Reformulated message.
5414
065432a8
PM
54152002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5416
5417 * f-exp.y: Also use new prev_lexptr variable
5418 to improve error reporting. Based on Michael Snyder
5419 2002-04-24 dated patch to c-exp.y.
5420 * jv-exp.y: Likewise.
5421 * m2-exp.y: Likewise.
5422
a3162708
EZ
54232002-05-02 Elena Zannoni <ezannoni@redhat.com>
5424
5425 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5426 we are dealing with vectors.
5427
03620c38
PM
54282002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5429
5430 * config/m68k/tm-nbsd.h: Obvious fix,
5431 correct machine name.
5432
6604db2e
PM
54332002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5434
5435 * p-typeprint.c (pascal_type_print_base): Add support
5436 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5437
0906b739
PM
54382002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5439
5440 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5441 for fondamental pascal 'char' type.
5442
e2625b33
PM
54432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5444
5445 * p-lang.h (is_pascal_string_type): Declaration changed,
5446 new sixth argument of type char ** added.
361d1df0 5447 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5448 changed. Args length_pos, length_size, string_pos, char_size
5449 can now be NULL. New argument arrayname set to the field
5450 name of the char array. Return value set to char array
5451 field index plus one.
361d1df0 5452 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5453 is_pascal_string_type function.
5454
cf17c188
AC
54552002-05-02 Andrew Cagney <cagney@redhat.com>
5456
5457 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5458 <cagney@redhat.com> change.
5459 * gdbarch.c: Regenerate.
5460
52bca491
AC
54612002-05-02 Andrew Cagney <cagney@redhat.com>
5462
5463 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5464 before probing for a new one. Detect errorenous gdbarch_init
5465 functions.
5466 * gdbarch.c: Regenerate.
5467
d5e72505
AC
54682002-05-01 Andrew Cagney <cagney@redhat.com>
5469
5470 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5471 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5472 * config/v850/tm-v850.h: Ditto. Update copyright.
5473
af566d9f
AC
54742002-04-30 Andrew Cagney <ac131313@redhat.com>
5475
5476 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5477 current_gdbarch.
5478
880d85fa
MS
54792002-04-30 Michael Snyder <msnyder@redhat.com>
5480
94c30b78
MS
5481 * arm-tdep.c: Whitespace clean-ups.
5482 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5483 should have been removed as part of 4/24 change.
5484
6f5987a6
KB
54852002-04-30 Kevin Buettner <kevinb@redhat.com>
5486
5487 * rs6000-tdep.c: Added comment describing how fpscr register
5488 numbers were chosen.
5489
1a113c93
MS
54902002-04-30 Michael Snyder <msnyder@redhat.com>
5491
5492 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5493
9a6f53fe
EZ
54942002-04-29 Elena Zannoni <ezannoni@redhat.com>
5495
5496 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5497 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5498 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5499
11ed25ac
KB
55002002-04-29 Kevin Buettner <kevinb@redhat.com>
5501
5502 From Louis Hamilton <hamilton@redhat.com>:
5503 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5504 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5505 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5506 not bfd-private xcoff data, to determine wordsize.
5507 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5508
ae232405
AC
55092002-04-29 Andrew Cagney <ac131313@redhat.com>
5510
5511 GDB 5.2 released from 5.2 branch.
5512
91fd20f7
ML
55132002-04-29 Michal Ludvig <mludvig@suse.cz>
5514
5515 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5516 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5517 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5518
2dc5091b
EZ
55192002-04-29 Elena Zannoni <ezannoni@redhat.com>
5520
5521 * rs6000-tdep.c (rs6000_extract_return_value,
5522 rs6000_store_return_value): Handle returning vectors.
5523 (rs6000_gdbarch_init): Use
5524 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5525 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5526 New function.
5527 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5528 vectors.
5529 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5530 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5531
2b9848d8
PM
55322002-04-24 Pierre Muller <ics.u-strasbg.fr>
5533
5534 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5535 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5536 with fprintf_unfiltered (gdb_stderr,...).
5537
f8d17dc5
PM
55382002-04-24 Pierre Muller <ics.u-strasbg.fr>
5539
5540 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5541 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5542 Replace fprintf (stderr,...
5543 with fprintf_unfiltered (gdb_stderr,....
5544 * remote-es.c: Likewise.
5545 * remote-os9k.c: Likewise.
5546 * remote-st.c: Likewise.
5547
2f2f1ad1
AS
55482002-04-28 Andreas Schwab <schwab@suse.de>
5549
5550 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5551 linux-proc.o and gcore.o.
5552
b6779aa2
AC
55532002-04-26 Michal Ludvig <mludvig@suse.cz>
5554
5555 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5556 code without frame pointers.
5557
7e57f5f4
AC
55582002-04-26 Andrew Cagney <ac131313@redhat.com>
5559
5560 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5561 ON_STACK is needed.
5562
2ceb85d0
BE
55632002-04-26 Ben Elliston <bje@redhat.com>
5564
5565 * target.c (do_xfer_memory): Correct reference to the new option
5566 "trust-readonly-sections".
5567
f5f8a009
EZ
55682002-04-26 Elena Zannoni <ezannoni@redhat.com>
5569
5570 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5571 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5572 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5573 vectors.
5574 (read_array_type): Record the fact that this array type is really a
5575 vector (i.e. are passed in by value).
5576
5868c862
JT
55772002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5578
5579 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5580 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5581 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5582 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5583 * alpha-linux-tdep.c: Include frame.h.
5584 (alpha_linux_sigcontext_addr): New function.
5585 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5586 alpha_linux_sigcontext_addr.
5587 * alpha-osf1-tdep.c: Include gdbcore.h.
5588 (alpha_osf1_sigcontext_addr): New function.
5589 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5590 alpha_osf1_sigcontext_addr.
5591 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5592 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5593
bfb01f37
AC
55942002-04-26 Andrew Cagney <ac131313@redhat.com>
5595
361d1df0 5596 * stack.c (selected_frame_level):
bfb01f37
AC
5597 (select_frame): Do not set selected_frame_level.
5598 * frame.h (selected_frame_level): Delete declaration.
5599
15813d3f
AC
56002002-04-26 Andrew Cagney <ac131313@redhat.com>
5601
5602 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5603 convert_from_func_ptr-addr when AIX / PowerOpen.
5604
6096c27a
AC
56052002-04-25 Andrew Cagney <ac131313@redhat.com>
5606
5607 * valops.c (hand_function_call): Call
5608 generic_save_call_dummy_addr.
5609 * frame.h (generic_save_call_dummy_addr): Declare.
5610 * blockframe.c (struct dummy_frame): Add fields call_lo and
5611 call_hi.
5612 (generic_find_dummy_frame): Check for PC in range call_lo to
5613 call_hi instead of entry_point_address.
5614 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5615 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5616 (generic_save_call_dummy_addr): New function.
5617
f510d44e
DM
56182002-04-24 David S. Miller <davem@redhat.com>
5619
5620 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5621 sparc_skip_prologue.
5622 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5623 information to find prologue when possible.
5624 (sparc_prologue_frameless_p): Call examine_prologue directly.
5625 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5626 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5627 second argument.
5628 (SKIP_PROLOGUE): Likewise.
5629
15d72a92
JT
56302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5631
5632 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5633 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5634 indicate that the condition it was testing is always true.
5635 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5636 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5637 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5638
accc6d1f
JT
56392002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5640
5641 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5642 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5643 tdep->jb_pc and tdep->jb_elt_size.
5644 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5645 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5646 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5647 * alpha-nat.c (get_longjmp_target): Remove.
5648 (JB_ELEMENT_SIZE): Ditto.
5649 (JB_PC): Ditto.
5650 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5651 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5652 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5653 to alpha_get_longjmp_target.
5654 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5655 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5656 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5657
1bfdc549
AC
56582002-04-25 Andrew Cagney <ac131313@redhat.com>
5659
5660 * README: Update to GDB 5.2.
5661
1bd316f0
AC
56622002-04-25 Andrew Cagney <ac131313@redhat.com>
5663
5664 * gdbarch.sh (LC_ALL): Set to `c'.
5665
2e5ff58c
TR
56662002-04-25 Theodore A. Roth <troth@verinet.com>
5667
5668 * avr-tdep.c: Ran through gdb_indent.sh.
5669
e33ce519
TR
56702002-04-25 Theodore A. Roth <troth@verinet.com>
5671
5672 * MAINTAINERS: Add myself as AVR maintainer.
5673 * NEWS: Note new target avr.
5674
8818c391
TR
56752002-04-25 Theodore A. Roth <troth@verinet.com>
5676
5677 * Makefile.in: Add support for AVR target.
5678 * configure.tgt: Add support for AVR target.
5679 * avr-tdep.c: New file
5680 * config/avr/avr.mt: New file.
5681
79509c2d
TR
56822002-04-25 Theodore A. Roth <troth@verinet.com>
5683
5684 * MAINTAINERS: Add myself to write-after-approval.
5685
dac8068e
PM
56862002-04-24 Pierre Muller <ics.u-strasbg.fr>
5687
5688 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5689 with fprintf_unfiltered (gdb_stderr,....
5690
25bf3106
PM
56912002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5692
5693 Fix PR gdb/508.
5694 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5695
24467a86
PM
56962002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5697
5698 * p-exp.y: Also use new prev_lexptr variable
5699 to improve error reporting. Based on Michael Snyder
5700 2002-04-24 dated patch to c-exp.y.
5701
95b80706
JT
57022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5703
5704 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5705 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5706 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5707 to 0.
5708 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5709 and struct value.
5710 (FUNCTION_START_OFFSET): Remove.
5711 (BREAKPOINT): Ditto.
5712
e90cc612
JT
57132002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5714
5715 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5716 * NEWS: Ditto.
5717
6c72f9f9
JT
57182002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5719
5720 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5721 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5722 alpha_linux_pc_in_sigtramp.
5723 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5724 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5725 alpha_osf1_pc_in_sigtramp.
5726 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5727 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5728 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5729 alphafbsd_pc_in_sigtramp.
5730 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5731 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5732 alphanbsd_pc_in_sigtramp.
5733 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5734 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5735
5e4f3379
JT
57362002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5737
5738 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5739
da8ca43d
JT
57402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5741
5742 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5743 alphanbsd-tdep.c.
5744 (alphanbsd-nat.o): New dependency list.
5745 (alphanbsd-tdep.o): Ditto.
5746 * NEWS: Note new native NetBSD/alpha configuration.
5747 * alphanbsd-nat.c: New file.
5748 * alphanbsd-tdep.c: Ditto.
5749 * configure.host (alpha*-*-netbsd*): New host.
5750 * configure.tgt (alpha*-*-netbsd*): New target.
5751 * config/alpha/nbsd.mh: New file.
5752 * config/alpha/nbsd.mt: Ditto.
5753 * config/alpha/nm-nbsd.h: Ditto.
5754 * config/alpha/tm-nbsd.h: Ditto.
5755
36a6271d
JT
57562002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5757
5758 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5759 (alpha-osf1-tdep.o): New dependency list.
5760 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5761 and skip_sigtramp_frame members.
5762 * alpha-linux-tdep.c: Include gdbcore.h.
5763 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5764 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5765 * alpha-osf1-tdep.c: New file.
5766 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5767 alpha-osf1-dep.c.
5768 (alpha_frame_past_sigtramp_frame): New function.
5769 (alpha_dynamic_sigtramp_offset): Ditto.
5770 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5771 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5772 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5773 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5774 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5775 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5776 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5777 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5778 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5779 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5780 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5781 to find_solib_trampoline_target.
5782 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5783 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5784 (SKIP_TRAMPOLINE_CODE): Remove.
5785 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5786 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5787 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5788 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5789 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5790 (PROC_SIGTRAMP_MAGIC): Ditto.
5791 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5792 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5793 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5794 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5795 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5796
2f4bc57b
JT
57972002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5798
5799 * NEWS: Note that Alpha targets are now multi-arch.
5800
665132f9
MS
58012002-04-24 Michael Snyder <msnyder@redhat.com>
5802
5803 * parser-defs.h (prev_lexptr): New external variable.
5804 * parse.c (parse_exp_1): Set prev_lexptr to null before
5805 calling the language-specific parser.
5806 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5807 (yyerror): Use prev_lexptr in error reporting.
5808
32872fa7
DJ
58092002-04-24 Daniel Jacobowitz <drow@mvista.com>
5810
5811 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5812 * gregset.h: If FILL_FPXREGSET is defined, provide
5813 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5814 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5815 is defined, call fill_fpxregset.
5816
57e76fac
MS
58172002-04-24 Roland McGrath <roland@frob.com>
5818
5819 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5820 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5821 (supply_gregset, supply_fpregset): New functions.
5822
5823 * gnu-nat.c (gnu_find_memory_regions): New function.
5824 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5825 (gnu_xfer_memory): Add a cast.
5826
f43845b3
MS
58272002-04-24 Michael Snyder <msnyder@redhat.com>
5828
361d1df0 5829 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5830 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5831 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5832 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5833 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5834 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5835
a0abec03
AC
5836Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5837
5838 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5839 NUM_PSEUDO_REGS can be used.
5840
d7bd68ca
AC
58412002-04-24 Andrew Cagney <ac131313@redhat.com>
5842
5843 * arch-utils.h: Update copyright.
5844
5845 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5846 * gdbarch.h, gdbarch.c: Re-generate.
5847
5848 * inferior.h (IN_SIGTRAMP): Delete definition.
5849 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5850 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5851
5852 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5853 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5854 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5855 (find_proc_framesize): Ditto.
5856 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5857 (alpha_init_extra_frame_info): Ditto.
5858 * infrun.c (handle_inferior_event): Ditto.
5859 (handle_inferior_event): Ditto.
5860 (check_sigtramp2): Ditto.
5861 * blockframe.c (create_new_frame): Ditto.
5862 (get_prev_frame): Ditto.
5863 * ppc-linux-tdep.c: Update comments.
5864 * i386-linux-tdep.c: Update comments.
5865 * breakpoint.c (bpstat_what): Update comment.
5866
d06f167a
ML
58672002-04-24 Michal Ludvig <mludvig@suse.cz>
5868
5869 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5870 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5871 ptrace() calls.
5872 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5873
4867e41e
DM
58742002-04-24 David S. Miller <davem@redhat.com>
5875
21d83aa5
DM
5876 * i960-tdep.c (register_in_window_p): New function.
5877 (i960_find_saved_register): Use it instead of
5878 REGISTER_IN_WINDOW_P.
5879 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5880
4867e41e
DM
5881 * symtab.h (find_stab_function_addr): Kill extern.
5882 * minsyms.c (find_stab_function_addr): Remove from here...
5883 * dbxread.c: ... to here, and mark it static.
5884
69cdf6a2
DM
58852002-04-20 David S. Miller <davem@redhat.com>
5886
5887 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5888 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5889
5a595886
DM
58902002-04-21 David S. Miller <davem@redhat.com>
5891
5892 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5893 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5894 (vx_write_register): Likewise.
5895
1da1a192
JB
58962002-04-23 J. Brobecker <brobecker@gnat.com>
5897
5898 * source.c (is_regular_file): New function.
5899 (openp): Check wether file to open is a regular file
5900 to avoid opening directories.
5901
baa6f10b
JT
59022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5903
5904 * findvar.c (extract_signed_integer): Cast printf argument
5905 to suppress format warning.
5906 (extract_unsigned_integer): Likewise.
5907 * infcmd.c (registers_info): Likewise.
5908 * top.c (get_prompt_1): Likewise.
5909 * valops.c (value_assign): Likewise.
5910 * valprint.c (print_decimal): Likewise.
5911
b2c4da81
L
59122002-04-22 H.J. Lu (hjl@gnu.org)
5913
5914 * c-exp.y (typebase): Support
361d1df0 5915
b2c4da81
L
5916 [long|long long|short] [signed|unsigned] [int|]
5917
5918 and
5919
5920 signed [long|long long|short] int
5921
f267bd6a
JT
59222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5923
5924 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5925 and vax-tdep.h.
5926 * vax-tdep.h: New file.
5927 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5928 Make several routines static.
5929 (vax_get_saved_register): New function.
5930 (vax_gdbarch_init): New function.
5931 (_initialize_vax_tdep): Register vax_gdbarch_init.
5932 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5933 Remove macros now under the control of gdbarch.
5934
da3c6d4a
MS
59352002-04-22 Michael Snyder <msnyder@redhat.com>
5936
11d3b27d
MS
5937 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5938 Some whitespace and coding standards tweaks.
da3c6d4a 5939
a33f7558
JT
59402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5941
5942 * vax-tdep.c: Include regcache.h.
5943 (vax_call_dummy_words): New.
5944 (sizeof_vax_call_dummy_words): New.
5945 (vax_fix_call_dummy): New function.
5946 (vax_saved_pc_after_call): Ditto.
5947 * config/vax/tm-vax.h: Don't include regcache.h.
5948 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5949 (CALL_DUMMY): Remove.
5950 (CALL_DUMMY_WORDS): Define.
5951 (SIZEOF_CALL_DUMMY_WORDS): Define.
5952 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5953
47a73475
MS
59542002-04-18 Michael Snyder <msnyder@redhat.com>
5955
5956 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5957
52efde73
JT
59582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5959
5960 * vax-tdep.c (vax_frame_chain): New function.
5961 (vax_push_dummy_frame): Ditto.
5962 (vax_pop_frame): Ditto.
5963 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5964 (FRAMELESS_FUNCTION_INVOCATION): Use
5965 generic_frameless_function_invocation_not.
5966 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5967 (POP_FRAME): Use vax_pop_frame.
5968
ea74468c
JT
59692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5970
5971 * vax-tdep.c (vax_store_struct_return): New function.
5972 (vax_extract_return_value): Ditto.
5973 (vax_store_return_value): Ditto.
5974 (vax_extract_struct_value_address): Ditto.
5975 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5976 vax_store_struct_return.
5977 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5978 (STORE_RETURN_VALUE): Use vax_store_return_value.
5979 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5980
5516aa92
JT
59812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * vax-tdep.c (vax_frame_saved_pc): New function.
5984 (vax_frame_args_address_correct): Ditto.
5985 (vax_frame_args_address): Ditto.
5986 (vax_frame_locals_address): Ditto.
5987 (vax_frame_num_args): Move code to be in proximity to
5988 other frame-related functions.
5989 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5990 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5991 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5992 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5993 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5994
36af0b35
L
59952002-04-22 H.J. Lu (hjl@gnu.org)
5996
5997 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5998 includedir.
5999
ab62c900
JT
60002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6001
6002 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6003 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6004 (FRAME_INIT_SAVED_REGS): New macro.
6005
7232b100
JT
60062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6007
6008 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6009
b70d2aee
JT
60102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6011
6012 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6013 where needed.
6014 (fetch_osf_core_registers): Likewise.
6015 (supply_gregset): Likewise.
6016
a0e8a2d1 60172002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6018
a0e8a2d1
JB
6019 * symfile.h (get_section_index): Define.
6020 * symfile.c (get_section_index): New function.
6021 * mdebugread.c (SC_IS_SBSS): New macro.
6022 (SC_IS_BSS): Return true for the scBss storage class only, as
6023 the scSBss storage class refers to the .sbss section.
6024 (parse_partial_symbols): Discard the symbols which associated
6025 section does not exist.
6026 Make sure to use the .sbss section index for symbols which
6027 storage class is scBss, rather than using the .bss section index.
6028
51eb8b08
JT
60292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6030
6031 * vax-tdep.c: Update copyright years.
6032 (vax_register_name): New function.
6033 (vax_register_byte): Ditto.
6034 (vax_register_raw_size): Ditto.
6035 (vax_register_virtual_size): Ditto.
6036 (vax_register_virtual_type): Ditto.
6037 * config/vax/tm-vax.h: Update copyright years.
6038 (REGISTER_NAMES): Remove.
6039 (REGISTER_NAME): Define.
6040 (REGISTER_BYTE): Use vax_register_byte.
6041 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6042 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6043 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6044
6cc1c0a8
AC
60452002-04-21 Andrew Cagney <ac131313@redhat.com>
6046
6047 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6048 declaration
6049 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6050
9319a2fe
DM
60512002-04-21 David S. Miller <davem@redhat.com>
6052
6053 * arch-utils.c (generic_prologue_frameless_p): Kill
6054 SKIP_PROLOGUE_FRAMELESS_P code.
6055 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6056 references.
6057 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6058 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6059 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6060 references.
6061 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6062 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6063 (sparc_gdbarch_init): Pass it to
6064 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6065
e9ed6d01
JT
60662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6069 (alphabsd-nat.o): New dependency list.
6070
36012033
JT
60712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6072
6073 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6074 alphafbsd-tdep.c.
6075 (alpha-linux-tdep.o): New dependency list.
6076 (alphafbsd-tdep.o): Likewise.
6077
3379287a
JT
60782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6079
6080 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6081 to here...
6082 * alpha-tdep.c: ...from here.
6083 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6084
4bcbd6cb
JT
60852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6086
6087 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6088 prototype from here...
6089 * alpha-tdep.h: ...to here.
6090
b31da25e
AC
60912002-04-21 Andrew Cagney <ac131313@redhat.com>
6092
6093 * frame.h (selected_frame_level): Document as deprecated.
6094 (frame_relative_level): Declare.
6095 * stack.c (frame_relative_level): New function.
6096 (selected_frame_level): Document as deprecated.
6097 (select_frame): Do not set the selected_frame_level.
6098
6099 * stack.c (frame_info, record_selected_frame): Update.
6100 (frame_command, current_frame_command): Update.
6101 (up_silently_base, up_command, down_silently_base): Update.
6102 (down_command): Update.
6103 * inflow.c (kill_command): Update.
6104 * tracepoint.c (finish_tfind_command): Update.
6105 * corelow.c (core_open): Update.
6106 * thread.c (info_threads_command): Update.
6107 (do_captured_thread_select): Update.
6108 * infcmd.c (finish_command): Update.
6109 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6110
9c1d6fe5
JT
61112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6112
6113 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6114
ab89facf
AC
61152002-04-21 Andrew Cagney <ac131313@redhat.com>
6116
6117 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6118 type const.
6119
82a4efa1
JT
61202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6121
6122 * alphafbsd-tdep.c: Update copyright years. Include
6123 alpha-tdep.h.
6124 (alphafbsd_use_struct_convention): Make static.
6125 (alphafbsd_init_abi): New function.
6126 (_initialize_alphafbsd_tdep): New function.
6127 * config/alpha/tm-fbsd.h: Update copyright years.
6128 (USE_STRUCT_CONVENTION): Remove.
6129
44dffaac
JT
61302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6131
6132 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6133 an Alpha ABI variant.
6134 (alpha_abi_handler_list): Declare.
6135 (alpha_gdbarch_register_os_abi): New function.
6136 (alpha_gdbarch_init): Give registered ABI variant handlers a
6137 chance to tweak the gdbarch once we have set up defaults.
6138 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6139
65585be4
JT
61402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6143 to standard_coerce_float_to_double.
6144 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6145
d9b023cc
JT
61462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6147
6148 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6149 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6150 from gdbarch_tdep rather than a constant.
6151 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6152 the default text address for all Alpha Unix ABIs.
6153 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6154 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6155
dc129d82
JT
61562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * alpha-tdep.h: New file. Includes several Alpha target constants
6159 taken from...
6160 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6161 let gdbarch deal with.
6162 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6163 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6164 to dependency list.
6165 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6166 Alpha target register names.
6167 * alphabsd-nat.c: Likewise.
6168 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6169 Alpha target register names. Make serveral routines static.
6170 (alpha_get_saved_register): New function.
6171 (alpha_abi_names): New.
6172 (process_note_abi_tag_sections): New function.
6173 (get_elfosabi): New function.
6174 (alpha_gdbarch_init): New function.
6175 (alpha_dump_tdep): New function.
6176 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6177
d49d1e0a
AC
61782002-04-21 Andrew Cagney <ac131313@redhat.com>
6179
6180 * frame.c (find_saved_register): Delete #ifdef
6181 HAVE_REGISTER_WINDOWS code.
6182 * config/sparc/tm-sparc.h: Update comments.
6183 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6184
92e8c9ed
AC
61852002-04-21 Andrew Cagney <ac131313@redhat.com>
6186
6187 * i960-tdep.c (i960_find_saved_register): New function.
6188 (i960_get_saved_register): New function.
6189 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6190 (i960_get_saved_register): Declare.
6191 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6192
e1925118
DM
61932002-04-20 David S. Miller <davem@redhat.com>
6194
6195 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6196
29673b29
AC
61972002-04-20 Andrew Cagney <ac131313@redhat.com>
6198
6199 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6200 instead of NUM_PSEUDO_REGS.
6201
6c86dcd5
DM
62022002-04-20 David S. Miller <davem@redhat.com>
6203
6204 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6205 GDB_MULTI_ARCH_PARTIAL
6206 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6207 define, let tm-sp64.h do it.
6208
aa40ec90
JT
62092002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6210
6211 * frame.c (find_saved_register): Avoid a NULL pointer
6212 dereference and actually walk the frame list.
6213
0f79675b
AC
62142002-04-20 Andrew Cagney <ac131313@redhat.com>
6215
6216 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6217 sorted in most most-recent-used order. Document.
6218 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6219
c04a1aa8
DJ
62202002-04-20 Daniel Jacobowitz <drow@mvista.com>
6221
6222 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6223 (add_inferior): Call create_register_cache.
6224 (clear_inferiors): Call free_register_cache.
6225 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6226 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6227 (registers): Remove.
6228 (get_regcache): New function.
6229 (create_register_cache, free_register_cache): New functions.
6230 (set_register_cache): Don't initialize the register cache here.
6231 (registers_to_string, registers_from_string, register_data): Call
6232 get_regcache.
6233 * gdbserver/regcache.h: Add prototypes.
6234 * gdbserver/server.h: Likewise.
6235
611cb4a5
DJ
62362002-04-20 Daniel Jacobowitz <drow@mvista.com>
6237
6238 * gdbserver/mem-break.c: New file.
6239 * gdbserver/mem-break.h: New file.
6240 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6241 dependencies.
6242 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6243 member.
6244 (clear_inferiors): Free target_data member if set.
6245 (inferior_target_data, set_inferior_target_data): New functions.
6246 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6247 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6248 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6249 (struct inferior_linux_data): New.
6250 (linux_create_inferior): Use set_inferior_target_data.
6251 (linux_attach): Likewise. Call add_inferior.
6252 (linux_wait_for_one_inferior): New function.
6253 (linux_wait): Call it.
6254 (linux_write_memory): Add const.
6255 (initialize_low): Call set_breakpoint_data.
6256 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6257 handling members.
6258 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6259 call.
6260 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6261 prototypes.
6262 * gdbserver/target.c (read_inferior_memory)
6263 (write_inferior_memory): New functions.
6264 * gdbserver/target.h (read_inferior_memory)
6265 (write_inferior_memory): Change macros to prototypes.
6266 (struct target_ops): Update comments. Add const to write_memory
6267 definition.
6268
f91305dd 62692002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6270
6271 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6272 instead of ->prev.
6273 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6274 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6275 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6276 instead of ->prev.
6277
73d322b1
EZ
62782002-04-19 Elena Zannoni <ezannoni@redhat.com>
6279
6280 Fix PR gdb/471.
6281 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6282 (build_builtin_type_vec128): Ditto.
6283 (append_composite_type_field): Fix calculation of type length in
6284 union case.
6285
ccd9a834
EZ
62862002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6287
6288 * config/djgpp/README: Update.
6289
6290 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6291 compiler warnings.
6292
a57f9e49
JT
62932002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6294
6295 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6296 (alpha_setup_arbitrary_frame): ...to this.
6297 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6298 for alpha_setup_arbitrary_frame.
6299
f4f9705a
AC
63002002-04-18 Andrew Cagney <cagney@redhat.com>
6301
6302 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6303 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6304
f4f9705a
AC
6305 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6306 * target.h (memory_breakpoint_from_pc): Update declaration.
6307 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6308
6309 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6310 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6311 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6312 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6313 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6314 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6315 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6316 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6317 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6318 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6319 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6320 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6321
6322 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6323 const pointer.
6324 * monitor.c (monitor_insert_breakpoint): Ditto.
6325 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6326
6327 * config/mcore/tm-mcore.h: Update copyright.
6328 * mem-break.c: Ditto.
6329 * xstormy16-tdep.c: Ditto.
6330
29f319b8
PM
63312002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6332
6333 * p-exp.y: Add precedence rule for '^' token.
6334 This removes the shift/reduce conflicts.
6335 Remove the comment concerning these shift/reduce conflicts.
6336
ebeac11a
EZ
63372002-04-18 Elena Zannoni <ezannoni@redhat.com>
6338
6339 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6340 (registers_powerpc_nofp): New register set for processors
6341 without floating point unit.
6342
27c31547
DM
63432002-04-18 David S. Miller <davem@redhat.com>
6344
6345 * MAINTAINERS: Add myself to write-after-approval.
6346
47a73475
MS
63472002-04-17 Michael Snyder <msnyder@redhat.com>
6348
6349 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6350
953836b2
AC
63512002-04-17 Andrew Cagney <ac131313@redhat.com>
6352
6353 * rs6000-tdep.c (frame_initial_stack_address): Use
6354 frame_register_read to read the alloca_reg.
6355
8b0d4340
AC
63562002-04-17 Andrew Cagney <ac131313@redhat.com>
6357
6358 * frame.c (find_saved_register): Find saved registers in the next
6359 not prev frame.
6360 Fix PR gdb/365.
6361
d8864532
AC
63622002-04-17 Andrew Cagney <ac131313@redhat.com>
6363
6364 * gdbarch.sh (LANG): Set to ``c''.
6365
36cc83a3 63662002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6367
36cc83a3 6368 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6369
2f4150cc 63702002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6371
6372 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6373 Update copyright.
6374
628703c6 6375 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6376 Also fix PR gdb/391.
361d1df0 6377
56157b4a
AC
63782002-04-14 Andrew Cagney <ac131313@redhat.com>
6379
6380 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6381 * aclocal.m4, configure: Re-generate.
6382 Fix PR gdb/391.
361d1df0 6383
6d1e3329
EZ
63842002-04-14 Elena Zannoni <ezannoni@redhat.com>
6385
6386 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6387 instead of tm_print_insn.
6388
cb06fa07
EZ
63892002-04-14 Elena Zannoni <ezannoni@redhat.com>
6390
6391 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6392
f208ba17
AC
63932002-04-14 Andrew Cagney <ac131313@redhat.com>
6394
6395 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6396 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6397 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6398
20f01a46
DH
63992002-04-12 Don Howard <dhoward@redhat.com>
6400
6401 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6402 max_user_call_depth.
6403 (init_cmd_lists): Initialize the new value;
6404 * cli/cli-script.c (execute_user_command): Limit the call depth of
6405 user defined commands. This avoids a core-dump when user commands
6406 are infinitly recursive.
6407
a88376a3
KB
64082002-04-12 Kevin Buettner <kevinb@redhat.com>
6409
6410 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6411 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6412 from tdep struct instead of DEFAULT_LR_SAVE.
6413 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6414 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6415 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6416
f2172603
MS
64172002-04-12 Michael Snyder <msnyder@redhat.com>
6418
694f61fb 6419 * Remote.c: Spelling fix.
20fe79c8
MS
6420 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6421 If no symbol found for "sbrk", try "_sbrk".
6422 (make_output_phdrs): Use bfd_section_name.
6423 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6424 * eval.c: Indentation fix-ups.
169a7369
MS
6425 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6426 in case it gets applied to an address that is already
6427 in the instruction space.
de74f71f
MS
6428 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6429 * symfile.c: Fix indentation, long lines.
f2172603
MS
6430 * source.c: White space fix-up.
6431
cda5a58a
AC
64322002-04-12 Andrew Cagney <cagney@redhat.com>
6433
6434 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6435 * frame.c (frame_register_read): New function. Return non-zero on
6436 success.
6437 (read_relative_register_raw_bytes_for_frame): Delete.
6438 (read_relative_register_raw_bytes): Delete.
6439 * frame.h (frame_register_read): Declare.
6440 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6441 * sh-tdep.c: Ditto.
6442 * infcmd.c (do_registers_info): Ditto.
6443 * hppa-tdep.c: Ditto.
6444 * rs6000-tdep.c: Ditto.
6445 * h8500-tdep.c: Ditto.
6446 * mips-tdep.c: Ditto.
6447 * h8300-tdep.c: Ditto.
6448 * z8k-tdep.c: Ditto.
6449
2ea5f656
KB
64502002-04-12 Kevin Buettner <kevinb@redhat.com>
6451
6452 From Jimi X <jimix@watson.ibm.com>:
6453 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6454 64-bit SysV ABI.
6455
27b15785
KB
64562002-04-12 Kevin Buettner <kevinb@redhat.com>
6457
6458 From Jimi X <jimix@watson.ibm.com>:
6459 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6460 bfd info.
6461
5d57ee30
KB
64622002-04-12 Kevin Buettner <kevinb@redhat.com>
6463
6464 From Jimi X <jimix@watson.ibm.com>:
6465 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6466 register sets for these processor variants.
6467
bc1e36ca
DJ
64682002-04-11 Daniel Jacobowitz <drow@mvista.com>
6469
6470 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6471 registers which are allowed to fail to store.
6472 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6473 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6474 (ppc_cannot_store_register): FPSCR may not be storable.
6475 * regformats/reg-ppc.dat: Support FPSCR.
6476
e3f36dbd
KB
64772002-04-11 Kevin Buettner <kevinb@redhat.com>
6478
6479 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6480 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6481 Add fpscr as an invalid/unfetchable register.
6482 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6483 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6484 (fill_fpregset): Add support for register fpscr.
6485 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6486 (fill_gregset): Account for the fact that register ``mq'' might
6487 not exist.
6488 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6489 (registers_power): Add fpscr to register set at slot 71.
6490 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6491 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6492
943c9c25
MS
64932002-04-11 Michael Snyder <msnyder@redhat.com>
6494
6495 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6496 * configure: Regenerate.
6497 * config.in: Regenerate.
6498 * acconfig.h: Add define for _SYSCALL32.
6499 * core-sol2.c: Remove #define _SYSCALL32.
6500 * solib-legacy.c: Remove #define _SYSCALL32.
6501
d8c0a2e7
AC
65022002-04-10 Andrew Cagney <ac131313@redhat.com>
6503
6504 * stack.c (select_frame): Cleanup internal error message, do not
6505 use %p.
6506
7cc19214
AC
65072002-04-10 Andrew Cagney <ac131313@redhat.com>
6508
6509 * stack.c (select_frame): Check that selected_frame and the
6510 specified level are as expected.
6511 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6512 Update copyright.
6513 * frame.h (struct frame_info): Add field `level'. Update
6514 copyright.
6515 Work-in-progress PR gdb/464.
6516
67a2b77e
AC
65172002-04-10 Andrew Cagney <ac131313@redhat.com>
6518
6519 * maint.c (maint_print_section_info): Rename print_section_info.
6520 (print_bfd_section_info, print_objfile_section_info): Update.
6521 * inferior.h (struct gdbarch): Add opaque declaration.
6522 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6523 * gdbarch.h: Regenerate.
6524
8cfda98c
ML
65252002-04-10 Michal Ludvig <mludvig@suse.cz>
6526
6527 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6528 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6529 (kernel_u_size): Added.
6530 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6531 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6532
ca439ad2 65332002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6534
ca439ad2
JI
6535 * valarith.c (find_size_for_pointer_math): New function, either returns
6536 the size for a pointer's target, returns 1 for void *, or errors for
6537 incomplete types.
6538 (value_add, value_sub): use find_size_for_pointer_math.
6539
2f2893d9
DJ
65402002-04-09 Daniel Jacobowitz <drow@mvista.com>
6541
6542 * linux-low.c (linux_look_up_symbols): New hook.
6543 (linux_target_ops): Add linux_look_up_symbols.
6544 * remote-utils.c (decode_address): New function.
6545 (look_up_one_symbol): New function.
6546 * server.c (handle_query): Call target look_up_symbols hook.
6547 * server.h (look_up_one_symbol): Add prototype.
6548 * target.h (struct target_ops): Add look_up_symbols hook.
6549
2ec06d2e
DJ
65502002-04-09 Daniel Jacobowitz <drow@mvista.com>
6551
d64b8841
DJ
6552 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6553 * ChangeLog: Correct paths in last ChangeLog entry.
6554
65552002-04-09 Daniel Jacobowitz <drow@mvista.com>
6556
6557 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6558 (struct linux_target_ops): New.
6559 (extern the_low_target): New.
d64b8841 6560 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6561 (register_addr): Use the_low_target explicitly.
6562 (fetch_register): Likewise.
6563 (usr_fetch_inferior_registers): Likewise.
6564 (usr_store_inferior_registers): Likewise.
d64b8841 6565 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6566 (arm_num_regs): Define.
6567 (arm_regmap): Renamed from regmap, made static.
6568 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6569 made static.
6570 (arm_cannot_store_register): Renamed from cannot_store_register,
6571 made static.
6572 (the_low_target): New.
d64b8841 6573 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6574 (i386_num_regs): Define.
6575 (i386_regmap): Renamed from regmap, made static.
6576 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6577 made static.
6578 (i386_cannot_store_register): Renamed from cannot_store_register,
6579 made static.
6580 (the_low_target): New.
d64b8841 6581 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6582 (ia64_num_regs): Define.
6583 (ia64_regmap): Renamed from regmap, made static.
6584 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6585 made static.
6586 (ia64_cannot_store_register): Renamed from cannot_store_register,
6587 made static.
6588 (the_low_target): New.
d64b8841 6589 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6590 (m68k_num_regs): Define.
6591 (m68k_regmap): Renamed from regmap, made static.
6592 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6593 made static.
6594 (m68k_cannot_store_register): Renamed from cannot_store_register,
6595 made static.
6596 (the_low_target): New.
d64b8841 6597 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6598 (mips_num_regs): Define.
6599 (mips_regmap): Renamed from regmap, made static.
6600 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6601 made static.
6602 (mips_cannot_store_register): Renamed from cannot_store_register,
6603 made static.
6604 (the_low_target): New.
d64b8841 6605 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6606 (ppc_num_regs): Define.
6607 (ppc_regmap): Renamed from regmap, made static.
6608 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6609 made static.
6610 (ppc_cannot_store_register): Renamed from cannot_store_register,
6611 made static.
6612 (the_low_target): New.
d64b8841 6613 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6614 (s390_num_regs): Define.
6615 (s390_regmap): Renamed from regmap, made static.
6616 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6617 made static.
6618 (s390_cannot_store_register): Renamed from cannot_store_register,
6619 made static.
6620 (the_low_target): New.
d64b8841 6621 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6622 (sh_num_regs): Define.
6623 (sh_regmap): Renamed from regmap, made static.
6624 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6625 made static.
6626 (sh_cannot_store_register): Renamed from cannot_store_register,
6627 made static.
6628 (the_low_target): New.
d64b8841 6629 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6630 (the_low_target): New.
6631
96cb11df
AC
66322002-04-09 Andrew Cagney <ac131313@redhat.com>
6633
6634 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6635 override FP_REGNUM with frame->fp. Update copyright.
6636 * parse.c (num_std_regs, std_regs): Delete.
6637 (target_map_name_to_register): Do not search std_regs. Update
6638 function description.
6639 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6640 declarations. Update copyright.
6641 Fix PR gdb/251.
361d1df0 6642
c3a3ccc7
DJ
66432002-04-09 Daniel Jacobowitz <drow@mvista.com>
6644
6645 * gdbserver/Makefile.in: Add stamp-h target.
6646 * gdbserver/configure.in: Create stamp-h.
6647 * gdbserver/configure: Regenerated.
6648
ce3a066d
DJ
66492002-04-09 Daniel Jacobowitz <drow@mvista.com>
6650
6651 * gdbserver/inferiors.c: New file.
6652 * gdbserver/target.c: New file.
6653 * gdbserver/target.h: New file.
6654 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6655 dependencies.
6656 * gdbserver/linux-low.c (inferior_pid): New static variable,
6657 moved from server.c.
6658 (linux_create_inferior): Renamed from create_inferior.
6659 Call add_inferior. Return 0 on success instead of a PID.
6660 (linux_attach): Renamed from myattach.
6661 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6662 (linux_thread_alive): Renamed from mythread_alive.
6663 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6664 child dies.
6665 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6666 (regsets_store_inferior_registers): Correct error message.
6667 Add missing ``return 0''.
6668 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6669 (linux_store_registers): Renamed from store_inferior_registers.
6670 (linux_read_memory): Renamed from read_inferior_memory.
6671 (linux_write_memory): Renamed from write_inferior_memory.
6672 (linux_target_ops): New structure.
6673 (initialize_low): Call set_target_ops ().
6674 * gdbserver/remote-utils.c (unhexify): New function.
6675 (hexify): New function.
6676 (input_interrupt): Send signals to ``signal_pid''.
6677 * gdbserver/server.c (inferior_pid): Remove.
6678 (start_inferior): Update create_inferior call.
6679 (attach_inferior): Call add_inferior.
6680 (handle_query): New function.
6681 (main): Call handle_query for `q' packets.
6682 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6683 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6684
0729219d
DJ
66852002-04-09 Daniel Jacobowitz <drow@mvista.com>
6686
6687 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6688 dependencies.
6689 * gdbserver/configure.in: Check for <string.h>
6690 * gdbserver/configure: Regenerate.
6691 * gdbserver/config.in: Regenerate.
6692 * gdbserver/gdbreplay.c: Include needed system headers.
6693 (remote_open): Remove strchr prototype.
6694 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6695 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6696 (supply_register_by_name): Likewise.
6697 (collect_register): Change buf argument to void *.
6698 (collect_register_by_name): Likewise.
6699 * gdbserver/regcache.h: Add missing prototypes.
6700 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6701 * gdbserver/server.c (handle_query): New function.
6702 (attached): New static variable, moved out of main.
6703 (main): Quiet longjmp clobber warnings.
6704 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6705 * gdbserver/utils.c (error): Remove NORETURN.
6706 (fatal): Likewise.
6707
97658e92
DJ
67082002-04-09 Daniel Jacobowitz <drow@mvista.com>
6709
6710 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6711 after the last symbol in a block.
6712
6044e3eb
PM
67132002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6714
6715 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6716 is non zero as a found symbol.
6717
0406ec40
AC
67182002-04-08 Andrew Cagney <ac131313@redhat.com>
6719
6720 * findvar.c: Include "builtin-regs.h".
6721 (value_of_register): Call value_of_builtin_reg when applicable.
6722 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6723 (target_map_name_to_register): Call
6724 builtin_reg_map_name_to_regnum.
6725 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6726 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6727 (builtin_regs_h): Define.
6728 (builtin-regs.o): New target.
6729 (findvar.o): Add $(builtin_regs_h).
6730 * builtin-regs.c, builtin-regs.h: New files.
6731 * std-regs.c: New file.
6732 Partial fix for PR gdb/251.
6733
56a6dfb9
KB
67342002-04-08 Kevin Buettner <kevinb@redhat.com>
6735
6736 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6737 it's no longer required.
6738
3a808432
AC
67392002-04-08 Andrew Cagney <ac131313@redhat.com>
6740
6741 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6742
7c40d541
KB
67432002-04-08 Kevin Buettner <kevinb@redhat.com>
6744
6745 From Jimi X <jimix@watson.ibm.com>:
6746 * rs6000-tdep.c (rs6000_software_single_step): Use
6747 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6748 and size. Use target_insert_breakpoint() and
6749 target_remove_breakpoint() to insert and remove breakpoints
6750 instead of explicit memory reads and writes.
6751
cc9836a8
KB
67522002-04-08 Kevin Buettner <kevinb@redhat.com>
6753
6754 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6755 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6756 ELF_OBJECT_FORMAT ifdef.
6757
7495d1dc
KB
67582002-04-08 Kevin Buettner <kevinb@redhat.com>
6759
6760 From Jimi X <jimix@watson.ibm.com>:
6761 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6762
4288e836
KB
67632002-04-08 Kevin Buettner <kevinb@redhat.com>
6764
6765 From Jimi X <jimix@watson.ibm.com>:
6766 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6767 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6768
a4e4e501
MK
67692002-04-07 Mark Kettenis <kettenis@gnu.org>
6770
6771 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6772 s/asprintf/xasprintf/.
6773 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6774
006defba
AC
67752002-04-07 Andrew Cagney <ac131313@redhat.com>
6776
6777 I believe Jeff Law denies responsability for this one:
6778 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6779 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6780 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6781 Work-around for PR gdb/366.
6782
7aa83cac
EZ
67832002-04-07 Elena Zannoni <ezannoni@redhat.com>
6784
6785 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6786 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6787 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6788
cf1fcca1
EZ
67892002-04-07 Elena Zannoni <ezannoni@redhat.com>
6790
6791 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6792 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6793 information.
6794
3f289e6f
AC
67952002-04-07 Andrew Cagney <ac131313@redhat.com>
6796
6797 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6798 maintainer.
6799
129188f6
AC
68002002-04-07 Andrew Cagney <ac131313@redhat.com>
6801
6802 * README (Reporting Bugs in GDB): Document the bug web page as the
6803 prefered way of submitting bugs.
6804 Fix PR gdb/402.
6805
1200cd6e
AC
68062002-04-06 Andrew Cagney <ac131313@redhat.com>
6807
6808 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6809 -1. Update comment.
6810 * gdbarch.h, gdbarch.c: Re-generate.
6811
2853c33c
AS
68122002-04-07 Andreas Schwab <schwab@suse.de>
6813
6814 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6815 buffer to regcache_collect.
6816
c2169756
AC
68172002-04-06 Andrew Cagney <ac131313@redhat.com>
6818
6819 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6820 * gdbarch.c, gdbarch.h: Re-generate.
6821
25f1b008
AC
68222002-04-06 Andrew Cagney <ac131313@redhat.com>
6823
6824 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6825 declaration. Fix -Werror.
6826
59263426
DJ
68272002-04-05 Daniel Jacobowitz <drow@mvista.com>
6828
6829 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6830 * gdbarch.c: Regenerate.
6831
f5db4da3
MS
68322002-04-05 Michael Snyder <msnyder@redhat.com>
6833
80f8a6eb
MS
6834 * breakpoint.c (clear_command): Rewrite middle section to
6835 combine two loops with identical control conditions.
6836 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6837 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6838
ad3dcc5c
L
68392002-04-05 H.J. Lu (hjl@gnu.org)
6840
6841 * solib-svr4.c (bkpt_names): Add "__start".
6842
f32e7a74
AC
68432002-04-04 Andrew Cagney <ac131313@redhat.com>
6844
6845 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6846 as test for 64 bit target.
6847
8227c0ff
AC
68482002-04-05 Andrew Cagney <ac131313@redhat.com>
6849
6850 * h8500-tdep.c (h8500_write_fp): Delete function.
6851 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6852 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6853 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6855 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6856 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6857 (s390_write_fp):
6858 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6859 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6860 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6861 (d10v_write_fp): Delete function.
6862 * inferior.h (write_fp, generic_target_write_fp): Delete
6863 declarations.
6864 * regcache.c (generic_target_write_fp): Delete function.
6865 (write_fp): Delete function.
6866 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6867 * gdbarch.h, gdbarch.c: Regenerate.
6868 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6869 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6870 (sparc64_write_fp): Delete declaration.
6871 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6872 (h8500_write_fp): Delete declaration.
6873
2757dd86
AC
68742002-04-04 Andrew Cagney <ac131313@redhat.com>
6875
6876 * sparc-tdep.c (sparc64_write_fp): Delete.
6877 (sparc_push_dummy_frame): Replace write_fp call with code to store
6878 the FP directly.
6879 (sparc_gdbarch_init): Do not initialize write_fp.
6880
c69255e1
KB
68812002-04-05 Kevin Buettner <kevinb@redhat.com>
6882
6883 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6884 clause.
6885
ae767bfb
JB
68862002-03-29 Jim Blandy <jimb@redhat.com>
6887
6888 * stack.c (get_selected_block): Add new argument `addr_in_block',
6889 used to return the exact code address we used to select the block,
6890 not just the block.
6891 * blockframe.c (get_frame_block, get_current_block): Same.
6892 * frame.h (get_frame_block, get_current_block,
6893 get_selected_block): Update declarations.
6894 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6895 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6896
84d2ac95
MS
68972002-04-05 Michael Snyder <msnyder@redhat.com>
6898
6899 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6900 warning message.
6901
596aa3bf
JB
69022002-04-05 J. Brobecker <brobecker@gnat.com>
6903
6904 * utils.c (xfullpath): New function.
6905 * defs.h (xfullpath): Add declaration.
6906 * source.c (openp): Use xfullpath in place of gdb_realpath to
6907 avoid resolving the basename part of filenames when the
6908 associated file is a symbolic link. This fixes a potential
6909 inconsistency between the filenames known to GDB and the
6910 filenames it prints in the annotations.
6911 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6912 to be able to match a filename with either the real filename, or
6913 the name of any symbolic link to this file.
6914 (lookup_partial_symtab): Ditto.
6915
c02f5703
MS
69162002-04-04 Michael Snyder <msnyder@redhat.com>
6917
6918 * breakpoint.c: Add support for hardware breakpoints in overlays.
6919 (overlay_events_enabled): New state variable.
6920 (insert_breakpoints): Use overlay_events_enabled to decide
6921 whether to attempt to set a breakpoint at the overlay load addr.
6922 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6923 (remove_breakpoint): Use overlay_events_enabled to decide
6924 whether breakpoints need to be removed from overlay load addr.
6925 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6926 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6927 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6928 disable_overlay_breakpoints): Update overlay_events_enabled.
6929
5fb290d7
DJ
69302002-04-04 Daniel Jacobowitz <drow@mvista.com>
6931
6932 * dwarf2read.c (struct function_range): New.
6933 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6934 (check_cu_functions): New.
6935 (read_file_scope): Initialize global function lists.
6936 Call dwarf_decode_line after processing children.
6937 (read_func_scope): Add to global function list.
6938 (dwarf_decode_lines): Call check_cu_functions everywhere
6939 record_line is called. Call record_line with a linenumber
6940 of 0 to mark sequence ends.
6941
7b3fabf0
ML
69422002-04-04 Michal Ludvig <mludvig@suse.cz>
6943
361d1df0 6944 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6945 change sync with glibc.
6946
bce58c09
JB
69472002-04-03 Jim Blandy <jimb@redhat.com>
6948
6949 * configure.in: Call AC_C_INLINE.
6950 * configure: Regenerated.
361d1df0 6951
2fccf04a
DJ
69522002-04-01 Daniel Jacobowitz <drow@mvista.com>
6953
6954 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6955 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6956
2d1bfe2e
MK
69572002-03-31 Mark Kettenis <kettenis@gnu.org>
6958
a5941fbf
MK
6959 * NEWS: Mention gcore support on FreeBSD/i386.
6960
a90cd31d
MK
6961 * fbsd-proc.c: New file.
6962 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6963 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6964
2d1bfe2e
MK
6965 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6966 while statement.
6967
9eb6e5a1
JB
69682002-03-29 Jim Blandy <jimb@redhat.com>
6969
6970 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6971 unescaped newlines in string literals, but newer ones don't. So
6972 escape them.
6973
f02df580
MS
69742002-03-26 Michael Snyder <msnyder@redhat.com>
6975 Andrew Cagney <cagney@redhat.com>
6976
361d1df0 6977 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6978 restore file to memory.
6979 * cli/cli-dump.h: New file.
6980 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6981 * NEWS: Mention new commands.
f02df580 6982
109f874e
MS
69832002-03-28 Michael Snyder <msnyder@redhat.com>
6984
6985 * symfile.c (symbol_file_add): Move test for null symbols to later.
6986
520f6ade
AC
69872002-03-27 Andrew Cagney <ac131313@redhat.com>
6988
6989 From veksler at il.ibm.com:
6990 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6991 the xstrduped original path.
6992 Fix PR gdb/417.
6993
d4654627
MS
69942002-03-27 Michael Snyder <msnyder@redhat.com>
6995
6996 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6997 * infcmd.c (_initialize_infcmd): Ditto.
6998 * language.c (_initialize_language): Ditto.
6999 * symfile.c (_initialize_symfile): Ditto.
7000 * top.c (_init_main): Ditto.
7001 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7002
6be8bc0c
EZ
70032002-03-27 Elena Zannoni <ezannoni@redhat.com>
7004
7005 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7006 vector registers handling.
7007 (skip_prologue): Handle new AltiVec instructions. Fill in new
7008 fields of frame data.
7009 (frame_get_saved_regs): Fill in information for AltiVec registers.
7010
12af6855
JB
70112002-03-27 Jim Blandy <jimb@redhat.com>
7012
7013 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7014 a function; leave this macro here to invoke that function.
7015 (symbol_init_mangled_name): Declaration for that function.
7016 * symtab.c (symbol_init_mangled_name): New function.
7017
dc672865
AC
70182002-03-27 Andrew Cagney <ac131313@redhat.com>
7019
7020 * valarith.c: Replace strerror with safe_strerror.
7021 * tracepoint.c: Ditto.
7022 * lin-lwp.c: Ditto.
7023 * go32-nat.c: Ditto.
7024 * inflow.c: Ditto.
7025 * gnu-nat.c: Ditto.
7026
d96429cd
AS
70272002-03-27 Andreas Schwab <schwab@suse.de>
7028
7029 * event-top.c (command_line_handler): Remove useless if.
7030
7e336ba1
AJ
70312002-03-27 Andreas Jaeger <aj@suse.de>
7032
7033 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7034 comment.
7035
de220d0f
ML
70362002-03-27 Michal Ludvig <mludvig@suse.cz>
7037
7038 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7039 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7040 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7041 (x86_64_linux_dr_get_status, supply_gregset),
7042 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7043 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7044 (x86_64_register_info_table): Add.
7045 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7046 (x86_64_register_raw_size, x86_64_register_virtual_type),
7047 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7048 general x86_64_register_info_table.
7049 (i386_gdbarch_init): gdbarch_register_bytes is now set
7050 dynamicaly during initialization.
7051 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7052 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7053
0e98d0a7
DJ
70542002-03-27 Daniel Jacobowitz <drow@mvista.com>
7055
7056 * gdbserver/server.c (main): Call target_signal_to_host_p
7057 and target_signal_to_host on signals received from the remote.
7058 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7059 target_signal_from_host on signals sent to the remote.
7060 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7061 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7062
3130066b
DJ
70632002-03-27 Daniel Jacobowitz <drow@mvista.com>
7064
7065 * signals/signals.c: Include "server.h" in gdbserver build.
7066 (target_signal_from_name): Don't use STREQ.
7067 (_initialize_signals): Likewise. Don't include function in
7068 gdbserver build.
7069
9aedf4f4
DJ
70702002-03-27 Daniel Jacobowitz <drow@mvista.com>
7071
7072 * signals.c: Moved to...
7073 * signals/signals.c: Here.
7e336ba1 7074 * Makefile (signals.o): Update.
9aedf4f4 7075
3fa41cdb
JL
70762002-03-26 Jeff Law (law@redhat.com)
7077
7078 * somread.c (som_symtab_read): Remove some commented out code and
7079 updated related comments. Do not set the minimal symbol table to
7080 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7081 in a dynamic executable.
7082 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7083 where we are unable to find the minimal symbol for the given
7084 PC value.
7085
ee677e8d
MS
70862002-03-25 Jeff Law (law@redhat.com)
7087
7088 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7089
e76e1718
ML
70902002-03-25 Michal Ludvig <mludvig@suse.cz>
7091
7092 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7093
18a642a1
AC
70942002-03-23 Andrew Cagney <ac131313@redhat.com>
7095
7096 * command.h: Update copyright.
7097 (struct cmd_list_element): Replace definition with opaque
7098 declaration.
7099 (enum cmd_types): Document that it will eventually be moved to
7100 cli/cli-decode.h
7101 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7102 (MALLOCED_REPLACEMENT): Delete macro.
7103 * Makefile.in (cli_decode_h): Add $(command_h).
7104 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7105 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7106 * completer.c: Include "cli/cli-decode.h".
7107 * maint.c: Include "cli/cli-decode.h".
7108 * cli/cli-decode.h: Include "command.h".
7109 (enum command_class): Delete.
7110 (enum cmd_types): Comment out.
7111 (enum cmd_auto_boolean): Delete.
7112 (enum var_types): Delete.
7113
b2875cc0
AC
71142002-03-23 Andrew Cagney <ac131313@redhat.com>
7115
7116 * cli/cli-decode.c: Include "gdb_assert.h".
7117 (add_set_or_show_cmd): New static function.
7118 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7119 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7120 all fields, such as func, from the set command.
7121
3b45974e
AC
71222002-03-23 Andrew Cagney <ac131313@redhat.com>
7123
7124 * MAINTAINERS (sh-elf): Change warning flag to -w.
7125
823ca731
AC
71262002-03-23 Andrew Cagney <cagney@redhat.com>
7127
7128 * defs.h (error): Add printf format attribute.
7129 * thread-db.c (thread_from_lwp): Fix error format string.
7130 * stack.c (parse_frame_specification): Ditto.
7131 * cli/cli-decode.c (undef_cmd_error): Ditto.
7132 * scm-lang.c (scm_lookup_name): Ditto.
7133 * tracepoint.c (trace_error): Ditto.
7134 * remote-utils.c (usage): Ditto.
7135 * remote.c (compare_sections_command): Ditto.
7136 Fix PR gdb/328.
7137
0e101458
AC
71382002-03-22 Andrew Cagney <ac131313@redhat.com>
7139
7140 * gdbtypes.c (append_composite_type_field): New function.
7141 (init_composite_type): New function.
7142 * gdbtypes.h (append_composite_type_field): Declare.
7143 (init_composite_type): Ditto.
7144
8e0662df
EZ
71452002-03-22 Elena Zannoni <ezannoni@redhat.com>
7146
7147 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7148 function.
8e0662df
EZ
7149 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7150 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7151 structure returning convention for SYSV ABI case, but not
7152 for GNU/Linux, FreeBSD, or NetBSD.
7153
3121eff0
DJ
71542002-03-22 Daniel Jacobowitz <drow@mvista.com>
7155
7156 * symtab.h (lookup_block_symbol): Add mangled_name argument
7157 to prototype.
7158
7159 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7160 with new mangled_name argument.
7161 * linespec.c (decode_line_1): Likewise.
7162 * valops (value_of_this): Likewise.
7163 * symtab.c (lookup_transparent_type): Likewise.
7164 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7165 (lookup_symbol): If we are given a mangled name, pass it down
7166 to lookup_symbol_aux.
7167 (lookup_block_symbol): If we are given a mangled name to check
7168 against, only return symbols which match it.
7169
349b409f
CF
71702002-03-22 Christopher Faylor <cgf@redhat.com>
7171
7172 * win32-nat.c (child_create_inferior): Check for proper shell to use
7173 here, in case the user changes it on the fly.
7174 (_initialize_inftarg): Remove shell path considerations.
7175
2a873819
EZ
71762002-03-21 Elena Zannoni <ezannoni@redhat.com>
7177
7178 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7179 for gdbarch_max_register_raw_size and max_register_virtual_size.
7180 Adjust copyright year.
7181
a1b9830c
DJ
71822002-03-21 Daniel Jacobowitz <drow@mvista.com>
7183
7184 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7185 in a function to cover the entire beginning of the function
7186 as well if it does not already.
7187
8b5790f2
TR
71882002-03-21 Tom Rix <trix@redhat.com>
7189
7190 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7191 (rs6000_ptrace64): Renamed from ptrace64.
7192
bdbe5747
MH
71932002-03-20 Martin M. Hunt <hunt@redhat.com>
7194
7195 * gdbserver/remote-utils.c (remote_open): Don't call
7196 getprotobyname, we're all using TCP here so just use
7197 IPPROTO_TCP.
7e336ba1 7198 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7199
72002002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7201
bdbe5747
MH
7202 * regcache.c (_initialize_regcache): No need to call
7203 build_regcache() at this time; it gets called whenever
7204 the gdbarch changes.
7205
7781cd62
DB
72062002-03-20 David O'Brien <obrien@FreeBSD.org>
7207
7208 * sparc-nat.c: Include sys/param.h where possible.
7209
f65ca430
DJ
72102002-03-20 Daniel Jacobowitz <drow@mvista.com>
7211
7212 Fix PR gdb/422.
7213 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7214 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7215 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7216 complex types.
7217 * stabsread.c (rs6000_builtin_type): Likewise.
7218 (read_sun_floating_type): Likewise.
7219
0c867556
PS
72202002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7221
7222 * stabsread.c (read_member_functions): Remove skip code for duplicate
7223 constructor/destructor methods. Use standard parsing for these
7224 methods and just do not chain them to the list of methods after
7225 parsing.
7226
12b9c64f
AO
72272002-03-19 Alexandre Oliva <aoliva@redhat.com>
7228
7229 * coffread.c: Remove redundant static declarations. Replace
7230 occurrences of `PTR' with `void *'.
7231 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7232 * top.h (quit_cover): Likewise.
7233 * defs.h (catch_errors): Likewise.
7234
349c5d5f
AC
72352002-03-18 Andrew Cagney <ac131313@redhat.com>
7236
7237 * defs.h (XMALLOC): Define.
7238 * gdb-events.sh (XMALLOC): Delete macro.
7239 * gdb-events.c, gdb-events.h: Regenerate.
7240 * gdbarch.sh (XMALLOC): Delete macro.
7241 * gdbarch.c: Regenerate.
7242 * serial.c (XMALLOC): Delete macro.
7243 * ui-file.c (XMALLOC): Ditto.
7244 * ser-unix.h (XMALLOC): Ditto.
7245 * sh-tdep.c (XMALLOC): Ditto.
7246 * ui-out.c (XMALLOC): Ditto.
7247 * utils.c (XMALLOC): Ditto.
7248 * i386-tdep.c (XMALLOC): Ditto.
7249 * gdb-events.c (XMALLOC): Ditto.
7250 * d10v-tdep.c (XMALLOC): Ditto.
7251 * cli-out.c (XMALLOC): Ditto.
7252
7253 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7254 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7255 * ui-file.c, ui-out.c: Ditto.
7256
7d0766f3
AC
72572002-03-18 Andrew Cagney <ac131313@redhat.com>
7258
7259 * command.h (struct cmd_list_element): Add field context.
7260 (set_cmd_context, get_cmd_context): Declare.
7261 * cli/cli-decode.h: Ditto.
7262 * cli/cli-decode.c (get_cmd_context): New function.
7263 (set_cmd_context): New function.
7264 (add_cmd): Initialize context.
7265 Part of fixing PR gdb/145 and PR gdb/146.
7266
5913bcb0
AC
72672002-03-17 Andrew Cagney <ac131313@redhat.com>
7268
1868c04e
AC
7269 * cli/cli-decode.c (cmd_type): New function.
7270 * command.h (cmd_type): Declare.
7271 * infrun.c (set_schedlock_func): Call function cmd_type.
7272 * kod.c (kod_set_os): Call cmd_type.
7273 * cris-tdep.c (cris_version_update): Use function cmd_type.
7274 (cris_mode_update, cris_abi_update): Ditto.
7275
5913bcb0
AC
7276 * command.h: (execute_cmd_post_hook): Declare.
7277 (execute_cmd_pre_hook): Declare.
7278 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7279 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7280 functions. Execute pre/post hook while ensuring that afterwords
7281 hook_in is cleared.
7282 * top.c (execute_command): Use execute_cmd_post_hook, and
7283 execute_cmd_pre_hook to execute pre/post commands.
7284 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7285 hook_stop_stub.
7286 (hook_stop_stub): Call execute_cmd_pre_hook.
7287
b51450c9
AC
72882002-03-17 Andrew Cagney <ac131313@redhat.com>
7289
7290 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7291 set'' and this leads to a core dump. Move xstrdup of
7292 operating_system to after check that it is not NULL.
7293
f66c9f11
AC
72942002-03-17 Andrew Cagney <ac131313@redhat.com>
7295
8e694ecf
AC
7296 * kod.c (kod_set_os): Remove unnecessary check that
7297 ``command->type'' is set_cmd.
7298
f66c9f11
AC
7299 * valprint.c (set_input_radix): Use input_radix.
7300 (set_output_radix): Use output_radix.
7301 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7302 isn't reverted.
7303
9d01611c
AC
73042002-03-16 Andrew Cagney <ac131313@redhat.com>
7305
7306 * value.h (struct value): Delete field ``substring_addr''. Change
7307 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7308 force_core_addr_align and force_pointer_aligh.
7309
7310 * value.h (struct value): Fix typo in above change.
9d01611c 7311
4156bb53
PS
73122002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7313
7314 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7315 to fix internal_error from ``maintenance print architecture''.
7316
0e5e3ea6
PS
73172002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7318
7319 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7320 for gcc versions after gcc-2.8.1.
7321
9b013045
PS
73222002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7323
7324 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7325 for method resolution. Restore adjustment of ``this'' pointer after
7326 calling value_struct_elt, which was accidentally removed during the
7327 HP merge.
7328
376c9600
AC
73292002-03-15 Andrew Cagney <ac131313@redhat.com>
7330
7331 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7332 value_of_register.
7333 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7334 get_saved_register.
7335 * value.h (value_of_register): Update.
7336
a4db0f07
RH
73372002-03-14 Richard Henderson <rth@redhat.com>
7338
7339 * configure.in: Detect declaration for canonicalize_file_name.
7340 * utils.c (canonicalize_file_name): Declare, if needed.
7341 (gdb_realpath): Prefer realpath if available and usable.
7342 * config.in, configure: Rebuild.
7343
96383835
RH
73442002-03-14 Richard Henderson <rth@redhat.com>
7345
7346 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7347 a constant array bound.
7348
7349 * MAINTAINERS: Add myself to write-after-approval.
7350
75245b24
MS
73512002-03-14 Michael Snyder <msnyder@redhat.com>
7352
7353 * symfile.c (syms_from_objfile): Return immediately if no syms.
7354 (symbol_file_add): Return immediately if no syms.
7355 (find_sym_fns): Return immediately if no syms.
7356
e641a1ca
ML
73572002-03-13 Michal Ludvig <mludvig@suse.cz>
7358
7359 * gdbserver/remote-util.c (remote_open): Print remote-side's
7360 IP address when remote debugging over the network.
7e336ba1 7361
df08bfec
DB
73622002-03-12 David O'Brien <obrien@FreeBSD.org>
7363
7364 * config/sparc/fbsd.mh: Fix copyright.
7365 * config/sparc/fbsd.mt: Likewise.
7366
9a57864f
RE
73672002-03-11 Richard Earnshaw <rearnsha@arm.com>
7368
7369 * MAINTAINERS: Fix typo in name of gdb warnings option.
7370 (x86-64): Fix formating so that this can be parsed by awk.
7371
dd7bf85e
DJ
73722002-03-10 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7375 * defs.h: Include "gdb/signals.h".
7376 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7377
33a0a2ac
ML
73782002-03-10 Michal Ludvig <mludvig@suse.cz>
7379
7380 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7381 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7382 from x86-64-tdep.h
7383
dd824b04
DJ
73842002-03-10 Daniel Jacobowitz <drow@mvista.com>
7385 Don Howard <dhoward@redhat.com>
7386
7387 * mips-tdep.c (ST0_FR): Define.
7388 (mips2_fp_compat): New function, temporarily disabled.
7389 (mips_read_fp_register_single): New function.
7390 (mips_read_fp_register_double): New function.
7391 (mips_print_register): Use them.
7392 (do_fp_register_row): Likewise.
7393
6a41ff59
AC
73942002-03-09 Andrew Cagney <ac131313@redhat.com>
7395
7396 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7397 approval''.
7398
4ea09c10
PS
73992002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7400
7401 * stabsread.c (read_member_functions): Fix is_stub test for
7402 static member functions, improve comment.
7403
6ccc741d
RE
74042002-03-07 Richard Earnshaw <rearnsha@arm.com>
7405
7406 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7407 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7408 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7409 commands that set boolean values.
7410 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7411 (arm_rdi_resume): Always initialize PC.
7412 (arm_rdi_open): Don't use rslt as a boolean.
7413 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7414 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7415 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7416 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7417
438013df
AO
74182002-03-06 Alexandre Oliva <aoliva@redhat.com>
7419
7420 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7421 * configure: Rebuilt.
7422
70ed8774
SC
74232002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7424
7425 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7426 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7427
5ba2abeb
AC
74282002-03-06 Andrew Cagney <ac131313@redhat.com>
7429
7430 * cli/cli-decode.c (set_cmd_completer): New function.
7431 * command.h (set_cmd_completer): Declare.
7432 * cli/cli-decode.h (set_cmd_completer): Ditto.
7433
7434 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7435 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7436 * win32-nat.c (_initialize_inftarg): Ditto.
7437 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7438 * proc-api.c (_initialize_proc_api): Ditto.
7439 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7440 * source.c (_initialize_source): Ditto.
7441 * exec.c (_initialize_exec): Ditto.
7442 * solib.c (_initialize_solib): Ditto.
7443 * top.c (init_main): Ditto.
7444 * tracepoint.c (_initialize_tracepoint): Ditto.
7445 * symfile.c (_initialize_symfile): Ditto.
7446 * printcmd.c (_initialize_printcmd): Ditto.
7447 * infcmd.c (_initialize_infcmd): Ditto.
7448 * corefile.c (_initialize_core): Ditto.
7449
f779ca99
AC
74502002-03-05 Andrew Cagney <ac131313@redhat.com>
7451
7452 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7453
01a3934b
AC
74542002-03-05 Andrew Cagney <ac131313@redhat.com>
7455
7456 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7457
37057839
AC
74582002-03-05 Andrew Cagney <ac131313@redhat.com>
7459
7460 * NEWS: Update headings, 5.2 has branched.
7461
c6ecbae5
DJ
74622002-03-04 Daniel Jacobowitz <drow@mvista.com>
7463
7464 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7465 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7466 (register_addr, REGISTER_RAW_SIZE): Likewise.
7467 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7468 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7469
e9f30c21
ML
74702002-03-03 Michal Ludvig <mludvig@suse.cz>
7471
7472 * MAINTAINERS (x86-64): Add myself.
7473 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7474 changed value_ptr -> struct value *
7475
54394ac3
DB
74762002-03-01 David O'Brien <obrien@FreeBSD.org>
7477
7478 * configure.host (sparc64-*-freebsd): Add.
7479 * configure.tgt: Likewise.
7480 * config/sparc/fbsd.mh: New file.
7481 * config/sparc/fbsd.mt: Likewise.
7482 * config/sparc/nm-fbsd.h: Likewise.
7483 * config/sparc/tm-fbsd.h: Likewise.
7484
bfe95955
DJ
74852002-03-01 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7488 regformats/reg-s390x.dat.
7489
f33c6cbf
AC
74902002-03-01 Andrew Cagney <ac131313@redhat.com>
7491
7492 * utils.c: Add FIXME explaining true/false problem.
7493
5ecaa7dd
AC
74942002-02-28 Andrew Cagney <ac131313@redhat.com>
7495
7496 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7497
2a251cc2
MC
74982002-02-28 Michael Chastain <mec@shout.net>
7499
7500 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7501
6a8031a3 75022002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7503
7504 * gdbserver/linux-s390-low.c: New file.
7505 * regformats/reg-s390.dat: New file.
7506 * regformats/reg-s390x.dat: New file.
7507 * gdbserver/configure.srv: Add S/390.
7508 * gdbserver/Makefile.in: Add S/390.
7509 * configure.tgt: Enable gdbserver for S/390.
7510
ac469903
EZ
75112002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7512
7513 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7514 first line of the doc string for "info dos", except at the end of
7515 the sentence, since the short help stops at the first period.
7516
985cb1a3
JM
75172002-02-28 Jason Merrill <jason@redhat.com>
7518
7519 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7520
c570663e
FF
75212002-02-27 Fred Fish <fnf@redhat.com>
7522
7523 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7524 comment (dumy -> dummy).
7525
43630227
PS
75262002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7527
7528 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7529
b84911e8
RB
75302002-02-27 Rodney Brown <rbrown64@csc.com.au>
7531
7532 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7533
58caa3dc
DJ
75342002-02-27 Daniel Jacobowitz <drow@mvista.com>
7535
7536 * gdbserver/acconfig.h: New file.
7537 * gdbserver/i387-fp.c: New file.
7538 * gdbserver/i387-fp.h: New file.
7539 * gdbserver/linux-x86-64.c: New file.
7540 * regformats/reg-x86-64.dat: New file.
7541 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7542 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7543 * gdbserver/configure.in: Add support for regsets.
7544 * gdbserver/config.in: Regenerate.
7545 * gdbserver/configure: Regenerate.
7546 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7547 * gdbserver/linux-low.h: New file.
7548 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7549 for regsets.
7550 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7551 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7552 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7553 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7554 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7555 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7556 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7557 "i387-fp.h". Add PTRACE_GETREGS and friends.
7558 * gdbserver/regcache.c (supply_register): New function.
7559 (supply_register_by_name): New function.
7560 (collect_register): New function.
7561 (collect_register_by_name): New function.
7562
93652174
DJ
75632002-02-27 Daniel Jacobowitz <drow@mvista.com>
7564
7565 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7566 (config.status): Add configure.srv dependency.
7567 (server_h): Add config.h dependency.
7568
a02e4a61
DJ
75692002-02-27 Daniel Jacobowitz <drow@mvista.com>
7570
7571 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7572 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7573 * gdbserver/configure.srv: Change i386-*-linux* to use
7574 reg-i386-linux.o.
7575
ce0eebec
AC
75762002-02-26 Andrew Cagney <ac131313@redhat.com>
7577
7578 * x86-64-tdep.c: Re-indent. Update copyright date.
7579
82dbc5f7
AC
75802002-02-26 Andrew Cagney <ac131313@redhat.com>
7581
7582 From Michal Ludvig <mludvig@suse.cz>:
7583 * x86-64-tdep.c (value.h): Delete.
7584 (gdb_assert.h): Include.
7585 (x86_64_register_convert_to_virtual,
7586 x86_64_register_convert_to_raw ): Add check which lets only
7587 floating-point values to be converted.
7588 (value_push): Delete.
7589 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7590 (i386_gdbarch_init): Number of register_bytes fixed.
7591
e4621584
AC
75922002-02-26 Andrew Cagney <ac131313@redhat.com>
7593
7594 * MAINTAINERS: Add x86-64 target.
7595
81a9a963
AC
75962002-02-26 Andrew Cagney <ac131313@redhat.com>
7597
7598 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7599 * osfsolib.c (solib_map_sections): Ditto.
7600 * irix5-nat.c (solib_map_sections): Ditto.
7601 * corelow.c (gdb_check_format): Ditto.
7602 * symfile.c (symfile_bfd_open): Ditto.
7603 * solib.c (solib_map_sections): Ditto.
7604 Fix PR gdb/354.
7e336ba1 7605
0f017ab9
AC
76062002-02-26 Andrew Cagney <ac131313@redhat.com>
7607
7608 * remote.c (_initialize_remote): By default, disable ``e'' and
7609 ``E'' step out-of-range packets.
7610
75738c29
AS
76112002-02-26 Andreas Schwab <schwab@suse.de>
7612
7613 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7614 m68k_linux_frame_saved_pc.
7615 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7616 in_sigtramp.
7617 (SIGCONTEXT_PC_OFFSET): Remove.
7618 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7619 m68k_linux_sigtramp_saved_pc): New functions.
7620 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7621 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7622 (UCONTEXT_PC_OFFSET): Define.
7623 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7624 non-RT and RT signal trampolines.
7625
7e8ed687
RE
76262002-02-26 Richard Earnshaw <rearnsha@arm.com>
7627
7628 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7629 (TARGET_NBPG, STACK_END_ADDR): Delete
7630 (VARIABLES_INSIDE_BLOCK): Delete.
7631
6972bc8b
AC
76322002-02-25 Andrew Cagney <ac131313@redhat.com>
7633
7634 * utils.c (perror_with_name): Make string parameter constant.
7635 (print_sys_errmsg): Ditto.
7636 (query): Ditto.
7637 * defs.h (perror_with_name): Update.
7638 (print_sys_errmsg): Update.
7639 (query): Update.
7640
aa32f823
DJ
76412002-02-25 Daniel Jacobowitz <drow@mvista.com>
7642
7643 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7644 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7645
19caaa45
PS
76462002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7647
7648 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7649 if it already matches the current architecture from the exec file.
7650 Include arch-utils.h for gdbarch_info_init prototype.
7651 * Makefile.in (rs6000-nat.o): Update dependencies.
7652
d951901f
EZ
76532002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7654
7655 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7656 list of exported variables.
7657
7ea81414
DJ
76582002-02-24 Daniel Jacobowitz <drow@mvista.com>
7659
7660 * gdbserver/configure.srv: New file.
7661 * gdbserver/configure.in: Use configure.srv instead
7662 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7663 from it.
7664 * gdbserver/configure: Regenerated.
7665 * gdbserver/terminal.h: New file.
7666 * gdbserver/Makefile.in: Update for configure changes. Remove
7667 more unneeded include paths.
7668
080fe24b
AC
76692002-02-24 Andrew Cagney <ac131313@redhat.com>
7670
7671 From wiz at danbala:
7672 * config/sparc/tm-sp64.h: Fix grammar and typos.
7673 Fix PR gdb/287.
7674
8605d56e
AC
76752002-02-24 Andrew Cagney <ac131313@redhat.com>
7676
7677 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7678 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7679 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7680 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7681 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7682 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7683 * s390-tdep.c: Ditto.
92362027
AC
7684 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7685 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7686 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7687 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7688 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7689 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7690 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7691 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7692 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7693 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7694 Fix PR gdb/378.
7e336ba1 7695
8ed32cc0
AC
76962002-02-23 Andrew Cagney <ac131313@redhat.com>
7697
a3007b6f
AC
7698 * lin-thread.c: Delete file.
7699 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7700 to gdb_proc_service.h.
7701 * configure: Re-generate.
7702
50a9e2f1
AC
7703 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7704 * serial.c (serial_open): Delete check for "ocd".
7705 Fix PR gdb/349.
7706
8b6e7932
AC
7707 * Makefile.in (linux-thread.o): Delete target.
7708 * linux-thread.c: Delete file.
7709
d155c46b
AC
7710 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7711 renamed SH files to be consistent.
7712
8ed32cc0
AC
7713 * symtab.c (sort_search_symbols): Use xfree.
7714
0e18d038
RE
77152002-02-23 Richard Earnshaw <rearnsha@arm.com>
7716
7717 * arm-linux-tdep.c (arm_linux_init_abi): Register
7718 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7719 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7720 definition with undef, since we don't want the sysvr4 definition.
7721 (SKIP_TRAMPOLINE_CODE): Likewise.
7722
27aac7ff
AC
77232002-02-23 Andrew Cagney <ac131313@redhat.com>
7724
7725 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7726
7727 * configure.in: (AC_CHECK_FUNCS) Added test for
7728 canonicalize_file_name Regenerated.
7729 * config.in, configure: Regenerated.
7730 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7731 defined use canonicalize_file_name.
7e336ba1 7732
65a6e0ee
MC
77332002-02-23 Michael Chastain <mec@shout.net>
7734
7735 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7736
47b95330
AC
77372002-02-23 Andrew Cagney <ac131313@redhat.com>
7738
7739 * README: Remove references to cygnus.com.
7740 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7741 dot com'' form. Remove references to cygnus.com and sourceware.
7742
696f451b
AC
77432002-02-23 Andrew Cagney <ac131313@redhat.com>
7744
7745 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7746 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7747 1003.1-2001 no longer allows "head -1".
7748 * gdb/Makefile.in (version.c): Likewise.
7749 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7750 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7751 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7752
bbaca940
AC
77532002-02-23 Andrew Cagney <ac131313@redhat.com>
7754
7755 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7756 * command.h (cmd_cfunc_eq): Declare.
7757 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7758
7759 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7760 ``struct cmd_list_element *''.
7761 * cli/cli-cmds.c (is_complete_command): Update. Use
7762 cmd_cfunc_eq.
7763 * top.c (execute_command): Pass the command to
7764 is_complete_command.
7765 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7766
b8b8b047
AC
77672002-02-23 Andrew Cagney <ac131313@redhat.com>
7768
7769 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7770 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7771 architecture defines.
7772 * s390-tdep.c (s390_gdbarch_init): Likewise.
7773
19d3fc80
RE
77742002-02-23 Richard Earnshaw <rearnsha@arm.com>
7775
7776 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7777 (arm_linux_push_arguments): Likewise.
7778 (arm_linux_init_abi): Register them. Also register linux-specific
7779 call_dummy_words.
7780 (find_minsym_and_objfile): Use strcmp, not STREQ.
7781 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7782 (arm_linux_call_dummy_words): Delete declaration.
7783 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7784 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7785 declarations.
7786 (LOWEST_PC): Delete.
7787
3ab13650
PS
77882002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7789
7790 * maint.c (print_section_info): Do not prepend `0x' to filepos
7791 output, it will be handled by local_hex_string_custom.
7792
19d3fc80 77932002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7794
7795 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7796 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7797 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7798
d85a5daf
JB
77992002-02-22 Jim Blandy <jimb@redhat.com>
7800
7801 Indicate that the bcache functions don't change the strings
7802 they're passed.
7803 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7804 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7805
eeb25b8a
PM
78062002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7807
7808 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7809
6badb179
CF
78102002-02-21 Christopher Faylor <cgf@redhat.com>
7811
7812 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7813 find the complete path to a loaded DLL.
7814
e8717518
FF
78152002-02-21 Fred Fish <fnf@redhat.com>
7816
7817 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7818 that marks the end of the range of a function, enter a line number
7819 entry that has a line number of zero and a PC offset that matches
7820 the end of the function. This starts a range of PC's for which no
7821 line number information is known.
7822 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7823 PC's for which no line number info is found (line number is zero)
7824 then we didn't find any valid line information.
7825 * symtab.h: Document use of zero line number entry.
7826
9abe5450
EZ
78272002-02-21 Elena Zannoni <ezannoni@redhat.com>
7828
7829 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7830 (have_ptrace_getvrregs): Define for run time checks.
7831 (gdb_vrregset_t): New type for Altivec register handling.
7832 (fetch_register, store_register): Fetch/store altivec register
7833 when needed.
7834 (fetch_altivec_register, store_altivec_register): New functions.
7835 (supply_vrregset, fill_vrregset): New functions.
7836 (fetch_altivec_registers, store_altivec_registers): New functions.
7837 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7838 registers as well.
7839
aaa38bb5
AJ
78402002-02-21 Jiri Smid <smid@suse.cz>
7841
7842 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7843
b34db576
RE
78442002-02-21 Richard Earnshaw <rearnsha@arm.com>
7845
7846 * Makefile.in (armnbsd-nat.o): Update dependencies.
7847 * armnbsd-nat.c (supply_gregset): New function. Common code to
7848 supply the integer register set.
7849 (supply_fparegset): New function. Similar for FPA registers.
7850 (fetch_regs, fetch_fp_regs): Use them.
7851 (fetch_core_registers): Likewise.
7852 (fetch_elfcore_registers): New function.
7853 (arm_netbsd_elfcore_fns): New core-file type specification.
7854 (_initialize_arm_netbsd_nat): Register it.
7855
3e56fc4b
RE
78562002-02-21 Richard Earnshaw <rearnsha@arm.com>
7857
7858 * armnbsd-nat.c: Include gdbcore.h.
7859 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7860 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7861 'void' to declaration, to shut up ARI.
7862 (fetch_core_registers): Make static. Rewrite using supply_register.
7863 (arm_netbsd_core_fns): New core-file type specification.
7864 (_initialize_arm_netbsd_nat): New function.
7865
097f6b0b
CF
78662002-02-21 Christopher Faylor <cgf@redhat.com>
7867
7868 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7869 value.
7870
c914e0cc
CF
78712002-02-20 Christopher Faylor <cgf@redhat.com>
7872
7873 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7874 fails.
7875
385fa495
DJ
78762002-02-20 Daniel Jacobowitz <drow@mvista.com>
7877
7878 * jv-exp.y (parse_number): Change type of implicit longs
7879 to builtin_type_uint64.
7880
e5f1222d
DJ
78812002-02-20 Daniel Jacobowitz <drow@mvista.com>
7882
7883 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7884 to be an integer instead of a `union wait'.
7885
75c9abc6
DJ
78862002-02-20 Daniel Jacobowitz <drow@mvista.com>
7887
7888 * mips-linux-nat.c: Call the operating system GNU/Linux.
7889 * mips-linux-tdep.c: Likewise.
7890 * mips-tdep.c: Likewise.
7891
551792a5
DJ
78922002-02-20 Daniel Jacobowitz <drow@mvista.com>
7893
7894 Fix PR gdb/265.
7895 * jv-exp.y (parse_number): Handle 64-bit integers.
7896
ee6e2b82
DJ
78972002-02-20 Daniel Jacobowitz <drow@mvista.com>
7898
7899 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7900 AC_STDC_HEADERS to AC_HEADER_STDC.
7901 * gdbserver/configure: Regenerated.
7902
a48442a0
RE
79032002-02-20 Richard Earnshaw <rearnsha@arm.com>
7904
7905 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7906 is defined.
7907 * sparc-tdep.c (get_longjmp_target): Likewise.
7908
fe419ffc
RE
79092002-02-20 Richard Earnshaw <rearnsha@arm.com>
7910
7911 * News: Add news about ARM and Multi-arch. Mention the new target
7912 arm*-*-netbsd*.
7913
5832ed7e
JB
79142002-02-19 Jim Blandy <jimb@redhat.com>
7915
7916 * stabsread.c (error_type_complaint): Improve error message.
7917
84563040
DJ
79182002-02-19 Daniel Jacobowitz <drow@mvista.com>
7919
7920 * gdbserver/README: Update documentation.
7921 * gdbserver/configure.in: Update configury to match documentation.
7922 * gdbserver/Makefile.in: Likewise.
7923 * gdbserver/configure: Regenerated.
7924 * gdbserver/aclocal.m4: New file, generated by aclocal.
7925 * gdbserver/config.in: New file, generated by autoheader.
7926
375fd65b
RE
79272002-02-19 Richard Earnshaw <rearnsha@arm.com>
7928
7929 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7930 armnbsd-nat.c.
7931
08216dd7
RE
79322002-02-19 Richard Earnshaw <rearnsha@arm.com>
7933
7934 * arm-tdep.h (enum arm_float_model): New enum.
7935 (struct gdbarch_tdep): Add fp_model.
7936 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7937 up floating-point conversions until we know the floating-point model
7938 in use by the inferior. Don't complain about being unable to
7939 determine the ABI of the inferior when we don't have one.
7940 (arm_extract_return_value): Support different floating-point models.
7941 (arm_store_return_value): Likewise.
aaa38bb5 7942 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7943 ARM_FLOAT_SOFT.
7944 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7945
65d6d66a
PS
79462002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7947
7948 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7949 of ``current_gdbarch''.
7950
47221191
RE
79512002-02-19 Richard Earnshaw <rearnsha@arm.com>
7952
7953 * armnbsd-nat.c : ANSIfy all function declarations.
7954 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7955 (fetch_inferior_registers): Re-implement in terms of above.
7956 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7957 (store_inferior_registers): Re-implement in terms of above.
7958
fdf39c9a
RE
79592002-02-19 Richard Earnshaw <rearnsha@arm.com>
7960
aaa38bb5 7961 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7962 kernel.
7963 * arm-linux-tdep.c: Likewise.
7964 * config/arm/tm-linux.h: Likewise.
7965
93247f88
RE
79662002-02-19 Richard Earnshaw <rearnsha@arm.com>
7967
7968 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7969 * config/arm/nbsd.mt (TM_FILE): Delete.
7970 * config/arm/tm-nbsd.h: Delete.
7971
d7b486e7
RE
79722002-02-19 Richard Earnshaw <rearnsha@arm.com>
7973
7974 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7975 Initialize CALL_DUMMY_LENGTH.
7976
41d39a95
RE
79772002-02-19 Richard Earnshaw <rearnsha@arm.com>
7978
7979 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7980 function.
7981 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7982 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7983 defines one thing and that is incorrect for this port.
7984 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7985
e1195560
PM
79862002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7987
7988 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7989
c1748f97
PM
79902002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7991
7992 * win32-nat.c (display_selector): New function. Displays information
7993 about the information returned by GetThreadSelectorEntry API function.
7994 (display_selectors): New function. Displays the infomation of
7995 the selector given as argument, or of CS, DS ans FS selectors
7996 if no argument is given.
7997 ( _initialize_inftarg): Add "w32" as info prefix command.
7998 Add "info w32 selector" as command calling display_selectors.
7999
e41e6bbf
PM
80002002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8001
8002 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8003 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8004 if not defined.
8005
0d3a9f48
RE
80062002-02-18 Richard Earnshaw <rearnsha@arm.com>
8007
8008 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8009
3fb4b924
RE
80102002-02-18 Richard Earnshaw <rearnsha@arm.com>
8011
8012 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8013 (arm_fix_call_dummy): Call it.
8014 (arm_call_dummy_breakpoint_offset): Delete.
8015 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8016 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8017
7f55af32
AC
80182002-02-18 Andrew Cagney <ac131313@redhat.com>
8019
8020 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8021 Default to func_frame_chain_valid.
8022 * gdbarch.h, gdbarch.c: Re-generate.
8023 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8024
05f13b9c
EZ
80252002-02-18 Elena Zannoni <ezannoni@redhat.com>
8026
8027 * ppc-linux-nat.c: Update copyright.
8028 (fetch_register, store_register): Add tid parameter, don't compute
8029 tid here.
8030 (fetch_ppc_registers, store_ppc_registers): Add tid
8031 parameter. Pass it along to callees.
8032 (fetch_inferior_registers, store_inferior_registers): Compute tid
8033 here, and pass it to calleed functions.
8034 (fill_gregset, supply_fpregset): Clean up formatting.
8035
d7afb4c9
RE
80362002-02-18 Richard Earnshaw <rearnsha@arm.com>
8037
8038 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8039 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8040
9df628e0
RE
80412002-02-18 Richard Earnshaw <rearnsha@arm.com>
8042
8043 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8044 * gdbarch.c gdbarch.h: Regenerate.
8045 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8046 function.
8047 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8048 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8049 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8050
8051 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8052 * arm-tdep.c (arm_get_longjmp_target): New function.
8053 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8054 this to a positive value register arm_get_longjmp_target as the
8055 longjmp handler.
8056 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8057 (arm_linux_init_abi): Set up longjmp description in tdep.
8058 * armnbsd-nat.c (get_longjmp_target): Delete.
8059 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8060 description in tdep.
8061 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8062 (get_longjmp_target): Delete declaration.
8063 (GET_LONGJMP_TARGET): Delete.
8064 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8065 (GET_LONGJMP_TARGET): Delete.
8066
57bc8964
KB
80672002-02-17 Kevin Buettner <kevinb@redhat.com>
8068
8069 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8070 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8071 of ``current_gdbarch''.
8072
83d31a92
TT
80732002-02-17 Tom Tromey <tromey@redhat.com>
8074
8075 * cli/cli-cmds.c (compare_strings): New function.
8076 (complete_command): Only print each unique item once.
8077 * completer.h (complete_line): Declare.
8078 * completer.c (complete_line): New function.
8079 (line_completion_function): Use it.
8080
17ef5d92
AC
80812002-02-16 Andrew Cagney <ac131313@redhat.com>
8082
8083 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8084 * gdbarch.h, gdbarch.c: Re-generate.
8085
491b8946
DJ
80862002-02-16 Daniel Jacobowitz <drow@mvista.com>
8087
8088 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8089
80902002-02-16 Daniel Jacobowitz <drow@mvista.com>
8091
8092 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8093 * valops.c (value_arg_coerce): Don't take the address of a reference
8094 to convert an argument to a reference.
8095
dfe7f3ac
CF
80962002-02-15 Christopher Faylor <cgf@redhat.com>
8097
8098 * win32-nat.c (get_image_name): New function.
8099 (handle_load_dll): Use get_image_name function.
8100 (get_child_debug_event): Avoid registering debug events until possibly
8101 execed process is started.
8102 (child_create_inferior): Allow invocation via shell so that command
8103 line redirection, etc. works ok.
8104 (_initialize_inftarg): Add new command: "set shell" to control whether
8105 a shell is used to start a process.
8106
1d33e73a
DJ
81072002-02-15 Daniel Jacobowitz <drow@mvista.com>
8108
8109 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8110 instead of find_register_by_number.
8111 (cannot_store_register): Likewise.
8112
48cd0caa
PM
81132002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8114
aaa38bb5 8115 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8116 fprintf_unfiltered (gdb_stderr, ...).
8117
8656e7d8
DJ
81182002-02-15 Daniel Jacobowitz <drow@mvista.com>
8119
8120 * gdbserver/gdbserver.1: Document --attach.
8121
66e810cd
RE
81222002-02-15 Richard Earnshaw <rearnsha@arm.com>
8123
8124 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8125 descriptions.
8126 * arm-tdep.c (arm_default_arm_le_breakpoint)
8127 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8128 (arm_default_thumb_be_breakpoint): New. Initialize them from
8129 traditional breakpoint defines.
8130 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8131 (arm_gdbarch_init): Initialize new breakpoint variables.
8132 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8133 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8134 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8135 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8136 code out to ...
8137 (arm_netbsd_init_abi_common): ... here; new function.
8138 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8139 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8140 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8141 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8142
97e03143
RE
81432002-02-15 Richard Earnshaw <rearnsha@arm.com>
8144
8145 * arm-tdep.h (enum arm_abi): New enum.
8146 (struct gdbarch_tdep): New structure.
8147 (LOWEST_PC): Provide a default.
8148 (arm_gdbarch_register_os_abi): Declare new function.
8149 * arm-tdep.c (arm_abi_names): New array.
8150 (process_note_abi_tag_sections): New function.
8151 (get_elfosabi): New function.
8152 (arm_gdbarch_register_os_abi): New function.
8153 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8154 support for that ABI has been built in, then call the appropriate
8155 configuration routine. Use gdbarch_num_regs() to get the number
8156 of registers.
8157 (arm_dump_tdep): New function.
8158 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8159 place-holder functions.
8160 (_initialize_arm_tdep): Register them.
8161 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8162
8163 * armnbsd-tdep.c: New file.
8164 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8165 * config/arm/nbsd.mt (TDEPFILES): Add it.
8166 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8167
8168 * armnbsd-nat.c: Include regcache.h.
8169 * Makefile.in (armnbsd-nat.o): Update dependency list.
8170
8171 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8172
ad68be46
DJ
81732002-02-14 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * gdbserver/Makefile.in: Fix typos in target rules.
8176
003d6d1d
DJ
81772002-02-14 Daniel Jacobowitz <drow@mvista.com>
8178
aaa38bb5 8179 Fix part of PR gdb/267.
003d6d1d
DJ
8180 * linespec.c (find_methods): Handle constructors specially for now.
8181
6b230f1b
CV
81822002-02-14 Corinna Vinschen <vinschen@redhat.com>
8183
8184 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8185 handling.
8186 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8187 standard_coerce_float_to_double().
8188
1ea98d12
CF
81892002-02-14 Christopher Faylor <cgf@redhat.com>
8190
8191 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8192 GDBINIT_FILENAME.
8193
dd47e6fd
EZ
81942002-02-14 Elena Zannoni <ezannoni@redhat.com>
8195
8196 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8197 find_variant_by_name, because it confuses the multiarch
8198 framework. Return NULL if there isn't an architecture with the
8199 user supplied name, instead of forcing a different one without
8200 recording the change with the multiarch machinery.
8201 (find_variant_by_name): Delete.
8202
d7e39b9e
PS
82032002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8204
8205 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8206 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8207
76e42a4f
MH
82082002-02-13 Martin M. Hunt <hunt@redhat.com>
8209
aaa38bb5 8210 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8211 print_frame_info_listing_hook, set current_source_symtab.
8212
0a30fbc4
DJ
82132002-02-14 Daniel Jacobowitz <drow@mvista.com>
8214
8215 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8216 and remove unused $(INCLUDE_DIR).
8217 Add regcache.c to OBS.
8218 Add generated register protocol files to clean target.
8219 Update dependencies for new objects, obsolete old target code.
8220
8221 * gdbserver/linux-low.c: Remove all platform-specific code to
8222 new files. Remove various dead code. Update to use regcache
8223 functionality.
8224 * gdbserver/remote-utils.c (fromhex): Add return statement
8225 to quiet warning.
8226 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8227 constant.
8228 (input_interrupt): Add integer parameter to match prototype
8229 of a signal handler.
8230 (outreg): Use register_data ().
8231 (prepare_resume_reply): Use gdbserver_expedite_regs.
8232 * gdbserver/server.c (main): Dynamically allocate own_buf because
8233 PBUFSIZ is no longer constant. Use registers_to_string () and
8234 registers_from_string ().
8235 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8236 for error (), fatal (), and warning (). Update definition of
8237 PBUFSIZ to use regcache functionality. Add include guard.
8238 * gdbserver/utils.c (fatal): Add missing ``const''.
8239 (warning): New function.
8240
8241 * regformats/regdat.sh: Include "regcache.h" in generated files.
8242 Provide init_registers () function.
8243 * regformats/regdef.h: Add prototype for set_register_cache ().
8244 Add include guard.
8245
8246 * gdbserver/linux-arm-low.c: New file.
8247 * gdbserver/linux-i386-low.c: New file.
8248 * gdbserver/linux-ia64-low.c: New file.
8249 * gdbserver/linux-m68k-low.c: New file.
8250 * gdbserver/linux-mips-low.c: New file.
8251 * gdbserver/linux-ppc-low.c: New file.
8252 * gdbserver/linux-sh-low.c: New file.
8253
8254 * gdbserver/regcache.c: New file.
8255 * gdbserver/regcache.h: New file.
8256
8257 * gdbserver/low-linux.c: Removed obsolete file.
8258
4cc841d0
DJ
82592002-02-14 Daniel Jacobowitz <drow@mvista.com>
8260
8261 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8262 * config/i386/linux.mt: Likewise.
8263 * config/ia64/linux.mt: Likewise.
8264 * config/m68k/linux.mh: Likewise.
8265 * config/powerpc/linux.mh: Likewise.
8266 * config/mips/linux.mt: Likewise.
8267
8268 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8269
8270 * config/i386/i386lynx.mh: Mark gdbserver variables
8271 as (currently) obsolete for this target.
8272 * config/i386/nbsd.mt: Likewise.
8273 * config/i386/nbsdelf.mt: Likewise.
8274 * config/m32r/m32r.mt: Likewise.
8275 * config/m68k/m68klynx.mh: Likewise.
8276 * config/m68k/nbsd.mt: Likewise.
8277 * config/m68k/sun3os4.mh: Likewise.
8278 * config/mips/vr5000.mt: Likewise.
8279 * config/ns32k/nbsd.mt: Likewise.
8280 * config/pa/hppabsd.mh: Likewise.
8281 * config/pa/hppaosf.mh: Likewise.
8282 * config/powerpc/nbsd.mt: Likewise.
8283 * config/rs6000/rs6000lynx.mh: Likewise.
8284 * config/s390/s390.mt: Likewise.
8285 * config/s390/s390x.mt: Likewise.
8286 * config/sparc/sparclynx.mh: Likewise.
8287 * config/sparc/sun4os4.mh: Likewise.
8288 * config/i386/x86-64linux.mt: Likewise.
8289 * config/sparc/linux.mh: Likewise.
8290
a85f51e7
DJ
82912002-02-14 Daniel Jacobowitz <drow@mvista.com>
8292
8293 * configure.tgt: Configure gdbserver only for known working
8294 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8295 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8296 SUBDIRS if it is configured. Update comment for ${nativefile}.
8297 * configure: Regenerated.
8298
65554fef
MS
82992002-02-13 Michael Snyder <msnyder@redhat.com>
8300
670a52db
MS
8301 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8302
6dbdc4a3
MS
8303 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8304 (default_gcore_mach): Just return 0, work around a problem in bfd.
8305 (default_gcore_target): OK to return NULL if exec_bfd is null.
8306 (make_mem_sec): Use a cast, avoid a warning.
8307
8308 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8309 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8310 sizeof (host pointer) != sizeof (target pointer)).
8311 (procfs_make_note_section): Avoid overflow in psargs string.
8312
aaa38bb5 8313 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8314 implementation return an error.
8315
83162002-02-13 Rodney Brown <rbrown64@csc.com.au>
8317
8318 * procfs.c (procfs_make_note_section): Provide a default definition
8319 (for alpha-dec-osf4.0f). Fix typos.
8320
1e4d76e7
EZ
83212002-02-13 Elena Zannoni <ezannoni@redhat.com>
8322
8323 * linux-proc.c: Add include of regcache.h.
8324 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8325
b6d1a1d5
AC
83262002-02-13 Andrew Cagney <ac131313@redhat.com>
8327
8328 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8329 * memattr.c (create_mem_region): Disallow useless empty region.
8330 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8331 non-overlapping.
b6d1a1d5 8332
6c6ea35e
MC
83332002-02-13 Michael Chastain <mec@shout.net>
8334
8335 * defs.h: Kill CONST_PTR.
8336 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8337 * c-lang.c (c_builtin_types): Likewise.
8338 * ch-lang.c (ch_builtin_types): Likewise.
8339 * f-lang.c (f_builtin_types): Likewise.
8340 * language.c (unknown_builtin_types): Likewise.
8341 * m2-lang.c (m2_builtin_types): Likewise.
8342 * p-lang.c (pascal_builtin_types): Likewise.
8343 * scm-lang.c (c_builtin_types): Likewise.
8344
3e0b0f48
KS
83452002-02-13 Keith Seitz <keiths@redhat.com>
8346
8347 * arm-tdep.h (arm_get_next_pc): Add declaration.
8348
67255d04
RE
83492002-02-13 Richard Earnshaw <rearnsha@arm.com>
8350
8351 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8352 with other related struct-returning functions.
8353 (arm_extract_struct_value_address): New function.
8354 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8355 initialize float_format, double_format and long_double_format as
8356 appropriate to the endianness of the target.
8357 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8358 (arm_use_struct_convention): Delete declaration.
8359 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8360
079777f6
KS
83612002-02-13 Keith Seitz <keiths@redhat.com>
8362
8363 * defs.h (core_addr_to_string_nz): New function.
8364
34588f23
MK
83652002-02-13 Mark Kettenis <kettenis@gnu.org>
8366
8367 Apply missing bits of 2002-01-15 patch.
8368 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8369 (fill_fpregset): Use i387_fill_fsave.
8370
49b563f9
KS
83712002-02-12 Keith Seitz <keiths@redhat.com>
8372
49b563f9
KS
8373 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8374 (core_addr_to_string_nz): New function.
8375
aeb98c60
RE
83762002-02-11 Richard Earnshaw <rearnsha@arm.com>
8377
8378 * arm-linux-nat.c: Really include arm-tdep.h.
8379 * config/arm/tm-linux.h (struct type, struct value): Declare.
8380
65554fef
MS
83812002-02-11 Michael Snyder <msnyder@redhat.com>
8382
8383 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8384 (gcore section): Ifdef for Solaris and Unixware only.
8385 (procfs_do_thread_registers): Unixware needs one lwpstatus
8386 per thread (not one prstatus or pstatus).
8387 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8388 not over all gdb threads. For unixware, call elfcore_write_pstatus
8389 once before iterating over threads.
8390
34e8f22d
RE
83912002-02-11 Richard Earnshaw <rearnsha@arm.com>
8392
8393 * arm-tdep.h: New file.
8394 * arm-tdep.c: Include arm-tdep.h.
8395 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8396 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8397 (arm_print_float_info, arm_register_type, convert_to_extended)
8398 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8399 (arm_extract_return_value, arm_register_name): Make static.
8400 (arm_software_single_step): Similarly. Fix types in declaration.
8401 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8402 (arm_store_return_value, arm_store_struct_return): New functions.
8403 (arm_gdbarch_init): Register the above functions. Also register
8404 call_dummy_start_offset, sizeof_call_dummy_words,
8405 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8406 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8407 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8408 prologue_cache.saved_regs here, rather than ...
8409 (_initialize_arm_tdep): ... here.
8410 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8411 declarations.
8412 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8413 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8414 (arm_print_float_info, arm_register_type, convert_to_extended)
8415 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8416 (arm_extract_return_value, arm_register_name): Delete declarations.
8417 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8418 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8419 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8420 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8421 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8422 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8423 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8424 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8425 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8426 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8427 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8428 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8429 interface.
8430 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8431 * remote-rdi.c remote-rdp.c: Likewise.
8432 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8433 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8434 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8435 definition.
8436
8437 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8438 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8439 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8440 from non-ARM_ prefixed definitions.
8441 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8442 all uses of above.
8443 * remote-rdi.c remote-rdp.c: Likewise.
8444 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8445
148754e5
RE
84462002-02-11 Richard Earnshaw <rearnsha@arm.com>
8447
8448 * arm-tdep.c (arm_frameless_function_invocation)
8449 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8450 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8451 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8452 (arm_pop_frame, arm_get_next_pc): Make static.
8453 (arm_gdbarch_init): Register above in gdbarch structure.
8454 (arm_read_fp): Renamed from arm_target_read_fp.
8455 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8456 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8457 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8458 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8459 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8460 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8461 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8462 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8463 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8464 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8465 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8466
434d2d4f
DJ
84672002-02-10 Daniel Jacobowitz <drow@mvista.com>
8468
8469 * symtab.c (compare_search_syms): New function.
8470 (sort_search_symbols): New function.
8471 (search_symbols): Sort symbols after searching rather than
8472 before.
8473
55241689
AC
84742002-02-10 Andrew Cagney <ac131313@redhat.com>
8475
8476 * NEWS: Linux -> GNU/Linux.
8477
028c194b
AC
84782002-02-10 Andrew Cagney <ac131313@redhat.com>
8479
8480 * gdbarch.sh: For for level one methods, disallow a definition
8481 when partially multi-arched. Add comments explaining rationale.
8482 * gdbarch.h: Re-generate.
8483
6acf50cd
AC
84842002-02-10 Andrew Cagney <ac131313@redhat.com>
8485
8486 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8487 multi-arch partial.
aaa38bb5 8488
50248794
AC
84892002-02-10 Andrew Cagney <ac131313@redhat.com>
8490
8491 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8492 field. Use diff -u.
8493 * gdbarch.c: Re-generate.
8494
c30e0066
AC
84952002-02-10 Andrew Cagney <ac131313@redhat.com>
8496
9b56c5f3 8497 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8498 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8499 partial.
8500
6e6d6484
AC
85012002-02-10 Andrew Cagney <ac131313@redhat.com>
8502
8503 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8504 multi-arch partial.
8505 (PUSH_ARGUMENTS): Switch to using predefault.
8506 * gdbarch.c: Regenerate.
8507
c203844d
AC
85082002-02-10 Andrew Cagney <ac131313@redhat.com>
8509
8510 * valops.c (PUSH_ARGUMENTS): Delete definition.
8511 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8512 partial. Default to default_push_arguments.
8513 * gdbarch.h, gdbarch.c: Regenerate.
8514
b5a2688f
AC
85152002-02-09 Andrew Cagney <ac131313@redhat.com>
8516
8517 * defs.h (throw_exception): Rename return_to_top_level. Update
8518 comments.
8519 * utils.c (error_stream, internal_verror, quit): Ditto.
8520 * top.c (throw_exception, catcher): Ditto.
8521 * sparclet-rom.c (sparclet_load): Ditto.
8522 * remote.c (interrupt_query, minitelnet): Ditto.
8523 * remote-sds.c (interrupt_query): Ditto.
8524 * remote-mips.c (mips_error, mips_kill): Ditto.
8525 * ocd.c (interrupt_query): Ditto.
8526 * monitor.c (monitor_interrupt_query): Ditto.
8527 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8528 * target.h: Update comment.
aaa38bb5 8529
b5a2688f 8530 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8531
2fa5c1e0
AC
85322002-02-09 Andrew Cagney <ac131313@redhat.com>
8533
8534 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8535 default_double_format.
8536 * gdbarch.h, gdbarch.c: Re-generate.
8537 * findvar.c (floatformat_unknown): Delete variable definition.
8538 * doublest.h (floatformat_unknown): Delete variable declaration.
8539
da966255
JB
85402002-02-09 Jim Blandy <jimb@redhat.com>
8541
8542 * stabsread.c (read_type): Add code to parse Sun's syntax for
8543 prototyped function types.
8544
123a4891
AC
85452002-02-09 Andrew Cagney <ac131313@redhat.com>
8546
8547 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8548 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8549
fb39c8f3
PS
85502002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8551
8552 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8553 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8554 now _initialize_xcoffsolib gets called again and overrides the
8555 commands from solib.c in a native configuration.
8556
0b87a11d
MK
85572002-02-09 Mark Kettenis <kettenis@gnu.org>
8558
8559 * doublest.c (store_typed_floating): Don't try to return a value.
8560 Fixes PR gdb/290.
8561
bdc2fc72
JB
85622002-02-08 Jim Blandy <jimb@redhat.com>
8563
8564 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8565 is prototyped and has no arguments, print its argument list as
8566 `(void)'.
8567
da69bbcf
CD
85682002-02-08 Chris Demetriou <cgd@broadcom.com>
8569
8570 * MAINTAINERS (write-after-approval): Add myself.
8571 (paper-trail): I've escaped!
aaa38bb5 8572
b69571f5
CF
85732002-02-08 Christopher Faylor <cgf@redhat.com>
8574
8575 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8576 changes.
8577 (_initialize_check_for_gdb_ini): Ditto.
8578
f6871398
MH
85792002-02-08 Martin M. Hunt <hunt@redhat.com>
8580
8581 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8582 xaprintf -> xasprintf.
8583
4e52d31c
PM
85842002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8585
8586 * win32-nat.c: Remove use of printf and sprintf functions.
8587
39bbf761
RE
85882002-02-08 Richard Earnshaw <rearnsha@arm.com>
8589
8590 * arm-tdep.c (arm_frame_chain_valid): Make static.
8591 (arm_push_arguments): Likewise.
8592 (arm_gdbarch_init): New function.
8593 (_initialize_arm_tdep): Call it.
8594 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8595 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8596 (FRAME_CHAIN_VALID): Delete.
8597 (arm_frame_chain_valid): Delete declaration.
8598 (PUSH_ARGUMENTS): Delete.
8599 (arm_push_arguments): Delete declaration.
8600 (CALL_DUMMY_P): Delete.
8601
9c9532c9
CV
86022002-02-08 Andrew Cagney <ac131313@redhat.com>
8603 Corinna Vinschen <vinschen@redhat.com>
8604
8605 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8606 on builtin float types.
8607
4e8f7a8b
DJ
86082002-02-08 Daniel Jacobowitz <drow@mvista.com>
8609
8610 * utils.c: Include <curses.h> before "bfd.h".
8611 * tui/tui-hooks.c: Likewise.
8612 * tui/tui.c: Likewise.
8613 * tui/tuiCommand.c: Likewise.
8614 * tui/tuiData.c: Likewise.
8615 * tui/tuiDataWin.c: Likewise.
8616 * tui/tuiDisassem.c: Likewise.
8617 * tui/tuiGeneralWin.c: Likewise.
8618 * tui/tuiIO.c: Likewise.
8619 * tui/tuiLayout.c: Likewise.
8620 * tui/tuiRegs.c: Likewise.
8621 * tui/tuiSource.c: Likewise.
8622 * tui/tuiSourceWin.c: Likewise.
8623 * tui/tuiStack.c: Likewise.
8624 * tui/tuiWin.c: Likewise.
8625
cd4bffcf
EZ
86262002-02-07 Elena Zannoni <ezannoni@redhat.com>
8627
8628 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8629 to include space for pseudoregs as well. Update loops accordingly.
8630 (sh_fp_frame_init_saved_regs): Ditto.
8631 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8632
26806ce2
AC
86332002-02-07 Andrew Cagney <ac131313@redhat.com>
8634
8635 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8636 Add Richard Earnshaw to Arm maintainers.
8637
97fdab62
AC
86382002-02-07 Andrew Cagney <ac131313@redhat.com>
8639
a6b98203
AC
8640 * defs.h (warning_begin): Delete declaration.
8641
97fdab62
AC
8642 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8643 Delete macro.
8644
78b29b40
MS
86452002-02-07 Michael Snyder <msnyder@redhat.com>
8646
aaa38bb5 8647 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8648 Logic bug, remove misplaced else.
8649
d8849953
KD
86502002-02-07 Klee Dienes <klee@apple.com>
8651
8652 * fork-inferior.c (fork_inferior): Add '!' to the list of
8653 characters that need to be quoted when building a string for the
8654 shell. Quote '!' specifically with a backslash, since CSH chokes
8655 when trying to evaluate "str!str".
aaa38bb5 8656
095778a0
NC
86572002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8658
8659 * rdi-share/host.h: Only provide a typedef for bool if it is not
8660 defined.
8661
1900040c
MS
86622002-02-04 Michael Snyder <msnyder@redhat.com>
8663
8664 * breakpoint.h (enum bptype): Add new overlay event bp type.
8665 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8666
1900040c
MS
8667 * breakpoint.c (create_internal_breakpoint): New function.
8668 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8669 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8670 (create_thread_event_breakpoint): Ditto.
8671 (create_solib_event_breakpoint): Ditto.
8672 (create_overlay_event_breakpoint): New function.
8673 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8674 (update_breakpoints_after_exec): Delete and re-initialize
8675 overlay event breakpoints after an exec. Add FIXME comment
8676 about longjmp breakpoint.
8677 (print_it_typical): Ignore overlay event breakpoints.
8678 (print_one_breakpoint): Ditto.
8679 (mention): Ditto.
8680 (bpstat_what): Do not stop for overlay event breakpoints.
8681 (delete_breakpoint): Don't delete overlay event breakpoints.
8682 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8683 (breakpoint_re_set): Re-create overlay event breakpoint.
8684
8685 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8686 (overlay_manual_command): Disable overlay breakpoints.
8687 (overlay_off_command): Disable overlay breakpoints.
8688
082fc60d
RE
86892002-02-06 Richard Earnshaw <rearnsha@arm.com>
8690
8691 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8692 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8693 to here from config/tm-arm.h.
8694 (coff_sym_is_thumb): Make static.
8695 (arm_elf_make_msymbol_special): New function.
8696 (arm_coff_make_msymbol_special): New function.
8697 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8698 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8699 (coff_sym_is_thumb): Delete declaration.
8700 (arm_elf_make_msymbol_special): Declare.
8701 (arm_coff_make_msymbol_special): Declare.
8702 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8703 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8704
039c5766
RE
87052002-02-06 Richard Earnshaw <rearnsha@arm.com>
8706
8707 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8708
87092002-02-06 Richard Earnshaw <rearnsha@arm.com>
8710
8711 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8712 * gdbarch.c gdbarch.h: Regenerate.
8713 * arch-utils.c (default_print_float_info): New function.
8714 * arch-utils.h (default_print_float_info): Prototype it.
8715 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8716 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8717 (PRINT_FLOAT_INFO): Document it.
8718
8719 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8720 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8721 (PRINT_FLOAT_INFO): Define.
8722
58fa08f0
PM
87232002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8724
aaa38bb5 8725 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8726 Add typecast to sprintf argument to suppress a warning.
8727
7393af7c
PM
87282002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8729
58fa08f0 8730 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8731 to allow easier handling of pass state.
8732 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8733 that gives exception name and address.
8734 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8735 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8736 exceptions added.
aaa38bb5
AJ
8737 (child_continue): Correctly report continue_status.
8738 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8739 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8740 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8741 the exception should be passed to debuggee or not.
8742
6af4589c
MS
87432002-02-05 Michael Snyder <msnyder@redhat.com>
8744
8745 * regcache.c (fetch_register): Call target_fetch_register
8746 only if we don't call FETCH_PSEUDO_REGISTER.
8747 (store_register): Call target_store_register only if we
8748 don't call STORE_PSEUDO_REGISTER.
8749
a2cf933a
EZ
87502002-02-05 Elena Zannoni <ezannoni@redhat.com>
8751
8752 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8753 ELF_MAKE_MSYMBOL_SPECIAL.
8754 * gdbarch.c, gdbarch.h: Regenerate.
8755 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8756 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8757 * elfread.c (elf_symtab_read): Compile use of
8758 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8759 multiarched.
8760 * coffread.c (coff_symtab_read): Ditto, for
8761 COFF_MAKE_MSYMBOL_SPECIAL.
8762
6bb7be43
JB
87632002-02-05 Jim Blandy <jimb@redhat.com>
8764
8765 * solib-svr4.c (svr4_truncate_ptr): New function.
8766 (svr4_relocate_section_addresses): Do the address arithmetic with
8767 the appropriate truncation for target addresses, even when
8768 CORE_ADDR is larger than a target address.
8769
e18651ec
DJ
87702002-02-05 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8773 to (int *).
8774
6b2725be
DJ
87752002-02-05 Daniel Jacobowitz <drow@mvista.com>
8776
8777 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8778 code.
8779
fca9e603
DJ
87802002-02-05 Daniel Jacobowitz <drow@mvista.com>
8781
8782 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8783
6c537a52
DJ
87842002-02-05 Daniel Jacobowitz <drow@mvista.com>
8785
8786 * gdbserver/linux-low.c: Remove unused include files.
8787
d844cde6
DJ
87882002-02-05 Daniel Jacobowitz <drow@mvista.com>
8789
8790 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8791 (read_inferior_memory): Use it.
8792 (write_inferior_memory): Likewise.
8793
d07c63e7
DJ
87942002-02-05 Daniel Jacobowitz <drow@mvista.com>
8795
8796 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8797 grubbing through sys_errlist.
8798
da6d8c04
DJ
87992002-02-05 Daniel Jacobowitz <drow@mvista.com>
8800
8801 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8802
5b421780
PM
88032002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8804 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8805
9f60d481
AC
88062002-02-04 Andrew Cagney <ac131313@redhat.com>
8807
8808 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8809 (do_sfunc, set_cmd_sfunc): New functions.
8810
8811 * command.h (struct cmd_list_element): Add field func.
8812 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8813 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8814 * cli/cli-decode.h: Ditto.
8815
8816 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8817 (help_all, help_cmd_list): Ditto.
8818 (find_cmd, complete_on_cmdlist): Ditto.
8819 * top.c (execute_command): Ditto.
8820
8821 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8822 function.sfunc.
8823
8824 * infcmd.c (notice_args_read): Fix function signature.
8825
8826 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8827 * cli/cli-decode.c (add_set_cmd): Ditto.
8828 * utils.c (initialize_utils): Ditto.
8829 * maint.c (_initialize_maint_cmds): Ditto.
8830 * infrun.c (_initialize_infrun): Ditto.
8831 * demangle.c (_initialize_demangler): Ditto.
8832 * remote.c (add_packet_config_cmd): Ditto.
8833 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8834 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8835 * proc-api.c (_initialize_proc_api): Ditto.
8836 * kod.c (_initialize_kod): Ditto.
8837 * valprint.c (_initialize_valprint): Ditto.
8838 * top.c (init_main): Ditto.
8839 * infcmd.c (_initialize_infcmd): Ditto.
8840 * corefile.c (_initialize_core): Ditto.
8841 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8842 * arch-utils.c (initialize_current_architecture): Ditto.
8843 (_initialize_gdbarch_utils): Ditto.
8844 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8845
8846 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8847 * wince.c (_initialize_inftarg): Ditto.
8848 * symfile.c (_initialize_symfile): Ditto.
8849 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8850 * language.c (_initialize_language): Ditto.
8851 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8852
f9ba0717
MS
88532002-02-04 Michael Snyder <msnyder@redhat.com>
8854
8855 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8856
0c74b2a7
DJ
88572002-02-04 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8860 Add rules for building the register data files.
8861
c638789f
DJ
88622002-02-04 Daniel Jacobowitz <drow@mvista.com>
8863
8864 * regformats/regdat.sh: Add braces to the definition of
8865 expedite_regs_${arch}.
8866
db253027
DJ
88672002-02-04 Daniel Jacobowitz <drow@mvista.com>
8868
8869 * regformats/regdef.h (struct reg): Add comment describing the
8870 requirements for offset and size fields.
8871
206be19c
AS
88722002-02-04 Andreas Schwab <schwab@suse.de>
8873
8874 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8875 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8876
181c1381
RE
88772002-02-04 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * gdbarch.sh (copyright): Update years in generated header.
8880 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8881 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8882 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8883 * dbxread.c: Likewise.
8884 * dwarfread.c: Likewise.
8885 * elfread.c: Likewise.
8886 * somread.c: Likewise.
8887
8888 * arm-tdep.c (arm_smash_text_address): New function.
8889 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8890
fa4ba8da
PM
88912002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8892
8893 Add support for hardware watchpoints on win32 native.
aaa38bb5 8894 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8895 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8896 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8897 of debug registers.
8898 (debug_registers_changed): New variable. Reflects when debug registers
8899 are changed and need to be written to inferior.
aaa38bb5 8900 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8901 was set, used when new threads are created.
8902 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8903 i386-nat code.
8904 (thread_rec): Set dr array if id is the thread of current_event .
8905 (child_continue, child_resume): Change the debug registers for all
8906 threads if debug_registers_changed.
8907 (child_add_thread): Change the debug registers if debug_registers_used.
8908 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8909 Link nm.h to new nm-cygwin.h file.
8910 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8911 of hardware registers.
8912
a73c86fb
AC
89132002-02-03 Andrew Cagney <ac131313@redhat.com>
8914
8915 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8916 Restore behavour broken by 2002-01-20 Andrew Cagney
8917 <ac131313@redhat.com> IEEE_FLOAT removal.
8918
acf5ed49
DJ
89192002-02-03 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * c-valprint.c (c_val_print): Pass a proper valaddr to
8922 cp_print_class_method.
8923 * valops.c (search_struct_method): If there is only one method
8924 and args is NULL, return that method.
8925
493d28d5
DJ
89262002-02-03 Daniel Jacobowitz <drow@mvista.com>
8927
8928 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8929 accessing tag_name directly.
8930
7495dfdb
DJ
89312002-02-03 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8934 of accessing tag_name directly.
8935
dd6bda65
DJ
89362002-02-03 Daniel Jacobowitz <drow@mvista.com>
8937
8938 PR gdb/280
8939 * gdbtypes.c (replace_type): New function.
8940 * gdbtypes.h (replace_type): Add prototype.
8941 * stabsread.c (read_type): Use replace_type.
8942
88fe217c
RE
89432002-02-03 Richard Earnshaw <rearnsha@arm.com>
8944
8945 * Makefile.in (memattr.o): Add missing dependencies rule.
8946
e5d66720
PS
89472002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8948
8949 * breakpoint.c (break_at_finish_command): Really export.
8950 (break_at_finish_at_depth_command): Ditto.
8951 (tbreak_at_finish_command): Ditto.
8952 * hppa-tdep.c: Include completer.h.
8953 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8954 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8955
fffee0be
AC
89562002-02-01 Andrew Cagney <ac131313@redhat.com>
8957
8958 * utils.c (do_write): New function.
8959 (error_stream): Rewrite combining the code from error_begin and
8960 verror.
8961 (verror): Rewrite using error_stream.
8962 (error_begin): Delete function.
8963
255e7dbf
AC
89642002-02-01 Andrew Cagney <ac131313@redhat.com>
8965
8966 * utils.c (error_begin): Make static.
8967 * defs.h (error_begin): Delete declaration.
8968
8969 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8970 (decode_line_1): Use cplusplus_error instead of error_begin,
8971 cplusplus_hint and return_to_top_level.
8972 * coffread.c (coff_symfile_read): Use error instead of error_begin
8973 and return_to_top_level.
8974 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8975
ddfe3c15
AC
89762002-02-01 Andrew Cagney <ac131313@redhat.com>
8977
8978 * language.h (type_error, range_error): Make string parameter
8979 constant.
8980 * language.c (warning_pre_print): Delete extern declaration.
8981 * dwarfread.c (warning_pre_print): Ditto.
8982 * language.c (type_error, range_error): Rewrite to use verror and
8983 vwarning instead of warning_begin.
8984
03ac34d5
MS
89852002-02-01 Michael Snyder <msnyder@redhat.com>
8986
261c4ca2
MS
8987 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8988 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8989
e00d1dc8
AC
89902002-02-01 Andrew Cagney <ac131313@redhat.com>
8991
8992 * command.h (NO_FUNCTION): Delete macro.
8993 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8994 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8995 * tracepoint.c (_initialize_tracepoint): Ditto.
8996 * cli/cli-decode.c (add_set_cmd): Ditto.
8997 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8998
76b79d6e
DJ
89992002-02-01 Daniel Jacobowitz <drow@mvista.com>
9000
9001 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9002 Update ``this'' pointer when calling virtual functions.
9003
799f9e91
MS
90042002-02-01 Michael Snyder <msnyder@redhat.com>
9005
c7bd442c 9006 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9007 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9008
3cf384d4
DJ
90092002-02-01 Daniel Jacobowitz <drow@mvista.com>
9010
9011 * regformats/reg-arm.dat: New file.
9012 * regformats/reg-i386.dat: New file.
9013 * regformats/reg-ia64.dat: New file.
9014 * regformats/reg-m68k.dat: New file.
9015 * regformats/reg-mips.dat: New file.
9016 * regformats/reg-ppc.dat: New file.
9017 * regformats/reg-sh.dat: New file.
9018 * regformats/regdef.h: New file.
9019 * regformats/regdat.sh: New file.
9020
0defa245
RE
90212002-02-01 Richard Earnshaw <reanrsha@arm.com>
9022
9023 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9024 (arm_frame_args_address, arm_frame_locals_address): New functions.
9025 (arm_frame_num_args): New function.
9026 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9027 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9028 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9029
405f26e6
MS
90302002-01-31 Michael Snyder <msnyder@redhat.com>
9031
502fd408
MS
9032 * breakpoint.c (break_at_finish_command): Export.
9033 (break_at_finish_at_depth_command): Export.
9034 (tbreak_at_finish_command): Export.
9035 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9036 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9037 "tbreak" commands, which are HPPA specific.
9038
7d35e135
MS
9039 * printcmd.c (disassemble_command): Remove an ancient
9040 artifact of an old merge.
9041
aaa38bb5 9042 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9043 Define enum constant values for overlay mode.
9044 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9045 (overlay_is_mapped, overlay_auto_command,
9046 overlay_manual_command): Ditto.
d874f1e2 9047
aaa38bb5
AJ
9048 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9049 breakpoint_here_p, breakpoint_inserted_here_p,
9050 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9051 describe_other_breakpoints, check_duplicates, clear_command):
9052 Coding standard fixes.
9053
8add0441 9054 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9055 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9056 code: check bfd SEC_READONLY flag for section.
9057
e351066e
AC
90582002-01-31 Andrew Cagney <ac131313@redhat.com>
9059
7d35e135 9060 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9061
8a48e967
DJ
90622002-01-30 Daniel Jacobowitz <drow@mvista.com>
9063
9064 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9065 data symbols, since we search based on textlow and texthigh.
9066 (find_pc_sect_symtab): Likewise.
9067
f5a96129
AC
90682002-01-30 Andrew Cagney <ac131313@redhat.com>
9069
9070 * defs.h (vwarning): Declare.
f5a96129
AC
9071 * utils.c (vwarning): New function.
9072 (warning): Call vwarning.
9073 (warning_begin): Delete function.
9074
9075 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9076 the warning message.
9077 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9078 warning_begin.
9079
cefd4ef5
MS
90802002-01-30 Michael Snyder <msnyder@redhat.com>
9081
1a703748
MS
9082 * NEWS: Mention "set trust-readonly-sections" command.
9083 Mention generate-core-file command.
cefd4ef5 9084
3a11626d
MS
90852002-01-15 Michael Snyder <msnyder@redhat.com>
9086
9087 * target.c: New command, "set trust-readonly-sections on".
9088 (do_xfer_memory): Honor the suggestion to trust readonly sections
9089 by reading them from the object file instead of from the target.
9090 (initialize_targets): Register command "set trust-readonly-sections".
9091
d1c7e53b
AC
90922002-01-29 Andrew Cagney <ac131313@redhat.com>
9093
9094 * parse.c (target_map_name_to_register): Simplify, search regs and
9095 pseudo-regs using a single loop.
9096
e2c9a72c
AC
90972002-01-30 Andrew Cagney <ac131313@redhat.com>
9098
9099 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9100
69824b4e
MK
91012002-01-15 Rodney Brown <rbrown64@csc.com.au>
9102
9103 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9104 * config/i386/i386v42mp.mh: Add i387-nat.o .
9105 * i386v4-nat.c: Include i387-nat.h.
9106 (supply_fpregset): Use i387_supply_fsave.
9107 (fill_fpregset): Use i387_fill_fsave.
9108
6eb69eab
RE
91092002-01-30 Richard Earnshaw <rearnsha@arm.com>
9110
9111 * arm-tdep.c (arm_call_dummy_words): Define.
9112 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9113 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9114 (CALL_DUMMY_WORDS): Define.
9115 (arm_call_dummy_words): Declare.
9116 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9117 (arm_linux_call_dummy_words): Declare.
9118
9852326a
AS
91192002-01-30 Andreas Schwab <schwab@suse.de>
9120
9121 * m68klinux-nat.c: Fix last change to use regcache_collect
9122 instead of referencing registers[] directly.
9123
977a3030
AC
91242002-01-29 Andrew Cagney <ac131313@redhat.com>
9125
9126 * parse.c (target_map_name_to_register): Delete code wrapped in
9127 #ifdef REGISTER_NAME_ALIAS_HOOK.
9128
2076c72b
MS
91292002-01-28 Michael Snyder <msnyder@redhat.com>
9130
9131 * regcache.c (legacy_read_register_gen): Need to be able to
9132 read pseudo-register as well as real register.
9133 (legacy_write_register_gen): Ditto.
9134
8fcc723b
AC
91352002-01-28 Andrew Cagney <ac131313@redhat.com>
9136
9137 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9138 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9139 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9140 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9141 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9142 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9143 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9144 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9145 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9146 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9147 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9148 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9149 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9150 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9151 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9152 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9153 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9154 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9155 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9156 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9157
afe64c1a
AC
91582002-01-28 Andrew Cagney <ac131313@redhat.com>
9159
9160 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9161 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9162 (initialize_current_architecture): Update target_byte_order using
9163 information from BFD.
aaa38bb5 9164 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9165 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9166
75bc7ddf
AC
91672002-01-28 Andrew Cagney <ac131313@redhat.com>
9168
9169 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9170 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9171
9172 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9173 #ifdef INVALID_FLOAT.
9174 * infcmd.c (do_registers_info): Ditto.
9175 * values.c (unpack_double): Ditto. Add comment.
9176
9177 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9178 already commented out.
9179
0280a90a
AS
91802002-01-26 Andreas Schwab <schwab@suse.de>
9181
9182 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9183 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9184 registers and add support for PTRACE_GETREGS.
9185
7072a954
AC
91862002-01-24 Andrew Cagney <ac131313@redhat.com>
9187
9188 GDB 5.1.1 released from 5.1 branch.
9189 * NEWS: Add 5.1.1 news.
9190 * README: Sync with 5.1 branch.
9191
86f902e0
FF
91922002-01-23 Fred Fish <fnf@redhat.com>
9193
9194 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9195 stabstring on initial malloc. Reallocing will copy it for us,
9196 if necessary.
9197
8af51c36
EZ
91982002-01-23 Elena Zannoni <ezannoni@redhat.com>
9199
aaa38bb5 9200 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9201 (HFILES_NO_SRCDIR): Remove hpread.h.
9202 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9203 (hpread.o): Update dependencies.
9204 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9205
9206 * hp-psymtab-read.c: Remove file.
9207 * hp-symtab-read.c: Remove file.
9208 * hpread.h: Remove file.
9209
9210 * hpread.c: Merge all contents of hp-psymtab-read.c,
9211 hp-symtab-read.c and hpread.h into this file, as it was prior to
9212 January 1999.
9213
9214 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9215 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9216 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9217 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9218
dc5cfeb6
EZ
92192002-01-23 Elena Zannoni <ezannoni@redhat.com>
9220
9221 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9222 fill_gregset): Call gdbarch_tdep() just once, assign result to
9223 variable and use that, instead of calling the function several
9224 times.
9225
ea87b71b
AO
92262002-01-24 Alexandre Oliva <aoliva@redhat.com>
9227
9228 * configure.host: Accept sparcv9 as alias for sparc64.
9229 * configure.tgt: Likewise.
9230
13fc0c2f
KB
92312002-01-22 Kevin Buettner <kevinb@redhat.com>
9232
9233 * solib-aix5.c (build_so_list_from_mapfile)
9234 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9235 arguments is not reversed.
9236 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9237 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9238
7bd872fe
EZ
92392002-01-22 Elena Zannoni <ezannoni@redhat.com>
9240
9241 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9242 modified version of obsolete sh_fetch_pseudo_register.
9243 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9244 (sh4_register_read): New function.
9245 (sh_pseudo_register_write): New function. Renamed and modified
9246 version of obsolete sh_store_pseudo_register.
9247 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9248 (sh4_register_write): New function.
9249 (sh_gdbarch_init): Remove setting of gdbarch function
9250 fetch_pseudo_register and store_pseudo_register. Remove setting of
9251 register_convert_to_raw, register_convert_to_virtual,
9252 register_convertible.
9253 (sh_sh4_register_convertible): Delete. No longer needed. All is
9254 taken care by architecture specific functions
9255 register_read/register_write.
9256 (sh_sh4_register_convert_to_virtual): Make static.
9257 (sh_sh4_register_convert_to_raw): Ditto.
9258
069e84fd
AC
92592002-01-22 Andrew Cagney <ac131313@redhat.com>
9260
9261 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9262 (floatformat_is_nan, floatformat_mantissa): Ditto.
9263
9264 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9265 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9266 builtin_type_ieee_double_little,
9267 builtin_type_ieee_double_littlebyte_bigword,
9268 builtin_type_m68881_ext, builtin_type_i960_ext,
9269 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9270 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9271 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9272 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9273
211a4f69
CV
92742002-01-22 Corinna Vinschen <vinschen@redhat.com>
9275
9276 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9277 parameter. Set frameless flag if it exists and depended of
9278 whether the scanned function is frameless or not.
9279 (xstormy16_skip_prologue): If function is frameless, return
9280 result of xstormy16_scan_prologue().
9281 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9282 call.
9283
f81353e4
EZ
92842002-01-21 Elena Zannoni <ezannoni@redhat.com>
9285
9286 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9287 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9288 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9289 sh_sh4_register_byte, sh_sh4_register_raw_size,
9290 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9291 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9292 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9293 sh_store_pseudo_register, sh_do_pseudo_register): Call
9294 gdbarch_tdep() just once, assign result to variable and use that,
9295 instead of calling the function several times.
9296
63c73a17
MK
92972002-01-20 Mark Kettenis <kettenis@gnu.org>
9298
9299 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9300 macros instead of LAST_FPU_CTRL_REGNUM.
9301 (store_register): Likewise.
9302
39ad761d
JB
93032002-01-21 Jim Blandy <jimb@redhat.com>
9304
9305 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9306 is up-to-date before running the program, not just when a program
9307 exits.
9308
3d74b771
FF
93092002-01-21 Fred Fish <fnf@redhat.com>
9310
9311 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9312 when we have found all instructions we are looking for.
9313
966fbf70
RE
93142002-01-21 Richard Earnshaw <rearnsha@arm.com>
9315
9316 * arm-tdep.c (arm_register_name): New function.
9317 (arm_registers_names): Make static.
9318 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9319 (arm_register_name): Declare.
9320 (REGISTER_NAME): Use it.
9321
c3b4394c
RE
93222002-01-21 Richard Earnshaw <rearnsha@arm.com>
9323 Kevin Buettner <kevinb@redhat.com>
9324
9325 Convert arm targets to new FRAME interface.
9326 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9327 (arm_frame_find_save_regs): Delete.
9328 (arm_frame_init_saved_regs): New.
9329 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9330 Allocate extra_info as required. Convert all uses of fsr.regs
9331 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9332 to use extra_info.
9333 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9334 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9335 (check_prologue_cache, save_prologue_cache): Likewise.
9336 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9337 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9338 (FRAME_FIND_SAVED_REGS): Delete.
9339 (arm_frame_find_saved_regs): Delete prototype.
9340 (arm_frame_init_saved_regs): New prototype.
9341 (FRAME_INIT_SAVED_REGS): Define.
9342
61d99182
AC
93432002-01-20 Andrew Cagney <ac131313@redhat.com>
9344
9345 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9346
6aaea291
AC
93472002-01-20 Andrew Cagney <ac131313@redhat.com>
9348
9349 From Jeff Law <law@redhat.com>:
9350 * infttrace.c: Include <sys/pstat.h>.
9351 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9352 exec file if the ttrace equivalent fails.
9353
15f698d2
AC
93542002-01-20 Andrew Cagney <ac131313@redhat.com>
9355
9356 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9357 (closeLogFile): Ditto.
9358
f86ddd7c
MC
93592002-01-20 Michael Chastain <mec@shout.net>
9360
9361 * top.c (print_gdb_version): Bump copyright year to 2002.
9362
904507ce
AC
93632002-01-20 Andrew Cagney <ac131313@redhat.com>
9364
9365 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9366 Zannoni and Eli Zaretskii.
9367
d7f0b9ce
DJ
93682002-01-20 Daniel Jacobowitz <drow@mvista.com>
9369
9370 * buildsym.c: Update copyright years.
9371 * c-typeprint.c: Likewise.
9372 * dwarf2read.c: Likewise.
9373 * f-typeprint.c: Likewise.
9374 * gdbtypes.c: Likewise.
9375 * gdbtypes.h: Likewise.
9376 * hp-symtab-read.c: Likewise.
9377 * hpread.c: Likewise.
9378 * mdebugread.c: Likewise.
9379 * p-typeprint.c: Likewise.
9380
3fd3d7d2
AC
93812002-01-20 Andrew Cagney <ac131313@redhat.com>
9382
9383 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9384 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9385 byte-order selectable.
9386 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9387 * arch-utils.c: Ditto.
9388 (set_endian): Ditto.
9389 (set_endian_from_file): Ditto.
9390 * gdbserver/low-sim.c (create_inferior): Ditto.
9391 * gdbarch.sh: Ditto.
9392 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9393 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9394 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9395 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9396 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9397 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9398 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9399 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9400 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9401 macro definition.
9402 * config/mips/tm-wince.h: Remove #undef of macro
9403 TARGET_BYTE_ORDER_SELECTABLE.
9404 * config/sh/tm-wince.h: Ditto.
9405
b02dede2
DJ
94062002-01-20 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9409 member function fields. Add accessor macro
9410 TYPE_FN_FIELD_ARTIFICIAL.
9411 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9412 * c-typeprint.c (c_type_print_base): Skip artificial member
9413 functions.
9414
c3643761
DJ
94152002-01-20 Daniel Jacobowitz <drow@mvista.com>
9416
9417 * f-typeprint.c: Delete unused function f_type_print_args.
9418 * p-typeprint.c: Delete unused function pascal_type_print_args.
9419
8176bb6d
DJ
94202002-01-20 Daniel Jacobowitz <drow@mvista.com>
9421
9422 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9423 comment. Add ``artificial'' to ``union field_location''.
9424
9425 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9426
9427 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9428 * mdebugread.c (parse_symbol): Likewise.
9429 * stabsread.c (define_symbol): Likewise.
9430 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9431 initializing TYPE_FIELD_BITPOS to n (obsolete).
9432 (hpread_doc_function_type): Likewise.
9433 * hpread.c (hpread_function_type): Likewise.
9434
7fd60527
AC
94352002-01-20 Andrew Cagney <ac131313@redhat.com>
9436
9437 * configure.in (host_makefile_frag): Only require a host makefile
9438 fragment when a native build.
9439 * configure: Re-generate.
9440
c2f05ac9
AC
94412002-01-20 Andrew Cagney <ac131313@redhat.com>
9442
9443 * doublest.h (floatformat_from_type): Declare.
9444 * doublest.c (floatformat_from_type): New function.
9445 (convert_typed_floating): Use.
9446
9447 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9448 call to function floatformat_from_type.
9449
9450 * gdbarch.sh (IEEE_FLOAT): Delete.
9451 * gdbarch.h, gdbarch.c: Re-generate.
9452 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9453 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9454 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9455 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9456 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9457 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9458 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9459 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9460 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9461 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9462 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9463 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9464
9465 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9466 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9467 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9468 * sh-tdep.c (sh_gdbarch_init): Ditto.
9469 * mips-tdep.c (mips_gdbarch_init): Ditto.
9470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9471 * cris-tdep.c (cris_gdbarch_init): Ditto.
9472
abf22e64
AJ
94732002-01-20 Jiri Smid <smid@suse.cz>
9474
9475 * configure.host, configure.tgt: Support x86-64.
9476 * NEWS: Note new target x86-64.
9477
b7c4cbf8
AJ
9478 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9479 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9480 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9481 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9482 x86-64-linux-nat.o): Fix dependencies.
9483
82600034
AC
94842002-01-19 Andrew Cagney <ac131313@redhat.com>
9485
9486 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9487 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9488 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9489 * config/sparc/xm-sun4os4.h: Delete file.
9490 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9491
bbe5c628
AC
94922002-01-19 Andrew Cagney <ac131313@redhat.com>
9493
9494 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9495 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9496 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9497 * config/i386/i386lynx.mh (XM_FILE): Delete.
9498 * config/rs6000/xm-rs6000ly.h: Delete file.
9499 * config/sparc/xm-sparclynx.h: Delete file.
9500 * config/m68k/xm-m68klynx.h: Delete file.
9501 * config/i386/xm-i386lynx.h: Delete file.
9502 * config/xm-lynx.h: Delete file.
9503 * config/djgpp/fnchange.lst: Update.
9504
f8453e34
JT
95052002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9506
9507 * alpha-tdep.c (alpha_register_byte): New function.
9508 (alpha_register_raw_size): Ditto.
9509 (alpha_register_virtual_size): Ditto.
9510 (alpha_skip_prologue_internal): Renamed from
9511 alpha_skip_prologue.
9512 (alpha_skip_prologue): New version that calls
9513 alpha_skip_prologue_internal.
9514 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9515 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9516 second argument from alpha_skip_prologue.
9517 (REGISTER_BYTE): Use alpha_register_byte.
9518 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9519 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9520 (FRAMELESS_FUNCTION_INVOCATION): Use
9521 generic_frameless_function_invocation_not.
9522 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9523 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9524
52d9e613
AC
95252002-01-19 Andrew Cagney <ac131313@redhat.com>
9526
9527 * config/mips/xm-news-mips.h: Delete file.
9528 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9529
9530 * config/m88k/xm-m88k.h: Delete file.
9531 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9532 * config/m88k/xm-delta88v4.h: Ditto.
9533 * config/m88k/xm-delta88.h: Ditto.
9534
9535 * config/alpha/xm-fbsd.h: Delete file.
9536 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9537
9538 * config/sparc/xm-sparc.h: Delete file.
9539 * Makefile.in (xm-sun4os4.h): Delete dependency.
9540 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9541 * config/sparc/xm-sun4os4.h: Ditto.
9542 * config/sparc/xm-linux.h: Ditto.
9543
9544 * config/i386/xm-windows.h: Delete file.
9545
2d1b2124
AC
95462002-01-19 Andrew Cagney <ac131313@redhat.com>
9547
9548 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9549 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9550
ee1f65f0
JT
95512002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9552
9553 * alpha-tdep.c (alpha_call_dummy_words): New.
9554 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9555 (CALL_DUMMY_P): Define.
9556 (CALL_DUMMY_WORDS): Define.
9557 (SIZEOF_CALL_DUMMY_WORDS): Define.
9558
98081e55
PB
95592002-01-19 Per Bothner <per@bothner.com>
9560
9561 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9562 isn't NULL, which can happen with some gcj-3.x-produced code.
9563
0d056799
JT
95642002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9565
9566 * alpha-tdep.c (alpha_register_virtual_type): New function.
9567 (alpha_init_frame_pc_first): Ditto.
9568 (alpha_fix_call_dummy): Ditto.
9569 (alpha_store_struct_return): Ditto.
9570 (alpha_extract_struct_value_address): Ditto.
9571 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9572 alpha_register_virtual_type.
9573 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9574 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9575 alpha_extract_struct_value_address.
9576 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9577 (INIT_FRAME_PC): Use init_frame_pc_noop.
9578 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9579
4604bcad
MK
95802002-01-19 Mark Kettenis <kettenis@gnu.org>
9581
9582 * i386gnu-nat.c: Include "i386-tdep.h".
9583 (fetch_fpregs): Simplify code dealing with uninitialized floating
9584 point states such that it doesn't require FP7_REGNUM.
9585
140f9984
JT
95862002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9587
abf22e64
AJ
9588 * alpha-tdep.c (frame_extra_info): New.
9589 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9590 frame->extra_info.
9591 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9592 (alpha_frame_saved_pc): Use frame->extra_info.
9593 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9594 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9595 (init_extra_frame_info): Rename to...
9596 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9597 (alpha_print_extra_frame_info): New function.
140f9984
JT
9598 (alpha_frame_locals_address): Ditto.
9599 (alpha_frame_args_address): Ditto.
abf22e64 9600 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9601 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9602 alpha_frame_args_address.
abf22e64 9603 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9604 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9605 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9606 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9607 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9608 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9609
d734c450
JT
96102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9611
9612 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9613 (alpha_cannot_fetch_register): Ditto.
9614 (alpha_cannot_store_register): Ditto.
9615 (alpha_register_convertible): Ditto.
9616 (alpha_use_struct_convention): Ditto.
9617 * config/alpha/tm-alpha.h: Update copyright years.
9618 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9619 (INNER_THAN): Use core_addr_lessthan.
9620 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9621 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9622 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9623 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9624 (FRAME_CHAIN): Remove unnecessary cast.
9625
b4ceaee6
AC
96262002-01-18 Andrew Cagney <ac131313@redhat.com>
9627
9628 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9629 obsolete.
9630
0a65a603
AC
96312002-01-18 Andrew Cagney <ac131313@redhat.com>
9632
9633 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9634 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9635 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9636 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9637 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9638 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9639 * x86-64-linux-nat.c: Ditto.
9640
636a6dfc
JT
96412002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9642
abf22e64 9643 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9644 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9645 (REGISTER_NAME): Define.
9646
acceddb6
JT
96472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9648
9649 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9650
ec32e4be
JT
96512002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9652
9653 * alpha-tdep.c: Update copyright years.
9654 (alpha_next_pc): New function.
9655 (alpha_software_single_step): Ditto.
9656 * config/alpha/tm-alpha.h: Add prototype for
9657 alpha_software_single_step.
9658
e771a871
JT
96592002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9660
9661 * alphabsd-nat.c: Update copyright years.
9662 (fill_gregset): Use regcache_collect.
9663 (fill_fpregset): Likewise.
9664 (fetch_inferior_registers): Only fetch integer registers
9665 if requested to do so.
9666 (store_inferior_registers): Only store integer registers
9667 if requested to do so.
9668
7708fa01
AC
96692002-01-17 Andrew Cagney <ac131313@redhat.com>
9670
9671 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9672 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9673 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9674 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9675 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9676 * config/arm/linux.mh (XDEPFILES): Delete.
9677 * config/arm/nbsd.mh (XDEPFILES): Delete.
9678 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9679 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9680 * config/i386/i386m3.mh (XDEPFILES): Delete.
9681 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9682 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9683 * config/i386/fbsd.mh (XDEPFILES): Delete.
9684 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9685 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9686 * config/i386/i386v4.mh (XDEPFILES): Delete.
9687 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9688 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9689 * config/i386/i386aix.mh (XDEPFILES): Delete.
9690 * config/i386/go32.mh (XDEPFILES): Delete.
9691 * config/i386/cygwin.mh (XDEPFILES): Delete.
9692 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9693 * config/i386/i386mach.mh (XDEPFILES): Delete.
9694 * config/i386/i386v32.mh (XDEPFILES): Delete.
9695 * config/i386/linux.mh (XDEPFILES): Delete.
9696 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9697 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9698 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9699 * config/i386/i386sco.mh (XDEPFILES): Delete.
9700 * config/i386/i386v.mh (XDEPFILES): Delete.
9701 * config/i386/nbsd.mh (XDEPFILES): Delete.
9702 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9703 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9704 * config/i386/symmetry.mh (XDEPFILES): Delete.
9705 * config/i386/obsd.mh (XDEPFILES): Delete.
9706 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9707 * config/ia64/linux.mh (XDEPFILES): Delete.
9708 * config/ia64/aix.mh (XDEPFILES): Delete.
9709 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9710 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9711 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9712 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9713 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9714 * config/m68k/linux.mh (XDEPFILES): Delete.
9715 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9716 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9717 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9718 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9719 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9720 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9721 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9722 * config/m88k/delta88.mh (XDEPFILES): Delete.
9723 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9724 * config/m88k/m88k.mh (XDEPFILES): Delete.
9725 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9726 * config/mips/linux.mh (XDEPFILES): Delete.
9727 * config/mips/irix6.mh (XDEPFILES): Delete.
9728 * config/mips/irix5.mh (XDEPFILES): Delete.
9729 * config/mips/irix4.mh (XDEPFILES): Delete.
9730 * config/mips/irix3.mh (XDEPFILES): Delete.
9731 * config/mips/decstation.mh (XDEPFILES): Delete.
9732 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9733 (NATDEPFILES): Move core-aout.o to here.
9734 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9735 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9736 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9737 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9738 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9739 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9740 * config/pa/hpux11.mh (XDEPFILES): Delete.
9741 * config/powerpc/aix.mh (XDEPFILES): Delete.
9742 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9743 * config/powerpc/linux.mh (XDEPFILES): Delete.
9744 * config/romp/rtbsd.mh: Rename XDEPFILES.
9745 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9746 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9747 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9748 * config/s390/s390.mh (XDEPFILES): Delete.
9749 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9750 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9751 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9752 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9753 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9754 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9755 * config/sparc/linux.mh (XDEPFILES): Delete.
9756 * config/vax/vaxult.mh (XDEPFILES): Delete.
9757 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9758 * Makefile.in (DEPFILES): Remove XDEPFILES.
9759
375fc983
AC
97602002-01-17 Andrew Cagney <ac131313@redhat.com>
9761
9762 * utils.c (internal_verror): Fix comments, default is yes not no.
9763 Update queries to match. Default to quit and dump core.
9764
8926118c
AC
97652002-01-17 Andrew Cagney <ac131313@redhat.com>
9766
9767 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9768 copyright.
9769 * defs.h, event-top.c, gdbcmd.h: Ditto.
9770 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9771 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9772 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9773 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9774 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9775 * mi/mi-main.c:Ditto.
9776
9777 * stack.c, symfile.c: Update copyright.
9778
45b7b345
DJ
97792002-01-17 Daniel Jacobowitz <drow@mvista.com>
9780
db728ff7
DJ
9781 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9782 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9783 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9784 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9785
db728ff7
DJ
97862002-01-17 Daniel Jacobowitz <drow@mvista.com>
9787
9788 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9789 * gdbserver/low-lynx.c (myattach): Likewise.
9790 * gdbserver/low-nbsd.c (myattach): Likewise.
9791 * gdbserver/low-sim.c (myattach): Likewise.
9792 * gdbserver/low-sparc.c (myattach): Likewise.
9793 * gdbserver/low-sun3.c (myattach): Likewise.
9794
9795 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9796
db728ff7 9797 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9798 (main): Handle "--attach".
9799
8de3c354
AC
98002002-01-16 Andrew Cagney <ac131313@redhat.com>
9801
9802 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9803 maintainer.
9804
b0129042
DJ
98052002-01-15 Daniel Jacobowitz <drow@mvista.com>
9806
9807 * c-typeprint.c (is_type_conversion_operator): Add additional
9808 check for non-conversion operators.
9809
ba8679fb 98102002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9811
9812 * linux-proc.c: Add "info proc" command, a la procfs.c.
9813 (read_mapping): New function, abstract and re-use code.
9814 (linux_find_memory_regions): Use new func read_mapping.
9815 (linux_info_proc_cmd): New function, implement "info proc".
9816 (_initialize_linux_proc): Add new command "info proc".
9817
e4f9b4d5
MS
98182002-01-15 Michael Snyder <msnyder@redhat.com>
9819
9820 * symfile.c (generic_load): Use bfd_map_over_sections method
9821 instead of manipulating bfd structure members directly.
9822 (add_section_size_callback): New function, bfd sections callback
9823 used by generic_load.
9824 (load_sections_callback): New function, bfd sections callback
9825 used by generic_load.
9826
08cf96df
EZ
98272002-01-15 Elena Zannoni <ezannoni@redhat.com>
9828
abf22e64 9829 [Based on work by Jim Blandy]
08cf96df
EZ
9830 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9831 (builtin_type_vec128): Export.
9832 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9833 types.
9834 (builtin_type_vec128): New builtin type for 128 bit vector
9835 registers.
9836 (build_gdbtypes): Initialize builtin_type_v16qi and
9837 builtin_type_v8hi. Create the vec128 register builtin type
9838 structure.
9839 (build_builtin_type_vec128): New function.
abf22e64 9840 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9841 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9842 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9843 AltiVec register to new builtin type.
9844
d7242108
DJ
98452001-01-15 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9848 to make_cv_type.
9849
4ee3352d
AC
98502002-01-14 Andrew Cagney <ac131313@redhat.com>
9851
9852 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9853 CLEAN_UP_REGISTER_VALUE.
9854 * regcache.c (supply_register): Update only call.
9855
f015b2e7
AC
98562002-01-14 Andrew Cagney <ac131313@redhat.com>
9857
9858 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9859 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9860 a29k-*-vxworks* targets as obsolete.
9861
356ae49d
MS
98622002-01-14 Michael Snyder <msnyder@redhat.com>
9863
9864 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9865 until we can resolve portability issues.
9866 * gregset.h: Remove references to fpxregs.
9867 * gcore.c (gcore_command): Initialize note_sec to NULL.
9868
ade8f45e
AC
98692002-01-13 Andrew Cagney <ac131313@redhat.com>
9870
9871 * signals.c (target_signal_to_name): Rewrite. Only use
9872 signals[].name when in bounds and non-NULL.
abf22e64 9873
89c49e7a
AC
98742002-01-13 Andrew Cagney <ac131313@redhat.com>
9875
9876 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9877 * signals.c (target_signal_to_name): Verify that SIG is within the
9878 bounds of the signals array.
9879
4daa9f9f
AC
98802002-01-13 Andrew Cagney <ac131313@redhat.com>
9881
9882 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9883
ba4bbdcb
KS
98842002-01-13 Keith Seitz <keiths@redhat.com>
9885
9886 * stack.c (print_frame_info_base): Print the frame's pc
9887 only if when print_frame_info_listing_hook is not defined.
9888
575bbeb6
KS
98892002-01-13 Keith Seitz <keiths@redhat.com>
9890
9891 * varobj.c (varobj_set_value): Make sure that there were no
9892 errors evaluating the object before attempting to set its
9893 value.
9894 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9895 so this offset adjustment is no longer necessary.
9896 (create_child): Don't set the error flag if the child is
9897 a CPLUS_FAKE_CHILD.
9898 (value_of_child): If value_fetch_lazy fails, return NULL
9899 so that callers will be notified that an error occurred.
9900 (c_value_of_variable): Delay check of variable's validity
9901 until later. We actually want all structs and unions to have
9902 the value "{...}".
9903 Do not return "???" for variables which could not be evaluated.
9904 This error condition must be returned to the caller so that it
9905 can get the error condition from gdb.
9906 (cplus_name_of_child): Adjust index for vptr before figuring
9907 out the name of the child.
9908 (cplus_value_of_child): If a child's (real) parent is not valid,
9909 don't even bother trying to give a value for it. Just return
9910 an error. Change all instances in this function.
9911 (cplus_type_of_child): If our parent is one of the "fake"
9912 parents, we need to get at the type of the real parent, and
9913 derive the child's true type using this information.
9914
b76898ab
AC
99152002-01-13 Andrew Cagney <ac131313@redhat.com>
9916
9917 From 2002-01-09 John Marshall <johnm@falch.net>:
9918 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9919 sources.redhat.com, and tweak some related URLs which had
9920 suffered from linkrot.
9921
b6649e88
AC
99222002-01-13 Andrew Cagney <ac131313@redhat.com>
9923
9924 From Jeff law:
9925 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9926 structures passed in registers.
9927
82cc5033
EZ
99282002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9929
9930 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9931 white space which prevented compilation. Reported by DSK
9932 <dsk@student.unsw.edu.au>.
9933
ba5f2f8a
MS
99342002-01-11 Michael Snyder <msnyder@redhat.com>
9935
fbd35540
MS
9936 * symfile.c (build_section_addr_info_from_section_tab):
9937 Use bfd access method instead of manipulating bfd directly.
9938 (syms_from_objfile): Ditto.
9939 (simple_overlay_update_1): Ditto.
9940 (simple_overlay_update): Ditto.
9941 (generic_load): Ditto.
9942 (overlay_unmapped_address): FIXME comment, bfd access methods.
9943 (sections_overlap): FIXME comment, bfd access methods.
9944 (pc_in_mapped_range): FIXME comment, bfd access methods.
9945 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9946 (section_is_mapped): FIXME comment, bfd access methods.
9947 (section_is_overlay): FIXME comment, bfd access methods.
9948
ba5f2f8a
MS
9949 * symfile.c (generic_load): Whitespace and long line cleanups.
9950 Remove duplicate variable, change several local variables to
9951 more appropriate data types.
9952 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9953
17df2af6
AC
99542002-01-12 Andrew Cagney <ac131313@redhat.com>
9955
9956 From Peter Schauer:
9957 * language.c (longest_local_hex_string_custom): Use phex_nz to
9958 convert NUM to a hex string.
9959
ec920329
EZ
99602002-01-12 Elena Zannoni <ezannoni@redhat.com>
9961
9962 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9963 the function.
538a76d6 9964 Update Copyright year.
ec920329 9965
3abd2e01
AC
99662002-01-12 Andrew Cagney <ac131313@redhat.com>
9967
9968 * language.c (longest_raw_hex_string): Delete unused function.
9969
b21b22e0
PS
99702002-01-11 Petr Sorfa <petrs@caldera.com>
9971
9972 * MAINTAINERS (write-after-approval): Add myself.
9973 * dwarf2read.c (read_tag_string_type): Handling of
9974 DW_AT_byte_size.
9975 (read_tag_string_type): FORTRAN fix to prevent propagation of
9976 first string size.
9977 (set_cu_language): Handling of DW_LANG_Fortran95
9978
747fe712
RE
99792002-01-11 Richard Earnshaw <rearnsha@arm.com>
9980
9981 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9982 GETPID(inferior_ptid).
9983 (store_inferior_registers): Likewise.
9984
f1bea926
JM
99852002-01-10 Jason Merrill <jason@redhat.com>
9986
9987 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9988 Fix DW_OP_minus.
9989
ae940673
AC
99902002-01-10 Andrew Cagney <ac131313@redhat.com>
9991
9992 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9993 and bfd/elf32-sh-nbsd.c.
9994
00546b04
MS
99952002-01-10 Michael Snyder <msnyder@redhat.com>
9996
352ed7b4
MS
9997 * NEWS: Mention --pid and corefile/proc-id behavior change.
9998
c18be923
MS
9999 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10000 * gcore.c: Include cli/cli-decode.h instead of command.h.
10001
00546b04
MS
10002 * main.c (captured_main): Add new command line option "--pid".
10003 If the second command line argument (following the symbol-file)
10004 begins with a digit, try to attach to it before trying to open
10005 it as a corefile.
10006 (print_gdb_help): Document the "--pid" argument.
10007
db60ec62
EZ
100082002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10009
10010 * completer.c (command_completer): New function.
10011
10012 * completer.h <command_completer>: Add prototype.
10013
10014 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10015 completer for the "help" command.
10016
39c22d1a
JM
100172002-01-09 Jason Merrill <jason@redhat.com>
10018
10019 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10020
c564377f
MS
100212002-01-09 Michael Snyder <msnyder@redhat.com>
10022
975aec09
MS
10023 * i386-linux-nat.c (fill_fpxregset): Make global.
10024 (store_fpxregset): Ditto.
10025
db4a10fa
MS
10026 * gregset.h (gdb_fpxregset_t): Define.
10027 (supply_fpxregset): Prototype.
10028 (fill_fpxregset): Prototype.
10029
c564377f
MS
10030 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10031
c3d45d70
RE
100322002-01-09 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10035 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10036 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10037
fcc87af1
AC
100382002-01-09 Andrew Cagney <ac131313@redhat.com>
10039
10040 * MAINTAINERS: Update target maintainer rules so that any
10041 Maintainer can approve a tested patch for a maintenance-only
10042 target.
10043
dd96c05b
RE
100442002-01-09 Richard Earnshaw <rearnsha@arm.com>
10045
d4297db9 10046 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10047
d4297db9 10048 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10049 IN_SIGTRAMP.
10050
145fdc6e
MS
100512002-01-08 Michael Snyder <msnyder@redhat.com>
10052
10053 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10054 real name of the executable, rather than the /proc name.
10055
be4d1333
MS
100562002-01-03 Michael Snyder <msnyder@redhat.com>
10057
10058 Implement a "generate-core-file" command in gdb, save target state.
10059 * gcore.c: New file. Implement new command 'generate-core-file'.
10060 Save a corefile image of the current state of the inferior.
10061 * linux-proc.c: Add linux-specific code for saving corefiles.
10062 * target.h (struct target_ops): Add new target vectors for saving
10063 corefiles; to_find_memory_regions and to_make_corefile_notes.
10064 (target_find_memory_regions): New macro.
10065 (target_make_corefile_notes): New macro.
10066 * target.c (update_current_target): Inherit new target methods.
10067 (dummy_find_memory_regions): New place-holder method.
10068 (dummy_make_corefile_notes): New place-holder method.
10069 (init_dummy_target): Initialize new dummy target vectors.
10070 * exec.c (exec_set_find_memory_regions): New function.
10071 Allow the exec_ops vector for memory regions to be taken over.
10072 (exec_make_note_section): New function, target vector method.
10073 * defs.h (exec_set_find_memory_regions): Export prototype.
10074 * procfs.c (proc_find_memory_regions): New function, corefile method.
10075 (procfs_make_note_section): New function, corefile method.
10076 (init_procfs_ops): Set new target vector pointers.
10077 (find_memory_regions_callback): New function.
10078 (procfs_do_thread_registers): New function.
10079 (procfs_corefile_thread_callback): New function.
10080 * sol-thread.c (sol_find_memory_regions): New function.
10081 (sol_make_note_section): New function.
10082 (init_sol_thread_ops): Initialize new target vectors.
10083 * inftarg.c (inftarg_set_find_memory_regions): New function.
10084 Allow to_find_memory_regions vector to be taken over.
10085 (inftarg_set_make_corefile_notes): New function.
10086 Allow to_make_corefile_notes vector to be taken over.
10087 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10088 interface layer if not target_has_execution (may be a corefile).
10089 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10090 * config/sparc/sun4sol2.mh: Ditto.
10091 * config/alpha/alpha-linux.mh: Ditto.
10092 * config/arm/linux.mh: Ditto.
10093 * config/i386/x86-64linux.mh: Ditto.
10094 * config/ia64/linux.mh: Ditto.
10095 * config/m68k/linux.mh: Ditto.
10096 * config/mips/linux.mh: Ditto.
10097 * config/powerpc/linux.mh: Ditto.
10098 * config/sparc/linux.mh: Ditto.
10099
c6b92abd
MS
101002002-01-07 Michael Snyder <msnyder@redhat.com>
10101
10102 * arm-linux-nat.c: Remove references to regcache.c internal data
10103 (registers[] and register_valid[]).
10104
4b09dc8c
MS
101052002-01-07 Michael Snyder <msnyder@redhat.com>
10106
abf22e64
AJ
10107 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10108 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10109 symbol file and shlibs.
10110 * Makefile.in: Add rule for linux-proc.o.
10111 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10112 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10113 * config/arm/linux.mh: Ditto.
10114 * config/i386/linux.mh: Ditto.
10115 * config/i386/x86-64linux.mh: Ditto.
10116 * config/ia64/linux.mh: Ditto.
10117 * config/m68k/linux.mh: Ditto.
10118 * config/mips/linux.mh: Ditto.
10119 * config/powerpc/linux.mh: Ditto.
10120 * config/sparc/linux.mh: Ditto.
10121
c25b74ac
PM
101222002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10123
10124 * win32-nat.c: Add i386-tdep.h dependency.
10125
94cd915f
MS
101262002-01-07 Michael Snyder <msnyder@redhat.com>
10127
c7cccb76
MS
10128 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10129 instead of bfd_get_arch_size. Don't bail out just because
10130 there's no exec_bfd.
abf22e64 10131
34c0bd93
MS
10132 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10133 * p-valprint.c (pascal_object_print_value): Ditto.
10134 * somread.c (som_symtab_read): Ditto.
10135 * symfile.c (simple_free_overlay_region_table): Ditto.
10136 * valops.c (value_assign): Ditto.
10137
21c1c920
MS
10138 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10139 use tilde_expand and strerror for opening save-tracepoints file.
10140
5bbd998e
MS
10141 * thread-db.c (thread_db_new_objfile): Indendation fix.
10142
94cd915f
MS
10143 * infptrace.c (GDB_MAX_ALLOCA): New define.
10144 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10145 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10146 can be overridden with whatever value is appropriate to the host).
10147 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10148 alloca to allocate potentially large buffer.
10149 * rs6000-nat.c (child_xfer_memory): Ditto.
10150 * symm-nat.c (child_xfer_memory): Ditto.
10151 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10152
494e8a93
JSC
101532002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10154
10155 From Nick Clifton <nickc@redhat.com>
10156 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10157
d0e1d48e
MS
101582002-01-07 Michael Snyder <msnyder@redhat.com>
10159
abf22e64 10160 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10161 Don't use exec_bfd if it's NULL.
10162
290b2c7a
MK
101632002-01-06 Mark Kettenis <kettenis@gnu.org>
10164
abf22e64 10165 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10166
aef21287
AC
101672002-01-06 Andrew Cagney <ac131313@redhat.com>
10168
10169 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10170 * gnu-nat.c: Ditto.
10171
30efa627
AC
101722002-01-06 Andrew Cagney <ac131313@redhat.com>
10173
10174 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10175 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10176 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10177 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10178 z8k-coff have not been multi-arched. Update z8k-coff build
10179 status.
10180
9b4ff276
AC
101812002-01-06 Andrew Cagney <ac131313@redhat.com>
10182
10183 * MAINTAINERS: Mark a29k target as obsolete.
10184 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10185 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10186 comments.
10187 * NEWS: Note that a29k targets are obsolete.
10188 * a29k-tdep.c: Mark as obsolete.
10189 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10190 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10191 a29k-*-vxworks* targets as obsolete.
10192 * remote-adapt.c: Obsolete.
10193 * remote-eb.c: Obsolete.
10194 * remote-mm.c: Obsolete.
10195 * remote-udi.c: Obsolete.
10196 * config/a29k/a29k-udi.mt: Obsolete.
10197 * config/a29k/a29k.mt: Obsolete.
10198 * config/a29k/tm-a29k.h: Obsolete.
10199 * config/a29k/tm-vx29k.h: Obsolete.
10200 * config/a29k/vx29k.mt: Obsolete.
10201
a9011d31
AC
102022002-01-05 Andrew Cagney <ac131313@redhat.com>
10203
10204 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10205 with BFD_ENDIAN_BIG.
10206
9299404e
AC
102072002-01-05 Andrew Cagney <ac131313@redhat.com>
10208
10209 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10210 * configure, config.in: Re-generate.
10211 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10212 * defs.h: Do not include <endian.h>.
10213
7e89e357
JT
102142002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10215
10216 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10217 * config.in: Regenerate.
10218 * configure.in: Update copyright years.
10219 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10220 * configure: Regenerate.
10221 * i386bsd-nat.c: Update copyright years.
10222 (fill_gregset): Use regcache_collect.
10223 (fetch_inferior_registers): Only fetch integer registers
10224 if requested to do so. Add support for XMM registers
10225 using PT_GETXMMREGS.
10226 (store_inferior_registers): Only store integer registers
10227 if requested to do so. Add support for XMM registers
10228 using PT_SETXMMREGS.
10229 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10230 (store_inferior_registers): Remove.
10231 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10232 (fetch_elfcore_registers): New function.
10233 (i386nbsd_elfcore_fns): New.
10234 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10235 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10236 i386bsd-nat.o.
10237 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10238 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10239 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10240 * config/i386/tm-nbsd.h: Update copyright years.
10241 (HAVE_SSE_REGS): Define.
10242 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10243 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10244 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10245 (SIGCONTEXT_PC_OFFSET): Remove.
10246 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10247
a752853e
AC
102482002-01-05 Andrew Cagney <ac131313@redhat.com>
10249
10250 * configure.tgt: Remove powerpc-*-macos* target.
10251 * config/m68k/xm-mpw.h: Delete file.
10252 * config/xm-mpw.h: Delete file.
10253 * ser-mac.c: Delete file.
10254 * mpw-make.sed: Delete file.
10255 * mpw-config.in: Delete file.
10256 * mac-xdep.c: Delete file.
10257 * mac-gdb.r: Delete file.
10258 * mac-defs.h: Delete file.
10259 * mac-nat.c: Delete file.
10260 * config/powerpc/macos.mh: Delete file.
10261 * config/powerpc/macos.mt: Delete file.
10262 * config/powerpc/nm-macos.h: Delete file.
10263 * config/powerpc/tm-macos.h: Delete file.
10264 * source.c (openp, open_source_file): Remove obsolete code.
10265 * top.c (gdb_readline): Ditto.
10266 * utils.c (query): Ditto.
10267 * event-top.c (display_gdb_prompt): Ditto.
10268 * Makefile.in (ser-mac.o): Delete obsolete target.
10269 * NEWS: Update.
10270
d7449b42
AC
102712002-01-04 Andrew Cagney <ac131313@redhat.com>
10272
10273 * defs.h (BIG_ENDIAN): Delete macro definition.
10274 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10275 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10276 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10277 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10278 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10279 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10280 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10281 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10282 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10283 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10284 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10285 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10286 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10287 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10288 * gdbarch.c: Re-generate.
10289
356374e8
DJ
102902002-01-04 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10293 for core files.
10294
a2b8f8f8
JT
102952002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10296
10297 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10298
12466af9
AC
102992002-01-04 Andrew Cagney <ac131313@redhat.com>
10300
10301 * value.h (value_ptr): Delete typedef.
10302
3549ab40
JT
103032002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10304
10305 * i386nbsd-nat.c: Update copyright years.
10306 Include i386-tdep.h.
10307
fedbd091
EZ
103082002-01-04 Elena Zannoni <ezannoni@redhat.com>
10309
10310 * stabsread.c: Update copyright years.
10311
10312 From Debashis Mahata <debashis.mahata@wipro.com>:
10313 (read_struct_fields): Deal with Sun C compiler erroneous stab
10314 output for structs and unions.
fec8b34f 10315 Fix PR gdb/269.
fedbd091 10316
eb43544b
DJ
103172002-01-04 Daniel Jacobowitz <drow@mvista.com>
10318
10319 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10320 prototype.
10321
1514d34e
DJ
103222002-01-04 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * cp-abi.c: Fix whitespace.
10325 (baseclass_offset): New wrapper function.
10326 * cp-abi.h (baseclass_offset): Add prototype.
10327 (struct cp_abi_ops): Add baseclass_offset pointer.
10328
10329 * valops.c (vb_match): Move to...
10330 * gnu-v2-abi.c (vb_match): here.
10331 * valops.c (baseclass_offset): Move to...
10332 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10333
10334 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10335
10336 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10337 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10338 * hpacc-abi.c (init_hpacc_ops): Likewise.
10339
7f8c9282
DJ
103402002-01-04 Daniel Jacobowitz <drow@mvista.com>
10341
10342 * valops.c (find_overload_match): Accept obj as a
10343 reference parameter. Update it before returning.
10344 * value.h (find_overload_match): Update prototype.
10345 * eval.c (evaluate_subexp_standard): Pass object to
10346 find_overload_match by reference.
10347
f23631e4
AC
103482002-01-03 Andrew Cagney <ac131313@redhat.com>
10349
10350 * valarith.c: Replace value_ptr with struct value pointer. Remove
10351 register attribute from value declarations.
10352 * valops.c: Ditto.
10353 * value.h: Ditto.
10354 * scm-lang.c (scm_lookup_name): Ditto.
10355
79e10fab 103562002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10357
79e10fab
AC
10358 Abstract the functionality of iterating over mapped memory
10359 regions into a general purpose iterator function.
abf22e64 10360 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10361 iterator for memory sections.
10362 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10363 (solib_mappings_callback): New function, callback for above.
10364 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10365 (info_mappings_callback): New function, callback for above.
10366
10367 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10368
c5ad026a
MK
103692002-01-01 Mark Kettenis <kettenis@gnu.org>
10370
d2a7c97a
MK
10371 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10372 * i386-tdep.c: Include "elf-bfd.h".
10373 (process_note_abi_tag_sections): New function.
10374 (i386_gdbarch_init): Add code to recognize various OS/ABI
10375 combinations.
10376
c5ad026a
MK
10377 * maint.c (_initialize_maint_cmds): Add missing \ in
10378 string-literal.
10379
a1a5b71e 10380For older changes see ChangeLog-2001
c906108c
SS
10381\f
10382Local Variables:
10383mode: change-log
10384left-margin: 8
10385fill-column: 74
10386version-control: never
10387End:
This page took 0.745788 seconds and 4 git commands to generate.