2002-08-18 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
01fc4e33
AC
12002-08-18 Andrew Cagney <ac131313@redhat.com>
2
3 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4 ABI.
5
d8ee244c
MK
62002-08-18 Mark Kettenis <kettenis@gnu.org>
7
c38d8261
MK
8 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
9
222db64c
MK
10 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
11 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
12
c2848c82
MK
13 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
14 write_register_gen instead of write_register_bytes.
15
d8ee244c
MK
16 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
17 i[3456]-*-osf1mk* configurations have been made obsolete.
18 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
19 i[3456]86-*-osf1mk* hosts obsolete.
20 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
21 targets obsolete.
22 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
23 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
24 config/i386/i386m3.mt, config/i386/nm-m3.h,
25 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
26 config/i386/i386mk.mh, config/i386/i386mk.mt,
27 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
28 obsolete.
29 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
30 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
31 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
32
61d8d407
AC
332002-08-18 Andrew Cagney <ac131313@redhat.com>
34
35 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
36 (hppa_value_returned_from_stack): Declare.
37 (hppa_extract_return_value): Declare.
38 * config/pa/hppa.mt: New file.
39 * configure.tgt: Recognize hppa*-*-*.
40 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
41
0c52bd59
MK
422002-08-18 Mark Kettenis <kettenis@gnu.org>
43
44 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
45 comment.
46
b5686e99
MK
472002-08-17 Mark Kettenis <kettenis@gnu.org>
48
49 * top.c (gdb_rl_operate_and_get_next): Make sure
50 operate-and-get-next functions correctly even when the history
51 list is completely filled.
52
c1bab85b
AC
532002-08-18 Andrew Cagney <ac131313@redhat.com>
54
55 * MAINTAINERS (Target Instruction Set Architectures): Rename
56 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
57 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
58 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
59 already listed under Host/Native.
60
61 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
62 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
63 mips*-*-*.
64
32089c7c
AC
652002-08-17 Andrew Cagney <ac131313@redhat.com>
66
67 * config/ia64/ia64.mt: New file.
68 * config/alpha/alpha.mt: New file.
69 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
70 ia64-linux-gnu. Mention that ia64-elf is broken.
71 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
72
b4671f85
MK
732002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
74
75 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
76 generic_func_frame_valid instead of func_frame_valid.
77
c8edd8b4
JB
782002-08-16 Joel Brobecker <brobecker@gnat.com>
79
80 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
81 procfs appears to be broken when debugging on multi-processor
82 machines. So enable software single stepping in order to avoid
83 using the procfs interface to do next/step operations, using
84 internal breakpoints instead.
85
86 * infrun.c (handle_inferior_event): Readjust the stop_pc by
87 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
88 make this pc address equal to the value it would have if the
89 system stepping capability was used. Also set a new flag used
90 to ensure that we don't readjust the PC one more time later.
91
92 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
93 address by DECR_PC_AFTER_BREAK when software single step is
94 in use for this architecture, as this has already been taken
95 care of in handle_inferior_event().
96
238617f6
JB
972002-08-16 Joel Brobecker <brobecker@gnat.com>
98
99 * infrun.c (handle_inferior_event): Minor reformatting, to make
100 a rather long condition expression easier to read.
101
541a7aac
AC
1022002-08-16 Andrew Cagney <ac131313@redhat.com>
103
104 * Makefile.in (gdbtk.o): Move to end of file.
105 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
106 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
107 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
108 (gdbtk-wrapper.o, gdbres.o): Ditto.
109
f92d4a7b
AC
1102002-08-16 Andrew Cagney <ac131313@redhat.com>
111
112 * Makefile.in (copying.o): Separate out compile rule.
113 (hpux-thread.o, procfs.o, signals.o): Ditto.
114 (v850ice.o, z8k-tdep.o): Ditto.
115 (tui-file.o): Move to TUI section.
116 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
117 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
118
1cce71eb
JB
1192002-08-16 Joel Brobecker <brobecker@gnat.com>
120
121 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
122 skip_trampoline_code, for better namespace-proofing.
123
124 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
125
0851f23d
JB
1262002-08-16 Joel Brobecker <brobecker@gnat.com>
127
128 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
129
f8d40ec8
JB
1302002-08-16 Joel Brobecker <brobecker@gnat.com>
131
132 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
133 signal, check whether we hit a breakpoint before checking for a
134 single step breakpoint. Otherwise, GDB fails to notice that a
135 breakpoint has been hit when stepping onto a breakpoint.
136
63d022e0
KS
1372002-08-16 Keith Seitz <keiths@redhat.com>
138
139 * gdb-events.sh (clear_gdb_event_hooks): New function.
140 * gdb-events.c: Regenerate.
141 * gdb-events.h: Regenerate.
142
6e31adb3
AC
1432002-08-16 Andrew Cagney <ac131313@redhat.com>
144
145 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
146 not_a_sw_breakpoint.
147 * breakpoint.h (bpstat_stop_status): Add parameter names.
148
c8189ed1
GS
1492002-08-16 Grace Sainsbury <graces@redhat.com>
150
151 * remote.c (remote_insert_hw_breakpoint)
152 (remote_remove_hw_breakpoint): Fix calculation of length field
153 for Z-packet.
154
d05285fa
MS
1552002-08-15 Michael Snyder <msnyder@redhat.com>
156
466d7106
MS
157 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
158 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
159 (supply_fpregset): Ditto.
160
d05285fa
MS
161 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
162 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
163 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 164 (TARGET_READ_SP): Delete.
bf1f5b4c 165 (DO_REGISTERS_INFO): Delete.
102182a9
MS
166 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
167 Delete.
168 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
169 from macros to functions.
bf1f5b4c 170
d05285fa
MS
171 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
172 (mips_register_convertible, mips_register_convert_to_virtual,
173 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
174 (mips_read_sp): New function.
175 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
176 (mips_do_registers_info): Make static.
177 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
178 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
179 (mips_register_convert_from_type, mips_register_convert_to_type):
180 New functions.
181 (mips_gdbarch_init): Set up function_start_offset,
182 register_virtual_size, pc_in_sigtramp.
d05285fa 183
e76f1f2e
AC
1842002-08-15 Andrew Cagney <ac131313@redhat.com>
185
186 * infcmd.c (vector_info): New function.
187 (_initialize_infcmd): Add command "info vector".
188 (print_vector_info): New function.
189
190 * gdbarch.sh (PRINT_VECTOR_INFO): New method
191 * gdbarch.h, gdbarch.c: Regenerate.
192
4782dc19
AC
1932002-08-15 Andrew Cagney <ac131313@redhat.com>
194
195 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
196 ``print_all''. Only print vector registers when ``print_all''.
197
23e3a7ac
AC
1982002-08-15 Andrew Cagney <ac131313@redhat.com>
199
8e186fd6
AC
200 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
201 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
202
23e3a7ac
AC
203 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
204 Add `args' parameter.
205 * gdbarch.h, gdbarch.c: Regenerate.
206
207 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
208
209 * infcmd.c (float_info): Call print_float_info.
210 (print_float_info): New function. By default, print the
211 floating-point registers.
212
213 * arch-utils.h (default_print_float_info): Delete declaration.
214 * arch-utils.c (default_print_float_info): Delete function.
215
e0ca2bb9
MK
2162002-08-16 Mark Kettenis <kettenis@gnu.org>
217
3f733acc
MK
218 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
219 out define.
220
7d8d2918
MK
221 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
222 FRAME.
223
1c7cc583
MK
224 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
225 * configure.host: Make i[3456]86-*-aix host obsolete.
226 * configure.tgt: Make i[3456]86-*-aix target obsolete.
227 * config/i386/i386aix.mh, config/i386/i386aix.mt,
228 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
229 config/i386/xm-i386aix.h: Make files obsolete.
230 * i386aix-nat.c: Make file obsolete.
231 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
232 (i386aix-nat.o): Make target obsolete.
233
e0ca2bb9
MK
234 * config/i386/nm-gnu.h: Removed.
235 * config/i386/nm-i386gnu.h: New file.
236 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
237 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
238 Moved here from ...
239 * config/i386/tm-i386gnu.h: ... here. Removed.
240 * config/i386/xm-i386gnu.h: Removed.
241 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
242 (NAT_FILE): Set to nm-i386gnu.h.
243 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
244 * i386-tdep.c: New file.
245 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
246 (i386gnu-tdep.o): Specify dependencies.
247
16057ec7 2482002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 249
6b99ee2e
MK
250 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
251 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
252 Adjust a few comments to reflect reality a bit closer.
253 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
254 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
255 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
256 target_insert_watchpoint, target_remove_watchpoint):
257 Move defines to ...
258 * config/i386/nm-i386sco5.h: ... here.
259 (kernel_u_size): Add prototype. Improve a few comments and add
260 protection against multiple inclusion.
261
d9a6f65c
MK
262 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
263 out define.
264
047eff6a
MK
265 * uw-thread.c (SP_ARG0): Define if not already defined.
266 * config/i386/tm-i386.h (SO_ARG0): Remove define.
267
dcdb1290
MK
268 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
269
5d2d0b2a
MK
270 * config/i386/tm-i386.h: Don't include "regcache.h".
271
61113f8b
MK
272 * i387-tdep.h (i387_print_float_info): New prototype.
273 * i387-tdep.c (print_i387_value, print_i387_ext,
274 print_i387_status_word, print_i387_control_word): Add `struct
275 ui_file *' argument and use it for output.
276 (i387_print_float_info): Renamed from i387_float_info. Add
277 `struct gdbarch *' and `struct ui_file *' arguments and use the
278 latter for output.
279 * i386-tdep.c: Include "i387-tdep.h".
280 (i386_gdbarch_init): Set print_float_info.
281 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
282 (FLOAT_INFO): Remove define.
283
46e0f506
MS
2842002-08-13 Michael Snyder <msnyder@redhat.com>
285
286 * mips-tdep.c (mips_push_arguments): Rename to
287 mips_eabi_push_arguments, and tune for EABI.
288 (MIPS_REGS_HAVE_HOME_P): Delete.
289 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
290 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
291 Delete references to mips_regs_have_home_p.
292
409268de
KS
2932002-08-14 Keith Seitz <keiths@redhat.com>
294
295 * Makefile.in (install-gdbtk): Create insight plugin directory.
296 Install plugins.tcl file.
297
ffc6a242
KS
2982002-08-14 Keith Seitz <keiths@redhat.com>
299
300 * configure.in: Move SUBDIRS to near top of the file so that
301 --enable options may add things to it.
302 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
303 * configure: Regenerate.
304
ebafbe83
MS
3052002-08-13 Michael Snyder <msnyder@redhat.com>
306
307 * mips-tdep.c (mips_o32o64_push_arguments): New function,
308 cloned from mips_push_arguments, tuned for o32/o64 ABI.
309 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
310
32f6f25d
AC
3112002-08-13 Andrew Cagney <ac131313@redhat.com>
312
313 * vax-tdep.c (vax_get_saved_register): Delete function.
314 (vax_gdbarch_init): Update.
315 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
316 (ns32k_gdbarch_init): Update.
317 * alpha-tdep.c (alpha_get_saved_register): Delete function.
318 (alpha_gdbarch_init): Update.
319
53826de9
AC
3202002-08-13 Andrew Cagney <cagney@redhat.com>
321
322 * regcache.c (init_regcache_descr): Overallocate the
323 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
324 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
325 nr_raw_registers.
326 (set_register_cached): Add range checking assertions. Use
327 current_regcache.
328
16057ec7 3292002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
330
331 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
332 numbers for MMX registers.
333
7b4c2dce
AC
3342002-08-13 Andrew Cagney <cagney@redhat.com>
335
336 * i386-tdep.c (i386_gdbarch_init): Use
337 generic_unwind_get_saved_register.
338
1e03ad20
KB
3392002-08-13 Kevin Buettner <kevinb@redhat.com>
340
341 * procfs.c (procfs_can_use_hw_breakpoint): New function.
342 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
343 target vector.
344 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
345 Delete. Add comment regarding this now-deleted target method.
346
548bcbec
SC
3472002-08-13 Stephane Carrez <stcarrez@nerim.fr>
348
349 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
350 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
351 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
352 real PC and the page number (if it's within the memory bank window).
353 (m68hc11_pseudo_register_write): Likewise when saving.
354 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
355 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
356 (m68hc11_register_raw_size): And use 32-bit for it.
357 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
358 16K memory bank is used by the prog; also use the virtual pc.
359
7df11f59
SC
3602002-08-13 Stephane Carrez <stcarrez@nerim.fr>
361
362 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
363 (m68hc11_gdbarch_init): Install it in gdbarch.
364 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
365 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
366 (MSYMBOL_SIZE): New for documentation.
367 (insn_return_kind): Enum to specify how a function returns.
368 (frame_extra_info): Cleanup and record the return mode.
369 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
370 register in address computation.
371 (m68hc11_get_return_insn): New to obtain the return instruction used
372 by the function.
373 (m68hc11_frame_init_saved_regs): Take into account the return
374 instruction used by the function for far and interrupt functions.
375 (m68hc11_init_extra_frame_info): Take into account page register.
376 (m68hc11_frame_args_address): Adjust according to the return mode.
377 (show_regs): Print page register only when it's used.
378
5706502a
SC
3792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
380
381 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
382 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
383 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
384 registers.
385 (m68hc11_register_raw_size): Likewise.
386
28fc6740
AC
3872002-08-13 Andrew Cagney <cagney@redhat.com>
388
389 * i386-tdep.c (i386_register_name): Handle mmx registers.
390 (mmx_regnum_p): New function.
391 (i386_mmx_names): New array.
392 (mmx_num_regs): New variable.
393 (i386_pseudo_register_read): New function.
394 (i386_pseudo_register_write): New function.
395 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
396
397 * regcache.c (regcache_raw_read_unsigned): New function.
398 (regcache_raw_read_signed): New function.
399 * regcache.h (regcache_raw_read_unsigned): Declare.
400 (regcache_raw_read_signed): Declare.
401
a378f419
AC
4022002-08-13 Andrew Cagney <cagney@redhat.com>
403
404 * regcache.c (regcache_raw_read_as_address): Delete function.
405 (regcache_cooked_read_signed): New function.
406 (regcache_cooked_read_unsigned): New function.
407 * regcache.h (regcache_cooked_read_signed): Declare.
408 (regcache_cooked_read_unsigned): Declare.
409 (regcache_raw_read_as_address): Delete declaration.
410
411 * blockframe.c (generic_read_register_dummy): Use
412 regcache_cooked_read_unsigned.
413 * i386-tdep.c (i386_extract_struct_value_address): Use
414 regcache_cooked_read_unsigned.
415
81967506
SC
4162002-08-13 Stephane Carrez <stcarrez@nerim.fr>
417
418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
419 double sizes according to ELF ABI flags.
420 (gdbarch_tdep): Record elf_flags.
421
ffe1f3ee
SC
4222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
423
424 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
425 (m6812_prolog): They can appear in 68HC12 function prologue.
426 (m68hc11_frame_chain): Cleanup.
427
98216c5d
AC
4282002-08-12 Andrew Cagney <cagney@redhat.com>
429
430 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
431 declarations.
432 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
433 (i386_linux_register_raw_size): Delete function.
434 (i386_linux_init_abi): Update.
435 * i386-tdep.c (i386_register_raw_size): Delete function.
436 (i386_register_byte): Delete function.
437 (i386_gdbarch_init): Update.
438 (i386_register_size): Delete array.
439 (i386_register_offset): Delete array.
440
441 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
442 (REGISTER_RAW_SIZE): Delete macro.
443 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
444 (REGISTER_BYTE): Delete macro.
445
3b19021e
AS
4462002-08-11 Aidan Skinner <aidan@velvet.net>
447
448 * ada-lang.c (ada_lookup_partial_symbol)
449 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
450 prototype names so that grep ^func works properly.
451
452 * ada-lang.c (ada_array_element_type)
453 (ada_lookup_partial_symbol): Fix typos in parameter list.
454
455 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
456 Fix prototype names so that grep ^func works properly.
457
b063e7a2
AC
4582002-08-10 Andrew Cagney <cagney@redhat.com>
459 Elena Zannoni <ezannoni@redhat.com>
460 Martin M. Hunt <hunt@redhat.com>
461
462 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
463 (build_builtin_type_vec128i): Set the vector bit.
464 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
465 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
466 (build_builtin_type_vec64): New function.
467 (build_builtin_type_vec64i): New function.
468 (build_gdbtypes): Initialize builtin_type_vec64 and
469 builtin_type_vec64i.
470
a7e3c2ad
AC
4712002-08-09 Andrew Cagney <cagney@redhat.com>
472
473 * regcache.c (regcache_dump): Compare the register offset
474 with REGISTER_BYTE.
475 * arch-utils.c (generic_register_byte): New function.
476 * arch-utils.h (generic_register_byte): Declare.
477 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
478 * gdbarch.h, gdbarch.c: Regenerate.
479
af030b9a
AC
4802002-08-09 Andrew Cagney <cagney@redhat.com>
481
482 * regcache.c: Include "gdbcmd.h"
483 (_initialize_regcache): Add commands "maintenance print
484 registers", "maintenance print raw-registers" and "maintenance
485 print cooked-registers".
486 (enum regcache_dump_what): Define.
487 (dump_endian_bytes): New function.
488 (regcache_dump): New function.
489 (regcache_print): New function.
490 (maintenance_print_registers): New function.
491 (maintenance_print_raw_registers): New function.
492 (maintenance_print_cooked_registers): New function.
493 * Makefile.in (regcache.o): Update dependencies.
494
cb3d25d1
MS
4952002-08-09 Michael Snyder <msnyder@redhat.com>
496
497 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
498 (mips_push_arguments): Correct some comments. Use paddr_nz
499 for printing addresses in debug output. Replace static
500 allocation using MAX_REGISTER_RAW_SIZE with alloca.
501 (mips_n32n64_push_arguments): New function, cloned from
502 mips_push_arguments and tuned for the n32/n64 ABI.
503 (mips_push_register): Buffer needs dynamic allocation.
504 (mips_print_register): Ditto.
505 (do_gp_register_row): Ditto.
506 (mips_store_return_value): Ditto.
507 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
508
2163ab9d
DH
5092002-08-09 Don Howard <dhoward@redhat.com>
510
511 * memattr.c (mem_info_command): Print special case of upper bound
512 as max CORE_ADDR + 1.
513
b78bcb18
MS
5142002-08-08 Michael Snyder <msnyder@redhat.com>
515
516 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
517 returns structs by ref if they're too big to fit in two registers.
518
ffabd70d
KB
5192002-08-09 Kevin Buettner <kevinb@redhat.com>
520
521 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
522 saved regs value.
523 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
524 mips_find_saved_regs().
525 (mips_pop_frame): Likewise.
526
fbcdb4a3
KB
5272002-08-09 Kevin Buettner <kevinb@redhat.com>
528
529 * blockframe.c (frame_saved_regs_register_unwind): Revise
530 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
531 frames are in use.
532
3c3bea1c
GS
5332002-08-09 Grace Sainsbury <graces@redhat.com>
534
535 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
536 T-packets; the 'a' is not taken as a register number.
537 (remote_check_watch_resources, remote_stopped_by_watchpoint)
538 (remote_stopped_data_address): New functions; add to target
539 vector.
540 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
541 prototypes to match other implementations of this
542 function. replace integer argument with pointer -- the length
543 field in the Z-packet is the length of what is pointed to or 1 if
544 pointer is null. Add to target vector.
545 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
546 target vector.
547
548 From Mark Salter:
549 * remote.c (remote_wait): Add support to extract optional
550 watchpoint information from T-packet. Ignore unrecognized
551 optional info in T-packet.
552 (remote_async_wait): Ditto.
553
5d1d95de
CV
5542002-08-09 Corinna Vinschen <vinschen@redhat.com>
555
556 * cli/cli-dump.c: Change fopen modes to use binary open modes
557 as defined in include/fopen-bin.h throughout.
558
c86b5b38
MS
5592002-08-08 Michael Snyder <msnyder@redhat.com>
560
561 * mips-tdep.c: Minor whitespace and indentation clean-ups.
562
b30590dc
KB
5632002-08-08 Kevin Buettner <kevinb@redhat.com>
564
565 * doublest.c (store_floating): Avoid floatformat_from_doublest()
566 assertion failure by returning early after a warning.
567
498868ed
KB
5682002-08-08 Kevin Buettner <kevinb@redhat.com>
569
570 * mips-tdep.c (mips_find_saved_regs): Make static.
571 (mips_frame_init_saved_regs): New function.
572 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
573 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
574 (mips_find_saved_regs): Delete declaration.
575
b2dd6311
GS
5762002-08-08 Grace Sainsbury <graces@redhat.com>
577
3c3bea1c
GS
578 * remote.c (remote_wait, remote_async_wait): Change
579 thread_num from int to ULONGEST.
580 (unpack_varlen_hex): Change result parameter from
581 int * to ULONGEST *.
b2dd6311 582
ea47855f
AC
5832002-08-08 Andrew Cagney <ac131313@redhat.com>
584
585 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
586 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
587 powerpc*-*-*.
588 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
589
69db8bae
AC
5902002-08-08 Andrew Cagney <cagney@redhat.com>
591
592 * gcore.c (override_derive_stack_segment): Delete variable.
593 (preempt_derive_stack_segment): Delete function.
594 (derive_stack_segment): Delete function.
595 (default_derive_stack_segment): Renamed to derive_stack_segment.
596 (override_derive_heap_segment): Delete variable.
597 (preempt_derive_heap_segment): Delete function.
598 (derive_heap_segment): Delete function.
599 (default_derive_heap_segment): Rename to derive_heap_segment.
600
cb811fe7
MS
6012002-08-06 Michael Snyder <msnyder@redhat.com>
602
603 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
604 * mips-tdep.c (mips_EABI_use_struct_convention,
605 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
606 New functions. (mips_use_struct_convention): Delete.
607 (mips_gdbarch_init): set use_gdbarch_convention.
608
8b389c40
MS
6092002-08-06 Michael Snyder <msnyder@redhat.com>
610
611 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
612 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
613 mips_o32_reg_struct_has_addr): New functions.
614 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
615
5c27f28a
AC
6162002-08-07 Andrew Cagney <ac131313@redhat.com>
617
618 * regcache.c (pseudo_register): Delete function.
619 (fetch_register): Delete function.
620 (store_register): Delete function.
621 (regcache_raw_read, legacy_read_register_gen): Use
622 target_fetch_registers instead of fetch_register.
623 (legacy_write_register_gen, regcache_raw_write): Use
624 target_store_register instead of store_register.
625 (write_register_bytes): Ditto.
626
627 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
628 (STORE_PSEUDO_REGISTER): Delete.
629 * gdbarch.h, gdbarch.c: Regenerate.
630
5b331675
CV
6312002-08-06 Corinna Vinschen <vinschen@redhat.com>
632
633 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
634 write dump file binary.
635
6acdf5c7
MS
6362002-08-05 Michael Snyder <msnyder@redhat.com>
637
638 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
639 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
640 (mips_gdbarch_init): Set N32 target to be mips64.
641
b2f01c35
KB
6422002-08-06 Kevin Buettner <kevinb@redhat.com>
643
644 * frame.c (find_saved_register): Break out of loop once saved
645 register address is found. Don't mention sparc in loop comment
646 anymore.
647
63db5580
KB
6482002-08-06 Kevin Buettner <kevinb@redhat.com>
649
650 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
651 mips_default_saved_regsize to 8.
652
5e34e75e
AC
6532002-08-06 Andrew Cagney <ac131313@redhat.com>
654
655 * gcore.c: Do not include <sys/procfs.h>.
656 * Makefile.in (gcore.o): Update dependencies.
657
eb4c54a2
AC
6582002-08-06 Andrew Cagney <cagney@redhat.com>
659
660 * configure.tgt: Make arc-*-* obsolete.
661 * NEWS: Mention that arc-*-* has been identifed as obsolete.
662 * MAINTAINERS: Make arc-elf obsolete.
663 * arc-tdep.c: Make file obsolete.
664 * config/arc/arc.mt: Ditto.
665 * config/arc/tm-arc.h: Ditto.
666
ced15480
TR
6672002-08-05 Theodore A. Roth <troth@verinet.com>
668
c1bab85b 669 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 670
b4743822
AC
6712002-08-05 Andrew Cagney <ac131313@redhat.com>
672
673 * mcore-tdep.c (mcore_gdbarch_init): Use
674 generic_unwind_get_saved_register instead of
675 generic_get_saved_register.
676 * v850-tdep.c (v850_gdbarch_init): Ditto.
677 * frv-tdep.c (frv_gdbarch_init): Ditto.
678 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
679 * s390-tdep.c (s390_gdbarch_init): Ditto.
680 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
681 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
682 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
683
3956d554
JB
6842002-08-05 Joel Brobecker <brobecker@gnat.com>
685
686 * objfiles.h: Add missing #include "symfile.h"
687
688 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
689
8249c0d6
AC
6902002-08-04 Andrew Cagney <ac131313@redhat.com>
691
692 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
693 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
694 of FIELD_BITSIZE.
695
b9d14705
DJ
6962002-08-04 Daniel Jacobowitz <drow@mvista.com>
697
698 * NEWS: Cleanup and nitpick.
699
dd73b9bb
AC
7002002-08-03 Andrew Cagney <ac131313@redhat.com>
701
702 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
703
043a27f8
AC
7042002-08-03 Andrew Cagney <ac131313@redhat.com>
705
706 * Makefile.in (gdbtk-bp.o): Update dependencies.
707 (gdbtk-register.o): Ditto.
708 (gdbtk-varobj.o): Ditto.
709
46ce284d
AC
7102002-08-03 Andrew Cagney <cagney@redhat.com>
711
712 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
713 m68hc11_fetch_pseudo_register.
714 (m68hc11_pseudo_register_write): Replace
715 m68hc11_store_pseudo_register.
716 (m68hc11_gdbarch_init): Update.
717
b66d6d2e
AC
718Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
719
720 * gdbarch.sh: Include "gdb_string.h".
721 * gdbarch.c: Regenerate.
722
723 * regcache.c: Include "gdb_string.h".
724 * ax-general.c: Ditto.
725 * varobj.c: Ditto.
726 * std-regs.c: Ditto.
727 * fbsd-proc.c: Ditto.
728 * thread.c: Ditto.
729
730 * Makefile.in (regcache.o): Update dependencies.
731 (thread.o, gdbarch.o): Ditto.
732 (ax-general.o, gdbarch.o): Ditto.
733 (varobj.o, std-regs.o): Ditto.
734 (fbsd-proc.o): Specify dependencies.
735
29e1842b
AC
7362002-08-02 Andrew Cagney <cagney@redhat.com>
737
738 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
739 regnum.
740 (regcache_cooked_write): Ditto.
741
68365089
AC
7422002-08-02 Andrew Cagney <ac131313@redhat.com>
743
744 * regcache.c (regcache_cooked_read): New function.
745 (regcache_cooked_write): New function.
746 (read_register_gen): Rewrite using regcache_cooked_read.
747 (write_register_gen): Rewrite using regcache_cooked_write.
748
749 * regcache.h (regcache_cooked_read, regcache_cooked_write):
750 Declare.
751
d8124050
AC
7522002-08-02 Andrew Cagney <cagney@redhat.com>
753
754 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
755 Replace the architecture methods register_read and register_write.
756 * gdbarch.h, gdbarch.c: Regenerate.
757 * regcache.c (init_regcache_descr): Update.
758 (read_register_gen): Update.
759 (write_register_gen): Update.
760 (supply_register): Update comment.
761
762 * sh-tdep.c (sh_gdbarch_init): Update.
763 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
764 `regcache' and `gdbarch' parameters. Make `buffer' a void
765 pointer. Update code.
766 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
767 `regcache' and `gdbarch' parameters. Make `buffer' a constant
768 void pointer. Update code.
769 (sh64_register_write): Delete.
770 (sh4_register_read): Delete.
771 (sh64_register_read): Delete.
772 (sh4_register_write): Delete.
773 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
774 void pointer, `to' parameter a void pointer.
775 (sh_sh64_register_convert_to_raw): Ditto.
776
a6425924
KB
7772002-08-01 Kevin Buettner <kevinb@redhat.com>
778
779 * mips-tdep.c (mips_register_virtual_type): Use architecture
780 invariant return values.
781
ff5922b5
AC
7822002-08-01 Andrew Cagney <cagney@redhat.com>
783
784 * linux-proc.c: Include "gdb_string.h".
785 * Makefile.in (linux-proc.o): Update dependency list.
786
32a6503c
KB
7872002-08-01 Kevin Buettner <kevinb@redhat.com>
788
789 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
790 comment.
791
ccaa32c7
GS
7922002-08-01 Grace Sainsbury <graces@redhat.com>
793
794 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
795 to_insert_watchpoint, to_remove_watchpoint,
796 to_stopped_by_watchpoint, to_stopped_data_address,
797 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
798 target vecctor. Define their corresponding macros so they call
799 them.
800
801 * target.c: Add default and debug versions of for
802 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
803 to_insert_watchpoint, to_remove_watchpoint,
804 to_stopped_by_watchpoint, to_stopped_data_address,
805 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
806
78fde5f8
KB
8072002-08-01 Kevin Buettner <kevinb@redhat.com>
808
809 * mips-tdep.c (mips_register_virtual_type): New function.
810 (mips_gdbarch_init): Register mips_register_virtual_type()
811 with gdbarch machinery.
812 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
813 this file instead of tm-bigmips.h.
814 (MIPS_REGSIZE): Delete this macro.
815 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
816 multiarch version in mips-tdep.c will be found.
817
db034ac5
AC
8182002-08-01 Andrew Cagney <cagney@redhat.com>
819
820 * NEWS: Menion that CHILL has been made obsolete.
821
822 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
823 * gdbserver/Makefile.in: Ditto.
824 * stabsread.c (read_range_type): Ditto.
825 * gdbtypes.h: Ditto.
826 * language.c (binop_type_check): Ditto.
827 (binop_result_type): Ditto.
828 (integral_type): Ditto.
829 (character_type): Ditto.
830 (string_type): Ditto.
831 (boolean_type): Ditto.
832 (structured_type): Ditto.
833 (lang_bool_type): Ditto.
834 (binop_type_check): Ditto.
835 * language.h (_LANG_chill): Ditto.
836 * dwarfread.c (set_cu_language): Ditto.
837 * dwarfread.c (CHILL_PRODUCER): Ditto.
838 * dwarfread.c (handle_producer): Ditto.
839 * expression.h (enum exp_opcode): Ditto.
840 * eval.c: Ditto for comments.
841 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
842 * expprint.c (print_subexp): Ditto.
843 (print_subexp): Ditto.
844 * valops.c (value_cast): Ditto.
845 (search_struct_field): Ditto.
846 * value.h (COERCE_VARYING_ARRAY): Ditto.
847 * symfile.c (init_filename_language_table): Ditto.
848 (add_psymbol_with_dem_name_to_list): Ditto.
849 * valarith.c (value_binop): Ditto.
850 (value_neg): Ditto.
851 * valops.c (value_slice): Ditto.
852 * symtab.h (union language_specific): Ditto.
853 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
854 (SYMBOL_DEMANGLED_NAME): Ditto.
855 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
856 * defs.h (enum language): Ditto.
857 * symtab.c (got_symtab): Ditto.
858 * utils.c (fprintf_symbol_filtered): Ditto.
859
860 * ch-typeprint.c: Make file obsolete.
861 * ch-valprint.c: Make file obsolete.
862 * ch-lang.h: Make file obsolete.
863 * ch-exp.c: Make file obsolete.
864 * ch-lang.c: Make file obsolete.
865
866 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
867 CHILL_LIB.
868 (TARGET_FLAGS_TO_PASS): Ditto.
869 (CHILLFLAGS): Obsolete.
870 (CHILL): Obsolete.
871 (CHILL_FOR_TARGET): Obsolete.
872 (CHILL_LIB): Obsolete.
873 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
874 ch-valprint.c.
875 (HFILES_NO_SRCDIR): Remove ch-lang.h.
876 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
877 ch-lang.o.
878 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
879 targets.
880
8aaf0b47
JB
8812002-07-31 Joel Brobecker <brobecker@gnat.com>
882
883 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
884 This does not change anything at the moment, but will be helpful
885 later when full Ada support is integrated.
886
f3a7b3a5
KB
8872002-07-31 Kevin Buettner <kevinb@redhat.com>
888
889 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
890 help message.
891
fb850278
KB
8922002-07-31 Kevin Buettner <kevinb@redhat.com>
893
894 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
895 and save it in a local variable. Use variable in later test.
896
e3bddbfa
KB
8972002-07-31 Kevin Buettner <kevinb@redhat.com>
898
899 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
900 test. (Thanks to Daniel Jacobowitz.)
901
28d169de
KB
9022002-07-31 Kevin Buettner <kevinb@redhat.com>
903
904 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
905 (mips_abi_strings): Add "n64".
906 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
907
7fe7e44e
KB
9082002-07-31 Kevin Buettner <kevinb@redhat.com>
909
910 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
911 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
912
c6caf090
KB
9132002-07-31 Kevin Buettner <kevinb@redhat.com>
914
915 * utils.c (host_pointer_to_address, address_to_host_pointer):
916 Use gdb_assert() instead of explicit call to internal_error().
917
c41669e0
KB
9182002-07-30 Kevin Buettner <kevinb@redhat.com>
919
920 * Makefile.in (rs6000-nat.o): Update dependencies.
921
922 From Nicholas Duffek:
923 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
924 (aix-thread.o): New rule.
925 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
926 * config/powerpc/aix432.mh: New file.
927
2fda4977
DJ
9282002-07-30 Daniel Jacobowitz <drow@mvista.com>
929
930 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
931 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
932 (fetch_core_registers, ppc_linux_supply_gregset)
933 (ppc_linux_supply_fpregset): New functions.
934 (ppc_linux_regset_core_fns): New.
935 (_initialize_ppc_linux_tdep): Call add_core_fns.
936 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
937 and ppc_linux_supply_gregset.
938 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
939 (supply_fpregset): Call ppc_linux_supply_fpregset.
940 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
941 corelow.o.
942 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
943
729051e6
DJ
9442002-07-30 Daniel Jacobowitz <drow@mvista.com>
945
946 * symtab.c (lookup_symbol): Demangle before lowercasing.
947
5f8a3188
AC
9482002-07-30 Andrew Cagney <ac131313@redhat.com>
949
950 * symtab.h: Replace #include "gdb_obstack.h" with opaque
951 declaration.
952 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
953 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
954 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
955 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
956 "gdb_string.h".
957 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
958 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
959 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
960 (avr-tdep.o, mon960-rom.o): Ditto.
961 (aout_stabs_gnu_h): Define.
962 (symtab_h): Remove $(gdb_obstack_h).
963
67f07146
JB
9642002-07-30 Jim Blandy <jimb@redhat.com>
965
966 Patch from David Carlton <carlton@math.stanford.edu>:
967 * gdbinit.in: Move the `dir' commands that add GDB's own source
968 directory to the search path to the end, so that the `gdb' source
969 directory will be searched first.
970
04ea0df1
AC
9712002-07-29 Andrew Cagney <ac131313@redhat.com>
972
973 * gdb_obstack.h: New file.
974 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
975 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
976 * objfiles.h: Include "gdb_obstack.h".
977 * Makefile.in (gdb_obstack_h): Define.
978 (symtab_h): Add $(gdb_obstack_h).
979 (objfiles_h): Add $(gdb_obstack_h).
980
981 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
982 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
983 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
984 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
985 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
986 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
987 * symfile.c, coffread.c, c-typeprint.c: Ditto.
988 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
989
990 * Makefile.in (bcache.o): Update dependencies.
991 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
992 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
993 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
994 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
995 (stabsread.o, symfile.o, symmisc.o): Ditto.
996 (symtab.o, typeprint.o, macroexp.o): Ditto.
997 (macrotab.o, mdebugread.o): Ditto.
998 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
999 (coff_ecoff_h, aout_aout64_h): Define.
1000 (aout_stabs_gnu_h, libaout_h): Define.
1001
d138e37a
AC
10022002-07-29 Andrew Cagney <cagney@redhat.com>
1003
1004 * regcache.c (struct regcache_descr): Rename nr_registers to
1005 nr_cooked_registers. Revise comments describing the structure
1006 member fields.
1007 (init_regcache_descr): Update.
1008 (init_legacy_regcache_descr): Update.
1009 (read_register_gen, write_register_gen): When a cooked register in
1010 the raw register range, directly access the value from the raw
1011 register cache.
1012
460e6ec3
AC
10132002-07-29 Andrew Cagney <ac131313@redhat.com>
1014
1015 * z8k-tdep.c: Do not include "obstack.h".
1016 * h8300-tdep.c, h8500-tdep.c: Ditto.
1017 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1018 * valprint.c, v850-tdep.c: Ditto.
1019 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1020 * mn10200-tdep.c: Ditto.
1021
1022 * Makefile.in (z8k-tdep.o): Update dependencies.
1023 (m68hc11-tdep.o, valprint.o): Ditto.
1024 (v850-tdep.o, d10v-tdep.o): Ditto.
1025 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1026 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1027 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1028 (sh_opc_h, gdb_sim_sh_h): Define.
1029 (elf_sh_h, elf_bfd_h): Define.
1030 (opcode_m68hc11_h): Define.
1031 (OPCODES_SRC, OPCODES_DIR): define.
1032 (OPCODES): Use $(OPCODES_DIR).
1033 (gdb_sim_d10v_h): Rename sim_d10v_h.
1034 (gdb_sim_arm_h): Rename sim_arm_h.
1035
790c9cf0
KB
10362002-07-26 Kevin Buettner <kevinb@redhat.com>
1037
1038 * utils.c (host_pointer_to_address, address_to_host_pointer):
1039 Change internal_error() message to indicate function responsible
1040 for the error.
1041
9647fa49
KB
10422002-07-26 Kevin Buettner <kevinb@redhat.com>
1043
1044 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1045 calls to local_hex_string_custom().
1046
dabbe2c0
KB
10472002-07-26 Kevin Buettner <kevinb@redhat.com>
1048
1049 * irix5-nat.c: Move IRIX shared library support from here...
1050 * solib-irix.c: ...to here. Revised substantially to work with
1051 generic solib framework.
1052
b96d0a4e
KB
1053 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1054 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1055 * mips-irix-tdep.c: New file.
1056
313fb2f6
KB
1057 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1058 (mips-irix-tdep.o, solib-irix.o): New rules.
1059 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1060 solib-irix.o.
1061 * config/mips/irix6.mt (TDEPFILES): Likewise.
1062 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1063
ab2eaf26
KB
10642002-07-26 Kevin Buettner <kevinb@redhat.com>
1065
177e4768 1066 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1067 disabled (via ``#if 0'') includes.
1068
7244546a
KB
10692002-07-26 Kevin Buettner <kevinb@redhat.com>
1070
1071 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1072 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1073 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1074 Add support for the fpscr register.
1075 * rs6000-nat.c (regmap, fetch_inferior_registers)
1076 (store_inferior_registers, fetch_core_registers): Likewise.
1077
dd7be90a
KB
10782002-07-26 Kevin Buettner <kevinb@redhat.com>
1079
1080 * rs6000-nat.c (language.h): Include.
1081 (special_regs): Delete this array.
1082 (regmap): New function.
1083 (fetch_register, store_register): Use regmap() to map gdb
1084 register numbers to ptrace register numbers. Also, use
1085 outputs from regmap() to make decisions regarding type of
1086 ptrace() call to make. In particular, don't compare against
1087 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1088 (fetch_inferior_registers, store_inferior_registers): Where
1089 possible, obtain register numbers from tdep struct. Don't
1090 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1091 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1092 (LAST_UISA_SP_REGNUM): Delete.
1093
11bf77db
KB
10942002-07-25 Kevin Buettner <kevinb@redhat.com>
1095
1096 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1097 (fetch_registers, store_register, fetch_core_registers): Don't
1098 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1099 regcache_collect() as appropriate.
1100 (find_toc_address): Format hex address with local_hex_string().
1101
06afebeb
AC
11022002-07-25 Andrew Cagney <ac131313@redhat.com>
1103
1104 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1105 bfd/elf32-frv.c.
1106
8c554d79
TT
11072002-07-24 Tom Tromey <tromey@redhat.com>
1108
1109 * jv-exp.y: Marked all strings with _().
1110 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1111 internal_error.
1112 (MethodInvocation, CastExpression, parse_number, yyerror,
1113 java_type_from_name, push_expression_name, yylex): Typo fixes.
1114
e4c242d9
DJ
11152002-07-24 Daniel Jacobowitz <drow@mvista.com>
1116
1117 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1118 (tee_file_flush, tee_file_write, tee_file_fputs)
1119 (tee_file_isatty): New.
1120 * ui-file.h (tee_file_new): Add prototype.
1121
ebf56fd3
AS
11222002-07-24 Aidan Skinner <aidan@velvet.net>
1123
1124 * ada-lang.c: Change k&r style function definitions to prototyped
1125 form.
1126 * ada-typeprint.c: Change k&r style function definitions to prototyped
1127 form.
1128 * ada-valprint.c: Change k&r style function definitions to prototyped
1129 form.
1130
7fb623f7
AC
11312002-07-24 Andrew Cagney <cagney@redhat.com>
1132
1133 * README: Remove reference to remote-bug.
1134 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1135 remote-bug.c.
1136 (m88k-nat.o): Delete rule.
1137 (m88k-tdep.o): Delete rule.
1138 (remote-bug.o): Delete rule.
1139 * MAINTAINERS: Mark as obsolete.
1140 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1141 * m88k-tdep.c: Make file obsolete.
1142 * config/m88k/m88k.mh: Ditto.
1143 * config/m88k/delta88v4.mh: Ditto.
1144 * config/m88k/delta88v4.mt: Ditto.
1145 * config/m88k/delta88.mt: Ditto.
1146 * config/m88k/delta88.mh: Ditto.
1147 * remote-bug.c: Ditto.
1148 * config/m88k/tm-delta88.h: Ditto.
1149 * config/m88k/nm-delta88v4.h: Ditto.
1150 * config/m88k/xm-delta88.h: Ditto.
1151 * config/m88k/xm-dgux.h: Ditto.
1152 * config/m88k/tm-m88k.h: Ditto.
1153 * config/m88k/nm-m88k.h: Ditto.
1154 * config/m88k/tm-delta88v4.h: Ditto.
1155 * m88k-nat.c: Ditto.
1156 * cxux-nat.c: Ditto.
1157 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1158 and m88*-*-* obsolete.
1159 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1160 m88*-*-* obsolete.
1161
37611a2b
AC
11622002-07-24 Andrew Cagney <cagney@redhat.com>
1163
1164 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1165 constant. Same for local pointer variables.
1166 (extract_signed_integer): Ditto.
1167 * defs.h (extract_unsigned_integer): Update.
1168 (extract_signed_integer): Update.
1169
18ff0538
KB
11702002-07-24 Kevin Buettner <kevinb@redhat.com>
1171
1172 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1173 * gdbserver/configure: Regenerate.
1174 * gdbserver/config.in: Regenerate.
1175
1aaa5f99
AC
11762002-07-24 Andrew Cagney <cagney@redhat.com>
1177
1178 * regcache.c (regcache_raw_write): Change buf parameter to a
1179 constant void pointer.
1180 (regcache_raw_read): Change buf parameter to a void pointer.
1181 (legacy_write_register_gen): Change myaddr parameter a constant
1182 void pointer.
1183 (supply_register): Change val parameter to a const void pointer.
1184 * regcache.h (regcache_raw_write): Update declaration.
1185 (regcache_raw_read): Update declaration.
1186 (supply_register): Update declaration.
1187
b4f5539f
TT
11882002-07-24 Tom Tromey <tromey@redhat.com>
1189
1190 * defs.h (gdb_readline_wrapper): Declare.
1191 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1192 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1193 * top.c (gdb_readline_wrapper): New function.
1194 (command_line_input): Use it.
1195
0818c12a
AC
11962002-07-24 Andrew Cagney <cagney@redhat.com>
1197
1198 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1199 regcache_read and regcache_write.
1200 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1201 * regcache.c: Update.
1202 * sh-tdep.c (sh64_push_arguments): Update comment.
1203 (sh_pseudo_register_read): Update.
1204 (sh_pseudo_register_write): Update.
1205 (sh4_register_read): Update.
1206 (sh4_register_write): Update.
1207 (sh64_pseudo_register_read): Update.
1208 (sh64_pseudo_register_write): Update.
1209 (sh64_register_read): Update.
1210 (sh64_register_write): Update.
1211 * i386-tdep.c (i386_extract_return_value): Update.
1212 (i386_extract_struct_value_address): Update.
1213 (i386_extract_return_value): Update.
1214 * blockframe.c (generic_read_register_dummy): Update.
1215 (generic_call_dummy_register_unwind): Update
1216 * infrun.c (write_inferior_status_register): Update.
1217
f7321c06
JB
12182002-07-23 Jim Blandy <jimb@redhat.com>
1219
1220 * parser-defs.h (expression_context_pc): Make this extern.
1221 (Thanks to Michael Snyder.)
1222
2037aebb
AC
12232002-07-23 Andrew Cagney <ac131313@redhat.com>
1224
1225 GDB 5.2.1 released from 5.2 branch.
1226 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1227 * README: Update to mention 5.2.1.
1228
66504d44
MS
12292002-07-23 Mark Salter <msalter@redhat.com>
1230
1231 * remote.c (remote_read_bytes): Fix check for error.
1232
27bae383
KB
12332002-07-22 Kevin Buettner <kevinb@redhat.com>
1234
1235 * aix-thread.c (language.h): Include.
1236 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1237 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1238 Print newlines at end of debug messages.
1239 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1240 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1241
12422002-07-22 Kevin Buettner <kevinb@redhat.com>
1243
1244 * aix-thread.c (ppc-tdep.h): Include.
1245 (special_register_p): New function.
1246 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1247 (store_regs_user_thread): Use register number information from
1248 gdbarch_tdep struct instead of hardcoded offsets relative to
1249 FIRST_UISA_SP_REGNUM.
1250 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1251 special_register_p() instead of using FPLAST_REGNUM and
1252 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1253 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1254 will be MQ's register number.
1255
12562002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1257
1258 * aix-thread.c (ops): Rename to aix_thread_ops.
1259 (base_ops): Rename to base_target.
1260 (ops_attach): Rename to aix_thread_attach.
1261 (ops_detach): Rename to aix_thread_detach.
1262 (ops_resume): Rename to aix_thread_detach.
1263 (ops_wait): Rename to aix_thread_wait.
1264 (ops_kill): Rename to aix_thread_kill.
1265 (init_ops): Rename to init_aix_thread_ops.
1266 (ops_fetch_register): Rename to aix_thread_fetch_register.
1267 (ops_store_register): Rename to aix_thread_store_register.
1268 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1269 (ops_thread_alive): Rename to aix_thread_thread_alive.
1270 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1271 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1272 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1273 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1274 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1275 (store_regs_lib): Rename to store_regs_user_thread.
1276 (store_regs_kern): Rename to store_regs_kernel_thread.
1277
27bae383 12782002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1279
1280 * aix-thread.c (ops_prepare_to_store): Eliminate.
1281 (init_ops): Don't initialize ops.prepare_to_store.
1282 (store_regs_kern): Pre-fetch register buffers from child,
1283 because some registers may not be in the cache. Copy
1284 regs from register cache only if they are cached.
1285 (store_regs_lib): Copy regs from register cache only
1286 if they are cached.
1287 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1288 fill_gprs64): Ditto.
1289
61c5da0b
KB
12902002-07-22 Kevin Buettner <kevinb@redhat.com>
1291
1292 * aix-thread.c (gdb_assert.h): Include.
1293 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1294 register sizes (from register cache) match size of buffer holding
1295 register data.
1296 (fill_sprs32): Change parameter types to match those in the ptrace()
1297 buffer.
1298 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1299 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1300
13012002-07-22 Michael Snyder <msnyder@redhat.com>
1302
1303 * aix-thread.c (supply_sprs64): Cosmetic change.
1304 (supply_sprs32): Cosmetic change.
1305 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1306 (fill_sprs64): Use regcache_collect instead of read_register.
1307 (store_regs_lib): Use regcache_collect instead of
1308 read_register. Use fill_sprs32 instead of fill_sprs64,
1309 if debugging a 32-bit architecture.
1310 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1311 out of the register cache, instead of passing a pointer into
1312 the register cache directly to ptrace. Use regcache_collect
1313 insteaad of read_register.
1314 (ops_prepare_to_store): Use target_read_registers instead
1315 of read_register_bytes.
1316
36479eb1
AS
13172002-07-20 Aidan Skinner <aidan@velvet.net>
1318
1319 * MAINTAINERS: Add self under write after approval.
1320
80ae6ee2
AS
13212002-07-20 Aidan Skinner <aidan@velvet.net>
1322
1323 * ada-tasks.c: Change k&r style function definitions to prototyped
1324 form.
1325
8a8ab2b9
AC
13262002-07-19 Andrew Cagney <ac131313@redhat.com>
1327
1328 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1329 * x86-64-tdep.c: Include "objfiles.h".
1330 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1331 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1332
fb16b900
ML
13332002-07-17 Michal Ludvig <michal@suse.cz>
1334
1335 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1336 (update_context): Initialise cfa variable.
1337
0fe7bf7b
MS
13382002-07-17 Michael Snyder <msnyder@redhat.com>
1339
1340 * aix-thread.c: Shorten some long lines.
1341 Bring comments into line with code spec.
1342
488f131b
JB
13432002-07-18 Joel Brobecker <brobecker@gnat.com>
1344
1345 * infrun.c: Re-indent using gdb_indent.sh.
1346
46c415d2
JB
13472002-07-18 Joel Brobecker <brobecker@gnat.com>
1348
1349 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1350 Leave the indentation temporarily untouched, to minimize the diffs.
1351
cdecafbe
EZ
13522002-07-18 Elena Zannoni <ezannoni@redhat.com>
1353
1354 * stabsread.c: Make os9k sections of the code obsolete,
1355 for real this time.
1356 * stabsread.h: Make os9k sections of the code obsolete.
1357
7b6aa020
ML
13582002-07-18 Michal Ludvig <mludvig@suse.cz>
1359
09ec9b38
ML
1360 * linux-low.c (regsets_store_inferior_registers): Add free()
1361 at the end of a loop to prevent memory leak.
1362 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1363 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1364 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1365 line a comment.
4894ac5d 1366 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1367
233282cd
JB
13682002-07-17 Jim Blandy <jimb@redhat.com>
1369
1370 * macrocmd.c (info_macro_command): Remove newline from error
1371 message.
1372
7b6aa020 13732002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1374
1375 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1376 (sh_gdbarch_init): Use it for sh-dsp.
1377
f7ef9339
KB
13782002-07-16 Kevin Buettner <kevinb@redhat.com>
1379
1380 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1381 64-bit DWARF2 format.
1382
8dd72958
JB
13832002-07-16 Joel Brobecker <brobecker@gnat.com>
1384
1385 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1386 <sys/proc.h> when not available.
1387
a99a9e1b
AC
13882002-07-16 Andrew Cagney <ac131313@redhat.com>
1389
1390 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1391 * stabsread.c: Make os9k sections of the code obsolete.
1392 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1393 * config/i386/i386os9k.mt: Make file obsolete.
1394 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1395 (COMMON_OBS): Remove os9kread.o
1396 (SFILES): Remove os9kread.c.
1397 (os9kread.o, remote-os9k.o): Make target obsolete.
1398 * remote-os9k.c: Make file obsolete.
1399 * os9kread.c: Make file obsolete.
1400 * Makefile.in
1401
7a3085c1
AC
14022002-07-16 Andrew Cagney <ac131313@redhat.com>
1403
1404 * NEWS: Mention that the FR30 has been made obsolete.
1405 * fr30-tdep.c: Make file obsolete.
1406 * config/fr30/tm-fr30.h: Ditto.
1407 * config/fr30/fr30.mt: Ditto.
1408 * configure.tgt: Make fr30-*-elf obsolete.
1409 * MAINTAINERS: Make fr30-elf obsolete.
1410
28a93f5a
PM
14112002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1412
1413 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1414 found is not inside a section.
1415
be006b8b
KB
14162002-07-15 Kevin Buettner <kevinb@redhat.com>
1417
1418 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1419 strerror().
1420 (pdc_realloc): Use xrealloc() instead of realloc().
1421
14fa3751
KB
14222002-07-15 Kevin Buettner <kevinb@redhat.com>
1423
1424 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1425 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1426 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1427 macros.
1428
42cc437f
KB
14292002-07-15 Kevin Buettner <kevinb@redhat.com>
1430
1431 * aix-thread.c (ptrace_check): Eliminate goto.
1432 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1433 problem.
1434
8e2c28d4
KB
14352002-07-15 Kevin Buettner <kevinb@redhat.com>
1436
1437 * aix-thread.c (gdbcmd.h): Include.
1438 (DEBUG, DBG, DBG2, dbg): Eliminate.
1439 (debug_aix_thread): New static global.
1440 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1441 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1442 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1443 invocations to DBG and DBG2 macros to test against
1444 ``debug_aix_thread'' and call fprintf_unfiltered().
1445 (_initialize_aix_thread): Add new command "set debug aix-thread".
1446
30413464
AC
14472002-07-15 Andrew Cagney <ac131313@redhat.com>
1448
1449 From Gerhard Tonn <TON@de.ibm.com>:
1450 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1451 instead of supply_register.
1452
7c43edc1
AC
14532002-07-15 Andrew Cagney <ac131313@redhat.com>
1454
1455 * dwarf2cfi.c: Include "gdb_assert.h".
1456 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1457 non-NULL.
1458 (update_context): Do not use __func__. Add missing ``break''.
1459 (update_context): Do not use __func__.
1460
9364a0ef
EZ
14612002-07-15 Elena Zannoni <ezannoni@redhat.com>
1462
1463 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1464 and its setting. Set gdbarch instruction printing functions
1465 directly. For non-rs6000 case use new function
1466 gdb_print_insn_powerpc.
1467 (gdb_print_insn_powerpc): New function.
1468
3fbeef0b
AC
14692002-07-13 Andrew Cagney <ac131313@redhat.com>
1470
92eb23c5 1471 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1472 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1473 * configure.tgt: Mark d30v-*-* as obsolete.
1474 * d30v-tdep.c: Mark file as obsolete.
1475 * config/d30v/d30v.mt: Ditto.
1476 * config/d30v/tm-d30v.h: Ditto.
1477
aacb1f0a
AS
14782002-07-13 Aidan Skinner <aidan@velvet.net>
1479
1480 * ada-tasks.c (add_task_entry): replace calls to
1481 malloc() with xmalloc
1482 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1483
1484 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1485 ada_finish_decode_line_1, all_sals_for_line
1486 ada_breakpoint_rewrite): replace calls to free() with xfree()
1487
c11d79f2
KB
14882002-07-12 Kevin Buettner <kevinb@redhat.com>
1489
1490 From Nicholas Duffek (with minor changes by Martin Hunt,
1491 Louis Hamilton, and Kevin Buettner):
1492 * aix-thread.c: New file.
1493
8e19ed76
PS
14942002-07-12 Petr Sorfa <petrs@caldera.com>
1495
1496 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1497 complaint for invalid attribute class or form.
1498 (read_func_scope): DW_AT_frame_base
1499 better handling of DW_AT_block*.
1500 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1501 better handling of DW_AT_block*.
1502 (read_common_block): DW_AT_location
1503 better handling of DW_AT_block*.
1504 (read_partial_die): DW_AT_location better handling
1505 of DW_AT_block*.
1506 (new_symbol): DW_AT_external better handling of
1507 DW_AT_block*. Proper initialization of variable
1508 "addr".
1509 (attr_form_is_block): New function that returns true
1510 if the attribute's form is of DW_FORM_block*.
1511
295401f7
DJ
15122002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1513
1514 * valops.c (find_method_list): Remove comment about
1515 removed STATIC_MEMFUNCP argument.
1516 (value_find_oload_method_list): Likewise.
1517
e42dc924
KB
15182002-07-12 Kevin Buettner <kevinb@redhat.com>
1519
1520 From Nicholas Duffek:
1521 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1522 target_new_objfile_hook.
1523
6904b546
KB
15242002-07-12 Kevin Buettner <kevinb@redhat.com>
1525
1526 From Nicholas Duffek:
1527 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1528 csect.
1529
53fe9346
AC
15302002-07-12 Andrew Cagney <cagney@redhat.com>
1531
1532 * MAINTAINERS: Mention --enable-sim-build-warnings.
1533 (m68hc11-elf): Disable sim build warnings.
1534 (m32r-elf): Mark as broken obsolete candidate.
1535 (x86_64-linux-gnu): Mark as buildable with -Werror.
1536 (arm-elf): Change -w to ``,'' which enables warnings but not
1537 -Werror.
1538
af5f3db6
AC
15392002-07-12 Andrew Cagney <ac131313@redhat.com>
1540
1541 * bcache.h: Update copyright.
1542 (struct bstring, struct bcache): Move definition to "bcache.c".
1543 Replaced by opaque declaration.
1544 (bcache_xfree): Replace free_bcache.
1545 (bcache_xmalloc, bcache_memory_used): Declare.
1546
1547 * bcache.c: Update copyright.
1548 (struct bstring, struct bcache): Moved to here from "bcache.h".
1549 Update comments.
1550 (bcache_xmalloc, bcache_memory_used): New functions.
1551 (bcache_xfree): Replace function free_bcache.
1552
1553 * Makefile.in (objfiles.o): Add $(bcache_h).
1554 (objfiles_h): Remove $(bcache_h).
1555 (symfile.o): Add $(bcache_h).
1556
1557 * symmisc.c: Update copyright.
1558 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1559 (print_objfile_statistics): Use bcache_memory_used.
1560
1561 * symfile.c: Include "bcache.h".
1562 (reread_symbols): Use bcache_xfree.
1563 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1564 (add_psymbol_to_list): Pass psymbol_cache by value.
1565 (add_psymbol_with_dem_name_to_list): Ditto.
1566
1567 * objfiles.h: Update copyright.
1568 (struct bcache): Declare opaque. Do not include "bcache.h".
1569 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1570 bcache'' pointers.
1571 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1572
1573 * objfiles.c: Include "bcache.h". Update copyright.
1574 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1575 macro_cache.
1576 (free_objfile): Use bcache_xfree.
1577
444199e7
GS
15782002-07-11 Grace Sainsbury <graces@redhat.com>
1579
1580 * monitor.c (monitor_fetch_register): Make name a constant.
1581 (monitor_store_register): Same.
1582
261397f8
DJ
15832002-07-11 Daniel Jacobowitz <drow@mvista.com>
1584
1585 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1586 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1587 (finish_block) For non-function blocks, hash the symbol table. For
1588 function blocks, mark the symbol table as unhashed.
1589 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1590 (msymbol_hash_iw): Likewise.
1591 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1592 value.
1593 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1594 (lookup_minimal_symbol): Likewise for both.
1595 * symtab.h (struct block): Add `hashtable' flag. Comment the
1596 hashtable.
1597 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1598 (ALL_BLOCK_SYMBOLS): Update.
1599 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1600 (struct symbol): Add `hash_next' pointer.
1601 * symtab.c (lookup_block_symbol): Search using the hash table when
1602 possible.
1603 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1604 (search_symbols, find_addr_symbol): Likewise.
1605
1606 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1607 (read_dst_symtab): Likewise.
1608 * jv-lang.c (get_java_class_symtab): Likewise.
1609 * mdebugread.c: Include "gdb_assert.h".
1610 (shrink_block): Assert that the block being modified is not hashed.
1611 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1612 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1613 symbols.
1614 (dump_symtab): Recognize hashed blocks.
1615 * printcmd.c (print_frame_args): Assert that function blocks do not
1616 have hashed symbol tables.
1617 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1618 (fill_in_ada_prototype, debug_print_block): Likewise.
1619 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1620
6f0eaa01
CV
16212002-07-11 Corinna Vinschen <vinschen@redhat.com>
1622
1623 * stack.c (print_frame): Use result of frame_address_in_block()
1624 instead of fi->pc when evaluating symbols.
1625 (backtrace_command_1): Ditto.
1626
a208b0cb
AC
16272002-07-11 Andrew Cagney <cagney@redhat.com>
1628
1629 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1630 Make static.
1631
1632 * arm-tdep.c (arm_register_name): Make return type constant.
1633
a6b6b089
AC
16342002-07-10 Andrew Cagney <ac131313@redhat.com>
1635
5ae5f592
AC
1636 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1637 prototype.
1638 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1639 * s390-tdep.c (s390_fp_regnum): Ditto.
1640 (s390_read_fp): Ditto.
1641 (s390_pop_frame): Ditto.
1642 (_initialize_s390_tdep): Ditto.
1643 * remote.c (get_remote_state): Ditto.
1644 * procfs.c (mappingflags): Ditto.
1645 * memattr.c (_initialize_mem): Ditto.
1646 * mcore-tdep.c (mcore_pop_frame): Ditto.
1647 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1648 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1649 * language.c (set_case_str): Ditto.
1650 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1651 * frv-tdep.c (new_variant): Ditto.
1652 (frv_stopped_data_address): Ditto.
1653 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1654 (context_alloc): Ditto.
1655 (frame_state_alloc): Ditto.
1656 (unwind_tmp_obstack_init): Ditto.
1657 (unwind_tmp_obstack_free): Ditto.
1658 (cfi_read_fp): Ditto.
1659 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1660 (cris_pop_frame): Ditto.
1661 * c-lang.c (scanning_macro_expansion): Ditto.
1662 (finished_macro_expansion): Ditto.
1663 (c_preprocess_and_parse): Ditto.
1664 * gdbarch.sh: Ditto.
1665 * gdbarch.h, gdbarch.c: Regenerate.
1666 * config/mn10200/tm-mn10200.h: Adjust indentation.
1667 * target.c: Adjust indentation.
1668 * symtab.h: Adjust indentation.
1669 * stabsread.h: Adjust indentation.
1670 * remote-es.c: Adjust indentation.
1671 * os9kread.c: Adjust indentation.
1672
16732002-07-10 Andrew Cagney <ac131313@redhat.com>
1674
a6b6b089
AC
1675 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1676 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1677
a1789893
GS
16782002-07-10 Grace Sainsbury <graces@redhat.com>
1679
1680 * NEWS: Mention m68k, mcore multi-arching.
1681 * MAINTAINERS: Change status of m68k, mcore to reflect
1682 multi-arching.
1683
02f0d45d
DJ
16842002-07-10 Daniel Jacobowitz <drow@mvista.com>
1685
1686 * valops.c (find_overload_match): Free oload_syms.
1687
f15f768e
JB
16882002-07-09 Joel Brobecker <brobecker@gnat.com>
1689
1690 Define HAVE_SYS_PROC_H if sys/proc.h exists
1691 * configure.in: Add check for sys/proc.h
1692 * config.in: Regenerate.
1693 * configure: Regenerate.
1694
902a7139
GS
16952002-07-09 Grace Sainsbury <graces@redhat.com>
1696
1697 * config/m68k/tm-m68k.h: Remove macros wrapped in
1698 #if !GDB_MULTI_ARCH.
1699
82e0fd98
DB
17002002-07-09 David O'Brien <obrien@FreeBSD.org>
1701
1702 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1703 (perror_with_name, remote_close, remote_open, expect, play): Static.
1704
a534e424
AC
17052002-07-08 Andrew Cagney <ac131313@redhat.com>
1706
1707 * config.in, configure: Regenerate.
1708
9b94f7bf
MK
17092002-07-08 Mark Kettenis <kettenis@gnu.org>
1710
1711 * dwarf2cfi.c: Include "gcore.h".
1712 (execute_stack_op): Fix implementation of the
1713 DW_OP_deref and DW_OP_deref_size operators by letting do their
1714 lookup in the target.
1715
1d34db41
MK
17162002-07-07 Mark Kettenis <kettenis@gnu.org>
1717
1718 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1719 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1720 tdep->sc_sp_offset.
1721
79d5b63a
DJ
17222002-07-05 Daniel Jacobowitz <drow@mvista.com>
1723
1724 Fix PR gdb/595, gdb/602
1725 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1726 Don't call value_cast, just read the vtable pointer; update comments
1727 to match.
1728
3bb912e8
GS
17292002-07-05 Grace Sainsbury <graces@redhat.com>
1730
1731 * config/mcore/tm-mcore.h: Remove file.
1732 * config/mcore/mcore.mt: Remove definition of TM_FILE
1733 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1734
ca39387d
MK
17352002-07-05 Mark Kettenis <kettenis@gnu.org>
1736
1737 * i386bsd-tdep.c: Include "gdb_string.h".
1738
efdc1108
GS
17392002-07-04 Grace Sainsbury <graces@redhat.com>
1740
1741 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1742 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1743 mcore-tdep.
1744 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1745 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1746 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1747 (RETVAL_REGNUM): Move macros from tm-mcore.h
1748 (mcore_reg_struct_has_addr): New function.
1749 (mcore_gdbarch_init): Added initializations for the macros removed
1750 from tm-mcore.h.
1751
bb21884d
MK
17522002-07-04 Mark Kettenis <kettenis@gnu.org>
1753
1754 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1755 traditonal string branding within the ELF header.
1756
228c6d41
DJ
17572002-07-04 Daniel Jacobowitz <drow@mvista.com>
1758
1759 * symtab.c (remove_params): New function.
1760 (make_symbol_overload_list): Use it instead of cplus_demangle.
1761 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1762
2404952e
MK
17632002-07-04 Mark Kettenis <kettenis@gnu.org>
1764
e5e4acad
MK
1765 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1766
baadce09
MK
1767 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1768 New variables.
1769 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1770 and tdep->sigtramp_end.
1771 * i386obsd-nat.c: New file.
1772 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1773
2404952e
MK
1774 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1775 Don't call get_current_frame().
1776
9b4f1ba7
PM
17772002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1778
1779 * i386-nat.c (child_post_startup_inferior): New function
1780 calling i386_cleanup_dregs if
1781 I386_USE_GENERIC_WATCHPOINTS is defined.
1782 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1783 conditional to acknowledge that i386-nat.c has its
1784 own child_post_startup_inferior function.
1785
c0d1d883
MK
17862002-07-04 Mark Kettenis <kettenis@gnu.org>
1787
00f8375e
MK
1788 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1789 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1790 instead of MAX_REGISTER_RAW_SIZE.
1791 (i386_extract_return_value, i386_extract_struct_value_address):
1792 Convert to use regcache.
1793 (i386_gdbarch_init): Set max_register_raw_size and
1794 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1795 Set extract_return_value and extract_struct_value_address instead
1796 of their deprecated variants.
1797
c0d1d883
MK
1798 Convert i386 target to generic dummy frames.
1799 * i386-tdep.c: Include "symfile.h".
1800 (i386_frameless_signal_p): Consider a function to be frameless if
1801 the pc points at the first instruction of the function.
1802 (i386_frame_chain): Handle (generic) call dummies.
1803 (i386_frame_saved_pc): Likewise.
1804 (i386_frame_init_saved_regs): Remove code dealing with call
1805 dummies on the stack.
1806 (i386_push_dummy_frame): Removed.
1807 (i386_call_dummy_words): Removed.
1808 (i386_fix_call_dummy): Removed.
1809 (i386_push_return_address): New function.
1810 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1811 parameter, and don't call get_current_frame.
1812 (i386_pop_frame): New function.
1813 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1814 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1815 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1816 call_dummy_length to 0, set call_dummy_words to NULL, set
1817 sizeof_call_dummy_words to 0, set fix_call_dummy to
1818 generic_fix_call_dummy, set pc_in_call_dummy to
1819 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1820 generic_push_dummy_frame, set push_return_address to
1821 i386_push_return_address and set frame_chain_valid to
1822 generic_file_frame_chain_valid.
1823
638c1580
ML
18242002-07-04 Michal Ludvig <mludvig@suse.cz>
1825
1826 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1827 byte offsets instead of an array of indexes.
1828 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1829
049ee0e4
AC
18302002-07-03 Andrew Cagney <ac131313@redhat.com>
1831
1832 * gdbarch.sh (struct regcache): Add opaque declaration.
1833 (EXTRACT_RETURN_VALUE): New architecture method.
1834 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1835 * gdbarch.h, gdbarch.c: Regenerate.
1836 * arch-utils.c (legacy_extract_return_value): New function.
1837 * arch-utils.h (legacy_extract_return_value): Declare.
1838 * values.c (value_being_returned): Re-enable code handling
1839 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1840 deprecated_grub_regcache_for_registers call to block handling
1841 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1842 (EXTRACT_RETURN_VALUE): Do not define.
1843
4e0d9804
GS
18442002-07-03 Grace Sainsbury <graces@redhat.com>
1845
1846 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1847 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1848 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1849 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1850 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1851 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1852 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1853 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1854 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1855 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1856 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1857 argument so the function fits the prototype in the architecture
1858 vector.
1859 (mcore_pop_frame): Remove argument so the function fits the
1860 prototype. Use get_current_frame instead of the argument.
1861 (mcore_push_arguments): Change type of struct_return so the
1862 function can be used in the architecture vector.
1863 (mcore_store_struct_return): Add.
1864 (mcore_frame_init_saved_regs): Add.
1865 (mcore_gdbarch_init): Add function calls to replace the macros
1866 removed from tm-mcore.h
1867
36160dc4
AC
18682002-07-03 Andrew Cagney <ac131313@redhat.com>
1869
1870 * infcmd.c (print_return_value): Remove compatibility code calling
1871 deprecated_grub_regcache_for_registers.
1872
1873 * values.c: Include "regcache.h".
1874 (value_being_returned): Update. Use
1875 deprecated_grub_regcache_for_registers to extract the register
1876 buffer address.
1877 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1878 ``struct regcache''.
1879 * Makefile.in (values.o): Add dependency on $(regcache_h).
1880
1881 * inferior.h (run_stack_dummy): Change type of second parameter to
1882 a ``struct regcache''.
1883 * valops.c (hand_function_call): Change type of retbuf to ``struct
1884 regcache''. Allocate using regcache_xmalloc, clean using
1885 make_cleanup_regcache_xfree.
1886 * infcmd.c (run_stack_dummy): Update. Use
1887 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1888
1889 * regcache.c (do_regcache_xfree): New function.
1890 (make_cleanup_regcache_xfree): New function.
1891 * regcache.h (make_cleanup_regcache_xfree): Declare.
1892
e64d9b3d
MH
18932002-07-03 Martin M. Hunt <hunt@redhat.com>
1894
4dd79c29
MH
1895 * event-top.c (command_line_handler): Don't read past
1896 beginning of buffer.
e64d9b3d 1897
4dd79c29
MH
18982002-07-03 Martin M. Hunt <hunt@redhat.com>
1899
e64d9b3d
MH
1900 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1901 struct frame_id.
1902 (varobj_create): Store frame_id for root.
1903 (varobj_gen_name): Use xasprintf.
1904 (varobj_update): Save and restore frame using get_frame_id() and
1905 frame_find_by_id().
1906 (create_child): Use xasprintf.
1907 (new_root_variable): Initialize frame_id.
1908 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1909 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1910 to prevent memory leak.
1911
26e6c56a
AC
19122002-07-03 Andrew Cagney <ac131313@redhat.com>
1913
1914 * valops.c (hand_function_call): Move declaration of retbuf to
1915 start of function, allocate using malloc, add a cleanup but before
1916 the inf_status cleanup, cleanup the buffer. Rename local variable
1917 old_chain to inf_status_cleanup.
1918
f436dd25
MH
19192002-07-03 Martin M. Hunt <hunt@redhat.com>
1920
1921 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1922
1923 * cli/cli-decode.c (cmd_func_p): New function.
1924 (cmd_func): New function.
1925
1926 * command.h: Add cmd_func() and cmd_func_p().
1927
4cfe2084
GS
19282002-07-03 Grace Sainsbury <graces@redhat.com>
1929
1930 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1931 (REGISTER_SIZE): Remove.
1932 (MAX_REGISTER_RAW_SIZE): Remove.
1933 (REGISTER_VIRTUAL_TYPE): Remove.
1934 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1935 (REGISTER_NAME): Remove.
1936 (USE_GENERIC_DUMMY_FRAMES): Remove.
1937 (CALL_DUMMY): Remove.
1938 (CALL_DUMMY_START_OFFSET): Remove.
1939 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1940 (CALL_DUMMY_LOCATION): Remove.
1941 (FIX_CALL_DUMMY): Remove.
1942 (CALL_DUMMY_ADDRESS): Remove.
1943 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1944 (SAVE_DUMMY_FRAME_TOS): Remove.
1945 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1946 (mcore_register_virtual_type): New function.
1947 (mcore_register_byte): New function.
1948 (mcore_register_size): New function.
1949 (mcore_register_name): New function.
1950 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1951 macros removed from tm-mcore.h.
1952 (mcore_dump_tdep): Add.
1953 (_initialize_mcore_tdep): Add gdbarch_register call.
1954
4fd667e9
MK
19552002-07-03 Mark Kettenis <kettenis@gnu.org>
1956
1957 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1958 frameless_look_for_prologue, such that we actually call this
1959 function.
1960
42f99ac2
JB
19612002-07-02 Joel Brobecker <brobecker@gnat.com>
1962
1963 * frame.h (frame_address_in_block): New function.
1964
1965 * blockframe.c (frame_address_in_block): New function extracted
1966 from get_frame_block().
1967 (get_frame_block): Use frame_address_in_block().
1968 (block_innermost_frame): Use frame_address_in_block() to match
1969 the frame pc address against the block boundaries rather than
1970 the frame pc directly. This prevents a failure when a frame pc
1971 is actually a return-address pointing immediately after the end
1972 of the given block.
1973
103a1597 19742002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
1975
1976 * MAINTAINERS: Add self under write after approval.
1977
19782002-07-02 Grace Sainsbury <graces@redhat.com>
1979
103a1597
GS
1980 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1981 used in architecture vector. The default is
1982 m68k_local_breakpoint_from_pc.
1983 (m68k_local_breakpoint_from_pc): Add.
1984 (enum): Add register numbers from tm-m68k.h.
1985 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1986 vector.
1987 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1988 GDB_MULTI_ARCH_PARTIAL.
1989 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1990 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1991 m68k-tdep.c.
1992 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1993 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1994 to enum in m68k-tdep.c
1995
7a5a0534
JB
19962002-07-02 Joel Brobecker <brobecker@gnat.com>
1997
1998 * solib-osf.c (open_map): Compute the list of shared libraries
1999 loaded by the inferior, rather than the list of libraries loaded
2000 by GDB itself. Otherwise, GDB ends up reading the symbols from
2001 the wrong shared libraries...
2002
6f558d74
MK
20032002-07-02 Mark Kettenis <kettenis@gnu.org>
2004
b7d15bf7
MK
2005 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2006 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2007 macros.
2008 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2009 Remove functions.
2010 (FRAMELESS_SIGNAL): Remove function.
2011 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2012 i386_linux_saved_pc_after_call): Removed.
2013 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2014 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2015 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2016
6bff26de
MK
2017 * i386-tdep.c (i386_frameless_signal_p): New function.
2018 (i386_frame_chain): Deal with frameless signals.
2019 (i386_sigtramp_saved_sp): New function.
2020 (i386_frame_saved_pc): Deal with frameless signals.
2021 (i386_saved_pc_after_call): Make sure the correct value is
2022 returned just after entry into a sigtramp.
2023 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2024 i386fbsd4_sc_sp_offset): New variables.
2025 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2026 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2027 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2028 similiar to what we already did for sc_pc_offset.
2029 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2030 tdep->sc_sp_offset.
2031
6f558d74
MK
2032 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2033
145564b7
ML
20342002-07-02 Michal Ludvig <mludvig@suse.cz>
2035
2036 * config/i386/tm-x86-64linux.h: New.
2037 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2038 definitions.
2039 * config/i386/nm-x86-64.h: Rename to ...
2040 * config/i386/nm-x86-64linux.h: ... this one.
2041 * config/i386/x86-64linux.mh: Reflect the above change.
2042
3a1e71e3
MK
20432002-07-01 Mark Kettenis <kettenis@gnu.org>
2044
21d0e8a4
MK
2045 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2046 with sigcontext_addr. Add sc_sp_offset.
2047 (i386bsd_sigtramp_saved_pc): Remove prototype.
2048 (i386bsd_sicontext_addr): Add prototype.
2049 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2050 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2051 (i386_svr4_sigtramp_saved_pc): Removed.
2052 (i386_svr4_sigcontext_addr): New function.
2053 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2054 Initialize tdep->sigcontext_addr instead. Initialize
2055 tdep->sc_pc_offset and tdep->sc_sp_offset.
2056 (i386_gdbarch_init): Likewise.
2057 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2058 any more.
2059 (i386bsd_sigtramp_saved_pc): Remove function.
2060 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2061 Initialize tdep->sigcontext_addr instead. Initialize
2062 tdep->sc_pc_offset.
2063 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2064 of tdep->sigtramp_saved_pc.
2065 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2066 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2067 instead.
2068
3a1e71e3
MK
2069 * i386-tdep.c (i386_frameless_function_invocation,
2070 i386_frame_num_args, i386_frame_init_saved_regs,
2071 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2072 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2073 i386_extract_return_value, i386_store_return_value,
2074 i386_extract_struct_value_address, i386_register_virtual_type,
2075 i386_register_convertible, i386_register_convert_to_virtual,
2076 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2077 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2078 static.
2079
52e9098c
MK
20802002-07-01 Mark Kettenis <kettenis@gnu.org>
2081
77b13a25
MK
2082 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2083
52e9098c
MK
2084 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2085 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2086 this macro. Include "value.h".
2087
1b372fff
AS
20882002-06-30 Aidan Skinner <aidan@velvet.net>
2089
2090 * ada-exp.tab.c: remove as it's a generated file
2091 * ada-lex.c: remove as it's a generated file
2092
9c5045b5
MK
20932002-06-30 Mark Kettenis <kettenis@gnu.org>
2094
4a93c5bb
MK
2095 * config/i386/tm-i386.h (struct frame_info, struct
2096 frame_saved_regs, struct value, struct type): Remove forward
2097 declarations.
2098
322d4fe0
MK
2099 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2100 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2101 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2102 (FILL_FPXREGSET): Define.
2103
fdd8263d
MK
2104 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2105
482e577b
MK
2106 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2107 i[3456]86-*-netbsd* case.
2108 * config/i386/tm-obsd.h: Removed.
2109 * config/i386/obsd.mt: Removed.
2110 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2111 core-aout.o.
2112 (MH_CFLAGS): Add -DYYDEBUG=0.
2113
6916549a
MK
2114 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2115 i386nbsd_sc_pc_offset on OpenBSD too.
2116
9c5045b5
MK
2117 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2118 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2119 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2120 define.
2121 * i386bsd-tdep.c: Include "arch-utils.h".
2122 (i386bsd_aout_in_solib_call_trampoline): New function.
2123 (i386bsd_init_abi): Set in_solib_call_trampoline to
2124 i386bsd_aout_in_solib_call_trampoline.
2125 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2126 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2127
aa84d1bb
AC
21282002-06-28 Andrew Cagney <ac131313@redhat.com>
2129
2130 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2131 (struct obstack, struct bcache): Add opaque declarations.
2132 * Makefile.in (macrotab_h): Update
2133
b4d83933
AC
21342002-06-28 Andrew Cagney <ac131313@redhat.com>
2135
2136 * blockframe.c (generic_find_dummy_frame): Change return type to
2137 ``struct regcache''.
2138 (struct dummy_frame): Replace field ``registers'' with regcache, a
2139 struct regcache object.
2140 (generic_find_dummy_frame): Update.
2141 (generic_push_dummy_frame): Update. Use regcache_xfree,
2142 regcache_xmalloc and regcache_cpy.
2143 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2144 regcache_xfree.
2145 (deprecated_generic_find_dummy_frame): Update.
2146 (generic_read_register_dummy): Update. Use
2147 regcache_read_as_address.
2148 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2149 (generic_get_saved_register): Update. Use regcache_read.
2150
08c0b5bc
AC
21512002-06-28 Andrew Cagney <ac131313@redhat.com>
2152
2153 * Makefile.in (objfiles_h): Add $(bcache_h).
2154 * objfiles.h: Include "bcache.h".
2155
2156 * Makefile.in (symtab_h): Remove $(bcache_h).
2157 * symtab.h: Do not include "bcache.h".
2158
1f89801a
AC
21592002-06-28 Andrew Cagney <ac131313@redhat.com>
2160
2161 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2162 generic_func_frame_chain_valid.
2163
b9644b58
DB
21642002-06-28 David O'Brien <obrien@FreeBSD.org>
2165
2166 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2167 * config/i386/tm-fbsd.h: Likewise.
2168
dd486634
AC
21692002-06-28 Andrew Cagney <ac131313@redhat.com>
2170
2171 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2172 generic_unwind_get_saved_register.
2173
0b434a00
AC
21742002-06-27 Andrew Cagney <ac131313@redhat.com>
2175
2176 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2177 * regcache.c (supply_register): Add missing argument to
2178 register_buffer call.
2179
f30e5a77
AC
21802002-06-27 Andrew Cagney <ac131313@redhat.com>
2181
2182 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2183 Solaris /bin/grep does not not like it. From Peter Schauer.
2184
9f064c95
TT
21852002-06-26 Tom Tromey <tromey@redhat.com>
2186
2187 * command.h (add_setshow_cmd): Declare.
2188 (add_setshow_cmd_full): Declare.
2189 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2190 returns void. Use add_setshow_cmd_full.
2191 (add_setshow_cmd_full): New function.
2192 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2193 (add_setshow_boolean_cmd): Likewise.
2194
099c7589
JT
21952002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2196
2197 * config/vax/tm-vax.h: Protect from multiple inclusion.
2198 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2199 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2200 * config/vax/tm-vaxbsd.h: ...here. New file.
2201 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2202
1d049c5e
JT
22032002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2204
2205 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2206 (BELIEVE_PCC_PROMOTION): Remove.
2207 (AP_REGNUM): Move to...
2208 * config/vax/nm-vax.h: ...here.
2209 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2210 (vax_breakpoint_from_pc): New function.
2211 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2212 and gdbarch_believe_pcc_promotion.
2213
4791e091
JT
22142002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2215
2216 * Makefile.in (vax_tdep_h): Define.
2217 (vax-tdep.o): Use $(vax_tdep_h).
2218 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2219 (vax_dump_tdep): New function.
2220 (_initialize_vax_tdep): Register vax_dump_tdep.
2221 * vax-tdep.h: Include osabi.h.
2222 (struct gdbarch_tdep): New.
2223
da130f98
AC
22242002-06-26 Andrew Cagney <cagney@redhat.com>
2225
2226 * frame.h (deprecated_generic_find_dummy_frame): Rename
2227 generic_find_dummy_frame.
2228 * blockframe.c (generic_find_dummy_frame): Make static.
2229 (deprecated_generic_find_dummy_frame): New function.
2230 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2231 generic_find_dummy_frame with deprecated_find_dummy_frame.
2232 (sh64_nofp_frame_init_saved_regs): Ditto.
2233 (sh_fp_frame_init_saved_regs): Ditto.
2234 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2235 (s390_frame_chain): Ditto.
2236 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2237
6300c360
GS
22382002-06-26 Grace Sainsbury <graces@redhat.com>
2239
2240 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2241 gdbarch vector are at the top.
2242 (NUM_REGS): Remove.
2243 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2244 (FRAME_ARGS_ADDRESS): Remove.
2245 (FRAME_LOCALS_ADDRESS): Remove.
2246 (FRAME_NUM_ARGS): Remove.
2247 (FRAME_ARGS_SKIP): Remove.
2248 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2249 (m68k_gdbarch_init): Add gdbarch initializations for macros
2250 undefined in tm-m68k.h
2251
1c617db8
GS
22522002-06-26 Grace Sainsbury <graces@redhat.com>
2253
2254 * monitor.h: Add the function regname to monitor_ops
2255 structure. This way NUM_REGS does not have to be a constant.
2256 * monitor.c (monitor_fetch_register): Added support for regname
2257 function. The function is called if the array regnames is NULL.
2258 (monitor_store_register): Same.
da130f98
AC
2259 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2260 regnames array.
1c617db8
GS
2261 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2262 cpu32bug_cmds.regname to point to new function.
2263 * abug-rom.c (abug_regname): Same as above.
2264 (init_abug_cmds): Same.
2265 * dbug-rom.c (dbug_regname): Same as above.
2266 (init_dbug_cmds): Same.
2267 * remote-est.c (est_regname): Same.
2268 (init_est_cmds): Same.
2269 * rom68k-rom.c (rom68k_regname): Same.
2270 (init_rom68k_cmds): Same.
2271
ea9365bb
TT
22722002-06-25 Tom Tromey <tromey@redhat.com>
2273
2274 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2275
72cec141
AC
22762002-06-25 Andrew Cagney <cagney@redhat.com>
2277
2278 * infrun.c (stop_registers): Change variable's type to ``struct
2279 regcache'''.
2280 (xmalloc_inferior_status): Delete function.
2281 (free_inferior_status): Delete function.
2282 (normal_stop): Use regcache_cpy.
2283 (struct inferior_status): Change type of fields ``stop_registers''
2284 and ``registers'' to ``struct regcache''.
2285 (write_inferior_status_register): Use regcache_write.
2286 (save_inferior_status): Instead of calling
2287 xmalloc_inferior_status, allocate the inf_status buffer directly.
2288 Use regcache_dup_no_passthrough and regcache_dup to save the
2289 buffers.
2290 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2291 Replace the stop_registers regcache instead of overriding it. Use
2292 regcache_xfree. Instead of calling free_inferior_status, xfree
2293 the buffer directly.
2294 (discard_inferior_status): Use regcache_xfree. Instead of calling
2295 free_inferior_status, xfree the buffer directly.
2296 (build_infrun): Use regcache_xmalloc.
2297 (_initialize_infrun): Delete redundant call to build_infrun.
2298
2299 * Makefile.in (infcmd.o): Add $(regcache_h).
2300
2301 * infcmd.c: Include "regcache.h".
2302 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2303 obtain the address of `stop_registers' register buffer.
2304 (print_return_value): Ditto.
2305
2306 * inferior.h (struct regcache): Add opaque declaration.
2307 (stop_registers): Change variable's declared type to ``struct
2308 regcache''.
2309
defc6f8c
TT
23102002-06-24 Tom Tromey <tromey@redhat.com>
2311
c0e624e7
TT
2312 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2313 * target.c (initialize_targets): Fixed typo in
2314 trust-readonly-sections `show' documentation.
2315
defc6f8c
TT
2316 * main.c: Marked all strings with _().
2317
2b236d82
DH
23182002-06-24 Don Howard <dhoward@redhat.com>
2319
2320 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2321 that means max CORE_ADDR+1.
2322 (lookup_mem_region): Ditto.
2323 (mem_info_command): Ditto.
2324
942dc0e9
GS
23252002-06-24 Grace Sainsbury <graces@redhat.com>
2326
2327 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2328 (REGISTER_BYTES_OK): Remove.
2329 (REGISTER_BYTES): Remove.
2330 (STORE_STRUCT_RETURN): Remove.
2331 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2332 (STORE_RETURN_VALUE): Remove.
2333 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2334 (FRAME_CHAIN): Remove.
2335 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2336 (FRAME_SAVED_PC): Remove.
2337 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2338 (m68k_store_struct_return): Add.
2339 (m68k_deprecated_extract_return_value): Add.
2340 (m68k_deprecated_extract_struct_value_address): Add.
2341 (m68k_store_return_value): Add.
2342 (m68k_frame_chain): Add.
2343 (m68k_frameless_function_invocation): Add.
2344 (m68k_frame_saved_pc): Add.
2345 (m68k_gdbarch_init): added set_gdbarch calls for new
2346 functions and deleted macros.
2347
03c30d4d
TT
23482002-06-23 Tom Tromey <tromey@redhat.com>
2349
2350 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2351 (ALLDEPFILES): Likewise.
2352 (udiheaders): Removed.
2353 (udip2soc.o): Likewise.
2354 (udi2go32.o): Likewise.
2355 (udr.o): Likewise.
2356 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2357
37e71372
AC
23582002-06-22 Andrew Cagney <ac131313@redhat.com>
2359
06a6ac57
AC
2360 * infrun.c (_initialize_infrun): Delete unnecessary call to
2361 build_infrun.
2362
37e71372
AC
2363 * regcache.h: Update comments describing the regcache_cpy family
2364 of functions.
2365 (regcache_save, regcache_restore): Delete declaration.
2366 (regcache_save_no_passthrough): Delete declaration.
2367 (regcache_restore_no_passthrough): Delete declaration.
2368 * regcache.c (regcache_save): Delete function.
2369 (regcache_save_no_passthrough): Delete function.
2370 (regcache_restore): Delete function.
2371 (regcache_restore_no_passthrough): Delete function.
2372
78f6d055
AC
23732002-06-21 Andrew Cagney <ac131313@redhat.com>
2374
2375 * config/m68k/tm-m68k.h: Fix typo.
2376 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2377 (m68k_frame_init_saved_regs): Declare.
2378
78b119cb
JB
23792002-06-21 Jim Blandy <jimb@redhat.com>
2380
2381 Remove some vestiges of Harris 88k support.
2382 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2383 register numbering quirk.
2384 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2385 odd symbols occurring in Harris 88k ELF targets.
2386
0fbb3da7
TT
23872002-06-21 Tom Tromey <tromey@redhat.com>
2388
2389 * gdb_locale.h: New file.
2390 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2391 (defs_h): Added gdb_locale.h.
2392 * configure, config.in: Rebuilt.
2393 * configure.in (PACKAGE): Define.
2394 * defs.h: Include gdb_locale.h.
2395 * main.c (captured_main): Call setlocale, bindtextdomain,
2396 textdomain.
2397
456f8b9d
DB
23982002-06-21 Dave Brolley <brolley@redhat.com>
2399
2400 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2401 * config/frv/frv.mt: New file.
2402 * config/frv/tm-frv.h: New file.
2403 * configure.tgt: Support frv-*-*.
2404 * Makefile.in (frv-tdep.o): New target.
2405 * frv-tdep.c: New file.
2406 * NEWS: Mention frv.
2407
cdd463f9
DB
24082002-06-21 Dave Brolley <brolley@redhat.com>
2409
2410 * MAINTAINERS: Add self to "Write After Approval" list.
2411
5d3ed2e3
GS
24122002-06-21 Grace Sainsbury <graces@redhat.com>
2413
2414 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2415 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2416 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2417 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2418 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2419
2420 * m68k-tdep.c: Include arch-utils.h
2421 (m68k_register_raw_size): Add.
2422 (m68k_register_virtual_size): Add.
2423 (m68k_register_virtual_type): Add.
2424 (m68k_register_name): Add.
2425 (m68k_stack_align): Add.
2426 (m68k_register_byte): Add.
2427 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2428 tm-m68k.h.
2429
7f8e7424
GS
24302002-06-21 Grace Sainsbury <graces@redhat.com>
2431
a2c6a6d5 2432 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2433 m68k_find_saved_regs.
2434 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2435 references to it with frame->saved_regs.
7f8e7424
GS
2436 (m68k_gdbarch_init): Added function calls to initialize the
2437 gdbarch structure.
a2c6a6d5
GS
2438 (m68k_fix_call_dummy): Add.
2439 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2440 (CALL_DUMMY): Remove.
2441 (CALL_DUMMY_LENGTH): Remove.
2442 (CALL_DUMMY_START_OFFSET): Remove.
2443 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2444 (FIX_CALL_DUMMY): Remove.
2445 (PUSH_DUMMY_FRAME): Remove.
2446 (POP_FRAME): Remove.
7f8e7424 2447
f461f5cf
PM
24482002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2449
2450 * parse.c (parse_fprintf): New function used to avoid calls to
2451 fprintf in bison parser generated debug code.
2452 * parser-defs.h: Declaration of new parse_fprintf function.
2453 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2454 Set YYDEBUG to 1 by default.
2455 Set YYFPRINTF as parse_fprintf.
2456
7f0c12ed
ML
24572002-06-21 Michal Ludvig <mludvig@suse.cz>
2458
2459 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2460 encoding anymore.
2461 (pointer_encoding, enum ptr_encoding): New.
2462 (execute_cfa_program): Take care about pointer encoding.
2463 (dwarf2_build_frame_info): Only call parse_frame_info for
2464 .debug_frame and .eh_frame.
2465 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2466 fixed augmentation handling, added relative addressing,
2467 ignore duplicate FDEs. Added comments.
19d833a2 2468 * dwarf2cfi.c: Reindented.
7f0c12ed 2469
87c4a039
EZ
24702002-06-20 Elena Zannoni <ezannoni@redhat.com>
2471
2472 * event-top.c (command_handler): Don't use space_at_cmd_start
2473 unless there is sbrk() on the host. Assign time and space data
2474 to union fields of the appropriate length.
2475
1cf877ad
ML
24762002-06-20 Michal Ludvig <mludvig@suse.cz>
2477
2478 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2479 x86_64_register_name. Return type changed to 'const char *'.
2480 (x86_64_register_name2nr): Rename to x86_64_register_number.
2481 (x86_64_gdbarch_init): Update to reflect the change.
2482 * x86-64-tdep.h: Ditto.
2483 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2484 (supply_fpregset): Ditto.
2485
3fadccb3
AC
24862002-06-19 Andrew Cagney <cagney@redhat.com>
2487
2488 * regcache.h: Update copyright.
2489 (struct regcache, struct gdbarch): Add opaque declarations.
2490 (current_regcache): Declare global variable.
2491 (regcache_read, regcache_write): Add gdbarch parameter.
2492 (regcache_save, regcache_save_no_passthrough)
2493 (regcache_restore, regcache_restore_no_passthrough)
2494 (regcache_dup, regcache_dup_no_passthrough)
2495 (regcache_cpy, regcache_cpy_no_passthrough)
2496 (deprecated_grub_regcache_for_registers)
2497 (deprecated_grub_regcache_for_register_valid)
2498 (regcache_valid_p): Add function declarations.
2499
2500 * regcache.c: Update copyright.
2501 (regcache_descr_handle): New global variable.
2502 (struct regcache_descr): Define.
2503 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2504 (regcache_descr, xfree_regcache_descr): New functions.
2505 (struct regcache): Define.
2506 (regcache_xmalloc, regcache_xfree): New functions.
2507 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2508 (regcache_dup, regcache_dup_no_passthrough): New functions.
2509 (regcache_valid_p, regcache_read_as_address): New functions.
2510 (deprecated_grub_regcache_for_registers): New function.
2511 (deprecated_grub_regcache_for_register_valid): New function.
2512 (current_regcache): New global variable.
2513 (register_buffer): Add regcache parameter. Update calls.
2514 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2515 (read_register_gen, write_register_gen): Update register_buffer
2516 call. Test for legacy_p instead of gdbarch_register_read_p or
2517 gdbarch_register_write_p.
2518 (regcache_collect): Update register_buffer call.
2519 (build_regcache): Rewrite. Use deprecated grub functions.
2520 (regcache_save, regcache_save_no_passthrough): New functions.
2521 (regcache_restore, regcache_restore_no_passthrough): New
2522 functions.
2523 (_initialize_regcache): Create the regcache_data_handle. Swap
2524 current_regcache global variable.
2525
2526 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2527 parameter to regcache_read and regcache_write calls.
2528 (sh4_register_read): Ditto.
2529 (sh64_pseudo_register_read): Ditto.
2530 (sh64_register_read): Ditto.
2531 (sh_pseudo_register_write): Ditto.
2532 (sh4_register_write): Ditto.
2533 (sh64_pseudo_register_write): Ditto.
2534 (sh64_register_write): Ditto.
2535
2536 * defs.h (XCALLOC): Define.
2537
152d9db6
GS
25382002-06-19 Grace Sainsbury <graces@redhat.com>
2539
2540 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2541 * m68k-tdep.c (m68k_gdbarch_init): Added.
2542 (m68k_dump_tdep): Added.
2543
170911c7
DJ
25442002-06-19 Daniel Jacobowitz <drow@mvista.com>
2545
2546 * ada-lang.c (fill_in_ada_prototype): Update comment.
2547
2e4ebe70
DJ
25482002-06-19 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2551 MIPS_ABI_LAST.
2552 (mips_abi_string, mips_abi_strings): New.
2553 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2554 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2555 tdep->mips_abi_string. Honor mips_abi_string. Default to
2556 O32 if no ABI is found.
2557 (mips_dump_tdep): Use mips_abi_strings.
2558 (mips_abi_update): New function.
2559 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2560 ``set mips abi'' and ``show mips abi''. Check the size of
2561 mips_abi_strings.
2562
16775908
AC
25632002-06-19 Andrew Cagney <cagney@redhat.com>
2564
2565 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2566 constant.
2567
5051bfa4 25682002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2569
5051bfa4
JB
2570 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2571 current frame using only the first stack size adjustment. All
2572 subsequent size adjustments are not considered to be part of
2573 the "static" part of the current frame.
2574 Compute the address of the saved registers relative to the
2575 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2576 in use in this frame.
2577
56468235
DH
25782002-06-18 Don Howard <dhoward@redhat.com>
2579
2580 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2581 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2582 suggesting this solution.
2583
0b624158
AC
25842002-06-18 Andrew Cagney <ac131313@redhat.com>
2585
2586 * config/romp/xm-rtbsd.h: Delete file.
2587 * config/romp/rtbsd.mh: Delete file.
2588
221ea385
KS
25892002-06-18 Keith Seitz <keiths@redhat.com>
2590
2591 * breakpoint.c (condition_command): Post breakpoint_modify
2592 when a condition is added to an existing breakpoint.
2593 (commands_command): Likewise for commands.
2594 (set_ignore_count): Likewise for ignore counts.
2595 If no tty, do not simply return, still need to send event
2596 notification.
2597 (ignore_command): Only print a newline if the command came
2598 from a tty.
2599 Don't call breakpoints_changed, since this is now properly
2600 handled by set_ignore_count.
2601
5402eed1
AC
26022002-06-18 Andrew Cagney <cagney@redhat.com>
2603
2604 * MAINTAINERS: Note that cris-elf target can be compiled with
2605 -Werror.
2606 * cris-tdep.c (cris_register_name): Make return type constant.
2607 (cris_breakpoint_from_pc): Ditto.
2608
cc22880b
ML
26092002-06-18 Michal Ludvig <mludvig@suse.cz>
2610
2611 * frame.h (struct frame_info): Change type of context to
2612 'struct context'.
2613
fa88f677
AC
26142002-06-17 Andrew Cagney <cagney@redhat.com>
2615
2616 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2617 pointer.
2618 * gdbarch.h, gdbarch.c: Regenerate.
2619 * config/mips/tm-mips.h (mips_register_name): Update.
2620 * i386-tdep.h (i386_register_name): Update.
2621 * mips-tdep.c (mips_register_name): Update
2622 * alpha-tdep.c (alpha_register_name): Update.
2623 * arch-utils.c (legacy_register_name): Update.
2624 * arch-utils.h (legacy_register_name): Update.
2625 * avr-tdep.c (avr_register_name): Update.
2626 * ia64-tdep.c (ia64_register_name): Update.
2627 * i386-tdep.c (i386_register_name): Update.
2628 * sparc-tdep.c (sparc32_register_name): Update.
2629 (sparc64_register_name): Update.
2630 (sparclite_register_name): Update.
2631 (sparclet_register_name): Update.
2632 * sh-tdep.c (sh_generic_register_name): Update.
2633 (sh_sh_register_name): Update.
2634 (sh_sh3_register_name): Update.
2635 (sh_sh3e_register_name): Update.
2636 (sh_sh_dsp_register_name): Update.
2637 (sh_sh3_dsp_register_name): Update.
2638 (sh_sh4_register_name): Update.
2639 (sh_sh64_register_name): Update.
2640 * s390-tdep.c (s390_register_name): Update.
2641 * rs6000-tdep.c (rs6000_register_name): Update.
2642 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2643 (ns32k_register_name_32382): Update.
2644 * d10v-tdep.c (d10v_ts2_register_name): Update.
2645 (d10v_ts3_register_name): Update.
2646 * xstormy16-tdep.c (xstormy16_register_name): Update.
2647 * vax-tdep.c (vax_register_name): Update.
2648 * v850-tdep.c (v850_register_name): Update.
2649 * m68hc11-tdep.c (m68hc11_register_name): Update.
2650 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2651 (am33_register_name): Update.
2652
ea1e7ef6
GS
26532002-06-17 Grace Sainsbury <graces@redhat.com>
2654
2655 * m68k-tdep.c: Reindented.
2656
9b02dd1b
AC
26572002-06-17 Andrew Cagney <ac131313@redhat.com>
2658
2659 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2660 list of predefined types.
2661
8758dec1
MK
26622002-06-16 Mark Kettenis <kettenis@gnu.org>
2663
b6197528
MK
2664 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2665 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2666 REGISTER_CONVERT_TO_RAW): Remove defines.
2667 (i386_register_virtual_type, i386_register_convertible,
2668 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2669 Remove prototypes.
2670 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2671 macros mentioned above.
2672
82b47e62
MK
2673 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2674 (i386lynx_saved_pc_after_call): Remove prototype.
2675 * i386ly-tdep.c: Include "i386-tdep.h".
2676 (i386lynx_saved_pc_after_call): Make static. Use
2677 read_memory_nobpt instead of read_memory. Use
2678 read_memory_unsigned_integer instead of read_memory_integer.
2679 (i386lynx_init_abi): New function.
2680 (i386lynx_coff_osabi_sniffer): New function.
2681 (_initialize_i386bsd_tdep): New function.
2682
8758dec1
MK
2683 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2684 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2685 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2686 (i386_fix_call_dummy): Remove prototype.
2687 * i386-tdep.c (i386_call_dummy_words): New variable.
2688 (i386_gdbarch_init): Adjust for removal of the
2689 macros mentioned above.
2690
e9e68a56
AC
26912002-06-15 Andrew Cagney <ac131313@redhat.com>
2692
2693 * command.h (add_setshow_auto_boolean_cmd): Replace
2694 add_set_auto_boolean_cmd.
2695 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2696 add_set_auto_boolean_cmd.
2697 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2698 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2699 mask-address'' command.
2700 (show_mask_address): Add cmd parameter.
2701 * remote.c (add_packet_config_cmd): Update. Change type of
2702 set_func and show_func to cmd_sfunc_ftype.
2703 (_initialize_remote): Update `set remote Z-packet'
2704 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2705 (show_remote_protocol_e_packet_cmd): Ditto.
2706 (show_remote_protocol_E_packet_cmd): Ditto.
2707 (show_remote_protocol_P_packet_cmd): Ditto.
2708 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2709 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2710 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2711 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2712 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2713 (show_remote_protocol_Z_packet_cmd): Ditto.
2714 (show_remote_protocol_binary_download_cmd): Ditto.
2715 (show_remote_cmd): Pass NULL to all of above.
2716
fc08ec52
MK
27172002-06-15 Mark Kettenis <kettenis@gnu.org>
2718
2719 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2720 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2721 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2722 POP_FRAME): Remove defines.
2723 (i386_push_arguments, i386_store_struct_return,
2724 i386_extract_return_value, i386_store_return_value,
2725 i386_extract_struct_value_address, i386_push_dummy_frame,
2726 i386_pop_frame): Renove prototypes.
2727 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2728 macros mentioned above.
2729
e707bbc2
AC
27302002-06-15 Andrew Cagney <ac131313@redhat.com>
2731
2732 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2733 add_set_boolean_cmd.
2734 (add_setshow_cmd): New function.
2735 * command.h (add_setshow_boolean_cmd): Replace
2736 add_set_boolean_cmd.
2737 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2738 and ``set rdiromatzero''.
2739 * maint.c (_initialize_maint_cmds): Update commented out code.
2740 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2741 * target.c (initialize_targets): Update `set
2742 trust-readonly-sections'.
2743 * remote.c (_initialize_remote): Update `set remotebreak'.
2744
42fdc8df
MK
27452002-06-15 Mark Kettenis <kettenis@gnu.org>
2746
93924b6b
MK
2747 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2748 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2749 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2750 fit into multi-arch framework.
2751 (i386_breakpoint_from_pc): New function.
2752 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2753 above.
2754
42fdc8df
MK
2755 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2756 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2757 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2758 (i386_frameless_function_invocation, i386_frame_num_args,
2759 i386_frame_init_saved_regs): Remove prototypes.
2760 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2761 macros mentioned above.
2762
9773a94b
AC
27632002-06-15 Andrew Cagney <ac131313@redhat.com>
2764
2765 * cli/cli-decode.c (set_cmd_cfunc): Update.
2766 (set_cmd_sfunc): Update.
2767 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2768 (set_cmd_sfunc, set_cmd_cfunc): Update.
2769 * cli/cli-decode.h: Update.
2770
6e157172
MK
27712002-06-15 Mark Kettenis <kettenis@gnu.org>
2772
2773 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2774 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2775
7f19b9a2
AC
27762002-06-15 Andrew Cagney <ac131313@redhat.com>
2777
2778 * defs.h (auto_boolean): Declare enum.
2779 * command.h (cmd_auto_boolean): Delete enum.
2780 * mips-tdep.c (mask_address_var): Update.
2781 (mips_mask_address_p): Update.
2782 (show_mask_address): Update.
2783 * remote.c (struct packet_config): Update.
2784 (update_packet_config): Update.
2785 (show_packet_config_cmd): Update.
2786 (packet_ok): Update.
2787 (add_packet_config_cmd): Update.
2788 (_initialize_remote):
2789 * command.h: Update.
2790 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2791 (do_setshow_command): Update.
2792 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2793 * cli/cli-decode.h: Update.
2794
1cf88de5
MK
27952002-06-15 Mark Kettenis <kettenis@gnu.org>
2796
22ba8cf2
MK
2797 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2798 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2799 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2800 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2801 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2802 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2803
762c5349
MK
2804 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2805 list of DJGPP COFF targets.
2806
091198bb
MK
2807 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2808 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2809 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2810 (FP0_REGNUM): Remove define.
2811 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2812 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2813 (i386_register_virtual_size): Remove protoype.
2814 * i386-tdep.c (i386_register_virtual_size): Removed.
2815 (i386_extract_return_value, i386_store_return_value): Use
2816 FP0_REGNUM instead of NUM_FREGS to determine whether the
2817 floating-point registers are available.
2818 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2819 Adjust for removal of macros mentioned above.
2820
28212002-06-15 Mark Kettenis <kettenis@gnu.org>
2822
fcc9bf01
MK
2823 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2824 comments.
2825 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2826 Remove prototypes.
2827 (supply_gregset, fill_gregset): Remove use of register keyword and
2828 remove declaration for regmap. Use I386_NUM_GREGS instead of
2829 NUM_REGS and NUM_FREGS.
2830 (FPREGSET_FSAVE_OFFSET): Remove.
2831 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2832 NUM_FREGS to determine whether the floating-point registers are
2833 available.
2834
65e78234
MK
2835 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2836 gnu_store_registers): Replace usage of NUM_GREGS with
2837 I386_NUM_GREGS.
2838
98df6387
MK
2839 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2840 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2841 usage of NUM_GREGS with I386_NUM_GREGS.
2842
099a9414
MK
2843 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2844
57976e88
MK
2845 * i386bsd-nat.c: Include "i386-tdep.h".
2846 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2847 I386_NUM_GREGS.
2848
b335f4a6
MK
2849 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2850 and associated comment. They no longer make any sense, since we
2851 don't use this file anymore on Linux.
2852
1cf88de5
MK
2853 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2854 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2855 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2856 elements in these arrays.
2857 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2858 MAX_NUM_REGS.
2859
daa66587
MK
28602002-06-15 Mark Kettenis <kettenis@gnu.org>
2861
2862 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2863 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2864
26e9b323
AC
28652002-06-14 Andrew Cagney <cagney@redhat.com>
2866
2867 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2868 EXTRACT_RETURN_VALUE.
2869 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2870 EXTRACT_STRUCT_VALUE_ADDRESS.
2871 * gdbarch.h, gdbarch.c: Regenerate.
2872
2873 * values.c (value_being_returned): Handle
2874 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2875 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2876
2877 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2878 * arm-tdep.c (arm_gdbarch_init): Update.
2879 * avr-tdep.c (avr_gdbarch_init): Update.
2880 * cris-tdep.c (cris_gdbarch_init): Update.
2881 * d10v-tdep.c (d10v_gdbarch_init): Update.
2882 * ia64-tdep.c (ia64_gdbarch_init): Update.
2883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2885 * s390-tdep.c (s390_gdbarch_init): Update.
2886 * sh-tdep.c (sh_gdbarch_init): Update.
2887 * s390-tdep.c (s390_gdbarch_init): Update.
2888 * sparc-tdep.c (sparc_gdbarch_init): Update.
2889 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2890 * v850-tdep.c (v850_gdbarch_init): Update.
2891 * vax-tdep.c (vax_gdbarch_init): Update.
2892 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2894
2895 * config/arc/tm-arc.h: Update.
2896 * config/d30v/tm-d30v.h: Update.
2897 * config/fr30/tm-fr30.h: Update.
2898 * config/h8300/tm-h8300.h: Update.
2899 * config/h8500/tm-h8500.h: Update.
2900 * config/i386/tm-i386.h: Update.
2901 * config/i386/tm-ptx.h: Update.
2902 * config/i386/tm-symmetry.h: Update.
2903 * config/i960/tm-i960.h: Update.
2904 * config/m32r/tm-m32r.h: Update.
2905 * config/m68k/tm-delta68.h: Update.
2906 * config/m68k/tm-linux.h: Update.
2907 * config/m68k/tm-m68k.h: Update.
2908 * config/m88k/tm-m88k.h: Update.
2909 * config/mcore/tm-mcore.h: Update.
2910 * config/mips/tm-mips.h: Update.
2911 * config/mn10200/tm-mn10200.h: Update.
2912 * config/pa/tm-hppa.h: Update.
2913 * config/pa/tm-hppa64.h: Update.
2914 * config/sparc/tm-sp64.h: Update.
2915 * config/sparc/tm-sparc.h: Update.
2916 * config/sparc/tm-sparclet.h: Update.
2917 * config/z8k/tm-z8k.h: Update.
2918
5179e78f
AC
29192002-06-14 Andrew Cagney <cagney@redhat.com>
2920
2921 * Makefile.in (i386_linux_tdep_h): Define.
2922 (i386_tdep_h, i387_tdep_h): Define.
2923 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2924 $(i386_tdep_h) and $(i387_tdep_h).
2925 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2926
8201327c
MK
29272002-06-14 Mark Kettenis <kettenis@gnu.org>
2928
edf393ac
MK
2929 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2930 Already covered by the default.
2931
896fb97d
MK
2932 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2933 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2934 (i386_gdbarch_init): Initialize long_double_format and long_double
2935 bit.
2936
8201327c
MK
2937 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2938 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2939 Move these to ...
2940 * config/i386/i386sol2.mh: ... here.
2941 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2942 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2943 (SIGCONTEXT_PC_OFFSET): Remove define.
2944 (IN_SIGTRAMP): Remove define.
2945 * i386-sol2-tdep.c: New file.
2946
2947 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2948 * config/i386/tm-i386nw.h: Removed.
2949
2950 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2951 USE_STRUCT_CONVENTION): Remove defines.
2952 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2953 (get_longjmp_target): Remove prototype.
2954 (IN_SIGTRAMP): Remove define.
2955 (i386bsd_in_sigtramp): Remove prototype.
2956 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2957 function. Update comment accordingly
2958 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2959 (FRAME_SAVED_PC): Remove define.
2960 (i386bsd_frame_saved_pc): Remove prototype.
2961 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2962 GET_LONGJMP_TARGET): Remove defines.
2963 (get_longjmp_target): Remove prototype.
2964 (IN_SIGTRAMP): Remove define.
2965 (i386bsd_in_sigtramp): Remove prototype.
2966 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2967 function. Update comment accordingly
2968 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2969 (FRAME_SAVED_PC): Remove define.
2970 (i386bsd_frame_saved_pc): Remove prototype.
2971 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2972 Remove prototype.
2973 (USE_STRUCT_CONVENTION): Remove prototype.
2974 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2975 declaration.
2976 (_initialize_i386bsd_nat): Revise logic to determine some
2977 constants at compile time when compiling a native GDB. Warn if
2978 things don't match up with what we expect.
2979 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2980 Remove variables.
2981 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2982 to use date stored in `struct gdbarch_tdep'.
2983 (i386bsd_sigcontext_offset): Remove varaible.
2984 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2985 stored in `struct gdbarch_tdep'.
2986 (i386bsd_frame_saved_pc): Make static.
2987 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2988 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2989 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2990 i386fbsd4_sc_pc_offset): New variables.
2991 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2992 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2993 functions.
2994 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2995 functions.
2996 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2997 Modify the value of i386fbsd_sigtramp_start and
2998 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2999 i386fbsd_sigtramp_end.
3000 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3001 function.
3002
3003 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3004 define to i386-linux-tdep.h.
3005 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3006 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3007 defines.
3008 (i386_linux_register_name, i386_linux_register_byte,
3009 i386_linux_register_raw_size): Remove prototypes.
3010 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3011 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3012 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3013 TARGET_WRITE_PC): Remove defines.
3014 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3015 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3016 i386_linux_write_pc): Remove prototypes.
3017 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3018 (get_longjmp_target): Remove prototype.
3019 * i386-linux-tdep.h: New file.
3020 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3021 * i386-linux-tdep.c: Include "i386-tdep.h" and
3022 "i386-linux-tdep.h".
3023 (i386_linux_register_name, i386_linux_register_byte,
3024 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3025 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3026 Make static.
3027 (i386_linux_init_abi): New function.
3028 (_initialize_i386_linux_tdep): New function.
3029
3030 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3031 (i386_saved_pc_after_call): Remove prototype.
3032 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3033 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3034 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3035 (i386_register_name, i386_stab_reg_to_regnum,
3036 i386_dwarf_reg_to_regnum): Remove prototypes.
3037 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3038 SIZEOF_SSE_REGS): Remove defines.
3039 (REGISTER_BYTES): Remove define.
3040 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3041 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3042 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3043 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3044 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3045 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3046 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3047 (get_longjmp_target): Remove prototype.
3048 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3049 (sigtramp_saved_pc): Remove define.
3050 (i386v4_sigtramp_saved_pc): Remove prototype.
3051 * config/i386/tm-go32.h (FRAME_CHAIN,
3052 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3053 (i386go32_frame_saved_pc): Remove prototype.
3054 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3055 (get_longjmp_target): Remove prototype.
3056 * i386-tdep.h: Include "osabi.h".
3057 (enum i386_abi): Removed.
3058 (enum struct_return): New enum.
3059 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3060 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3061 sc_pc_offset members.
3062 (i386_gdbarch_register_os_abi): Remove prototype.
3063 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3064 I386_SSE_NUM_REGS): New defines.
3065 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3066 I386_SSE_SIZEOF_REGS): New defines.
3067 (i386_register_name, i386_register_byte, i386_register_raw_size):
3068 New prototypes.
3069 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3070 (i386bsd_sigtramp_saved_pc): New prototype.
3071 * i386-tdep.c: Don't include "elf-bfd.h".
3072 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3073 i386_frame_chain, i386_saved_pc_after_call): Make static.
3074 (i386_frame_saved_pc): Rewrite to call architecture dependent
3075 function to deal with signal handlers. Make static.
3076 (i386go32_frame_saved_pc): Removed.
3077 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3078 Removed.
3079 (i386_get_longjmp_target): New function.
3080 (default_struct_convention, pcc_struct_convention,
3081 reg_struct_convention, valid_conventions, struct_convention): New
3082 variables.
3083 (i386_use_struct_convention): New function.
3084 (i386v4_sigtramp_saved_pc): Renamed to
3085 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3086 (i386_pc_in_sigtramp): New function.
3087 (i386_abi_names): Removed.
3088 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3089 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3090 Removed.
3091 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3092 i386_gdbarch_register_os_abi): Removed.
3093 (struct i386_abi_handler): Removed.
3094 (i386_abi_handler_list): Removed.
3095 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3096 functions.
3097 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3098 i386_nw_init_abi): New functions.
3099 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3100 Use set_gdbarch_xxx() calls instead of relying on macros for a
3101 number of calls.
3102 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3103 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3104 Register the various architecture variants defined in this file.
3105
ad2f7632
DJ
31062002-06-14 Daniel Jacobowitz <drow@mvista.com>
3107
3108 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3109 (struct main_type): Remove arg_types member. Update comments for
3110 struct field.
3111 (TYPE_ARG_TYPES): Remove.
3112 (TYPE_FN_FIELD_ARGS): Update.
3113 (smash_to_method_type): Update prototype.
3114
3115 * c-typeprint.c (cp_type_print_method_args): Take method type
3116 instead of argument list. Use new argument layout. Simplify.
3117 (c_type_print_args): Use new argument layout. Simplify.
3118 (c_type_print_base): Update call to cp_type_print_method_args.
3119 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3120 argument; use die->type instead. Update call to
3121 smash_to_method_type.
3122 (read_structure_scope): Update call to dwarf2_add_member_fn.
3123 * gdbtypes.c (allocate_stub_method): Update comment.
3124 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3125 Use new argument layout.
3126 (check_stub_method): Use new argument layout. Don't count
3127 void as an argument.
3128 (print_arg_types): Update comments. Use new argument layout.
3129 (recursive_dump_type): Don't print arg_types member.
3130 * hpread.c (hpread_read_struct_type): Use new argument layout.
3131 (fixup_class_method_type): Likewise.
3132 (hpread_type_lookup): Likewise.
3133 * stabsread.c (read_type): Update calls to read_args and
3134 smash_to_method_type.
3135 (read_args): Use new argument layout. Simplify.
3136 * valops.c (typecmp): Use new argument layout. Update parameters
3137 and comments. Simplify.
3138 (hand_function_call): Use new argument layout.
3139 (search_struct_method): Update call to typecmp.
3140 (find_overload_match): Use new argument layout.
3141
6da02953
DJ
31422002-06-13 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * NEWS: Mention multithreaded debug support for gdbserver.
3145
519b2366
DJ
31462002-06-13 Daniel Jacobowitz <drow@mvista.com>
3147
3148 * MAINTAINERS: Mention NEWS.
3149
a7f48742
DJ
31502002-06-13 Daniel Jacobowitz <drow@mvista.com>
3151
3152 * gdbserver/regcache.c: Add comment.
3153
6c0d6680
DJ
31542002-06-13 Daniel Jacobowitz <drow@mvista.com>
3155
3156 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3157 (struct mips_objfile_private, compare_pdr_entries): New.
3158 (non_heuristic_proc_desc): Read the ".pdr" section if it
3159 is present.
3160
6529d2dd
AC
31612002-06-12 Andrew Cagney <ac131313@redhat.com>
3162
3163 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3164 (arm_debug): New static variable.
3165 (_initialize_arm_tdep): Add ``set debug arm'' command.
3166
26216b98
AC
31672002-06-12 Andrew Cagney <ac131313@redhat.com>
3168
3169 * Makefile.in (sim_arm_h): Define.
3170 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3171 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3172 (arm_register_sim_regno): New function, map an internal REGNUM
3173 onto a simulator register number.
3174 (arm_gdbarch_init): Set register_sim_regno.
3175
814b3ba0
AH
31762002-06-09 Aldy Hernandez <aldyh@redhat.com>
3177
3178 * MAINTAINERS: Add self.
3179
475b0867
JB
31802002-06-11 Jim Blandy <jimb@redhat.com>
3181
919d772c
JB
3182 * source.c (source_info): Mention whether the symtab has
3183 information about preprocessor macros.
3184
475b0867
JB
3185 Call the command `info macro', not `show macro'.
3186 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3187 Fix error message.
3188 (_initialize_macrocmd): Register `info_macro_command' in
3189 `infolist', not `showlist'.
3190
9e364162
DJ
31912002-06-11 Daniel Jacobowitz <drow@mvista.com>
3192
3193 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3194 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3195 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3196 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3197 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3198 unconditionally.
3199 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3200 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3201 (_initialize_mips_tdep): Remove dead code.
3202 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3203 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3204 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3205 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3206 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3207 MIPS_LAST_FP_ARG_REGNUM): Remove.
3208
32092002-06-11 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * gdbserver/thread-db.c: New file.
3212 * gdbserver/proc-service.c: New file.
3213 * gdbserver/acinclude.m4: New file.
3214 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3215 proc-service.o, and thread-db.o.
3216 (linux-low.o): Add USE_THREAD_DB.
3217 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3218 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3219 * gdbserver/aclocal.m4: Regenerated.
3220 * gdbserver/config.in: Regenerated.
3221 * gdbserver/configure: Regenerated.
3222 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3223 thread_db.h, and linux/elf.h headrs.
3224 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3225 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3226 Check for -lthread_db and thread support.
3227 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3228 PowerPC, and SuperH.
3229 * gdbserver/i387-fp.c: Constify arguments.
3230 * gdbserver/i387-fp.h: Likewise.
3231 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3232 `struct inferior_info'. Remove PID member. Use generic inferior
3233 list header. All uses updated.
3234 (inferiors, signal_pid): Removed.
3235 (all_threads): New variable.
3236 (get_thread): Define.
3237 (add_inferior_to_list): New function.
3238 (for_each_inferior): New function.
3239 (change_inferior_id): New function.
3240 (add_inferior): Removed.
3241 (remove_inferior): New function.
3242 (add_thread): New function.
3243 (free_one_thread): New function.
3244 (remove_thread): New function.
3245 (clear_inferiors): Use for_each_inferior and free_one_thread.
3246 (find_inferior): New function.
3247 (find_inferior_id): New function.
3248 (inferior_target_data): Update argument type.
3249 (set_inferior_target_data): Likewise.
3250 (inferior_regcache_data): Likewise.
3251 (set_inferior_regcache_data): Likewise.
3252 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3253 (all_processes, stopping_threads, using_thrads)
3254 (struct pending_signals, debug_threads, pid_of): New.
3255 (inferior_pid): Replace with macro.
3256 (struct inferior_linux_data): Remove.
3257 (get_stop_pc, add_process): New functions.
3258 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3259 Use add_process and add_thread.
3260 (linux_attach_lwp): New function, based on old linux_attach. Use
3261 add_process and add_thread. Set stop_expected for new threads.
3262 (linux_attach): New function.
3263 (linux_kill_one_process): New function.
3264 (linux_kill): Kill all LWPs.
3265 (linux_thread_alive): Use find_inferior_id.
3266 (check_removed_breakpoints, status_pending_p): New functions.
3267 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3268 Update. Use WNOHANG. Wait for cloned processes also. Update process
3269 struct for the found process.
3270 (linux_wait_for_event): New function.
3271 (linux_wait): Use it. Support LWPs.
3272 (send_sigstop, wait_for_sigstop, stop_all_processes)
3273 (linux_resume_one_process, linux_continue_one_process): New functions.
3274 (linux_resume): Support LWPs.
3275 (REGISTER_RAW_SIZE): Remove.
3276 (fetch_register): Use register_size instead. Call supply_register.
3277 (usr_store_inferior_registers): Likewise. Call collect_register.
3278 Fix recursive case.
3279 (regsets_fetch_inferior_registers): Improve error message.
3280 (regsets_store_inferior_registers): Add debugging.
3281 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3282 (unstopped_p, linux_signal_pid): New functions.
3283 (linux_target_ops): Add linux_signal_pid.
3284 (linux_init_signals): New function.
3285 (initialize_low): Call it. Initialize using_threads.
3286 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3287 flag.
3288 (get_regcache): Fetch registers lazily. Add fetch argument
3289 and update all callers.
3290 (regcache_invalidate_one, regcache_invalidate): New
3291 functions.
3292 (new_register_cache): Renamed from create_register_cache.
3293 Return the new regcache.
3294 (free_register_cache): Change argument to a void *.
3295 (registers_to_string, registers_from_string): Call get_regcache
3296 with fetch flag set.
3297 (register_data): Make static. Pass fetch flag to get_regcache.
3298 (supply_register): Call get_regcache with fetch flag clear.
3299 (collect_register): Call get_regcache with fetch flag set.
3300 (collect_register_as_string): New function.
3301 * gdbserver/regcache.h: Update.
3302 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3303 stderr.
3304 Handle input interrupts while waiting for an ACK.
3305 (input_interrupt): Use signal_pid method.
3306 (getpkt): Flush after debug output and use stderr.
3307 (outreg): Use collect_register_as_string.
3308 (new_thread_notify, dead_thread_notify): New functions.
3309 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3310 and general_thread.
3311 (look_up_one_symbol): Flush after debug output.
3312 * gdbserver/server.c (step_thread, server_waiting): New variables.
3313 (start_inferior): Don't use signal_pid. Update call to mywait.
3314 (attach_inferior): Update call to mywait.
3315 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3316 (main): Don't fetch/store registers explicitly. Use
3317 set_desired_inferior. Support proposed ``Hs'' packet. Update
3318 calls to mywait.
3319 * gdbserver/server.h: Update.
3320 (struct inferior_list, struct_inferior_list_entry): New.
3321 * gdbserver/target.c (set_desired_inferior): New.
3322 (write_inferior_memory): Constify.
3323 (mywait): New function.
3324 * gdbserver/target.h: Update.
3325 (struct target_ops): New signal_pid method.
3326 (mywait): Removed macro, added prototype.
3327
3328 * gdbserver/linux-low.h (regset_func): Removed.
3329 (regset_fill_func, regset_store_func): New.
3330 (enum regset_type): New.
3331 (struct regset_info): Add type field. Use new operation types.
3332 (struct linux_target_ops): stop_pc renamed to get_pc.
3333 Add decr_pc_after_break and breakpoint_at.
3334 (get_process, get_thread_proess, get_process_thread)
3335 (strut process_info, all_processes, linux_attach_lwp)
3336 (thread_db_init): New.
3337
3338 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3339 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3340 (the_low_target): Add new members.
3341 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3342 (i386_store_fpxregset): Constify.
3343 (target_regsets): Add new kind identifier.
3344 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3345 (i386_set_pc): Add debugging.
3346 (i386_breakpoint_at): New function.
3347 (the_low_target): Add new members.
3348 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3349 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3350 (mips_breakpoint_at): New.
3351 (the_low_target): Add new members.
3352 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3353 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3354 (the_low_target): Add new members.
3355 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3356 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3357 (the_low_target): Add new members.
3358 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3359 identifier.
3360
23aa4c72
ML
33612002-06-11 Michal Ludvig <mludvig@suse.cz>
3362
3363 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3364 (unwind_tmp_obstack_free, parse_frame_info)
3365 (update_context, cfi_read_fp, cfi_write_fp)
3366 (cfi_frame_chain, cfi_init_extra_frame_info)
3367 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3368 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3369
70eb15a4
CV
33702002-06-11 Corinna Vinschen <vinschen@redhat.com>
3371
3372 * v850-tdep.c (v850_type_is_scalar): New function.
3373 (v850_use_struct_convention): Match current gcc implementation
3374 as close as possible.
3375 (v850_push_arguments): Fix stack_offset handling. Don't write
3376 struct_addr into register. This is done by v850_store_struct_return.
3377 (v850_extract_return_value): Care for structs.
3378 (v850_store_return_value): Ditto.
3379 (v850_store_struct_return): Actually write address.
3380
482a4d06
ML
33812002-06-11 Michal Ludvig <mludvig@suse.cz>
3382
3383 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3384 without debug information too.
3385
d855c300
AC
33862002-06-10 Andrew Cagney <ac131313@redhat.com>
3387
3388 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3389 Make multi-arch pure.
3390 * gdbarch.h, gdbarch.c: Re-generate.
3391 * arm-tdep.c (arm_print_float_info): Update.
3392 * arch-utils.h (default_print_float_info): Update.
3393 * arch-utils.c (default_print_float_info): Update.
3394 * infcmd.c (float_info): Update call.
3395
dd12a101
AC
33962002-06-10 Andrew Cagney <ac131313@redhat.com>
3397
3398 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3399 the front of the initialize list.
3400
101dcfbe
AC
34012002-06-10 Andrew Cagney <ac131313@redhat.com>
3402
3403 * infrun.c (struct inferior_status): Replace fields
3404 selected_frame_address and selected_level with field
3405 selected_frame_id.
3406 (save_inferior_status): Update. Use get_frame_id.
3407 (struct restore_selected_frame_args): Delete.
3408 (restore_selected_frame): Update. Use frame_find_by_id.
3409 (restore_inferior_status): Update.
3410
3411 * breakpoint.h (struct breakpoint): Change type of
3412 watchpoint_frame to frame_id.
3413 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3414 call to get_current_frame.
3415 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3416 get_current_frame.
3417 (watchpoint_check): Use frame_find_by_id.
3418
3419 * frame.h (record_selected_frame): Delete declaration.
3420 * stack.c (record_selected_frame): Delete function.
3421
3422 * frame.h (struct frame_id): Define.
3423 (get_frame_id): Declare.
3424 (frame_find_by_id): Declare.
3425 * frame.c (frame_find_by_id): New function.
3426 (get_frame_id): New function.
3427
304270b6
AV
34282002-06-10 Andrey Volkov <avolkov@transas.com>
3429
3430 * ser-e7kpc.c: Fix duplicated define and call of
3431 _initialize_ser_e7000pc
3432
2f2cf184
DJ
34332002-06-09 Daniel Jacobowitz <drow@mvista.com>
3434
3435 * signals/signals.c (target_signal_from_host): Fix #ifdef
3436 SIGRTMIN case.
3437 (do_target_signal_to_host): Likewise.
3438
caaa3122
DJ
34392002-06-09 Daniel Jacobowitz <drow@mvista.com>
3440
3441 * mips-tdep.c (mips_find_abi_section): New function.
3442 (mips_gdbarch_init): Call it.
3443
6ac5df3a
MK
34442002-06-09 Mark Kettenis <kettenis@gnu.org>
3445
3446 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3447 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3448 after Andrew's 2002-06-08 gdbarch change.
3449
82ea117a
MK
34502002-06-09 Mark Kettenis <kettenis@gnu.org>
3451
3452 * i386-linux-nat.c (suppy_gregset): Don't supply
3453 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3454 register cache.
3455 (fill_gregset): Don't fetch it under the same circumstances.
3456
3c25f8c7
AC
34572002-06-09 Andrew Cagney <cagney@redhat.com>
3458
3459 * Makefile.in (callback_h): Define.
3460 (remote_sim_h): Update path to remote-sim.h.
3461 (remote-rdp.o): Add $(callback_h).
3462 (remote-sim.o): Use $(callback_h).
3463 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3464 * remote-rdp.c: Include "gdb/callback.h".
3465
1029b7fa
MK
34662002-06-09 Mark Kettenis <kettenis@gnu.org>
3467
3468 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3469 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3470
616675d3
AC
34712002-06-08 Andrew Cagney <ac131313@redhat.com>
3472
a3efda28
AC
3473 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3474 * rdi-share/serpardr.c: Ditto.
3475 * rdi-share/unixcomm.c: Ditto.
3476 * rdi-share/serdrv.c: Ditto.
3477 * rdi-share/hostchan.h: Ditto.
3478 * rdi-share/hostchan.c: Ditto.
3479 * rdi-share/host.h: Ditto.
3480 * rdi-share/devsw.c: Ditto.
3481
c5f10366
AC
3482 * objfiles.h: Change type of obj_private to void pointer.
3483 * pa64solib.c: Update copyright. Don't include "assert.h", use
3484 strcmp instead of STREQ, use LONGEST, do not use PTR
3485 * somsolib.c: Ditto.
3486
616675d3
AC
3487 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3488 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3489 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3490
e4b415d9
AC
34912002-06-08 Andrew Cagney <ac131313@redhat.com>
3492
3493 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3494 (default_get_saved_register): Delete function.
3495 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3496 generic_unwind_get_saved_register.
3497 * gdbarch.h, gdbarch.c: Re-generate.
3498
ca0d0b52
AC
34992002-06-08 Andrew Cagney <ac131313@redhat.com>
3500
3501 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3502 generic_func_frame_chain_valid.
3503 * gdbarch.h, gdbarch.c: Re-generate.
3504 * blockframe.c (generic_func_frame_chain_valid): Only check
3505 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3506 passing FP to PC_IN_CALL_DUMMY.
3507 Fix PR gdb/360.
3508
76860b5f
AC
35092002-06-08 Andrew Cagney <ac131313@redhat.com>
3510
3511 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3512 (register_gdbarch_data): Initialize init_p.
3513 (gdbarch_data): Initialize data pointer using the init function.
3514 (init_gdbarch_data): Delete function.
3515 (gdbarch_update_p): Update.
3516 (initialize_non_multiarch): Update.
3517 (struct gdbarch): Add field initialized_p.
3518 * gdbarch.h, gdbarch.c: Re-generate.
3519
8dda9770
ML
35202002-06-07 Michal Ludvig <mludvig@suse.cz>
3521
3522 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3523 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3524 better do the things actually here.
3525 * x86-64-tdep.c (x86_64_register_name2nr): New.
3526 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3527 (x86_64_gdbarch_init): Respect the above change.
3528 * x86-64-tdep.h (x86_64_register_name2nr)
3529 (x86_64_register_nr2name): Add prototypes.
3530 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3531
3d79a47c
MS
35322002-06-06 Michael Snyder <msnyder@redhat.com>
3533
7bd91a28
MS
3534 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3535 Delete extra braces and re-indent.
3536 (d10v_store_return_value): Char return values
3d79a47c
MS
3537 must be shifted over by one byte in R0.
3538 (d10v_extract_return_value): Delete extra braces, re-indent.
3539
095a4c96
EZ
35402002-06-06 Elena Zannoni <ezannoni@redhat.com>
3541
3542 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3543 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3544 (d10v_integer_to_address): Rewrite.
3545 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3546 the d10v specific functions which take care of converting to the
3547 correct space.
3548
e8a77ca4
EZ
35492002-06-06 Elena Zannoni <ezannoni@redhat.com>
3550
3551 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3552 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3553
4f2e4a4f
AC
35542002-06-02 Andrew Cagney <ac131313@redhat.com>
3555
3556 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3557 includes.
3558 * config/tm-linux.h: Ditto.
3559 * config/alpha/tm-alphalinux.h: Ditto.
3560 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3561 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3562 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3563 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3564 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3565 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3566 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3567 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3568 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3569 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3570 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3571 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3572 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3573 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3574 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3575 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3576 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3577 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3578 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3579 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3580 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3581 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3582 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3583 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3584 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3585 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3586 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3587 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3588 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3589 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3590 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3591 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3592 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3593 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3594 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3595 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3596 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3597
ae2ab2ce
AS
35982002-05-04 Aidan Skinner <aidan@velvet.net>
3599
3600 * ada-exp.tab.c: New file
3601 * ada-exp.y: New file
3602 * ada-lang.c: New file
3603 * ada-lang.h: New file
3604 * ada-lex.c: New file
3605 * ada-lex.l: New file
3606 * ada-tasks.c: New file
3607 * ada-typeprint.c: New file
3608 * ada-valprint.c: New file
3609
0ddd0135
JT
36102002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3611
3612 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3613 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3614
750fbacc
JT
36152002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3616
3617 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3618 insetead of ppc-linux-tdep.o.
3619 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3620 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3621
df94e18a
AC
36222002-06-02 Andrew Cagney <ac131313@redhat.com>
3623
3624 2002-05-07 Christian Groessler <chris@groessler.org>
3625 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3626 bit register contents for little endian hosts.
3627
1a38ab75
AC
36282002-06-01 Andrew Cagney <ac131313@redhat.com>
3629
3630 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3631 any maintainer.
3632
8b1632ac
AC
36332002-06-01 Andrew Cagney <ac131313@redhat.com>
3634
3635 * gdbarch.h: Regenerate.
3636
627054c8
AC
36372002-06-01 Andrew Cagney <ac131313@redhat.com>
3638
3639 * MAINTAINERS: Add everyone to write-after-approval list.
3640
4f460812
AC
36412002-06-01 Andrew Cagney <ac131313@redhat.com>
3642
3643 * stack.c (frame_info): Use frame_register_unwind instead of
3644 saved_regs. Mention when the SP is on the stack or in a register.
3645
3646 * frame.h (frame_register_unwind_ftype): Define. Document.
3647 (struct frame_info): Add field register_unwind and
3648 register_unwind_cache.
3649 (frame_register_unwind): Declare.
3650 (generic_unwind_get_saved_register): Declare.
3651
3652 * frame.c (frame_register_unwind): New function.
3653 (generic_unwind_get_saved_register): New function.
3654
3655 * blockframe.c (generic_call_dummy_register_unwind): New function.
3656 (frame_saved_regs_register_unwind): New function.
3657 (set_unwind_by_pc): New function.
3658 (create_new_frame): New function.
3659 (get_prev_frame): New function.
3660
de888f76
AC
36612002-05-30 Andrew Cagney <ac131313@redhat.com>
3662
3663 * a29k-share/: Delete directory.
3664 * remote-vx29k.c: Delete file.
3665
2f2c3626
JT
36662002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3667
3668 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3669 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3670
9ce5c36a
JT
36712002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3672
3673 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3674 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3675 (sparc64nbsd-nat.o)
3676 (sparcnbsd-nat.o)
3677 (sparcnbsd-tdep.o): New dependency lists.
3678 * NEWS: Note new UltraSPARC NetBSD native configuration.
3679 * configure.host (sparc64-*-netbsd*): New host.
3680 * configure.tgt (sparc-*-netbsdelf*)
3681 (sparc-*-netbsd*): Set gdb_target to nbsd.
3682 (sparc64-*-netbsd*): New target.
3683 * sparc64nbsd-nat.c: New file.
3684 * sparcnbsd-nat.c: New file.
3685 * sparcnbsd-tdep.c: New file.
3686 * sparcnbsd-tdep.h: New file.
3687 * config/sparc/nbsd.mt: New file.
3688 * config/sparc/nbsd64.mh: New file.
3689 * config/sparc/nbsd64.mt: New file.
3690 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3691 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3692 (HOST_IPC): Remove.
3693 * config/sparc/nbsdaout.mt: Remove.
3694 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3695 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3696 (HOST_IPC): Remove.
3697 * config/sparc/nbsdelf.mt: Remove.
3698 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3699 sparc-nat.c compatiblity defines.
3700 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3701 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3702 * config/sparc/tm-nbsd64.h: New file.
3703 * config/sparc/tm-nbsdaout.h: Remove.
3704 * config/sparc/xm-nbsd.h: Remove.
3705
ef3cf062
JT
37062002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3707
3708 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3709 * sparc-tdep.c: Include osabi.h.
3710 (gdbarch_tdep): Add osabi member.
3711 (_initialize_sparc_tdep): Use gdbarch_register.
3712 (sparc_gdbarch_init): Use generic OS ABI framework.
3713 (sparc_dump_tdep): New function.
3714
ee8ff470
KB
37152002-05-30 Kevin Buettner <kevinb@redhat.com>
3716
3717 * corefile.c (do_captured_read_memory_integer): Return non-zero
3718 result.
3719 (safe_read_memory_integer): Copy result of memory read when
3720 status is non-zero. Also, add comments.
3721
7b112f9c
JT
37222002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3723
3724 * Makefile.in (ppc_tdep_h): Define.
3725 (ppc-linux-nat.o)
3726 (ppc-linux-tdep.o)
3727 (rs6000-tdep.o): Use $(ppc_tdep_h).
3728 (ppc-sysv-tdep.o)
3729 (ppcnbsd-nat.o)
3730 (ppcnbsd-tdep.o): New dependency lists.
3731 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3732 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3733 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3734 (ppc_sysv_abi_broken_use_struct_convention)
3735 (ppc_sysv_abi_use_struct_convention)
3736 (ppc_sysv_abi_push_arguments): Move to...
3737 * ppc-sysv-tdep.c: ...here.
3738 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3739 * rs6000-tdep.c (process_note_abi_tag_sections)
3740 (get_elfosabi): Remove.
3741 (rs6000_gdbarch_init): Use generic OS ABI framework.
3742 (rs6000_dump_tdep): New function.
3743 (_initialize_rs6000_tdep): Use gdbarch_register.
3744 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3745 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3746 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3747 of ppc-linux-tdep.o.
3748 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3749 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3750 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3751 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3752 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3753 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3754
480dd42a
JB
37552002-05-29 Jim Blandy <jimb@redhat.com>
3756
3757 * macroscope.c (default_macro_scope): Put `void' in empty argument
3758 list.
3759
4182591f
AC
37602002-05-29 Andrew Cagney <ac131313@redhat.com>
3761
3762 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3763 * arch-utils.c: Include "sim-regno.h".
3764 * gdbarch.sh: Don't include "sim-regno.h".
3765 * gdbarch.h, gdbarch.c: Regenerate.
3766 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3767 here.
3768 * arch-utils.h (legacy_register_sim_regno): To here.
3769 * remote-sim.c (legacy_register_sim_regno): Move function from
3770 here.
3771 * arch-utils.c (legacy_register_sim_regno): To here.
3772
8238d0bf
AC
37732002-05-28 Andrew Cagney <ac131313@redhat.com>
3774
3775 * sim-regno.h: New file.
3776 * Makefile.in (sim_regno_h): Define.
3777 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3778 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3779 (legacy_register_sim_regno): New function.
3780 (one2one_register_sim_regno): New function.
3781 (gdbsim_fetch_register): Rewrite.
3782 (gdbsim_store_register): Only store a register when
3783 REGISTER_SIM_REGNO is valid.
3784 * d10v-tdep.c: Include "sim-regno.h".
3785 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3786 (d10v_ts3_register_sim_regno): Ditto.
3787 * gdbarch.sh: Include "sim-regno.h".
3788 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3789 * gdbarch.h, gdbarch.c: Regenerate.
3790 * arch-utils.h (default_register_sim_regno): Delete declaration.
3791 * arch-utils.c (default_register_sim_regno): Delete function.
3792
485721b1
JT
37932002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3794
3795 * ppcnbsd-nat.c: Rewrite.
3796 * ppcnbsd-tdep.c: New file.
3797 * ppcnbsd-tdep.h: New file.
3798 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3799 solib.o, and solib-svr4.o.
3800 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3801 nbsd-tdep.o, and corelow.o.
3802
697f244d
AC
38032002-05-28 Andrew Cagney <ac131313@redhat.com>
3804
3805 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3806 `tr' and `sed'. Mention that `broken' targets are not expected to
3807 build.
3808
f08caad1 38092002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3810
3811 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3812 Let PC point right after the prologue before looking up symbols.
3813
3139facc
MH
38142002-05-27 Martin M. Hunt <hunt@redhat.com>
3815
3816 * i386-tdep.c (i386_register_virtual_type): Return
3817 builtin_type_vec128i for SSE registers.
3818
3819 * gdbtypes.h (builtin_type_vec128i): Declare.
3820
3821 * gdbtypes.c (build_builtin_type_vec128i): New function.
3822 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3823 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3824 (build_gdbtypes): Initialize new builtin vector types.
3825 (_initialize_gdbtypes): Register new vector types with gdbarch.
3826
6e3ba3b8
JT
38272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3828
3829 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3830 since it has been multi-arch'd.
3831 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3832 Move Alpha and VAX multi-arch news entries to same section
3833 as other multi-arch news.
3834
93d5585d
JT
38352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3836
3837 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3838 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3839 static. Rename some register numbers to put them in ns32k-tdep
3840 private namespace.
3841 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3842 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3843 functions.
3844 (_initialize_ns32k_tdep): Use gdbarch_register.
3845 * ns32k-tdep.h: New file.
3846 * ns32knbsd-tdep.c: New file.
3847 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3848 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3849 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3850 REGISTER_BYTES, REGISTER_BYTE): Remove.
3851 * config/ns32k/tm-ns32k.h: New file.
3852 * config/ns32k/tm-umax.h: Remove.
3853
efb2c70e
JT
38542002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3855
3856 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3857 ns32k_store_struct_return, ns32k_extract_return_value,
3858 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3859 functions.
3860 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3861 ns32k_saved_pc_after_call.
3862 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3863 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3864 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3865 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3866 ns32k_extract_struct_value_address.
3867
7bcc927b
JT
38682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3869
3870 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3871 ns32k_fix_call_dummy): New.
3872 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3873 ns32k_call_dummy_words.
3874 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3875 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3876 CALL_DUMMY_NARGS): Remove.
3877 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3878
78f9d765
JT
38792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3880
3881 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3882 ns32k_frame_saved_pc, ns32k_frame_args_address,
3883 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3884 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3885 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3886 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3887 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3888 (BREAKPOINT): Remove..
3889 (FRAME_CHAIN): Define as ns32k_frame_chain.
3890 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3891 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3892 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3893 (FRAME_FIND_SAVED_REGS): Remove.
3894 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3895 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3896 (POP_FRAME): Define as ns32k_pop_frame.
3897
f2c762e0
JT
38982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3899
3900 * ns32k-tdep.c (ns32k_register_byte_32082,
3901 ns32k_register_byte_32382, ns32k_register_raw_size,
3902 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3903 functions.
3904 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3905 ns32k_register_byte_32382.
3906 * config/ns32k/tm-umax.h: Update copyright years.
3907 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3908 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3909 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3910 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3911 (ns32k_get_enter_addr): Fix prototype.
3912
af137673
JT
39132002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3914
3915 * ns32k-tdep.c: Update copyright years.
3916 (ns32k_register_name_32082): New function.
3917 (ns32k_register_name_32382): Ditto.
3918 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3919 (REGISTER_NAME): Define as ns32k_register_name_32382.
3920 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3921 (REGISTER_NAME): Define as ns32k_register_name_32082.
3922
a8bc7b56
JB
39232002-05-24 Jim Blandy <jimb@redhat.com>
3924
3925 * dwarf2read.c (free_line_header): Use xfree, not free.
3926
83a45910
JT
39272002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3928
3929 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3930 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3931
0db71247
AC
39322002-05-23 Andrew Cagney <ac131313@redhat.com>
3933
3934 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3935
b9e5e4dd
AC
39362002-05-23 Andrew Cagney <ac131313@redhat.com>
3937
3938 From Ross Alexander at NEC Europe:
3939 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3940
de530e84
MS
39412002-05-23 Michael Snyder <msnyder@redhat.com>
3942
3943 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3944 for input, rather than parse_and_eval_address.
3945
b91b96f4
AC
39462002-05-23 Andrew Cagney <ac131313@redhat.com>
3947
3948 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3949 * Makefile.in (sim_d10v_h): Update definition.
3950
8b279e7a
AC
39512002-05-24 Andrew Cagney <cagney@redhat.com>
3952
3953 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3954 change `2002-05-22 Michael Snyder' below.
3955 (d10v_push_arguments): Ditto.
3956 (d10v_extract_return_value): Ditto.
3957
0a3d0425
JB
39582002-05-23 Jim Blandy <jimb@redhat.com>
3959
3960 * macrotab.c (check_for_redefinition): Don't complain if the new
3961 definition is the same as the previous one. Take more arguments
3962 to allow the comparison.
3963 (macro_define_object, macro_define_function): Pass more arguments
3964 to check_for_redefinition.
3965
78eac43e
MS
39662002-05-22 Michael Snyder <msnyder@redhat.com>
3967
3968 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3969 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3970 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3971 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3972 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3973 Add a temp variable to save a call (and a memory read).
3974 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3975 if possible (so that PC_IN_CALL_DUMMY will work).
3976
9bc1edb8
CV
39772002-05-22 Corinna Vinschen <vinschen@redhat.com>
3978
3979 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3980
005ef3d2
ML
39812002-05-22 Michal Ludvig <mludvig@suse.cz>
3982
3983 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3984 fde->cie_ptr.
3985 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3986 (dwarf2_build_frame_info): Add offset to fde->initial_location
3987 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
3988 (execute_stack_op): Change type of 'result' from ULONGEST to
3989 CORE_ADDR.
005ef3d2 3990
fcf4f891
JT
39912002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3992
3993 * config/alpha/tm-nbsd.h: Include solib.h.
3994
cfef91e4
JT
39952002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3996
3997 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3998 assumptions about the host's byte order.
3999
9964235a
JT
40002002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4001
4002 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4003 to dependency list.
4004 * alphanbsd-tdep.c: Include solib-svr4.h.
4005 * shnbsd-tdep.c: Ditto.
4006
9eeef8ef
JT
40072002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4008
4009 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4010 nbsd-tdep.h to dependency list.
4011 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4012 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4013 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4014 nbsdaout.mh and nbsdelf.mh consistently.
4015 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4016 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4017 nbsdaout.mt and nbsdelf.mh consistently.
4018 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4019 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4020 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4021 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4022 a.out shared library stuff from here...
4023 * config/nm-nbsdaout.h: ...to here.
4024 * config/tm-nbsd.h: Remove.
4025 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4026 * config/arm/nbsd.mh: Remove.
4027 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4028 nbsd-tdep.o.
4029 * config/arm/nbsdaout.mh: New file.
4030 * config/arm/nbsdelf.mh: New file.
4031 * config/arm/nm-nbsdaout.h: New file.
4032 * config/i386/nbsd.mh: Remove.
4033 * config/i386/nbsd.mt: Remove.
4034 * config/i386/nbsdaout.mh: New file.
4035 * config/i386/nbsdaout.mt: New file.
4036 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4037 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4038 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4039 i386_register_u_addr): Remove.
4040 * config/i386/nm-nbsdaout.h: New file.
4041 * config/i386/nm-nbsdelf.h: Remove.
4042 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4043 (USE_STRUCT_CONVENTION): Remove.
4044 * config/i386/tm-nbsdaout.h: New file.
4045 * config/i386/tm-nbsdelf.h: Remove.
4046 * config/m68k/nbsd.mh: Remove.
4047 * config/m68k/nbsd.mt: Remove.
4048 * config/m68k/nbsdaout.mh: New file.
4049 * config/m68k/nbsdaout.mt: New file.
4050 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4051 * config/m68k/nm-nbsdaout.h: New file.
4052 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4053 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4054 * config/ns32k/nbsd.mh: Remove.
4055 * config/ns32k/nbsd.mt: Remove.
4056 * config/ns32k/nbsdaout.mh: New file.
4057 * config/ns32k/nbsdaout.mt: New file.
4058 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4059 * config/ns32k/nm-nbsdaout.h: New file.
4060 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4061 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4062 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4063 (SVR4_SHARED_LIBS): Remove.
4064 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4065 * config/sparc/nbsd.mh: Remove.
4066 * config/sparc/nbsd.mt: Remove.
4067 * config/sparc/nbsdaout.mh: New file.
4068 * config/sparc/nbsdaout.mt: New file.
4069 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4070 * config/sparc/nbsdelf.mt: New file.
4071 * config/sparc/nm-nbsdaout.h: New file.
4072 * config/sparc/nm-nbsdelf.h: Remove.
4073 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4074 * config/sparc/tm-nbsdaout.h: New file.
4075
257ce470
JT
40762002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4077
4078 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4079 mipsnbsd-tdep.c
4080 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4081
76a6d5fe
JT
40822002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4083
4084 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4085 shnbsd-nat.c.
4086 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4087
45888261
JT
40882002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4089
4090 * NEWS: Note new MIPS NetBSD native configuration.
4091 * configure.host (mips*-*-netbsd*): New host.
4092 * configure.tgt (mips*-*-netbsd*): New target.
4093 * mipsnbsd-nat.c: New file.
4094 * mipsnbsd-tdep.c: New file.
4095 * mipsnbsd-tdep.h: New file.
4096 * config/mips/nbsd.mh: New file.
4097 * config/mips/nbsd.mt: New file.
4098 * config/mips/nm-nbsd.h: New file.
4099 * config/mips/tm-nbsd.h: New file.
4100
70f80edf
JT
41012002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4102
4103 * Makefile.in (SFILES): Add osabi.c.
4104 (COMMON_OBS): Add osabi.o.
4105 (osabi.o): New dependency list.
4106 * osabi.c: New file.
4107 * osabi.h: New file.
4108 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4109
4110 * Makefile.in (alpha_tdep_h): Define and use instead of
4111 alpha-tdep.h.
4112 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4113 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4114 Remove.
4115 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4116 * alpha-tdep.h: Include osabi.h.
4117 (alpha_abi): Remove.
4118 (gdbarch_tdep): Use generic OS ABI framework.
4119 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4120 gdbarch_register_osabi.
4121 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4122 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4123 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4124
4125 * Makefile.in (sh_tdep_h): Add osabi.h.
4126 * sh-tdep.h (sh_osabi): Remove.
4127 (gdbarch_tdep): Use generic OS ABI framework.
4128 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4129 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4130 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4131 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4132
4133 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4134 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4135 gdbarch_register_osabi.
4136 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4137 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4138 (get_elfosabi): Rename to...
4139 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4140 ABI framework support routines.
4141 (arm_gdbarch_init): Use generic OS ABI framework.
4142 (arm_dump_tdep): Likewise.
4143 (_initialize_arm_tdep): Likewise.
4144 * arm-tdep.h: Include osabi.h.
4145 (arm_abi): Remove.
4146 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4147 osabi member.
4148 (arm_gdbarch_register_os_abi): Remove prototype.
4149 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4150 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4151
4152 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4153 * mips-tdep.c: Include osabi.h.
4154 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4155 OS ABI framework.
4156
d194345b
KH
41572002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4158
4159 * h8300-tdep.c: Fix formatting.
4160
70c6b0d1
EZ
41612002-05-20 Elena Zannoni <ezannoni@redhat.com>
4162
4163 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4164 printing vector registers.
4165
165b8e33
AC
41662002-05-19 Andrew Cagney <ac131313@redhat.com>
4167
4168 From Fernando Nasser:
4169 * remote.c (remote_async_open_1): Re-throw the exception when the
4170 connection fails.
4171 (remote_cisco_open): Ditto.
4172 (remote_open_1): Ditto.
4173
36918e70
AC
41742002-05-19 Andrew Cagney <ac131313@redhat.com>
4175
4176 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4177 (remote_start_remote): Add uiout parameter. Pass through to
4178 remote_start_remote_dummy.
4179 (remote_open_1): Use catch_exception instead of catch_errors.
4180 (remote_async_open_1): Ditto.
4181 (remote_cisco_open): Ditto.
4182
ae44c0c4
AC
41832002-05-19 Andrew Cagney <ac131313@redhat.com>
4184
4185 * remote.c (remote_start_remote): Replace PTR with void pointer.
4186 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4187 static.
4188
8efe637d
AC
41892002-05-18 Andrew Cagney <ac131313@redhat.com>
4190
4191 * gdb_indent.sh: Allow the script to be run in the sim directory.
4192
2f1b5984
MK
41932002-05-18 Mark Kettenis <kettenis@gnu.org>
4194
f0f625e2
MK
4195 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4196 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4197
2f1b5984
MK
4198 * corelow.c (core_open): Only call set_gdbarch_from_file if
4199 exec_bfd is NULL.
4200
fc974602
AV
42012002-05-17 Andrey Volkov <avolkov@transas.com>
4202
4203 * h8300-tdep.c: Add support of EXR register
4204 * config/h8300/tm-h8300.h: Ditto.
4205
906709f4
AV
42062002-05-17 Andrey Volkov <avolkov@transas.com>
4207
4208 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4209
6e591d68
AV
42102002-05-17 Andrey Volkov <avolkov@transas.com>
4211
4212 * h8300-tdep.c: Change literal regnums to REGNO.
4213
84f0252a
JB
42142002-05-17 Jim Blandy <jimb@redhat.com>
4215
e0e9281e
JB
4216 * NEWS: Note addition of macro support.
4217
84f0252a
JB
4218 Expand preprocessor macros in C expressions.
4219 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4220 (scan_macro_expansion, scanning_macro_expansion,
4221 finished_macro_expansion): New function declarations.
4222 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4223 variable declarations.
4224 * parser-defs.h (expression_context_pc): New declaration.
4225 * parse.c (expression_context_pc): New variable.
4226 (parse_exp_1): Set expression_context_pc, as well as
4227 expression_context_block.
4228 * c-exp.y (yylex): If we're not already reading the result of a
4229 macro expansion, try to macro-expand the next token. When we're
4230 done scanning a macro expansion, switch back to the mainline text.
4231 Commas and `if's in a macro's expansion don't terminate the input.
4232 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4233 (macro_original_text, macro_expanded_text,
4234 expression_macro_lookup_func, expression_macro_lookup_baton): New
4235 variables.
4236 (scan_macro_expansion, scanning_macro_expansion,
4237 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4238 c_preprocess_and_parse): New functions.
4239 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4240 c_preprocess_and_parse, instead of c_parse.
4241 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4242 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4243
1c509ca8
JR
4244Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4245
4246 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4247 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4248 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4249
2250ee0c
CV
42502002-05-17 Corinna Vinschen <vinschen@redhat.com>
4251
4252 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4253
ab3b8126
JT
42542002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4255
4256 * Makefile.in (sh_tdep_h): Define and use.
4257 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4258 register enum): Move to...
4259 * * sh-tdep.h: ...here.
4260 * sh-tdep.c: Include sh-tdep.h.
4261 * sh3-rom.c: Likewise.
4262 * shnbsd-tdep.c: Likewise.
4263
ed9d4749
MS
42642002-05-16 Michael Snyder <msnyder@redhat.com>
4265
4266 * arm-tdep.c: Spelling fix in comment.
4267
2e276125
JB
42682002-05-16 Jim Blandy <jimb@redhat.com>
4269
6821892e
JB
4270 Add commands for manually expanding macros and showing their
4271 definitions.
4272 * macrocmd.c, macroscope.c, macroscope.h: New files.
4273 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4274 (macroscope_h): New variable.
4275 (HFILES_NO_SRCDIR): Add macroscope.h.
4276 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4277 (macroscope.o, macrocmd.o): New rules.
4278
2e276125
JB
4279 Teach the Dwarf 2 reader to read macro information.
4280 * dwarf2read.c: #include "macrotab.h".
4281 (dwarf_macinfo_buffer): New variable.
4282 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4283 dwarf_macinfo_size.
4284 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4285 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4286 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4287 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4288 dwarf2_macro_spaces_in_definition): New complaints.
4289 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4290 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4291 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4292 the partial symbol table.
4293 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4294 from what's recorded in the partial symbol table.
4295 (read_file_scope): If the compilation unit has a
4296 `DW_AT_macro_info' attribute, read its macro information.
4297 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4298
2f53fe6c
DJ
42992002-05-16 Daniel Jacobowitz <drow@mvista.com>
4300
4301 Fix PR gdb/546
4302 * ser-tcp.c: Don't include <netinet/udp.h>.
4303
2be99286
SC
43042002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4305
4306 * MAINTAINERS: Update my email address.
4307
c9af212b 43082002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4309
4310 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4311 include file of the same name.
4312
bf5f1a52
CV
43132002-05-16 Corinna Vinschen <vinschen@redhat.com>
4314
4315 * configure.tgt: Mark v850 as multi-arched.
4316 * config/v850/tm-v850.h: Remove file.
4317 * config/v850/v850.mt: Eliminate TM_FILE.
4318
435e042a
CV
43192002-05-16 Corinna Vinschen <vinschen@redhat.com>
4320
4321 * v850-tdep.c: Full multi-arch.
4322 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4323 Define GDB_MULTI_ARCH to 2.
4324
9819c6c8
PM
43252002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4326
4327 * p-exp.y (current_type): New static variable.
4328 Carries the type of the expression at the position that is parsed.
4329 (push_current_type, pop_current_type): Two new functions. Used
4330 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4331 (search_field): New static variable. Set to one after parsing a point
4332 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4333 (FIELDNAME): New token. After a point only a token belonging to
4334 current_type type definition is allowed.
4335 (all over token rules): reset and change current_type according
4336 to rules.
4337 (exp '[' rule): insert implicit array index field if
4338 exp is a pascal string type.
4339
3a06899a
CV
43402002-05-16 Corinna Vinschen <vinschen@redhat.com>
4341
4342 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4343 frame info. Use frame_info's saved_regs instead of matching member
4344 in extra_frame_info throughout.
4345 (v850_frame_init_saved_regs): New function.
4346 (v850_init_extra_frame_info): Move most functionality into
4347 v850_frame_init_saved_regs().
4348 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4349 (v850_frame_find_saved_regs): Remove declaration.
4350 (FRAME_FIND_SAVED_REGS): Remove definition.
4351 (v850_frame_init_saved_regs): Add declaration.
4352 (FRAME_INIT_SAVED_REGS): Add definition.
4353
6ed14b0e
CV
43542002-05-16 Corinna Vinschen <vinschen@redhat.com>
4355
4356 * v850-tdep.c: Begin multi-arch'ing v850.
4357 (v850_target_architecture_hook): Remove function.
4358 (v850_gdbarch_init): New function. Add code previously in
4359 v850_target_architecture_hook().
4360 (_initialize_v850_tdep): Don't set target_architecture_hook.
4361 Call register_gdbarch_init() instead.
4362
42725910
DJ
43632002-05-16 Daniel Jacobowitz <drow@mvista.com>
4364
4365 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4366 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4367 (fixup_class_method_type): Likewise.
4368
0bc68c49
DJ
43692002-05-15 Daniel Jacobowitz <drow@mvista.com>
4370
4371 From Martin Pool <mbp@samba.org>:
4372 * gdbserver/server.c (gdbserver_usage): New function.
4373 (main): Call it.
4374
99d9066e
JB
43752002-05-15 Jim Blandy <jimb@redhat.com>
4376
4377 Add macro structures to GDB's symbol tables. Nobody puts anything
4378 in them yet.
4379 * symtab.h (struct symtab): New member: `macro_table'.
4380 * buildsym.h (pending_macros): New global variable.
4381 * buildsym.c: #include "macrotab.h".
4382 (buildsym_init): Initialize `pending_macros'.
4383 (end_symtab): If we found macro information while reading a CU's
4384 debugging info, do build a symtab structure for it. Make the
4385 symtab point to the macro information, and clear the
4386 `pending_macros' pointer which held it while we were reading the
4387 debug info.
4388 (really_free_pendings): Free any pending macro table.
4389 * objfiles.h (struct objfile): New member: `macro_cache'.
4390 * objfiles.c (allocate_objfile): Set allocate and free functions
4391 for the macro cache's objstack.
4392 (free_objfile): Empty the macro cache's obstack.
4393 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4394 set new allocate and free functions for it.
4395 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4396 free functions for the macro cache's objstack. (Why is this
4397 function building its own objfile?)
4398 * symmisc.c (print_objfile_statistics): Print statistics on the
4399 macro bcache.
4400 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4401
c899585b
RE
44022002-05-15 Richard Earnshaw <rearnsha@arm.com>
4403
4404 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4405 (REGISTER_U_ADDR): Delete definition.
4406 (arm_register_u_addr): Delete declaration.
4407
a6cdd8c5
RE
44082002-05-15 Richard Earnshaw <rearnsha@arm.com>
4409
4410 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4411 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4412
fd3a5ca1
DJ
44132002-05-14 Daniel Jacobowitz <drow@mvista.com>
4414
4415 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4416 stop_at -> stop_pc.
4417
c97dcfc7
AC
44182002-05-14 Andrew Cagney <ac131313@redhat.com>
4419
4420 * regcache.c (register_valid): Revise comments refering to "Not
4421 available" and "unavailable".
4422 * frame.c (frame_register_read): Ditto.
4423 * findvar.c (value_of_register): Ditto.
4424
93021b7d
AC
44252002-05-15 Andrew Cagney <cagney@redhat.com>
4426
4427 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4428 (remote-sim.o): Update dependencies.
4429 (d10v-tdep.o): Specify dependencies.
4430 (sim_d10v_h): Define.
4431
a86bc61c
JB
44322002-05-14 Jim Blandy <jimb@redhat.com>
4433
4434 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4435 * macrotab.c (macro_lookup_inclusion, find_definition,
4436 new_macro_table): Same.
4437
4438 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4439 not `! strcmp ()'. This is a dubious improvement.
4440 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4441
4442 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4443 although it's not necessary, to avoid a warning.
4444
2fdde8f8
DJ
44452002-05-14 Daniel Jacobowitz <drow@mvista.com>
4446
4447 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4448 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4449 TYPE_INSTANCE_FLAGS.
4450 (struct main_type): New.
4451 (struct type): Move most members to struct main_type. Change
4452 cv_type and as_type to new type_chain member. Add instance_flags.
4453 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4454 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4455 (finish_cv_type): Remove prototype.
4456 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4457 Set TYPE_CHAIN.
4458 (alloc_type_instance): New function.
4459 (smash_type): New function.
4460 (make_pointer_type, make_reference_type, make_function_type)
4461 (smash_to_member_type, smash_to_method_type): Call smash_type.
4462 (make_qualified_type): New function.
4463 (make_type_with_address_space): Call make_qualified_type.
4464 (make_cv_type): Likewise.
4465 (finish_cv_type): Remove unnecessary function.
4466 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4467 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4468 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4469 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4470 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4471 * hpread.c (hpread_read_struct_type): Likewise.
4472 * stabsread.c (read_struct_type): Likewise.
4473
843fedf4
EZ
44742002-05-14 Elena Zannoni <ezannoni@redhat.com>
4475
4476 * configure.tgt: Add a catch all sh* target, for cases like
4477 sh[2,3,4]-elf and sh-hms.
4478
05a6c72c
KS
44792002-05-14 Keith Seitz <keiths@redhat.com>
4480
4481 * event-loop.c (create_file_handler): Don't do anything but
4482 update data when we are given a fd which we are already
4483 monitoring.
4484
5d085aaf
ML
44852002-05-14 Michal Ludvig <mludvig@suse.cz>
4486
4487 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4488 (update_context): Use __func__ in warnings.
4489
9db8d71f
DJ
44902002-05-14 Daniel Jacobowitz <drow@mvista.com>
4491
4492 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4493 and tcp_close to net_open and net_close.
4494 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4495 using UDP if requested. Don't try to disable Nagle on UDP
4496 sockets.
4497 * remote.c (remote_serial_open): New function. Warn about UDP.
4498 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4499
5dbc6baa
EZ
45002002-05-13 Elena Zannoni <ezannoni@redhat.com>
4501
4502 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4503
cc3023f7
EZ
45042002-05-13 Elena Zannoni <ezannoni@redhat.com>
4505
4506 * configure.tgt: Remove sh-hms target.
4507 * MAINTAINERS: Don't list sh-hms as a separate target.
4508
ec2bcbe7
JB
45092002-05-13 Jim Blandy <jimb@redhat.com>
4510
4511 Add first preprocessor macro-expansion files.
4512 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4513 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4514 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4515 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4516 (COMMON_OBS): Add macrotab.o, macroexp.o.
4517 (macroexp.o, macrotab.o): New rules.
4518
6d531722
AC
45192002-05-13 Andrew Cagney <ac131313@redhat.com>
4520
4521 * config/m88k/tm-m88k.h: Update copyright.
4522 (m88k_target_write_pc): Declare
4523 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4524 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4525 (SHIFT_INST_REGS): Update definition.
4526 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4527 using old definition of TARGET_WRITE_PC.
4528 * regcache.c (generic_target_write_pc): Delete code handling
4529 NNPC_REGNUM.
4530 * gdbarch.sh (NNPC_REGNUM): Delete.
4531 * gdbarch.h, gdbarch.c: Regenerate.
4532
3e3f2739
RE
45332002-05-13 Richard Earnshaw <rearnsha@arm.com>
4534
4535 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4536 builtin reg number.
4537
0004e5a2
DJ
45382002-05-13 Daniel Jacobowitz <drow@mvista.com>
4539
4540 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4541 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4542 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4543 access macros.
4544 * c-typeprint.c (cp_type_print_method_args): Likewise.
4545 (c_type_print_args): Likewise.
4546 * d10v-tdep.c (d10v_push_arguments): Likewise.
4547 (d10v_extract_return_value): Likewise.
4548 * expprint.c (print_subexp): Likewise.
4549 * gdbtypes.c (lookup_primitive_typename): Likewise.
4550 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4551 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4552 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4553 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4554 (TYPE_VECTOR): Likewise.
4555 * hpread.c (hpread_read_struct_type)
4556 (fix_static_member_physnames, fixup_class_method_type)
4557 (hpread_type_lookup): Likewise.
4558 * mdebugread.c (parse_symbol, parse_type): Likewise.
4559 * p-lang.c (is_pascal_string_type): Likewise.
4560 * valops.c (hand_function_call): Likewise.
4561 * x86-64-tdep.c (classify_argument): Likewise.
4562
4563 * hpread.c (hpread_read_function_type)
4564 (hpread_read_doc_function_type): Call replace_type.
4565 * dstread.c (create_new_type): Delete.
4566 (decode_dst_structure, process_dst_function): Call alloc_type.
4567 Use type access macros.
4568
dff95cc7
MK
45692002-05-12 Mark Kettenis <kettenis@gnu.org>
4570
4571 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4572 the're not supported by the current architecture.
4573 (i387_fill_fxsave): Likewise.
4574
bbcd32ad
FF
45752002-05-12 Fred Fish <fnf@redhat.com>
4576
4577 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4578 sect_index_xxx members to index the first slot in section_offsets
4579 if all of the section_offsets are zero.
4580
89cf4787
MK
45812002-05-12 Mark Kettenis <kettenis@gnu.org>
4582
4583 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4584 checked in with last change.
4585
1f77ffc5
MK
45862002-05-12 Mark Kettenis <kettenis@gnu.org>
4587
4588 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4589 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4590 config.sub.
4591
89b8b4a9
DJ
45922002-05-12 Daniel Jacobowitz <drow@mvista.com>
4593
4594 * Makefile.in: Update dependencies.
4595
14a5e767
AC
45962002-05-11 Andrew Cagney <ac131313@redhat.com>
4597
4598 * language.c (local_hex_string_custom): Simplify. Do not depend
4599 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4600
4601 * memattr.c (mem_info_command): Replace calls to
4602 longest_local_hex_string and longest_local_hex_string_custom.
4603 * buildsym.c (make_blockvector): Ditto.
4604 * solib.c (info_sharedlibrary_command): Ditto.
4605 * tracepoint.c (tracepoints_info): Ditto.
4606 * symtab.c (print_msymbol_info): Ditto.
4607
4608 * language.c (local_hex_string): Delete.
4609 (local_hex_string_custom): Delete.
4610 (longest_local_hex_string): Rename to local_hex_string.
4611 (longest_local_hex_string_custom): Rename to
4612 local_hex_string_custom.
4613 * language.h (local_hex_string): Change parameter type to LONGEST.
4614 (local_hex_string_custom): Ditto.
4615 (longest_local_hex_string): Delete declaration.
4616 (longest_local_hex_string_custom): Ditto.
4617
4618 * solib.c: Update copyright.
4619 * memattr.c: Update copyright.
4620
13d01224
AC
46212002-05-11 Andrew Cagney <ac131313@redhat.com>
4622
4623 * arch-utils.h (legacy_register_to_value): Declare.
4624 (legacy_value_to_register): Declare.
4625 (legacy_convert_register_p): Declare.
4626 * arch-utils.c (legacy_register_to_value): New function.
4627 (legacy_value_to_register): New function.
4628 (legacy_convert_register_p): New function.
4629
4630 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4631 (VALUE_TO_REGISTER): Define.
4632 (CONVERT_REGISTER_P): Define.
4633 * gdbarch.h, gdbarch.c: Regenerate.
4634
4635 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4636 VALUE_TO_REGISTER.
4637 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4638 CONVERT_REGISTER_P.
4639
4a1970e4
DJ
46402005-05-11 Daniel Jacobowitz <drow@mvista.com>
4641 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4642
4643 * Makefile.in: Update dependencies for valops.c.
4644 * valops.c: Include "gdb_assert.h".
4645 (typecmp): Skip THIS parameter to methods.
4646 (find_method_list): Remove static_memfuncp argument,
4647 update callers. Check for stub methods.
4648 (find_value_oload_method_list): Don't set *static_memfuncp.
4649 (find_overload_match): Don't check for stub methods. Assert
4650 that methods are not stubbed. Handle static methods.
4651 (value_find_oload_method_list): Remove static_memfuncp argument.
4652 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4653 to the argument list for static stub methods.
4654 * value.h (value_find_oload_method_list): Update prototype.
4655
b2e75d78
AC
46562002-05-11 Andrew Cagney <ac131313@redhat.com>
4657
4658 * arch-utils.h (generic_register_size): Declare.
4659 (generic_register_raw_size, generic_register_virtual_size): Delete
4660 declarations.
4661 * arch-utils.c (generic_register_raw_size): Delete.
4662 (generic_register_size): New function.
4663 (generic_register_virtual_size): Delete.
4664
4665 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4666 default generic_register_size.
4667 * gdbarch.h, gdbarch.c: Re-generate.
4668
4669 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4670 register_virtual_size.
4671 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4672 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4673
451fbdda
AC
46742002-05-11 Andrew Cagney <ac131313@redhat.com>
4675
4676 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4677 * gdbarch.h, gdbarch.c: Regenerate.
4678 * gnu-v3-abi.c: Update copyright.
4679 (vtable_address_point_offset): Update.
4680 (gnuv3_rtti_type): Update.
4681 (gnuv3_baseclass_offset): Update.
4682 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4683 (init_fetch_link_map_offsets): Update.
4684 * remote.c (get_remote_state): Update.
4685
6d2f5cea
DJ
46862002-05-11 Daniel Jacobowitz <drow@mvista.com>
4687
4688 * TODO: Remove value_headof/value_from_vtable_info comment.
4689 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4690 * values.c (value_headof, value_from_vtable_info): Delete.
4691 * value.h (value_from_vtable_info): Delete prototype.
4692
d2324da4
AC
46932002-05-11 Andrew Cagney <ac131313@redhat.com>
4694
4695 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4696 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4697 $(gdb_regex_h).
4698 (gdb_assert_h): Define.
4699 (gdb_wait_h): Define.
4700 (gdb_regex_h): Define.
4701
5c717440
DJ
47022002-05-11 Daniel Jacobowitz <drow@mvista.com>
4703
4704 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4705 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4706
6c7861b3
JT
47072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4708
4709 * nbsd-tdep.c: Fix comment.
4710
ea5bc2a6
JT
47112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4714 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4715 (nbsd-tdep.o): New dependency list.
4716 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4717 nbsd-tdep.h.
4718 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4719 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4720 * nbsd-tdep.c: New file.
4721 * nbsd-tdep.h: New file.
4722 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4723 nbsd-tdep.h.
4724 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4725 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4726 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4727 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4728
b28da865
JT
47292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4730
4731 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4732 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4733 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4734 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4735 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4736 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4737
4b8ff1fa
JT
47382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4739
4740 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4741 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4742 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4743 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4744 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4745 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4746 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4747
dfe6eb1f
JT
47482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4749
4750 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4751 fetch_elfcore_registers to...
4752 * i386nbsd-tdep.c: ...here.
4753 (i386nbsd_use_struct_convention): Rename to...
4754 (i386nbsd_aout_use_struct_convention): ...this.
4755 (i386nbsd_supply_reg): New function.
4756 (i386nbsd_fill_reg): New function.
4757 (fetch_core_registers): Use i386nbsd_supply_reg.
4758 (fetch_elfcore_registers): Likewise.
4759 (_initialize_i386nbsd_tdep): New function.
4760 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4761 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4762 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4763 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4764 (i386nbsd_aout_use_struct_convention): ...this.
4765
20cb8cda
JT
47662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4767
4768 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4769 (store_inferior_registers): Use shnbsd_fill_reg.
4770 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4771 sh_nbsd_supply_register): Collapse into...
4772 (shnbsd_supply_reg): ...this.
4773 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4774 (shnbsd_fill_reg): ...this.
4775 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4776 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4777 (fetch_core_registers): Use shnbsd_supply_reg.
4778 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4779 (sh_nbsd_core_fns): Rename to...
4780 (shnbsd_core_fns): ...this.
4781 (sh_nbsd_elfcore_fns): Rename to...
4782 (shnbsd_elfcore_fns): ...this.
4783 (sh_nbsd_init_abi): Rename to...
4784 (shnbsd_init_abi): ...this.
4785 (_initialize_sh_nbsd_tdep): Rename to...
4786 (_initialize_shnbsd_tdep): ...this.
4787 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4788 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4789 sh_nbsd_fill_register): Remove prototypes.
4790 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4791
e750d25e
JT
47922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4793
4794 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4795 (i387-nat.o): Delete dependency list.
4796 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4797 (x86-64-linux-nat.o): Likewise.
4798 * i387-nat.c: Delete file, moving contents to...
4799 * i387-tdep.c: ...here.
4800 * i387-nat.h: Rename...
4801 * i387-tdep.h: ...to this.
4802 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4803 * i386-linux-nat.c: Likewise.
4804 * i386bsd-nat.c: Likewise.
4805 * i386gnu-nat.c: Likewise.
4806 * i386nbsd-nat.c: Likewise.
4807 * i386v4-nat.c: Likewise.
4808 * x86-64-linux-nat.c: Likewise.
4809 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4810 * config/i386/go32.mh (NATDEPFILES): Likewise.
4811 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4812 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4813 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4814 * config/i386/linux.mh (NATDEPFILES): Likewise.
4815 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4816 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4817 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4818 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4819
1aee598a
JT
48202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4821
4822 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4823 (alphanbsd-nat.o): Remove dependency list.
4824 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4825 * alphanbsd-nat.c: Delete. Contents moved to...
4826 * alphanbsd-tdep.c: ...here.
4827 (_initialize_alphanbsd_tdep): Register core functions.
4828 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4829
12bcb0fe
JT
48302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4831
4832 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4833 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4834 (alphanbsd-nat.o): Likewise.
4835 (alphabsd-tdep.o): New dependency list.
4836 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4837 (fill_gregset): Use alphabsd_fill_reg.
4838 (supply_fpregset): Use alphabsd_supply_fpreg.
4839 (fill_fpregset): Use alphabsd_fill_fpreg.
4840 (fetch_inferior_registers): Use struct reg and struct fpreg
4841 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4842 and alphabsd_supply_fpreg.
4843 (store_inferior_registers): Use struct reg and struct fpreg
4844 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4845 and alphabsd_fill_fpreg.
4846 * alphabsd-tdep.c: New file.
4847 * alphabsd-tdep.h: New file.
4848 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4849 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4850 alphabsd_supply_fpreg.
4851 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4852 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4853
361d1df0
EC
48542002-05-11 Eric Christopher <echristo@redhat.com>
4855
4856 * mips-tdep.c (mips_double_register_type): Fix thinko.
4857 (mips_single_register_type): Ditto.
4858 * MAINTAINERS: Add self.
4859
92dd7cee
MK
48602002-05-11 Mark Kettenis <kettenis@gnu.org>
4861
4862 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4863 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4864 right thing on architectures with different endianness and/or
4865 integer sizes.
4866
e27da16d
JT
48672002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4868
4869 From Christian Limpach <chris@Pin.LU>
4870 * configure.in: Change sed expression which comments out
4871 NATDEPFILES to also comment out continuation lines.
4872 * configure: Regenerate.
4873
ddde02bd
EZ
48742002-05-10 Elena Zannoni <ezannoni@redhat.com>
4875
4876 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4877 big patch.
4878
1c922164
EZ
48792002-05-10 Elena Zannoni <ezannoni@redhat.com>
4880
4881 * sh-tdep.c: Include correct file.
4882
283150cd
EZ
48832002-05-10 Elena Zannoni <ezannoni@redhat.com>
4884
4885 New support for sh64-elf (sh5) target.
4886
4887 * configure.tgt: For sh64-elf target, default to sh-elf.
4888
4889 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4890 (struct gdbarch_tdep): Add new fields for new registers and ABI
4891 info.
361d1df0 4892
283150cd
EZ
4893 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4894 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4895 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4896 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4897 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4898 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4899 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4900 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4901 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4902 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4903 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4904 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4905 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4906 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4907 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4908 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4909 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4910 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4911 sign_extend, sh64_nofp_frame_init_saved_regs,
4912 sh64_init_extra_frame_info, sh64_get_saved_register,
4913 sh64_extract_struct_value_address, sh64_pop_frame,
4914 sh64_push_arguments, sh64_extract_return_value,
4915 sh64_store_return_value, sh64_show_media_regs,
4916 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4917 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4918 sh_sh64_register_virtual_type,
4919 sh_sh64_register_convert_to_virtual,
4920 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4921 sh64_register_read, sh64_pseudo_register_write,
4922 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4923 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4924 sh64_do_pseudo_register, sh_compact_do_registers_info,
4925 sh64_do_registers_info, sh_gdbarch_init): New functions.
4926
3117ed25
EZ
49272002-05-10 Elena Zannoni <ezannoni@redhat.com>
4928
4929 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4930
2654e6d4
DJ
49312002-05-10 Daniel Jacobowitz <drow@mvista.com>
4932
4933 * linespec.c (decode_line_1): Check for a double quote after
4934 a filename correctly.
4935
9ab3e532
JB
49362002-05-10 Jim Blandy <jimb@redhat.com>
4937
4938 Properly track the size of the current objfile's .debug_line section.
4939 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4940 (DWARF_LINE_SIZE): New macro.
4941 (dwarf2_build_psymtabs_hard): Record the line section's size in
4942 the partial symbol table.
4943 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4944 symbol table.
4945
126fa72d
PS
49462002-05-10 Petr Sorfa <petrs@caldera.com>
4947
4948 * ia64-tdep.c: Handle breakpoints on L instruction type
4949 in MLX instruction bundle by moving the breakpoint to
4950 the third slot (X instruction type) as L holds only data.
4951
1f077a3e
KB
49522002-05-10 Kevin Buettner <kevinb@redhat.com>
4953
4954 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4955 (process_one_symbol): Complain about discarding local symbols
4956 due to a misplaced N_LBRAC entry.
4957
8120c9d5 49582002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
4959
4960 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
4961 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4962 decrease the depth we are at, in the case of templates.
361d1df0 4963
67b2c998
DJ
49642002-05-09 Daniel Jacobowitz <drow@mvista.com>
4965
4966 * mips-tdep.c (mips_float_register_type): New function.
4967 (mips_double_register_type): New function.
4968 (mips_print_register): Use them.
4969 (do_fp_register_row): Likewise.
4970
fd326606
DJ
49712002-05-09 Daniel Jacobowitz <drow@mvista.com>
4972
6609d9af 4973 * signals/signals.c (signals): Remove conditional compilation around
fd326606 4974 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 4975 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 4976
bef35864
MS
49772002-05-09 Michael Snyder <msnyder@redhat.com>
4978
4979 * remote-rdp.c (remote_rdp_can_run): Remove.
4980
c55a3f73
TT
49812002-05-09 Tom Tromey <tromey@redhat.com>
4982
4983 * jv-valprint.c (java_val_print): Handle `char' as a special case
4984 of TYPE_CODE_INT.
4985
b8d5e71d
MS
49862002-05-09 Michael Snyder <msnyder@redhat.com>
4987
4988 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4989 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 4990 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 4991 str r(0123),[sp,#nn].
361d1df0 4992 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
4993 order-independent by placing it in a loop.
4994
e2cd42dd
MS
49952002-05-06 Michael Snyder <msnyder@redhat.com>
4996
4997 * stabsread.c (read_type): Add recognition for new attribute:
4998 "@V;" means that an array type is actually a vector.
4999 This is analogous to the vector flag that's been added to dwarf2.
5000
3ce1502b
MK
50012002-05-09 Mark Kettenis <kettenis@gnu.org>
5002
5003 * i386-tdep.h (i386_abi): New enum.
5004 (struct gdbarch_tdep): Replace os_ident member with abi.
5005 (i386_gdbarch_register_os_abi): New prototype.
5006 * i386-tdep.c (i386_abi_names): New array.
5007 (process_note_abi_tag_sections): Removed.
5008 (process_note_sections): New function.
5009 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5010 (struct i386_abi_handler): New struct.
5011 (i386_abi_handler_list): New variable.
5012 (i386_gdbarch_register_os_abi): New function.
5013 (i386_gdbarch_init): Adapt for the changes given above.
5014
084c156a
DJ
50152002-05-08 Daniel Jacobowitz <drow@mvista.com>
5016
5017 * gregset.h: Say "GNU/Linux".
5018
6599f021
EZ
50192002-05-08 Elena Zannoni <ezannoni@redhat.com>
5020
5021 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5022 (build_gdbtypes): Build builtin_type_v2_float.
5023 (_initialize_gdbtypes): Register new builtin type.
5024
40af4b0c
AC
50252002-05-08 Andrew Cagney <ac131313@redhat.com>
5026
5027 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5028 (clear_gdbarch_swap): New function.
5029 (initialize_non_multiarch): Call.
5030 (gdbarch_update_p): Before calling init(), swap out and clear the
5031 existing architecture.
5032 * gdbarch.c: Regenerate.
5033
4fe84f46
JT
50342002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5035
5036 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5037 alphanbsd-tdep.c.
5038
4015edd1
JT
50392002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5040
5041 * sh-nbsd-nat.c: Rename to...
5042 * shnbsd-nat.c: ...this.
5043 * sh-nbsd-tdep.c: Rename to...
5044 * shnbsd-tdep.c: ...this.
5045 * sh-nbsd-tdep.h: Rename to...
5046 * shnbsd-tdep.h: ...this.
5047 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5048 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5049
0e2bd219
RE
50502002-05-08 Richard Earnshaw <rearnsha@arm.com>
5051
5052 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5053 concatenation for command help messages.
5054
13a38d45
JT
50552002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5056
5057 * NEWS: Note new sh*-*-netbsdelf* configuration.
5058 * configure.host: Set gdb_host_cpu to sh for all sh*.
5059 (sh*-*-netbsdelf*): New host.
5060 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5061 (sh*-*-netbsdelf*): New target.
5062 * sh-nbsd-nat.c: New file.
5063 * sh-nbsd-tdep.c: New file.
5064 * sh-nbsd-tdep.h: New file.
5065 * config/sh/nbsd.mh: New file.
5066 * config/sh/nbsd.mt: New file.
5067 * config/sh/nm-nbsd.h: New file.
5068 * config/sh/tm-nbsd.h: New file.
5069
d658f924
JT
50702002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5071
5072 * sh-tdep.c (sh_osabi_names): Declare.
5073 (process_note_abi_tag_sections): New function.
5074 (get_elfosabi): Ditto.
5075 (sh_gdbarch_register_os_abi): Ditto.
5076 (sh_dump_tdep): Ditto.
5077 _initialize_sh_tdep): Use gdbarch_register to register
5078 sh_gdbarch_init and sh_dump_tdep.
5079 * config/sh/tm-sh.h (sh_osabi): Declare.
5080 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5081
848cfffb
AC
50822002-05-07 Andrew Cagney <ac131313@redhat.com>
5083
5084 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5085 (thumb_scan_prologue): Ditto.
5086 (arm_find_callers_reg): Ditto.
5087 (arm_frame_chain): Ditto.
5088 (arm_init_extra_frame_info): Ditto.
5089 (arm_frame_saved_pc): Ditto.
5090 (arm_pop_frame): Ditto.
5091 (arm_push_return_address): New function.
5092 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5093 call_dummy_location, call_dummy_breakpoint_offset_p,
5094 call_dummy_breakpoint_offset, call_dummy_p,
5095 call_dummy_stack_adjust_p, call_dummy_words,
5096 sizeof_call_dummy_words, call_dummy_start_offset,
5097 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5098 call_dummy_address, push_return_address and push_dummy_frame for
5099 generic dummy frames.
5100
e7d717c0
JT
51012002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5102
5103 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5104 size computation for alloca.
5105 (sh_fp_frame_init_saved_regs): Likewise.
5106
7bbcf283
RE
51072002-05-07 Richard Earnshaw <rearnsha@arm.com>
5108
5109 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5110 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5111 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5112 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5113 * remote-rdp.c (remote_rdp_fetch_register): Use
5114 ARM_MAX_REGISTER_RAW_SIZE.
5115 (remote_rdp_store_register): Likewise.
5116
4657573b
ML
51172002-05-07 Michal Ludvig <mludvig@suse.cz>
5118
361d1df0 5119 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5120 added default labels to switch {} statements.
5121 * x86-64-tdep.c: Ditto.
5122 * x86-64-linux-nat.c: Ditto.
5123
010f3b2f
JT
51242002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5125
5126 * solib.h: Protect against multiple inclusion.
5127
debd256d
JB
51282002-05-06 Jim Blandy <jimb@redhat.com>
5129
9ab3e532
JB
5130 Add first preprocessor macro-expansion files.
5131 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5132 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5133 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5134 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5135 (COMMON_OBS): Add macrotab.o, macroexp.o.
5136 (macroexp.o, macrotab.o): New rules.
5137
debd256d
JB
5138 Separate the job of reading the line number info statement program
5139 header (...expialidocious) out into its own function.
5140 * dwarf2read.c (struct line_head, struct filenames, struct
5141 directories): Replace with...
5142 (struct line_header): New structure, containing the full
5143 contents of the statement program header, including the
5144 include directory and file name tables.
5145 (read_file_scope): If we have line number info, instead of just
5146 calling dwarf_decode_lines to do all the work, call
5147 dwarf_decode_line_header first to get a `struct line_header'
5148 containing the data in the statement program header, and then
5149 pass that to dwarf_decode_lines, which will pick up where that
5150 left off. Be sure to clean up the `struct line_header' object.
5151 (dwarf_decode_line_header, free_line_header, add_include_dir,
5152 add_file_name): New functions.
5153 (dwarf_decode_lines): Move all the code to read the statement
5154 program header into dwarf_decode_line_header. Take the line
5155 header it built as the first argument, instead of the offset to
5156 the compilation unit's line number info. Use the new `struct
5157 line_header' type instead of the old structures. No need to do
5158 cleanups here now, since we don't allocate anything.
5159 (dwarf2_statement_list_fits_in_line_number_section,
5160 dwarf2_line_header_too_long): New complaints.
5161
ac3aafc7
EZ
51622002-05-06 Elena Zannoni <ezannoni@redhat.com>
5163
5164 * gdbtypes.c (init_vector_type): New function.
5165 (build_builtin_type_vec128): Simplify the representation of SIMD
5166 registers.
5167 (build_gdbtypes): Initialize new builtin vector types.
5168 (_initialize_gdbtypes): Register new vector types with gdbarch.
5169 (builtin_type_v4_float, builtin_type_v4_int32,
5170 builtin_type_v8_int16, builtin_type_v16_int8,
5171 builtin_type_v2_int32, builtin_type_v4_int16,
5172 builtin_type_v8_int8): New (renamed) SIMD types.
5173
13e49980
MK
51742002-05-06 Mark Kettenis <kettenis@gnu.org>
5175
5176 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5177 (i387_fill_fxsave): Likewise.
5178
997b20b8
AO
51792002-05-05 Alexandre Oliva <aoliva@redhat.com>
5180
5181 * alpha-tdep.c (alpha_extract_return_value): Don't use
5182 non-constant array size in prototype.
5183
535c96ce
AC
51842002-05-04 Andrew Cagney <ac131313@redhat.com>
5185
5186 From Brian Taylor <briant at model dot com>:
5187 * ui-out.c (ui_out_field_core_addr): Use the function
5188 longest_local_hex_string_custom'to format addresses > 32 bits
5189 wide.
5190
5191 * ui-out.c (ui_out_field_core_addr): Update comment.
5192
bedfa57b
AC
51932002-05-04 Andrew Cagney <ac131313@redhat.com>
5194
5195 * stack.c (select_and_print_frame): Make static. Delete the
5196 parameter `level'.
5197 (func_command): Update call.
5198 (select_frame_command): Delete code computing the frame level.
5199 * frame.h (select_and_print_frame): Delete declaration.
5200
f621c63e
AC
52012002-05-04 Andrew Cagney <ac131313@redhat.com>
5202
5203 * sparc-tdep.c (sparc_get_saved_register): Comment why
5204 get_prev_frame call is safe.
5205
0f7d239c
AC
52062002-05-04 Andrew Cagney <ac131313@redhat.com>
5207
5208 * frame.h (select_frame): Delete level parameter.
5209 * stack.c (select_frame): Update. Use frame_relative_level to
5210 obtain the frame's level.
5211 (select_and_print_frame): Update call.
5212 (select_frame_command): Ditto.
5213 (up_silently_base): Ditto.
5214 (down_silently_base): Ditto.
5215 * ocd.c (ocd_start_remote): Ditto.
5216 * remote-rdp.c (remote_rdp_open): Ditto.
5217 * remote-mips.c (mips_initialize): Ditto.
5218 (common_open): Ditto.
5219 * remote-e7000.c (e7000_start_remote): Ditto.
5220 * m3-nat.c (select_thread): Ditto.
5221 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5222 (child_get_current_exception_event): Ditto.
5223 * varobj.c (varobj_create): Ditto.
5224 (varobj_update): Ditto.
5225 (c_value_of_root): Ditto.
5226 * tracepoint.c (finish_tfind_command): Ditto.
5227 * corelow.c (core_open): Ditto.
5228 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5229 * thread.c (info_threads_command): Ditto.
5230 (switch_to_thread): Ditto.
5231 * infrun.c (normal_stop): Ditto.
5232 (restore_selected_frame): Ditto.
5233 (restore_inferior_status): Ditto.
5234 * breakpoint.c (insert_breakpoints): Ditto.
5235 (watchpoint_check): Ditto.
5236 (bpstat_stop_status): Ditto.
5237 (do_enable_breakpoint): Ditto.
5238 * blockframe.c (flush_cached_frames): Ditto.
5239 (reinit_frame_cache): Ditto.
5240
71d6c7b1
AC
52412002-05-04 Andrew Cagney <ac131313@redhat.com>
5242
5243 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5244 maintainer.
5245
cda6c68a
JB
52462002-05-04 Jim Blandy <jimb@redhat.com>
5247
5248 * gdbtypes.c (replace_type): Doc fix.
5249
5c1c87f0
AC
52502002-05-04 Andrew Cagney <ac131313@redhat.com>
5251
5252 * valprint.c (strcat_longest): Delete commented out function.
5253 Update copyright.
5254
cd9bfe15
AC
52552002-05-04 Andrew Cagney <ac131313@redhat.com>
5256
5257 * MAINTAINERS: Mark a29k as deleted.
5258 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5259 Move new configurations to the top.
5260 * configure.tgt: Remove a29k.
5261 * config/a29k/tm-vx29k.h: Delete.
5262 * config/a29k/vx29k.mt: Delete.
5263 * config/a29k/tm-a29k.h: Delete.
5264 * config/a29k/a29k-udi.mt: Delete.
5265 * config/a29k/a29k.mt: Delete.
5266 * a29k-tdep.c: Delete.
5267 * remote-udi.c: Delete.
5268 * remote-mm.c: Delete.
5269 * remote-eb.c: Delete.
5270 * remote-adapt.c: Delete.
5271 * Makefile.in: Remove obsolete code.
5272 * gdbserver/Makefile.in: Ditto.
5273 * config/s390/s390x.mt: Ditto.
5274 * config/s390/s390.mt: Ditto.
5275 * config/sparc/sparclynx.mh: Ditto.
5276 * config/sparc/linux.mh: Ditto.
5277 * config/pa/hppaosf.mh: Ditto.
5278 * config/pa/hppabsd.mh: Ditto.
5279 * config/ns32k/nbsd.mt: Ditto.
5280 * config/mips/vr5000.mt: Ditto.
5281 * config/m68k/sun3os4.mh: Ditto.
5282 * config/m68k/nbsd.mt: Ditto.
5283 * config/m68k/m68klynx.mh: Ditto.
5284 * config/m32r/m32r.mt: Ditto.
5285 * config/i386/x86-64linux.mt: Ditto.
5286 * config/i386/nbsdelf.mt: Ditto.
5287 * config/i386/nbsd.mt: Ditto.
5288 * config/i386/i386lynx.mh: Ditto.
5289
bf0c5130
AC
52902002-05-04 Andrew Cagney <ac131313@redhat.com>
5291
5292 * target.c (debug_print_register): New function. Handle oversize
5293 registers.
5294 (debug_to_fetch_registers): Call.
5295 (debug_to_store_registers): Call.
5296
2ae1c2d2
JB
52972002-05-03 Jim Blandy <jimb@redhat.com>
5298
13a393b0
JB
5299 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5300 (read_type): Doc fix.
5301 * gdbtypes.c (replace_type): Doc fix.
5302
2ae1c2d2
JB
5303 * stabsread.c (multiply_defined_struct): New complaint.
5304 (read_struct_type): If the type we were passed isn't empty, or
5305 incomplete, don't read the new struct type into it; complain,
5306 and return the original type unchanged. Take a new `type_code'
5307 argument, which is the type code for the new type.
5308 (read_type): Rather than storing the type's type code here, pass
5309 it as an argument to read_struct_type, and let that take care of
5310 storing it. That way, we don't overwrite the original type code,
5311 so read_struct_type can use it to decide whether we're overwriting
5312 something we shouldn't.
5313 (complain_about_struct_wipeout): New function.
5314
8de9bdc4
AC
53152002-05-03 Andrew Cagney <ac131313@redhat.com>
5316
5317 * gdbarch.sh: Assert that gdbarch is non-NULL.
5318 * gdbarch.c: Regenerate.
5319
f773fdbb
JM
53202002-05-03 Jason Merrill <jason@redhat.com>
5321
5322 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5323 and return NULL.
5324
0e04a514
ML
53252002-05-03 Michal Ludvig <mludvig@suse.cz>
5326
5327 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5328 (x86_64_dwarf2gdb_regno_map_length),
5329 (x86_64_dwarf2_reg_to_regnum): Added.
5330 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5331 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5332 (_initialize_x86_64_tdep): Synced with the change above.
5333 (x86_64_skip_prologue): Reformulated message.
5334
065432a8
PM
53352002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5336
5337 * f-exp.y: Also use new prev_lexptr variable
5338 to improve error reporting. Based on Michael Snyder
5339 2002-04-24 dated patch to c-exp.y.
5340 * jv-exp.y: Likewise.
5341 * m2-exp.y: Likewise.
5342
a3162708
EZ
53432002-05-02 Elena Zannoni <ezannoni@redhat.com>
5344
5345 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5346 we are dealing with vectors.
5347
03620c38
PM
53482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5349
5350 * config/m68k/tm-nbsd.h: Obvious fix,
5351 correct machine name.
5352
6604db2e
PM
53532002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5354
5355 * p-typeprint.c (pascal_type_print_base): Add support
5356 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5357
0906b739
PM
53582002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5359
5360 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5361 for fondamental pascal 'char' type.
5362
e2625b33
PM
53632002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5364
5365 * p-lang.h (is_pascal_string_type): Declaration changed,
5366 new sixth argument of type char ** added.
361d1df0 5367 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5368 changed. Args length_pos, length_size, string_pos, char_size
5369 can now be NULL. New argument arrayname set to the field
5370 name of the char array. Return value set to char array
5371 field index plus one.
361d1df0 5372 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5373 is_pascal_string_type function.
5374
cf17c188
AC
53752002-05-02 Andrew Cagney <cagney@redhat.com>
5376
5377 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5378 <cagney@redhat.com> change.
5379 * gdbarch.c: Regenerate.
5380
52bca491
AC
53812002-05-02 Andrew Cagney <cagney@redhat.com>
5382
5383 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5384 before probing for a new one. Detect errorenous gdbarch_init
5385 functions.
5386 * gdbarch.c: Regenerate.
5387
d5e72505
AC
53882002-05-01 Andrew Cagney <cagney@redhat.com>
5389
5390 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5391 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5392 * config/v850/tm-v850.h: Ditto. Update copyright.
5393
af566d9f
AC
53942002-04-30 Andrew Cagney <ac131313@redhat.com>
5395
5396 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5397 current_gdbarch.
5398
880d85fa
MS
53992002-04-30 Michael Snyder <msnyder@redhat.com>
5400
94c30b78
MS
5401 * arm-tdep.c: Whitespace clean-ups.
5402 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5403 should have been removed as part of 4/24 change.
5404
6f5987a6
KB
54052002-04-30 Kevin Buettner <kevinb@redhat.com>
5406
5407 * rs6000-tdep.c: Added comment describing how fpscr register
5408 numbers were chosen.
5409
1a113c93
MS
54102002-04-30 Michael Snyder <msnyder@redhat.com>
5411
5412 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5413
9a6f53fe
EZ
54142002-04-29 Elena Zannoni <ezannoni@redhat.com>
5415
5416 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5417 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5418 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5419
11ed25ac
KB
54202002-04-29 Kevin Buettner <kevinb@redhat.com>
5421
5422 From Louis Hamilton <hamilton@redhat.com>:
5423 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5424 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5425 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5426 not bfd-private xcoff data, to determine wordsize.
5427 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5428
ae232405
AC
54292002-04-29 Andrew Cagney <ac131313@redhat.com>
5430
5431 GDB 5.2 released from 5.2 branch.
5432
91fd20f7
ML
54332002-04-29 Michal Ludvig <mludvig@suse.cz>
5434
5435 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5436 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5437 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5438
2dc5091b
EZ
54392002-04-29 Elena Zannoni <ezannoni@redhat.com>
5440
5441 * rs6000-tdep.c (rs6000_extract_return_value,
5442 rs6000_store_return_value): Handle returning vectors.
5443 (rs6000_gdbarch_init): Use
5444 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5445 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5446 New function.
5447 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5448 vectors.
5449 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5450 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5451
2b9848d8
PM
54522002-04-24 Pierre Muller <ics.u-strasbg.fr>
5453
5454 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5455 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5456 with fprintf_unfiltered (gdb_stderr,...).
5457
f8d17dc5
PM
54582002-04-24 Pierre Muller <ics.u-strasbg.fr>
5459
5460 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5461 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5462 Replace fprintf (stderr,...
5463 with fprintf_unfiltered (gdb_stderr,....
5464 * remote-es.c: Likewise.
5465 * remote-os9k.c: Likewise.
5466 * remote-st.c: Likewise.
5467
2f2f1ad1
AS
54682002-04-28 Andreas Schwab <schwab@suse.de>
5469
5470 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5471 linux-proc.o and gcore.o.
5472
b6779aa2
AC
54732002-04-26 Michal Ludvig <mludvig@suse.cz>
5474
5475 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5476 code without frame pointers.
5477
7e57f5f4
AC
54782002-04-26 Andrew Cagney <ac131313@redhat.com>
5479
5480 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5481 ON_STACK is needed.
5482
2ceb85d0
BE
54832002-04-26 Ben Elliston <bje@redhat.com>
5484
5485 * target.c (do_xfer_memory): Correct reference to the new option
5486 "trust-readonly-sections".
5487
f5f8a009
EZ
54882002-04-26 Elena Zannoni <ezannoni@redhat.com>
5489
5490 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5491 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5492 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5493 vectors.
5494 (read_array_type): Record the fact that this array type is really a
5495 vector (i.e. are passed in by value).
5496
5868c862
JT
54972002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5498
5499 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5500 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5501 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5502 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5503 * alpha-linux-tdep.c: Include frame.h.
5504 (alpha_linux_sigcontext_addr): New function.
5505 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5506 alpha_linux_sigcontext_addr.
5507 * alpha-osf1-tdep.c: Include gdbcore.h.
5508 (alpha_osf1_sigcontext_addr): New function.
5509 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5510 alpha_osf1_sigcontext_addr.
5511 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5512 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5513
bfb01f37
AC
55142002-04-26 Andrew Cagney <ac131313@redhat.com>
5515
361d1df0 5516 * stack.c (selected_frame_level):
bfb01f37
AC
5517 (select_frame): Do not set selected_frame_level.
5518 * frame.h (selected_frame_level): Delete declaration.
5519
15813d3f
AC
55202002-04-26 Andrew Cagney <ac131313@redhat.com>
5521
5522 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5523 convert_from_func_ptr-addr when AIX / PowerOpen.
5524
6096c27a
AC
55252002-04-25 Andrew Cagney <ac131313@redhat.com>
5526
5527 * valops.c (hand_function_call): Call
5528 generic_save_call_dummy_addr.
5529 * frame.h (generic_save_call_dummy_addr): Declare.
5530 * blockframe.c (struct dummy_frame): Add fields call_lo and
5531 call_hi.
5532 (generic_find_dummy_frame): Check for PC in range call_lo to
5533 call_hi instead of entry_point_address.
5534 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5535 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5536 (generic_save_call_dummy_addr): New function.
5537
f510d44e
DM
55382002-04-24 David S. Miller <davem@redhat.com>
5539
5540 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5541 sparc_skip_prologue.
5542 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5543 information to find prologue when possible.
5544 (sparc_prologue_frameless_p): Call examine_prologue directly.
5545 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5546 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5547 second argument.
5548 (SKIP_PROLOGUE): Likewise.
5549
15d72a92
JT
55502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5551
5552 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5553 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5554 indicate that the condition it was testing is always true.
5555 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5556 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5557 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5558
accc6d1f
JT
55592002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5560
5561 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5562 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5563 tdep->jb_pc and tdep->jb_elt_size.
5564 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5565 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5566 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5567 * alpha-nat.c (get_longjmp_target): Remove.
5568 (JB_ELEMENT_SIZE): Ditto.
5569 (JB_PC): Ditto.
5570 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5571 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5572 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5573 to alpha_get_longjmp_target.
5574 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5575 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5576 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5577
1bfdc549
AC
55782002-04-25 Andrew Cagney <ac131313@redhat.com>
5579
5580 * README: Update to GDB 5.2.
5581
1bd316f0
AC
55822002-04-25 Andrew Cagney <ac131313@redhat.com>
5583
5584 * gdbarch.sh (LC_ALL): Set to `c'.
5585
2e5ff58c
TR
55862002-04-25 Theodore A. Roth <troth@verinet.com>
5587
5588 * avr-tdep.c: Ran through gdb_indent.sh.
5589
e33ce519
TR
55902002-04-25 Theodore A. Roth <troth@verinet.com>
5591
5592 * MAINTAINERS: Add myself as AVR maintainer.
5593 * NEWS: Note new target avr.
5594
8818c391
TR
55952002-04-25 Theodore A. Roth <troth@verinet.com>
5596
5597 * Makefile.in: Add support for AVR target.
5598 * configure.tgt: Add support for AVR target.
5599 * avr-tdep.c: New file
5600 * config/avr/avr.mt: New file.
5601
79509c2d
TR
56022002-04-25 Theodore A. Roth <troth@verinet.com>
5603
5604 * MAINTAINERS: Add myself to write-after-approval.
5605
dac8068e
PM
56062002-04-24 Pierre Muller <ics.u-strasbg.fr>
5607
5608 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5609 with fprintf_unfiltered (gdb_stderr,....
5610
25bf3106
PM
56112002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5612
5613 Fix PR gdb/508.
5614 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5615
24467a86
PM
56162002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5617
5618 * p-exp.y: Also use new prev_lexptr variable
5619 to improve error reporting. Based on Michael Snyder
5620 2002-04-24 dated patch to c-exp.y.
5621
95b80706
JT
56222002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5623
5624 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5625 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5626 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5627 to 0.
5628 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5629 and struct value.
5630 (FUNCTION_START_OFFSET): Remove.
5631 (BREAKPOINT): Ditto.
5632
e90cc612
JT
56332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5634
5635 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5636 * NEWS: Ditto.
5637
6c72f9f9
JT
56382002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5639
5640 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5641 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5642 alpha_linux_pc_in_sigtramp.
5643 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5644 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5645 alpha_osf1_pc_in_sigtramp.
5646 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5647 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5648 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5649 alphafbsd_pc_in_sigtramp.
5650 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5651 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5652 alphanbsd_pc_in_sigtramp.
5653 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5654 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5655
5e4f3379
JT
56562002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5657
5658 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5659
da8ca43d
JT
56602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5661
5662 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5663 alphanbsd-tdep.c.
5664 (alphanbsd-nat.o): New dependency list.
5665 (alphanbsd-tdep.o): Ditto.
5666 * NEWS: Note new native NetBSD/alpha configuration.
5667 * alphanbsd-nat.c: New file.
5668 * alphanbsd-tdep.c: Ditto.
5669 * configure.host (alpha*-*-netbsd*): New host.
5670 * configure.tgt (alpha*-*-netbsd*): New target.
5671 * config/alpha/nbsd.mh: New file.
5672 * config/alpha/nbsd.mt: Ditto.
5673 * config/alpha/nm-nbsd.h: Ditto.
5674 * config/alpha/tm-nbsd.h: Ditto.
5675
36a6271d
JT
56762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5677
5678 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5679 (alpha-osf1-tdep.o): New dependency list.
5680 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5681 and skip_sigtramp_frame members.
5682 * alpha-linux-tdep.c: Include gdbcore.h.
5683 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5684 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5685 * alpha-osf1-tdep.c: New file.
5686 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5687 alpha-osf1-dep.c.
5688 (alpha_frame_past_sigtramp_frame): New function.
5689 (alpha_dynamic_sigtramp_offset): Ditto.
5690 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5691 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5692 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5693 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5694 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5695 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5696 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5697 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5698 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5699 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5700 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5701 to find_solib_trampoline_target.
5702 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5703 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5704 (SKIP_TRAMPOLINE_CODE): Remove.
5705 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5706 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5707 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5708 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5709 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5710 (PROC_SIGTRAMP_MAGIC): Ditto.
5711 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5712 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5713 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5714 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5715 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5716
2f4bc57b
JT
57172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5718
5719 * NEWS: Note that Alpha targets are now multi-arch.
5720
665132f9
MS
57212002-04-24 Michael Snyder <msnyder@redhat.com>
5722
5723 * parser-defs.h (prev_lexptr): New external variable.
5724 * parse.c (parse_exp_1): Set prev_lexptr to null before
5725 calling the language-specific parser.
5726 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5727 (yyerror): Use prev_lexptr in error reporting.
5728
32872fa7
DJ
57292002-04-24 Daniel Jacobowitz <drow@mvista.com>
5730
5731 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5732 * gregset.h: If FILL_FPXREGSET is defined, provide
5733 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5734 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5735 is defined, call fill_fpxregset.
5736
57e76fac
MS
57372002-04-24 Roland McGrath <roland@frob.com>
5738
5739 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5740 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5741 (supply_gregset, supply_fpregset): New functions.
5742
5743 * gnu-nat.c (gnu_find_memory_regions): New function.
5744 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5745 (gnu_xfer_memory): Add a cast.
5746
f43845b3
MS
57472002-04-24 Michael Snyder <msnyder@redhat.com>
5748
361d1df0 5749 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5750 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5751 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5752 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5753 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5754 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5755
a0abec03
AC
5756Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5757
5758 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5759 NUM_PSEUDO_REGS can be used.
5760
d7bd68ca
AC
57612002-04-24 Andrew Cagney <ac131313@redhat.com>
5762
5763 * arch-utils.h: Update copyright.
5764
5765 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5766 * gdbarch.h, gdbarch.c: Re-generate.
5767
5768 * inferior.h (IN_SIGTRAMP): Delete definition.
5769 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5770 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5771
5772 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5773 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5774 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5775 (find_proc_framesize): Ditto.
5776 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5777 (alpha_init_extra_frame_info): Ditto.
5778 * infrun.c (handle_inferior_event): Ditto.
5779 (handle_inferior_event): Ditto.
5780 (check_sigtramp2): Ditto.
5781 * blockframe.c (create_new_frame): Ditto.
5782 (get_prev_frame): Ditto.
5783 * ppc-linux-tdep.c: Update comments.
5784 * i386-linux-tdep.c: Update comments.
5785 * breakpoint.c (bpstat_what): Update comment.
5786
d06f167a
ML
57872002-04-24 Michal Ludvig <mludvig@suse.cz>
5788
5789 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5790 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5791 ptrace() calls.
5792 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5793
4867e41e
DM
57942002-04-24 David S. Miller <davem@redhat.com>
5795
21d83aa5
DM
5796 * i960-tdep.c (register_in_window_p): New function.
5797 (i960_find_saved_register): Use it instead of
5798 REGISTER_IN_WINDOW_P.
5799 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5800
4867e41e
DM
5801 * symtab.h (find_stab_function_addr): Kill extern.
5802 * minsyms.c (find_stab_function_addr): Remove from here...
5803 * dbxread.c: ... to here, and mark it static.
5804
69cdf6a2
DM
58052002-04-20 David S. Miller <davem@redhat.com>
5806
5807 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5808 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5809
5a595886
DM
58102002-04-21 David S. Miller <davem@redhat.com>
5811
5812 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5813 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5814 (vx_write_register): Likewise.
5815
1da1a192
JB
58162002-04-23 J. Brobecker <brobecker@gnat.com>
5817
5818 * source.c (is_regular_file): New function.
5819 (openp): Check wether file to open is a regular file
5820 to avoid opening directories.
5821
baa6f10b
JT
58222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5823
5824 * findvar.c (extract_signed_integer): Cast printf argument
5825 to suppress format warning.
5826 (extract_unsigned_integer): Likewise.
5827 * infcmd.c (registers_info): Likewise.
5828 * top.c (get_prompt_1): Likewise.
5829 * valops.c (value_assign): Likewise.
5830 * valprint.c (print_decimal): Likewise.
5831
b2c4da81
L
58322002-04-22 H.J. Lu (hjl@gnu.org)
5833
5834 * c-exp.y (typebase): Support
361d1df0 5835
b2c4da81
L
5836 [long|long long|short] [signed|unsigned] [int|]
5837
5838 and
5839
5840 signed [long|long long|short] int
5841
f267bd6a
JT
58422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5843
5844 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5845 and vax-tdep.h.
5846 * vax-tdep.h: New file.
5847 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5848 Make several routines static.
5849 (vax_get_saved_register): New function.
5850 (vax_gdbarch_init): New function.
5851 (_initialize_vax_tdep): Register vax_gdbarch_init.
5852 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5853 Remove macros now under the control of gdbarch.
5854
da3c6d4a
MS
58552002-04-22 Michael Snyder <msnyder@redhat.com>
5856
11d3b27d
MS
5857 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5858 Some whitespace and coding standards tweaks.
da3c6d4a 5859
a33f7558
JT
58602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5861
5862 * vax-tdep.c: Include regcache.h.
5863 (vax_call_dummy_words): New.
5864 (sizeof_vax_call_dummy_words): New.
5865 (vax_fix_call_dummy): New function.
5866 (vax_saved_pc_after_call): Ditto.
5867 * config/vax/tm-vax.h: Don't include regcache.h.
5868 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5869 (CALL_DUMMY): Remove.
5870 (CALL_DUMMY_WORDS): Define.
5871 (SIZEOF_CALL_DUMMY_WORDS): Define.
5872 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5873
47a73475
MS
58742002-04-18 Michael Snyder <msnyder@redhat.com>
5875
5876 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5877
52efde73
JT
58782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * vax-tdep.c (vax_frame_chain): New function.
5881 (vax_push_dummy_frame): Ditto.
5882 (vax_pop_frame): Ditto.
5883 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5884 (FRAMELESS_FUNCTION_INVOCATION): Use
5885 generic_frameless_function_invocation_not.
5886 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5887 (POP_FRAME): Use vax_pop_frame.
5888
ea74468c
JT
58892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5890
5891 * vax-tdep.c (vax_store_struct_return): New function.
5892 (vax_extract_return_value): Ditto.
5893 (vax_store_return_value): Ditto.
5894 (vax_extract_struct_value_address): Ditto.
5895 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5896 vax_store_struct_return.
5897 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5898 (STORE_RETURN_VALUE): Use vax_store_return_value.
5899 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5900
5516aa92
JT
59012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5902
5903 * vax-tdep.c (vax_frame_saved_pc): New function.
5904 (vax_frame_args_address_correct): Ditto.
5905 (vax_frame_args_address): Ditto.
5906 (vax_frame_locals_address): Ditto.
5907 (vax_frame_num_args): Move code to be in proximity to
5908 other frame-related functions.
5909 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5910 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5911 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5912 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5913 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5914
36af0b35
L
59152002-04-22 H.J. Lu (hjl@gnu.org)
5916
5917 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5918 includedir.
5919
ab62c900
JT
59202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5923 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5924 (FRAME_INIT_SAVED_REGS): New macro.
5925
7232b100
JT
59262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5927
5928 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5929
b70d2aee
JT
59302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5931
5932 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5933 where needed.
5934 (fetch_osf_core_registers): Likewise.
5935 (supply_gregset): Likewise.
5936
a0e8a2d1 59372002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 5938
a0e8a2d1
JB
5939 * symfile.h (get_section_index): Define.
5940 * symfile.c (get_section_index): New function.
5941 * mdebugread.c (SC_IS_SBSS): New macro.
5942 (SC_IS_BSS): Return true for the scBss storage class only, as
5943 the scSBss storage class refers to the .sbss section.
5944 (parse_partial_symbols): Discard the symbols which associated
5945 section does not exist.
5946 Make sure to use the .sbss section index for symbols which
5947 storage class is scBss, rather than using the .bss section index.
5948
51eb8b08
JT
59492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5950
5951 * vax-tdep.c: Update copyright years.
5952 (vax_register_name): New function.
5953 (vax_register_byte): Ditto.
5954 (vax_register_raw_size): Ditto.
5955 (vax_register_virtual_size): Ditto.
5956 (vax_register_virtual_type): Ditto.
5957 * config/vax/tm-vax.h: Update copyright years.
5958 (REGISTER_NAMES): Remove.
5959 (REGISTER_NAME): Define.
5960 (REGISTER_BYTE): Use vax_register_byte.
5961 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5962 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5963 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5964
6cc1c0a8
AC
59652002-04-21 Andrew Cagney <ac131313@redhat.com>
5966
5967 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5968 declaration
5969 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5970
9319a2fe
DM
59712002-04-21 David S. Miller <davem@redhat.com>
5972
5973 * arch-utils.c (generic_prologue_frameless_p): Kill
5974 SKIP_PROLOGUE_FRAMELESS_P code.
5975 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5976 references.
5977 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5978 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5979 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5980 references.
5981 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5982 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5983 (sparc_gdbarch_init): Pass it to
5984 set_gdbarch_prologue_frameless_p.
a0e8a2d1 5985
e9ed6d01
JT
59862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5987
5988 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5989 (alphabsd-nat.o): New dependency list.
5990
36012033
JT
59912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5992
5993 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5994 alphafbsd-tdep.c.
5995 (alpha-linux-tdep.o): New dependency list.
5996 (alphafbsd-tdep.o): Likewise.
5997
3379287a
JT
59982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5999
6000 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6001 to here...
6002 * alpha-tdep.c: ...from here.
6003 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6004
4bcbd6cb
JT
60052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6006
6007 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6008 prototype from here...
6009 * alpha-tdep.h: ...to here.
6010
b31da25e
AC
60112002-04-21 Andrew Cagney <ac131313@redhat.com>
6012
6013 * frame.h (selected_frame_level): Document as deprecated.
6014 (frame_relative_level): Declare.
6015 * stack.c (frame_relative_level): New function.
6016 (selected_frame_level): Document as deprecated.
6017 (select_frame): Do not set the selected_frame_level.
6018
6019 * stack.c (frame_info, record_selected_frame): Update.
6020 (frame_command, current_frame_command): Update.
6021 (up_silently_base, up_command, down_silently_base): Update.
6022 (down_command): Update.
6023 * inflow.c (kill_command): Update.
6024 * tracepoint.c (finish_tfind_command): Update.
6025 * corelow.c (core_open): Update.
6026 * thread.c (info_threads_command): Update.
6027 (do_captured_thread_select): Update.
6028 * infcmd.c (finish_command): Update.
6029 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6030
9c1d6fe5
JT
60312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6032
6033 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6034
ab89facf
AC
60352002-04-21 Andrew Cagney <ac131313@redhat.com>
6036
6037 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6038 type const.
6039
82a4efa1
JT
60402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6041
6042 * alphafbsd-tdep.c: Update copyright years. Include
6043 alpha-tdep.h.
6044 (alphafbsd_use_struct_convention): Make static.
6045 (alphafbsd_init_abi): New function.
6046 (_initialize_alphafbsd_tdep): New function.
6047 * config/alpha/tm-fbsd.h: Update copyright years.
6048 (USE_STRUCT_CONVENTION): Remove.
6049
44dffaac
JT
60502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6051
6052 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6053 an Alpha ABI variant.
6054 (alpha_abi_handler_list): Declare.
6055 (alpha_gdbarch_register_os_abi): New function.
6056 (alpha_gdbarch_init): Give registered ABI variant handlers a
6057 chance to tweak the gdbarch once we have set up defaults.
6058 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6059
65585be4
JT
60602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6061
6062 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6063 to standard_coerce_float_to_double.
6064 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6065
d9b023cc
JT
60662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6069 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6070 from gdbarch_tdep rather than a constant.
6071 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6072 the default text address for all Alpha Unix ABIs.
6073 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6074 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6075
dc129d82
JT
60762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 * alpha-tdep.h: New file. Includes several Alpha target constants
6079 taken from...
6080 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6081 let gdbarch deal with.
6082 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6083 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6084 to dependency list.
6085 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6086 Alpha target register names.
6087 * alphabsd-nat.c: Likewise.
6088 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6089 Alpha target register names. Make serveral routines static.
6090 (alpha_get_saved_register): New function.
6091 (alpha_abi_names): New.
6092 (process_note_abi_tag_sections): New function.
6093 (get_elfosabi): New function.
6094 (alpha_gdbarch_init): New function.
6095 (alpha_dump_tdep): New function.
6096 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6097
d49d1e0a
AC
60982002-04-21 Andrew Cagney <ac131313@redhat.com>
6099
6100 * frame.c (find_saved_register): Delete #ifdef
6101 HAVE_REGISTER_WINDOWS code.
6102 * config/sparc/tm-sparc.h: Update comments.
6103 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6104
92e8c9ed
AC
61052002-04-21 Andrew Cagney <ac131313@redhat.com>
6106
6107 * i960-tdep.c (i960_find_saved_register): New function.
6108 (i960_get_saved_register): New function.
6109 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6110 (i960_get_saved_register): Declare.
6111 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6112
e1925118
DM
61132002-04-20 David S. Miller <davem@redhat.com>
6114
6115 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6116
29673b29
AC
61172002-04-20 Andrew Cagney <ac131313@redhat.com>
6118
6119 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6120 instead of NUM_PSEUDO_REGS.
6121
6c86dcd5
DM
61222002-04-20 David S. Miller <davem@redhat.com>
6123
6124 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6125 GDB_MULTI_ARCH_PARTIAL
6126 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6127 define, let tm-sp64.h do it.
6128
aa40ec90
JT
61292002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6130
6131 * frame.c (find_saved_register): Avoid a NULL pointer
6132 dereference and actually walk the frame list.
6133
0f79675b
AC
61342002-04-20 Andrew Cagney <ac131313@redhat.com>
6135
6136 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6137 sorted in most most-recent-used order. Document.
6138 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6139
c04a1aa8
DJ
61402002-04-20 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6143 (add_inferior): Call create_register_cache.
6144 (clear_inferiors): Call free_register_cache.
6145 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6146 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6147 (registers): Remove.
6148 (get_regcache): New function.
6149 (create_register_cache, free_register_cache): New functions.
6150 (set_register_cache): Don't initialize the register cache here.
6151 (registers_to_string, registers_from_string, register_data): Call
6152 get_regcache.
6153 * gdbserver/regcache.h: Add prototypes.
6154 * gdbserver/server.h: Likewise.
6155
611cb4a5
DJ
61562002-04-20 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * gdbserver/mem-break.c: New file.
6159 * gdbserver/mem-break.h: New file.
6160 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6161 dependencies.
6162 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6163 member.
6164 (clear_inferiors): Free target_data member if set.
6165 (inferior_target_data, set_inferior_target_data): New functions.
6166 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6167 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6168 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6169 (struct inferior_linux_data): New.
6170 (linux_create_inferior): Use set_inferior_target_data.
6171 (linux_attach): Likewise. Call add_inferior.
6172 (linux_wait_for_one_inferior): New function.
6173 (linux_wait): Call it.
6174 (linux_write_memory): Add const.
6175 (initialize_low): Call set_breakpoint_data.
6176 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6177 handling members.
6178 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6179 call.
6180 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6181 prototypes.
6182 * gdbserver/target.c (read_inferior_memory)
6183 (write_inferior_memory): New functions.
6184 * gdbserver/target.h (read_inferior_memory)
6185 (write_inferior_memory): Change macros to prototypes.
6186 (struct target_ops): Update comments. Add const to write_memory
6187 definition.
6188
f91305dd 61892002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6190
6191 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6192 instead of ->prev.
6193 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6194 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6195 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6196 instead of ->prev.
6197
73d322b1
EZ
61982002-04-19 Elena Zannoni <ezannoni@redhat.com>
6199
6200 Fix PR gdb/471.
6201 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6202 (build_builtin_type_vec128): Ditto.
6203 (append_composite_type_field): Fix calculation of type length in
6204 union case.
6205
ccd9a834
EZ
62062002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6207
6208 * config/djgpp/README: Update.
6209
6210 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6211 compiler warnings.
6212
a57f9e49
JT
62132002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6214
6215 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6216 (alpha_setup_arbitrary_frame): ...to this.
6217 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6218 for alpha_setup_arbitrary_frame.
6219
f4f9705a
AC
62202002-04-18 Andrew Cagney <cagney@redhat.com>
6221
6222 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6223 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6224
f4f9705a
AC
6225 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6226 * target.h (memory_breakpoint_from_pc): Update declaration.
6227 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6228
6229 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6230 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6231 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6232 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6233 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6234 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6235 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6236 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6237 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6238 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6239 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6240 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6241
6242 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6243 const pointer.
6244 * monitor.c (monitor_insert_breakpoint): Ditto.
6245 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6246
6247 * config/mcore/tm-mcore.h: Update copyright.
6248 * mem-break.c: Ditto.
6249 * xstormy16-tdep.c: Ditto.
6250
29f319b8
PM
62512002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6252
6253 * p-exp.y: Add precedence rule for '^' token.
6254 This removes the shift/reduce conflicts.
6255 Remove the comment concerning these shift/reduce conflicts.
6256
ebeac11a
EZ
62572002-04-18 Elena Zannoni <ezannoni@redhat.com>
6258
6259 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6260 (registers_powerpc_nofp): New register set for processors
6261 without floating point unit.
6262
27c31547
DM
62632002-04-18 David S. Miller <davem@redhat.com>
6264
6265 * MAINTAINERS: Add myself to write-after-approval.
6266
47a73475
MS
62672002-04-17 Michael Snyder <msnyder@redhat.com>
6268
6269 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6270
953836b2
AC
62712002-04-17 Andrew Cagney <ac131313@redhat.com>
6272
6273 * rs6000-tdep.c (frame_initial_stack_address): Use
6274 frame_register_read to read the alloca_reg.
6275
8b0d4340
AC
62762002-04-17 Andrew Cagney <ac131313@redhat.com>
6277
6278 * frame.c (find_saved_register): Find saved registers in the next
6279 not prev frame.
6280 Fix PR gdb/365.
6281
d8864532
AC
62822002-04-17 Andrew Cagney <ac131313@redhat.com>
6283
6284 * gdbarch.sh (LANG): Set to ``c''.
6285
36cc83a3 62862002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6287
36cc83a3 6288 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6289
2f4150cc 62902002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6291
6292 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6293 Update copyright.
6294
628703c6 6295 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6296 Also fix PR gdb/391.
361d1df0 6297
56157b4a
AC
62982002-04-14 Andrew Cagney <ac131313@redhat.com>
6299
6300 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6301 * aclocal.m4, configure: Re-generate.
6302 Fix PR gdb/391.
361d1df0 6303
6d1e3329
EZ
63042002-04-14 Elena Zannoni <ezannoni@redhat.com>
6305
6306 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6307 instead of tm_print_insn.
6308
cb06fa07
EZ
63092002-04-14 Elena Zannoni <ezannoni@redhat.com>
6310
6311 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6312
f208ba17
AC
63132002-04-14 Andrew Cagney <ac131313@redhat.com>
6314
6315 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6316 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6317 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6318
20f01a46
DH
63192002-04-12 Don Howard <dhoward@redhat.com>
6320
6321 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6322 max_user_call_depth.
6323 (init_cmd_lists): Initialize the new value;
6324 * cli/cli-script.c (execute_user_command): Limit the call depth of
6325 user defined commands. This avoids a core-dump when user commands
6326 are infinitly recursive.
6327
a88376a3
KB
63282002-04-12 Kevin Buettner <kevinb@redhat.com>
6329
6330 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6331 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6332 from tdep struct instead of DEFAULT_LR_SAVE.
6333 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6334 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6335 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6336
f2172603
MS
63372002-04-12 Michael Snyder <msnyder@redhat.com>
6338
694f61fb 6339 * Remote.c: Spelling fix.
20fe79c8
MS
6340 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6341 If no symbol found for "sbrk", try "_sbrk".
6342 (make_output_phdrs): Use bfd_section_name.
6343 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6344 * eval.c: Indentation fix-ups.
169a7369
MS
6345 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6346 in case it gets applied to an address that is already
6347 in the instruction space.
de74f71f
MS
6348 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6349 * symfile.c: Fix indentation, long lines.
f2172603
MS
6350 * source.c: White space fix-up.
6351
cda5a58a
AC
63522002-04-12 Andrew Cagney <cagney@redhat.com>
6353
6354 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6355 * frame.c (frame_register_read): New function. Return non-zero on
6356 success.
6357 (read_relative_register_raw_bytes_for_frame): Delete.
6358 (read_relative_register_raw_bytes): Delete.
6359 * frame.h (frame_register_read): Declare.
6360 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6361 * sh-tdep.c: Ditto.
6362 * infcmd.c (do_registers_info): Ditto.
6363 * hppa-tdep.c: Ditto.
6364 * rs6000-tdep.c: Ditto.
6365 * h8500-tdep.c: Ditto.
6366 * mips-tdep.c: Ditto.
6367 * h8300-tdep.c: Ditto.
6368 * z8k-tdep.c: Ditto.
6369
2ea5f656
KB
63702002-04-12 Kevin Buettner <kevinb@redhat.com>
6371
6372 From Jimi X <jimix@watson.ibm.com>:
6373 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6374 64-bit SysV ABI.
6375
27b15785
KB
63762002-04-12 Kevin Buettner <kevinb@redhat.com>
6377
6378 From Jimi X <jimix@watson.ibm.com>:
6379 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6380 bfd info.
6381
5d57ee30
KB
63822002-04-12 Kevin Buettner <kevinb@redhat.com>
6383
6384 From Jimi X <jimix@watson.ibm.com>:
6385 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6386 register sets for these processor variants.
6387
bc1e36ca
DJ
63882002-04-11 Daniel Jacobowitz <drow@mvista.com>
6389
6390 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6391 registers which are allowed to fail to store.
6392 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6393 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6394 (ppc_cannot_store_register): FPSCR may not be storable.
6395 * regformats/reg-ppc.dat: Support FPSCR.
6396
e3f36dbd
KB
63972002-04-11 Kevin Buettner <kevinb@redhat.com>
6398
6399 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6400 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6401 Add fpscr as an invalid/unfetchable register.
6402 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6403 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6404 (fill_fpregset): Add support for register fpscr.
6405 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6406 (fill_gregset): Account for the fact that register ``mq'' might
6407 not exist.
6408 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6409 (registers_power): Add fpscr to register set at slot 71.
6410 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6411 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6412
943c9c25
MS
64132002-04-11 Michael Snyder <msnyder@redhat.com>
6414
6415 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6416 * configure: Regenerate.
6417 * config.in: Regenerate.
6418 * acconfig.h: Add define for _SYSCALL32.
6419 * core-sol2.c: Remove #define _SYSCALL32.
6420 * solib-legacy.c: Remove #define _SYSCALL32.
6421
d8c0a2e7
AC
64222002-04-10 Andrew Cagney <ac131313@redhat.com>
6423
6424 * stack.c (select_frame): Cleanup internal error message, do not
6425 use %p.
6426
7cc19214
AC
64272002-04-10 Andrew Cagney <ac131313@redhat.com>
6428
6429 * stack.c (select_frame): Check that selected_frame and the
6430 specified level are as expected.
6431 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6432 Update copyright.
6433 * frame.h (struct frame_info): Add field `level'. Update
6434 copyright.
6435 Work-in-progress PR gdb/464.
6436
67a2b77e
AC
64372002-04-10 Andrew Cagney <ac131313@redhat.com>
6438
6439 * maint.c (maint_print_section_info): Rename print_section_info.
6440 (print_bfd_section_info, print_objfile_section_info): Update.
6441 * inferior.h (struct gdbarch): Add opaque declaration.
6442 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6443 * gdbarch.h: Regenerate.
6444
8cfda98c
ML
64452002-04-10 Michal Ludvig <mludvig@suse.cz>
6446
6447 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6448 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6449 (kernel_u_size): Added.
6450 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6451 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6452
ca439ad2 64532002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6454
ca439ad2
JI
6455 * valarith.c (find_size_for_pointer_math): New function, either returns
6456 the size for a pointer's target, returns 1 for void *, or errors for
6457 incomplete types.
6458 (value_add, value_sub): use find_size_for_pointer_math.
6459
2f2893d9
DJ
64602002-04-09 Daniel Jacobowitz <drow@mvista.com>
6461
6462 * linux-low.c (linux_look_up_symbols): New hook.
6463 (linux_target_ops): Add linux_look_up_symbols.
6464 * remote-utils.c (decode_address): New function.
6465 (look_up_one_symbol): New function.
6466 * server.c (handle_query): Call target look_up_symbols hook.
6467 * server.h (look_up_one_symbol): Add prototype.
6468 * target.h (struct target_ops): Add look_up_symbols hook.
6469
2ec06d2e
DJ
64702002-04-09 Daniel Jacobowitz <drow@mvista.com>
6471
d64b8841
DJ
6472 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6473 * ChangeLog: Correct paths in last ChangeLog entry.
6474
64752002-04-09 Daniel Jacobowitz <drow@mvista.com>
6476
6477 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6478 (struct linux_target_ops): New.
6479 (extern the_low_target): New.
d64b8841 6480 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6481 (register_addr): Use the_low_target explicitly.
6482 (fetch_register): Likewise.
6483 (usr_fetch_inferior_registers): Likewise.
6484 (usr_store_inferior_registers): Likewise.
d64b8841 6485 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6486 (arm_num_regs): Define.
6487 (arm_regmap): Renamed from regmap, made static.
6488 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6489 made static.
6490 (arm_cannot_store_register): Renamed from cannot_store_register,
6491 made static.
6492 (the_low_target): New.
d64b8841 6493 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6494 (i386_num_regs): Define.
6495 (i386_regmap): Renamed from regmap, made static.
6496 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6497 made static.
6498 (i386_cannot_store_register): Renamed from cannot_store_register,
6499 made static.
6500 (the_low_target): New.
d64b8841 6501 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6502 (ia64_num_regs): Define.
6503 (ia64_regmap): Renamed from regmap, made static.
6504 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6505 made static.
6506 (ia64_cannot_store_register): Renamed from cannot_store_register,
6507 made static.
6508 (the_low_target): New.
d64b8841 6509 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6510 (m68k_num_regs): Define.
6511 (m68k_regmap): Renamed from regmap, made static.
6512 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6513 made static.
6514 (m68k_cannot_store_register): Renamed from cannot_store_register,
6515 made static.
6516 (the_low_target): New.
d64b8841 6517 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6518 (mips_num_regs): Define.
6519 (mips_regmap): Renamed from regmap, made static.
6520 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6521 made static.
6522 (mips_cannot_store_register): Renamed from cannot_store_register,
6523 made static.
6524 (the_low_target): New.
d64b8841 6525 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6526 (ppc_num_regs): Define.
6527 (ppc_regmap): Renamed from regmap, made static.
6528 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6529 made static.
6530 (ppc_cannot_store_register): Renamed from cannot_store_register,
6531 made static.
6532 (the_low_target): New.
d64b8841 6533 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6534 (s390_num_regs): Define.
6535 (s390_regmap): Renamed from regmap, made static.
6536 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6537 made static.
6538 (s390_cannot_store_register): Renamed from cannot_store_register,
6539 made static.
6540 (the_low_target): New.
d64b8841 6541 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6542 (sh_num_regs): Define.
6543 (sh_regmap): Renamed from regmap, made static.
6544 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6545 made static.
6546 (sh_cannot_store_register): Renamed from cannot_store_register,
6547 made static.
6548 (the_low_target): New.
d64b8841 6549 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6550 (the_low_target): New.
6551
96cb11df
AC
65522002-04-09 Andrew Cagney <ac131313@redhat.com>
6553
6554 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6555 override FP_REGNUM with frame->fp. Update copyright.
6556 * parse.c (num_std_regs, std_regs): Delete.
6557 (target_map_name_to_register): Do not search std_regs. Update
6558 function description.
6559 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6560 declarations. Update copyright.
6561 Fix PR gdb/251.
361d1df0 6562
c3a3ccc7
DJ
65632002-04-09 Daniel Jacobowitz <drow@mvista.com>
6564
6565 * gdbserver/Makefile.in: Add stamp-h target.
6566 * gdbserver/configure.in: Create stamp-h.
6567 * gdbserver/configure: Regenerated.
6568
ce3a066d
DJ
65692002-04-09 Daniel Jacobowitz <drow@mvista.com>
6570
6571 * gdbserver/inferiors.c: New file.
6572 * gdbserver/target.c: New file.
6573 * gdbserver/target.h: New file.
6574 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6575 dependencies.
6576 * gdbserver/linux-low.c (inferior_pid): New static variable,
6577 moved from server.c.
6578 (linux_create_inferior): Renamed from create_inferior.
6579 Call add_inferior. Return 0 on success instead of a PID.
6580 (linux_attach): Renamed from myattach.
6581 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6582 (linux_thread_alive): Renamed from mythread_alive.
6583 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6584 child dies.
6585 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6586 (regsets_store_inferior_registers): Correct error message.
6587 Add missing ``return 0''.
6588 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6589 (linux_store_registers): Renamed from store_inferior_registers.
6590 (linux_read_memory): Renamed from read_inferior_memory.
6591 (linux_write_memory): Renamed from write_inferior_memory.
6592 (linux_target_ops): New structure.
6593 (initialize_low): Call set_target_ops ().
6594 * gdbserver/remote-utils.c (unhexify): New function.
6595 (hexify): New function.
6596 (input_interrupt): Send signals to ``signal_pid''.
6597 * gdbserver/server.c (inferior_pid): Remove.
6598 (start_inferior): Update create_inferior call.
6599 (attach_inferior): Call add_inferior.
6600 (handle_query): New function.
6601 (main): Call handle_query for `q' packets.
6602 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6603 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6604
0729219d
DJ
66052002-04-09 Daniel Jacobowitz <drow@mvista.com>
6606
6607 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6608 dependencies.
6609 * gdbserver/configure.in: Check for <string.h>
6610 * gdbserver/configure: Regenerate.
6611 * gdbserver/config.in: Regenerate.
6612 * gdbserver/gdbreplay.c: Include needed system headers.
6613 (remote_open): Remove strchr prototype.
6614 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6615 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6616 (supply_register_by_name): Likewise.
6617 (collect_register): Change buf argument to void *.
6618 (collect_register_by_name): Likewise.
6619 * gdbserver/regcache.h: Add missing prototypes.
6620 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6621 * gdbserver/server.c (handle_query): New function.
6622 (attached): New static variable, moved out of main.
6623 (main): Quiet longjmp clobber warnings.
6624 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6625 * gdbserver/utils.c (error): Remove NORETURN.
6626 (fatal): Likewise.
6627
97658e92
DJ
66282002-04-09 Daniel Jacobowitz <drow@mvista.com>
6629
6630 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6631 after the last symbol in a block.
6632
6044e3eb
PM
66332002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6634
6635 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6636 is non zero as a found symbol.
6637
0406ec40
AC
66382002-04-08 Andrew Cagney <ac131313@redhat.com>
6639
6640 * findvar.c: Include "builtin-regs.h".
6641 (value_of_register): Call value_of_builtin_reg when applicable.
6642 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6643 (target_map_name_to_register): Call
6644 builtin_reg_map_name_to_regnum.
6645 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6646 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6647 (builtin_regs_h): Define.
6648 (builtin-regs.o): New target.
6649 (findvar.o): Add $(builtin_regs_h).
6650 * builtin-regs.c, builtin-regs.h: New files.
6651 * std-regs.c: New file.
6652 Partial fix for PR gdb/251.
6653
56a6dfb9
KB
66542002-04-08 Kevin Buettner <kevinb@redhat.com>
6655
6656 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6657 it's no longer required.
6658
3a808432
AC
66592002-04-08 Andrew Cagney <ac131313@redhat.com>
6660
6661 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6662
7c40d541
KB
66632002-04-08 Kevin Buettner <kevinb@redhat.com>
6664
6665 From Jimi X <jimix@watson.ibm.com>:
6666 * rs6000-tdep.c (rs6000_software_single_step): Use
6667 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6668 and size. Use target_insert_breakpoint() and
6669 target_remove_breakpoint() to insert and remove breakpoints
6670 instead of explicit memory reads and writes.
6671
cc9836a8
KB
66722002-04-08 Kevin Buettner <kevinb@redhat.com>
6673
6674 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6675 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6676 ELF_OBJECT_FORMAT ifdef.
6677
7495d1dc
KB
66782002-04-08 Kevin Buettner <kevinb@redhat.com>
6679
6680 From Jimi X <jimix@watson.ibm.com>:
6681 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6682
4288e836
KB
66832002-04-08 Kevin Buettner <kevinb@redhat.com>
6684
6685 From Jimi X <jimix@watson.ibm.com>:
6686 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6687 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6688
a4e4e501
MK
66892002-04-07 Mark Kettenis <kettenis@gnu.org>
6690
6691 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6692 s/asprintf/xasprintf/.
6693 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6694
006defba
AC
66952002-04-07 Andrew Cagney <ac131313@redhat.com>
6696
6697 I believe Jeff Law denies responsability for this one:
6698 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6699 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6700 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6701 Work-around for PR gdb/366.
6702
7aa83cac
EZ
67032002-04-07 Elena Zannoni <ezannoni@redhat.com>
6704
6705 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6706 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6707 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6708
cf1fcca1
EZ
67092002-04-07 Elena Zannoni <ezannoni@redhat.com>
6710
6711 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6712 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6713 information.
6714
3f289e6f
AC
67152002-04-07 Andrew Cagney <ac131313@redhat.com>
6716
6717 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6718 maintainer.
6719
129188f6
AC
67202002-04-07 Andrew Cagney <ac131313@redhat.com>
6721
6722 * README (Reporting Bugs in GDB): Document the bug web page as the
6723 prefered way of submitting bugs.
6724 Fix PR gdb/402.
6725
1200cd6e
AC
67262002-04-06 Andrew Cagney <ac131313@redhat.com>
6727
6728 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6729 -1. Update comment.
6730 * gdbarch.h, gdbarch.c: Re-generate.
6731
2853c33c
AS
67322002-04-07 Andreas Schwab <schwab@suse.de>
6733
6734 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6735 buffer to regcache_collect.
6736
c2169756
AC
67372002-04-06 Andrew Cagney <ac131313@redhat.com>
6738
6739 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6740 * gdbarch.c, gdbarch.h: Re-generate.
6741
25f1b008
AC
67422002-04-06 Andrew Cagney <ac131313@redhat.com>
6743
6744 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6745 declaration. Fix -Werror.
6746
59263426
DJ
67472002-04-05 Daniel Jacobowitz <drow@mvista.com>
6748
6749 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6750 * gdbarch.c: Regenerate.
6751
f5db4da3
MS
67522002-04-05 Michael Snyder <msnyder@redhat.com>
6753
80f8a6eb
MS
6754 * breakpoint.c (clear_command): Rewrite middle section to
6755 combine two loops with identical control conditions.
6756 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6757 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6758
ad3dcc5c
L
67592002-04-05 H.J. Lu (hjl@gnu.org)
6760
6761 * solib-svr4.c (bkpt_names): Add "__start".
6762
f32e7a74
AC
67632002-04-04 Andrew Cagney <ac131313@redhat.com>
6764
6765 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6766 as test for 64 bit target.
6767
8227c0ff
AC
67682002-04-05 Andrew Cagney <ac131313@redhat.com>
6769
6770 * h8500-tdep.c (h8500_write_fp): Delete function.
6771 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6772 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6773 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6775 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6776 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6777 (s390_write_fp):
6778 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6779 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6780 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6781 (d10v_write_fp): Delete function.
6782 * inferior.h (write_fp, generic_target_write_fp): Delete
6783 declarations.
6784 * regcache.c (generic_target_write_fp): Delete function.
6785 (write_fp): Delete function.
6786 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6787 * gdbarch.h, gdbarch.c: Regenerate.
6788 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6789 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6790 (sparc64_write_fp): Delete declaration.
6791 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6792 (h8500_write_fp): Delete declaration.
6793
2757dd86
AC
67942002-04-04 Andrew Cagney <ac131313@redhat.com>
6795
6796 * sparc-tdep.c (sparc64_write_fp): Delete.
6797 (sparc_push_dummy_frame): Replace write_fp call with code to store
6798 the FP directly.
6799 (sparc_gdbarch_init): Do not initialize write_fp.
6800
c69255e1
KB
68012002-04-05 Kevin Buettner <kevinb@redhat.com>
6802
6803 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6804 clause.
6805
ae767bfb
JB
68062002-03-29 Jim Blandy <jimb@redhat.com>
6807
6808 * stack.c (get_selected_block): Add new argument `addr_in_block',
6809 used to return the exact code address we used to select the block,
6810 not just the block.
6811 * blockframe.c (get_frame_block, get_current_block): Same.
6812 * frame.h (get_frame_block, get_current_block,
6813 get_selected_block): Update declarations.
6814 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6815 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6816
84d2ac95
MS
68172002-04-05 Michael Snyder <msnyder@redhat.com>
6818
6819 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6820 warning message.
6821
596aa3bf
JB
68222002-04-05 J. Brobecker <brobecker@gnat.com>
6823
6824 * utils.c (xfullpath): New function.
6825 * defs.h (xfullpath): Add declaration.
6826 * source.c (openp): Use xfullpath in place of gdb_realpath to
6827 avoid resolving the basename part of filenames when the
6828 associated file is a symbolic link. This fixes a potential
6829 inconsistency between the filenames known to GDB and the
6830 filenames it prints in the annotations.
6831 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6832 to be able to match a filename with either the real filename, or
6833 the name of any symbolic link to this file.
6834 (lookup_partial_symtab): Ditto.
6835
c02f5703
MS
68362002-04-04 Michael Snyder <msnyder@redhat.com>
6837
6838 * breakpoint.c: Add support for hardware breakpoints in overlays.
6839 (overlay_events_enabled): New state variable.
6840 (insert_breakpoints): Use overlay_events_enabled to decide
6841 whether to attempt to set a breakpoint at the overlay load addr.
6842 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6843 (remove_breakpoint): Use overlay_events_enabled to decide
6844 whether breakpoints need to be removed from overlay load addr.
6845 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6846 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6847 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6848 disable_overlay_breakpoints): Update overlay_events_enabled.
6849
5fb290d7
DJ
68502002-04-04 Daniel Jacobowitz <drow@mvista.com>
6851
6852 * dwarf2read.c (struct function_range): New.
6853 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6854 (check_cu_functions): New.
6855 (read_file_scope): Initialize global function lists.
6856 Call dwarf_decode_line after processing children.
6857 (read_func_scope): Add to global function list.
6858 (dwarf_decode_lines): Call check_cu_functions everywhere
6859 record_line is called. Call record_line with a linenumber
6860 of 0 to mark sequence ends.
6861
7b3fabf0
ML
68622002-04-04 Michal Ludvig <mludvig@suse.cz>
6863
361d1df0 6864 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6865 change sync with glibc.
6866
bce58c09
JB
68672002-04-03 Jim Blandy <jimb@redhat.com>
6868
6869 * configure.in: Call AC_C_INLINE.
6870 * configure: Regenerated.
361d1df0 6871
2fccf04a
DJ
68722002-04-01 Daniel Jacobowitz <drow@mvista.com>
6873
6874 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6875 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6876
2d1bfe2e
MK
68772002-03-31 Mark Kettenis <kettenis@gnu.org>
6878
a5941fbf
MK
6879 * NEWS: Mention gcore support on FreeBSD/i386.
6880
a90cd31d
MK
6881 * fbsd-proc.c: New file.
6882 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6883 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6884
2d1bfe2e
MK
6885 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6886 while statement.
6887
9eb6e5a1
JB
68882002-03-29 Jim Blandy <jimb@redhat.com>
6889
6890 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6891 unescaped newlines in string literals, but newer ones don't. So
6892 escape them.
6893
f02df580
MS
68942002-03-26 Michael Snyder <msnyder@redhat.com>
6895 Andrew Cagney <cagney@redhat.com>
6896
361d1df0 6897 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6898 restore file to memory.
6899 * cli/cli-dump.h: New file.
6900 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6901 * NEWS: Mention new commands.
f02df580 6902
109f874e
MS
69032002-03-28 Michael Snyder <msnyder@redhat.com>
6904
6905 * symfile.c (symbol_file_add): Move test for null symbols to later.
6906
520f6ade
AC
69072002-03-27 Andrew Cagney <ac131313@redhat.com>
6908
6909 From veksler at il.ibm.com:
6910 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6911 the xstrduped original path.
6912 Fix PR gdb/417.
6913
d4654627
MS
69142002-03-27 Michael Snyder <msnyder@redhat.com>
6915
6916 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6917 * infcmd.c (_initialize_infcmd): Ditto.
6918 * language.c (_initialize_language): Ditto.
6919 * symfile.c (_initialize_symfile): Ditto.
6920 * top.c (_init_main): Ditto.
6921 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6922
6be8bc0c
EZ
69232002-03-27 Elena Zannoni <ezannoni@redhat.com>
6924
6925 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6926 vector registers handling.
6927 (skip_prologue): Handle new AltiVec instructions. Fill in new
6928 fields of frame data.
6929 (frame_get_saved_regs): Fill in information for AltiVec registers.
6930
12af6855
JB
69312002-03-27 Jim Blandy <jimb@redhat.com>
6932
6933 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6934 a function; leave this macro here to invoke that function.
6935 (symbol_init_mangled_name): Declaration for that function.
6936 * symtab.c (symbol_init_mangled_name): New function.
6937
dc672865
AC
69382002-03-27 Andrew Cagney <ac131313@redhat.com>
6939
6940 * valarith.c: Replace strerror with safe_strerror.
6941 * tracepoint.c: Ditto.
6942 * lin-lwp.c: Ditto.
6943 * go32-nat.c: Ditto.
6944 * inflow.c: Ditto.
6945 * gnu-nat.c: Ditto.
6946
d96429cd
AS
69472002-03-27 Andreas Schwab <schwab@suse.de>
6948
6949 * event-top.c (command_line_handler): Remove useless if.
6950
7e336ba1
AJ
69512002-03-27 Andreas Jaeger <aj@suse.de>
6952
6953 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6954 comment.
6955
de220d0f
ML
69562002-03-27 Michal Ludvig <mludvig@suse.cz>
6957
6958 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6959 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6960 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6961 (x86_64_linux_dr_get_status, supply_gregset),
6962 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6963 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6964 (x86_64_register_info_table): Add.
6965 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6966 (x86_64_register_raw_size, x86_64_register_virtual_type),
6967 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6968 general x86_64_register_info_table.
6969 (i386_gdbarch_init): gdbarch_register_bytes is now set
6970 dynamicaly during initialization.
6971 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6972 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 6973
0e98d0a7
DJ
69742002-03-27 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * gdbserver/server.c (main): Call target_signal_to_host_p
6977 and target_signal_to_host on signals received from the remote.
6978 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6979 target_signal_from_host on signals sent to the remote.
6980 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6981 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6982
3130066b
DJ
69832002-03-27 Daniel Jacobowitz <drow@mvista.com>
6984
6985 * signals/signals.c: Include "server.h" in gdbserver build.
6986 (target_signal_from_name): Don't use STREQ.
6987 (_initialize_signals): Likewise. Don't include function in
6988 gdbserver build.
6989
9aedf4f4
DJ
69902002-03-27 Daniel Jacobowitz <drow@mvista.com>
6991
6992 * signals.c: Moved to...
6993 * signals/signals.c: Here.
7e336ba1 6994 * Makefile (signals.o): Update.
9aedf4f4 6995
3fa41cdb
JL
69962002-03-26 Jeff Law (law@redhat.com)
6997
6998 * somread.c (som_symtab_read): Remove some commented out code and
6999 updated related comments. Do not set the minimal symbol table to
7000 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7001 in a dynamic executable.
7002 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7003 where we are unable to find the minimal symbol for the given
7004 PC value.
7005
ee677e8d
MS
70062002-03-25 Jeff Law (law@redhat.com)
7007
7008 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7009
e76e1718
ML
70102002-03-25 Michal Ludvig <mludvig@suse.cz>
7011
7012 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7013
18a642a1
AC
70142002-03-23 Andrew Cagney <ac131313@redhat.com>
7015
7016 * command.h: Update copyright.
7017 (struct cmd_list_element): Replace definition with opaque
7018 declaration.
7019 (enum cmd_types): Document that it will eventually be moved to
7020 cli/cli-decode.h
7021 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7022 (MALLOCED_REPLACEMENT): Delete macro.
7023 * Makefile.in (cli_decode_h): Add $(command_h).
7024 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7025 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7026 * completer.c: Include "cli/cli-decode.h".
7027 * maint.c: Include "cli/cli-decode.h".
7028 * cli/cli-decode.h: Include "command.h".
7029 (enum command_class): Delete.
7030 (enum cmd_types): Comment out.
7031 (enum cmd_auto_boolean): Delete.
7032 (enum var_types): Delete.
7033
b2875cc0
AC
70342002-03-23 Andrew Cagney <ac131313@redhat.com>
7035
7036 * cli/cli-decode.c: Include "gdb_assert.h".
7037 (add_set_or_show_cmd): New static function.
7038 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7039 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7040 all fields, such as func, from the set command.
7041
3b45974e
AC
70422002-03-23 Andrew Cagney <ac131313@redhat.com>
7043
7044 * MAINTAINERS (sh-elf): Change warning flag to -w.
7045
823ca731
AC
70462002-03-23 Andrew Cagney <cagney@redhat.com>
7047
7048 * defs.h (error): Add printf format attribute.
7049 * thread-db.c (thread_from_lwp): Fix error format string.
7050 * stack.c (parse_frame_specification): Ditto.
7051 * cli/cli-decode.c (undef_cmd_error): Ditto.
7052 * scm-lang.c (scm_lookup_name): Ditto.
7053 * tracepoint.c (trace_error): Ditto.
7054 * remote-utils.c (usage): Ditto.
7055 * remote.c (compare_sections_command): Ditto.
7056 Fix PR gdb/328.
7057
0e101458
AC
70582002-03-22 Andrew Cagney <ac131313@redhat.com>
7059
7060 * gdbtypes.c (append_composite_type_field): New function.
7061 (init_composite_type): New function.
7062 * gdbtypes.h (append_composite_type_field): Declare.
7063 (init_composite_type): Ditto.
7064
8e0662df
EZ
70652002-03-22 Elena Zannoni <ezannoni@redhat.com>
7066
7067 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7068 function.
8e0662df
EZ
7069 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7070 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7071 structure returning convention for SYSV ABI case, but not
7072 for GNU/Linux, FreeBSD, or NetBSD.
7073
3121eff0
DJ
70742002-03-22 Daniel Jacobowitz <drow@mvista.com>
7075
7076 * symtab.h (lookup_block_symbol): Add mangled_name argument
7077 to prototype.
7078
7079 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7080 with new mangled_name argument.
7081 * linespec.c (decode_line_1): Likewise.
7082 * valops (value_of_this): Likewise.
7083 * symtab.c (lookup_transparent_type): Likewise.
7084 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7085 (lookup_symbol): If we are given a mangled name, pass it down
7086 to lookup_symbol_aux.
7087 (lookup_block_symbol): If we are given a mangled name to check
7088 against, only return symbols which match it.
7089
349b409f
CF
70902002-03-22 Christopher Faylor <cgf@redhat.com>
7091
7092 * win32-nat.c (child_create_inferior): Check for proper shell to use
7093 here, in case the user changes it on the fly.
7094 (_initialize_inftarg): Remove shell path considerations.
7095
2a873819
EZ
70962002-03-21 Elena Zannoni <ezannoni@redhat.com>
7097
7098 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7099 for gdbarch_max_register_raw_size and max_register_virtual_size.
7100 Adjust copyright year.
7101
a1b9830c
DJ
71022002-03-21 Daniel Jacobowitz <drow@mvista.com>
7103
7104 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7105 in a function to cover the entire beginning of the function
7106 as well if it does not already.
7107
8b5790f2
TR
71082002-03-21 Tom Rix <trix@redhat.com>
7109
7110 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7111 (rs6000_ptrace64): Renamed from ptrace64.
7112
bdbe5747
MH
71132002-03-20 Martin M. Hunt <hunt@redhat.com>
7114
7115 * gdbserver/remote-utils.c (remote_open): Don't call
7116 getprotobyname, we're all using TCP here so just use
7117 IPPROTO_TCP.
7e336ba1 7118 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7119
71202002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7121
bdbe5747
MH
7122 * regcache.c (_initialize_regcache): No need to call
7123 build_regcache() at this time; it gets called whenever
7124 the gdbarch changes.
7125
7781cd62
DB
71262002-03-20 David O'Brien <obrien@FreeBSD.org>
7127
7128 * sparc-nat.c: Include sys/param.h where possible.
7129
f65ca430
DJ
71302002-03-20 Daniel Jacobowitz <drow@mvista.com>
7131
7132 Fix PR gdb/422.
7133 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7134 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7135 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7136 complex types.
7137 * stabsread.c (rs6000_builtin_type): Likewise.
7138 (read_sun_floating_type): Likewise.
7139
0c867556
PS
71402002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7141
7142 * stabsread.c (read_member_functions): Remove skip code for duplicate
7143 constructor/destructor methods. Use standard parsing for these
7144 methods and just do not chain them to the list of methods after
7145 parsing.
7146
12b9c64f
AO
71472002-03-19 Alexandre Oliva <aoliva@redhat.com>
7148
7149 * coffread.c: Remove redundant static declarations. Replace
7150 occurrences of `PTR' with `void *'.
7151 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7152 * top.h (quit_cover): Likewise.
7153 * defs.h (catch_errors): Likewise.
7154
349c5d5f
AC
71552002-03-18 Andrew Cagney <ac131313@redhat.com>
7156
7157 * defs.h (XMALLOC): Define.
7158 * gdb-events.sh (XMALLOC): Delete macro.
7159 * gdb-events.c, gdb-events.h: Regenerate.
7160 * gdbarch.sh (XMALLOC): Delete macro.
7161 * gdbarch.c: Regenerate.
7162 * serial.c (XMALLOC): Delete macro.
7163 * ui-file.c (XMALLOC): Ditto.
7164 * ser-unix.h (XMALLOC): Ditto.
7165 * sh-tdep.c (XMALLOC): Ditto.
7166 * ui-out.c (XMALLOC): Ditto.
7167 * utils.c (XMALLOC): Ditto.
7168 * i386-tdep.c (XMALLOC): Ditto.
7169 * gdb-events.c (XMALLOC): Ditto.
7170 * d10v-tdep.c (XMALLOC): Ditto.
7171 * cli-out.c (XMALLOC): Ditto.
7172
7173 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7174 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7175 * ui-file.c, ui-out.c: Ditto.
7176
7d0766f3
AC
71772002-03-18 Andrew Cagney <ac131313@redhat.com>
7178
7179 * command.h (struct cmd_list_element): Add field context.
7180 (set_cmd_context, get_cmd_context): Declare.
7181 * cli/cli-decode.h: Ditto.
7182 * cli/cli-decode.c (get_cmd_context): New function.
7183 (set_cmd_context): New function.
7184 (add_cmd): Initialize context.
7185 Part of fixing PR gdb/145 and PR gdb/146.
7186
5913bcb0
AC
71872002-03-17 Andrew Cagney <ac131313@redhat.com>
7188
1868c04e
AC
7189 * cli/cli-decode.c (cmd_type): New function.
7190 * command.h (cmd_type): Declare.
7191 * infrun.c (set_schedlock_func): Call function cmd_type.
7192 * kod.c (kod_set_os): Call cmd_type.
7193 * cris-tdep.c (cris_version_update): Use function cmd_type.
7194 (cris_mode_update, cris_abi_update): Ditto.
7195
5913bcb0
AC
7196 * command.h: (execute_cmd_post_hook): Declare.
7197 (execute_cmd_pre_hook): Declare.
7198 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7199 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7200 functions. Execute pre/post hook while ensuring that afterwords
7201 hook_in is cleared.
7202 * top.c (execute_command): Use execute_cmd_post_hook, and
7203 execute_cmd_pre_hook to execute pre/post commands.
7204 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7205 hook_stop_stub.
7206 (hook_stop_stub): Call execute_cmd_pre_hook.
7207
b51450c9
AC
72082002-03-17 Andrew Cagney <ac131313@redhat.com>
7209
7210 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7211 set'' and this leads to a core dump. Move xstrdup of
7212 operating_system to after check that it is not NULL.
7213
f66c9f11
AC
72142002-03-17 Andrew Cagney <ac131313@redhat.com>
7215
8e694ecf
AC
7216 * kod.c (kod_set_os): Remove unnecessary check that
7217 ``command->type'' is set_cmd.
7218
f66c9f11
AC
7219 * valprint.c (set_input_radix): Use input_radix.
7220 (set_output_radix): Use output_radix.
7221 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7222 isn't reverted.
7223
9d01611c
AC
72242002-03-16 Andrew Cagney <ac131313@redhat.com>
7225
7226 * value.h (struct value): Delete field ``substring_addr''. Change
7227 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7228 force_core_addr_align and force_pointer_aligh.
7229
7230 * value.h (struct value): Fix typo in above change.
9d01611c 7231
4156bb53
PS
72322002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7233
7234 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7235 to fix internal_error from ``maintenance print architecture''.
7236
0e5e3ea6
PS
72372002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7238
7239 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7240 for gcc versions after gcc-2.8.1.
7241
9b013045
PS
72422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7243
7244 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7245 for method resolution. Restore adjustment of ``this'' pointer after
7246 calling value_struct_elt, which was accidentally removed during the
7247 HP merge.
7248
376c9600
AC
72492002-03-15 Andrew Cagney <ac131313@redhat.com>
7250
7251 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7252 value_of_register.
7253 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7254 get_saved_register.
7255 * value.h (value_of_register): Update.
7256
a4db0f07
RH
72572002-03-14 Richard Henderson <rth@redhat.com>
7258
7259 * configure.in: Detect declaration for canonicalize_file_name.
7260 * utils.c (canonicalize_file_name): Declare, if needed.
7261 (gdb_realpath): Prefer realpath if available and usable.
7262 * config.in, configure: Rebuild.
7263
96383835
RH
72642002-03-14 Richard Henderson <rth@redhat.com>
7265
7266 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7267 a constant array bound.
7268
7269 * MAINTAINERS: Add myself to write-after-approval.
7270
75245b24
MS
72712002-03-14 Michael Snyder <msnyder@redhat.com>
7272
7273 * symfile.c (syms_from_objfile): Return immediately if no syms.
7274 (symbol_file_add): Return immediately if no syms.
7275 (find_sym_fns): Return immediately if no syms.
7276
e641a1ca
ML
72772002-03-13 Michal Ludvig <mludvig@suse.cz>
7278
7279 * gdbserver/remote-util.c (remote_open): Print remote-side's
7280 IP address when remote debugging over the network.
7e336ba1 7281
df08bfec
DB
72822002-03-12 David O'Brien <obrien@FreeBSD.org>
7283
7284 * config/sparc/fbsd.mh: Fix copyright.
7285 * config/sparc/fbsd.mt: Likewise.
7286
9a57864f
RE
72872002-03-11 Richard Earnshaw <rearnsha@arm.com>
7288
7289 * MAINTAINERS: Fix typo in name of gdb warnings option.
7290 (x86-64): Fix formating so that this can be parsed by awk.
7291
dd7bf85e
DJ
72922002-03-10 Daniel Jacobowitz <drow@mvista.com>
7293
7294 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7295 * defs.h: Include "gdb/signals.h".
7296 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7297
33a0a2ac
ML
72982002-03-10 Michal Ludvig <mludvig@suse.cz>
7299
7300 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7301 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7302 from x86-64-tdep.h
7303
dd824b04
DJ
73042002-03-10 Daniel Jacobowitz <drow@mvista.com>
7305 Don Howard <dhoward@redhat.com>
7306
7307 * mips-tdep.c (ST0_FR): Define.
7308 (mips2_fp_compat): New function, temporarily disabled.
7309 (mips_read_fp_register_single): New function.
7310 (mips_read_fp_register_double): New function.
7311 (mips_print_register): Use them.
7312 (do_fp_register_row): Likewise.
7313
6a41ff59
AC
73142002-03-09 Andrew Cagney <ac131313@redhat.com>
7315
7316 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7317 approval''.
7318
4ea09c10
PS
73192002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7320
7321 * stabsread.c (read_member_functions): Fix is_stub test for
7322 static member functions, improve comment.
7323
6ccc741d
RE
73242002-03-07 Richard Earnshaw <rearnsha@arm.com>
7325
7326 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7327 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7328 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7329 commands that set boolean values.
7330 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7331 (arm_rdi_resume): Always initialize PC.
7332 (arm_rdi_open): Don't use rslt as a boolean.
7333 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7334 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7335 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7336 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7337
438013df
AO
73382002-03-06 Alexandre Oliva <aoliva@redhat.com>
7339
7340 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7341 * configure: Rebuilt.
7342
70ed8774
SC
73432002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7344
7345 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7346 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7347
5ba2abeb
AC
73482002-03-06 Andrew Cagney <ac131313@redhat.com>
7349
7350 * cli/cli-decode.c (set_cmd_completer): New function.
7351 * command.h (set_cmd_completer): Declare.
7352 * cli/cli-decode.h (set_cmd_completer): Ditto.
7353
7354 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7355 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7356 * win32-nat.c (_initialize_inftarg): Ditto.
7357 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7358 * proc-api.c (_initialize_proc_api): Ditto.
7359 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7360 * source.c (_initialize_source): Ditto.
7361 * exec.c (_initialize_exec): Ditto.
7362 * solib.c (_initialize_solib): Ditto.
7363 * top.c (init_main): Ditto.
7364 * tracepoint.c (_initialize_tracepoint): Ditto.
7365 * symfile.c (_initialize_symfile): Ditto.
7366 * printcmd.c (_initialize_printcmd): Ditto.
7367 * infcmd.c (_initialize_infcmd): Ditto.
7368 * corefile.c (_initialize_core): Ditto.
7369
f779ca99
AC
73702002-03-05 Andrew Cagney <ac131313@redhat.com>
7371
7372 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7373
01a3934b
AC
73742002-03-05 Andrew Cagney <ac131313@redhat.com>
7375
7376 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7377
37057839
AC
73782002-03-05 Andrew Cagney <ac131313@redhat.com>
7379
7380 * NEWS: Update headings, 5.2 has branched.
7381
c6ecbae5
DJ
73822002-03-04 Daniel Jacobowitz <drow@mvista.com>
7383
7384 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7385 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7386 (register_addr, REGISTER_RAW_SIZE): Likewise.
7387 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7388 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7389
e9f30c21
ML
73902002-03-03 Michal Ludvig <mludvig@suse.cz>
7391
7392 * MAINTAINERS (x86-64): Add myself.
7393 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7394 changed value_ptr -> struct value *
7395
54394ac3
DB
73962002-03-01 David O'Brien <obrien@FreeBSD.org>
7397
7398 * configure.host (sparc64-*-freebsd): Add.
7399 * configure.tgt: Likewise.
7400 * config/sparc/fbsd.mh: New file.
7401 * config/sparc/fbsd.mt: Likewise.
7402 * config/sparc/nm-fbsd.h: Likewise.
7403 * config/sparc/tm-fbsd.h: Likewise.
7404
bfe95955
DJ
74052002-03-01 Daniel Jacobowitz <drow@mvista.com>
7406
7407 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7408 regformats/reg-s390x.dat.
7409
f33c6cbf
AC
74102002-03-01 Andrew Cagney <ac131313@redhat.com>
7411
7412 * utils.c: Add FIXME explaining true/false problem.
7413
5ecaa7dd
AC
74142002-02-28 Andrew Cagney <ac131313@redhat.com>
7415
7416 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7417
2a251cc2
MC
74182002-02-28 Michael Chastain <mec@shout.net>
7419
7420 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7421
6a8031a3 74222002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7423
7424 * gdbserver/linux-s390-low.c: New file.
7425 * regformats/reg-s390.dat: New file.
7426 * regformats/reg-s390x.dat: New file.
7427 * gdbserver/configure.srv: Add S/390.
7428 * gdbserver/Makefile.in: Add S/390.
7429 * configure.tgt: Enable gdbserver for S/390.
7430
ac469903
EZ
74312002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7432
7433 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7434 first line of the doc string for "info dos", except at the end of
7435 the sentence, since the short help stops at the first period.
7436
985cb1a3
JM
74372002-02-28 Jason Merrill <jason@redhat.com>
7438
7439 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7440
c570663e
FF
74412002-02-27 Fred Fish <fnf@redhat.com>
7442
7443 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7444 comment (dumy -> dummy).
7445
43630227
PS
74462002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7447
7448 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7449
b84911e8
RB
74502002-02-27 Rodney Brown <rbrown64@csc.com.au>
7451
7452 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7453
58caa3dc
DJ
74542002-02-27 Daniel Jacobowitz <drow@mvista.com>
7455
7456 * gdbserver/acconfig.h: New file.
7457 * gdbserver/i387-fp.c: New file.
7458 * gdbserver/i387-fp.h: New file.
7459 * gdbserver/linux-x86-64.c: New file.
7460 * regformats/reg-x86-64.dat: New file.
7461 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7462 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7463 * gdbserver/configure.in: Add support for regsets.
7464 * gdbserver/config.in: Regenerate.
7465 * gdbserver/configure: Regenerate.
7466 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7467 * gdbserver/linux-low.h: New file.
7468 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7469 for regsets.
7470 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7471 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7472 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7473 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7474 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7475 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7476 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7477 "i387-fp.h". Add PTRACE_GETREGS and friends.
7478 * gdbserver/regcache.c (supply_register): New function.
7479 (supply_register_by_name): New function.
7480 (collect_register): New function.
7481 (collect_register_by_name): New function.
7482
93652174
DJ
74832002-02-27 Daniel Jacobowitz <drow@mvista.com>
7484
7485 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7486 (config.status): Add configure.srv dependency.
7487 (server_h): Add config.h dependency.
7488
a02e4a61
DJ
74892002-02-27 Daniel Jacobowitz <drow@mvista.com>
7490
7491 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7492 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7493 * gdbserver/configure.srv: Change i386-*-linux* to use
7494 reg-i386-linux.o.
7495
ce0eebec
AC
74962002-02-26 Andrew Cagney <ac131313@redhat.com>
7497
7498 * x86-64-tdep.c: Re-indent. Update copyright date.
7499
82dbc5f7
AC
75002002-02-26 Andrew Cagney <ac131313@redhat.com>
7501
7502 From Michal Ludvig <mludvig@suse.cz>:
7503 * x86-64-tdep.c (value.h): Delete.
7504 (gdb_assert.h): Include.
7505 (x86_64_register_convert_to_virtual,
7506 x86_64_register_convert_to_raw ): Add check which lets only
7507 floating-point values to be converted.
7508 (value_push): Delete.
7509 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7510 (i386_gdbarch_init): Number of register_bytes fixed.
7511
e4621584
AC
75122002-02-26 Andrew Cagney <ac131313@redhat.com>
7513
7514 * MAINTAINERS: Add x86-64 target.
7515
81a9a963
AC
75162002-02-26 Andrew Cagney <ac131313@redhat.com>
7517
7518 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7519 * osfsolib.c (solib_map_sections): Ditto.
7520 * irix5-nat.c (solib_map_sections): Ditto.
7521 * corelow.c (gdb_check_format): Ditto.
7522 * symfile.c (symfile_bfd_open): Ditto.
7523 * solib.c (solib_map_sections): Ditto.
7524 Fix PR gdb/354.
7e336ba1 7525
0f017ab9
AC
75262002-02-26 Andrew Cagney <ac131313@redhat.com>
7527
7528 * remote.c (_initialize_remote): By default, disable ``e'' and
7529 ``E'' step out-of-range packets.
7530
75738c29
AS
75312002-02-26 Andreas Schwab <schwab@suse.de>
7532
7533 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7534 m68k_linux_frame_saved_pc.
7535 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7536 in_sigtramp.
7537 (SIGCONTEXT_PC_OFFSET): Remove.
7538 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7539 m68k_linux_sigtramp_saved_pc): New functions.
7540 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7541 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7542 (UCONTEXT_PC_OFFSET): Define.
7543 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7544 non-RT and RT signal trampolines.
7545
7e8ed687
RE
75462002-02-26 Richard Earnshaw <rearnsha@arm.com>
7547
7548 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7549 (TARGET_NBPG, STACK_END_ADDR): Delete
7550 (VARIABLES_INSIDE_BLOCK): Delete.
7551
6972bc8b
AC
75522002-02-25 Andrew Cagney <ac131313@redhat.com>
7553
7554 * utils.c (perror_with_name): Make string parameter constant.
7555 (print_sys_errmsg): Ditto.
7556 (query): Ditto.
7557 * defs.h (perror_with_name): Update.
7558 (print_sys_errmsg): Update.
7559 (query): Update.
7560
aa32f823
DJ
75612002-02-25 Daniel Jacobowitz <drow@mvista.com>
7562
7563 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7564 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7565
19caaa45
PS
75662002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7567
7568 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7569 if it already matches the current architecture from the exec file.
7570 Include arch-utils.h for gdbarch_info_init prototype.
7571 * Makefile.in (rs6000-nat.o): Update dependencies.
7572
d951901f
EZ
75732002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7574
7575 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7576 list of exported variables.
7577
7ea81414
DJ
75782002-02-24 Daniel Jacobowitz <drow@mvista.com>
7579
7580 * gdbserver/configure.srv: New file.
7581 * gdbserver/configure.in: Use configure.srv instead
7582 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7583 from it.
7584 * gdbserver/configure: Regenerated.
7585 * gdbserver/terminal.h: New file.
7586 * gdbserver/Makefile.in: Update for configure changes. Remove
7587 more unneeded include paths.
7588
080fe24b
AC
75892002-02-24 Andrew Cagney <ac131313@redhat.com>
7590
7591 From wiz at danbala:
7592 * config/sparc/tm-sp64.h: Fix grammar and typos.
7593 Fix PR gdb/287.
7594
8605d56e
AC
75952002-02-24 Andrew Cagney <ac131313@redhat.com>
7596
7597 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7598 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7599 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7600 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7601 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7602 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7603 * s390-tdep.c: Ditto.
92362027
AC
7604 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7605 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7606 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7607 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7608 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7609 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7610 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7611 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7612 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7613 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7614 Fix PR gdb/378.
7e336ba1 7615
8ed32cc0
AC
76162002-02-23 Andrew Cagney <ac131313@redhat.com>
7617
a3007b6f
AC
7618 * lin-thread.c: Delete file.
7619 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7620 to gdb_proc_service.h.
7621 * configure: Re-generate.
7622
50a9e2f1
AC
7623 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7624 * serial.c (serial_open): Delete check for "ocd".
7625 Fix PR gdb/349.
7626
8b6e7932
AC
7627 * Makefile.in (linux-thread.o): Delete target.
7628 * linux-thread.c: Delete file.
7629
d155c46b
AC
7630 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7631 renamed SH files to be consistent.
7632
8ed32cc0
AC
7633 * symtab.c (sort_search_symbols): Use xfree.
7634
0e18d038
RE
76352002-02-23 Richard Earnshaw <rearnsha@arm.com>
7636
7637 * arm-linux-tdep.c (arm_linux_init_abi): Register
7638 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7639 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7640 definition with undef, since we don't want the sysvr4 definition.
7641 (SKIP_TRAMPOLINE_CODE): Likewise.
7642
27aac7ff
AC
76432002-02-23 Andrew Cagney <ac131313@redhat.com>
7644
7645 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7646
7647 * configure.in: (AC_CHECK_FUNCS) Added test for
7648 canonicalize_file_name Regenerated.
7649 * config.in, configure: Regenerated.
7650 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7651 defined use canonicalize_file_name.
7e336ba1 7652
65a6e0ee
MC
76532002-02-23 Michael Chastain <mec@shout.net>
7654
7655 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7656
47b95330
AC
76572002-02-23 Andrew Cagney <ac131313@redhat.com>
7658
7659 * README: Remove references to cygnus.com.
7660 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7661 dot com'' form. Remove references to cygnus.com and sourceware.
7662
696f451b
AC
76632002-02-23 Andrew Cagney <ac131313@redhat.com>
7664
7665 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7666 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7667 1003.1-2001 no longer allows "head -1".
7668 * gdb/Makefile.in (version.c): Likewise.
7669 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7670 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7671 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7672
bbaca940
AC
76732002-02-23 Andrew Cagney <ac131313@redhat.com>
7674
7675 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7676 * command.h (cmd_cfunc_eq): Declare.
7677 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7678
7679 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7680 ``struct cmd_list_element *''.
7681 * cli/cli-cmds.c (is_complete_command): Update. Use
7682 cmd_cfunc_eq.
7683 * top.c (execute_command): Pass the command to
7684 is_complete_command.
7685 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7686
b8b8b047
AC
76872002-02-23 Andrew Cagney <ac131313@redhat.com>
7688
7689 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7690 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7691 architecture defines.
7692 * s390-tdep.c (s390_gdbarch_init): Likewise.
7693
19d3fc80
RE
76942002-02-23 Richard Earnshaw <rearnsha@arm.com>
7695
7696 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7697 (arm_linux_push_arguments): Likewise.
7698 (arm_linux_init_abi): Register them. Also register linux-specific
7699 call_dummy_words.
7700 (find_minsym_and_objfile): Use strcmp, not STREQ.
7701 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7702 (arm_linux_call_dummy_words): Delete declaration.
7703 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7704 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7705 declarations.
7706 (LOWEST_PC): Delete.
7707
3ab13650
PS
77082002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7709
7710 * maint.c (print_section_info): Do not prepend `0x' to filepos
7711 output, it will be handled by local_hex_string_custom.
7712
19d3fc80 77132002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7714
7715 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7716 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7717 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7718
d85a5daf
JB
77192002-02-22 Jim Blandy <jimb@redhat.com>
7720
7721 Indicate that the bcache functions don't change the strings
7722 they're passed.
7723 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7724 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7725
eeb25b8a
PM
77262002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7727
7728 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7729
6badb179
CF
77302002-02-21 Christopher Faylor <cgf@redhat.com>
7731
7732 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7733 find the complete path to a loaded DLL.
7734
e8717518
FF
77352002-02-21 Fred Fish <fnf@redhat.com>
7736
7737 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7738 that marks the end of the range of a function, enter a line number
7739 entry that has a line number of zero and a PC offset that matches
7740 the end of the function. This starts a range of PC's for which no
7741 line number information is known.
7742 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7743 PC's for which no line number info is found (line number is zero)
7744 then we didn't find any valid line information.
7745 * symtab.h: Document use of zero line number entry.
7746
9abe5450
EZ
77472002-02-21 Elena Zannoni <ezannoni@redhat.com>
7748
7749 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7750 (have_ptrace_getvrregs): Define for run time checks.
7751 (gdb_vrregset_t): New type for Altivec register handling.
7752 (fetch_register, store_register): Fetch/store altivec register
7753 when needed.
7754 (fetch_altivec_register, store_altivec_register): New functions.
7755 (supply_vrregset, fill_vrregset): New functions.
7756 (fetch_altivec_registers, store_altivec_registers): New functions.
7757 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7758 registers as well.
7759
aaa38bb5
AJ
77602002-02-21 Jiri Smid <smid@suse.cz>
7761
7762 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7763
b34db576
RE
77642002-02-21 Richard Earnshaw <rearnsha@arm.com>
7765
7766 * Makefile.in (armnbsd-nat.o): Update dependencies.
7767 * armnbsd-nat.c (supply_gregset): New function. Common code to
7768 supply the integer register set.
7769 (supply_fparegset): New function. Similar for FPA registers.
7770 (fetch_regs, fetch_fp_regs): Use them.
7771 (fetch_core_registers): Likewise.
7772 (fetch_elfcore_registers): New function.
7773 (arm_netbsd_elfcore_fns): New core-file type specification.
7774 (_initialize_arm_netbsd_nat): Register it.
7775
3e56fc4b
RE
77762002-02-21 Richard Earnshaw <rearnsha@arm.com>
7777
7778 * armnbsd-nat.c: Include gdbcore.h.
7779 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7780 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7781 'void' to declaration, to shut up ARI.
7782 (fetch_core_registers): Make static. Rewrite using supply_register.
7783 (arm_netbsd_core_fns): New core-file type specification.
7784 (_initialize_arm_netbsd_nat): New function.
7785
097f6b0b
CF
77862002-02-21 Christopher Faylor <cgf@redhat.com>
7787
7788 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7789 value.
7790
c914e0cc
CF
77912002-02-20 Christopher Faylor <cgf@redhat.com>
7792
7793 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7794 fails.
7795
385fa495
DJ
77962002-02-20 Daniel Jacobowitz <drow@mvista.com>
7797
7798 * jv-exp.y (parse_number): Change type of implicit longs
7799 to builtin_type_uint64.
7800
e5f1222d
DJ
78012002-02-20 Daniel Jacobowitz <drow@mvista.com>
7802
7803 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7804 to be an integer instead of a `union wait'.
7805
75c9abc6
DJ
78062002-02-20 Daniel Jacobowitz <drow@mvista.com>
7807
7808 * mips-linux-nat.c: Call the operating system GNU/Linux.
7809 * mips-linux-tdep.c: Likewise.
7810 * mips-tdep.c: Likewise.
7811
551792a5
DJ
78122002-02-20 Daniel Jacobowitz <drow@mvista.com>
7813
7814 Fix PR gdb/265.
7815 * jv-exp.y (parse_number): Handle 64-bit integers.
7816
ee6e2b82
DJ
78172002-02-20 Daniel Jacobowitz <drow@mvista.com>
7818
7819 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7820 AC_STDC_HEADERS to AC_HEADER_STDC.
7821 * gdbserver/configure: Regenerated.
7822
a48442a0
RE
78232002-02-20 Richard Earnshaw <rearnsha@arm.com>
7824
7825 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7826 is defined.
7827 * sparc-tdep.c (get_longjmp_target): Likewise.
7828
fe419ffc
RE
78292002-02-20 Richard Earnshaw <rearnsha@arm.com>
7830
7831 * News: Add news about ARM and Multi-arch. Mention the new target
7832 arm*-*-netbsd*.
7833
5832ed7e
JB
78342002-02-19 Jim Blandy <jimb@redhat.com>
7835
7836 * stabsread.c (error_type_complaint): Improve error message.
7837
84563040
DJ
78382002-02-19 Daniel Jacobowitz <drow@mvista.com>
7839
7840 * gdbserver/README: Update documentation.
7841 * gdbserver/configure.in: Update configury to match documentation.
7842 * gdbserver/Makefile.in: Likewise.
7843 * gdbserver/configure: Regenerated.
7844 * gdbserver/aclocal.m4: New file, generated by aclocal.
7845 * gdbserver/config.in: New file, generated by autoheader.
7846
375fd65b
RE
78472002-02-19 Richard Earnshaw <rearnsha@arm.com>
7848
7849 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7850 armnbsd-nat.c.
7851
08216dd7
RE
78522002-02-19 Richard Earnshaw <rearnsha@arm.com>
7853
7854 * arm-tdep.h (enum arm_float_model): New enum.
7855 (struct gdbarch_tdep): Add fp_model.
7856 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7857 up floating-point conversions until we know the floating-point model
7858 in use by the inferior. Don't complain about being unable to
7859 determine the ABI of the inferior when we don't have one.
7860 (arm_extract_return_value): Support different floating-point models.
7861 (arm_store_return_value): Likewise.
aaa38bb5 7862 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7863 ARM_FLOAT_SOFT.
7864 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7865
65d6d66a
PS
78662002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7867
7868 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7869 of ``current_gdbarch''.
7870
47221191
RE
78712002-02-19 Richard Earnshaw <rearnsha@arm.com>
7872
7873 * armnbsd-nat.c : ANSIfy all function declarations.
7874 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7875 (fetch_inferior_registers): Re-implement in terms of above.
7876 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7877 (store_inferior_registers): Re-implement in terms of above.
7878
fdf39c9a
RE
78792002-02-19 Richard Earnshaw <rearnsha@arm.com>
7880
aaa38bb5 7881 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7882 kernel.
7883 * arm-linux-tdep.c: Likewise.
7884 * config/arm/tm-linux.h: Likewise.
7885
93247f88
RE
78862002-02-19 Richard Earnshaw <rearnsha@arm.com>
7887
7888 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7889 * config/arm/nbsd.mt (TM_FILE): Delete.
7890 * config/arm/tm-nbsd.h: Delete.
7891
d7b486e7
RE
78922002-02-19 Richard Earnshaw <rearnsha@arm.com>
7893
7894 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7895 Initialize CALL_DUMMY_LENGTH.
7896
41d39a95
RE
78972002-02-19 Richard Earnshaw <rearnsha@arm.com>
7898
7899 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7900 function.
7901 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7902 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7903 defines one thing and that is incorrect for this port.
7904 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7905
e1195560
PM
79062002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7907
7908 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7909
c1748f97
PM
79102002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7911
7912 * win32-nat.c (display_selector): New function. Displays information
7913 about the information returned by GetThreadSelectorEntry API function.
7914 (display_selectors): New function. Displays the infomation of
7915 the selector given as argument, or of CS, DS ans FS selectors
7916 if no argument is given.
7917 ( _initialize_inftarg): Add "w32" as info prefix command.
7918 Add "info w32 selector" as command calling display_selectors.
7919
e41e6bbf
PM
79202002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7921
7922 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7923 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7924 if not defined.
7925
0d3a9f48
RE
79262002-02-18 Richard Earnshaw <rearnsha@arm.com>
7927
7928 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7929
3fb4b924
RE
79302002-02-18 Richard Earnshaw <rearnsha@arm.com>
7931
7932 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7933 (arm_fix_call_dummy): Call it.
7934 (arm_call_dummy_breakpoint_offset): Delete.
7935 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7936 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7937
7f55af32
AC
79382002-02-18 Andrew Cagney <ac131313@redhat.com>
7939
7940 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7941 Default to func_frame_chain_valid.
7942 * gdbarch.h, gdbarch.c: Re-generate.
7943 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7944
05f13b9c
EZ
79452002-02-18 Elena Zannoni <ezannoni@redhat.com>
7946
7947 * ppc-linux-nat.c: Update copyright.
7948 (fetch_register, store_register): Add tid parameter, don't compute
7949 tid here.
7950 (fetch_ppc_registers, store_ppc_registers): Add tid
7951 parameter. Pass it along to callees.
7952 (fetch_inferior_registers, store_inferior_registers): Compute tid
7953 here, and pass it to calleed functions.
7954 (fill_gregset, supply_fpregset): Clean up formatting.
7955
d7afb4c9
RE
79562002-02-18 Richard Earnshaw <rearnsha@arm.com>
7957
7958 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7959 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7960
9df628e0
RE
79612002-02-18 Richard Earnshaw <rearnsha@arm.com>
7962
7963 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7964 * gdbarch.c gdbarch.h: Regenerate.
7965 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7966 function.
7967 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7968 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7969 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7970
7971 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7972 * arm-tdep.c (arm_get_longjmp_target): New function.
7973 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7974 this to a positive value register arm_get_longjmp_target as the
7975 longjmp handler.
7976 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7977 (arm_linux_init_abi): Set up longjmp description in tdep.
7978 * armnbsd-nat.c (get_longjmp_target): Delete.
7979 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7980 description in tdep.
7981 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7982 (get_longjmp_target): Delete declaration.
7983 (GET_LONGJMP_TARGET): Delete.
7984 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7985 (GET_LONGJMP_TARGET): Delete.
7986
57bc8964
KB
79872002-02-17 Kevin Buettner <kevinb@redhat.com>
7988
7989 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7990 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7991 of ``current_gdbarch''.
7992
83d31a92
TT
79932002-02-17 Tom Tromey <tromey@redhat.com>
7994
7995 * cli/cli-cmds.c (compare_strings): New function.
7996 (complete_command): Only print each unique item once.
7997 * completer.h (complete_line): Declare.
7998 * completer.c (complete_line): New function.
7999 (line_completion_function): Use it.
8000
17ef5d92
AC
80012002-02-16 Andrew Cagney <ac131313@redhat.com>
8002
8003 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8004 * gdbarch.h, gdbarch.c: Re-generate.
8005
491b8946
DJ
80062002-02-16 Daniel Jacobowitz <drow@mvista.com>
8007
8008 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8009
80102002-02-16 Daniel Jacobowitz <drow@mvista.com>
8011
8012 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8013 * valops.c (value_arg_coerce): Don't take the address of a reference
8014 to convert an argument to a reference.
8015
dfe7f3ac
CF
80162002-02-15 Christopher Faylor <cgf@redhat.com>
8017
8018 * win32-nat.c (get_image_name): New function.
8019 (handle_load_dll): Use get_image_name function.
8020 (get_child_debug_event): Avoid registering debug events until possibly
8021 execed process is started.
8022 (child_create_inferior): Allow invocation via shell so that command
8023 line redirection, etc. works ok.
8024 (_initialize_inftarg): Add new command: "set shell" to control whether
8025 a shell is used to start a process.
8026
1d33e73a
DJ
80272002-02-15 Daniel Jacobowitz <drow@mvista.com>
8028
8029 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8030 instead of find_register_by_number.
8031 (cannot_store_register): Likewise.
8032
48cd0caa
PM
80332002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8034
aaa38bb5 8035 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8036 fprintf_unfiltered (gdb_stderr, ...).
8037
8656e7d8
DJ
80382002-02-15 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * gdbserver/gdbserver.1: Document --attach.
8041
66e810cd
RE
80422002-02-15 Richard Earnshaw <rearnsha@arm.com>
8043
8044 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8045 descriptions.
8046 * arm-tdep.c (arm_default_arm_le_breakpoint)
8047 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8048 (arm_default_thumb_be_breakpoint): New. Initialize them from
8049 traditional breakpoint defines.
8050 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8051 (arm_gdbarch_init): Initialize new breakpoint variables.
8052 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8053 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8054 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8055 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8056 code out to ...
8057 (arm_netbsd_init_abi_common): ... here; new function.
8058 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8059 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8060 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8061 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8062
97e03143
RE
80632002-02-15 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * arm-tdep.h (enum arm_abi): New enum.
8066 (struct gdbarch_tdep): New structure.
8067 (LOWEST_PC): Provide a default.
8068 (arm_gdbarch_register_os_abi): Declare new function.
8069 * arm-tdep.c (arm_abi_names): New array.
8070 (process_note_abi_tag_sections): New function.
8071 (get_elfosabi): New function.
8072 (arm_gdbarch_register_os_abi): New function.
8073 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8074 support for that ABI has been built in, then call the appropriate
8075 configuration routine. Use gdbarch_num_regs() to get the number
8076 of registers.
8077 (arm_dump_tdep): New function.
8078 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8079 place-holder functions.
8080 (_initialize_arm_tdep): Register them.
8081 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8082
8083 * armnbsd-tdep.c: New file.
8084 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8085 * config/arm/nbsd.mt (TDEPFILES): Add it.
8086 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8087
8088 * armnbsd-nat.c: Include regcache.h.
8089 * Makefile.in (armnbsd-nat.o): Update dependency list.
8090
8091 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8092
ad68be46
DJ
80932002-02-14 Daniel Jacobowitz <drow@mvista.com>
8094
8095 * gdbserver/Makefile.in: Fix typos in target rules.
8096
003d6d1d
DJ
80972002-02-14 Daniel Jacobowitz <drow@mvista.com>
8098
aaa38bb5 8099 Fix part of PR gdb/267.
003d6d1d
DJ
8100 * linespec.c (find_methods): Handle constructors specially for now.
8101
6b230f1b
CV
81022002-02-14 Corinna Vinschen <vinschen@redhat.com>
8103
8104 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8105 handling.
8106 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8107 standard_coerce_float_to_double().
8108
1ea98d12
CF
81092002-02-14 Christopher Faylor <cgf@redhat.com>
8110
8111 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8112 GDBINIT_FILENAME.
8113
dd47e6fd
EZ
81142002-02-14 Elena Zannoni <ezannoni@redhat.com>
8115
8116 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8117 find_variant_by_name, because it confuses the multiarch
8118 framework. Return NULL if there isn't an architecture with the
8119 user supplied name, instead of forcing a different one without
8120 recording the change with the multiarch machinery.
8121 (find_variant_by_name): Delete.
8122
d7e39b9e
PS
81232002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8124
8125 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8126 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8127
76e42a4f
MH
81282002-02-13 Martin M. Hunt <hunt@redhat.com>
8129
aaa38bb5 8130 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8131 print_frame_info_listing_hook, set current_source_symtab.
8132
0a30fbc4
DJ
81332002-02-14 Daniel Jacobowitz <drow@mvista.com>
8134
8135 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8136 and remove unused $(INCLUDE_DIR).
8137 Add regcache.c to OBS.
8138 Add generated register protocol files to clean target.
8139 Update dependencies for new objects, obsolete old target code.
8140
8141 * gdbserver/linux-low.c: Remove all platform-specific code to
8142 new files. Remove various dead code. Update to use regcache
8143 functionality.
8144 * gdbserver/remote-utils.c (fromhex): Add return statement
8145 to quiet warning.
8146 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8147 constant.
8148 (input_interrupt): Add integer parameter to match prototype
8149 of a signal handler.
8150 (outreg): Use register_data ().
8151 (prepare_resume_reply): Use gdbserver_expedite_regs.
8152 * gdbserver/server.c (main): Dynamically allocate own_buf because
8153 PBUFSIZ is no longer constant. Use registers_to_string () and
8154 registers_from_string ().
8155 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8156 for error (), fatal (), and warning (). Update definition of
8157 PBUFSIZ to use regcache functionality. Add include guard.
8158 * gdbserver/utils.c (fatal): Add missing ``const''.
8159 (warning): New function.
8160
8161 * regformats/regdat.sh: Include "regcache.h" in generated files.
8162 Provide init_registers () function.
8163 * regformats/regdef.h: Add prototype for set_register_cache ().
8164 Add include guard.
8165
8166 * gdbserver/linux-arm-low.c: New file.
8167 * gdbserver/linux-i386-low.c: New file.
8168 * gdbserver/linux-ia64-low.c: New file.
8169 * gdbserver/linux-m68k-low.c: New file.
8170 * gdbserver/linux-mips-low.c: New file.
8171 * gdbserver/linux-ppc-low.c: New file.
8172 * gdbserver/linux-sh-low.c: New file.
8173
8174 * gdbserver/regcache.c: New file.
8175 * gdbserver/regcache.h: New file.
8176
8177 * gdbserver/low-linux.c: Removed obsolete file.
8178
4cc841d0
DJ
81792002-02-14 Daniel Jacobowitz <drow@mvista.com>
8180
8181 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8182 * config/i386/linux.mt: Likewise.
8183 * config/ia64/linux.mt: Likewise.
8184 * config/m68k/linux.mh: Likewise.
8185 * config/powerpc/linux.mh: Likewise.
8186 * config/mips/linux.mt: Likewise.
8187
8188 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8189
8190 * config/i386/i386lynx.mh: Mark gdbserver variables
8191 as (currently) obsolete for this target.
8192 * config/i386/nbsd.mt: Likewise.
8193 * config/i386/nbsdelf.mt: Likewise.
8194 * config/m32r/m32r.mt: Likewise.
8195 * config/m68k/m68klynx.mh: Likewise.
8196 * config/m68k/nbsd.mt: Likewise.
8197 * config/m68k/sun3os4.mh: Likewise.
8198 * config/mips/vr5000.mt: Likewise.
8199 * config/ns32k/nbsd.mt: Likewise.
8200 * config/pa/hppabsd.mh: Likewise.
8201 * config/pa/hppaosf.mh: Likewise.
8202 * config/powerpc/nbsd.mt: Likewise.
8203 * config/rs6000/rs6000lynx.mh: Likewise.
8204 * config/s390/s390.mt: Likewise.
8205 * config/s390/s390x.mt: Likewise.
8206 * config/sparc/sparclynx.mh: Likewise.
8207 * config/sparc/sun4os4.mh: Likewise.
8208 * config/i386/x86-64linux.mt: Likewise.
8209 * config/sparc/linux.mh: Likewise.
8210
a85f51e7
DJ
82112002-02-14 Daniel Jacobowitz <drow@mvista.com>
8212
8213 * configure.tgt: Configure gdbserver only for known working
8214 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8215 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8216 SUBDIRS if it is configured. Update comment for ${nativefile}.
8217 * configure: Regenerated.
8218
65554fef
MS
82192002-02-13 Michael Snyder <msnyder@redhat.com>
8220
670a52db
MS
8221 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8222
6dbdc4a3
MS
8223 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8224 (default_gcore_mach): Just return 0, work around a problem in bfd.
8225 (default_gcore_target): OK to return NULL if exec_bfd is null.
8226 (make_mem_sec): Use a cast, avoid a warning.
8227
8228 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8229 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8230 sizeof (host pointer) != sizeof (target pointer)).
8231 (procfs_make_note_section): Avoid overflow in psargs string.
8232
aaa38bb5 8233 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8234 implementation return an error.
8235
82362002-02-13 Rodney Brown <rbrown64@csc.com.au>
8237
8238 * procfs.c (procfs_make_note_section): Provide a default definition
8239 (for alpha-dec-osf4.0f). Fix typos.
8240
1e4d76e7
EZ
82412002-02-13 Elena Zannoni <ezannoni@redhat.com>
8242
8243 * linux-proc.c: Add include of regcache.h.
8244 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8245
b6d1a1d5
AC
82462002-02-13 Andrew Cagney <ac131313@redhat.com>
8247
8248 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8249 * memattr.c (create_mem_region): Disallow useless empty region.
8250 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8251 non-overlapping.
b6d1a1d5 8252
6c6ea35e
MC
82532002-02-13 Michael Chastain <mec@shout.net>
8254
8255 * defs.h: Kill CONST_PTR.
8256 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8257 * c-lang.c (c_builtin_types): Likewise.
8258 * ch-lang.c (ch_builtin_types): Likewise.
8259 * f-lang.c (f_builtin_types): Likewise.
8260 * language.c (unknown_builtin_types): Likewise.
8261 * m2-lang.c (m2_builtin_types): Likewise.
8262 * p-lang.c (pascal_builtin_types): Likewise.
8263 * scm-lang.c (c_builtin_types): Likewise.
8264
3e0b0f48
KS
82652002-02-13 Keith Seitz <keiths@redhat.com>
8266
8267 * arm-tdep.h (arm_get_next_pc): Add declaration.
8268
67255d04
RE
82692002-02-13 Richard Earnshaw <rearnsha@arm.com>
8270
8271 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8272 with other related struct-returning functions.
8273 (arm_extract_struct_value_address): New function.
8274 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8275 initialize float_format, double_format and long_double_format as
8276 appropriate to the endianness of the target.
8277 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8278 (arm_use_struct_convention): Delete declaration.
8279 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8280
079777f6
KS
82812002-02-13 Keith Seitz <keiths@redhat.com>
8282
8283 * defs.h (core_addr_to_string_nz): New function.
8284
34588f23
MK
82852002-02-13 Mark Kettenis <kettenis@gnu.org>
8286
8287 Apply missing bits of 2002-01-15 patch.
8288 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8289 (fill_fpregset): Use i387_fill_fsave.
8290
49b563f9
KS
82912002-02-12 Keith Seitz <keiths@redhat.com>
8292
49b563f9
KS
8293 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8294 (core_addr_to_string_nz): New function.
8295
aeb98c60
RE
82962002-02-11 Richard Earnshaw <rearnsha@arm.com>
8297
8298 * arm-linux-nat.c: Really include arm-tdep.h.
8299 * config/arm/tm-linux.h (struct type, struct value): Declare.
8300
65554fef
MS
83012002-02-11 Michael Snyder <msnyder@redhat.com>
8302
8303 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8304 (gcore section): Ifdef for Solaris and Unixware only.
8305 (procfs_do_thread_registers): Unixware needs one lwpstatus
8306 per thread (not one prstatus or pstatus).
8307 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8308 not over all gdb threads. For unixware, call elfcore_write_pstatus
8309 once before iterating over threads.
8310
34e8f22d
RE
83112002-02-11 Richard Earnshaw <rearnsha@arm.com>
8312
8313 * arm-tdep.h: New file.
8314 * arm-tdep.c: Include arm-tdep.h.
8315 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8316 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8317 (arm_print_float_info, arm_register_type, convert_to_extended)
8318 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8319 (arm_extract_return_value, arm_register_name): Make static.
8320 (arm_software_single_step): Similarly. Fix types in declaration.
8321 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8322 (arm_store_return_value, arm_store_struct_return): New functions.
8323 (arm_gdbarch_init): Register the above functions. Also register
8324 call_dummy_start_offset, sizeof_call_dummy_words,
8325 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8326 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8327 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8328 prologue_cache.saved_regs here, rather than ...
8329 (_initialize_arm_tdep): ... here.
8330 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8331 declarations.
8332 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8333 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8334 (arm_print_float_info, arm_register_type, convert_to_extended)
8335 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8336 (arm_extract_return_value, arm_register_name): Delete declarations.
8337 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8338 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8339 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8340 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8341 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8342 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8343 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8344 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8345 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8346 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8347 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8348 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8349 interface.
8350 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8351 * remote-rdi.c remote-rdp.c: Likewise.
8352 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8353 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8354 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8355 definition.
8356
8357 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8358 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8359 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8360 from non-ARM_ prefixed definitions.
8361 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8362 all uses of above.
8363 * remote-rdi.c remote-rdp.c: Likewise.
8364 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8365
148754e5
RE
83662002-02-11 Richard Earnshaw <rearnsha@arm.com>
8367
8368 * arm-tdep.c (arm_frameless_function_invocation)
8369 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8370 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8371 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8372 (arm_pop_frame, arm_get_next_pc): Make static.
8373 (arm_gdbarch_init): Register above in gdbarch structure.
8374 (arm_read_fp): Renamed from arm_target_read_fp.
8375 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8376 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8377 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8378 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8379 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8380 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8381 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8382 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8383 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8384 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8385 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8386
434d2d4f
DJ
83872002-02-10 Daniel Jacobowitz <drow@mvista.com>
8388
8389 * symtab.c (compare_search_syms): New function.
8390 (sort_search_symbols): New function.
8391 (search_symbols): Sort symbols after searching rather than
8392 before.
8393
55241689
AC
83942002-02-10 Andrew Cagney <ac131313@redhat.com>
8395
8396 * NEWS: Linux -> GNU/Linux.
8397
028c194b
AC
83982002-02-10 Andrew Cagney <ac131313@redhat.com>
8399
8400 * gdbarch.sh: For for level one methods, disallow a definition
8401 when partially multi-arched. Add comments explaining rationale.
8402 * gdbarch.h: Re-generate.
8403
6acf50cd
AC
84042002-02-10 Andrew Cagney <ac131313@redhat.com>
8405
8406 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8407 multi-arch partial.
aaa38bb5 8408
50248794
AC
84092002-02-10 Andrew Cagney <ac131313@redhat.com>
8410
8411 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8412 field. Use diff -u.
8413 * gdbarch.c: Re-generate.
8414
c30e0066
AC
84152002-02-10 Andrew Cagney <ac131313@redhat.com>
8416
9b56c5f3 8417 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8418 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8419 partial.
8420
6e6d6484
AC
84212002-02-10 Andrew Cagney <ac131313@redhat.com>
8422
8423 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8424 multi-arch partial.
8425 (PUSH_ARGUMENTS): Switch to using predefault.
8426 * gdbarch.c: Regenerate.
8427
c203844d
AC
84282002-02-10 Andrew Cagney <ac131313@redhat.com>
8429
8430 * valops.c (PUSH_ARGUMENTS): Delete definition.
8431 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8432 partial. Default to default_push_arguments.
8433 * gdbarch.h, gdbarch.c: Regenerate.
8434
b5a2688f
AC
84352002-02-09 Andrew Cagney <ac131313@redhat.com>
8436
8437 * defs.h (throw_exception): Rename return_to_top_level. Update
8438 comments.
8439 * utils.c (error_stream, internal_verror, quit): Ditto.
8440 * top.c (throw_exception, catcher): Ditto.
8441 * sparclet-rom.c (sparclet_load): Ditto.
8442 * remote.c (interrupt_query, minitelnet): Ditto.
8443 * remote-sds.c (interrupt_query): Ditto.
8444 * remote-mips.c (mips_error, mips_kill): Ditto.
8445 * ocd.c (interrupt_query): Ditto.
8446 * monitor.c (monitor_interrupt_query): Ditto.
8447 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8448 * target.h: Update comment.
aaa38bb5 8449
b5a2688f 8450 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8451
2fa5c1e0
AC
84522002-02-09 Andrew Cagney <ac131313@redhat.com>
8453
8454 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8455 default_double_format.
8456 * gdbarch.h, gdbarch.c: Re-generate.
8457 * findvar.c (floatformat_unknown): Delete variable definition.
8458 * doublest.h (floatformat_unknown): Delete variable declaration.
8459
da966255
JB
84602002-02-09 Jim Blandy <jimb@redhat.com>
8461
8462 * stabsread.c (read_type): Add code to parse Sun's syntax for
8463 prototyped function types.
8464
123a4891
AC
84652002-02-09 Andrew Cagney <ac131313@redhat.com>
8466
8467 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8468 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8469
fb39c8f3
PS
84702002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8471
8472 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8473 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8474 now _initialize_xcoffsolib gets called again and overrides the
8475 commands from solib.c in a native configuration.
8476
0b87a11d
MK
84772002-02-09 Mark Kettenis <kettenis@gnu.org>
8478
8479 * doublest.c (store_typed_floating): Don't try to return a value.
8480 Fixes PR gdb/290.
8481
bdc2fc72
JB
84822002-02-08 Jim Blandy <jimb@redhat.com>
8483
8484 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8485 is prototyped and has no arguments, print its argument list as
8486 `(void)'.
8487
da69bbcf
CD
84882002-02-08 Chris Demetriou <cgd@broadcom.com>
8489
8490 * MAINTAINERS (write-after-approval): Add myself.
8491 (paper-trail): I've escaped!
aaa38bb5 8492
b69571f5
CF
84932002-02-08 Christopher Faylor <cgf@redhat.com>
8494
8495 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8496 changes.
8497 (_initialize_check_for_gdb_ini): Ditto.
8498
f6871398
MH
84992002-02-08 Martin M. Hunt <hunt@redhat.com>
8500
8501 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8502 xaprintf -> xasprintf.
8503
4e52d31c
PM
85042002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8505
8506 * win32-nat.c: Remove use of printf and sprintf functions.
8507
39bbf761
RE
85082002-02-08 Richard Earnshaw <rearnsha@arm.com>
8509
8510 * arm-tdep.c (arm_frame_chain_valid): Make static.
8511 (arm_push_arguments): Likewise.
8512 (arm_gdbarch_init): New function.
8513 (_initialize_arm_tdep): Call it.
8514 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8515 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8516 (FRAME_CHAIN_VALID): Delete.
8517 (arm_frame_chain_valid): Delete declaration.
8518 (PUSH_ARGUMENTS): Delete.
8519 (arm_push_arguments): Delete declaration.
8520 (CALL_DUMMY_P): Delete.
8521
9c9532c9
CV
85222002-02-08 Andrew Cagney <ac131313@redhat.com>
8523 Corinna Vinschen <vinschen@redhat.com>
8524
8525 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8526 on builtin float types.
8527
4e8f7a8b
DJ
85282002-02-08 Daniel Jacobowitz <drow@mvista.com>
8529
8530 * utils.c: Include <curses.h> before "bfd.h".
8531 * tui/tui-hooks.c: Likewise.
8532 * tui/tui.c: Likewise.
8533 * tui/tuiCommand.c: Likewise.
8534 * tui/tuiData.c: Likewise.
8535 * tui/tuiDataWin.c: Likewise.
8536 * tui/tuiDisassem.c: Likewise.
8537 * tui/tuiGeneralWin.c: Likewise.
8538 * tui/tuiIO.c: Likewise.
8539 * tui/tuiLayout.c: Likewise.
8540 * tui/tuiRegs.c: Likewise.
8541 * tui/tuiSource.c: Likewise.
8542 * tui/tuiSourceWin.c: Likewise.
8543 * tui/tuiStack.c: Likewise.
8544 * tui/tuiWin.c: Likewise.
8545
cd4bffcf
EZ
85462002-02-07 Elena Zannoni <ezannoni@redhat.com>
8547
8548 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8549 to include space for pseudoregs as well. Update loops accordingly.
8550 (sh_fp_frame_init_saved_regs): Ditto.
8551 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8552
26806ce2
AC
85532002-02-07 Andrew Cagney <ac131313@redhat.com>
8554
8555 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8556 Add Richard Earnshaw to Arm maintainers.
8557
97fdab62
AC
85582002-02-07 Andrew Cagney <ac131313@redhat.com>
8559
a6b98203
AC
8560 * defs.h (warning_begin): Delete declaration.
8561
97fdab62
AC
8562 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8563 Delete macro.
8564
78b29b40
MS
85652002-02-07 Michael Snyder <msnyder@redhat.com>
8566
aaa38bb5 8567 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8568 Logic bug, remove misplaced else.
8569
d8849953
KD
85702002-02-07 Klee Dienes <klee@apple.com>
8571
8572 * fork-inferior.c (fork_inferior): Add '!' to the list of
8573 characters that need to be quoted when building a string for the
8574 shell. Quote '!' specifically with a backslash, since CSH chokes
8575 when trying to evaluate "str!str".
aaa38bb5 8576
095778a0
NC
85772002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8578
8579 * rdi-share/host.h: Only provide a typedef for bool if it is not
8580 defined.
8581
1900040c
MS
85822002-02-04 Michael Snyder <msnyder@redhat.com>
8583
8584 * breakpoint.h (enum bptype): Add new overlay event bp type.
8585 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8586
1900040c
MS
8587 * breakpoint.c (create_internal_breakpoint): New function.
8588 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8589 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8590 (create_thread_event_breakpoint): Ditto.
8591 (create_solib_event_breakpoint): Ditto.
8592 (create_overlay_event_breakpoint): New function.
8593 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8594 (update_breakpoints_after_exec): Delete and re-initialize
8595 overlay event breakpoints after an exec. Add FIXME comment
8596 about longjmp breakpoint.
8597 (print_it_typical): Ignore overlay event breakpoints.
8598 (print_one_breakpoint): Ditto.
8599 (mention): Ditto.
8600 (bpstat_what): Do not stop for overlay event breakpoints.
8601 (delete_breakpoint): Don't delete overlay event breakpoints.
8602 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8603 (breakpoint_re_set): Re-create overlay event breakpoint.
8604
8605 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8606 (overlay_manual_command): Disable overlay breakpoints.
8607 (overlay_off_command): Disable overlay breakpoints.
8608
082fc60d
RE
86092002-02-06 Richard Earnshaw <rearnsha@arm.com>
8610
8611 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8612 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8613 to here from config/tm-arm.h.
8614 (coff_sym_is_thumb): Make static.
8615 (arm_elf_make_msymbol_special): New function.
8616 (arm_coff_make_msymbol_special): New function.
8617 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8618 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8619 (coff_sym_is_thumb): Delete declaration.
8620 (arm_elf_make_msymbol_special): Declare.
8621 (arm_coff_make_msymbol_special): Declare.
8622 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8623 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8624
039c5766
RE
86252002-02-06 Richard Earnshaw <rearnsha@arm.com>
8626
8627 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8628
86292002-02-06 Richard Earnshaw <rearnsha@arm.com>
8630
8631 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8632 * gdbarch.c gdbarch.h: Regenerate.
8633 * arch-utils.c (default_print_float_info): New function.
8634 * arch-utils.h (default_print_float_info): Prototype it.
8635 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8636 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8637 (PRINT_FLOAT_INFO): Document it.
8638
8639 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8640 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8641 (PRINT_FLOAT_INFO): Define.
8642
58fa08f0
PM
86432002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8644
aaa38bb5 8645 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8646 Add typecast to sprintf argument to suppress a warning.
8647
7393af7c
PM
86482002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8649
58fa08f0 8650 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8651 to allow easier handling of pass state.
8652 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8653 that gives exception name and address.
8654 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8655 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8656 exceptions added.
aaa38bb5
AJ
8657 (child_continue): Correctly report continue_status.
8658 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8659 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8660 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8661 the exception should be passed to debuggee or not.
8662
6af4589c
MS
86632002-02-05 Michael Snyder <msnyder@redhat.com>
8664
8665 * regcache.c (fetch_register): Call target_fetch_register
8666 only if we don't call FETCH_PSEUDO_REGISTER.
8667 (store_register): Call target_store_register only if we
8668 don't call STORE_PSEUDO_REGISTER.
8669
a2cf933a
EZ
86702002-02-05 Elena Zannoni <ezannoni@redhat.com>
8671
8672 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8673 ELF_MAKE_MSYMBOL_SPECIAL.
8674 * gdbarch.c, gdbarch.h: Regenerate.
8675 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8676 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8677 * elfread.c (elf_symtab_read): Compile use of
8678 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8679 multiarched.
8680 * coffread.c (coff_symtab_read): Ditto, for
8681 COFF_MAKE_MSYMBOL_SPECIAL.
8682
6bb7be43
JB
86832002-02-05 Jim Blandy <jimb@redhat.com>
8684
8685 * solib-svr4.c (svr4_truncate_ptr): New function.
8686 (svr4_relocate_section_addresses): Do the address arithmetic with
8687 the appropriate truncation for target addresses, even when
8688 CORE_ADDR is larger than a target address.
8689
e18651ec
DJ
86902002-02-05 Daniel Jacobowitz <drow@mvista.com>
8691
8692 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8693 to (int *).
8694
6b2725be
DJ
86952002-02-05 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8698 code.
8699
fca9e603
DJ
87002002-02-05 Daniel Jacobowitz <drow@mvista.com>
8701
8702 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8703
6c537a52
DJ
87042002-02-05 Daniel Jacobowitz <drow@mvista.com>
8705
8706 * gdbserver/linux-low.c: Remove unused include files.
8707
d844cde6
DJ
87082002-02-05 Daniel Jacobowitz <drow@mvista.com>
8709
8710 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8711 (read_inferior_memory): Use it.
8712 (write_inferior_memory): Likewise.
8713
d07c63e7
DJ
87142002-02-05 Daniel Jacobowitz <drow@mvista.com>
8715
8716 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8717 grubbing through sys_errlist.
8718
da6d8c04
DJ
87192002-02-05 Daniel Jacobowitz <drow@mvista.com>
8720
8721 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8722
5b421780
PM
87232002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8724 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8725
9f60d481
AC
87262002-02-04 Andrew Cagney <ac131313@redhat.com>
8727
8728 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8729 (do_sfunc, set_cmd_sfunc): New functions.
8730
8731 * command.h (struct cmd_list_element): Add field func.
8732 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8733 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8734 * cli/cli-decode.h: Ditto.
8735
8736 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8737 (help_all, help_cmd_list): Ditto.
8738 (find_cmd, complete_on_cmdlist): Ditto.
8739 * top.c (execute_command): Ditto.
8740
8741 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8742 function.sfunc.
8743
8744 * infcmd.c (notice_args_read): Fix function signature.
8745
8746 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8747 * cli/cli-decode.c (add_set_cmd): Ditto.
8748 * utils.c (initialize_utils): Ditto.
8749 * maint.c (_initialize_maint_cmds): Ditto.
8750 * infrun.c (_initialize_infrun): Ditto.
8751 * demangle.c (_initialize_demangler): Ditto.
8752 * remote.c (add_packet_config_cmd): Ditto.
8753 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8754 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8755 * proc-api.c (_initialize_proc_api): Ditto.
8756 * kod.c (_initialize_kod): Ditto.
8757 * valprint.c (_initialize_valprint): Ditto.
8758 * top.c (init_main): Ditto.
8759 * infcmd.c (_initialize_infcmd): Ditto.
8760 * corefile.c (_initialize_core): Ditto.
8761 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8762 * arch-utils.c (initialize_current_architecture): Ditto.
8763 (_initialize_gdbarch_utils): Ditto.
8764 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8765
8766 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8767 * wince.c (_initialize_inftarg): Ditto.
8768 * symfile.c (_initialize_symfile): Ditto.
8769 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8770 * language.c (_initialize_language): Ditto.
8771 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8772
f9ba0717
MS
87732002-02-04 Michael Snyder <msnyder@redhat.com>
8774
8775 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8776
0c74b2a7
DJ
87772002-02-04 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8780 Add rules for building the register data files.
8781
c638789f
DJ
87822002-02-04 Daniel Jacobowitz <drow@mvista.com>
8783
8784 * regformats/regdat.sh: Add braces to the definition of
8785 expedite_regs_${arch}.
8786
db253027
DJ
87872002-02-04 Daniel Jacobowitz <drow@mvista.com>
8788
8789 * regformats/regdef.h (struct reg): Add comment describing the
8790 requirements for offset and size fields.
8791
206be19c
AS
87922002-02-04 Andreas Schwab <schwab@suse.de>
8793
8794 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8795 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8796
181c1381
RE
87972002-02-04 Richard Earnshaw <rearnsha@arm.com>
8798
8799 * gdbarch.sh (copyright): Update years in generated header.
8800 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8801 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8802 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8803 * dbxread.c: Likewise.
8804 * dwarfread.c: Likewise.
8805 * elfread.c: Likewise.
8806 * somread.c: Likewise.
8807
8808 * arm-tdep.c (arm_smash_text_address): New function.
8809 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8810
fa4ba8da
PM
88112002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8812
8813 Add support for hardware watchpoints on win32 native.
aaa38bb5 8814 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8815 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8816 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8817 of debug registers.
8818 (debug_registers_changed): New variable. Reflects when debug registers
8819 are changed and need to be written to inferior.
aaa38bb5 8820 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8821 was set, used when new threads are created.
8822 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8823 i386-nat code.
8824 (thread_rec): Set dr array if id is the thread of current_event .
8825 (child_continue, child_resume): Change the debug registers for all
8826 threads if debug_registers_changed.
8827 (child_add_thread): Change the debug registers if debug_registers_used.
8828 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8829 Link nm.h to new nm-cygwin.h file.
8830 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8831 of hardware registers.
8832
a73c86fb
AC
88332002-02-03 Andrew Cagney <ac131313@redhat.com>
8834
8835 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8836 Restore behavour broken by 2002-01-20 Andrew Cagney
8837 <ac131313@redhat.com> IEEE_FLOAT removal.
8838
acf5ed49
DJ
88392002-02-03 Daniel Jacobowitz <drow@mvista.com>
8840
8841 * c-valprint.c (c_val_print): Pass a proper valaddr to
8842 cp_print_class_method.
8843 * valops.c (search_struct_method): If there is only one method
8844 and args is NULL, return that method.
8845
493d28d5
DJ
88462002-02-03 Daniel Jacobowitz <drow@mvista.com>
8847
8848 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8849 accessing tag_name directly.
8850
7495dfdb
DJ
88512002-02-03 Daniel Jacobowitz <drow@mvista.com>
8852
8853 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8854 of accessing tag_name directly.
8855
dd6bda65
DJ
88562002-02-03 Daniel Jacobowitz <drow@mvista.com>
8857
8858 PR gdb/280
8859 * gdbtypes.c (replace_type): New function.
8860 * gdbtypes.h (replace_type): Add prototype.
8861 * stabsread.c (read_type): Use replace_type.
8862
88fe217c
RE
88632002-02-03 Richard Earnshaw <rearnsha@arm.com>
8864
8865 * Makefile.in (memattr.o): Add missing dependencies rule.
8866
e5d66720
PS
88672002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8868
8869 * breakpoint.c (break_at_finish_command): Really export.
8870 (break_at_finish_at_depth_command): Ditto.
8871 (tbreak_at_finish_command): Ditto.
8872 * hppa-tdep.c: Include completer.h.
8873 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8874 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8875
fffee0be
AC
88762002-02-01 Andrew Cagney <ac131313@redhat.com>
8877
8878 * utils.c (do_write): New function.
8879 (error_stream): Rewrite combining the code from error_begin and
8880 verror.
8881 (verror): Rewrite using error_stream.
8882 (error_begin): Delete function.
8883
255e7dbf
AC
88842002-02-01 Andrew Cagney <ac131313@redhat.com>
8885
8886 * utils.c (error_begin): Make static.
8887 * defs.h (error_begin): Delete declaration.
8888
8889 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8890 (decode_line_1): Use cplusplus_error instead of error_begin,
8891 cplusplus_hint and return_to_top_level.
8892 * coffread.c (coff_symfile_read): Use error instead of error_begin
8893 and return_to_top_level.
8894 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8895
ddfe3c15
AC
88962002-02-01 Andrew Cagney <ac131313@redhat.com>
8897
8898 * language.h (type_error, range_error): Make string parameter
8899 constant.
8900 * language.c (warning_pre_print): Delete extern declaration.
8901 * dwarfread.c (warning_pre_print): Ditto.
8902 * language.c (type_error, range_error): Rewrite to use verror and
8903 vwarning instead of warning_begin.
8904
03ac34d5
MS
89052002-02-01 Michael Snyder <msnyder@redhat.com>
8906
261c4ca2
MS
8907 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8908 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8909
e00d1dc8
AC
89102002-02-01 Andrew Cagney <ac131313@redhat.com>
8911
8912 * command.h (NO_FUNCTION): Delete macro.
8913 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8914 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8915 * tracepoint.c (_initialize_tracepoint): Ditto.
8916 * cli/cli-decode.c (add_set_cmd): Ditto.
8917 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8918
76b79d6e
DJ
89192002-02-01 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8922 Update ``this'' pointer when calling virtual functions.
8923
799f9e91
MS
89242002-02-01 Michael Snyder <msnyder@redhat.com>
8925
c7bd442c 8926 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
8927 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8928
3cf384d4
DJ
89292002-02-01 Daniel Jacobowitz <drow@mvista.com>
8930
8931 * regformats/reg-arm.dat: New file.
8932 * regformats/reg-i386.dat: New file.
8933 * regformats/reg-ia64.dat: New file.
8934 * regformats/reg-m68k.dat: New file.
8935 * regformats/reg-mips.dat: New file.
8936 * regformats/reg-ppc.dat: New file.
8937 * regformats/reg-sh.dat: New file.
8938 * regformats/regdef.h: New file.
8939 * regformats/regdat.sh: New file.
8940
0defa245
RE
89412002-02-01 Richard Earnshaw <reanrsha@arm.com>
8942
8943 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8944 (arm_frame_args_address, arm_frame_locals_address): New functions.
8945 (arm_frame_num_args): New function.
8946 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8947 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8948 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8949
405f26e6
MS
89502002-01-31 Michael Snyder <msnyder@redhat.com>
8951
502fd408
MS
8952 * breakpoint.c (break_at_finish_command): Export.
8953 (break_at_finish_at_depth_command): Export.
8954 (tbreak_at_finish_command): Export.
8955 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8956 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8957 "tbreak" commands, which are HPPA specific.
8958
7d35e135
MS
8959 * printcmd.c (disassemble_command): Remove an ancient
8960 artifact of an old merge.
8961
aaa38bb5 8962 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
8963 Define enum constant values for overlay mode.
8964 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
8965 (overlay_is_mapped, overlay_auto_command,
8966 overlay_manual_command): Ditto.
d874f1e2 8967
aaa38bb5
AJ
8968 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8969 breakpoint_here_p, breakpoint_inserted_here_p,
8970 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
8971 describe_other_breakpoints, check_duplicates, clear_command):
8972 Coding standard fixes.
8973
8add0441 8974 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 8975 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
8976 code: check bfd SEC_READONLY flag for section.
8977
e351066e
AC
89782002-01-31 Andrew Cagney <ac131313@redhat.com>
8979
7d35e135 8980 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 8981
8a48e967
DJ
89822002-01-30 Daniel Jacobowitz <drow@mvista.com>
8983
8984 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8985 data symbols, since we search based on textlow and texthigh.
8986 (find_pc_sect_symtab): Likewise.
8987
f5a96129
AC
89882002-01-30 Andrew Cagney <ac131313@redhat.com>
8989
8990 * defs.h (vwarning): Declare.
f5a96129
AC
8991 * utils.c (vwarning): New function.
8992 (warning): Call vwarning.
8993 (warning_begin): Delete function.
8994
8995 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8996 the warning message.
8997 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8998 warning_begin.
8999
cefd4ef5
MS
90002002-01-30 Michael Snyder <msnyder@redhat.com>
9001
1a703748
MS
9002 * NEWS: Mention "set trust-readonly-sections" command.
9003 Mention generate-core-file command.
cefd4ef5 9004
3a11626d
MS
90052002-01-15 Michael Snyder <msnyder@redhat.com>
9006
9007 * target.c: New command, "set trust-readonly-sections on".
9008 (do_xfer_memory): Honor the suggestion to trust readonly sections
9009 by reading them from the object file instead of from the target.
9010 (initialize_targets): Register command "set trust-readonly-sections".
9011
d1c7e53b
AC
90122002-01-29 Andrew Cagney <ac131313@redhat.com>
9013
9014 * parse.c (target_map_name_to_register): Simplify, search regs and
9015 pseudo-regs using a single loop.
9016
e2c9a72c
AC
90172002-01-30 Andrew Cagney <ac131313@redhat.com>
9018
9019 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9020
69824b4e
MK
90212002-01-15 Rodney Brown <rbrown64@csc.com.au>
9022
9023 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9024 * config/i386/i386v42mp.mh: Add i387-nat.o .
9025 * i386v4-nat.c: Include i387-nat.h.
9026 (supply_fpregset): Use i387_supply_fsave.
9027 (fill_fpregset): Use i387_fill_fsave.
9028
6eb69eab
RE
90292002-01-30 Richard Earnshaw <rearnsha@arm.com>
9030
9031 * arm-tdep.c (arm_call_dummy_words): Define.
9032 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9033 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9034 (CALL_DUMMY_WORDS): Define.
9035 (arm_call_dummy_words): Declare.
9036 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9037 (arm_linux_call_dummy_words): Declare.
9038
9852326a
AS
90392002-01-30 Andreas Schwab <schwab@suse.de>
9040
9041 * m68klinux-nat.c: Fix last change to use regcache_collect
9042 instead of referencing registers[] directly.
9043
977a3030
AC
90442002-01-29 Andrew Cagney <ac131313@redhat.com>
9045
9046 * parse.c (target_map_name_to_register): Delete code wrapped in
9047 #ifdef REGISTER_NAME_ALIAS_HOOK.
9048
2076c72b
MS
90492002-01-28 Michael Snyder <msnyder@redhat.com>
9050
9051 * regcache.c (legacy_read_register_gen): Need to be able to
9052 read pseudo-register as well as real register.
9053 (legacy_write_register_gen): Ditto.
9054
8fcc723b
AC
90552002-01-28 Andrew Cagney <ac131313@redhat.com>
9056
9057 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9058 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9059 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9060 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9061 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9062 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9063 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9064 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9065 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9066 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9067 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9068 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9069 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9070 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9071 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9072 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9073 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9074 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9075 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9076 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9077
afe64c1a
AC
90782002-01-28 Andrew Cagney <ac131313@redhat.com>
9079
9080 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9081 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9082 (initialize_current_architecture): Update target_byte_order using
9083 information from BFD.
aaa38bb5 9084 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9085 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9086
75bc7ddf
AC
90872002-01-28 Andrew Cagney <ac131313@redhat.com>
9088
9089 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9090 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9091
9092 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9093 #ifdef INVALID_FLOAT.
9094 * infcmd.c (do_registers_info): Ditto.
9095 * values.c (unpack_double): Ditto. Add comment.
9096
9097 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9098 already commented out.
9099
0280a90a
AS
91002002-01-26 Andreas Schwab <schwab@suse.de>
9101
9102 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9103 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9104 registers and add support for PTRACE_GETREGS.
9105
7072a954
AC
91062002-01-24 Andrew Cagney <ac131313@redhat.com>
9107
9108 GDB 5.1.1 released from 5.1 branch.
9109 * NEWS: Add 5.1.1 news.
9110 * README: Sync with 5.1 branch.
9111
86f902e0
FF
91122002-01-23 Fred Fish <fnf@redhat.com>
9113
9114 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9115 stabstring on initial malloc. Reallocing will copy it for us,
9116 if necessary.
9117
8af51c36
EZ
91182002-01-23 Elena Zannoni <ezannoni@redhat.com>
9119
aaa38bb5 9120 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9121 (HFILES_NO_SRCDIR): Remove hpread.h.
9122 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9123 (hpread.o): Update dependencies.
9124 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9125
9126 * hp-psymtab-read.c: Remove file.
9127 * hp-symtab-read.c: Remove file.
9128 * hpread.h: Remove file.
9129
9130 * hpread.c: Merge all contents of hp-psymtab-read.c,
9131 hp-symtab-read.c and hpread.h into this file, as it was prior to
9132 January 1999.
9133
9134 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9135 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9136 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9137 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9138
dc5cfeb6
EZ
91392002-01-23 Elena Zannoni <ezannoni@redhat.com>
9140
9141 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9142 fill_gregset): Call gdbarch_tdep() just once, assign result to
9143 variable and use that, instead of calling the function several
9144 times.
9145
ea87b71b
AO
91462002-01-24 Alexandre Oliva <aoliva@redhat.com>
9147
9148 * configure.host: Accept sparcv9 as alias for sparc64.
9149 * configure.tgt: Likewise.
9150
13fc0c2f
KB
91512002-01-22 Kevin Buettner <kevinb@redhat.com>
9152
9153 * solib-aix5.c (build_so_list_from_mapfile)
9154 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9155 arguments is not reversed.
9156 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9157 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9158
7bd872fe
EZ
91592002-01-22 Elena Zannoni <ezannoni@redhat.com>
9160
9161 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9162 modified version of obsolete sh_fetch_pseudo_register.
9163 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9164 (sh4_register_read): New function.
9165 (sh_pseudo_register_write): New function. Renamed and modified
9166 version of obsolete sh_store_pseudo_register.
9167 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9168 (sh4_register_write): New function.
9169 (sh_gdbarch_init): Remove setting of gdbarch function
9170 fetch_pseudo_register and store_pseudo_register. Remove setting of
9171 register_convert_to_raw, register_convert_to_virtual,
9172 register_convertible.
9173 (sh_sh4_register_convertible): Delete. No longer needed. All is
9174 taken care by architecture specific functions
9175 register_read/register_write.
9176 (sh_sh4_register_convert_to_virtual): Make static.
9177 (sh_sh4_register_convert_to_raw): Ditto.
9178
069e84fd
AC
91792002-01-22 Andrew Cagney <ac131313@redhat.com>
9180
9181 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9182 (floatformat_is_nan, floatformat_mantissa): Ditto.
9183
9184 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9185 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9186 builtin_type_ieee_double_little,
9187 builtin_type_ieee_double_littlebyte_bigword,
9188 builtin_type_m68881_ext, builtin_type_i960_ext,
9189 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9190 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9191 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9192 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9193
211a4f69
CV
91942002-01-22 Corinna Vinschen <vinschen@redhat.com>
9195
9196 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9197 parameter. Set frameless flag if it exists and depended of
9198 whether the scanned function is frameless or not.
9199 (xstormy16_skip_prologue): If function is frameless, return
9200 result of xstormy16_scan_prologue().
9201 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9202 call.
9203
f81353e4
EZ
92042002-01-21 Elena Zannoni <ezannoni@redhat.com>
9205
9206 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9207 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9208 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9209 sh_sh4_register_byte, sh_sh4_register_raw_size,
9210 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9211 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9212 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9213 sh_store_pseudo_register, sh_do_pseudo_register): Call
9214 gdbarch_tdep() just once, assign result to variable and use that,
9215 instead of calling the function several times.
9216
63c73a17
MK
92172002-01-20 Mark Kettenis <kettenis@gnu.org>
9218
9219 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9220 macros instead of LAST_FPU_CTRL_REGNUM.
9221 (store_register): Likewise.
9222
39ad761d
JB
92232002-01-21 Jim Blandy <jimb@redhat.com>
9224
9225 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9226 is up-to-date before running the program, not just when a program
9227 exits.
9228
3d74b771
FF
92292002-01-21 Fred Fish <fnf@redhat.com>
9230
9231 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9232 when we have found all instructions we are looking for.
9233
966fbf70
RE
92342002-01-21 Richard Earnshaw <rearnsha@arm.com>
9235
9236 * arm-tdep.c (arm_register_name): New function.
9237 (arm_registers_names): Make static.
9238 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9239 (arm_register_name): Declare.
9240 (REGISTER_NAME): Use it.
9241
c3b4394c
RE
92422002-01-21 Richard Earnshaw <rearnsha@arm.com>
9243 Kevin Buettner <kevinb@redhat.com>
9244
9245 Convert arm targets to new FRAME interface.
9246 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9247 (arm_frame_find_save_regs): Delete.
9248 (arm_frame_init_saved_regs): New.
9249 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9250 Allocate extra_info as required. Convert all uses of fsr.regs
9251 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9252 to use extra_info.
9253 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9254 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9255 (check_prologue_cache, save_prologue_cache): Likewise.
9256 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9257 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9258 (FRAME_FIND_SAVED_REGS): Delete.
9259 (arm_frame_find_saved_regs): Delete prototype.
9260 (arm_frame_init_saved_regs): New prototype.
9261 (FRAME_INIT_SAVED_REGS): Define.
9262
61d99182
AC
92632002-01-20 Andrew Cagney <ac131313@redhat.com>
9264
9265 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9266
6aaea291
AC
92672002-01-20 Andrew Cagney <ac131313@redhat.com>
9268
9269 From Jeff Law <law@redhat.com>:
9270 * infttrace.c: Include <sys/pstat.h>.
9271 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9272 exec file if the ttrace equivalent fails.
9273
15f698d2
AC
92742002-01-20 Andrew Cagney <ac131313@redhat.com>
9275
9276 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9277 (closeLogFile): Ditto.
9278
f86ddd7c
MC
92792002-01-20 Michael Chastain <mec@shout.net>
9280
9281 * top.c (print_gdb_version): Bump copyright year to 2002.
9282
904507ce
AC
92832002-01-20 Andrew Cagney <ac131313@redhat.com>
9284
9285 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9286 Zannoni and Eli Zaretskii.
9287
d7f0b9ce
DJ
92882002-01-20 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * buildsym.c: Update copyright years.
9291 * c-typeprint.c: Likewise.
9292 * dwarf2read.c: Likewise.
9293 * f-typeprint.c: Likewise.
9294 * gdbtypes.c: Likewise.
9295 * gdbtypes.h: Likewise.
9296 * hp-symtab-read.c: Likewise.
9297 * hpread.c: Likewise.
9298 * mdebugread.c: Likewise.
9299 * p-typeprint.c: Likewise.
9300
3fd3d7d2
AC
93012002-01-20 Andrew Cagney <ac131313@redhat.com>
9302
9303 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9304 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9305 byte-order selectable.
9306 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9307 * arch-utils.c: Ditto.
9308 (set_endian): Ditto.
9309 (set_endian_from_file): Ditto.
9310 * gdbserver/low-sim.c (create_inferior): Ditto.
9311 * gdbarch.sh: Ditto.
9312 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9313 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9314 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9315 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9316 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9317 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9318 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9319 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9320 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9321 macro definition.
9322 * config/mips/tm-wince.h: Remove #undef of macro
9323 TARGET_BYTE_ORDER_SELECTABLE.
9324 * config/sh/tm-wince.h: Ditto.
9325
b02dede2
DJ
93262002-01-20 Daniel Jacobowitz <drow@mvista.com>
9327
9328 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9329 member function fields. Add accessor macro
9330 TYPE_FN_FIELD_ARTIFICIAL.
9331 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9332 * c-typeprint.c (c_type_print_base): Skip artificial member
9333 functions.
9334
c3643761
DJ
93352002-01-20 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * f-typeprint.c: Delete unused function f_type_print_args.
9338 * p-typeprint.c: Delete unused function pascal_type_print_args.
9339
8176bb6d
DJ
93402002-01-20 Daniel Jacobowitz <drow@mvista.com>
9341
9342 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9343 comment. Add ``artificial'' to ``union field_location''.
9344
9345 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9346
9347 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9348 * mdebugread.c (parse_symbol): Likewise.
9349 * stabsread.c (define_symbol): Likewise.
9350 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9351 initializing TYPE_FIELD_BITPOS to n (obsolete).
9352 (hpread_doc_function_type): Likewise.
9353 * hpread.c (hpread_function_type): Likewise.
9354
7fd60527
AC
93552002-01-20 Andrew Cagney <ac131313@redhat.com>
9356
9357 * configure.in (host_makefile_frag): Only require a host makefile
9358 fragment when a native build.
9359 * configure: Re-generate.
9360
c2f05ac9
AC
93612002-01-20 Andrew Cagney <ac131313@redhat.com>
9362
9363 * doublest.h (floatformat_from_type): Declare.
9364 * doublest.c (floatformat_from_type): New function.
9365 (convert_typed_floating): Use.
9366
9367 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9368 call to function floatformat_from_type.
9369
9370 * gdbarch.sh (IEEE_FLOAT): Delete.
9371 * gdbarch.h, gdbarch.c: Re-generate.
9372 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9373 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9374 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9375 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9376 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9377 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9378 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9379 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9380 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9381 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9382 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9383 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9384
9385 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9386 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9387 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9388 * sh-tdep.c (sh_gdbarch_init): Ditto.
9389 * mips-tdep.c (mips_gdbarch_init): Ditto.
9390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9391 * cris-tdep.c (cris_gdbarch_init): Ditto.
9392
abf22e64
AJ
93932002-01-20 Jiri Smid <smid@suse.cz>
9394
9395 * configure.host, configure.tgt: Support x86-64.
9396 * NEWS: Note new target x86-64.
9397
b7c4cbf8
AJ
9398 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9399 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9400 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9401 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9402 x86-64-linux-nat.o): Fix dependencies.
9403
82600034
AC
94042002-01-19 Andrew Cagney <ac131313@redhat.com>
9405
9406 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9407 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9408 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9409 * config/sparc/xm-sun4os4.h: Delete file.
9410 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9411
bbe5c628
AC
94122002-01-19 Andrew Cagney <ac131313@redhat.com>
9413
9414 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9415 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9416 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9417 * config/i386/i386lynx.mh (XM_FILE): Delete.
9418 * config/rs6000/xm-rs6000ly.h: Delete file.
9419 * config/sparc/xm-sparclynx.h: Delete file.
9420 * config/m68k/xm-m68klynx.h: Delete file.
9421 * config/i386/xm-i386lynx.h: Delete file.
9422 * config/xm-lynx.h: Delete file.
9423 * config/djgpp/fnchange.lst: Update.
9424
f8453e34
JT
94252002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9426
9427 * alpha-tdep.c (alpha_register_byte): New function.
9428 (alpha_register_raw_size): Ditto.
9429 (alpha_register_virtual_size): Ditto.
9430 (alpha_skip_prologue_internal): Renamed from
9431 alpha_skip_prologue.
9432 (alpha_skip_prologue): New version that calls
9433 alpha_skip_prologue_internal.
9434 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9435 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9436 second argument from alpha_skip_prologue.
9437 (REGISTER_BYTE): Use alpha_register_byte.
9438 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9439 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9440 (FRAMELESS_FUNCTION_INVOCATION): Use
9441 generic_frameless_function_invocation_not.
9442 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9443 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9444
52d9e613
AC
94452002-01-19 Andrew Cagney <ac131313@redhat.com>
9446
9447 * config/mips/xm-news-mips.h: Delete file.
9448 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9449
9450 * config/m88k/xm-m88k.h: Delete file.
9451 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9452 * config/m88k/xm-delta88v4.h: Ditto.
9453 * config/m88k/xm-delta88.h: Ditto.
9454
9455 * config/alpha/xm-fbsd.h: Delete file.
9456 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9457
9458 * config/sparc/xm-sparc.h: Delete file.
9459 * Makefile.in (xm-sun4os4.h): Delete dependency.
9460 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9461 * config/sparc/xm-sun4os4.h: Ditto.
9462 * config/sparc/xm-linux.h: Ditto.
9463
9464 * config/i386/xm-windows.h: Delete file.
9465
2d1b2124
AC
94662002-01-19 Andrew Cagney <ac131313@redhat.com>
9467
9468 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9469 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9470
ee1f65f0
JT
94712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9472
9473 * alpha-tdep.c (alpha_call_dummy_words): New.
9474 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9475 (CALL_DUMMY_P): Define.
9476 (CALL_DUMMY_WORDS): Define.
9477 (SIZEOF_CALL_DUMMY_WORDS): Define.
9478
98081e55
PB
94792002-01-19 Per Bothner <per@bothner.com>
9480
9481 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9482 isn't NULL, which can happen with some gcj-3.x-produced code.
9483
0d056799
JT
94842002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9485
9486 * alpha-tdep.c (alpha_register_virtual_type): New function.
9487 (alpha_init_frame_pc_first): Ditto.
9488 (alpha_fix_call_dummy): Ditto.
9489 (alpha_store_struct_return): Ditto.
9490 (alpha_extract_struct_value_address): Ditto.
9491 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9492 alpha_register_virtual_type.
9493 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9494 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9495 alpha_extract_struct_value_address.
9496 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9497 (INIT_FRAME_PC): Use init_frame_pc_noop.
9498 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9499
4604bcad
MK
95002002-01-19 Mark Kettenis <kettenis@gnu.org>
9501
9502 * i386gnu-nat.c: Include "i386-tdep.h".
9503 (fetch_fpregs): Simplify code dealing with uninitialized floating
9504 point states such that it doesn't require FP7_REGNUM.
9505
140f9984
JT
95062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9507
abf22e64
AJ
9508 * alpha-tdep.c (frame_extra_info): New.
9509 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9510 frame->extra_info.
9511 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9512 (alpha_frame_saved_pc): Use frame->extra_info.
9513 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9514 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9515 (init_extra_frame_info): Rename to...
9516 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9517 (alpha_print_extra_frame_info): New function.
140f9984
JT
9518 (alpha_frame_locals_address): Ditto.
9519 (alpha_frame_args_address): Ditto.
abf22e64 9520 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9521 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9522 alpha_frame_args_address.
abf22e64 9523 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9524 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9525 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9526 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9527 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9528 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9529
d734c450
JT
95302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9531
9532 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9533 (alpha_cannot_fetch_register): Ditto.
9534 (alpha_cannot_store_register): Ditto.
9535 (alpha_register_convertible): Ditto.
9536 (alpha_use_struct_convention): Ditto.
9537 * config/alpha/tm-alpha.h: Update copyright years.
9538 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9539 (INNER_THAN): Use core_addr_lessthan.
9540 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9541 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9542 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9543 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9544 (FRAME_CHAIN): Remove unnecessary cast.
9545
b4ceaee6
AC
95462002-01-18 Andrew Cagney <ac131313@redhat.com>
9547
9548 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9549 obsolete.
9550
0a65a603
AC
95512002-01-18 Andrew Cagney <ac131313@redhat.com>
9552
9553 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9554 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9555 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9556 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9557 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9558 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9559 * x86-64-linux-nat.c: Ditto.
9560
636a6dfc
JT
95612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9562
abf22e64 9563 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9564 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9565 (REGISTER_NAME): Define.
9566
acceddb6
JT
95672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9568
9569 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9570
ec32e4be
JT
95712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9572
9573 * alpha-tdep.c: Update copyright years.
9574 (alpha_next_pc): New function.
9575 (alpha_software_single_step): Ditto.
9576 * config/alpha/tm-alpha.h: Add prototype for
9577 alpha_software_single_step.
9578
e771a871
JT
95792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9580
9581 * alphabsd-nat.c: Update copyright years.
9582 (fill_gregset): Use regcache_collect.
9583 (fill_fpregset): Likewise.
9584 (fetch_inferior_registers): Only fetch integer registers
9585 if requested to do so.
9586 (store_inferior_registers): Only store integer registers
9587 if requested to do so.
9588
7708fa01
AC
95892002-01-17 Andrew Cagney <ac131313@redhat.com>
9590
9591 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9592 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9593 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9594 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9595 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9596 * config/arm/linux.mh (XDEPFILES): Delete.
9597 * config/arm/nbsd.mh (XDEPFILES): Delete.
9598 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9599 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9600 * config/i386/i386m3.mh (XDEPFILES): Delete.
9601 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9602 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9603 * config/i386/fbsd.mh (XDEPFILES): Delete.
9604 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9605 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9606 * config/i386/i386v4.mh (XDEPFILES): Delete.
9607 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9608 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9609 * config/i386/i386aix.mh (XDEPFILES): Delete.
9610 * config/i386/go32.mh (XDEPFILES): Delete.
9611 * config/i386/cygwin.mh (XDEPFILES): Delete.
9612 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9613 * config/i386/i386mach.mh (XDEPFILES): Delete.
9614 * config/i386/i386v32.mh (XDEPFILES): Delete.
9615 * config/i386/linux.mh (XDEPFILES): Delete.
9616 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9617 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9618 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9619 * config/i386/i386sco.mh (XDEPFILES): Delete.
9620 * config/i386/i386v.mh (XDEPFILES): Delete.
9621 * config/i386/nbsd.mh (XDEPFILES): Delete.
9622 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9623 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9624 * config/i386/symmetry.mh (XDEPFILES): Delete.
9625 * config/i386/obsd.mh (XDEPFILES): Delete.
9626 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9627 * config/ia64/linux.mh (XDEPFILES): Delete.
9628 * config/ia64/aix.mh (XDEPFILES): Delete.
9629 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9630 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9631 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9632 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9633 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9634 * config/m68k/linux.mh (XDEPFILES): Delete.
9635 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9636 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9637 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9638 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9639 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9640 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9641 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9642 * config/m88k/delta88.mh (XDEPFILES): Delete.
9643 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9644 * config/m88k/m88k.mh (XDEPFILES): Delete.
9645 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9646 * config/mips/linux.mh (XDEPFILES): Delete.
9647 * config/mips/irix6.mh (XDEPFILES): Delete.
9648 * config/mips/irix5.mh (XDEPFILES): Delete.
9649 * config/mips/irix4.mh (XDEPFILES): Delete.
9650 * config/mips/irix3.mh (XDEPFILES): Delete.
9651 * config/mips/decstation.mh (XDEPFILES): Delete.
9652 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9653 (NATDEPFILES): Move core-aout.o to here.
9654 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9655 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9656 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9657 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9658 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9659 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9660 * config/pa/hpux11.mh (XDEPFILES): Delete.
9661 * config/powerpc/aix.mh (XDEPFILES): Delete.
9662 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9663 * config/powerpc/linux.mh (XDEPFILES): Delete.
9664 * config/romp/rtbsd.mh: Rename XDEPFILES.
9665 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9666 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9667 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9668 * config/s390/s390.mh (XDEPFILES): Delete.
9669 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9670 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9671 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9672 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9673 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9674 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9675 * config/sparc/linux.mh (XDEPFILES): Delete.
9676 * config/vax/vaxult.mh (XDEPFILES): Delete.
9677 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9678 * Makefile.in (DEPFILES): Remove XDEPFILES.
9679
375fc983
AC
96802002-01-17 Andrew Cagney <ac131313@redhat.com>
9681
9682 * utils.c (internal_verror): Fix comments, default is yes not no.
9683 Update queries to match. Default to quit and dump core.
9684
8926118c
AC
96852002-01-17 Andrew Cagney <ac131313@redhat.com>
9686
9687 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9688 copyright.
9689 * defs.h, event-top.c, gdbcmd.h: Ditto.
9690 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9691 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9692 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9693 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9694 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9695 * mi/mi-main.c:Ditto.
9696
9697 * stack.c, symfile.c: Update copyright.
9698
45b7b345
DJ
96992002-01-17 Daniel Jacobowitz <drow@mvista.com>
9700
db728ff7
DJ
9701 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9702 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9703 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9704 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9705
db728ff7
DJ
97062002-01-17 Daniel Jacobowitz <drow@mvista.com>
9707
9708 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9709 * gdbserver/low-lynx.c (myattach): Likewise.
9710 * gdbserver/low-nbsd.c (myattach): Likewise.
9711 * gdbserver/low-sim.c (myattach): Likewise.
9712 * gdbserver/low-sparc.c (myattach): Likewise.
9713 * gdbserver/low-sun3.c (myattach): Likewise.
9714
9715 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9716
db728ff7 9717 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9718 (main): Handle "--attach".
9719
8de3c354
AC
97202002-01-16 Andrew Cagney <ac131313@redhat.com>
9721
9722 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9723 maintainer.
9724
b0129042
DJ
97252002-01-15 Daniel Jacobowitz <drow@mvista.com>
9726
9727 * c-typeprint.c (is_type_conversion_operator): Add additional
9728 check for non-conversion operators.
9729
ba8679fb 97302002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9731
9732 * linux-proc.c: Add "info proc" command, a la procfs.c.
9733 (read_mapping): New function, abstract and re-use code.
9734 (linux_find_memory_regions): Use new func read_mapping.
9735 (linux_info_proc_cmd): New function, implement "info proc".
9736 (_initialize_linux_proc): Add new command "info proc".
9737
e4f9b4d5
MS
97382002-01-15 Michael Snyder <msnyder@redhat.com>
9739
9740 * symfile.c (generic_load): Use bfd_map_over_sections method
9741 instead of manipulating bfd structure members directly.
9742 (add_section_size_callback): New function, bfd sections callback
9743 used by generic_load.
9744 (load_sections_callback): New function, bfd sections callback
9745 used by generic_load.
9746
08cf96df
EZ
97472002-01-15 Elena Zannoni <ezannoni@redhat.com>
9748
abf22e64 9749 [Based on work by Jim Blandy]
08cf96df
EZ
9750 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9751 (builtin_type_vec128): Export.
9752 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9753 types.
9754 (builtin_type_vec128): New builtin type for 128 bit vector
9755 registers.
9756 (build_gdbtypes): Initialize builtin_type_v16qi and
9757 builtin_type_v8hi. Create the vec128 register builtin type
9758 structure.
9759 (build_builtin_type_vec128): New function.
abf22e64 9760 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9761 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9762 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9763 AltiVec register to new builtin type.
9764
d7242108
DJ
97652001-01-15 Daniel Jacobowitz <drow@mvista.com>
9766
9767 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9768 to make_cv_type.
9769
4ee3352d
AC
97702002-01-14 Andrew Cagney <ac131313@redhat.com>
9771
9772 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9773 CLEAN_UP_REGISTER_VALUE.
9774 * regcache.c (supply_register): Update only call.
9775
f015b2e7
AC
97762002-01-14 Andrew Cagney <ac131313@redhat.com>
9777
9778 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9779 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9780 a29k-*-vxworks* targets as obsolete.
9781
356ae49d
MS
97822002-01-14 Michael Snyder <msnyder@redhat.com>
9783
9784 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9785 until we can resolve portability issues.
9786 * gregset.h: Remove references to fpxregs.
9787 * gcore.c (gcore_command): Initialize note_sec to NULL.
9788
ade8f45e
AC
97892002-01-13 Andrew Cagney <ac131313@redhat.com>
9790
9791 * signals.c (target_signal_to_name): Rewrite. Only use
9792 signals[].name when in bounds and non-NULL.
abf22e64 9793
89c49e7a
AC
97942002-01-13 Andrew Cagney <ac131313@redhat.com>
9795
9796 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9797 * signals.c (target_signal_to_name): Verify that SIG is within the
9798 bounds of the signals array.
9799
4daa9f9f
AC
98002002-01-13 Andrew Cagney <ac131313@redhat.com>
9801
9802 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9803
ba4bbdcb
KS
98042002-01-13 Keith Seitz <keiths@redhat.com>
9805
9806 * stack.c (print_frame_info_base): Print the frame's pc
9807 only if when print_frame_info_listing_hook is not defined.
9808
575bbeb6
KS
98092002-01-13 Keith Seitz <keiths@redhat.com>
9810
9811 * varobj.c (varobj_set_value): Make sure that there were no
9812 errors evaluating the object before attempting to set its
9813 value.
9814 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9815 so this offset adjustment is no longer necessary.
9816 (create_child): Don't set the error flag if the child is
9817 a CPLUS_FAKE_CHILD.
9818 (value_of_child): If value_fetch_lazy fails, return NULL
9819 so that callers will be notified that an error occurred.
9820 (c_value_of_variable): Delay check of variable's validity
9821 until later. We actually want all structs and unions to have
9822 the value "{...}".
9823 Do not return "???" for variables which could not be evaluated.
9824 This error condition must be returned to the caller so that it
9825 can get the error condition from gdb.
9826 (cplus_name_of_child): Adjust index for vptr before figuring
9827 out the name of the child.
9828 (cplus_value_of_child): If a child's (real) parent is not valid,
9829 don't even bother trying to give a value for it. Just return
9830 an error. Change all instances in this function.
9831 (cplus_type_of_child): If our parent is one of the "fake"
9832 parents, we need to get at the type of the real parent, and
9833 derive the child's true type using this information.
9834
b76898ab
AC
98352002-01-13 Andrew Cagney <ac131313@redhat.com>
9836
9837 From 2002-01-09 John Marshall <johnm@falch.net>:
9838 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9839 sources.redhat.com, and tweak some related URLs which had
9840 suffered from linkrot.
9841
b6649e88
AC
98422002-01-13 Andrew Cagney <ac131313@redhat.com>
9843
9844 From Jeff law:
9845 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9846 structures passed in registers.
9847
82cc5033
EZ
98482002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9849
9850 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9851 white space which prevented compilation. Reported by DSK
9852 <dsk@student.unsw.edu.au>.
9853
ba5f2f8a
MS
98542002-01-11 Michael Snyder <msnyder@redhat.com>
9855
fbd35540
MS
9856 * symfile.c (build_section_addr_info_from_section_tab):
9857 Use bfd access method instead of manipulating bfd directly.
9858 (syms_from_objfile): Ditto.
9859 (simple_overlay_update_1): Ditto.
9860 (simple_overlay_update): Ditto.
9861 (generic_load): Ditto.
9862 (overlay_unmapped_address): FIXME comment, bfd access methods.
9863 (sections_overlap): FIXME comment, bfd access methods.
9864 (pc_in_mapped_range): FIXME comment, bfd access methods.
9865 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9866 (section_is_mapped): FIXME comment, bfd access methods.
9867 (section_is_overlay): FIXME comment, bfd access methods.
9868
ba5f2f8a
MS
9869 * symfile.c (generic_load): Whitespace and long line cleanups.
9870 Remove duplicate variable, change several local variables to
9871 more appropriate data types.
9872 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9873
17df2af6
AC
98742002-01-12 Andrew Cagney <ac131313@redhat.com>
9875
9876 From Peter Schauer:
9877 * language.c (longest_local_hex_string_custom): Use phex_nz to
9878 convert NUM to a hex string.
9879
ec920329
EZ
98802002-01-12 Elena Zannoni <ezannoni@redhat.com>
9881
9882 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9883 the function.
538a76d6 9884 Update Copyright year.
ec920329 9885
3abd2e01
AC
98862002-01-12 Andrew Cagney <ac131313@redhat.com>
9887
9888 * language.c (longest_raw_hex_string): Delete unused function.
9889
b21b22e0
PS
98902002-01-11 Petr Sorfa <petrs@caldera.com>
9891
9892 * MAINTAINERS (write-after-approval): Add myself.
9893 * dwarf2read.c (read_tag_string_type): Handling of
9894 DW_AT_byte_size.
9895 (read_tag_string_type): FORTRAN fix to prevent propagation of
9896 first string size.
9897 (set_cu_language): Handling of DW_LANG_Fortran95
9898
747fe712
RE
98992002-01-11 Richard Earnshaw <rearnsha@arm.com>
9900
9901 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9902 GETPID(inferior_ptid).
9903 (store_inferior_registers): Likewise.
9904
f1bea926
JM
99052002-01-10 Jason Merrill <jason@redhat.com>
9906
9907 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9908 Fix DW_OP_minus.
9909
ae940673
AC
99102002-01-10 Andrew Cagney <ac131313@redhat.com>
9911
9912 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9913 and bfd/elf32-sh-nbsd.c.
9914
00546b04
MS
99152002-01-10 Michael Snyder <msnyder@redhat.com>
9916
352ed7b4
MS
9917 * NEWS: Mention --pid and corefile/proc-id behavior change.
9918
c18be923
MS
9919 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9920 * gcore.c: Include cli/cli-decode.h instead of command.h.
9921
00546b04
MS
9922 * main.c (captured_main): Add new command line option "--pid".
9923 If the second command line argument (following the symbol-file)
9924 begins with a digit, try to attach to it before trying to open
9925 it as a corefile.
9926 (print_gdb_help): Document the "--pid" argument.
9927
db60ec62
EZ
99282002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9929
9930 * completer.c (command_completer): New function.
9931
9932 * completer.h <command_completer>: Add prototype.
9933
9934 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9935 completer for the "help" command.
9936
39c22d1a
JM
99372002-01-09 Jason Merrill <jason@redhat.com>
9938
9939 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9940
c564377f
MS
99412002-01-09 Michael Snyder <msnyder@redhat.com>
9942
975aec09
MS
9943 * i386-linux-nat.c (fill_fpxregset): Make global.
9944 (store_fpxregset): Ditto.
9945
db4a10fa
MS
9946 * gregset.h (gdb_fpxregset_t): Define.
9947 (supply_fpxregset): Prototype.
9948 (fill_fpxregset): Prototype.
9949
c564377f
MS
9950 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9951
c3d45d70
RE
99522002-01-09 Richard Earnshaw <rearnsha@arm.com>
9953
9954 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9955 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9956 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9957
fcc87af1
AC
99582002-01-09 Andrew Cagney <ac131313@redhat.com>
9959
9960 * MAINTAINERS: Update target maintainer rules so that any
9961 Maintainer can approve a tested patch for a maintenance-only
9962 target.
9963
dd96c05b
RE
99642002-01-09 Richard Earnshaw <rearnsha@arm.com>
9965
d4297db9 9966 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 9967
d4297db9 9968 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
9969 IN_SIGTRAMP.
9970
145fdc6e
MS
99712002-01-08 Michael Snyder <msnyder@redhat.com>
9972
9973 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9974 real name of the executable, rather than the /proc name.
9975
be4d1333
MS
99762002-01-03 Michael Snyder <msnyder@redhat.com>
9977
9978 Implement a "generate-core-file" command in gdb, save target state.
9979 * gcore.c: New file. Implement new command 'generate-core-file'.
9980 Save a corefile image of the current state of the inferior.
9981 * linux-proc.c: Add linux-specific code for saving corefiles.
9982 * target.h (struct target_ops): Add new target vectors for saving
9983 corefiles; to_find_memory_regions and to_make_corefile_notes.
9984 (target_find_memory_regions): New macro.
9985 (target_make_corefile_notes): New macro.
9986 * target.c (update_current_target): Inherit new target methods.
9987 (dummy_find_memory_regions): New place-holder method.
9988 (dummy_make_corefile_notes): New place-holder method.
9989 (init_dummy_target): Initialize new dummy target vectors.
9990 * exec.c (exec_set_find_memory_regions): New function.
9991 Allow the exec_ops vector for memory regions to be taken over.
9992 (exec_make_note_section): New function, target vector method.
9993 * defs.h (exec_set_find_memory_regions): Export prototype.
9994 * procfs.c (proc_find_memory_regions): New function, corefile method.
9995 (procfs_make_note_section): New function, corefile method.
9996 (init_procfs_ops): Set new target vector pointers.
9997 (find_memory_regions_callback): New function.
9998 (procfs_do_thread_registers): New function.
9999 (procfs_corefile_thread_callback): New function.
10000 * sol-thread.c (sol_find_memory_regions): New function.
10001 (sol_make_note_section): New function.
10002 (init_sol_thread_ops): Initialize new target vectors.
10003 * inftarg.c (inftarg_set_find_memory_regions): New function.
10004 Allow to_find_memory_regions vector to be taken over.
10005 (inftarg_set_make_corefile_notes): New function.
10006 Allow to_make_corefile_notes vector to be taken over.
10007 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10008 interface layer if not target_has_execution (may be a corefile).
10009 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10010 * config/sparc/sun4sol2.mh: Ditto.
10011 * config/alpha/alpha-linux.mh: Ditto.
10012 * config/arm/linux.mh: Ditto.
10013 * config/i386/x86-64linux.mh: Ditto.
10014 * config/ia64/linux.mh: Ditto.
10015 * config/m68k/linux.mh: Ditto.
10016 * config/mips/linux.mh: Ditto.
10017 * config/powerpc/linux.mh: Ditto.
10018 * config/sparc/linux.mh: Ditto.
10019
c6b92abd
MS
100202002-01-07 Michael Snyder <msnyder@redhat.com>
10021
10022 * arm-linux-nat.c: Remove references to regcache.c internal data
10023 (registers[] and register_valid[]).
10024
4b09dc8c
MS
100252002-01-07 Michael Snyder <msnyder@redhat.com>
10026
abf22e64
AJ
10027 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10028 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10029 symbol file and shlibs.
10030 * Makefile.in: Add rule for linux-proc.o.
10031 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10032 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10033 * config/arm/linux.mh: Ditto.
10034 * config/i386/linux.mh: Ditto.
10035 * config/i386/x86-64linux.mh: Ditto.
10036 * config/ia64/linux.mh: Ditto.
10037 * config/m68k/linux.mh: Ditto.
10038 * config/mips/linux.mh: Ditto.
10039 * config/powerpc/linux.mh: Ditto.
10040 * config/sparc/linux.mh: Ditto.
10041
c25b74ac
PM
100422002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10043
10044 * win32-nat.c: Add i386-tdep.h dependency.
10045
94cd915f
MS
100462002-01-07 Michael Snyder <msnyder@redhat.com>
10047
c7cccb76
MS
10048 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10049 instead of bfd_get_arch_size. Don't bail out just because
10050 there's no exec_bfd.
abf22e64 10051
34c0bd93
MS
10052 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10053 * p-valprint.c (pascal_object_print_value): Ditto.
10054 * somread.c (som_symtab_read): Ditto.
10055 * symfile.c (simple_free_overlay_region_table): Ditto.
10056 * valops.c (value_assign): Ditto.
10057
21c1c920
MS
10058 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10059 use tilde_expand and strerror for opening save-tracepoints file.
10060
5bbd998e
MS
10061 * thread-db.c (thread_db_new_objfile): Indendation fix.
10062
94cd915f
MS
10063 * infptrace.c (GDB_MAX_ALLOCA): New define.
10064 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10065 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10066 can be overridden with whatever value is appropriate to the host).
10067 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10068 alloca to allocate potentially large buffer.
10069 * rs6000-nat.c (child_xfer_memory): Ditto.
10070 * symm-nat.c (child_xfer_memory): Ditto.
10071 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10072
494e8a93
JSC
100732002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10074
10075 From Nick Clifton <nickc@redhat.com>
10076 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10077
d0e1d48e
MS
100782002-01-07 Michael Snyder <msnyder@redhat.com>
10079
abf22e64 10080 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10081 Don't use exec_bfd if it's NULL.
10082
290b2c7a
MK
100832002-01-06 Mark Kettenis <kettenis@gnu.org>
10084
abf22e64 10085 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10086
aef21287
AC
100872002-01-06 Andrew Cagney <ac131313@redhat.com>
10088
10089 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10090 * gnu-nat.c: Ditto.
10091
30efa627
AC
100922002-01-06 Andrew Cagney <ac131313@redhat.com>
10093
10094 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10095 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10096 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10097 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10098 z8k-coff have not been multi-arched. Update z8k-coff build
10099 status.
10100
9b4ff276
AC
101012002-01-06 Andrew Cagney <ac131313@redhat.com>
10102
10103 * MAINTAINERS: Mark a29k target as obsolete.
10104 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10105 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10106 comments.
10107 * NEWS: Note that a29k targets are obsolete.
10108 * a29k-tdep.c: Mark as obsolete.
10109 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10110 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10111 a29k-*-vxworks* targets as obsolete.
10112 * remote-adapt.c: Obsolete.
10113 * remote-eb.c: Obsolete.
10114 * remote-mm.c: Obsolete.
10115 * remote-udi.c: Obsolete.
10116 * config/a29k/a29k-udi.mt: Obsolete.
10117 * config/a29k/a29k.mt: Obsolete.
10118 * config/a29k/tm-a29k.h: Obsolete.
10119 * config/a29k/tm-vx29k.h: Obsolete.
10120 * config/a29k/vx29k.mt: Obsolete.
10121
a9011d31
AC
101222002-01-05 Andrew Cagney <ac131313@redhat.com>
10123
10124 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10125 with BFD_ENDIAN_BIG.
10126
9299404e
AC
101272002-01-05 Andrew Cagney <ac131313@redhat.com>
10128
10129 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10130 * configure, config.in: Re-generate.
10131 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10132 * defs.h: Do not include <endian.h>.
10133
7e89e357
JT
101342002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10135
10136 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10137 * config.in: Regenerate.
10138 * configure.in: Update copyright years.
10139 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10140 * configure: Regenerate.
10141 * i386bsd-nat.c: Update copyright years.
10142 (fill_gregset): Use regcache_collect.
10143 (fetch_inferior_registers): Only fetch integer registers
10144 if requested to do so. Add support for XMM registers
10145 using PT_GETXMMREGS.
10146 (store_inferior_registers): Only store integer registers
10147 if requested to do so. Add support for XMM registers
10148 using PT_SETXMMREGS.
10149 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10150 (store_inferior_registers): Remove.
10151 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10152 (fetch_elfcore_registers): New function.
10153 (i386nbsd_elfcore_fns): New.
10154 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10155 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10156 i386bsd-nat.o.
10157 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10158 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10159 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10160 * config/i386/tm-nbsd.h: Update copyright years.
10161 (HAVE_SSE_REGS): Define.
10162 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10163 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10164 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10165 (SIGCONTEXT_PC_OFFSET): Remove.
10166 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10167
a752853e
AC
101682002-01-05 Andrew Cagney <ac131313@redhat.com>
10169
10170 * configure.tgt: Remove powerpc-*-macos* target.
10171 * config/m68k/xm-mpw.h: Delete file.
10172 * config/xm-mpw.h: Delete file.
10173 * ser-mac.c: Delete file.
10174 * mpw-make.sed: Delete file.
10175 * mpw-config.in: Delete file.
10176 * mac-xdep.c: Delete file.
10177 * mac-gdb.r: Delete file.
10178 * mac-defs.h: Delete file.
10179 * mac-nat.c: Delete file.
10180 * config/powerpc/macos.mh: Delete file.
10181 * config/powerpc/macos.mt: Delete file.
10182 * config/powerpc/nm-macos.h: Delete file.
10183 * config/powerpc/tm-macos.h: Delete file.
10184 * source.c (openp, open_source_file): Remove obsolete code.
10185 * top.c (gdb_readline): Ditto.
10186 * utils.c (query): Ditto.
10187 * event-top.c (display_gdb_prompt): Ditto.
10188 * Makefile.in (ser-mac.o): Delete obsolete target.
10189 * NEWS: Update.
10190
d7449b42
AC
101912002-01-04 Andrew Cagney <ac131313@redhat.com>
10192
10193 * defs.h (BIG_ENDIAN): Delete macro definition.
10194 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10195 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10196 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10197 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10198 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10199 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10200 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10201 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10202 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10203 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10204 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10205 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10206 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10207 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10208 * gdbarch.c: Re-generate.
10209
356374e8
DJ
102102002-01-04 Daniel Jacobowitz <drow@mvista.com>
10211
10212 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10213 for core files.
10214
a2b8f8f8
JT
102152002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10216
10217 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10218
12466af9
AC
102192002-01-04 Andrew Cagney <ac131313@redhat.com>
10220
10221 * value.h (value_ptr): Delete typedef.
10222
3549ab40
JT
102232002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10224
10225 * i386nbsd-nat.c: Update copyright years.
10226 Include i386-tdep.h.
10227
fedbd091
EZ
102282002-01-04 Elena Zannoni <ezannoni@redhat.com>
10229
10230 * stabsread.c: Update copyright years.
10231
10232 From Debashis Mahata <debashis.mahata@wipro.com>:
10233 (read_struct_fields): Deal with Sun C compiler erroneous stab
10234 output for structs and unions.
fec8b34f 10235 Fix PR gdb/269.
fedbd091 10236
eb43544b
DJ
102372002-01-04 Daniel Jacobowitz <drow@mvista.com>
10238
10239 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10240 prototype.
10241
1514d34e
DJ
102422002-01-04 Daniel Jacobowitz <drow@mvista.com>
10243
10244 * cp-abi.c: Fix whitespace.
10245 (baseclass_offset): New wrapper function.
10246 * cp-abi.h (baseclass_offset): Add prototype.
10247 (struct cp_abi_ops): Add baseclass_offset pointer.
10248
10249 * valops.c (vb_match): Move to...
10250 * gnu-v2-abi.c (vb_match): here.
10251 * valops.c (baseclass_offset): Move to...
10252 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10253
10254 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10255
10256 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10257 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10258 * hpacc-abi.c (init_hpacc_ops): Likewise.
10259
7f8c9282
DJ
102602002-01-04 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * valops.c (find_overload_match): Accept obj as a
10263 reference parameter. Update it before returning.
10264 * value.h (find_overload_match): Update prototype.
10265 * eval.c (evaluate_subexp_standard): Pass object to
10266 find_overload_match by reference.
10267
f23631e4
AC
102682002-01-03 Andrew Cagney <ac131313@redhat.com>
10269
10270 * valarith.c: Replace value_ptr with struct value pointer. Remove
10271 register attribute from value declarations.
10272 * valops.c: Ditto.
10273 * value.h: Ditto.
10274 * scm-lang.c (scm_lookup_name): Ditto.
10275
79e10fab 102762002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10277
79e10fab
AC
10278 Abstract the functionality of iterating over mapped memory
10279 regions into a general purpose iterator function.
abf22e64 10280 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10281 iterator for memory sections.
10282 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10283 (solib_mappings_callback): New function, callback for above.
10284 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10285 (info_mappings_callback): New function, callback for above.
10286
10287 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10288
c5ad026a
MK
102892002-01-01 Mark Kettenis <kettenis@gnu.org>
10290
d2a7c97a
MK
10291 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10292 * i386-tdep.c: Include "elf-bfd.h".
10293 (process_note_abi_tag_sections): New function.
10294 (i386_gdbarch_init): Add code to recognize various OS/ABI
10295 combinations.
10296
c5ad026a
MK
10297 * maint.c (_initialize_maint_cmds): Add missing \ in
10298 string-literal.
10299
a1a5b71e 10300For older changes see ChangeLog-2001
c906108c
SS
10301\f
10302Local Variables:
10303mode: change-log
10304left-margin: 8
10305fill-column: 74
10306version-control: never
10307End:
This page took 0.745841 seconds and 4 git commands to generate.