2002-08-18 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
46cac009
AC
12002-08-18 Andrew Cagney <ac131313@redhat.com>
2
3 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
6 deprecated_extract_return_value.
7 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
8 rename mips_o32o64_push_arguments.
9 (mips_gdbarch_init): Update.
10 (mips_extract_return_value): Delete.
11 (mips_o32_extract_return_value): Clone mips_extract_return_value.
12 (mips_o64_extract_return_value): Clone mips_extract_return_value.
13 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
14 (mips_n32n64_extract_return_value): Clone
15 mips_extract_return_value.
16 (mips_store_return_value): Delete.
17 (mips_o32_store_return_value): Clone mips_store_return_value.
18 (mips_o64_store_return_value): Clone mips_store_return_value.
19 (mips_eabi_store_return_value): Clone mips_store_return_value.
20 (mips_n32n64_store_return_value): Clone mips_store_return_value.
21
d2e4a39e
AS
222002-08-18 Aidan Skinner <aidan@velvet.net>
23
0c30c098
AS
24 * ada-lang.c: Use gdb_string.h instead of <string.h>.
25 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
26
272002-08-18 Aidan Skinner <aidan@velvet.net>
28
29 * ada-lang.c: Run through gdb_indent.sh.
30 * ada-lang.h: Run through gdb_indent.sh.
31 * ada-tasks.c: Run through gdb_indent.sh.
32 * ada-typeprint.c: Run through gdb_indent.sh.
33 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 34
01fc4e33
AC
352002-08-18 Andrew Cagney <ac131313@redhat.com>
36
37 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
38 ABI.
39
d8ee244c
MK
402002-08-18 Mark Kettenis <kettenis@gnu.org>
41
c38d8261
MK
42 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
43
222db64c
MK
44 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
45 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
46
c2848c82
MK
47 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
48 write_register_gen instead of write_register_bytes.
49
d8ee244c
MK
50 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
51 i[3456]-*-osf1mk* configurations have been made obsolete.
52 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
53 i[3456]86-*-osf1mk* hosts obsolete.
54 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
55 targets obsolete.
56 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
57 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
58 config/i386/i386m3.mt, config/i386/nm-m3.h,
59 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
60 config/i386/i386mk.mh, config/i386/i386mk.mt,
61 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
62 obsolete.
63 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
64 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
65 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
66
61d8d407
AC
672002-08-18 Andrew Cagney <ac131313@redhat.com>
68
69 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
70 (hppa_value_returned_from_stack): Declare.
71 (hppa_extract_return_value): Declare.
72 * config/pa/hppa.mt: New file.
73 * configure.tgt: Recognize hppa*-*-*.
74 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
75
0c52bd59
MK
762002-08-18 Mark Kettenis <kettenis@gnu.org>
77
78 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
79 comment.
80
b5686e99
MK
812002-08-17 Mark Kettenis <kettenis@gnu.org>
82
83 * top.c (gdb_rl_operate_and_get_next): Make sure
84 operate-and-get-next functions correctly even when the history
85 list is completely filled.
86
c1bab85b
AC
872002-08-18 Andrew Cagney <ac131313@redhat.com>
88
89 * MAINTAINERS (Target Instruction Set Architectures): Rename
90 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
91 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
92 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
93 already listed under Host/Native.
94
95 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
96 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
97 mips*-*-*.
98
32089c7c
AC
992002-08-17 Andrew Cagney <ac131313@redhat.com>
100
101 * config/ia64/ia64.mt: New file.
102 * config/alpha/alpha.mt: New file.
103 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
104 ia64-linux-gnu. Mention that ia64-elf is broken.
105 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
106
b4671f85
MK
1072002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
108
109 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
110 generic_func_frame_valid instead of func_frame_valid.
111
c8edd8b4
JB
1122002-08-16 Joel Brobecker <brobecker@gnat.com>
113
114 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
115 procfs appears to be broken when debugging on multi-processor
116 machines. So enable software single stepping in order to avoid
117 using the procfs interface to do next/step operations, using
118 internal breakpoints instead.
119
120 * infrun.c (handle_inferior_event): Readjust the stop_pc by
121 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
122 make this pc address equal to the value it would have if the
123 system stepping capability was used. Also set a new flag used
124 to ensure that we don't readjust the PC one more time later.
125
126 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
127 address by DECR_PC_AFTER_BREAK when software single step is
128 in use for this architecture, as this has already been taken
129 care of in handle_inferior_event().
130
238617f6
JB
1312002-08-16 Joel Brobecker <brobecker@gnat.com>
132
133 * infrun.c (handle_inferior_event): Minor reformatting, to make
134 a rather long condition expression easier to read.
135
541a7aac
AC
1362002-08-16 Andrew Cagney <ac131313@redhat.com>
137
138 * Makefile.in (gdbtk.o): Move to end of file.
139 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
140 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
141 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
142 (gdbtk-wrapper.o, gdbres.o): Ditto.
143
f92d4a7b
AC
1442002-08-16 Andrew Cagney <ac131313@redhat.com>
145
146 * Makefile.in (copying.o): Separate out compile rule.
147 (hpux-thread.o, procfs.o, signals.o): Ditto.
148 (v850ice.o, z8k-tdep.o): Ditto.
149 (tui-file.o): Move to TUI section.
150 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
151 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
152
1cce71eb
JB
1532002-08-16 Joel Brobecker <brobecker@gnat.com>
154
155 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
156 skip_trampoline_code, for better namespace-proofing.
157
158 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
159
0851f23d
JB
1602002-08-16 Joel Brobecker <brobecker@gnat.com>
161
162 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
163
f8d40ec8
JB
1642002-08-16 Joel Brobecker <brobecker@gnat.com>
165
166 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
167 signal, check whether we hit a breakpoint before checking for a
168 single step breakpoint. Otherwise, GDB fails to notice that a
169 breakpoint has been hit when stepping onto a breakpoint.
170
63d022e0
KS
1712002-08-16 Keith Seitz <keiths@redhat.com>
172
173 * gdb-events.sh (clear_gdb_event_hooks): New function.
174 * gdb-events.c: Regenerate.
175 * gdb-events.h: Regenerate.
176
6e31adb3
AC
1772002-08-16 Andrew Cagney <ac131313@redhat.com>
178
179 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
180 not_a_sw_breakpoint.
181 * breakpoint.h (bpstat_stop_status): Add parameter names.
182
c8189ed1
GS
1832002-08-16 Grace Sainsbury <graces@redhat.com>
184
185 * remote.c (remote_insert_hw_breakpoint)
186 (remote_remove_hw_breakpoint): Fix calculation of length field
187 for Z-packet.
188
d05285fa
MS
1892002-08-15 Michael Snyder <msnyder@redhat.com>
190
466d7106
MS
191 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
192 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
193 (supply_fpregset): Ditto.
194
d05285fa
MS
195 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
196 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
197 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 198 (TARGET_READ_SP): Delete.
bf1f5b4c 199 (DO_REGISTERS_INFO): Delete.
102182a9
MS
200 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
201 Delete.
202 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
203 from macros to functions.
bf1f5b4c 204
d05285fa
MS
205 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
206 (mips_register_convertible, mips_register_convert_to_virtual,
207 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
208 (mips_read_sp): New function.
209 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
210 (mips_do_registers_info): Make static.
211 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
212 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
213 (mips_register_convert_from_type, mips_register_convert_to_type):
214 New functions.
215 (mips_gdbarch_init): Set up function_start_offset,
216 register_virtual_size, pc_in_sigtramp.
d05285fa 217
e76f1f2e
AC
2182002-08-15 Andrew Cagney <ac131313@redhat.com>
219
220 * infcmd.c (vector_info): New function.
221 (_initialize_infcmd): Add command "info vector".
222 (print_vector_info): New function.
223
224 * gdbarch.sh (PRINT_VECTOR_INFO): New method
225 * gdbarch.h, gdbarch.c: Regenerate.
226
4782dc19
AC
2272002-08-15 Andrew Cagney <ac131313@redhat.com>
228
229 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
230 ``print_all''. Only print vector registers when ``print_all''.
231
23e3a7ac
AC
2322002-08-15 Andrew Cagney <ac131313@redhat.com>
233
8e186fd6
AC
234 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
235 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
236
23e3a7ac
AC
237 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
238 Add `args' parameter.
239 * gdbarch.h, gdbarch.c: Regenerate.
240
241 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
242
243 * infcmd.c (float_info): Call print_float_info.
244 (print_float_info): New function. By default, print the
245 floating-point registers.
246
247 * arch-utils.h (default_print_float_info): Delete declaration.
248 * arch-utils.c (default_print_float_info): Delete function.
249
e0ca2bb9
MK
2502002-08-16 Mark Kettenis <kettenis@gnu.org>
251
3f733acc
MK
252 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
253 out define.
254
7d8d2918
MK
255 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
256 FRAME.
257
1c7cc583
MK
258 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
259 * configure.host: Make i[3456]86-*-aix host obsolete.
260 * configure.tgt: Make i[3456]86-*-aix target obsolete.
261 * config/i386/i386aix.mh, config/i386/i386aix.mt,
262 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
263 config/i386/xm-i386aix.h: Make files obsolete.
264 * i386aix-nat.c: Make file obsolete.
265 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
266 (i386aix-nat.o): Make target obsolete.
267
e0ca2bb9
MK
268 * config/i386/nm-gnu.h: Removed.
269 * config/i386/nm-i386gnu.h: New file.
270 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
271 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
272 Moved here from ...
273 * config/i386/tm-i386gnu.h: ... here. Removed.
274 * config/i386/xm-i386gnu.h: Removed.
275 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
276 (NAT_FILE): Set to nm-i386gnu.h.
277 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
278 * i386-tdep.c: New file.
279 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
280 (i386gnu-tdep.o): Specify dependencies.
281
16057ec7 2822002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 283
6b99ee2e
MK
284 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
285 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
286 Adjust a few comments to reflect reality a bit closer.
287 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
288 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
289 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
290 target_insert_watchpoint, target_remove_watchpoint):
291 Move defines to ...
292 * config/i386/nm-i386sco5.h: ... here.
293 (kernel_u_size): Add prototype. Improve a few comments and add
294 protection against multiple inclusion.
295
d9a6f65c
MK
296 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
297 out define.
298
047eff6a
MK
299 * uw-thread.c (SP_ARG0): Define if not already defined.
300 * config/i386/tm-i386.h (SO_ARG0): Remove define.
301
dcdb1290
MK
302 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
303
5d2d0b2a
MK
304 * config/i386/tm-i386.h: Don't include "regcache.h".
305
61113f8b
MK
306 * i387-tdep.h (i387_print_float_info): New prototype.
307 * i387-tdep.c (print_i387_value, print_i387_ext,
308 print_i387_status_word, print_i387_control_word): Add `struct
309 ui_file *' argument and use it for output.
310 (i387_print_float_info): Renamed from i387_float_info. Add
311 `struct gdbarch *' and `struct ui_file *' arguments and use the
312 latter for output.
313 * i386-tdep.c: Include "i387-tdep.h".
314 (i386_gdbarch_init): Set print_float_info.
315 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
316 (FLOAT_INFO): Remove define.
317
46e0f506
MS
3182002-08-13 Michael Snyder <msnyder@redhat.com>
319
320 * mips-tdep.c (mips_push_arguments): Rename to
321 mips_eabi_push_arguments, and tune for EABI.
322 (MIPS_REGS_HAVE_HOME_P): Delete.
323 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
324 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
325 Delete references to mips_regs_have_home_p.
326
409268de
KS
3272002-08-14 Keith Seitz <keiths@redhat.com>
328
329 * Makefile.in (install-gdbtk): Create insight plugin directory.
330 Install plugins.tcl file.
331
ffc6a242
KS
3322002-08-14 Keith Seitz <keiths@redhat.com>
333
334 * configure.in: Move SUBDIRS to near top of the file so that
335 --enable options may add things to it.
336 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
337 * configure: Regenerate.
338
ebafbe83
MS
3392002-08-13 Michael Snyder <msnyder@redhat.com>
340
341 * mips-tdep.c (mips_o32o64_push_arguments): New function,
342 cloned from mips_push_arguments, tuned for o32/o64 ABI.
343 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
344
32f6f25d
AC
3452002-08-13 Andrew Cagney <ac131313@redhat.com>
346
347 * vax-tdep.c (vax_get_saved_register): Delete function.
348 (vax_gdbarch_init): Update.
349 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
350 (ns32k_gdbarch_init): Update.
351 * alpha-tdep.c (alpha_get_saved_register): Delete function.
352 (alpha_gdbarch_init): Update.
353
53826de9
AC
3542002-08-13 Andrew Cagney <cagney@redhat.com>
355
356 * regcache.c (init_regcache_descr): Overallocate the
357 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
358 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
359 nr_raw_registers.
360 (set_register_cached): Add range checking assertions. Use
361 current_regcache.
362
16057ec7 3632002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
364
365 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
366 numbers for MMX registers.
367
7b4c2dce
AC
3682002-08-13 Andrew Cagney <cagney@redhat.com>
369
370 * i386-tdep.c (i386_gdbarch_init): Use
371 generic_unwind_get_saved_register.
372
1e03ad20
KB
3732002-08-13 Kevin Buettner <kevinb@redhat.com>
374
375 * procfs.c (procfs_can_use_hw_breakpoint): New function.
376 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
377 target vector.
378 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
379 Delete. Add comment regarding this now-deleted target method.
380
548bcbec
SC
3812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
382
383 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
384 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
385 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
386 real PC and the page number (if it's within the memory bank window).
387 (m68hc11_pseudo_register_write): Likewise when saving.
388 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
389 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
390 (m68hc11_register_raw_size): And use 32-bit for it.
391 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
392 16K memory bank is used by the prog; also use the virtual pc.
393
7df11f59
SC
3942002-08-13 Stephane Carrez <stcarrez@nerim.fr>
395
396 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
397 (m68hc11_gdbarch_init): Install it in gdbarch.
398 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
399 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
400 (MSYMBOL_SIZE): New for documentation.
401 (insn_return_kind): Enum to specify how a function returns.
402 (frame_extra_info): Cleanup and record the return mode.
403 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
404 register in address computation.
405 (m68hc11_get_return_insn): New to obtain the return instruction used
406 by the function.
407 (m68hc11_frame_init_saved_regs): Take into account the return
408 instruction used by the function for far and interrupt functions.
409 (m68hc11_init_extra_frame_info): Take into account page register.
410 (m68hc11_frame_args_address): Adjust according to the return mode.
411 (show_regs): Print page register only when it's used.
412
5706502a
SC
4132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
414
415 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
416 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
417 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
418 registers.
419 (m68hc11_register_raw_size): Likewise.
420
28fc6740
AC
4212002-08-13 Andrew Cagney <cagney@redhat.com>
422
423 * i386-tdep.c (i386_register_name): Handle mmx registers.
424 (mmx_regnum_p): New function.
425 (i386_mmx_names): New array.
426 (mmx_num_regs): New variable.
427 (i386_pseudo_register_read): New function.
428 (i386_pseudo_register_write): New function.
429 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
430
431 * regcache.c (regcache_raw_read_unsigned): New function.
432 (regcache_raw_read_signed): New function.
433 * regcache.h (regcache_raw_read_unsigned): Declare.
434 (regcache_raw_read_signed): Declare.
435
a378f419
AC
4362002-08-13 Andrew Cagney <cagney@redhat.com>
437
438 * regcache.c (regcache_raw_read_as_address): Delete function.
439 (regcache_cooked_read_signed): New function.
440 (regcache_cooked_read_unsigned): New function.
441 * regcache.h (regcache_cooked_read_signed): Declare.
442 (regcache_cooked_read_unsigned): Declare.
443 (regcache_raw_read_as_address): Delete declaration.
444
445 * blockframe.c (generic_read_register_dummy): Use
446 regcache_cooked_read_unsigned.
447 * i386-tdep.c (i386_extract_struct_value_address): Use
448 regcache_cooked_read_unsigned.
449
81967506
SC
4502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
451
452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
453 double sizes according to ELF ABI flags.
454 (gdbarch_tdep): Record elf_flags.
455
ffe1f3ee
SC
4562002-08-13 Stephane Carrez <stcarrez@nerim.fr>
457
458 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
459 (m6812_prolog): They can appear in 68HC12 function prologue.
460 (m68hc11_frame_chain): Cleanup.
461
98216c5d
AC
4622002-08-12 Andrew Cagney <cagney@redhat.com>
463
464 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
465 declarations.
466 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
467 (i386_linux_register_raw_size): Delete function.
468 (i386_linux_init_abi): Update.
469 * i386-tdep.c (i386_register_raw_size): Delete function.
470 (i386_register_byte): Delete function.
471 (i386_gdbarch_init): Update.
472 (i386_register_size): Delete array.
473 (i386_register_offset): Delete array.
474
475 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
476 (REGISTER_RAW_SIZE): Delete macro.
477 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
478 (REGISTER_BYTE): Delete macro.
479
3b19021e
AS
4802002-08-11 Aidan Skinner <aidan@velvet.net>
481
482 * ada-lang.c (ada_lookup_partial_symbol)
483 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
484 prototype names so that grep ^func works properly.
485
486 * ada-lang.c (ada_array_element_type)
487 (ada_lookup_partial_symbol): Fix typos in parameter list.
488
489 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
490 Fix prototype names so that grep ^func works properly.
491
b063e7a2
AC
4922002-08-10 Andrew Cagney <cagney@redhat.com>
493 Elena Zannoni <ezannoni@redhat.com>
494 Martin M. Hunt <hunt@redhat.com>
495
496 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
497 (build_builtin_type_vec128i): Set the vector bit.
498 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
499 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
500 (build_builtin_type_vec64): New function.
501 (build_builtin_type_vec64i): New function.
502 (build_gdbtypes): Initialize builtin_type_vec64 and
503 builtin_type_vec64i.
504
a7e3c2ad
AC
5052002-08-09 Andrew Cagney <cagney@redhat.com>
506
507 * regcache.c (regcache_dump): Compare the register offset
508 with REGISTER_BYTE.
509 * arch-utils.c (generic_register_byte): New function.
510 * arch-utils.h (generic_register_byte): Declare.
511 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
512 * gdbarch.h, gdbarch.c: Regenerate.
513
af030b9a
AC
5142002-08-09 Andrew Cagney <cagney@redhat.com>
515
516 * regcache.c: Include "gdbcmd.h"
517 (_initialize_regcache): Add commands "maintenance print
518 registers", "maintenance print raw-registers" and "maintenance
519 print cooked-registers".
520 (enum regcache_dump_what): Define.
521 (dump_endian_bytes): New function.
522 (regcache_dump): New function.
523 (regcache_print): New function.
524 (maintenance_print_registers): New function.
525 (maintenance_print_raw_registers): New function.
526 (maintenance_print_cooked_registers): New function.
527 * Makefile.in (regcache.o): Update dependencies.
528
cb3d25d1
MS
5292002-08-09 Michael Snyder <msnyder@redhat.com>
530
531 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
532 (mips_push_arguments): Correct some comments. Use paddr_nz
533 for printing addresses in debug output. Replace static
534 allocation using MAX_REGISTER_RAW_SIZE with alloca.
535 (mips_n32n64_push_arguments): New function, cloned from
536 mips_push_arguments and tuned for the n32/n64 ABI.
537 (mips_push_register): Buffer needs dynamic allocation.
538 (mips_print_register): Ditto.
539 (do_gp_register_row): Ditto.
540 (mips_store_return_value): Ditto.
541 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
542
2163ab9d
DH
5432002-08-09 Don Howard <dhoward@redhat.com>
544
545 * memattr.c (mem_info_command): Print special case of upper bound
546 as max CORE_ADDR + 1.
547
b78bcb18
MS
5482002-08-08 Michael Snyder <msnyder@redhat.com>
549
550 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
551 returns structs by ref if they're too big to fit in two registers.
552
ffabd70d
KB
5532002-08-09 Kevin Buettner <kevinb@redhat.com>
554
555 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
556 saved regs value.
557 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
558 mips_find_saved_regs().
559 (mips_pop_frame): Likewise.
560
fbcdb4a3
KB
5612002-08-09 Kevin Buettner <kevinb@redhat.com>
562
563 * blockframe.c (frame_saved_regs_register_unwind): Revise
564 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
565 frames are in use.
566
3c3bea1c
GS
5672002-08-09 Grace Sainsbury <graces@redhat.com>
568
569 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
570 T-packets; the 'a' is not taken as a register number.
571 (remote_check_watch_resources, remote_stopped_by_watchpoint)
572 (remote_stopped_data_address): New functions; add to target
573 vector.
574 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
575 prototypes to match other implementations of this
576 function. replace integer argument with pointer -- the length
577 field in the Z-packet is the length of what is pointed to or 1 if
578 pointer is null. Add to target vector.
579 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
580 target vector.
581
582 From Mark Salter:
583 * remote.c (remote_wait): Add support to extract optional
584 watchpoint information from T-packet. Ignore unrecognized
585 optional info in T-packet.
586 (remote_async_wait): Ditto.
587
5d1d95de
CV
5882002-08-09 Corinna Vinschen <vinschen@redhat.com>
589
590 * cli/cli-dump.c: Change fopen modes to use binary open modes
591 as defined in include/fopen-bin.h throughout.
592
c86b5b38
MS
5932002-08-08 Michael Snyder <msnyder@redhat.com>
594
595 * mips-tdep.c: Minor whitespace and indentation clean-ups.
596
b30590dc
KB
5972002-08-08 Kevin Buettner <kevinb@redhat.com>
598
599 * doublest.c (store_floating): Avoid floatformat_from_doublest()
600 assertion failure by returning early after a warning.
601
498868ed
KB
6022002-08-08 Kevin Buettner <kevinb@redhat.com>
603
604 * mips-tdep.c (mips_find_saved_regs): Make static.
605 (mips_frame_init_saved_regs): New function.
606 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
607 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
608 (mips_find_saved_regs): Delete declaration.
609
b2dd6311
GS
6102002-08-08 Grace Sainsbury <graces@redhat.com>
611
3c3bea1c
GS
612 * remote.c (remote_wait, remote_async_wait): Change
613 thread_num from int to ULONGEST.
614 (unpack_varlen_hex): Change result parameter from
615 int * to ULONGEST *.
b2dd6311 616
ea47855f
AC
6172002-08-08 Andrew Cagney <ac131313@redhat.com>
618
619 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
620 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
621 powerpc*-*-*.
622 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
623
69db8bae
AC
6242002-08-08 Andrew Cagney <cagney@redhat.com>
625
626 * gcore.c (override_derive_stack_segment): Delete variable.
627 (preempt_derive_stack_segment): Delete function.
628 (derive_stack_segment): Delete function.
629 (default_derive_stack_segment): Renamed to derive_stack_segment.
630 (override_derive_heap_segment): Delete variable.
631 (preempt_derive_heap_segment): Delete function.
632 (derive_heap_segment): Delete function.
633 (default_derive_heap_segment): Rename to derive_heap_segment.
634
cb811fe7
MS
6352002-08-06 Michael Snyder <msnyder@redhat.com>
636
637 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
638 * mips-tdep.c (mips_EABI_use_struct_convention,
639 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
640 New functions. (mips_use_struct_convention): Delete.
641 (mips_gdbarch_init): set use_gdbarch_convention.
642
8b389c40
MS
6432002-08-06 Michael Snyder <msnyder@redhat.com>
644
645 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
646 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
647 mips_o32_reg_struct_has_addr): New functions.
648 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
649
5c27f28a
AC
6502002-08-07 Andrew Cagney <ac131313@redhat.com>
651
652 * regcache.c (pseudo_register): Delete function.
653 (fetch_register): Delete function.
654 (store_register): Delete function.
655 (regcache_raw_read, legacy_read_register_gen): Use
656 target_fetch_registers instead of fetch_register.
657 (legacy_write_register_gen, regcache_raw_write): Use
658 target_store_register instead of store_register.
659 (write_register_bytes): Ditto.
660
661 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
662 (STORE_PSEUDO_REGISTER): Delete.
663 * gdbarch.h, gdbarch.c: Regenerate.
664
5b331675
CV
6652002-08-06 Corinna Vinschen <vinschen@redhat.com>
666
667 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
668 write dump file binary.
669
6acdf5c7
MS
6702002-08-05 Michael Snyder <msnyder@redhat.com>
671
672 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
673 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
674 (mips_gdbarch_init): Set N32 target to be mips64.
675
b2f01c35
KB
6762002-08-06 Kevin Buettner <kevinb@redhat.com>
677
678 * frame.c (find_saved_register): Break out of loop once saved
679 register address is found. Don't mention sparc in loop comment
680 anymore.
681
63db5580
KB
6822002-08-06 Kevin Buettner <kevinb@redhat.com>
683
684 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
685 mips_default_saved_regsize to 8.
686
5e34e75e
AC
6872002-08-06 Andrew Cagney <ac131313@redhat.com>
688
689 * gcore.c: Do not include <sys/procfs.h>.
690 * Makefile.in (gcore.o): Update dependencies.
691
eb4c54a2
AC
6922002-08-06 Andrew Cagney <cagney@redhat.com>
693
694 * configure.tgt: Make arc-*-* obsolete.
695 * NEWS: Mention that arc-*-* has been identifed as obsolete.
696 * MAINTAINERS: Make arc-elf obsolete.
697 * arc-tdep.c: Make file obsolete.
698 * config/arc/arc.mt: Ditto.
699 * config/arc/tm-arc.h: Ditto.
700
ced15480
TR
7012002-08-05 Theodore A. Roth <troth@verinet.com>
702
c1bab85b 703 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 704
b4743822
AC
7052002-08-05 Andrew Cagney <ac131313@redhat.com>
706
707 * mcore-tdep.c (mcore_gdbarch_init): Use
708 generic_unwind_get_saved_register instead of
709 generic_get_saved_register.
710 * v850-tdep.c (v850_gdbarch_init): Ditto.
711 * frv-tdep.c (frv_gdbarch_init): Ditto.
712 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
713 * s390-tdep.c (s390_gdbarch_init): Ditto.
714 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
715 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
716 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
717
3956d554
JB
7182002-08-05 Joel Brobecker <brobecker@gnat.com>
719
720 * objfiles.h: Add missing #include "symfile.h"
721
722 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
723
8249c0d6
AC
7242002-08-04 Andrew Cagney <ac131313@redhat.com>
725
726 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
727 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
728 of FIELD_BITSIZE.
729
b9d14705
DJ
7302002-08-04 Daniel Jacobowitz <drow@mvista.com>
731
732 * NEWS: Cleanup and nitpick.
733
dd73b9bb
AC
7342002-08-03 Andrew Cagney <ac131313@redhat.com>
735
736 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
737
043a27f8
AC
7382002-08-03 Andrew Cagney <ac131313@redhat.com>
739
740 * Makefile.in (gdbtk-bp.o): Update dependencies.
741 (gdbtk-register.o): Ditto.
742 (gdbtk-varobj.o): Ditto.
743
46ce284d
AC
7442002-08-03 Andrew Cagney <cagney@redhat.com>
745
746 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
747 m68hc11_fetch_pseudo_register.
748 (m68hc11_pseudo_register_write): Replace
749 m68hc11_store_pseudo_register.
750 (m68hc11_gdbarch_init): Update.
751
b66d6d2e
AC
752Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
753
754 * gdbarch.sh: Include "gdb_string.h".
755 * gdbarch.c: Regenerate.
756
757 * regcache.c: Include "gdb_string.h".
758 * ax-general.c: Ditto.
759 * varobj.c: Ditto.
760 * std-regs.c: Ditto.
761 * fbsd-proc.c: Ditto.
762 * thread.c: Ditto.
763
764 * Makefile.in (regcache.o): Update dependencies.
765 (thread.o, gdbarch.o): Ditto.
766 (ax-general.o, gdbarch.o): Ditto.
767 (varobj.o, std-regs.o): Ditto.
768 (fbsd-proc.o): Specify dependencies.
769
29e1842b
AC
7702002-08-02 Andrew Cagney <cagney@redhat.com>
771
772 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
773 regnum.
774 (regcache_cooked_write): Ditto.
775
68365089
AC
7762002-08-02 Andrew Cagney <ac131313@redhat.com>
777
778 * regcache.c (regcache_cooked_read): New function.
779 (regcache_cooked_write): New function.
780 (read_register_gen): Rewrite using regcache_cooked_read.
781 (write_register_gen): Rewrite using regcache_cooked_write.
782
783 * regcache.h (regcache_cooked_read, regcache_cooked_write):
784 Declare.
785
d8124050
AC
7862002-08-02 Andrew Cagney <cagney@redhat.com>
787
788 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
789 Replace the architecture methods register_read and register_write.
790 * gdbarch.h, gdbarch.c: Regenerate.
791 * regcache.c (init_regcache_descr): Update.
792 (read_register_gen): Update.
793 (write_register_gen): Update.
794 (supply_register): Update comment.
795
796 * sh-tdep.c (sh_gdbarch_init): Update.
797 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
798 `regcache' and `gdbarch' parameters. Make `buffer' a void
799 pointer. Update code.
800 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
801 `regcache' and `gdbarch' parameters. Make `buffer' a constant
802 void pointer. Update code.
803 (sh64_register_write): Delete.
804 (sh4_register_read): Delete.
805 (sh64_register_read): Delete.
806 (sh4_register_write): Delete.
807 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
808 void pointer, `to' parameter a void pointer.
809 (sh_sh64_register_convert_to_raw): Ditto.
810
a6425924
KB
8112002-08-01 Kevin Buettner <kevinb@redhat.com>
812
813 * mips-tdep.c (mips_register_virtual_type): Use architecture
814 invariant return values.
815
ff5922b5
AC
8162002-08-01 Andrew Cagney <cagney@redhat.com>
817
818 * linux-proc.c: Include "gdb_string.h".
819 * Makefile.in (linux-proc.o): Update dependency list.
820
32a6503c
KB
8212002-08-01 Kevin Buettner <kevinb@redhat.com>
822
823 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
824 comment.
825
ccaa32c7
GS
8262002-08-01 Grace Sainsbury <graces@redhat.com>
827
828 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
829 to_insert_watchpoint, to_remove_watchpoint,
830 to_stopped_by_watchpoint, to_stopped_data_address,
831 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
832 target vecctor. Define their corresponding macros so they call
833 them.
834
835 * target.c: Add default and debug versions of for
836 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
837 to_insert_watchpoint, to_remove_watchpoint,
838 to_stopped_by_watchpoint, to_stopped_data_address,
839 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
840
78fde5f8
KB
8412002-08-01 Kevin Buettner <kevinb@redhat.com>
842
843 * mips-tdep.c (mips_register_virtual_type): New function.
844 (mips_gdbarch_init): Register mips_register_virtual_type()
845 with gdbarch machinery.
846 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
847 this file instead of tm-bigmips.h.
848 (MIPS_REGSIZE): Delete this macro.
849 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
850 multiarch version in mips-tdep.c will be found.
851
db034ac5
AC
8522002-08-01 Andrew Cagney <cagney@redhat.com>
853
854 * NEWS: Menion that CHILL has been made obsolete.
855
856 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
857 * gdbserver/Makefile.in: Ditto.
858 * stabsread.c (read_range_type): Ditto.
859 * gdbtypes.h: Ditto.
860 * language.c (binop_type_check): Ditto.
861 (binop_result_type): Ditto.
862 (integral_type): Ditto.
863 (character_type): Ditto.
864 (string_type): Ditto.
865 (boolean_type): Ditto.
866 (structured_type): Ditto.
867 (lang_bool_type): Ditto.
868 (binop_type_check): Ditto.
869 * language.h (_LANG_chill): Ditto.
870 * dwarfread.c (set_cu_language): Ditto.
871 * dwarfread.c (CHILL_PRODUCER): Ditto.
872 * dwarfread.c (handle_producer): Ditto.
873 * expression.h (enum exp_opcode): Ditto.
874 * eval.c: Ditto for comments.
875 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
876 * expprint.c (print_subexp): Ditto.
877 (print_subexp): Ditto.
878 * valops.c (value_cast): Ditto.
879 (search_struct_field): Ditto.
880 * value.h (COERCE_VARYING_ARRAY): Ditto.
881 * symfile.c (init_filename_language_table): Ditto.
882 (add_psymbol_with_dem_name_to_list): Ditto.
883 * valarith.c (value_binop): Ditto.
884 (value_neg): Ditto.
885 * valops.c (value_slice): Ditto.
886 * symtab.h (union language_specific): Ditto.
887 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
888 (SYMBOL_DEMANGLED_NAME): Ditto.
889 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
890 * defs.h (enum language): Ditto.
891 * symtab.c (got_symtab): Ditto.
892 * utils.c (fprintf_symbol_filtered): Ditto.
893
894 * ch-typeprint.c: Make file obsolete.
895 * ch-valprint.c: Make file obsolete.
896 * ch-lang.h: Make file obsolete.
897 * ch-exp.c: Make file obsolete.
898 * ch-lang.c: Make file obsolete.
899
900 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
901 CHILL_LIB.
902 (TARGET_FLAGS_TO_PASS): Ditto.
903 (CHILLFLAGS): Obsolete.
904 (CHILL): Obsolete.
905 (CHILL_FOR_TARGET): Obsolete.
906 (CHILL_LIB): Obsolete.
907 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
908 ch-valprint.c.
909 (HFILES_NO_SRCDIR): Remove ch-lang.h.
910 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
911 ch-lang.o.
912 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
913 targets.
914
8aaf0b47
JB
9152002-07-31 Joel Brobecker <brobecker@gnat.com>
916
917 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
918 This does not change anything at the moment, but will be helpful
919 later when full Ada support is integrated.
920
f3a7b3a5
KB
9212002-07-31 Kevin Buettner <kevinb@redhat.com>
922
923 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
924 help message.
925
fb850278
KB
9262002-07-31 Kevin Buettner <kevinb@redhat.com>
927
928 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
929 and save it in a local variable. Use variable in later test.
930
e3bddbfa
KB
9312002-07-31 Kevin Buettner <kevinb@redhat.com>
932
933 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
934 test. (Thanks to Daniel Jacobowitz.)
935
28d169de
KB
9362002-07-31 Kevin Buettner <kevinb@redhat.com>
937
938 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
939 (mips_abi_strings): Add "n64".
940 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
941
7fe7e44e
KB
9422002-07-31 Kevin Buettner <kevinb@redhat.com>
943
944 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
945 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
946
c6caf090
KB
9472002-07-31 Kevin Buettner <kevinb@redhat.com>
948
949 * utils.c (host_pointer_to_address, address_to_host_pointer):
950 Use gdb_assert() instead of explicit call to internal_error().
951
c41669e0
KB
9522002-07-30 Kevin Buettner <kevinb@redhat.com>
953
954 * Makefile.in (rs6000-nat.o): Update dependencies.
955
956 From Nicholas Duffek:
957 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
958 (aix-thread.o): New rule.
959 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
960 * config/powerpc/aix432.mh: New file.
961
2fda4977
DJ
9622002-07-30 Daniel Jacobowitz <drow@mvista.com>
963
964 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
965 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
966 (fetch_core_registers, ppc_linux_supply_gregset)
967 (ppc_linux_supply_fpregset): New functions.
968 (ppc_linux_regset_core_fns): New.
969 (_initialize_ppc_linux_tdep): Call add_core_fns.
970 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
971 and ppc_linux_supply_gregset.
972 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
973 (supply_fpregset): Call ppc_linux_supply_fpregset.
974 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
975 corelow.o.
976 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
977
729051e6
DJ
9782002-07-30 Daniel Jacobowitz <drow@mvista.com>
979
980 * symtab.c (lookup_symbol): Demangle before lowercasing.
981
5f8a3188
AC
9822002-07-30 Andrew Cagney <ac131313@redhat.com>
983
984 * symtab.h: Replace #include "gdb_obstack.h" with opaque
985 declaration.
986 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
987 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
988 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
989 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
990 "gdb_string.h".
991 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
992 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
993 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
994 (avr-tdep.o, mon960-rom.o): Ditto.
995 (aout_stabs_gnu_h): Define.
996 (symtab_h): Remove $(gdb_obstack_h).
997
67f07146
JB
9982002-07-30 Jim Blandy <jimb@redhat.com>
999
1000 Patch from David Carlton <carlton@math.stanford.edu>:
1001 * gdbinit.in: Move the `dir' commands that add GDB's own source
1002 directory to the search path to the end, so that the `gdb' source
1003 directory will be searched first.
1004
04ea0df1
AC
10052002-07-29 Andrew Cagney <ac131313@redhat.com>
1006
1007 * gdb_obstack.h: New file.
1008 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1009 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1010 * objfiles.h: Include "gdb_obstack.h".
1011 * Makefile.in (gdb_obstack_h): Define.
1012 (symtab_h): Add $(gdb_obstack_h).
1013 (objfiles_h): Add $(gdb_obstack_h).
1014
1015 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1016 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1017 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1018 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1019 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1020 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1021 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1022 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1023
1024 * Makefile.in (bcache.o): Update dependencies.
1025 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1026 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1027 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1028 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1029 (stabsread.o, symfile.o, symmisc.o): Ditto.
1030 (symtab.o, typeprint.o, macroexp.o): Ditto.
1031 (macrotab.o, mdebugread.o): Ditto.
1032 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1033 (coff_ecoff_h, aout_aout64_h): Define.
1034 (aout_stabs_gnu_h, libaout_h): Define.
1035
d138e37a
AC
10362002-07-29 Andrew Cagney <cagney@redhat.com>
1037
1038 * regcache.c (struct regcache_descr): Rename nr_registers to
1039 nr_cooked_registers. Revise comments describing the structure
1040 member fields.
1041 (init_regcache_descr): Update.
1042 (init_legacy_regcache_descr): Update.
1043 (read_register_gen, write_register_gen): When a cooked register in
1044 the raw register range, directly access the value from the raw
1045 register cache.
1046
460e6ec3
AC
10472002-07-29 Andrew Cagney <ac131313@redhat.com>
1048
1049 * z8k-tdep.c: Do not include "obstack.h".
1050 * h8300-tdep.c, h8500-tdep.c: Ditto.
1051 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1052 * valprint.c, v850-tdep.c: Ditto.
1053 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1054 * mn10200-tdep.c: Ditto.
1055
1056 * Makefile.in (z8k-tdep.o): Update dependencies.
1057 (m68hc11-tdep.o, valprint.o): Ditto.
1058 (v850-tdep.o, d10v-tdep.o): Ditto.
1059 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1060 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1061 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1062 (sh_opc_h, gdb_sim_sh_h): Define.
1063 (elf_sh_h, elf_bfd_h): Define.
1064 (opcode_m68hc11_h): Define.
1065 (OPCODES_SRC, OPCODES_DIR): define.
1066 (OPCODES): Use $(OPCODES_DIR).
1067 (gdb_sim_d10v_h): Rename sim_d10v_h.
1068 (gdb_sim_arm_h): Rename sim_arm_h.
1069
790c9cf0
KB
10702002-07-26 Kevin Buettner <kevinb@redhat.com>
1071
1072 * utils.c (host_pointer_to_address, address_to_host_pointer):
1073 Change internal_error() message to indicate function responsible
1074 for the error.
1075
9647fa49
KB
10762002-07-26 Kevin Buettner <kevinb@redhat.com>
1077
1078 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1079 calls to local_hex_string_custom().
1080
dabbe2c0
KB
10812002-07-26 Kevin Buettner <kevinb@redhat.com>
1082
1083 * irix5-nat.c: Move IRIX shared library support from here...
1084 * solib-irix.c: ...to here. Revised substantially to work with
1085 generic solib framework.
1086
b96d0a4e
KB
1087 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1088 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1089 * mips-irix-tdep.c: New file.
1090
313fb2f6
KB
1091 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1092 (mips-irix-tdep.o, solib-irix.o): New rules.
1093 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1094 solib-irix.o.
1095 * config/mips/irix6.mt (TDEPFILES): Likewise.
1096 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1097
ab2eaf26
KB
10982002-07-26 Kevin Buettner <kevinb@redhat.com>
1099
177e4768 1100 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1101 disabled (via ``#if 0'') includes.
1102
7244546a
KB
11032002-07-26 Kevin Buettner <kevinb@redhat.com>
1104
1105 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1106 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1107 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1108 Add support for the fpscr register.
1109 * rs6000-nat.c (regmap, fetch_inferior_registers)
1110 (store_inferior_registers, fetch_core_registers): Likewise.
1111
dd7be90a
KB
11122002-07-26 Kevin Buettner <kevinb@redhat.com>
1113
1114 * rs6000-nat.c (language.h): Include.
1115 (special_regs): Delete this array.
1116 (regmap): New function.
1117 (fetch_register, store_register): Use regmap() to map gdb
1118 register numbers to ptrace register numbers. Also, use
1119 outputs from regmap() to make decisions regarding type of
1120 ptrace() call to make. In particular, don't compare against
1121 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1122 (fetch_inferior_registers, store_inferior_registers): Where
1123 possible, obtain register numbers from tdep struct. Don't
1124 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1125 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1126 (LAST_UISA_SP_REGNUM): Delete.
1127
11bf77db
KB
11282002-07-25 Kevin Buettner <kevinb@redhat.com>
1129
1130 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1131 (fetch_registers, store_register, fetch_core_registers): Don't
1132 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1133 regcache_collect() as appropriate.
1134 (find_toc_address): Format hex address with local_hex_string().
1135
06afebeb
AC
11362002-07-25 Andrew Cagney <ac131313@redhat.com>
1137
1138 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1139 bfd/elf32-frv.c.
1140
8c554d79
TT
11412002-07-24 Tom Tromey <tromey@redhat.com>
1142
1143 * jv-exp.y: Marked all strings with _().
1144 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1145 internal_error.
1146 (MethodInvocation, CastExpression, parse_number, yyerror,
1147 java_type_from_name, push_expression_name, yylex): Typo fixes.
1148
e4c242d9
DJ
11492002-07-24 Daniel Jacobowitz <drow@mvista.com>
1150
1151 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1152 (tee_file_flush, tee_file_write, tee_file_fputs)
1153 (tee_file_isatty): New.
1154 * ui-file.h (tee_file_new): Add prototype.
1155
ebf56fd3
AS
11562002-07-24 Aidan Skinner <aidan@velvet.net>
1157
1158 * ada-lang.c: Change k&r style function definitions to prototyped
1159 form.
1160 * ada-typeprint.c: Change k&r style function definitions to prototyped
1161 form.
1162 * ada-valprint.c: Change k&r style function definitions to prototyped
1163 form.
1164
7fb623f7
AC
11652002-07-24 Andrew Cagney <cagney@redhat.com>
1166
1167 * README: Remove reference to remote-bug.
1168 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1169 remote-bug.c.
1170 (m88k-nat.o): Delete rule.
1171 (m88k-tdep.o): Delete rule.
1172 (remote-bug.o): Delete rule.
1173 * MAINTAINERS: Mark as obsolete.
1174 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1175 * m88k-tdep.c: Make file obsolete.
1176 * config/m88k/m88k.mh: Ditto.
1177 * config/m88k/delta88v4.mh: Ditto.
1178 * config/m88k/delta88v4.mt: Ditto.
1179 * config/m88k/delta88.mt: Ditto.
1180 * config/m88k/delta88.mh: Ditto.
1181 * remote-bug.c: Ditto.
1182 * config/m88k/tm-delta88.h: Ditto.
1183 * config/m88k/nm-delta88v4.h: Ditto.
1184 * config/m88k/xm-delta88.h: Ditto.
1185 * config/m88k/xm-dgux.h: Ditto.
1186 * config/m88k/tm-m88k.h: Ditto.
1187 * config/m88k/nm-m88k.h: Ditto.
1188 * config/m88k/tm-delta88v4.h: Ditto.
1189 * m88k-nat.c: Ditto.
1190 * cxux-nat.c: Ditto.
1191 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1192 and m88*-*-* obsolete.
1193 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1194 m88*-*-* obsolete.
1195
37611a2b
AC
11962002-07-24 Andrew Cagney <cagney@redhat.com>
1197
1198 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1199 constant. Same for local pointer variables.
1200 (extract_signed_integer): Ditto.
1201 * defs.h (extract_unsigned_integer): Update.
1202 (extract_signed_integer): Update.
1203
18ff0538
KB
12042002-07-24 Kevin Buettner <kevinb@redhat.com>
1205
1206 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1207 * gdbserver/configure: Regenerate.
1208 * gdbserver/config.in: Regenerate.
1209
1aaa5f99
AC
12102002-07-24 Andrew Cagney <cagney@redhat.com>
1211
1212 * regcache.c (regcache_raw_write): Change buf parameter to a
1213 constant void pointer.
1214 (regcache_raw_read): Change buf parameter to a void pointer.
1215 (legacy_write_register_gen): Change myaddr parameter a constant
1216 void pointer.
1217 (supply_register): Change val parameter to a const void pointer.
1218 * regcache.h (regcache_raw_write): Update declaration.
1219 (regcache_raw_read): Update declaration.
1220 (supply_register): Update declaration.
1221
b4f5539f
TT
12222002-07-24 Tom Tromey <tromey@redhat.com>
1223
1224 * defs.h (gdb_readline_wrapper): Declare.
1225 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1226 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1227 * top.c (gdb_readline_wrapper): New function.
1228 (command_line_input): Use it.
1229
0818c12a
AC
12302002-07-24 Andrew Cagney <cagney@redhat.com>
1231
1232 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1233 regcache_read and regcache_write.
1234 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1235 * regcache.c: Update.
1236 * sh-tdep.c (sh64_push_arguments): Update comment.
1237 (sh_pseudo_register_read): Update.
1238 (sh_pseudo_register_write): Update.
1239 (sh4_register_read): Update.
1240 (sh4_register_write): Update.
1241 (sh64_pseudo_register_read): Update.
1242 (sh64_pseudo_register_write): Update.
1243 (sh64_register_read): Update.
1244 (sh64_register_write): Update.
1245 * i386-tdep.c (i386_extract_return_value): Update.
1246 (i386_extract_struct_value_address): Update.
1247 (i386_extract_return_value): Update.
1248 * blockframe.c (generic_read_register_dummy): Update.
1249 (generic_call_dummy_register_unwind): Update
1250 * infrun.c (write_inferior_status_register): Update.
1251
f7321c06
JB
12522002-07-23 Jim Blandy <jimb@redhat.com>
1253
1254 * parser-defs.h (expression_context_pc): Make this extern.
1255 (Thanks to Michael Snyder.)
1256
2037aebb
AC
12572002-07-23 Andrew Cagney <ac131313@redhat.com>
1258
1259 GDB 5.2.1 released from 5.2 branch.
1260 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1261 * README: Update to mention 5.2.1.
1262
66504d44
MS
12632002-07-23 Mark Salter <msalter@redhat.com>
1264
1265 * remote.c (remote_read_bytes): Fix check for error.
1266
27bae383
KB
12672002-07-22 Kevin Buettner <kevinb@redhat.com>
1268
1269 * aix-thread.c (language.h): Include.
1270 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1271 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1272 Print newlines at end of debug messages.
1273 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1274 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1275
12762002-07-22 Kevin Buettner <kevinb@redhat.com>
1277
1278 * aix-thread.c (ppc-tdep.h): Include.
1279 (special_register_p): New function.
1280 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1281 (store_regs_user_thread): Use register number information from
1282 gdbarch_tdep struct instead of hardcoded offsets relative to
1283 FIRST_UISA_SP_REGNUM.
1284 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1285 special_register_p() instead of using FPLAST_REGNUM and
1286 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1287 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1288 will be MQ's register number.
1289
12902002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1291
1292 * aix-thread.c (ops): Rename to aix_thread_ops.
1293 (base_ops): Rename to base_target.
1294 (ops_attach): Rename to aix_thread_attach.
1295 (ops_detach): Rename to aix_thread_detach.
1296 (ops_resume): Rename to aix_thread_detach.
1297 (ops_wait): Rename to aix_thread_wait.
1298 (ops_kill): Rename to aix_thread_kill.
1299 (init_ops): Rename to init_aix_thread_ops.
1300 (ops_fetch_register): Rename to aix_thread_fetch_register.
1301 (ops_store_register): Rename to aix_thread_store_register.
1302 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1303 (ops_thread_alive): Rename to aix_thread_thread_alive.
1304 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1305 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1306 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1307 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1308 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1309 (store_regs_lib): Rename to store_regs_user_thread.
1310 (store_regs_kern): Rename to store_regs_kernel_thread.
1311
27bae383 13122002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1313
1314 * aix-thread.c (ops_prepare_to_store): Eliminate.
1315 (init_ops): Don't initialize ops.prepare_to_store.
1316 (store_regs_kern): Pre-fetch register buffers from child,
1317 because some registers may not be in the cache. Copy
1318 regs from register cache only if they are cached.
1319 (store_regs_lib): Copy regs from register cache only
1320 if they are cached.
1321 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1322 fill_gprs64): Ditto.
1323
61c5da0b
KB
13242002-07-22 Kevin Buettner <kevinb@redhat.com>
1325
1326 * aix-thread.c (gdb_assert.h): Include.
1327 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1328 register sizes (from register cache) match size of buffer holding
1329 register data.
1330 (fill_sprs32): Change parameter types to match those in the ptrace()
1331 buffer.
1332 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1333 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1334
13352002-07-22 Michael Snyder <msnyder@redhat.com>
1336
1337 * aix-thread.c (supply_sprs64): Cosmetic change.
1338 (supply_sprs32): Cosmetic change.
1339 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1340 (fill_sprs64): Use regcache_collect instead of read_register.
1341 (store_regs_lib): Use regcache_collect instead of
1342 read_register. Use fill_sprs32 instead of fill_sprs64,
1343 if debugging a 32-bit architecture.
1344 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1345 out of the register cache, instead of passing a pointer into
1346 the register cache directly to ptrace. Use regcache_collect
1347 insteaad of read_register.
1348 (ops_prepare_to_store): Use target_read_registers instead
1349 of read_register_bytes.
1350
36479eb1
AS
13512002-07-20 Aidan Skinner <aidan@velvet.net>
1352
1353 * MAINTAINERS: Add self under write after approval.
1354
80ae6ee2
AS
13552002-07-20 Aidan Skinner <aidan@velvet.net>
1356
1357 * ada-tasks.c: Change k&r style function definitions to prototyped
1358 form.
1359
8a8ab2b9
AC
13602002-07-19 Andrew Cagney <ac131313@redhat.com>
1361
1362 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1363 * x86-64-tdep.c: Include "objfiles.h".
1364 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1365 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1366
fb16b900
ML
13672002-07-17 Michal Ludvig <michal@suse.cz>
1368
1369 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1370 (update_context): Initialise cfa variable.
1371
0fe7bf7b
MS
13722002-07-17 Michael Snyder <msnyder@redhat.com>
1373
1374 * aix-thread.c: Shorten some long lines.
1375 Bring comments into line with code spec.
1376
488f131b
JB
13772002-07-18 Joel Brobecker <brobecker@gnat.com>
1378
1379 * infrun.c: Re-indent using gdb_indent.sh.
1380
46c415d2
JB
13812002-07-18 Joel Brobecker <brobecker@gnat.com>
1382
1383 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1384 Leave the indentation temporarily untouched, to minimize the diffs.
1385
cdecafbe
EZ
13862002-07-18 Elena Zannoni <ezannoni@redhat.com>
1387
1388 * stabsread.c: Make os9k sections of the code obsolete,
1389 for real this time.
1390 * stabsread.h: Make os9k sections of the code obsolete.
1391
7b6aa020
ML
13922002-07-18 Michal Ludvig <mludvig@suse.cz>
1393
09ec9b38
ML
1394 * linux-low.c (regsets_store_inferior_registers): Add free()
1395 at the end of a loop to prevent memory leak.
1396 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1397 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1398 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1399 line a comment.
4894ac5d 1400 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1401
233282cd
JB
14022002-07-17 Jim Blandy <jimb@redhat.com>
1403
1404 * macrocmd.c (info_macro_command): Remove newline from error
1405 message.
1406
7b6aa020 14072002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1408
1409 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1410 (sh_gdbarch_init): Use it for sh-dsp.
1411
f7ef9339
KB
14122002-07-16 Kevin Buettner <kevinb@redhat.com>
1413
1414 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1415 64-bit DWARF2 format.
1416
8dd72958
JB
14172002-07-16 Joel Brobecker <brobecker@gnat.com>
1418
1419 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1420 <sys/proc.h> when not available.
1421
a99a9e1b
AC
14222002-07-16 Andrew Cagney <ac131313@redhat.com>
1423
1424 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1425 * stabsread.c: Make os9k sections of the code obsolete.
1426 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1427 * config/i386/i386os9k.mt: Make file obsolete.
1428 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1429 (COMMON_OBS): Remove os9kread.o
1430 (SFILES): Remove os9kread.c.
1431 (os9kread.o, remote-os9k.o): Make target obsolete.
1432 * remote-os9k.c: Make file obsolete.
1433 * os9kread.c: Make file obsolete.
1434 * Makefile.in
1435
7a3085c1
AC
14362002-07-16 Andrew Cagney <ac131313@redhat.com>
1437
1438 * NEWS: Mention that the FR30 has been made obsolete.
1439 * fr30-tdep.c: Make file obsolete.
1440 * config/fr30/tm-fr30.h: Ditto.
1441 * config/fr30/fr30.mt: Ditto.
1442 * configure.tgt: Make fr30-*-elf obsolete.
1443 * MAINTAINERS: Make fr30-elf obsolete.
1444
28a93f5a
PM
14452002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1446
1447 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1448 found is not inside a section.
1449
be006b8b
KB
14502002-07-15 Kevin Buettner <kevinb@redhat.com>
1451
1452 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1453 strerror().
1454 (pdc_realloc): Use xrealloc() instead of realloc().
1455
14fa3751
KB
14562002-07-15 Kevin Buettner <kevinb@redhat.com>
1457
1458 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1459 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1460 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1461 macros.
1462
42cc437f
KB
14632002-07-15 Kevin Buettner <kevinb@redhat.com>
1464
1465 * aix-thread.c (ptrace_check): Eliminate goto.
1466 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1467 problem.
1468
8e2c28d4
KB
14692002-07-15 Kevin Buettner <kevinb@redhat.com>
1470
1471 * aix-thread.c (gdbcmd.h): Include.
1472 (DEBUG, DBG, DBG2, dbg): Eliminate.
1473 (debug_aix_thread): New static global.
1474 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1475 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1476 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1477 invocations to DBG and DBG2 macros to test against
1478 ``debug_aix_thread'' and call fprintf_unfiltered().
1479 (_initialize_aix_thread): Add new command "set debug aix-thread".
1480
30413464
AC
14812002-07-15 Andrew Cagney <ac131313@redhat.com>
1482
1483 From Gerhard Tonn <TON@de.ibm.com>:
1484 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1485 instead of supply_register.
1486
7c43edc1
AC
14872002-07-15 Andrew Cagney <ac131313@redhat.com>
1488
1489 * dwarf2cfi.c: Include "gdb_assert.h".
1490 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1491 non-NULL.
1492 (update_context): Do not use __func__. Add missing ``break''.
1493 (update_context): Do not use __func__.
1494
9364a0ef
EZ
14952002-07-15 Elena Zannoni <ezannoni@redhat.com>
1496
1497 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1498 and its setting. Set gdbarch instruction printing functions
1499 directly. For non-rs6000 case use new function
1500 gdb_print_insn_powerpc.
1501 (gdb_print_insn_powerpc): New function.
1502
3fbeef0b
AC
15032002-07-13 Andrew Cagney <ac131313@redhat.com>
1504
92eb23c5 1505 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1506 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1507 * configure.tgt: Mark d30v-*-* as obsolete.
1508 * d30v-tdep.c: Mark file as obsolete.
1509 * config/d30v/d30v.mt: Ditto.
1510 * config/d30v/tm-d30v.h: Ditto.
1511
aacb1f0a
AS
15122002-07-13 Aidan Skinner <aidan@velvet.net>
1513
1514 * ada-tasks.c (add_task_entry): replace calls to
1515 malloc() with xmalloc
1516 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1517
1518 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1519 ada_finish_decode_line_1, all_sals_for_line
1520 ada_breakpoint_rewrite): replace calls to free() with xfree()
1521
c11d79f2
KB
15222002-07-12 Kevin Buettner <kevinb@redhat.com>
1523
1524 From Nicholas Duffek (with minor changes by Martin Hunt,
1525 Louis Hamilton, and Kevin Buettner):
1526 * aix-thread.c: New file.
1527
8e19ed76
PS
15282002-07-12 Petr Sorfa <petrs@caldera.com>
1529
1530 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1531 complaint for invalid attribute class or form.
1532 (read_func_scope): DW_AT_frame_base
1533 better handling of DW_AT_block*.
1534 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1535 better handling of DW_AT_block*.
1536 (read_common_block): DW_AT_location
1537 better handling of DW_AT_block*.
1538 (read_partial_die): DW_AT_location better handling
1539 of DW_AT_block*.
1540 (new_symbol): DW_AT_external better handling of
1541 DW_AT_block*. Proper initialization of variable
1542 "addr".
1543 (attr_form_is_block): New function that returns true
1544 if the attribute's form is of DW_FORM_block*.
1545
295401f7
DJ
15462002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1547
1548 * valops.c (find_method_list): Remove comment about
1549 removed STATIC_MEMFUNCP argument.
1550 (value_find_oload_method_list): Likewise.
1551
e42dc924
KB
15522002-07-12 Kevin Buettner <kevinb@redhat.com>
1553
1554 From Nicholas Duffek:
1555 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1556 target_new_objfile_hook.
1557
6904b546
KB
15582002-07-12 Kevin Buettner <kevinb@redhat.com>
1559
1560 From Nicholas Duffek:
1561 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1562 csect.
1563
53fe9346
AC
15642002-07-12 Andrew Cagney <cagney@redhat.com>
1565
1566 * MAINTAINERS: Mention --enable-sim-build-warnings.
1567 (m68hc11-elf): Disable sim build warnings.
1568 (m32r-elf): Mark as broken obsolete candidate.
1569 (x86_64-linux-gnu): Mark as buildable with -Werror.
1570 (arm-elf): Change -w to ``,'' which enables warnings but not
1571 -Werror.
1572
af5f3db6
AC
15732002-07-12 Andrew Cagney <ac131313@redhat.com>
1574
1575 * bcache.h: Update copyright.
1576 (struct bstring, struct bcache): Move definition to "bcache.c".
1577 Replaced by opaque declaration.
1578 (bcache_xfree): Replace free_bcache.
1579 (bcache_xmalloc, bcache_memory_used): Declare.
1580
1581 * bcache.c: Update copyright.
1582 (struct bstring, struct bcache): Moved to here from "bcache.h".
1583 Update comments.
1584 (bcache_xmalloc, bcache_memory_used): New functions.
1585 (bcache_xfree): Replace function free_bcache.
1586
1587 * Makefile.in (objfiles.o): Add $(bcache_h).
1588 (objfiles_h): Remove $(bcache_h).
1589 (symfile.o): Add $(bcache_h).
1590
1591 * symmisc.c: Update copyright.
1592 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1593 (print_objfile_statistics): Use bcache_memory_used.
1594
1595 * symfile.c: Include "bcache.h".
1596 (reread_symbols): Use bcache_xfree.
1597 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1598 (add_psymbol_to_list): Pass psymbol_cache by value.
1599 (add_psymbol_with_dem_name_to_list): Ditto.
1600
1601 * objfiles.h: Update copyright.
1602 (struct bcache): Declare opaque. Do not include "bcache.h".
1603 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1604 bcache'' pointers.
1605 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1606
1607 * objfiles.c: Include "bcache.h". Update copyright.
1608 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1609 macro_cache.
1610 (free_objfile): Use bcache_xfree.
1611
444199e7
GS
16122002-07-11 Grace Sainsbury <graces@redhat.com>
1613
1614 * monitor.c (monitor_fetch_register): Make name a constant.
1615 (monitor_store_register): Same.
1616
261397f8
DJ
16172002-07-11 Daniel Jacobowitz <drow@mvista.com>
1618
1619 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1620 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1621 (finish_block) For non-function blocks, hash the symbol table. For
1622 function blocks, mark the symbol table as unhashed.
1623 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1624 (msymbol_hash_iw): Likewise.
1625 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1626 value.
1627 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1628 (lookup_minimal_symbol): Likewise for both.
1629 * symtab.h (struct block): Add `hashtable' flag. Comment the
1630 hashtable.
1631 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1632 (ALL_BLOCK_SYMBOLS): Update.
1633 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1634 (struct symbol): Add `hash_next' pointer.
1635 * symtab.c (lookup_block_symbol): Search using the hash table when
1636 possible.
1637 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1638 (search_symbols, find_addr_symbol): Likewise.
1639
1640 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1641 (read_dst_symtab): Likewise.
1642 * jv-lang.c (get_java_class_symtab): Likewise.
1643 * mdebugread.c: Include "gdb_assert.h".
1644 (shrink_block): Assert that the block being modified is not hashed.
1645 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1646 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1647 symbols.
1648 (dump_symtab): Recognize hashed blocks.
1649 * printcmd.c (print_frame_args): Assert that function blocks do not
1650 have hashed symbol tables.
1651 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1652 (fill_in_ada_prototype, debug_print_block): Likewise.
1653 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1654
6f0eaa01
CV
16552002-07-11 Corinna Vinschen <vinschen@redhat.com>
1656
1657 * stack.c (print_frame): Use result of frame_address_in_block()
1658 instead of fi->pc when evaluating symbols.
1659 (backtrace_command_1): Ditto.
1660
a208b0cb
AC
16612002-07-11 Andrew Cagney <cagney@redhat.com>
1662
1663 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1664 Make static.
1665
1666 * arm-tdep.c (arm_register_name): Make return type constant.
1667
a6b6b089
AC
16682002-07-10 Andrew Cagney <ac131313@redhat.com>
1669
5ae5f592
AC
1670 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1671 prototype.
1672 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1673 * s390-tdep.c (s390_fp_regnum): Ditto.
1674 (s390_read_fp): Ditto.
1675 (s390_pop_frame): Ditto.
1676 (_initialize_s390_tdep): Ditto.
1677 * remote.c (get_remote_state): Ditto.
1678 * procfs.c (mappingflags): Ditto.
1679 * memattr.c (_initialize_mem): Ditto.
1680 * mcore-tdep.c (mcore_pop_frame): Ditto.
1681 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1682 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1683 * language.c (set_case_str): Ditto.
1684 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1685 * frv-tdep.c (new_variant): Ditto.
1686 (frv_stopped_data_address): Ditto.
1687 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1688 (context_alloc): Ditto.
1689 (frame_state_alloc): Ditto.
1690 (unwind_tmp_obstack_init): Ditto.
1691 (unwind_tmp_obstack_free): Ditto.
1692 (cfi_read_fp): Ditto.
1693 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1694 (cris_pop_frame): Ditto.
1695 * c-lang.c (scanning_macro_expansion): Ditto.
1696 (finished_macro_expansion): Ditto.
1697 (c_preprocess_and_parse): Ditto.
1698 * gdbarch.sh: Ditto.
1699 * gdbarch.h, gdbarch.c: Regenerate.
1700 * config/mn10200/tm-mn10200.h: Adjust indentation.
1701 * target.c: Adjust indentation.
1702 * symtab.h: Adjust indentation.
1703 * stabsread.h: Adjust indentation.
1704 * remote-es.c: Adjust indentation.
1705 * os9kread.c: Adjust indentation.
1706
17072002-07-10 Andrew Cagney <ac131313@redhat.com>
1708
a6b6b089
AC
1709 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1710 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1711
a1789893
GS
17122002-07-10 Grace Sainsbury <graces@redhat.com>
1713
1714 * NEWS: Mention m68k, mcore multi-arching.
1715 * MAINTAINERS: Change status of m68k, mcore to reflect
1716 multi-arching.
1717
02f0d45d
DJ
17182002-07-10 Daniel Jacobowitz <drow@mvista.com>
1719
1720 * valops.c (find_overload_match): Free oload_syms.
1721
f15f768e
JB
17222002-07-09 Joel Brobecker <brobecker@gnat.com>
1723
1724 Define HAVE_SYS_PROC_H if sys/proc.h exists
1725 * configure.in: Add check for sys/proc.h
1726 * config.in: Regenerate.
1727 * configure: Regenerate.
1728
902a7139
GS
17292002-07-09 Grace Sainsbury <graces@redhat.com>
1730
1731 * config/m68k/tm-m68k.h: Remove macros wrapped in
1732 #if !GDB_MULTI_ARCH.
1733
82e0fd98
DB
17342002-07-09 David O'Brien <obrien@FreeBSD.org>
1735
1736 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1737 (perror_with_name, remote_close, remote_open, expect, play): Static.
1738
a534e424
AC
17392002-07-08 Andrew Cagney <ac131313@redhat.com>
1740
1741 * config.in, configure: Regenerate.
1742
9b94f7bf
MK
17432002-07-08 Mark Kettenis <kettenis@gnu.org>
1744
1745 * dwarf2cfi.c: Include "gcore.h".
1746 (execute_stack_op): Fix implementation of the
1747 DW_OP_deref and DW_OP_deref_size operators by letting do their
1748 lookup in the target.
1749
1d34db41
MK
17502002-07-07 Mark Kettenis <kettenis@gnu.org>
1751
1752 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1753 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1754 tdep->sc_sp_offset.
1755
79d5b63a
DJ
17562002-07-05 Daniel Jacobowitz <drow@mvista.com>
1757
1758 Fix PR gdb/595, gdb/602
1759 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1760 Don't call value_cast, just read the vtable pointer; update comments
1761 to match.
1762
3bb912e8
GS
17632002-07-05 Grace Sainsbury <graces@redhat.com>
1764
1765 * config/mcore/tm-mcore.h: Remove file.
1766 * config/mcore/mcore.mt: Remove definition of TM_FILE
1767 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1768
ca39387d
MK
17692002-07-05 Mark Kettenis <kettenis@gnu.org>
1770
1771 * i386bsd-tdep.c: Include "gdb_string.h".
1772
efdc1108
GS
17732002-07-04 Grace Sainsbury <graces@redhat.com>
1774
1775 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1776 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1777 mcore-tdep.
1778 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1779 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1780 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1781 (RETVAL_REGNUM): Move macros from tm-mcore.h
1782 (mcore_reg_struct_has_addr): New function.
1783 (mcore_gdbarch_init): Added initializations for the macros removed
1784 from tm-mcore.h.
1785
bb21884d
MK
17862002-07-04 Mark Kettenis <kettenis@gnu.org>
1787
1788 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1789 traditonal string branding within the ELF header.
1790
228c6d41
DJ
17912002-07-04 Daniel Jacobowitz <drow@mvista.com>
1792
1793 * symtab.c (remove_params): New function.
1794 (make_symbol_overload_list): Use it instead of cplus_demangle.
1795 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1796
2404952e
MK
17972002-07-04 Mark Kettenis <kettenis@gnu.org>
1798
e5e4acad
MK
1799 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1800
baadce09
MK
1801 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1802 New variables.
1803 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1804 and tdep->sigtramp_end.
1805 * i386obsd-nat.c: New file.
1806 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1807
2404952e
MK
1808 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1809 Don't call get_current_frame().
1810
9b4f1ba7
PM
18112002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1812
1813 * i386-nat.c (child_post_startup_inferior): New function
1814 calling i386_cleanup_dregs if
1815 I386_USE_GENERIC_WATCHPOINTS is defined.
1816 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1817 conditional to acknowledge that i386-nat.c has its
1818 own child_post_startup_inferior function.
1819
c0d1d883
MK
18202002-07-04 Mark Kettenis <kettenis@gnu.org>
1821
00f8375e
MK
1822 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1823 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1824 instead of MAX_REGISTER_RAW_SIZE.
1825 (i386_extract_return_value, i386_extract_struct_value_address):
1826 Convert to use regcache.
1827 (i386_gdbarch_init): Set max_register_raw_size and
1828 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1829 Set extract_return_value and extract_struct_value_address instead
1830 of their deprecated variants.
1831
c0d1d883
MK
1832 Convert i386 target to generic dummy frames.
1833 * i386-tdep.c: Include "symfile.h".
1834 (i386_frameless_signal_p): Consider a function to be frameless if
1835 the pc points at the first instruction of the function.
1836 (i386_frame_chain): Handle (generic) call dummies.
1837 (i386_frame_saved_pc): Likewise.
1838 (i386_frame_init_saved_regs): Remove code dealing with call
1839 dummies on the stack.
1840 (i386_push_dummy_frame): Removed.
1841 (i386_call_dummy_words): Removed.
1842 (i386_fix_call_dummy): Removed.
1843 (i386_push_return_address): New function.
1844 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1845 parameter, and don't call get_current_frame.
1846 (i386_pop_frame): New function.
1847 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1848 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1849 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1850 call_dummy_length to 0, set call_dummy_words to NULL, set
1851 sizeof_call_dummy_words to 0, set fix_call_dummy to
1852 generic_fix_call_dummy, set pc_in_call_dummy to
1853 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1854 generic_push_dummy_frame, set push_return_address to
1855 i386_push_return_address and set frame_chain_valid to
1856 generic_file_frame_chain_valid.
1857
638c1580
ML
18582002-07-04 Michal Ludvig <mludvig@suse.cz>
1859
1860 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1861 byte offsets instead of an array of indexes.
1862 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1863
049ee0e4
AC
18642002-07-03 Andrew Cagney <ac131313@redhat.com>
1865
1866 * gdbarch.sh (struct regcache): Add opaque declaration.
1867 (EXTRACT_RETURN_VALUE): New architecture method.
1868 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1869 * gdbarch.h, gdbarch.c: Regenerate.
1870 * arch-utils.c (legacy_extract_return_value): New function.
1871 * arch-utils.h (legacy_extract_return_value): Declare.
1872 * values.c (value_being_returned): Re-enable code handling
1873 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1874 deprecated_grub_regcache_for_registers call to block handling
1875 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1876 (EXTRACT_RETURN_VALUE): Do not define.
1877
4e0d9804
GS
18782002-07-03 Grace Sainsbury <graces@redhat.com>
1879
1880 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1881 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1882 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1883 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1884 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1885 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1886 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1887 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1888 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1889 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1890 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1891 argument so the function fits the prototype in the architecture
1892 vector.
1893 (mcore_pop_frame): Remove argument so the function fits the
1894 prototype. Use get_current_frame instead of the argument.
1895 (mcore_push_arguments): Change type of struct_return so the
1896 function can be used in the architecture vector.
1897 (mcore_store_struct_return): Add.
1898 (mcore_frame_init_saved_regs): Add.
1899 (mcore_gdbarch_init): Add function calls to replace the macros
1900 removed from tm-mcore.h
1901
36160dc4
AC
19022002-07-03 Andrew Cagney <ac131313@redhat.com>
1903
1904 * infcmd.c (print_return_value): Remove compatibility code calling
1905 deprecated_grub_regcache_for_registers.
1906
1907 * values.c: Include "regcache.h".
1908 (value_being_returned): Update. Use
1909 deprecated_grub_regcache_for_registers to extract the register
1910 buffer address.
1911 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1912 ``struct regcache''.
1913 * Makefile.in (values.o): Add dependency on $(regcache_h).
1914
1915 * inferior.h (run_stack_dummy): Change type of second parameter to
1916 a ``struct regcache''.
1917 * valops.c (hand_function_call): Change type of retbuf to ``struct
1918 regcache''. Allocate using regcache_xmalloc, clean using
1919 make_cleanup_regcache_xfree.
1920 * infcmd.c (run_stack_dummy): Update. Use
1921 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1922
1923 * regcache.c (do_regcache_xfree): New function.
1924 (make_cleanup_regcache_xfree): New function.
1925 * regcache.h (make_cleanup_regcache_xfree): Declare.
1926
e64d9b3d
MH
19272002-07-03 Martin M. Hunt <hunt@redhat.com>
1928
4dd79c29
MH
1929 * event-top.c (command_line_handler): Don't read past
1930 beginning of buffer.
e64d9b3d 1931
4dd79c29
MH
19322002-07-03 Martin M. Hunt <hunt@redhat.com>
1933
e64d9b3d
MH
1934 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1935 struct frame_id.
1936 (varobj_create): Store frame_id for root.
1937 (varobj_gen_name): Use xasprintf.
1938 (varobj_update): Save and restore frame using get_frame_id() and
1939 frame_find_by_id().
1940 (create_child): Use xasprintf.
1941 (new_root_variable): Initialize frame_id.
1942 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1943 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1944 to prevent memory leak.
1945
26e6c56a
AC
19462002-07-03 Andrew Cagney <ac131313@redhat.com>
1947
1948 * valops.c (hand_function_call): Move declaration of retbuf to
1949 start of function, allocate using malloc, add a cleanup but before
1950 the inf_status cleanup, cleanup the buffer. Rename local variable
1951 old_chain to inf_status_cleanup.
1952
f436dd25
MH
19532002-07-03 Martin M. Hunt <hunt@redhat.com>
1954
1955 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1956
1957 * cli/cli-decode.c (cmd_func_p): New function.
1958 (cmd_func): New function.
1959
1960 * command.h: Add cmd_func() and cmd_func_p().
1961
4cfe2084
GS
19622002-07-03 Grace Sainsbury <graces@redhat.com>
1963
1964 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1965 (REGISTER_SIZE): Remove.
1966 (MAX_REGISTER_RAW_SIZE): Remove.
1967 (REGISTER_VIRTUAL_TYPE): Remove.
1968 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1969 (REGISTER_NAME): Remove.
1970 (USE_GENERIC_DUMMY_FRAMES): Remove.
1971 (CALL_DUMMY): Remove.
1972 (CALL_DUMMY_START_OFFSET): Remove.
1973 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1974 (CALL_DUMMY_LOCATION): Remove.
1975 (FIX_CALL_DUMMY): Remove.
1976 (CALL_DUMMY_ADDRESS): Remove.
1977 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1978 (SAVE_DUMMY_FRAME_TOS): Remove.
1979 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1980 (mcore_register_virtual_type): New function.
1981 (mcore_register_byte): New function.
1982 (mcore_register_size): New function.
1983 (mcore_register_name): New function.
1984 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1985 macros removed from tm-mcore.h.
1986 (mcore_dump_tdep): Add.
1987 (_initialize_mcore_tdep): Add gdbarch_register call.
1988
4fd667e9
MK
19892002-07-03 Mark Kettenis <kettenis@gnu.org>
1990
1991 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1992 frameless_look_for_prologue, such that we actually call this
1993 function.
1994
42f99ac2
JB
19952002-07-02 Joel Brobecker <brobecker@gnat.com>
1996
1997 * frame.h (frame_address_in_block): New function.
1998
1999 * blockframe.c (frame_address_in_block): New function extracted
2000 from get_frame_block().
2001 (get_frame_block): Use frame_address_in_block().
2002 (block_innermost_frame): Use frame_address_in_block() to match
2003 the frame pc address against the block boundaries rather than
2004 the frame pc directly. This prevents a failure when a frame pc
2005 is actually a return-address pointing immediately after the end
2006 of the given block.
2007
103a1597 20082002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2009
2010 * MAINTAINERS: Add self under write after approval.
2011
20122002-07-02 Grace Sainsbury <graces@redhat.com>
2013
103a1597
GS
2014 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2015 used in architecture vector. The default is
2016 m68k_local_breakpoint_from_pc.
2017 (m68k_local_breakpoint_from_pc): Add.
2018 (enum): Add register numbers from tm-m68k.h.
2019 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2020 vector.
2021 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2022 GDB_MULTI_ARCH_PARTIAL.
2023 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2024 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2025 m68k-tdep.c.
2026 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2027 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2028 to enum in m68k-tdep.c
2029
7a5a0534
JB
20302002-07-02 Joel Brobecker <brobecker@gnat.com>
2031
2032 * solib-osf.c (open_map): Compute the list of shared libraries
2033 loaded by the inferior, rather than the list of libraries loaded
2034 by GDB itself. Otherwise, GDB ends up reading the symbols from
2035 the wrong shared libraries...
2036
6f558d74
MK
20372002-07-02 Mark Kettenis <kettenis@gnu.org>
2038
b7d15bf7
MK
2039 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2040 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2041 macros.
2042 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2043 Remove functions.
2044 (FRAMELESS_SIGNAL): Remove function.
2045 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2046 i386_linux_saved_pc_after_call): Removed.
2047 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2048 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2049 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2050
6bff26de
MK
2051 * i386-tdep.c (i386_frameless_signal_p): New function.
2052 (i386_frame_chain): Deal with frameless signals.
2053 (i386_sigtramp_saved_sp): New function.
2054 (i386_frame_saved_pc): Deal with frameless signals.
2055 (i386_saved_pc_after_call): Make sure the correct value is
2056 returned just after entry into a sigtramp.
2057 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2058 i386fbsd4_sc_sp_offset): New variables.
2059 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2060 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2061 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2062 similiar to what we already did for sc_pc_offset.
2063 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2064 tdep->sc_sp_offset.
2065
6f558d74
MK
2066 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2067
145564b7
ML
20682002-07-02 Michal Ludvig <mludvig@suse.cz>
2069
2070 * config/i386/tm-x86-64linux.h: New.
2071 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2072 definitions.
2073 * config/i386/nm-x86-64.h: Rename to ...
2074 * config/i386/nm-x86-64linux.h: ... this one.
2075 * config/i386/x86-64linux.mh: Reflect the above change.
2076
3a1e71e3
MK
20772002-07-01 Mark Kettenis <kettenis@gnu.org>
2078
21d0e8a4
MK
2079 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2080 with sigcontext_addr. Add sc_sp_offset.
2081 (i386bsd_sigtramp_saved_pc): Remove prototype.
2082 (i386bsd_sicontext_addr): Add prototype.
2083 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2084 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2085 (i386_svr4_sigtramp_saved_pc): Removed.
2086 (i386_svr4_sigcontext_addr): New function.
2087 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2088 Initialize tdep->sigcontext_addr instead. Initialize
2089 tdep->sc_pc_offset and tdep->sc_sp_offset.
2090 (i386_gdbarch_init): Likewise.
2091 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2092 any more.
2093 (i386bsd_sigtramp_saved_pc): Remove function.
2094 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2095 Initialize tdep->sigcontext_addr instead. Initialize
2096 tdep->sc_pc_offset.
2097 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2098 of tdep->sigtramp_saved_pc.
2099 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2100 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2101 instead.
2102
3a1e71e3
MK
2103 * i386-tdep.c (i386_frameless_function_invocation,
2104 i386_frame_num_args, i386_frame_init_saved_regs,
2105 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2106 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2107 i386_extract_return_value, i386_store_return_value,
2108 i386_extract_struct_value_address, i386_register_virtual_type,
2109 i386_register_convertible, i386_register_convert_to_virtual,
2110 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2111 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2112 static.
2113
52e9098c
MK
21142002-07-01 Mark Kettenis <kettenis@gnu.org>
2115
77b13a25
MK
2116 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2117
52e9098c
MK
2118 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2119 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2120 this macro. Include "value.h".
2121
1b372fff
AS
21222002-06-30 Aidan Skinner <aidan@velvet.net>
2123
2124 * ada-exp.tab.c: remove as it's a generated file
2125 * ada-lex.c: remove as it's a generated file
2126
9c5045b5
MK
21272002-06-30 Mark Kettenis <kettenis@gnu.org>
2128
4a93c5bb
MK
2129 * config/i386/tm-i386.h (struct frame_info, struct
2130 frame_saved_regs, struct value, struct type): Remove forward
2131 declarations.
2132
322d4fe0
MK
2133 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2134 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2135 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2136 (FILL_FPXREGSET): Define.
2137
fdd8263d
MK
2138 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2139
482e577b
MK
2140 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2141 i[3456]86-*-netbsd* case.
2142 * config/i386/tm-obsd.h: Removed.
2143 * config/i386/obsd.mt: Removed.
2144 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2145 core-aout.o.
2146 (MH_CFLAGS): Add -DYYDEBUG=0.
2147
6916549a
MK
2148 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2149 i386nbsd_sc_pc_offset on OpenBSD too.
2150
9c5045b5
MK
2151 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2152 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2153 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2154 define.
2155 * i386bsd-tdep.c: Include "arch-utils.h".
2156 (i386bsd_aout_in_solib_call_trampoline): New function.
2157 (i386bsd_init_abi): Set in_solib_call_trampoline to
2158 i386bsd_aout_in_solib_call_trampoline.
2159 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2160 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2161
aa84d1bb
AC
21622002-06-28 Andrew Cagney <ac131313@redhat.com>
2163
2164 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2165 (struct obstack, struct bcache): Add opaque declarations.
2166 * Makefile.in (macrotab_h): Update
2167
b4d83933
AC
21682002-06-28 Andrew Cagney <ac131313@redhat.com>
2169
2170 * blockframe.c (generic_find_dummy_frame): Change return type to
2171 ``struct regcache''.
2172 (struct dummy_frame): Replace field ``registers'' with regcache, a
2173 struct regcache object.
2174 (generic_find_dummy_frame): Update.
2175 (generic_push_dummy_frame): Update. Use regcache_xfree,
2176 regcache_xmalloc and regcache_cpy.
2177 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2178 regcache_xfree.
2179 (deprecated_generic_find_dummy_frame): Update.
2180 (generic_read_register_dummy): Update. Use
2181 regcache_read_as_address.
2182 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2183 (generic_get_saved_register): Update. Use regcache_read.
2184
08c0b5bc
AC
21852002-06-28 Andrew Cagney <ac131313@redhat.com>
2186
2187 * Makefile.in (objfiles_h): Add $(bcache_h).
2188 * objfiles.h: Include "bcache.h".
2189
2190 * Makefile.in (symtab_h): Remove $(bcache_h).
2191 * symtab.h: Do not include "bcache.h".
2192
1f89801a
AC
21932002-06-28 Andrew Cagney <ac131313@redhat.com>
2194
2195 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2196 generic_func_frame_chain_valid.
2197
b9644b58
DB
21982002-06-28 David O'Brien <obrien@FreeBSD.org>
2199
2200 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2201 * config/i386/tm-fbsd.h: Likewise.
2202
dd486634
AC
22032002-06-28 Andrew Cagney <ac131313@redhat.com>
2204
2205 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2206 generic_unwind_get_saved_register.
2207
0b434a00
AC
22082002-06-27 Andrew Cagney <ac131313@redhat.com>
2209
2210 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2211 * regcache.c (supply_register): Add missing argument to
2212 register_buffer call.
2213
f30e5a77
AC
22142002-06-27 Andrew Cagney <ac131313@redhat.com>
2215
2216 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2217 Solaris /bin/grep does not not like it. From Peter Schauer.
2218
9f064c95
TT
22192002-06-26 Tom Tromey <tromey@redhat.com>
2220
2221 * command.h (add_setshow_cmd): Declare.
2222 (add_setshow_cmd_full): Declare.
2223 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2224 returns void. Use add_setshow_cmd_full.
2225 (add_setshow_cmd_full): New function.
2226 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2227 (add_setshow_boolean_cmd): Likewise.
2228
099c7589
JT
22292002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2230
2231 * config/vax/tm-vax.h: Protect from multiple inclusion.
2232 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2233 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2234 * config/vax/tm-vaxbsd.h: ...here. New file.
2235 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2236
1d049c5e
JT
22372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2238
2239 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2240 (BELIEVE_PCC_PROMOTION): Remove.
2241 (AP_REGNUM): Move to...
2242 * config/vax/nm-vax.h: ...here.
2243 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2244 (vax_breakpoint_from_pc): New function.
2245 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2246 and gdbarch_believe_pcc_promotion.
2247
4791e091
JT
22482002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2249
2250 * Makefile.in (vax_tdep_h): Define.
2251 (vax-tdep.o): Use $(vax_tdep_h).
2252 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2253 (vax_dump_tdep): New function.
2254 (_initialize_vax_tdep): Register vax_dump_tdep.
2255 * vax-tdep.h: Include osabi.h.
2256 (struct gdbarch_tdep): New.
2257
da130f98
AC
22582002-06-26 Andrew Cagney <cagney@redhat.com>
2259
2260 * frame.h (deprecated_generic_find_dummy_frame): Rename
2261 generic_find_dummy_frame.
2262 * blockframe.c (generic_find_dummy_frame): Make static.
2263 (deprecated_generic_find_dummy_frame): New function.
2264 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2265 generic_find_dummy_frame with deprecated_find_dummy_frame.
2266 (sh64_nofp_frame_init_saved_regs): Ditto.
2267 (sh_fp_frame_init_saved_regs): Ditto.
2268 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2269 (s390_frame_chain): Ditto.
2270 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2271
6300c360
GS
22722002-06-26 Grace Sainsbury <graces@redhat.com>
2273
2274 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2275 gdbarch vector are at the top.
2276 (NUM_REGS): Remove.
2277 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2278 (FRAME_ARGS_ADDRESS): Remove.
2279 (FRAME_LOCALS_ADDRESS): Remove.
2280 (FRAME_NUM_ARGS): Remove.
2281 (FRAME_ARGS_SKIP): Remove.
2282 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2283 (m68k_gdbarch_init): Add gdbarch initializations for macros
2284 undefined in tm-m68k.h
2285
1c617db8
GS
22862002-06-26 Grace Sainsbury <graces@redhat.com>
2287
2288 * monitor.h: Add the function regname to monitor_ops
2289 structure. This way NUM_REGS does not have to be a constant.
2290 * monitor.c (monitor_fetch_register): Added support for regname
2291 function. The function is called if the array regnames is NULL.
2292 (monitor_store_register): Same.
da130f98
AC
2293 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2294 regnames array.
1c617db8
GS
2295 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2296 cpu32bug_cmds.regname to point to new function.
2297 * abug-rom.c (abug_regname): Same as above.
2298 (init_abug_cmds): Same.
2299 * dbug-rom.c (dbug_regname): Same as above.
2300 (init_dbug_cmds): Same.
2301 * remote-est.c (est_regname): Same.
2302 (init_est_cmds): Same.
2303 * rom68k-rom.c (rom68k_regname): Same.
2304 (init_rom68k_cmds): Same.
2305
ea9365bb
TT
23062002-06-25 Tom Tromey <tromey@redhat.com>
2307
2308 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2309
72cec141
AC
23102002-06-25 Andrew Cagney <cagney@redhat.com>
2311
2312 * infrun.c (stop_registers): Change variable's type to ``struct
2313 regcache'''.
2314 (xmalloc_inferior_status): Delete function.
2315 (free_inferior_status): Delete function.
2316 (normal_stop): Use regcache_cpy.
2317 (struct inferior_status): Change type of fields ``stop_registers''
2318 and ``registers'' to ``struct regcache''.
2319 (write_inferior_status_register): Use regcache_write.
2320 (save_inferior_status): Instead of calling
2321 xmalloc_inferior_status, allocate the inf_status buffer directly.
2322 Use regcache_dup_no_passthrough and regcache_dup to save the
2323 buffers.
2324 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2325 Replace the stop_registers regcache instead of overriding it. Use
2326 regcache_xfree. Instead of calling free_inferior_status, xfree
2327 the buffer directly.
2328 (discard_inferior_status): Use regcache_xfree. Instead of calling
2329 free_inferior_status, xfree the buffer directly.
2330 (build_infrun): Use regcache_xmalloc.
2331 (_initialize_infrun): Delete redundant call to build_infrun.
2332
2333 * Makefile.in (infcmd.o): Add $(regcache_h).
2334
2335 * infcmd.c: Include "regcache.h".
2336 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2337 obtain the address of `stop_registers' register buffer.
2338 (print_return_value): Ditto.
2339
2340 * inferior.h (struct regcache): Add opaque declaration.
2341 (stop_registers): Change variable's declared type to ``struct
2342 regcache''.
2343
defc6f8c
TT
23442002-06-24 Tom Tromey <tromey@redhat.com>
2345
c0e624e7
TT
2346 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2347 * target.c (initialize_targets): Fixed typo in
2348 trust-readonly-sections `show' documentation.
2349
defc6f8c
TT
2350 * main.c: Marked all strings with _().
2351
2b236d82
DH
23522002-06-24 Don Howard <dhoward@redhat.com>
2353
2354 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2355 that means max CORE_ADDR+1.
2356 (lookup_mem_region): Ditto.
2357 (mem_info_command): Ditto.
2358
942dc0e9
GS
23592002-06-24 Grace Sainsbury <graces@redhat.com>
2360
2361 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2362 (REGISTER_BYTES_OK): Remove.
2363 (REGISTER_BYTES): Remove.
2364 (STORE_STRUCT_RETURN): Remove.
2365 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2366 (STORE_RETURN_VALUE): Remove.
2367 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2368 (FRAME_CHAIN): Remove.
2369 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2370 (FRAME_SAVED_PC): Remove.
2371 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2372 (m68k_store_struct_return): Add.
2373 (m68k_deprecated_extract_return_value): Add.
2374 (m68k_deprecated_extract_struct_value_address): Add.
2375 (m68k_store_return_value): Add.
2376 (m68k_frame_chain): Add.
2377 (m68k_frameless_function_invocation): Add.
2378 (m68k_frame_saved_pc): Add.
2379 (m68k_gdbarch_init): added set_gdbarch calls for new
2380 functions and deleted macros.
2381
03c30d4d
TT
23822002-06-23 Tom Tromey <tromey@redhat.com>
2383
2384 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2385 (ALLDEPFILES): Likewise.
2386 (udiheaders): Removed.
2387 (udip2soc.o): Likewise.
2388 (udi2go32.o): Likewise.
2389 (udr.o): Likewise.
2390 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2391
37e71372
AC
23922002-06-22 Andrew Cagney <ac131313@redhat.com>
2393
06a6ac57
AC
2394 * infrun.c (_initialize_infrun): Delete unnecessary call to
2395 build_infrun.
2396
37e71372
AC
2397 * regcache.h: Update comments describing the regcache_cpy family
2398 of functions.
2399 (regcache_save, regcache_restore): Delete declaration.
2400 (regcache_save_no_passthrough): Delete declaration.
2401 (regcache_restore_no_passthrough): Delete declaration.
2402 * regcache.c (regcache_save): Delete function.
2403 (regcache_save_no_passthrough): Delete function.
2404 (regcache_restore): Delete function.
2405 (regcache_restore_no_passthrough): Delete function.
2406
78f6d055
AC
24072002-06-21 Andrew Cagney <ac131313@redhat.com>
2408
2409 * config/m68k/tm-m68k.h: Fix typo.
2410 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2411 (m68k_frame_init_saved_regs): Declare.
2412
78b119cb
JB
24132002-06-21 Jim Blandy <jimb@redhat.com>
2414
2415 Remove some vestiges of Harris 88k support.
2416 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2417 register numbering quirk.
2418 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2419 odd symbols occurring in Harris 88k ELF targets.
2420
0fbb3da7
TT
24212002-06-21 Tom Tromey <tromey@redhat.com>
2422
2423 * gdb_locale.h: New file.
2424 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2425 (defs_h): Added gdb_locale.h.
2426 * configure, config.in: Rebuilt.
2427 * configure.in (PACKAGE): Define.
2428 * defs.h: Include gdb_locale.h.
2429 * main.c (captured_main): Call setlocale, bindtextdomain,
2430 textdomain.
2431
456f8b9d
DB
24322002-06-21 Dave Brolley <brolley@redhat.com>
2433
2434 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2435 * config/frv/frv.mt: New file.
2436 * config/frv/tm-frv.h: New file.
2437 * configure.tgt: Support frv-*-*.
2438 * Makefile.in (frv-tdep.o): New target.
2439 * frv-tdep.c: New file.
2440 * NEWS: Mention frv.
2441
cdd463f9
DB
24422002-06-21 Dave Brolley <brolley@redhat.com>
2443
2444 * MAINTAINERS: Add self to "Write After Approval" list.
2445
5d3ed2e3
GS
24462002-06-21 Grace Sainsbury <graces@redhat.com>
2447
2448 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2449 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2450 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2451 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2452 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2453
2454 * m68k-tdep.c: Include arch-utils.h
2455 (m68k_register_raw_size): Add.
2456 (m68k_register_virtual_size): Add.
2457 (m68k_register_virtual_type): Add.
2458 (m68k_register_name): Add.
2459 (m68k_stack_align): Add.
2460 (m68k_register_byte): Add.
2461 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2462 tm-m68k.h.
2463
7f8e7424
GS
24642002-06-21 Grace Sainsbury <graces@redhat.com>
2465
a2c6a6d5 2466 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2467 m68k_find_saved_regs.
2468 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2469 references to it with frame->saved_regs.
7f8e7424
GS
2470 (m68k_gdbarch_init): Added function calls to initialize the
2471 gdbarch structure.
a2c6a6d5
GS
2472 (m68k_fix_call_dummy): Add.
2473 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2474 (CALL_DUMMY): Remove.
2475 (CALL_DUMMY_LENGTH): Remove.
2476 (CALL_DUMMY_START_OFFSET): Remove.
2477 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2478 (FIX_CALL_DUMMY): Remove.
2479 (PUSH_DUMMY_FRAME): Remove.
2480 (POP_FRAME): Remove.
7f8e7424 2481
f461f5cf
PM
24822002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2483
2484 * parse.c (parse_fprintf): New function used to avoid calls to
2485 fprintf in bison parser generated debug code.
2486 * parser-defs.h: Declaration of new parse_fprintf function.
2487 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2488 Set YYDEBUG to 1 by default.
2489 Set YYFPRINTF as parse_fprintf.
2490
7f0c12ed
ML
24912002-06-21 Michal Ludvig <mludvig@suse.cz>
2492
2493 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2494 encoding anymore.
2495 (pointer_encoding, enum ptr_encoding): New.
2496 (execute_cfa_program): Take care about pointer encoding.
2497 (dwarf2_build_frame_info): Only call parse_frame_info for
2498 .debug_frame and .eh_frame.
2499 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2500 fixed augmentation handling, added relative addressing,
2501 ignore duplicate FDEs. Added comments.
19d833a2 2502 * dwarf2cfi.c: Reindented.
7f0c12ed 2503
87c4a039
EZ
25042002-06-20 Elena Zannoni <ezannoni@redhat.com>
2505
2506 * event-top.c (command_handler): Don't use space_at_cmd_start
2507 unless there is sbrk() on the host. Assign time and space data
2508 to union fields of the appropriate length.
2509
1cf877ad
ML
25102002-06-20 Michal Ludvig <mludvig@suse.cz>
2511
2512 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2513 x86_64_register_name. Return type changed to 'const char *'.
2514 (x86_64_register_name2nr): Rename to x86_64_register_number.
2515 (x86_64_gdbarch_init): Update to reflect the change.
2516 * x86-64-tdep.h: Ditto.
2517 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2518 (supply_fpregset): Ditto.
2519
3fadccb3
AC
25202002-06-19 Andrew Cagney <cagney@redhat.com>
2521
2522 * regcache.h: Update copyright.
2523 (struct regcache, struct gdbarch): Add opaque declarations.
2524 (current_regcache): Declare global variable.
2525 (regcache_read, regcache_write): Add gdbarch parameter.
2526 (regcache_save, regcache_save_no_passthrough)
2527 (regcache_restore, regcache_restore_no_passthrough)
2528 (regcache_dup, regcache_dup_no_passthrough)
2529 (regcache_cpy, regcache_cpy_no_passthrough)
2530 (deprecated_grub_regcache_for_registers)
2531 (deprecated_grub_regcache_for_register_valid)
2532 (regcache_valid_p): Add function declarations.
2533
2534 * regcache.c: Update copyright.
2535 (regcache_descr_handle): New global variable.
2536 (struct regcache_descr): Define.
2537 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2538 (regcache_descr, xfree_regcache_descr): New functions.
2539 (struct regcache): Define.
2540 (regcache_xmalloc, regcache_xfree): New functions.
2541 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2542 (regcache_dup, regcache_dup_no_passthrough): New functions.
2543 (regcache_valid_p, regcache_read_as_address): New functions.
2544 (deprecated_grub_regcache_for_registers): New function.
2545 (deprecated_grub_regcache_for_register_valid): New function.
2546 (current_regcache): New global variable.
2547 (register_buffer): Add regcache parameter. Update calls.
2548 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2549 (read_register_gen, write_register_gen): Update register_buffer
2550 call. Test for legacy_p instead of gdbarch_register_read_p or
2551 gdbarch_register_write_p.
2552 (regcache_collect): Update register_buffer call.
2553 (build_regcache): Rewrite. Use deprecated grub functions.
2554 (regcache_save, regcache_save_no_passthrough): New functions.
2555 (regcache_restore, regcache_restore_no_passthrough): New
2556 functions.
2557 (_initialize_regcache): Create the regcache_data_handle. Swap
2558 current_regcache global variable.
2559
2560 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2561 parameter to regcache_read and regcache_write calls.
2562 (sh4_register_read): Ditto.
2563 (sh64_pseudo_register_read): Ditto.
2564 (sh64_register_read): Ditto.
2565 (sh_pseudo_register_write): Ditto.
2566 (sh4_register_write): Ditto.
2567 (sh64_pseudo_register_write): Ditto.
2568 (sh64_register_write): Ditto.
2569
2570 * defs.h (XCALLOC): Define.
2571
152d9db6
GS
25722002-06-19 Grace Sainsbury <graces@redhat.com>
2573
2574 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2575 * m68k-tdep.c (m68k_gdbarch_init): Added.
2576 (m68k_dump_tdep): Added.
2577
170911c7
DJ
25782002-06-19 Daniel Jacobowitz <drow@mvista.com>
2579
2580 * ada-lang.c (fill_in_ada_prototype): Update comment.
2581
2e4ebe70
DJ
25822002-06-19 Daniel Jacobowitz <drow@mvista.com>
2583
2584 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2585 MIPS_ABI_LAST.
2586 (mips_abi_string, mips_abi_strings): New.
2587 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2588 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2589 tdep->mips_abi_string. Honor mips_abi_string. Default to
2590 O32 if no ABI is found.
2591 (mips_dump_tdep): Use mips_abi_strings.
2592 (mips_abi_update): New function.
2593 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2594 ``set mips abi'' and ``show mips abi''. Check the size of
2595 mips_abi_strings.
2596
16775908
AC
25972002-06-19 Andrew Cagney <cagney@redhat.com>
2598
2599 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2600 constant.
2601
5051bfa4 26022002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2603
5051bfa4
JB
2604 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2605 current frame using only the first stack size adjustment. All
2606 subsequent size adjustments are not considered to be part of
2607 the "static" part of the current frame.
2608 Compute the address of the saved registers relative to the
2609 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2610 in use in this frame.
2611
56468235
DH
26122002-06-18 Don Howard <dhoward@redhat.com>
2613
2614 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2615 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2616 suggesting this solution.
2617
0b624158
AC
26182002-06-18 Andrew Cagney <ac131313@redhat.com>
2619
2620 * config/romp/xm-rtbsd.h: Delete file.
2621 * config/romp/rtbsd.mh: Delete file.
2622
221ea385
KS
26232002-06-18 Keith Seitz <keiths@redhat.com>
2624
2625 * breakpoint.c (condition_command): Post breakpoint_modify
2626 when a condition is added to an existing breakpoint.
2627 (commands_command): Likewise for commands.
2628 (set_ignore_count): Likewise for ignore counts.
2629 If no tty, do not simply return, still need to send event
2630 notification.
2631 (ignore_command): Only print a newline if the command came
2632 from a tty.
2633 Don't call breakpoints_changed, since this is now properly
2634 handled by set_ignore_count.
2635
5402eed1
AC
26362002-06-18 Andrew Cagney <cagney@redhat.com>
2637
2638 * MAINTAINERS: Note that cris-elf target can be compiled with
2639 -Werror.
2640 * cris-tdep.c (cris_register_name): Make return type constant.
2641 (cris_breakpoint_from_pc): Ditto.
2642
cc22880b
ML
26432002-06-18 Michal Ludvig <mludvig@suse.cz>
2644
2645 * frame.h (struct frame_info): Change type of context to
2646 'struct context'.
2647
fa88f677
AC
26482002-06-17 Andrew Cagney <cagney@redhat.com>
2649
2650 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2651 pointer.
2652 * gdbarch.h, gdbarch.c: Regenerate.
2653 * config/mips/tm-mips.h (mips_register_name): Update.
2654 * i386-tdep.h (i386_register_name): Update.
2655 * mips-tdep.c (mips_register_name): Update
2656 * alpha-tdep.c (alpha_register_name): Update.
2657 * arch-utils.c (legacy_register_name): Update.
2658 * arch-utils.h (legacy_register_name): Update.
2659 * avr-tdep.c (avr_register_name): Update.
2660 * ia64-tdep.c (ia64_register_name): Update.
2661 * i386-tdep.c (i386_register_name): Update.
2662 * sparc-tdep.c (sparc32_register_name): Update.
2663 (sparc64_register_name): Update.
2664 (sparclite_register_name): Update.
2665 (sparclet_register_name): Update.
2666 * sh-tdep.c (sh_generic_register_name): Update.
2667 (sh_sh_register_name): Update.
2668 (sh_sh3_register_name): Update.
2669 (sh_sh3e_register_name): Update.
2670 (sh_sh_dsp_register_name): Update.
2671 (sh_sh3_dsp_register_name): Update.
2672 (sh_sh4_register_name): Update.
2673 (sh_sh64_register_name): Update.
2674 * s390-tdep.c (s390_register_name): Update.
2675 * rs6000-tdep.c (rs6000_register_name): Update.
2676 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2677 (ns32k_register_name_32382): Update.
2678 * d10v-tdep.c (d10v_ts2_register_name): Update.
2679 (d10v_ts3_register_name): Update.
2680 * xstormy16-tdep.c (xstormy16_register_name): Update.
2681 * vax-tdep.c (vax_register_name): Update.
2682 * v850-tdep.c (v850_register_name): Update.
2683 * m68hc11-tdep.c (m68hc11_register_name): Update.
2684 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2685 (am33_register_name): Update.
2686
ea1e7ef6
GS
26872002-06-17 Grace Sainsbury <graces@redhat.com>
2688
2689 * m68k-tdep.c: Reindented.
2690
9b02dd1b
AC
26912002-06-17 Andrew Cagney <ac131313@redhat.com>
2692
2693 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2694 list of predefined types.
2695
8758dec1
MK
26962002-06-16 Mark Kettenis <kettenis@gnu.org>
2697
b6197528
MK
2698 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2699 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2700 REGISTER_CONVERT_TO_RAW): Remove defines.
2701 (i386_register_virtual_type, i386_register_convertible,
2702 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2703 Remove prototypes.
2704 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2705 macros mentioned above.
2706
82b47e62
MK
2707 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2708 (i386lynx_saved_pc_after_call): Remove prototype.
2709 * i386ly-tdep.c: Include "i386-tdep.h".
2710 (i386lynx_saved_pc_after_call): Make static. Use
2711 read_memory_nobpt instead of read_memory. Use
2712 read_memory_unsigned_integer instead of read_memory_integer.
2713 (i386lynx_init_abi): New function.
2714 (i386lynx_coff_osabi_sniffer): New function.
2715 (_initialize_i386bsd_tdep): New function.
2716
8758dec1
MK
2717 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2718 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2719 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2720 (i386_fix_call_dummy): Remove prototype.
2721 * i386-tdep.c (i386_call_dummy_words): New variable.
2722 (i386_gdbarch_init): Adjust for removal of the
2723 macros mentioned above.
2724
e9e68a56
AC
27252002-06-15 Andrew Cagney <ac131313@redhat.com>
2726
2727 * command.h (add_setshow_auto_boolean_cmd): Replace
2728 add_set_auto_boolean_cmd.
2729 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2730 add_set_auto_boolean_cmd.
2731 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2732 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2733 mask-address'' command.
2734 (show_mask_address): Add cmd parameter.
2735 * remote.c (add_packet_config_cmd): Update. Change type of
2736 set_func and show_func to cmd_sfunc_ftype.
2737 (_initialize_remote): Update `set remote Z-packet'
2738 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2739 (show_remote_protocol_e_packet_cmd): Ditto.
2740 (show_remote_protocol_E_packet_cmd): Ditto.
2741 (show_remote_protocol_P_packet_cmd): Ditto.
2742 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2743 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2744 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2745 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2746 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2747 (show_remote_protocol_Z_packet_cmd): Ditto.
2748 (show_remote_protocol_binary_download_cmd): Ditto.
2749 (show_remote_cmd): Pass NULL to all of above.
2750
fc08ec52
MK
27512002-06-15 Mark Kettenis <kettenis@gnu.org>
2752
2753 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2754 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2755 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2756 POP_FRAME): Remove defines.
2757 (i386_push_arguments, i386_store_struct_return,
2758 i386_extract_return_value, i386_store_return_value,
2759 i386_extract_struct_value_address, i386_push_dummy_frame,
2760 i386_pop_frame): Renove prototypes.
2761 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2762 macros mentioned above.
2763
e707bbc2
AC
27642002-06-15 Andrew Cagney <ac131313@redhat.com>
2765
2766 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2767 add_set_boolean_cmd.
2768 (add_setshow_cmd): New function.
2769 * command.h (add_setshow_boolean_cmd): Replace
2770 add_set_boolean_cmd.
2771 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2772 and ``set rdiromatzero''.
2773 * maint.c (_initialize_maint_cmds): Update commented out code.
2774 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2775 * target.c (initialize_targets): Update `set
2776 trust-readonly-sections'.
2777 * remote.c (_initialize_remote): Update `set remotebreak'.
2778
42fdc8df
MK
27792002-06-15 Mark Kettenis <kettenis@gnu.org>
2780
93924b6b
MK
2781 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2782 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2783 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2784 fit into multi-arch framework.
2785 (i386_breakpoint_from_pc): New function.
2786 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2787 above.
2788
42fdc8df
MK
2789 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2790 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2791 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2792 (i386_frameless_function_invocation, i386_frame_num_args,
2793 i386_frame_init_saved_regs): Remove prototypes.
2794 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2795 macros mentioned above.
2796
9773a94b
AC
27972002-06-15 Andrew Cagney <ac131313@redhat.com>
2798
2799 * cli/cli-decode.c (set_cmd_cfunc): Update.
2800 (set_cmd_sfunc): Update.
2801 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2802 (set_cmd_sfunc, set_cmd_cfunc): Update.
2803 * cli/cli-decode.h: Update.
2804
6e157172
MK
28052002-06-15 Mark Kettenis <kettenis@gnu.org>
2806
2807 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2808 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2809
7f19b9a2
AC
28102002-06-15 Andrew Cagney <ac131313@redhat.com>
2811
2812 * defs.h (auto_boolean): Declare enum.
2813 * command.h (cmd_auto_boolean): Delete enum.
2814 * mips-tdep.c (mask_address_var): Update.
2815 (mips_mask_address_p): Update.
2816 (show_mask_address): Update.
2817 * remote.c (struct packet_config): Update.
2818 (update_packet_config): Update.
2819 (show_packet_config_cmd): Update.
2820 (packet_ok): Update.
2821 (add_packet_config_cmd): Update.
2822 (_initialize_remote):
2823 * command.h: Update.
2824 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2825 (do_setshow_command): Update.
2826 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2827 * cli/cli-decode.h: Update.
2828
1cf88de5
MK
28292002-06-15 Mark Kettenis <kettenis@gnu.org>
2830
22ba8cf2
MK
2831 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2832 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2833 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2834 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2835 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2836 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2837
762c5349
MK
2838 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2839 list of DJGPP COFF targets.
2840
091198bb
MK
2841 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2842 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2843 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2844 (FP0_REGNUM): Remove define.
2845 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2846 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2847 (i386_register_virtual_size): Remove protoype.
2848 * i386-tdep.c (i386_register_virtual_size): Removed.
2849 (i386_extract_return_value, i386_store_return_value): Use
2850 FP0_REGNUM instead of NUM_FREGS to determine whether the
2851 floating-point registers are available.
2852 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2853 Adjust for removal of macros mentioned above.
2854
28552002-06-15 Mark Kettenis <kettenis@gnu.org>
2856
fcc9bf01
MK
2857 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2858 comments.
2859 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2860 Remove prototypes.
2861 (supply_gregset, fill_gregset): Remove use of register keyword and
2862 remove declaration for regmap. Use I386_NUM_GREGS instead of
2863 NUM_REGS and NUM_FREGS.
2864 (FPREGSET_FSAVE_OFFSET): Remove.
2865 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2866 NUM_FREGS to determine whether the floating-point registers are
2867 available.
2868
65e78234
MK
2869 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2870 gnu_store_registers): Replace usage of NUM_GREGS with
2871 I386_NUM_GREGS.
2872
98df6387
MK
2873 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2874 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2875 usage of NUM_GREGS with I386_NUM_GREGS.
2876
099a9414
MK
2877 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2878
57976e88
MK
2879 * i386bsd-nat.c: Include "i386-tdep.h".
2880 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2881 I386_NUM_GREGS.
2882
b335f4a6
MK
2883 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2884 and associated comment. They no longer make any sense, since we
2885 don't use this file anymore on Linux.
2886
1cf88de5
MK
2887 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2888 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2889 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2890 elements in these arrays.
2891 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2892 MAX_NUM_REGS.
2893
daa66587
MK
28942002-06-15 Mark Kettenis <kettenis@gnu.org>
2895
2896 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2897 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2898
26e9b323
AC
28992002-06-14 Andrew Cagney <cagney@redhat.com>
2900
2901 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2902 EXTRACT_RETURN_VALUE.
2903 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2904 EXTRACT_STRUCT_VALUE_ADDRESS.
2905 * gdbarch.h, gdbarch.c: Regenerate.
2906
2907 * values.c (value_being_returned): Handle
2908 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2909 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2910
2911 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2912 * arm-tdep.c (arm_gdbarch_init): Update.
2913 * avr-tdep.c (avr_gdbarch_init): Update.
2914 * cris-tdep.c (cris_gdbarch_init): Update.
2915 * d10v-tdep.c (d10v_gdbarch_init): Update.
2916 * ia64-tdep.c (ia64_gdbarch_init): Update.
2917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2918 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2919 * s390-tdep.c (s390_gdbarch_init): Update.
2920 * sh-tdep.c (sh_gdbarch_init): Update.
2921 * s390-tdep.c (s390_gdbarch_init): Update.
2922 * sparc-tdep.c (sparc_gdbarch_init): Update.
2923 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2924 * v850-tdep.c (v850_gdbarch_init): Update.
2925 * vax-tdep.c (vax_gdbarch_init): Update.
2926 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2928
2929 * config/arc/tm-arc.h: Update.
2930 * config/d30v/tm-d30v.h: Update.
2931 * config/fr30/tm-fr30.h: Update.
2932 * config/h8300/tm-h8300.h: Update.
2933 * config/h8500/tm-h8500.h: Update.
2934 * config/i386/tm-i386.h: Update.
2935 * config/i386/tm-ptx.h: Update.
2936 * config/i386/tm-symmetry.h: Update.
2937 * config/i960/tm-i960.h: Update.
2938 * config/m32r/tm-m32r.h: Update.
2939 * config/m68k/tm-delta68.h: Update.
2940 * config/m68k/tm-linux.h: Update.
2941 * config/m68k/tm-m68k.h: Update.
2942 * config/m88k/tm-m88k.h: Update.
2943 * config/mcore/tm-mcore.h: Update.
2944 * config/mips/tm-mips.h: Update.
2945 * config/mn10200/tm-mn10200.h: Update.
2946 * config/pa/tm-hppa.h: Update.
2947 * config/pa/tm-hppa64.h: Update.
2948 * config/sparc/tm-sp64.h: Update.
2949 * config/sparc/tm-sparc.h: Update.
2950 * config/sparc/tm-sparclet.h: Update.
2951 * config/z8k/tm-z8k.h: Update.
2952
5179e78f
AC
29532002-06-14 Andrew Cagney <cagney@redhat.com>
2954
2955 * Makefile.in (i386_linux_tdep_h): Define.
2956 (i386_tdep_h, i387_tdep_h): Define.
2957 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2958 $(i386_tdep_h) and $(i387_tdep_h).
2959 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2960
8201327c
MK
29612002-06-14 Mark Kettenis <kettenis@gnu.org>
2962
edf393ac
MK
2963 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2964 Already covered by the default.
2965
896fb97d
MK
2966 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2967 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2968 (i386_gdbarch_init): Initialize long_double_format and long_double
2969 bit.
2970
8201327c
MK
2971 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2972 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2973 Move these to ...
2974 * config/i386/i386sol2.mh: ... here.
2975 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2976 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2977 (SIGCONTEXT_PC_OFFSET): Remove define.
2978 (IN_SIGTRAMP): Remove define.
2979 * i386-sol2-tdep.c: New file.
2980
2981 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2982 * config/i386/tm-i386nw.h: Removed.
2983
2984 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2985 USE_STRUCT_CONVENTION): Remove defines.
2986 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2987 (get_longjmp_target): Remove prototype.
2988 (IN_SIGTRAMP): Remove define.
2989 (i386bsd_in_sigtramp): Remove prototype.
2990 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2991 function. Update comment accordingly
2992 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2993 (FRAME_SAVED_PC): Remove define.
2994 (i386bsd_frame_saved_pc): Remove prototype.
2995 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2996 GET_LONGJMP_TARGET): Remove defines.
2997 (get_longjmp_target): Remove prototype.
2998 (IN_SIGTRAMP): Remove define.
2999 (i386bsd_in_sigtramp): Remove prototype.
3000 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3001 function. Update comment accordingly
3002 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3003 (FRAME_SAVED_PC): Remove define.
3004 (i386bsd_frame_saved_pc): Remove prototype.
3005 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3006 Remove prototype.
3007 (USE_STRUCT_CONVENTION): Remove prototype.
3008 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3009 declaration.
3010 (_initialize_i386bsd_nat): Revise logic to determine some
3011 constants at compile time when compiling a native GDB. Warn if
3012 things don't match up with what we expect.
3013 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3014 Remove variables.
3015 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3016 to use date stored in `struct gdbarch_tdep'.
3017 (i386bsd_sigcontext_offset): Remove varaible.
3018 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3019 stored in `struct gdbarch_tdep'.
3020 (i386bsd_frame_saved_pc): Make static.
3021 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3022 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3023 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3024 i386fbsd4_sc_pc_offset): New variables.
3025 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3026 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3027 functions.
3028 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3029 functions.
3030 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3031 Modify the value of i386fbsd_sigtramp_start and
3032 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3033 i386fbsd_sigtramp_end.
3034 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3035 function.
3036
3037 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3038 define to i386-linux-tdep.h.
3039 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3040 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3041 defines.
3042 (i386_linux_register_name, i386_linux_register_byte,
3043 i386_linux_register_raw_size): Remove prototypes.
3044 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3045 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3046 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3047 TARGET_WRITE_PC): Remove defines.
3048 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3049 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3050 i386_linux_write_pc): Remove prototypes.
3051 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3052 (get_longjmp_target): Remove prototype.
3053 * i386-linux-tdep.h: New file.
3054 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3055 * i386-linux-tdep.c: Include "i386-tdep.h" and
3056 "i386-linux-tdep.h".
3057 (i386_linux_register_name, i386_linux_register_byte,
3058 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3059 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3060 Make static.
3061 (i386_linux_init_abi): New function.
3062 (_initialize_i386_linux_tdep): New function.
3063
3064 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3065 (i386_saved_pc_after_call): Remove prototype.
3066 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3067 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3068 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3069 (i386_register_name, i386_stab_reg_to_regnum,
3070 i386_dwarf_reg_to_regnum): Remove prototypes.
3071 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3072 SIZEOF_SSE_REGS): Remove defines.
3073 (REGISTER_BYTES): Remove define.
3074 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3075 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3076 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3077 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3078 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3079 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3080 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3081 (get_longjmp_target): Remove prototype.
3082 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3083 (sigtramp_saved_pc): Remove define.
3084 (i386v4_sigtramp_saved_pc): Remove prototype.
3085 * config/i386/tm-go32.h (FRAME_CHAIN,
3086 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3087 (i386go32_frame_saved_pc): Remove prototype.
3088 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3089 (get_longjmp_target): Remove prototype.
3090 * i386-tdep.h: Include "osabi.h".
3091 (enum i386_abi): Removed.
3092 (enum struct_return): New enum.
3093 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3094 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3095 sc_pc_offset members.
3096 (i386_gdbarch_register_os_abi): Remove prototype.
3097 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3098 I386_SSE_NUM_REGS): New defines.
3099 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3100 I386_SSE_SIZEOF_REGS): New defines.
3101 (i386_register_name, i386_register_byte, i386_register_raw_size):
3102 New prototypes.
3103 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3104 (i386bsd_sigtramp_saved_pc): New prototype.
3105 * i386-tdep.c: Don't include "elf-bfd.h".
3106 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3107 i386_frame_chain, i386_saved_pc_after_call): Make static.
3108 (i386_frame_saved_pc): Rewrite to call architecture dependent
3109 function to deal with signal handlers. Make static.
3110 (i386go32_frame_saved_pc): Removed.
3111 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3112 Removed.
3113 (i386_get_longjmp_target): New function.
3114 (default_struct_convention, pcc_struct_convention,
3115 reg_struct_convention, valid_conventions, struct_convention): New
3116 variables.
3117 (i386_use_struct_convention): New function.
3118 (i386v4_sigtramp_saved_pc): Renamed to
3119 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3120 (i386_pc_in_sigtramp): New function.
3121 (i386_abi_names): Removed.
3122 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3123 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3124 Removed.
3125 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3126 i386_gdbarch_register_os_abi): Removed.
3127 (struct i386_abi_handler): Removed.
3128 (i386_abi_handler_list): Removed.
3129 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3130 functions.
3131 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3132 i386_nw_init_abi): New functions.
3133 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3134 Use set_gdbarch_xxx() calls instead of relying on macros for a
3135 number of calls.
3136 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3137 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3138 Register the various architecture variants defined in this file.
3139
ad2f7632
DJ
31402002-06-14 Daniel Jacobowitz <drow@mvista.com>
3141
3142 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3143 (struct main_type): Remove arg_types member. Update comments for
3144 struct field.
3145 (TYPE_ARG_TYPES): Remove.
3146 (TYPE_FN_FIELD_ARGS): Update.
3147 (smash_to_method_type): Update prototype.
3148
3149 * c-typeprint.c (cp_type_print_method_args): Take method type
3150 instead of argument list. Use new argument layout. Simplify.
3151 (c_type_print_args): Use new argument layout. Simplify.
3152 (c_type_print_base): Update call to cp_type_print_method_args.
3153 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3154 argument; use die->type instead. Update call to
3155 smash_to_method_type.
3156 (read_structure_scope): Update call to dwarf2_add_member_fn.
3157 * gdbtypes.c (allocate_stub_method): Update comment.
3158 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3159 Use new argument layout.
3160 (check_stub_method): Use new argument layout. Don't count
3161 void as an argument.
3162 (print_arg_types): Update comments. Use new argument layout.
3163 (recursive_dump_type): Don't print arg_types member.
3164 * hpread.c (hpread_read_struct_type): Use new argument layout.
3165 (fixup_class_method_type): Likewise.
3166 (hpread_type_lookup): Likewise.
3167 * stabsread.c (read_type): Update calls to read_args and
3168 smash_to_method_type.
3169 (read_args): Use new argument layout. Simplify.
3170 * valops.c (typecmp): Use new argument layout. Update parameters
3171 and comments. Simplify.
3172 (hand_function_call): Use new argument layout.
3173 (search_struct_method): Update call to typecmp.
3174 (find_overload_match): Use new argument layout.
3175
6da02953
DJ
31762002-06-13 Daniel Jacobowitz <drow@mvista.com>
3177
3178 * NEWS: Mention multithreaded debug support for gdbserver.
3179
519b2366
DJ
31802002-06-13 Daniel Jacobowitz <drow@mvista.com>
3181
3182 * MAINTAINERS: Mention NEWS.
3183
a7f48742
DJ
31842002-06-13 Daniel Jacobowitz <drow@mvista.com>
3185
3186 * gdbserver/regcache.c: Add comment.
3187
6c0d6680
DJ
31882002-06-13 Daniel Jacobowitz <drow@mvista.com>
3189
3190 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3191 (struct mips_objfile_private, compare_pdr_entries): New.
3192 (non_heuristic_proc_desc): Read the ".pdr" section if it
3193 is present.
3194
6529d2dd
AC
31952002-06-12 Andrew Cagney <ac131313@redhat.com>
3196
3197 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3198 (arm_debug): New static variable.
3199 (_initialize_arm_tdep): Add ``set debug arm'' command.
3200
26216b98
AC
32012002-06-12 Andrew Cagney <ac131313@redhat.com>
3202
3203 * Makefile.in (sim_arm_h): Define.
3204 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3205 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3206 (arm_register_sim_regno): New function, map an internal REGNUM
3207 onto a simulator register number.
3208 (arm_gdbarch_init): Set register_sim_regno.
3209
814b3ba0
AH
32102002-06-09 Aldy Hernandez <aldyh@redhat.com>
3211
3212 * MAINTAINERS: Add self.
3213
475b0867
JB
32142002-06-11 Jim Blandy <jimb@redhat.com>
3215
919d772c
JB
3216 * source.c (source_info): Mention whether the symtab has
3217 information about preprocessor macros.
3218
475b0867
JB
3219 Call the command `info macro', not `show macro'.
3220 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3221 Fix error message.
3222 (_initialize_macrocmd): Register `info_macro_command' in
3223 `infolist', not `showlist'.
3224
9e364162
DJ
32252002-06-11 Daniel Jacobowitz <drow@mvista.com>
3226
3227 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3228 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3229 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3230 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3231 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3232 unconditionally.
3233 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3234 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3235 (_initialize_mips_tdep): Remove dead code.
3236 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3237 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3238 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3239 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3240 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3241 MIPS_LAST_FP_ARG_REGNUM): Remove.
3242
32432002-06-11 Daniel Jacobowitz <drow@mvista.com>
3244
3245 * gdbserver/thread-db.c: New file.
3246 * gdbserver/proc-service.c: New file.
3247 * gdbserver/acinclude.m4: New file.
3248 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3249 proc-service.o, and thread-db.o.
3250 (linux-low.o): Add USE_THREAD_DB.
3251 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3252 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3253 * gdbserver/aclocal.m4: Regenerated.
3254 * gdbserver/config.in: Regenerated.
3255 * gdbserver/configure: Regenerated.
3256 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3257 thread_db.h, and linux/elf.h headrs.
3258 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3259 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3260 Check for -lthread_db and thread support.
3261 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3262 PowerPC, and SuperH.
3263 * gdbserver/i387-fp.c: Constify arguments.
3264 * gdbserver/i387-fp.h: Likewise.
3265 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3266 `struct inferior_info'. Remove PID member. Use generic inferior
3267 list header. All uses updated.
3268 (inferiors, signal_pid): Removed.
3269 (all_threads): New variable.
3270 (get_thread): Define.
3271 (add_inferior_to_list): New function.
3272 (for_each_inferior): New function.
3273 (change_inferior_id): New function.
3274 (add_inferior): Removed.
3275 (remove_inferior): New function.
3276 (add_thread): New function.
3277 (free_one_thread): New function.
3278 (remove_thread): New function.
3279 (clear_inferiors): Use for_each_inferior and free_one_thread.
3280 (find_inferior): New function.
3281 (find_inferior_id): New function.
3282 (inferior_target_data): Update argument type.
3283 (set_inferior_target_data): Likewise.
3284 (inferior_regcache_data): Likewise.
3285 (set_inferior_regcache_data): Likewise.
3286 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3287 (all_processes, stopping_threads, using_thrads)
3288 (struct pending_signals, debug_threads, pid_of): New.
3289 (inferior_pid): Replace with macro.
3290 (struct inferior_linux_data): Remove.
3291 (get_stop_pc, add_process): New functions.
3292 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3293 Use add_process and add_thread.
3294 (linux_attach_lwp): New function, based on old linux_attach. Use
3295 add_process and add_thread. Set stop_expected for new threads.
3296 (linux_attach): New function.
3297 (linux_kill_one_process): New function.
3298 (linux_kill): Kill all LWPs.
3299 (linux_thread_alive): Use find_inferior_id.
3300 (check_removed_breakpoints, status_pending_p): New functions.
3301 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3302 Update. Use WNOHANG. Wait for cloned processes also. Update process
3303 struct for the found process.
3304 (linux_wait_for_event): New function.
3305 (linux_wait): Use it. Support LWPs.
3306 (send_sigstop, wait_for_sigstop, stop_all_processes)
3307 (linux_resume_one_process, linux_continue_one_process): New functions.
3308 (linux_resume): Support LWPs.
3309 (REGISTER_RAW_SIZE): Remove.
3310 (fetch_register): Use register_size instead. Call supply_register.
3311 (usr_store_inferior_registers): Likewise. Call collect_register.
3312 Fix recursive case.
3313 (regsets_fetch_inferior_registers): Improve error message.
3314 (regsets_store_inferior_registers): Add debugging.
3315 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3316 (unstopped_p, linux_signal_pid): New functions.
3317 (linux_target_ops): Add linux_signal_pid.
3318 (linux_init_signals): New function.
3319 (initialize_low): Call it. Initialize using_threads.
3320 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3321 flag.
3322 (get_regcache): Fetch registers lazily. Add fetch argument
3323 and update all callers.
3324 (regcache_invalidate_one, regcache_invalidate): New
3325 functions.
3326 (new_register_cache): Renamed from create_register_cache.
3327 Return the new regcache.
3328 (free_register_cache): Change argument to a void *.
3329 (registers_to_string, registers_from_string): Call get_regcache
3330 with fetch flag set.
3331 (register_data): Make static. Pass fetch flag to get_regcache.
3332 (supply_register): Call get_regcache with fetch flag clear.
3333 (collect_register): Call get_regcache with fetch flag set.
3334 (collect_register_as_string): New function.
3335 * gdbserver/regcache.h: Update.
3336 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3337 stderr.
3338 Handle input interrupts while waiting for an ACK.
3339 (input_interrupt): Use signal_pid method.
3340 (getpkt): Flush after debug output and use stderr.
3341 (outreg): Use collect_register_as_string.
3342 (new_thread_notify, dead_thread_notify): New functions.
3343 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3344 and general_thread.
3345 (look_up_one_symbol): Flush after debug output.
3346 * gdbserver/server.c (step_thread, server_waiting): New variables.
3347 (start_inferior): Don't use signal_pid. Update call to mywait.
3348 (attach_inferior): Update call to mywait.
3349 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3350 (main): Don't fetch/store registers explicitly. Use
3351 set_desired_inferior. Support proposed ``Hs'' packet. Update
3352 calls to mywait.
3353 * gdbserver/server.h: Update.
3354 (struct inferior_list, struct_inferior_list_entry): New.
3355 * gdbserver/target.c (set_desired_inferior): New.
3356 (write_inferior_memory): Constify.
3357 (mywait): New function.
3358 * gdbserver/target.h: Update.
3359 (struct target_ops): New signal_pid method.
3360 (mywait): Removed macro, added prototype.
3361
3362 * gdbserver/linux-low.h (regset_func): Removed.
3363 (regset_fill_func, regset_store_func): New.
3364 (enum regset_type): New.
3365 (struct regset_info): Add type field. Use new operation types.
3366 (struct linux_target_ops): stop_pc renamed to get_pc.
3367 Add decr_pc_after_break and breakpoint_at.
3368 (get_process, get_thread_proess, get_process_thread)
3369 (strut process_info, all_processes, linux_attach_lwp)
3370 (thread_db_init): New.
3371
3372 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3373 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3374 (the_low_target): Add new members.
3375 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3376 (i386_store_fpxregset): Constify.
3377 (target_regsets): Add new kind identifier.
3378 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3379 (i386_set_pc): Add debugging.
3380 (i386_breakpoint_at): New function.
3381 (the_low_target): Add new members.
3382 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3383 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3384 (mips_breakpoint_at): New.
3385 (the_low_target): Add new members.
3386 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3387 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3388 (the_low_target): Add new members.
3389 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3390 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3391 (the_low_target): Add new members.
3392 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3393 identifier.
3394
23aa4c72
ML
33952002-06-11 Michal Ludvig <mludvig@suse.cz>
3396
3397 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3398 (unwind_tmp_obstack_free, parse_frame_info)
3399 (update_context, cfi_read_fp, cfi_write_fp)
3400 (cfi_frame_chain, cfi_init_extra_frame_info)
3401 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3402 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3403
70eb15a4
CV
34042002-06-11 Corinna Vinschen <vinschen@redhat.com>
3405
3406 * v850-tdep.c (v850_type_is_scalar): New function.
3407 (v850_use_struct_convention): Match current gcc implementation
3408 as close as possible.
3409 (v850_push_arguments): Fix stack_offset handling. Don't write
3410 struct_addr into register. This is done by v850_store_struct_return.
3411 (v850_extract_return_value): Care for structs.
3412 (v850_store_return_value): Ditto.
3413 (v850_store_struct_return): Actually write address.
3414
482a4d06
ML
34152002-06-11 Michal Ludvig <mludvig@suse.cz>
3416
3417 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3418 without debug information too.
3419
d855c300
AC
34202002-06-10 Andrew Cagney <ac131313@redhat.com>
3421
3422 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3423 Make multi-arch pure.
3424 * gdbarch.h, gdbarch.c: Re-generate.
3425 * arm-tdep.c (arm_print_float_info): Update.
3426 * arch-utils.h (default_print_float_info): Update.
3427 * arch-utils.c (default_print_float_info): Update.
3428 * infcmd.c (float_info): Update call.
3429
dd12a101
AC
34302002-06-10 Andrew Cagney <ac131313@redhat.com>
3431
3432 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3433 the front of the initialize list.
3434
101dcfbe
AC
34352002-06-10 Andrew Cagney <ac131313@redhat.com>
3436
3437 * infrun.c (struct inferior_status): Replace fields
3438 selected_frame_address and selected_level with field
3439 selected_frame_id.
3440 (save_inferior_status): Update. Use get_frame_id.
3441 (struct restore_selected_frame_args): Delete.
3442 (restore_selected_frame): Update. Use frame_find_by_id.
3443 (restore_inferior_status): Update.
3444
3445 * breakpoint.h (struct breakpoint): Change type of
3446 watchpoint_frame to frame_id.
3447 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3448 call to get_current_frame.
3449 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3450 get_current_frame.
3451 (watchpoint_check): Use frame_find_by_id.
3452
3453 * frame.h (record_selected_frame): Delete declaration.
3454 * stack.c (record_selected_frame): Delete function.
3455
3456 * frame.h (struct frame_id): Define.
3457 (get_frame_id): Declare.
3458 (frame_find_by_id): Declare.
3459 * frame.c (frame_find_by_id): New function.
3460 (get_frame_id): New function.
3461
304270b6
AV
34622002-06-10 Andrey Volkov <avolkov@transas.com>
3463
3464 * ser-e7kpc.c: Fix duplicated define and call of
3465 _initialize_ser_e7000pc
3466
2f2cf184
DJ
34672002-06-09 Daniel Jacobowitz <drow@mvista.com>
3468
3469 * signals/signals.c (target_signal_from_host): Fix #ifdef
3470 SIGRTMIN case.
3471 (do_target_signal_to_host): Likewise.
3472
caaa3122
DJ
34732002-06-09 Daniel Jacobowitz <drow@mvista.com>
3474
3475 * mips-tdep.c (mips_find_abi_section): New function.
3476 (mips_gdbarch_init): Call it.
3477
6ac5df3a
MK
34782002-06-09 Mark Kettenis <kettenis@gnu.org>
3479
3480 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3481 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3482 after Andrew's 2002-06-08 gdbarch change.
3483
82ea117a
MK
34842002-06-09 Mark Kettenis <kettenis@gnu.org>
3485
3486 * i386-linux-nat.c (suppy_gregset): Don't supply
3487 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3488 register cache.
3489 (fill_gregset): Don't fetch it under the same circumstances.
3490
3c25f8c7
AC
34912002-06-09 Andrew Cagney <cagney@redhat.com>
3492
3493 * Makefile.in (callback_h): Define.
3494 (remote_sim_h): Update path to remote-sim.h.
3495 (remote-rdp.o): Add $(callback_h).
3496 (remote-sim.o): Use $(callback_h).
3497 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3498 * remote-rdp.c: Include "gdb/callback.h".
3499
1029b7fa
MK
35002002-06-09 Mark Kettenis <kettenis@gnu.org>
3501
3502 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3503 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3504
616675d3
AC
35052002-06-08 Andrew Cagney <ac131313@redhat.com>
3506
a3efda28
AC
3507 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3508 * rdi-share/serpardr.c: Ditto.
3509 * rdi-share/unixcomm.c: Ditto.
3510 * rdi-share/serdrv.c: Ditto.
3511 * rdi-share/hostchan.h: Ditto.
3512 * rdi-share/hostchan.c: Ditto.
3513 * rdi-share/host.h: Ditto.
3514 * rdi-share/devsw.c: Ditto.
3515
c5f10366
AC
3516 * objfiles.h: Change type of obj_private to void pointer.
3517 * pa64solib.c: Update copyright. Don't include "assert.h", use
3518 strcmp instead of STREQ, use LONGEST, do not use PTR
3519 * somsolib.c: Ditto.
3520
616675d3
AC
3521 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3522 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3523 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3524
e4b415d9
AC
35252002-06-08 Andrew Cagney <ac131313@redhat.com>
3526
3527 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3528 (default_get_saved_register): Delete function.
3529 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3530 generic_unwind_get_saved_register.
3531 * gdbarch.h, gdbarch.c: Re-generate.
3532
ca0d0b52
AC
35332002-06-08 Andrew Cagney <ac131313@redhat.com>
3534
3535 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3536 generic_func_frame_chain_valid.
3537 * gdbarch.h, gdbarch.c: Re-generate.
3538 * blockframe.c (generic_func_frame_chain_valid): Only check
3539 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3540 passing FP to PC_IN_CALL_DUMMY.
3541 Fix PR gdb/360.
3542
76860b5f
AC
35432002-06-08 Andrew Cagney <ac131313@redhat.com>
3544
3545 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3546 (register_gdbarch_data): Initialize init_p.
3547 (gdbarch_data): Initialize data pointer using the init function.
3548 (init_gdbarch_data): Delete function.
3549 (gdbarch_update_p): Update.
3550 (initialize_non_multiarch): Update.
3551 (struct gdbarch): Add field initialized_p.
3552 * gdbarch.h, gdbarch.c: Re-generate.
3553
8dda9770
ML
35542002-06-07 Michal Ludvig <mludvig@suse.cz>
3555
3556 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3557 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3558 better do the things actually here.
3559 * x86-64-tdep.c (x86_64_register_name2nr): New.
3560 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3561 (x86_64_gdbarch_init): Respect the above change.
3562 * x86-64-tdep.h (x86_64_register_name2nr)
3563 (x86_64_register_nr2name): Add prototypes.
3564 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3565
3d79a47c
MS
35662002-06-06 Michael Snyder <msnyder@redhat.com>
3567
7bd91a28
MS
3568 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3569 Delete extra braces and re-indent.
3570 (d10v_store_return_value): Char return values
3d79a47c
MS
3571 must be shifted over by one byte in R0.
3572 (d10v_extract_return_value): Delete extra braces, re-indent.
3573
095a4c96
EZ
35742002-06-06 Elena Zannoni <ezannoni@redhat.com>
3575
3576 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3577 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3578 (d10v_integer_to_address): Rewrite.
3579 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3580 the d10v specific functions which take care of converting to the
3581 correct space.
3582
e8a77ca4
EZ
35832002-06-06 Elena Zannoni <ezannoni@redhat.com>
3584
3585 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3586 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3587
4f2e4a4f
AC
35882002-06-02 Andrew Cagney <ac131313@redhat.com>
3589
3590 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3591 includes.
3592 * config/tm-linux.h: Ditto.
3593 * config/alpha/tm-alphalinux.h: Ditto.
3594 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3595 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3596 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3597 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3598 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3599 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3600 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3601 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3602 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3603 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3604 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3605 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3606 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3607 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3608 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3609 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3610 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3611 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3612 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3613 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3614 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3615 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3616 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3617 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3618 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3619 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3620 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3621 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3622 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3623 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3624 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3625 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3626 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3627 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3628 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3629 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3630 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3631
ae2ab2ce
AS
36322002-05-04 Aidan Skinner <aidan@velvet.net>
3633
3634 * ada-exp.tab.c: New file
3635 * ada-exp.y: New file
3636 * ada-lang.c: New file
3637 * ada-lang.h: New file
3638 * ada-lex.c: New file
3639 * ada-lex.l: New file
3640 * ada-tasks.c: New file
3641 * ada-typeprint.c: New file
3642 * ada-valprint.c: New file
3643
0ddd0135
JT
36442002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3645
3646 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3647 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3648
750fbacc
JT
36492002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3650
3651 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3652 insetead of ppc-linux-tdep.o.
3653 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3654 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3655
df94e18a
AC
36562002-06-02 Andrew Cagney <ac131313@redhat.com>
3657
3658 2002-05-07 Christian Groessler <chris@groessler.org>
3659 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3660 bit register contents for little endian hosts.
3661
1a38ab75
AC
36622002-06-01 Andrew Cagney <ac131313@redhat.com>
3663
3664 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3665 any maintainer.
3666
8b1632ac
AC
36672002-06-01 Andrew Cagney <ac131313@redhat.com>
3668
3669 * gdbarch.h: Regenerate.
3670
627054c8
AC
36712002-06-01 Andrew Cagney <ac131313@redhat.com>
3672
3673 * MAINTAINERS: Add everyone to write-after-approval list.
3674
4f460812
AC
36752002-06-01 Andrew Cagney <ac131313@redhat.com>
3676
3677 * stack.c (frame_info): Use frame_register_unwind instead of
3678 saved_regs. Mention when the SP is on the stack or in a register.
3679
3680 * frame.h (frame_register_unwind_ftype): Define. Document.
3681 (struct frame_info): Add field register_unwind and
3682 register_unwind_cache.
3683 (frame_register_unwind): Declare.
3684 (generic_unwind_get_saved_register): Declare.
3685
3686 * frame.c (frame_register_unwind): New function.
3687 (generic_unwind_get_saved_register): New function.
3688
3689 * blockframe.c (generic_call_dummy_register_unwind): New function.
3690 (frame_saved_regs_register_unwind): New function.
3691 (set_unwind_by_pc): New function.
3692 (create_new_frame): New function.
3693 (get_prev_frame): New function.
3694
de888f76
AC
36952002-05-30 Andrew Cagney <ac131313@redhat.com>
3696
3697 * a29k-share/: Delete directory.
3698 * remote-vx29k.c: Delete file.
3699
2f2c3626
JT
37002002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3701
3702 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3703 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3704
9ce5c36a
JT
37052002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3706
3707 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3708 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3709 (sparc64nbsd-nat.o)
3710 (sparcnbsd-nat.o)
3711 (sparcnbsd-tdep.o): New dependency lists.
3712 * NEWS: Note new UltraSPARC NetBSD native configuration.
3713 * configure.host (sparc64-*-netbsd*): New host.
3714 * configure.tgt (sparc-*-netbsdelf*)
3715 (sparc-*-netbsd*): Set gdb_target to nbsd.
3716 (sparc64-*-netbsd*): New target.
3717 * sparc64nbsd-nat.c: New file.
3718 * sparcnbsd-nat.c: New file.
3719 * sparcnbsd-tdep.c: New file.
3720 * sparcnbsd-tdep.h: New file.
3721 * config/sparc/nbsd.mt: New file.
3722 * config/sparc/nbsd64.mh: New file.
3723 * config/sparc/nbsd64.mt: New file.
3724 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3725 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3726 (HOST_IPC): Remove.
3727 * config/sparc/nbsdaout.mt: Remove.
3728 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3729 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3730 (HOST_IPC): Remove.
3731 * config/sparc/nbsdelf.mt: Remove.
3732 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3733 sparc-nat.c compatiblity defines.
3734 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3735 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3736 * config/sparc/tm-nbsd64.h: New file.
3737 * config/sparc/tm-nbsdaout.h: Remove.
3738 * config/sparc/xm-nbsd.h: Remove.
3739
ef3cf062
JT
37402002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3741
3742 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3743 * sparc-tdep.c: Include osabi.h.
3744 (gdbarch_tdep): Add osabi member.
3745 (_initialize_sparc_tdep): Use gdbarch_register.
3746 (sparc_gdbarch_init): Use generic OS ABI framework.
3747 (sparc_dump_tdep): New function.
3748
ee8ff470
KB
37492002-05-30 Kevin Buettner <kevinb@redhat.com>
3750
3751 * corefile.c (do_captured_read_memory_integer): Return non-zero
3752 result.
3753 (safe_read_memory_integer): Copy result of memory read when
3754 status is non-zero. Also, add comments.
3755
7b112f9c
JT
37562002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3757
3758 * Makefile.in (ppc_tdep_h): Define.
3759 (ppc-linux-nat.o)
3760 (ppc-linux-tdep.o)
3761 (rs6000-tdep.o): Use $(ppc_tdep_h).
3762 (ppc-sysv-tdep.o)
3763 (ppcnbsd-nat.o)
3764 (ppcnbsd-tdep.o): New dependency lists.
3765 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3766 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3767 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3768 (ppc_sysv_abi_broken_use_struct_convention)
3769 (ppc_sysv_abi_use_struct_convention)
3770 (ppc_sysv_abi_push_arguments): Move to...
3771 * ppc-sysv-tdep.c: ...here.
3772 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3773 * rs6000-tdep.c (process_note_abi_tag_sections)
3774 (get_elfosabi): Remove.
3775 (rs6000_gdbarch_init): Use generic OS ABI framework.
3776 (rs6000_dump_tdep): New function.
3777 (_initialize_rs6000_tdep): Use gdbarch_register.
3778 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3779 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3780 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3781 of ppc-linux-tdep.o.
3782 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3783 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3784 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3785 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3786 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3787 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3788
480dd42a
JB
37892002-05-29 Jim Blandy <jimb@redhat.com>
3790
3791 * macroscope.c (default_macro_scope): Put `void' in empty argument
3792 list.
3793
4182591f
AC
37942002-05-29 Andrew Cagney <ac131313@redhat.com>
3795
3796 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3797 * arch-utils.c: Include "sim-regno.h".
3798 * gdbarch.sh: Don't include "sim-regno.h".
3799 * gdbarch.h, gdbarch.c: Regenerate.
3800 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3801 here.
3802 * arch-utils.h (legacy_register_sim_regno): To here.
3803 * remote-sim.c (legacy_register_sim_regno): Move function from
3804 here.
3805 * arch-utils.c (legacy_register_sim_regno): To here.
3806
8238d0bf
AC
38072002-05-28 Andrew Cagney <ac131313@redhat.com>
3808
3809 * sim-regno.h: New file.
3810 * Makefile.in (sim_regno_h): Define.
3811 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3812 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3813 (legacy_register_sim_regno): New function.
3814 (one2one_register_sim_regno): New function.
3815 (gdbsim_fetch_register): Rewrite.
3816 (gdbsim_store_register): Only store a register when
3817 REGISTER_SIM_REGNO is valid.
3818 * d10v-tdep.c: Include "sim-regno.h".
3819 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3820 (d10v_ts3_register_sim_regno): Ditto.
3821 * gdbarch.sh: Include "sim-regno.h".
3822 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3823 * gdbarch.h, gdbarch.c: Regenerate.
3824 * arch-utils.h (default_register_sim_regno): Delete declaration.
3825 * arch-utils.c (default_register_sim_regno): Delete function.
3826
485721b1
JT
38272002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3828
3829 * ppcnbsd-nat.c: Rewrite.
3830 * ppcnbsd-tdep.c: New file.
3831 * ppcnbsd-tdep.h: New file.
3832 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3833 solib.o, and solib-svr4.o.
3834 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3835 nbsd-tdep.o, and corelow.o.
3836
697f244d
AC
38372002-05-28 Andrew Cagney <ac131313@redhat.com>
3838
3839 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3840 `tr' and `sed'. Mention that `broken' targets are not expected to
3841 build.
3842
f08caad1 38432002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3844
3845 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3846 Let PC point right after the prologue before looking up symbols.
3847
3139facc
MH
38482002-05-27 Martin M. Hunt <hunt@redhat.com>
3849
3850 * i386-tdep.c (i386_register_virtual_type): Return
3851 builtin_type_vec128i for SSE registers.
3852
3853 * gdbtypes.h (builtin_type_vec128i): Declare.
3854
3855 * gdbtypes.c (build_builtin_type_vec128i): New function.
3856 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3857 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3858 (build_gdbtypes): Initialize new builtin vector types.
3859 (_initialize_gdbtypes): Register new vector types with gdbarch.
3860
6e3ba3b8
JT
38612002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3862
3863 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3864 since it has been multi-arch'd.
3865 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3866 Move Alpha and VAX multi-arch news entries to same section
3867 as other multi-arch news.
3868
93d5585d
JT
38692002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3870
3871 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3872 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3873 static. Rename some register numbers to put them in ns32k-tdep
3874 private namespace.
3875 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3876 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3877 functions.
3878 (_initialize_ns32k_tdep): Use gdbarch_register.
3879 * ns32k-tdep.h: New file.
3880 * ns32knbsd-tdep.c: New file.
3881 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3882 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3883 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3884 REGISTER_BYTES, REGISTER_BYTE): Remove.
3885 * config/ns32k/tm-ns32k.h: New file.
3886 * config/ns32k/tm-umax.h: Remove.
3887
efb2c70e
JT
38882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3889
3890 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3891 ns32k_store_struct_return, ns32k_extract_return_value,
3892 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3893 functions.
3894 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3895 ns32k_saved_pc_after_call.
3896 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3897 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3898 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3899 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3900 ns32k_extract_struct_value_address.
3901
7bcc927b
JT
39022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3903
3904 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3905 ns32k_fix_call_dummy): New.
3906 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3907 ns32k_call_dummy_words.
3908 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3909 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3910 CALL_DUMMY_NARGS): Remove.
3911 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3912
78f9d765
JT
39132002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3914
3915 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3916 ns32k_frame_saved_pc, ns32k_frame_args_address,
3917 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3918 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3919 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3920 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3921 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3922 (BREAKPOINT): Remove..
3923 (FRAME_CHAIN): Define as ns32k_frame_chain.
3924 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3925 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3926 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3927 (FRAME_FIND_SAVED_REGS): Remove.
3928 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3929 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3930 (POP_FRAME): Define as ns32k_pop_frame.
3931
f2c762e0
JT
39322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3933
3934 * ns32k-tdep.c (ns32k_register_byte_32082,
3935 ns32k_register_byte_32382, ns32k_register_raw_size,
3936 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3937 functions.
3938 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3939 ns32k_register_byte_32382.
3940 * config/ns32k/tm-umax.h: Update copyright years.
3941 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3942 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3943 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3944 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3945 (ns32k_get_enter_addr): Fix prototype.
3946
af137673
JT
39472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3948
3949 * ns32k-tdep.c: Update copyright years.
3950 (ns32k_register_name_32082): New function.
3951 (ns32k_register_name_32382): Ditto.
3952 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3953 (REGISTER_NAME): Define as ns32k_register_name_32382.
3954 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3955 (REGISTER_NAME): Define as ns32k_register_name_32082.
3956
a8bc7b56
JB
39572002-05-24 Jim Blandy <jimb@redhat.com>
3958
3959 * dwarf2read.c (free_line_header): Use xfree, not free.
3960
83a45910
JT
39612002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3962
3963 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3964 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3965
0db71247
AC
39662002-05-23 Andrew Cagney <ac131313@redhat.com>
3967
3968 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3969
b9e5e4dd
AC
39702002-05-23 Andrew Cagney <ac131313@redhat.com>
3971
3972 From Ross Alexander at NEC Europe:
3973 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3974
de530e84
MS
39752002-05-23 Michael Snyder <msnyder@redhat.com>
3976
3977 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3978 for input, rather than parse_and_eval_address.
3979
b91b96f4
AC
39802002-05-23 Andrew Cagney <ac131313@redhat.com>
3981
3982 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3983 * Makefile.in (sim_d10v_h): Update definition.
3984
8b279e7a
AC
39852002-05-24 Andrew Cagney <cagney@redhat.com>
3986
3987 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3988 change `2002-05-22 Michael Snyder' below.
3989 (d10v_push_arguments): Ditto.
3990 (d10v_extract_return_value): Ditto.
3991
0a3d0425
JB
39922002-05-23 Jim Blandy <jimb@redhat.com>
3993
3994 * macrotab.c (check_for_redefinition): Don't complain if the new
3995 definition is the same as the previous one. Take more arguments
3996 to allow the comparison.
3997 (macro_define_object, macro_define_function): Pass more arguments
3998 to check_for_redefinition.
3999
78eac43e
MS
40002002-05-22 Michael Snyder <msnyder@redhat.com>
4001
4002 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4003 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4004 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4005 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4006 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4007 Add a temp variable to save a call (and a memory read).
4008 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4009 if possible (so that PC_IN_CALL_DUMMY will work).
4010
9bc1edb8
CV
40112002-05-22 Corinna Vinschen <vinschen@redhat.com>
4012
4013 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4014
005ef3d2
ML
40152002-05-22 Michal Ludvig <mludvig@suse.cz>
4016
4017 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4018 fde->cie_ptr.
4019 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4020 (dwarf2_build_frame_info): Add offset to fde->initial_location
4021 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4022 (execute_stack_op): Change type of 'result' from ULONGEST to
4023 CORE_ADDR.
005ef3d2 4024
fcf4f891
JT
40252002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4026
4027 * config/alpha/tm-nbsd.h: Include solib.h.
4028
cfef91e4
JT
40292002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4030
4031 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4032 assumptions about the host's byte order.
4033
9964235a
JT
40342002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4035
4036 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4037 to dependency list.
4038 * alphanbsd-tdep.c: Include solib-svr4.h.
4039 * shnbsd-tdep.c: Ditto.
4040
9eeef8ef
JT
40412002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4042
4043 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4044 nbsd-tdep.h to dependency list.
4045 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4046 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4047 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4048 nbsdaout.mh and nbsdelf.mh consistently.
4049 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4050 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4051 nbsdaout.mt and nbsdelf.mh consistently.
4052 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4053 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4054 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4055 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4056 a.out shared library stuff from here...
4057 * config/nm-nbsdaout.h: ...to here.
4058 * config/tm-nbsd.h: Remove.
4059 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4060 * config/arm/nbsd.mh: Remove.
4061 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4062 nbsd-tdep.o.
4063 * config/arm/nbsdaout.mh: New file.
4064 * config/arm/nbsdelf.mh: New file.
4065 * config/arm/nm-nbsdaout.h: New file.
4066 * config/i386/nbsd.mh: Remove.
4067 * config/i386/nbsd.mt: Remove.
4068 * config/i386/nbsdaout.mh: New file.
4069 * config/i386/nbsdaout.mt: New file.
4070 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4071 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4072 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4073 i386_register_u_addr): Remove.
4074 * config/i386/nm-nbsdaout.h: New file.
4075 * config/i386/nm-nbsdelf.h: Remove.
4076 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4077 (USE_STRUCT_CONVENTION): Remove.
4078 * config/i386/tm-nbsdaout.h: New file.
4079 * config/i386/tm-nbsdelf.h: Remove.
4080 * config/m68k/nbsd.mh: Remove.
4081 * config/m68k/nbsd.mt: Remove.
4082 * config/m68k/nbsdaout.mh: New file.
4083 * config/m68k/nbsdaout.mt: New file.
4084 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4085 * config/m68k/nm-nbsdaout.h: New file.
4086 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4087 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4088 * config/ns32k/nbsd.mh: Remove.
4089 * config/ns32k/nbsd.mt: Remove.
4090 * config/ns32k/nbsdaout.mh: New file.
4091 * config/ns32k/nbsdaout.mt: New file.
4092 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4093 * config/ns32k/nm-nbsdaout.h: New file.
4094 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4095 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4096 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4097 (SVR4_SHARED_LIBS): Remove.
4098 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4099 * config/sparc/nbsd.mh: Remove.
4100 * config/sparc/nbsd.mt: Remove.
4101 * config/sparc/nbsdaout.mh: New file.
4102 * config/sparc/nbsdaout.mt: New file.
4103 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4104 * config/sparc/nbsdelf.mt: New file.
4105 * config/sparc/nm-nbsdaout.h: New file.
4106 * config/sparc/nm-nbsdelf.h: Remove.
4107 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4108 * config/sparc/tm-nbsdaout.h: New file.
4109
257ce470
JT
41102002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4111
4112 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4113 mipsnbsd-tdep.c
4114 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4115
76a6d5fe
JT
41162002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4117
4118 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4119 shnbsd-nat.c.
4120 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4121
45888261
JT
41222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4123
4124 * NEWS: Note new MIPS NetBSD native configuration.
4125 * configure.host (mips*-*-netbsd*): New host.
4126 * configure.tgt (mips*-*-netbsd*): New target.
4127 * mipsnbsd-nat.c: New file.
4128 * mipsnbsd-tdep.c: New file.
4129 * mipsnbsd-tdep.h: New file.
4130 * config/mips/nbsd.mh: New file.
4131 * config/mips/nbsd.mt: New file.
4132 * config/mips/nm-nbsd.h: New file.
4133 * config/mips/tm-nbsd.h: New file.
4134
70f80edf
JT
41352002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4136
4137 * Makefile.in (SFILES): Add osabi.c.
4138 (COMMON_OBS): Add osabi.o.
4139 (osabi.o): New dependency list.
4140 * osabi.c: New file.
4141 * osabi.h: New file.
4142 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4143
4144 * Makefile.in (alpha_tdep_h): Define and use instead of
4145 alpha-tdep.h.
4146 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4147 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4148 Remove.
4149 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4150 * alpha-tdep.h: Include osabi.h.
4151 (alpha_abi): Remove.
4152 (gdbarch_tdep): Use generic OS ABI framework.
4153 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4154 gdbarch_register_osabi.
4155 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4156 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4157 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4158
4159 * Makefile.in (sh_tdep_h): Add osabi.h.
4160 * sh-tdep.h (sh_osabi): Remove.
4161 (gdbarch_tdep): Use generic OS ABI framework.
4162 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4163 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4164 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4165 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4166
4167 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4168 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4169 gdbarch_register_osabi.
4170 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4171 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4172 (get_elfosabi): Rename to...
4173 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4174 ABI framework support routines.
4175 (arm_gdbarch_init): Use generic OS ABI framework.
4176 (arm_dump_tdep): Likewise.
4177 (_initialize_arm_tdep): Likewise.
4178 * arm-tdep.h: Include osabi.h.
4179 (arm_abi): Remove.
4180 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4181 osabi member.
4182 (arm_gdbarch_register_os_abi): Remove prototype.
4183 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4184 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4185
4186 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4187 * mips-tdep.c: Include osabi.h.
4188 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4189 OS ABI framework.
4190
d194345b
KH
41912002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4192
4193 * h8300-tdep.c: Fix formatting.
4194
70c6b0d1
EZ
41952002-05-20 Elena Zannoni <ezannoni@redhat.com>
4196
4197 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4198 printing vector registers.
4199
165b8e33
AC
42002002-05-19 Andrew Cagney <ac131313@redhat.com>
4201
4202 From Fernando Nasser:
4203 * remote.c (remote_async_open_1): Re-throw the exception when the
4204 connection fails.
4205 (remote_cisco_open): Ditto.
4206 (remote_open_1): Ditto.
4207
36918e70
AC
42082002-05-19 Andrew Cagney <ac131313@redhat.com>
4209
4210 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4211 (remote_start_remote): Add uiout parameter. Pass through to
4212 remote_start_remote_dummy.
4213 (remote_open_1): Use catch_exception instead of catch_errors.
4214 (remote_async_open_1): Ditto.
4215 (remote_cisco_open): Ditto.
4216
ae44c0c4
AC
42172002-05-19 Andrew Cagney <ac131313@redhat.com>
4218
4219 * remote.c (remote_start_remote): Replace PTR with void pointer.
4220 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4221 static.
4222
8efe637d
AC
42232002-05-18 Andrew Cagney <ac131313@redhat.com>
4224
4225 * gdb_indent.sh: Allow the script to be run in the sim directory.
4226
2f1b5984
MK
42272002-05-18 Mark Kettenis <kettenis@gnu.org>
4228
f0f625e2
MK
4229 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4230 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4231
2f1b5984
MK
4232 * corelow.c (core_open): Only call set_gdbarch_from_file if
4233 exec_bfd is NULL.
4234
fc974602
AV
42352002-05-17 Andrey Volkov <avolkov@transas.com>
4236
4237 * h8300-tdep.c: Add support of EXR register
4238 * config/h8300/tm-h8300.h: Ditto.
4239
906709f4
AV
42402002-05-17 Andrey Volkov <avolkov@transas.com>
4241
4242 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4243
6e591d68
AV
42442002-05-17 Andrey Volkov <avolkov@transas.com>
4245
4246 * h8300-tdep.c: Change literal regnums to REGNO.
4247
84f0252a
JB
42482002-05-17 Jim Blandy <jimb@redhat.com>
4249
e0e9281e
JB
4250 * NEWS: Note addition of macro support.
4251
84f0252a
JB
4252 Expand preprocessor macros in C expressions.
4253 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4254 (scan_macro_expansion, scanning_macro_expansion,
4255 finished_macro_expansion): New function declarations.
4256 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4257 variable declarations.
4258 * parser-defs.h (expression_context_pc): New declaration.
4259 * parse.c (expression_context_pc): New variable.
4260 (parse_exp_1): Set expression_context_pc, as well as
4261 expression_context_block.
4262 * c-exp.y (yylex): If we're not already reading the result of a
4263 macro expansion, try to macro-expand the next token. When we're
4264 done scanning a macro expansion, switch back to the mainline text.
4265 Commas and `if's in a macro's expansion don't terminate the input.
4266 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4267 (macro_original_text, macro_expanded_text,
4268 expression_macro_lookup_func, expression_macro_lookup_baton): New
4269 variables.
4270 (scan_macro_expansion, scanning_macro_expansion,
4271 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4272 c_preprocess_and_parse): New functions.
4273 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4274 c_preprocess_and_parse, instead of c_parse.
4275 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4276 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4277
1c509ca8
JR
4278Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4279
4280 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4281 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4282 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4283
2250ee0c
CV
42842002-05-17 Corinna Vinschen <vinschen@redhat.com>
4285
4286 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4287
ab3b8126
JT
42882002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4289
4290 * Makefile.in (sh_tdep_h): Define and use.
4291 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4292 register enum): Move to...
4293 * * sh-tdep.h: ...here.
4294 * sh-tdep.c: Include sh-tdep.h.
4295 * sh3-rom.c: Likewise.
4296 * shnbsd-tdep.c: Likewise.
4297
ed9d4749
MS
42982002-05-16 Michael Snyder <msnyder@redhat.com>
4299
4300 * arm-tdep.c: Spelling fix in comment.
4301
2e276125
JB
43022002-05-16 Jim Blandy <jimb@redhat.com>
4303
6821892e
JB
4304 Add commands for manually expanding macros and showing their
4305 definitions.
4306 * macrocmd.c, macroscope.c, macroscope.h: New files.
4307 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4308 (macroscope_h): New variable.
4309 (HFILES_NO_SRCDIR): Add macroscope.h.
4310 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4311 (macroscope.o, macrocmd.o): New rules.
4312
2e276125
JB
4313 Teach the Dwarf 2 reader to read macro information.
4314 * dwarf2read.c: #include "macrotab.h".
4315 (dwarf_macinfo_buffer): New variable.
4316 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4317 dwarf_macinfo_size.
4318 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4319 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4320 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4321 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4322 dwarf2_macro_spaces_in_definition): New complaints.
4323 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4324 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4325 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4326 the partial symbol table.
4327 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4328 from what's recorded in the partial symbol table.
4329 (read_file_scope): If the compilation unit has a
4330 `DW_AT_macro_info' attribute, read its macro information.
4331 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4332
2f53fe6c
DJ
43332002-05-16 Daniel Jacobowitz <drow@mvista.com>
4334
4335 Fix PR gdb/546
4336 * ser-tcp.c: Don't include <netinet/udp.h>.
4337
2be99286
SC
43382002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4339
4340 * MAINTAINERS: Update my email address.
4341
c9af212b 43422002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4343
4344 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4345 include file of the same name.
4346
bf5f1a52
CV
43472002-05-16 Corinna Vinschen <vinschen@redhat.com>
4348
4349 * configure.tgt: Mark v850 as multi-arched.
4350 * config/v850/tm-v850.h: Remove file.
4351 * config/v850/v850.mt: Eliminate TM_FILE.
4352
435e042a
CV
43532002-05-16 Corinna Vinschen <vinschen@redhat.com>
4354
4355 * v850-tdep.c: Full multi-arch.
4356 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4357 Define GDB_MULTI_ARCH to 2.
4358
9819c6c8
PM
43592002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4360
4361 * p-exp.y (current_type): New static variable.
4362 Carries the type of the expression at the position that is parsed.
4363 (push_current_type, pop_current_type): Two new functions. Used
4364 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4365 (search_field): New static variable. Set to one after parsing a point
4366 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4367 (FIELDNAME): New token. After a point only a token belonging to
4368 current_type type definition is allowed.
4369 (all over token rules): reset and change current_type according
4370 to rules.
4371 (exp '[' rule): insert implicit array index field if
4372 exp is a pascal string type.
4373
3a06899a
CV
43742002-05-16 Corinna Vinschen <vinschen@redhat.com>
4375
4376 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4377 frame info. Use frame_info's saved_regs instead of matching member
4378 in extra_frame_info throughout.
4379 (v850_frame_init_saved_regs): New function.
4380 (v850_init_extra_frame_info): Move most functionality into
4381 v850_frame_init_saved_regs().
4382 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4383 (v850_frame_find_saved_regs): Remove declaration.
4384 (FRAME_FIND_SAVED_REGS): Remove definition.
4385 (v850_frame_init_saved_regs): Add declaration.
4386 (FRAME_INIT_SAVED_REGS): Add definition.
4387
6ed14b0e
CV
43882002-05-16 Corinna Vinschen <vinschen@redhat.com>
4389
4390 * v850-tdep.c: Begin multi-arch'ing v850.
4391 (v850_target_architecture_hook): Remove function.
4392 (v850_gdbarch_init): New function. Add code previously in
4393 v850_target_architecture_hook().
4394 (_initialize_v850_tdep): Don't set target_architecture_hook.
4395 Call register_gdbarch_init() instead.
4396
42725910
DJ
43972002-05-16 Daniel Jacobowitz <drow@mvista.com>
4398
4399 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4400 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4401 (fixup_class_method_type): Likewise.
4402
0bc68c49
DJ
44032002-05-15 Daniel Jacobowitz <drow@mvista.com>
4404
4405 From Martin Pool <mbp@samba.org>:
4406 * gdbserver/server.c (gdbserver_usage): New function.
4407 (main): Call it.
4408
99d9066e
JB
44092002-05-15 Jim Blandy <jimb@redhat.com>
4410
4411 Add macro structures to GDB's symbol tables. Nobody puts anything
4412 in them yet.
4413 * symtab.h (struct symtab): New member: `macro_table'.
4414 * buildsym.h (pending_macros): New global variable.
4415 * buildsym.c: #include "macrotab.h".
4416 (buildsym_init): Initialize `pending_macros'.
4417 (end_symtab): If we found macro information while reading a CU's
4418 debugging info, do build a symtab structure for it. Make the
4419 symtab point to the macro information, and clear the
4420 `pending_macros' pointer which held it while we were reading the
4421 debug info.
4422 (really_free_pendings): Free any pending macro table.
4423 * objfiles.h (struct objfile): New member: `macro_cache'.
4424 * objfiles.c (allocate_objfile): Set allocate and free functions
4425 for the macro cache's objstack.
4426 (free_objfile): Empty the macro cache's obstack.
4427 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4428 set new allocate and free functions for it.
4429 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4430 free functions for the macro cache's objstack. (Why is this
4431 function building its own objfile?)
4432 * symmisc.c (print_objfile_statistics): Print statistics on the
4433 macro bcache.
4434 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4435
c899585b
RE
44362002-05-15 Richard Earnshaw <rearnsha@arm.com>
4437
4438 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4439 (REGISTER_U_ADDR): Delete definition.
4440 (arm_register_u_addr): Delete declaration.
4441
a6cdd8c5
RE
44422002-05-15 Richard Earnshaw <rearnsha@arm.com>
4443
4444 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4445 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4446
fd3a5ca1
DJ
44472002-05-14 Daniel Jacobowitz <drow@mvista.com>
4448
4449 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4450 stop_at -> stop_pc.
4451
c97dcfc7
AC
44522002-05-14 Andrew Cagney <ac131313@redhat.com>
4453
4454 * regcache.c (register_valid): Revise comments refering to "Not
4455 available" and "unavailable".
4456 * frame.c (frame_register_read): Ditto.
4457 * findvar.c (value_of_register): Ditto.
4458
93021b7d
AC
44592002-05-15 Andrew Cagney <cagney@redhat.com>
4460
4461 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4462 (remote-sim.o): Update dependencies.
4463 (d10v-tdep.o): Specify dependencies.
4464 (sim_d10v_h): Define.
4465
a86bc61c
JB
44662002-05-14 Jim Blandy <jimb@redhat.com>
4467
4468 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4469 * macrotab.c (macro_lookup_inclusion, find_definition,
4470 new_macro_table): Same.
4471
4472 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4473 not `! strcmp ()'. This is a dubious improvement.
4474 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4475
4476 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4477 although it's not necessary, to avoid a warning.
4478
2fdde8f8
DJ
44792002-05-14 Daniel Jacobowitz <drow@mvista.com>
4480
4481 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4482 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4483 TYPE_INSTANCE_FLAGS.
4484 (struct main_type): New.
4485 (struct type): Move most members to struct main_type. Change
4486 cv_type and as_type to new type_chain member. Add instance_flags.
4487 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4488 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4489 (finish_cv_type): Remove prototype.
4490 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4491 Set TYPE_CHAIN.
4492 (alloc_type_instance): New function.
4493 (smash_type): New function.
4494 (make_pointer_type, make_reference_type, make_function_type)
4495 (smash_to_member_type, smash_to_method_type): Call smash_type.
4496 (make_qualified_type): New function.
4497 (make_type_with_address_space): Call make_qualified_type.
4498 (make_cv_type): Likewise.
4499 (finish_cv_type): Remove unnecessary function.
4500 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4501 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4502 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4503 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4504 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4505 * hpread.c (hpread_read_struct_type): Likewise.
4506 * stabsread.c (read_struct_type): Likewise.
4507
843fedf4
EZ
45082002-05-14 Elena Zannoni <ezannoni@redhat.com>
4509
4510 * configure.tgt: Add a catch all sh* target, for cases like
4511 sh[2,3,4]-elf and sh-hms.
4512
05a6c72c
KS
45132002-05-14 Keith Seitz <keiths@redhat.com>
4514
4515 * event-loop.c (create_file_handler): Don't do anything but
4516 update data when we are given a fd which we are already
4517 monitoring.
4518
5d085aaf
ML
45192002-05-14 Michal Ludvig <mludvig@suse.cz>
4520
4521 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4522 (update_context): Use __func__ in warnings.
4523
9db8d71f
DJ
45242002-05-14 Daniel Jacobowitz <drow@mvista.com>
4525
4526 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4527 and tcp_close to net_open and net_close.
4528 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4529 using UDP if requested. Don't try to disable Nagle on UDP
4530 sockets.
4531 * remote.c (remote_serial_open): New function. Warn about UDP.
4532 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4533
5dbc6baa
EZ
45342002-05-13 Elena Zannoni <ezannoni@redhat.com>
4535
4536 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4537
cc3023f7
EZ
45382002-05-13 Elena Zannoni <ezannoni@redhat.com>
4539
4540 * configure.tgt: Remove sh-hms target.
4541 * MAINTAINERS: Don't list sh-hms as a separate target.
4542
ec2bcbe7
JB
45432002-05-13 Jim Blandy <jimb@redhat.com>
4544
4545 Add first preprocessor macro-expansion files.
4546 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4547 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4548 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4549 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4550 (COMMON_OBS): Add macrotab.o, macroexp.o.
4551 (macroexp.o, macrotab.o): New rules.
4552
6d531722
AC
45532002-05-13 Andrew Cagney <ac131313@redhat.com>
4554
4555 * config/m88k/tm-m88k.h: Update copyright.
4556 (m88k_target_write_pc): Declare
4557 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4558 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4559 (SHIFT_INST_REGS): Update definition.
4560 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4561 using old definition of TARGET_WRITE_PC.
4562 * regcache.c (generic_target_write_pc): Delete code handling
4563 NNPC_REGNUM.
4564 * gdbarch.sh (NNPC_REGNUM): Delete.
4565 * gdbarch.h, gdbarch.c: Regenerate.
4566
3e3f2739
RE
45672002-05-13 Richard Earnshaw <rearnsha@arm.com>
4568
4569 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4570 builtin reg number.
4571
0004e5a2
DJ
45722002-05-13 Daniel Jacobowitz <drow@mvista.com>
4573
4574 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4575 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4576 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4577 access macros.
4578 * c-typeprint.c (cp_type_print_method_args): Likewise.
4579 (c_type_print_args): Likewise.
4580 * d10v-tdep.c (d10v_push_arguments): Likewise.
4581 (d10v_extract_return_value): Likewise.
4582 * expprint.c (print_subexp): Likewise.
4583 * gdbtypes.c (lookup_primitive_typename): Likewise.
4584 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4585 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4586 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4587 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4588 (TYPE_VECTOR): Likewise.
4589 * hpread.c (hpread_read_struct_type)
4590 (fix_static_member_physnames, fixup_class_method_type)
4591 (hpread_type_lookup): Likewise.
4592 * mdebugread.c (parse_symbol, parse_type): Likewise.
4593 * p-lang.c (is_pascal_string_type): Likewise.
4594 * valops.c (hand_function_call): Likewise.
4595 * x86-64-tdep.c (classify_argument): Likewise.
4596
4597 * hpread.c (hpread_read_function_type)
4598 (hpread_read_doc_function_type): Call replace_type.
4599 * dstread.c (create_new_type): Delete.
4600 (decode_dst_structure, process_dst_function): Call alloc_type.
4601 Use type access macros.
4602
dff95cc7
MK
46032002-05-12 Mark Kettenis <kettenis@gnu.org>
4604
4605 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4606 the're not supported by the current architecture.
4607 (i387_fill_fxsave): Likewise.
4608
bbcd32ad
FF
46092002-05-12 Fred Fish <fnf@redhat.com>
4610
4611 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4612 sect_index_xxx members to index the first slot in section_offsets
4613 if all of the section_offsets are zero.
4614
89cf4787
MK
46152002-05-12 Mark Kettenis <kettenis@gnu.org>
4616
4617 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4618 checked in with last change.
4619
1f77ffc5
MK
46202002-05-12 Mark Kettenis <kettenis@gnu.org>
4621
4622 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4623 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4624 config.sub.
4625
89b8b4a9
DJ
46262002-05-12 Daniel Jacobowitz <drow@mvista.com>
4627
4628 * Makefile.in: Update dependencies.
4629
14a5e767
AC
46302002-05-11 Andrew Cagney <ac131313@redhat.com>
4631
4632 * language.c (local_hex_string_custom): Simplify. Do not depend
4633 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4634
4635 * memattr.c (mem_info_command): Replace calls to
4636 longest_local_hex_string and longest_local_hex_string_custom.
4637 * buildsym.c (make_blockvector): Ditto.
4638 * solib.c (info_sharedlibrary_command): Ditto.
4639 * tracepoint.c (tracepoints_info): Ditto.
4640 * symtab.c (print_msymbol_info): Ditto.
4641
4642 * language.c (local_hex_string): Delete.
4643 (local_hex_string_custom): Delete.
4644 (longest_local_hex_string): Rename to local_hex_string.
4645 (longest_local_hex_string_custom): Rename to
4646 local_hex_string_custom.
4647 * language.h (local_hex_string): Change parameter type to LONGEST.
4648 (local_hex_string_custom): Ditto.
4649 (longest_local_hex_string): Delete declaration.
4650 (longest_local_hex_string_custom): Ditto.
4651
4652 * solib.c: Update copyright.
4653 * memattr.c: Update copyright.
4654
13d01224
AC
46552002-05-11 Andrew Cagney <ac131313@redhat.com>
4656
4657 * arch-utils.h (legacy_register_to_value): Declare.
4658 (legacy_value_to_register): Declare.
4659 (legacy_convert_register_p): Declare.
4660 * arch-utils.c (legacy_register_to_value): New function.
4661 (legacy_value_to_register): New function.
4662 (legacy_convert_register_p): New function.
4663
4664 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4665 (VALUE_TO_REGISTER): Define.
4666 (CONVERT_REGISTER_P): Define.
4667 * gdbarch.h, gdbarch.c: Regenerate.
4668
4669 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4670 VALUE_TO_REGISTER.
4671 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4672 CONVERT_REGISTER_P.
4673
4a1970e4
DJ
46742005-05-11 Daniel Jacobowitz <drow@mvista.com>
4675 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4676
4677 * Makefile.in: Update dependencies for valops.c.
4678 * valops.c: Include "gdb_assert.h".
4679 (typecmp): Skip THIS parameter to methods.
4680 (find_method_list): Remove static_memfuncp argument,
4681 update callers. Check for stub methods.
4682 (find_value_oload_method_list): Don't set *static_memfuncp.
4683 (find_overload_match): Don't check for stub methods. Assert
4684 that methods are not stubbed. Handle static methods.
4685 (value_find_oload_method_list): Remove static_memfuncp argument.
4686 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4687 to the argument list for static stub methods.
4688 * value.h (value_find_oload_method_list): Update prototype.
4689
b2e75d78
AC
46902002-05-11 Andrew Cagney <ac131313@redhat.com>
4691
4692 * arch-utils.h (generic_register_size): Declare.
4693 (generic_register_raw_size, generic_register_virtual_size): Delete
4694 declarations.
4695 * arch-utils.c (generic_register_raw_size): Delete.
4696 (generic_register_size): New function.
4697 (generic_register_virtual_size): Delete.
4698
4699 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4700 default generic_register_size.
4701 * gdbarch.h, gdbarch.c: Re-generate.
4702
4703 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4704 register_virtual_size.
4705 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4706 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4707
451fbdda
AC
47082002-05-11 Andrew Cagney <ac131313@redhat.com>
4709
4710 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4711 * gdbarch.h, gdbarch.c: Regenerate.
4712 * gnu-v3-abi.c: Update copyright.
4713 (vtable_address_point_offset): Update.
4714 (gnuv3_rtti_type): Update.
4715 (gnuv3_baseclass_offset): Update.
4716 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4717 (init_fetch_link_map_offsets): Update.
4718 * remote.c (get_remote_state): Update.
4719
6d2f5cea
DJ
47202002-05-11 Daniel Jacobowitz <drow@mvista.com>
4721
4722 * TODO: Remove value_headof/value_from_vtable_info comment.
4723 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4724 * values.c (value_headof, value_from_vtable_info): Delete.
4725 * value.h (value_from_vtable_info): Delete prototype.
4726
d2324da4
AC
47272002-05-11 Andrew Cagney <ac131313@redhat.com>
4728
4729 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4730 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4731 $(gdb_regex_h).
4732 (gdb_assert_h): Define.
4733 (gdb_wait_h): Define.
4734 (gdb_regex_h): Define.
4735
5c717440
DJ
47362002-05-11 Daniel Jacobowitz <drow@mvista.com>
4737
4738 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4739 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4740
6c7861b3
JT
47412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4742
4743 * nbsd-tdep.c: Fix comment.
4744
ea5bc2a6
JT
47452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4746
4747 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4748 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4749 (nbsd-tdep.o): New dependency list.
4750 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4751 nbsd-tdep.h.
4752 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4753 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4754 * nbsd-tdep.c: New file.
4755 * nbsd-tdep.h: New file.
4756 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4757 nbsd-tdep.h.
4758 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4759 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4760 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4761 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4762
b28da865
JT
47632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4764
4765 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4766 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4767 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4768 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4769 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4770 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4771
4b8ff1fa
JT
47722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4773
4774 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4775 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4776 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4777 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4778 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4779 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4780 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4781
dfe6eb1f
JT
47822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4783
4784 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4785 fetch_elfcore_registers to...
4786 * i386nbsd-tdep.c: ...here.
4787 (i386nbsd_use_struct_convention): Rename to...
4788 (i386nbsd_aout_use_struct_convention): ...this.
4789 (i386nbsd_supply_reg): New function.
4790 (i386nbsd_fill_reg): New function.
4791 (fetch_core_registers): Use i386nbsd_supply_reg.
4792 (fetch_elfcore_registers): Likewise.
4793 (_initialize_i386nbsd_tdep): New function.
4794 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4795 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4796 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4797 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4798 (i386nbsd_aout_use_struct_convention): ...this.
4799
20cb8cda
JT
48002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4801
4802 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4803 (store_inferior_registers): Use shnbsd_fill_reg.
4804 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4805 sh_nbsd_supply_register): Collapse into...
4806 (shnbsd_supply_reg): ...this.
4807 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4808 (shnbsd_fill_reg): ...this.
4809 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4810 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4811 (fetch_core_registers): Use shnbsd_supply_reg.
4812 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4813 (sh_nbsd_core_fns): Rename to...
4814 (shnbsd_core_fns): ...this.
4815 (sh_nbsd_elfcore_fns): Rename to...
4816 (shnbsd_elfcore_fns): ...this.
4817 (sh_nbsd_init_abi): Rename to...
4818 (shnbsd_init_abi): ...this.
4819 (_initialize_sh_nbsd_tdep): Rename to...
4820 (_initialize_shnbsd_tdep): ...this.
4821 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4822 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4823 sh_nbsd_fill_register): Remove prototypes.
4824 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4825
e750d25e
JT
48262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4827
4828 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4829 (i387-nat.o): Delete dependency list.
4830 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4831 (x86-64-linux-nat.o): Likewise.
4832 * i387-nat.c: Delete file, moving contents to...
4833 * i387-tdep.c: ...here.
4834 * i387-nat.h: Rename...
4835 * i387-tdep.h: ...to this.
4836 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4837 * i386-linux-nat.c: Likewise.
4838 * i386bsd-nat.c: Likewise.
4839 * i386gnu-nat.c: Likewise.
4840 * i386nbsd-nat.c: Likewise.
4841 * i386v4-nat.c: Likewise.
4842 * x86-64-linux-nat.c: Likewise.
4843 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4844 * config/i386/go32.mh (NATDEPFILES): Likewise.
4845 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4846 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4847 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4848 * config/i386/linux.mh (NATDEPFILES): Likewise.
4849 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4850 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4851 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4852 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4853
1aee598a
JT
48542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4855
4856 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4857 (alphanbsd-nat.o): Remove dependency list.
4858 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4859 * alphanbsd-nat.c: Delete. Contents moved to...
4860 * alphanbsd-tdep.c: ...here.
4861 (_initialize_alphanbsd_tdep): Register core functions.
4862 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4863
12bcb0fe
JT
48642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4865
4866 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4867 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4868 (alphanbsd-nat.o): Likewise.
4869 (alphabsd-tdep.o): New dependency list.
4870 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4871 (fill_gregset): Use alphabsd_fill_reg.
4872 (supply_fpregset): Use alphabsd_supply_fpreg.
4873 (fill_fpregset): Use alphabsd_fill_fpreg.
4874 (fetch_inferior_registers): Use struct reg and struct fpreg
4875 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4876 and alphabsd_supply_fpreg.
4877 (store_inferior_registers): Use struct reg and struct fpreg
4878 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4879 and alphabsd_fill_fpreg.
4880 * alphabsd-tdep.c: New file.
4881 * alphabsd-tdep.h: New file.
4882 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4883 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4884 alphabsd_supply_fpreg.
4885 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4886 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4887
361d1df0
EC
48882002-05-11 Eric Christopher <echristo@redhat.com>
4889
4890 * mips-tdep.c (mips_double_register_type): Fix thinko.
4891 (mips_single_register_type): Ditto.
4892 * MAINTAINERS: Add self.
4893
92dd7cee
MK
48942002-05-11 Mark Kettenis <kettenis@gnu.org>
4895
4896 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4897 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4898 right thing on architectures with different endianness and/or
4899 integer sizes.
4900
e27da16d
JT
49012002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4902
4903 From Christian Limpach <chris@Pin.LU>
4904 * configure.in: Change sed expression which comments out
4905 NATDEPFILES to also comment out continuation lines.
4906 * configure: Regenerate.
4907
ddde02bd
EZ
49082002-05-10 Elena Zannoni <ezannoni@redhat.com>
4909
4910 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4911 big patch.
4912
1c922164
EZ
49132002-05-10 Elena Zannoni <ezannoni@redhat.com>
4914
4915 * sh-tdep.c: Include correct file.
4916
283150cd
EZ
49172002-05-10 Elena Zannoni <ezannoni@redhat.com>
4918
4919 New support for sh64-elf (sh5) target.
4920
4921 * configure.tgt: For sh64-elf target, default to sh-elf.
4922
4923 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4924 (struct gdbarch_tdep): Add new fields for new registers and ABI
4925 info.
361d1df0 4926
283150cd
EZ
4927 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4928 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4929 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4930 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4931 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4932 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4933 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4934 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4935 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4936 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4937 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4938 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4939 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4940 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4941 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4942 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4943 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4944 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4945 sign_extend, sh64_nofp_frame_init_saved_regs,
4946 sh64_init_extra_frame_info, sh64_get_saved_register,
4947 sh64_extract_struct_value_address, sh64_pop_frame,
4948 sh64_push_arguments, sh64_extract_return_value,
4949 sh64_store_return_value, sh64_show_media_regs,
4950 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4951 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4952 sh_sh64_register_virtual_type,
4953 sh_sh64_register_convert_to_virtual,
4954 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4955 sh64_register_read, sh64_pseudo_register_write,
4956 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4957 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4958 sh64_do_pseudo_register, sh_compact_do_registers_info,
4959 sh64_do_registers_info, sh_gdbarch_init): New functions.
4960
3117ed25
EZ
49612002-05-10 Elena Zannoni <ezannoni@redhat.com>
4962
4963 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4964
2654e6d4
DJ
49652002-05-10 Daniel Jacobowitz <drow@mvista.com>
4966
4967 * linespec.c (decode_line_1): Check for a double quote after
4968 a filename correctly.
4969
9ab3e532
JB
49702002-05-10 Jim Blandy <jimb@redhat.com>
4971
4972 Properly track the size of the current objfile's .debug_line section.
4973 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4974 (DWARF_LINE_SIZE): New macro.
4975 (dwarf2_build_psymtabs_hard): Record the line section's size in
4976 the partial symbol table.
4977 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4978 symbol table.
4979
126fa72d
PS
49802002-05-10 Petr Sorfa <petrs@caldera.com>
4981
4982 * ia64-tdep.c: Handle breakpoints on L instruction type
4983 in MLX instruction bundle by moving the breakpoint to
4984 the third slot (X instruction type) as L holds only data.
4985
1f077a3e
KB
49862002-05-10 Kevin Buettner <kevinb@redhat.com>
4987
4988 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4989 (process_one_symbol): Complain about discarding local symbols
4990 due to a misplaced N_LBRAC entry.
4991
8120c9d5 49922002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
4993
4994 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
4995 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4996 decrease the depth we are at, in the case of templates.
361d1df0 4997
67b2c998
DJ
49982002-05-09 Daniel Jacobowitz <drow@mvista.com>
4999
5000 * mips-tdep.c (mips_float_register_type): New function.
5001 (mips_double_register_type): New function.
5002 (mips_print_register): Use them.
5003 (do_fp_register_row): Likewise.
5004
fd326606
DJ
50052002-05-09 Daniel Jacobowitz <drow@mvista.com>
5006
6609d9af 5007 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5008 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5009 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5010
bef35864
MS
50112002-05-09 Michael Snyder <msnyder@redhat.com>
5012
5013 * remote-rdp.c (remote_rdp_can_run): Remove.
5014
c55a3f73
TT
50152002-05-09 Tom Tromey <tromey@redhat.com>
5016
5017 * jv-valprint.c (java_val_print): Handle `char' as a special case
5018 of TYPE_CODE_INT.
5019
b8d5e71d
MS
50202002-05-09 Michael Snyder <msnyder@redhat.com>
5021
5022 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5023 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5024 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5025 str r(0123),[sp,#nn].
361d1df0 5026 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5027 order-independent by placing it in a loop.
5028
e2cd42dd
MS
50292002-05-06 Michael Snyder <msnyder@redhat.com>
5030
5031 * stabsread.c (read_type): Add recognition for new attribute:
5032 "@V;" means that an array type is actually a vector.
5033 This is analogous to the vector flag that's been added to dwarf2.
5034
3ce1502b
MK
50352002-05-09 Mark Kettenis <kettenis@gnu.org>
5036
5037 * i386-tdep.h (i386_abi): New enum.
5038 (struct gdbarch_tdep): Replace os_ident member with abi.
5039 (i386_gdbarch_register_os_abi): New prototype.
5040 * i386-tdep.c (i386_abi_names): New array.
5041 (process_note_abi_tag_sections): Removed.
5042 (process_note_sections): New function.
5043 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5044 (struct i386_abi_handler): New struct.
5045 (i386_abi_handler_list): New variable.
5046 (i386_gdbarch_register_os_abi): New function.
5047 (i386_gdbarch_init): Adapt for the changes given above.
5048
084c156a
DJ
50492002-05-08 Daniel Jacobowitz <drow@mvista.com>
5050
5051 * gregset.h: Say "GNU/Linux".
5052
6599f021
EZ
50532002-05-08 Elena Zannoni <ezannoni@redhat.com>
5054
5055 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5056 (build_gdbtypes): Build builtin_type_v2_float.
5057 (_initialize_gdbtypes): Register new builtin type.
5058
40af4b0c
AC
50592002-05-08 Andrew Cagney <ac131313@redhat.com>
5060
5061 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5062 (clear_gdbarch_swap): New function.
5063 (initialize_non_multiarch): Call.
5064 (gdbarch_update_p): Before calling init(), swap out and clear the
5065 existing architecture.
5066 * gdbarch.c: Regenerate.
5067
4fe84f46
JT
50682002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5069
5070 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5071 alphanbsd-tdep.c.
5072
4015edd1
JT
50732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5074
5075 * sh-nbsd-nat.c: Rename to...
5076 * shnbsd-nat.c: ...this.
5077 * sh-nbsd-tdep.c: Rename to...
5078 * shnbsd-tdep.c: ...this.
5079 * sh-nbsd-tdep.h: Rename to...
5080 * shnbsd-tdep.h: ...this.
5081 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5082 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5083
0e2bd219
RE
50842002-05-08 Richard Earnshaw <rearnsha@arm.com>
5085
5086 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5087 concatenation for command help messages.
5088
13a38d45
JT
50892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5090
5091 * NEWS: Note new sh*-*-netbsdelf* configuration.
5092 * configure.host: Set gdb_host_cpu to sh for all sh*.
5093 (sh*-*-netbsdelf*): New host.
5094 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5095 (sh*-*-netbsdelf*): New target.
5096 * sh-nbsd-nat.c: New file.
5097 * sh-nbsd-tdep.c: New file.
5098 * sh-nbsd-tdep.h: New file.
5099 * config/sh/nbsd.mh: New file.
5100 * config/sh/nbsd.mt: New file.
5101 * config/sh/nm-nbsd.h: New file.
5102 * config/sh/tm-nbsd.h: New file.
5103
d658f924
JT
51042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5105
5106 * sh-tdep.c (sh_osabi_names): Declare.
5107 (process_note_abi_tag_sections): New function.
5108 (get_elfosabi): Ditto.
5109 (sh_gdbarch_register_os_abi): Ditto.
5110 (sh_dump_tdep): Ditto.
5111 _initialize_sh_tdep): Use gdbarch_register to register
5112 sh_gdbarch_init and sh_dump_tdep.
5113 * config/sh/tm-sh.h (sh_osabi): Declare.
5114 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5115
848cfffb
AC
51162002-05-07 Andrew Cagney <ac131313@redhat.com>
5117
5118 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5119 (thumb_scan_prologue): Ditto.
5120 (arm_find_callers_reg): Ditto.
5121 (arm_frame_chain): Ditto.
5122 (arm_init_extra_frame_info): Ditto.
5123 (arm_frame_saved_pc): Ditto.
5124 (arm_pop_frame): Ditto.
5125 (arm_push_return_address): New function.
5126 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5127 call_dummy_location, call_dummy_breakpoint_offset_p,
5128 call_dummy_breakpoint_offset, call_dummy_p,
5129 call_dummy_stack_adjust_p, call_dummy_words,
5130 sizeof_call_dummy_words, call_dummy_start_offset,
5131 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5132 call_dummy_address, push_return_address and push_dummy_frame for
5133 generic dummy frames.
5134
e7d717c0
JT
51352002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5136
5137 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5138 size computation for alloca.
5139 (sh_fp_frame_init_saved_regs): Likewise.
5140
7bbcf283
RE
51412002-05-07 Richard Earnshaw <rearnsha@arm.com>
5142
5143 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5144 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5145 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5146 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5147 * remote-rdp.c (remote_rdp_fetch_register): Use
5148 ARM_MAX_REGISTER_RAW_SIZE.
5149 (remote_rdp_store_register): Likewise.
5150
4657573b
ML
51512002-05-07 Michal Ludvig <mludvig@suse.cz>
5152
361d1df0 5153 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5154 added default labels to switch {} statements.
5155 * x86-64-tdep.c: Ditto.
5156 * x86-64-linux-nat.c: Ditto.
5157
010f3b2f
JT
51582002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5159
5160 * solib.h: Protect against multiple inclusion.
5161
debd256d
JB
51622002-05-06 Jim Blandy <jimb@redhat.com>
5163
9ab3e532
JB
5164 Add first preprocessor macro-expansion files.
5165 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5166 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5167 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5168 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5169 (COMMON_OBS): Add macrotab.o, macroexp.o.
5170 (macroexp.o, macrotab.o): New rules.
5171
debd256d
JB
5172 Separate the job of reading the line number info statement program
5173 header (...expialidocious) out into its own function.
5174 * dwarf2read.c (struct line_head, struct filenames, struct
5175 directories): Replace with...
5176 (struct line_header): New structure, containing the full
5177 contents of the statement program header, including the
5178 include directory and file name tables.
5179 (read_file_scope): If we have line number info, instead of just
5180 calling dwarf_decode_lines to do all the work, call
5181 dwarf_decode_line_header first to get a `struct line_header'
5182 containing the data in the statement program header, and then
5183 pass that to dwarf_decode_lines, which will pick up where that
5184 left off. Be sure to clean up the `struct line_header' object.
5185 (dwarf_decode_line_header, free_line_header, add_include_dir,
5186 add_file_name): New functions.
5187 (dwarf_decode_lines): Move all the code to read the statement
5188 program header into dwarf_decode_line_header. Take the line
5189 header it built as the first argument, instead of the offset to
5190 the compilation unit's line number info. Use the new `struct
5191 line_header' type instead of the old structures. No need to do
5192 cleanups here now, since we don't allocate anything.
5193 (dwarf2_statement_list_fits_in_line_number_section,
5194 dwarf2_line_header_too_long): New complaints.
5195
ac3aafc7
EZ
51962002-05-06 Elena Zannoni <ezannoni@redhat.com>
5197
5198 * gdbtypes.c (init_vector_type): New function.
5199 (build_builtin_type_vec128): Simplify the representation of SIMD
5200 registers.
5201 (build_gdbtypes): Initialize new builtin vector types.
5202 (_initialize_gdbtypes): Register new vector types with gdbarch.
5203 (builtin_type_v4_float, builtin_type_v4_int32,
5204 builtin_type_v8_int16, builtin_type_v16_int8,
5205 builtin_type_v2_int32, builtin_type_v4_int16,
5206 builtin_type_v8_int8): New (renamed) SIMD types.
5207
13e49980
MK
52082002-05-06 Mark Kettenis <kettenis@gnu.org>
5209
5210 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5211 (i387_fill_fxsave): Likewise.
5212
997b20b8
AO
52132002-05-05 Alexandre Oliva <aoliva@redhat.com>
5214
5215 * alpha-tdep.c (alpha_extract_return_value): Don't use
5216 non-constant array size in prototype.
5217
535c96ce
AC
52182002-05-04 Andrew Cagney <ac131313@redhat.com>
5219
5220 From Brian Taylor <briant at model dot com>:
5221 * ui-out.c (ui_out_field_core_addr): Use the function
5222 longest_local_hex_string_custom'to format addresses > 32 bits
5223 wide.
5224
5225 * ui-out.c (ui_out_field_core_addr): Update comment.
5226
bedfa57b
AC
52272002-05-04 Andrew Cagney <ac131313@redhat.com>
5228
5229 * stack.c (select_and_print_frame): Make static. Delete the
5230 parameter `level'.
5231 (func_command): Update call.
5232 (select_frame_command): Delete code computing the frame level.
5233 * frame.h (select_and_print_frame): Delete declaration.
5234
f621c63e
AC
52352002-05-04 Andrew Cagney <ac131313@redhat.com>
5236
5237 * sparc-tdep.c (sparc_get_saved_register): Comment why
5238 get_prev_frame call is safe.
5239
0f7d239c
AC
52402002-05-04 Andrew Cagney <ac131313@redhat.com>
5241
5242 * frame.h (select_frame): Delete level parameter.
5243 * stack.c (select_frame): Update. Use frame_relative_level to
5244 obtain the frame's level.
5245 (select_and_print_frame): Update call.
5246 (select_frame_command): Ditto.
5247 (up_silently_base): Ditto.
5248 (down_silently_base): Ditto.
5249 * ocd.c (ocd_start_remote): Ditto.
5250 * remote-rdp.c (remote_rdp_open): Ditto.
5251 * remote-mips.c (mips_initialize): Ditto.
5252 (common_open): Ditto.
5253 * remote-e7000.c (e7000_start_remote): Ditto.
5254 * m3-nat.c (select_thread): Ditto.
5255 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5256 (child_get_current_exception_event): Ditto.
5257 * varobj.c (varobj_create): Ditto.
5258 (varobj_update): Ditto.
5259 (c_value_of_root): Ditto.
5260 * tracepoint.c (finish_tfind_command): Ditto.
5261 * corelow.c (core_open): Ditto.
5262 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5263 * thread.c (info_threads_command): Ditto.
5264 (switch_to_thread): Ditto.
5265 * infrun.c (normal_stop): Ditto.
5266 (restore_selected_frame): Ditto.
5267 (restore_inferior_status): Ditto.
5268 * breakpoint.c (insert_breakpoints): Ditto.
5269 (watchpoint_check): Ditto.
5270 (bpstat_stop_status): Ditto.
5271 (do_enable_breakpoint): Ditto.
5272 * blockframe.c (flush_cached_frames): Ditto.
5273 (reinit_frame_cache): Ditto.
5274
71d6c7b1
AC
52752002-05-04 Andrew Cagney <ac131313@redhat.com>
5276
5277 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5278 maintainer.
5279
cda6c68a
JB
52802002-05-04 Jim Blandy <jimb@redhat.com>
5281
5282 * gdbtypes.c (replace_type): Doc fix.
5283
5c1c87f0
AC
52842002-05-04 Andrew Cagney <ac131313@redhat.com>
5285
5286 * valprint.c (strcat_longest): Delete commented out function.
5287 Update copyright.
5288
cd9bfe15
AC
52892002-05-04 Andrew Cagney <ac131313@redhat.com>
5290
5291 * MAINTAINERS: Mark a29k as deleted.
5292 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5293 Move new configurations to the top.
5294 * configure.tgt: Remove a29k.
5295 * config/a29k/tm-vx29k.h: Delete.
5296 * config/a29k/vx29k.mt: Delete.
5297 * config/a29k/tm-a29k.h: Delete.
5298 * config/a29k/a29k-udi.mt: Delete.
5299 * config/a29k/a29k.mt: Delete.
5300 * a29k-tdep.c: Delete.
5301 * remote-udi.c: Delete.
5302 * remote-mm.c: Delete.
5303 * remote-eb.c: Delete.
5304 * remote-adapt.c: Delete.
5305 * Makefile.in: Remove obsolete code.
5306 * gdbserver/Makefile.in: Ditto.
5307 * config/s390/s390x.mt: Ditto.
5308 * config/s390/s390.mt: Ditto.
5309 * config/sparc/sparclynx.mh: Ditto.
5310 * config/sparc/linux.mh: Ditto.
5311 * config/pa/hppaosf.mh: Ditto.
5312 * config/pa/hppabsd.mh: Ditto.
5313 * config/ns32k/nbsd.mt: Ditto.
5314 * config/mips/vr5000.mt: Ditto.
5315 * config/m68k/sun3os4.mh: Ditto.
5316 * config/m68k/nbsd.mt: Ditto.
5317 * config/m68k/m68klynx.mh: Ditto.
5318 * config/m32r/m32r.mt: Ditto.
5319 * config/i386/x86-64linux.mt: Ditto.
5320 * config/i386/nbsdelf.mt: Ditto.
5321 * config/i386/nbsd.mt: Ditto.
5322 * config/i386/i386lynx.mh: Ditto.
5323
bf0c5130
AC
53242002-05-04 Andrew Cagney <ac131313@redhat.com>
5325
5326 * target.c (debug_print_register): New function. Handle oversize
5327 registers.
5328 (debug_to_fetch_registers): Call.
5329 (debug_to_store_registers): Call.
5330
2ae1c2d2
JB
53312002-05-03 Jim Blandy <jimb@redhat.com>
5332
13a393b0
JB
5333 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5334 (read_type): Doc fix.
5335 * gdbtypes.c (replace_type): Doc fix.
5336
2ae1c2d2
JB
5337 * stabsread.c (multiply_defined_struct): New complaint.
5338 (read_struct_type): If the type we were passed isn't empty, or
5339 incomplete, don't read the new struct type into it; complain,
5340 and return the original type unchanged. Take a new `type_code'
5341 argument, which is the type code for the new type.
5342 (read_type): Rather than storing the type's type code here, pass
5343 it as an argument to read_struct_type, and let that take care of
5344 storing it. That way, we don't overwrite the original type code,
5345 so read_struct_type can use it to decide whether we're overwriting
5346 something we shouldn't.
5347 (complain_about_struct_wipeout): New function.
5348
8de9bdc4
AC
53492002-05-03 Andrew Cagney <ac131313@redhat.com>
5350
5351 * gdbarch.sh: Assert that gdbarch is non-NULL.
5352 * gdbarch.c: Regenerate.
5353
f773fdbb
JM
53542002-05-03 Jason Merrill <jason@redhat.com>
5355
5356 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5357 and return NULL.
5358
0e04a514
ML
53592002-05-03 Michal Ludvig <mludvig@suse.cz>
5360
5361 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5362 (x86_64_dwarf2gdb_regno_map_length),
5363 (x86_64_dwarf2_reg_to_regnum): Added.
5364 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5365 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5366 (_initialize_x86_64_tdep): Synced with the change above.
5367 (x86_64_skip_prologue): Reformulated message.
5368
065432a8
PM
53692002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5370
5371 * f-exp.y: Also use new prev_lexptr variable
5372 to improve error reporting. Based on Michael Snyder
5373 2002-04-24 dated patch to c-exp.y.
5374 * jv-exp.y: Likewise.
5375 * m2-exp.y: Likewise.
5376
a3162708
EZ
53772002-05-02 Elena Zannoni <ezannoni@redhat.com>
5378
5379 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5380 we are dealing with vectors.
5381
03620c38
PM
53822002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5383
5384 * config/m68k/tm-nbsd.h: Obvious fix,
5385 correct machine name.
5386
6604db2e
PM
53872002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5388
5389 * p-typeprint.c (pascal_type_print_base): Add support
5390 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5391
0906b739
PM
53922002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5393
5394 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5395 for fondamental pascal 'char' type.
5396
e2625b33
PM
53972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5398
5399 * p-lang.h (is_pascal_string_type): Declaration changed,
5400 new sixth argument of type char ** added.
361d1df0 5401 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5402 changed. Args length_pos, length_size, string_pos, char_size
5403 can now be NULL. New argument arrayname set to the field
5404 name of the char array. Return value set to char array
5405 field index plus one.
361d1df0 5406 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5407 is_pascal_string_type function.
5408
cf17c188
AC
54092002-05-02 Andrew Cagney <cagney@redhat.com>
5410
5411 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5412 <cagney@redhat.com> change.
5413 * gdbarch.c: Regenerate.
5414
52bca491
AC
54152002-05-02 Andrew Cagney <cagney@redhat.com>
5416
5417 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5418 before probing for a new one. Detect errorenous gdbarch_init
5419 functions.
5420 * gdbarch.c: Regenerate.
5421
d5e72505
AC
54222002-05-01 Andrew Cagney <cagney@redhat.com>
5423
5424 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5425 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5426 * config/v850/tm-v850.h: Ditto. Update copyright.
5427
af566d9f
AC
54282002-04-30 Andrew Cagney <ac131313@redhat.com>
5429
5430 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5431 current_gdbarch.
5432
880d85fa
MS
54332002-04-30 Michael Snyder <msnyder@redhat.com>
5434
94c30b78
MS
5435 * arm-tdep.c: Whitespace clean-ups.
5436 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5437 should have been removed as part of 4/24 change.
5438
6f5987a6
KB
54392002-04-30 Kevin Buettner <kevinb@redhat.com>
5440
5441 * rs6000-tdep.c: Added comment describing how fpscr register
5442 numbers were chosen.
5443
1a113c93
MS
54442002-04-30 Michael Snyder <msnyder@redhat.com>
5445
5446 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5447
9a6f53fe
EZ
54482002-04-29 Elena Zannoni <ezannoni@redhat.com>
5449
5450 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5451 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5452 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5453
11ed25ac
KB
54542002-04-29 Kevin Buettner <kevinb@redhat.com>
5455
5456 From Louis Hamilton <hamilton@redhat.com>:
5457 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5458 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5459 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5460 not bfd-private xcoff data, to determine wordsize.
5461 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5462
ae232405
AC
54632002-04-29 Andrew Cagney <ac131313@redhat.com>
5464
5465 GDB 5.2 released from 5.2 branch.
5466
91fd20f7
ML
54672002-04-29 Michal Ludvig <mludvig@suse.cz>
5468
5469 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5470 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5471 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5472
2dc5091b
EZ
54732002-04-29 Elena Zannoni <ezannoni@redhat.com>
5474
5475 * rs6000-tdep.c (rs6000_extract_return_value,
5476 rs6000_store_return_value): Handle returning vectors.
5477 (rs6000_gdbarch_init): Use
5478 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5479 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5480 New function.
5481 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5482 vectors.
5483 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5484 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5485
2b9848d8
PM
54862002-04-24 Pierre Muller <ics.u-strasbg.fr>
5487
5488 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5489 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5490 with fprintf_unfiltered (gdb_stderr,...).
5491
f8d17dc5
PM
54922002-04-24 Pierre Muller <ics.u-strasbg.fr>
5493
5494 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5495 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5496 Replace fprintf (stderr,...
5497 with fprintf_unfiltered (gdb_stderr,....
5498 * remote-es.c: Likewise.
5499 * remote-os9k.c: Likewise.
5500 * remote-st.c: Likewise.
5501
2f2f1ad1
AS
55022002-04-28 Andreas Schwab <schwab@suse.de>
5503
5504 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5505 linux-proc.o and gcore.o.
5506
b6779aa2
AC
55072002-04-26 Michal Ludvig <mludvig@suse.cz>
5508
5509 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5510 code without frame pointers.
5511
7e57f5f4
AC
55122002-04-26 Andrew Cagney <ac131313@redhat.com>
5513
5514 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5515 ON_STACK is needed.
5516
2ceb85d0
BE
55172002-04-26 Ben Elliston <bje@redhat.com>
5518
5519 * target.c (do_xfer_memory): Correct reference to the new option
5520 "trust-readonly-sections".
5521
f5f8a009
EZ
55222002-04-26 Elena Zannoni <ezannoni@redhat.com>
5523
5524 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5525 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5526 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5527 vectors.
5528 (read_array_type): Record the fact that this array type is really a
5529 vector (i.e. are passed in by value).
5530
5868c862
JT
55312002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5534 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5535 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5536 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5537 * alpha-linux-tdep.c: Include frame.h.
5538 (alpha_linux_sigcontext_addr): New function.
5539 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5540 alpha_linux_sigcontext_addr.
5541 * alpha-osf1-tdep.c: Include gdbcore.h.
5542 (alpha_osf1_sigcontext_addr): New function.
5543 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5544 alpha_osf1_sigcontext_addr.
5545 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5546 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5547
bfb01f37
AC
55482002-04-26 Andrew Cagney <ac131313@redhat.com>
5549
361d1df0 5550 * stack.c (selected_frame_level):
bfb01f37
AC
5551 (select_frame): Do not set selected_frame_level.
5552 * frame.h (selected_frame_level): Delete declaration.
5553
15813d3f
AC
55542002-04-26 Andrew Cagney <ac131313@redhat.com>
5555
5556 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5557 convert_from_func_ptr-addr when AIX / PowerOpen.
5558
6096c27a
AC
55592002-04-25 Andrew Cagney <ac131313@redhat.com>
5560
5561 * valops.c (hand_function_call): Call
5562 generic_save_call_dummy_addr.
5563 * frame.h (generic_save_call_dummy_addr): Declare.
5564 * blockframe.c (struct dummy_frame): Add fields call_lo and
5565 call_hi.
5566 (generic_find_dummy_frame): Check for PC in range call_lo to
5567 call_hi instead of entry_point_address.
5568 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5569 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5570 (generic_save_call_dummy_addr): New function.
5571
f510d44e
DM
55722002-04-24 David S. Miller <davem@redhat.com>
5573
5574 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5575 sparc_skip_prologue.
5576 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5577 information to find prologue when possible.
5578 (sparc_prologue_frameless_p): Call examine_prologue directly.
5579 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5580 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5581 second argument.
5582 (SKIP_PROLOGUE): Likewise.
5583
15d72a92
JT
55842002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5585
5586 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5587 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5588 indicate that the condition it was testing is always true.
5589 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5590 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5591 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5592
accc6d1f
JT
55932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5594
5595 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5596 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5597 tdep->jb_pc and tdep->jb_elt_size.
5598 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5599 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5600 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5601 * alpha-nat.c (get_longjmp_target): Remove.
5602 (JB_ELEMENT_SIZE): Ditto.
5603 (JB_PC): Ditto.
5604 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5605 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5606 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5607 to alpha_get_longjmp_target.
5608 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5609 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5610 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5611
1bfdc549
AC
56122002-04-25 Andrew Cagney <ac131313@redhat.com>
5613
5614 * README: Update to GDB 5.2.
5615
1bd316f0
AC
56162002-04-25 Andrew Cagney <ac131313@redhat.com>
5617
5618 * gdbarch.sh (LC_ALL): Set to `c'.
5619
2e5ff58c
TR
56202002-04-25 Theodore A. Roth <troth@verinet.com>
5621
5622 * avr-tdep.c: Ran through gdb_indent.sh.
5623
e33ce519
TR
56242002-04-25 Theodore A. Roth <troth@verinet.com>
5625
5626 * MAINTAINERS: Add myself as AVR maintainer.
5627 * NEWS: Note new target avr.
5628
8818c391
TR
56292002-04-25 Theodore A. Roth <troth@verinet.com>
5630
5631 * Makefile.in: Add support for AVR target.
5632 * configure.tgt: Add support for AVR target.
5633 * avr-tdep.c: New file
5634 * config/avr/avr.mt: New file.
5635
79509c2d
TR
56362002-04-25 Theodore A. Roth <troth@verinet.com>
5637
5638 * MAINTAINERS: Add myself to write-after-approval.
5639
dac8068e
PM
56402002-04-24 Pierre Muller <ics.u-strasbg.fr>
5641
5642 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5643 with fprintf_unfiltered (gdb_stderr,....
5644
25bf3106
PM
56452002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5646
5647 Fix PR gdb/508.
5648 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5649
24467a86
PM
56502002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5651
5652 * p-exp.y: Also use new prev_lexptr variable
5653 to improve error reporting. Based on Michael Snyder
5654 2002-04-24 dated patch to c-exp.y.
5655
95b80706
JT
56562002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5657
5658 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5659 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5660 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5661 to 0.
5662 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5663 and struct value.
5664 (FUNCTION_START_OFFSET): Remove.
5665 (BREAKPOINT): Ditto.
5666
e90cc612
JT
56672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5668
5669 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5670 * NEWS: Ditto.
5671
6c72f9f9
JT
56722002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5673
5674 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5675 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5676 alpha_linux_pc_in_sigtramp.
5677 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5678 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5679 alpha_osf1_pc_in_sigtramp.
5680 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5681 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5682 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5683 alphafbsd_pc_in_sigtramp.
5684 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5685 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5686 alphanbsd_pc_in_sigtramp.
5687 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5688 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5689
5e4f3379
JT
56902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5691
5692 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5693
da8ca43d
JT
56942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5695
5696 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5697 alphanbsd-tdep.c.
5698 (alphanbsd-nat.o): New dependency list.
5699 (alphanbsd-tdep.o): Ditto.
5700 * NEWS: Note new native NetBSD/alpha configuration.
5701 * alphanbsd-nat.c: New file.
5702 * alphanbsd-tdep.c: Ditto.
5703 * configure.host (alpha*-*-netbsd*): New host.
5704 * configure.tgt (alpha*-*-netbsd*): New target.
5705 * config/alpha/nbsd.mh: New file.
5706 * config/alpha/nbsd.mt: Ditto.
5707 * config/alpha/nm-nbsd.h: Ditto.
5708 * config/alpha/tm-nbsd.h: Ditto.
5709
36a6271d
JT
57102002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5711
5712 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5713 (alpha-osf1-tdep.o): New dependency list.
5714 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5715 and skip_sigtramp_frame members.
5716 * alpha-linux-tdep.c: Include gdbcore.h.
5717 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5718 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5719 * alpha-osf1-tdep.c: New file.
5720 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5721 alpha-osf1-dep.c.
5722 (alpha_frame_past_sigtramp_frame): New function.
5723 (alpha_dynamic_sigtramp_offset): Ditto.
5724 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5725 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5726 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5727 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5728 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5729 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5730 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5731 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5732 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5733 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5734 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5735 to find_solib_trampoline_target.
5736 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5737 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5738 (SKIP_TRAMPOLINE_CODE): Remove.
5739 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5740 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5741 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5742 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5743 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5744 (PROC_SIGTRAMP_MAGIC): Ditto.
5745 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5746 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5747 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5748 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5749 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5750
2f4bc57b
JT
57512002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5752
5753 * NEWS: Note that Alpha targets are now multi-arch.
5754
665132f9
MS
57552002-04-24 Michael Snyder <msnyder@redhat.com>
5756
5757 * parser-defs.h (prev_lexptr): New external variable.
5758 * parse.c (parse_exp_1): Set prev_lexptr to null before
5759 calling the language-specific parser.
5760 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5761 (yyerror): Use prev_lexptr in error reporting.
5762
32872fa7
DJ
57632002-04-24 Daniel Jacobowitz <drow@mvista.com>
5764
5765 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5766 * gregset.h: If FILL_FPXREGSET is defined, provide
5767 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5768 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5769 is defined, call fill_fpxregset.
5770
57e76fac
MS
57712002-04-24 Roland McGrath <roland@frob.com>
5772
5773 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5774 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5775 (supply_gregset, supply_fpregset): New functions.
5776
5777 * gnu-nat.c (gnu_find_memory_regions): New function.
5778 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5779 (gnu_xfer_memory): Add a cast.
5780
f43845b3
MS
57812002-04-24 Michael Snyder <msnyder@redhat.com>
5782
361d1df0 5783 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5784 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5785 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5786 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5787 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5788 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5789
a0abec03
AC
5790Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5791
5792 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5793 NUM_PSEUDO_REGS can be used.
5794
d7bd68ca
AC
57952002-04-24 Andrew Cagney <ac131313@redhat.com>
5796
5797 * arch-utils.h: Update copyright.
5798
5799 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5800 * gdbarch.h, gdbarch.c: Re-generate.
5801
5802 * inferior.h (IN_SIGTRAMP): Delete definition.
5803 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5804 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5805
5806 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5807 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5808 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5809 (find_proc_framesize): Ditto.
5810 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5811 (alpha_init_extra_frame_info): Ditto.
5812 * infrun.c (handle_inferior_event): Ditto.
5813 (handle_inferior_event): Ditto.
5814 (check_sigtramp2): Ditto.
5815 * blockframe.c (create_new_frame): Ditto.
5816 (get_prev_frame): Ditto.
5817 * ppc-linux-tdep.c: Update comments.
5818 * i386-linux-tdep.c: Update comments.
5819 * breakpoint.c (bpstat_what): Update comment.
5820
d06f167a
ML
58212002-04-24 Michal Ludvig <mludvig@suse.cz>
5822
5823 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5824 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5825 ptrace() calls.
5826 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5827
4867e41e
DM
58282002-04-24 David S. Miller <davem@redhat.com>
5829
21d83aa5
DM
5830 * i960-tdep.c (register_in_window_p): New function.
5831 (i960_find_saved_register): Use it instead of
5832 REGISTER_IN_WINDOW_P.
5833 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5834
4867e41e
DM
5835 * symtab.h (find_stab_function_addr): Kill extern.
5836 * minsyms.c (find_stab_function_addr): Remove from here...
5837 * dbxread.c: ... to here, and mark it static.
5838
69cdf6a2
DM
58392002-04-20 David S. Miller <davem@redhat.com>
5840
5841 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5842 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5843
5a595886
DM
58442002-04-21 David S. Miller <davem@redhat.com>
5845
5846 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5847 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5848 (vx_write_register): Likewise.
5849
1da1a192
JB
58502002-04-23 J. Brobecker <brobecker@gnat.com>
5851
5852 * source.c (is_regular_file): New function.
5853 (openp): Check wether file to open is a regular file
5854 to avoid opening directories.
5855
baa6f10b
JT
58562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5857
5858 * findvar.c (extract_signed_integer): Cast printf argument
5859 to suppress format warning.
5860 (extract_unsigned_integer): Likewise.
5861 * infcmd.c (registers_info): Likewise.
5862 * top.c (get_prompt_1): Likewise.
5863 * valops.c (value_assign): Likewise.
5864 * valprint.c (print_decimal): Likewise.
5865
b2c4da81
L
58662002-04-22 H.J. Lu (hjl@gnu.org)
5867
5868 * c-exp.y (typebase): Support
361d1df0 5869
b2c4da81
L
5870 [long|long long|short] [signed|unsigned] [int|]
5871
5872 and
5873
5874 signed [long|long long|short] int
5875
f267bd6a
JT
58762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5877
5878 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5879 and vax-tdep.h.
5880 * vax-tdep.h: New file.
5881 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5882 Make several routines static.
5883 (vax_get_saved_register): New function.
5884 (vax_gdbarch_init): New function.
5885 (_initialize_vax_tdep): Register vax_gdbarch_init.
5886 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5887 Remove macros now under the control of gdbarch.
5888
da3c6d4a
MS
58892002-04-22 Michael Snyder <msnyder@redhat.com>
5890
11d3b27d
MS
5891 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5892 Some whitespace and coding standards tweaks.
da3c6d4a 5893
a33f7558
JT
58942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * vax-tdep.c: Include regcache.h.
5897 (vax_call_dummy_words): New.
5898 (sizeof_vax_call_dummy_words): New.
5899 (vax_fix_call_dummy): New function.
5900 (vax_saved_pc_after_call): Ditto.
5901 * config/vax/tm-vax.h: Don't include regcache.h.
5902 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5903 (CALL_DUMMY): Remove.
5904 (CALL_DUMMY_WORDS): Define.
5905 (SIZEOF_CALL_DUMMY_WORDS): Define.
5906 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5907
47a73475
MS
59082002-04-18 Michael Snyder <msnyder@redhat.com>
5909
5910 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5911
52efde73
JT
59122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5913
5914 * vax-tdep.c (vax_frame_chain): New function.
5915 (vax_push_dummy_frame): Ditto.
5916 (vax_pop_frame): Ditto.
5917 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5918 (FRAMELESS_FUNCTION_INVOCATION): Use
5919 generic_frameless_function_invocation_not.
5920 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5921 (POP_FRAME): Use vax_pop_frame.
5922
ea74468c
JT
59232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * vax-tdep.c (vax_store_struct_return): New function.
5926 (vax_extract_return_value): Ditto.
5927 (vax_store_return_value): Ditto.
5928 (vax_extract_struct_value_address): Ditto.
5929 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5930 vax_store_struct_return.
5931 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5932 (STORE_RETURN_VALUE): Use vax_store_return_value.
5933 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5934
5516aa92
JT
59352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5936
5937 * vax-tdep.c (vax_frame_saved_pc): New function.
5938 (vax_frame_args_address_correct): Ditto.
5939 (vax_frame_args_address): Ditto.
5940 (vax_frame_locals_address): Ditto.
5941 (vax_frame_num_args): Move code to be in proximity to
5942 other frame-related functions.
5943 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5944 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5945 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5946 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5947 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5948
36af0b35
L
59492002-04-22 H.J. Lu (hjl@gnu.org)
5950
5951 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5952 includedir.
5953
ab62c900
JT
59542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5955
5956 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5957 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5958 (FRAME_INIT_SAVED_REGS): New macro.
5959
7232b100
JT
59602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5961
5962 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5963
b70d2aee
JT
59642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5965
5966 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5967 where needed.
5968 (fetch_osf_core_registers): Likewise.
5969 (supply_gregset): Likewise.
5970
a0e8a2d1 59712002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 5972
a0e8a2d1
JB
5973 * symfile.h (get_section_index): Define.
5974 * symfile.c (get_section_index): New function.
5975 * mdebugread.c (SC_IS_SBSS): New macro.
5976 (SC_IS_BSS): Return true for the scBss storage class only, as
5977 the scSBss storage class refers to the .sbss section.
5978 (parse_partial_symbols): Discard the symbols which associated
5979 section does not exist.
5980 Make sure to use the .sbss section index for symbols which
5981 storage class is scBss, rather than using the .bss section index.
5982
51eb8b08
JT
59832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5984
5985 * vax-tdep.c: Update copyright years.
5986 (vax_register_name): New function.
5987 (vax_register_byte): Ditto.
5988 (vax_register_raw_size): Ditto.
5989 (vax_register_virtual_size): Ditto.
5990 (vax_register_virtual_type): Ditto.
5991 * config/vax/tm-vax.h: Update copyright years.
5992 (REGISTER_NAMES): Remove.
5993 (REGISTER_NAME): Define.
5994 (REGISTER_BYTE): Use vax_register_byte.
5995 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5996 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5997 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5998
6cc1c0a8
AC
59992002-04-21 Andrew Cagney <ac131313@redhat.com>
6000
6001 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6002 declaration
6003 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6004
9319a2fe
DM
60052002-04-21 David S. Miller <davem@redhat.com>
6006
6007 * arch-utils.c (generic_prologue_frameless_p): Kill
6008 SKIP_PROLOGUE_FRAMELESS_P code.
6009 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6010 references.
6011 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6012 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6013 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6014 references.
6015 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6016 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6017 (sparc_gdbarch_init): Pass it to
6018 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6019
e9ed6d01
JT
60202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6023 (alphabsd-nat.o): New dependency list.
6024
36012033
JT
60252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6026
6027 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6028 alphafbsd-tdep.c.
6029 (alpha-linux-tdep.o): New dependency list.
6030 (alphafbsd-tdep.o): Likewise.
6031
3379287a
JT
60322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6035 to here...
6036 * alpha-tdep.c: ...from here.
6037 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6038
4bcbd6cb
JT
60392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6040
6041 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6042 prototype from here...
6043 * alpha-tdep.h: ...to here.
6044
b31da25e
AC
60452002-04-21 Andrew Cagney <ac131313@redhat.com>
6046
6047 * frame.h (selected_frame_level): Document as deprecated.
6048 (frame_relative_level): Declare.
6049 * stack.c (frame_relative_level): New function.
6050 (selected_frame_level): Document as deprecated.
6051 (select_frame): Do not set the selected_frame_level.
6052
6053 * stack.c (frame_info, record_selected_frame): Update.
6054 (frame_command, current_frame_command): Update.
6055 (up_silently_base, up_command, down_silently_base): Update.
6056 (down_command): Update.
6057 * inflow.c (kill_command): Update.
6058 * tracepoint.c (finish_tfind_command): Update.
6059 * corelow.c (core_open): Update.
6060 * thread.c (info_threads_command): Update.
6061 (do_captured_thread_select): Update.
6062 * infcmd.c (finish_command): Update.
6063 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6064
9c1d6fe5
JT
60652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6066
6067 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6068
ab89facf
AC
60692002-04-21 Andrew Cagney <ac131313@redhat.com>
6070
6071 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6072 type const.
6073
82a4efa1
JT
60742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6075
6076 * alphafbsd-tdep.c: Update copyright years. Include
6077 alpha-tdep.h.
6078 (alphafbsd_use_struct_convention): Make static.
6079 (alphafbsd_init_abi): New function.
6080 (_initialize_alphafbsd_tdep): New function.
6081 * config/alpha/tm-fbsd.h: Update copyright years.
6082 (USE_STRUCT_CONVENTION): Remove.
6083
44dffaac
JT
60842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6085
6086 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6087 an Alpha ABI variant.
6088 (alpha_abi_handler_list): Declare.
6089 (alpha_gdbarch_register_os_abi): New function.
6090 (alpha_gdbarch_init): Give registered ABI variant handlers a
6091 chance to tweak the gdbarch once we have set up defaults.
6092 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6093
65585be4
JT
60942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6095
6096 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6097 to standard_coerce_float_to_double.
6098 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6099
d9b023cc
JT
61002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6101
6102 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6103 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6104 from gdbarch_tdep rather than a constant.
6105 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6106 the default text address for all Alpha Unix ABIs.
6107 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6108 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6109
dc129d82
JT
61102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6111
6112 * alpha-tdep.h: New file. Includes several Alpha target constants
6113 taken from...
6114 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6115 let gdbarch deal with.
6116 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6117 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6118 to dependency list.
6119 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6120 Alpha target register names.
6121 * alphabsd-nat.c: Likewise.
6122 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6123 Alpha target register names. Make serveral routines static.
6124 (alpha_get_saved_register): New function.
6125 (alpha_abi_names): New.
6126 (process_note_abi_tag_sections): New function.
6127 (get_elfosabi): New function.
6128 (alpha_gdbarch_init): New function.
6129 (alpha_dump_tdep): New function.
6130 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6131
d49d1e0a
AC
61322002-04-21 Andrew Cagney <ac131313@redhat.com>
6133
6134 * frame.c (find_saved_register): Delete #ifdef
6135 HAVE_REGISTER_WINDOWS code.
6136 * config/sparc/tm-sparc.h: Update comments.
6137 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6138
92e8c9ed
AC
61392002-04-21 Andrew Cagney <ac131313@redhat.com>
6140
6141 * i960-tdep.c (i960_find_saved_register): New function.
6142 (i960_get_saved_register): New function.
6143 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6144 (i960_get_saved_register): Declare.
6145 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6146
e1925118
DM
61472002-04-20 David S. Miller <davem@redhat.com>
6148
6149 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6150
29673b29
AC
61512002-04-20 Andrew Cagney <ac131313@redhat.com>
6152
6153 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6154 instead of NUM_PSEUDO_REGS.
6155
6c86dcd5
DM
61562002-04-20 David S. Miller <davem@redhat.com>
6157
6158 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6159 GDB_MULTI_ARCH_PARTIAL
6160 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6161 define, let tm-sp64.h do it.
6162
aa40ec90
JT
61632002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6164
6165 * frame.c (find_saved_register): Avoid a NULL pointer
6166 dereference and actually walk the frame list.
6167
0f79675b
AC
61682002-04-20 Andrew Cagney <ac131313@redhat.com>
6169
6170 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6171 sorted in most most-recent-used order. Document.
6172 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6173
c04a1aa8
DJ
61742002-04-20 Daniel Jacobowitz <drow@mvista.com>
6175
6176 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6177 (add_inferior): Call create_register_cache.
6178 (clear_inferiors): Call free_register_cache.
6179 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6180 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6181 (registers): Remove.
6182 (get_regcache): New function.
6183 (create_register_cache, free_register_cache): New functions.
6184 (set_register_cache): Don't initialize the register cache here.
6185 (registers_to_string, registers_from_string, register_data): Call
6186 get_regcache.
6187 * gdbserver/regcache.h: Add prototypes.
6188 * gdbserver/server.h: Likewise.
6189
611cb4a5
DJ
61902002-04-20 Daniel Jacobowitz <drow@mvista.com>
6191
6192 * gdbserver/mem-break.c: New file.
6193 * gdbserver/mem-break.h: New file.
6194 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6195 dependencies.
6196 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6197 member.
6198 (clear_inferiors): Free target_data member if set.
6199 (inferior_target_data, set_inferior_target_data): New functions.
6200 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6201 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6202 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6203 (struct inferior_linux_data): New.
6204 (linux_create_inferior): Use set_inferior_target_data.
6205 (linux_attach): Likewise. Call add_inferior.
6206 (linux_wait_for_one_inferior): New function.
6207 (linux_wait): Call it.
6208 (linux_write_memory): Add const.
6209 (initialize_low): Call set_breakpoint_data.
6210 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6211 handling members.
6212 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6213 call.
6214 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6215 prototypes.
6216 * gdbserver/target.c (read_inferior_memory)
6217 (write_inferior_memory): New functions.
6218 * gdbserver/target.h (read_inferior_memory)
6219 (write_inferior_memory): Change macros to prototypes.
6220 (struct target_ops): Update comments. Add const to write_memory
6221 definition.
6222
f91305dd 62232002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6224
6225 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6226 instead of ->prev.
6227 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6228 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6229 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6230 instead of ->prev.
6231
73d322b1
EZ
62322002-04-19 Elena Zannoni <ezannoni@redhat.com>
6233
6234 Fix PR gdb/471.
6235 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6236 (build_builtin_type_vec128): Ditto.
6237 (append_composite_type_field): Fix calculation of type length in
6238 union case.
6239
ccd9a834
EZ
62402002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6241
6242 * config/djgpp/README: Update.
6243
6244 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6245 compiler warnings.
6246
a57f9e49
JT
62472002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6250 (alpha_setup_arbitrary_frame): ...to this.
6251 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6252 for alpha_setup_arbitrary_frame.
6253
f4f9705a
AC
62542002-04-18 Andrew Cagney <cagney@redhat.com>
6255
6256 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6257 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6258
f4f9705a
AC
6259 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6260 * target.h (memory_breakpoint_from_pc): Update declaration.
6261 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6262
6263 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6264 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6265 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6266 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6267 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6268 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6269 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6270 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6271 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6272 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6273 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6274 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6275
6276 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6277 const pointer.
6278 * monitor.c (monitor_insert_breakpoint): Ditto.
6279 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6280
6281 * config/mcore/tm-mcore.h: Update copyright.
6282 * mem-break.c: Ditto.
6283 * xstormy16-tdep.c: Ditto.
6284
29f319b8
PM
62852002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6286
6287 * p-exp.y: Add precedence rule for '^' token.
6288 This removes the shift/reduce conflicts.
6289 Remove the comment concerning these shift/reduce conflicts.
6290
ebeac11a
EZ
62912002-04-18 Elena Zannoni <ezannoni@redhat.com>
6292
6293 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6294 (registers_powerpc_nofp): New register set for processors
6295 without floating point unit.
6296
27c31547
DM
62972002-04-18 David S. Miller <davem@redhat.com>
6298
6299 * MAINTAINERS: Add myself to write-after-approval.
6300
47a73475
MS
63012002-04-17 Michael Snyder <msnyder@redhat.com>
6302
6303 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6304
953836b2
AC
63052002-04-17 Andrew Cagney <ac131313@redhat.com>
6306
6307 * rs6000-tdep.c (frame_initial_stack_address): Use
6308 frame_register_read to read the alloca_reg.
6309
8b0d4340
AC
63102002-04-17 Andrew Cagney <ac131313@redhat.com>
6311
6312 * frame.c (find_saved_register): Find saved registers in the next
6313 not prev frame.
6314 Fix PR gdb/365.
6315
d8864532
AC
63162002-04-17 Andrew Cagney <ac131313@redhat.com>
6317
6318 * gdbarch.sh (LANG): Set to ``c''.
6319
36cc83a3 63202002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6321
36cc83a3 6322 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6323
2f4150cc 63242002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6325
6326 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6327 Update copyright.
6328
628703c6 6329 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6330 Also fix PR gdb/391.
361d1df0 6331
56157b4a
AC
63322002-04-14 Andrew Cagney <ac131313@redhat.com>
6333
6334 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6335 * aclocal.m4, configure: Re-generate.
6336 Fix PR gdb/391.
361d1df0 6337
6d1e3329
EZ
63382002-04-14 Elena Zannoni <ezannoni@redhat.com>
6339
6340 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6341 instead of tm_print_insn.
6342
cb06fa07
EZ
63432002-04-14 Elena Zannoni <ezannoni@redhat.com>
6344
6345 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6346
f208ba17
AC
63472002-04-14 Andrew Cagney <ac131313@redhat.com>
6348
6349 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6350 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6351 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6352
20f01a46
DH
63532002-04-12 Don Howard <dhoward@redhat.com>
6354
6355 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6356 max_user_call_depth.
6357 (init_cmd_lists): Initialize the new value;
6358 * cli/cli-script.c (execute_user_command): Limit the call depth of
6359 user defined commands. This avoids a core-dump when user commands
6360 are infinitly recursive.
6361
a88376a3
KB
63622002-04-12 Kevin Buettner <kevinb@redhat.com>
6363
6364 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6365 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6366 from tdep struct instead of DEFAULT_LR_SAVE.
6367 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6368 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6369 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6370
f2172603
MS
63712002-04-12 Michael Snyder <msnyder@redhat.com>
6372
694f61fb 6373 * Remote.c: Spelling fix.
20fe79c8
MS
6374 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6375 If no symbol found for "sbrk", try "_sbrk".
6376 (make_output_phdrs): Use bfd_section_name.
6377 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6378 * eval.c: Indentation fix-ups.
169a7369
MS
6379 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6380 in case it gets applied to an address that is already
6381 in the instruction space.
de74f71f
MS
6382 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6383 * symfile.c: Fix indentation, long lines.
f2172603
MS
6384 * source.c: White space fix-up.
6385
cda5a58a
AC
63862002-04-12 Andrew Cagney <cagney@redhat.com>
6387
6388 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6389 * frame.c (frame_register_read): New function. Return non-zero on
6390 success.
6391 (read_relative_register_raw_bytes_for_frame): Delete.
6392 (read_relative_register_raw_bytes): Delete.
6393 * frame.h (frame_register_read): Declare.
6394 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6395 * sh-tdep.c: Ditto.
6396 * infcmd.c (do_registers_info): Ditto.
6397 * hppa-tdep.c: Ditto.
6398 * rs6000-tdep.c: Ditto.
6399 * h8500-tdep.c: Ditto.
6400 * mips-tdep.c: Ditto.
6401 * h8300-tdep.c: Ditto.
6402 * z8k-tdep.c: Ditto.
6403
2ea5f656
KB
64042002-04-12 Kevin Buettner <kevinb@redhat.com>
6405
6406 From Jimi X <jimix@watson.ibm.com>:
6407 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6408 64-bit SysV ABI.
6409
27b15785
KB
64102002-04-12 Kevin Buettner <kevinb@redhat.com>
6411
6412 From Jimi X <jimix@watson.ibm.com>:
6413 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6414 bfd info.
6415
5d57ee30
KB
64162002-04-12 Kevin Buettner <kevinb@redhat.com>
6417
6418 From Jimi X <jimix@watson.ibm.com>:
6419 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6420 register sets for these processor variants.
6421
bc1e36ca
DJ
64222002-04-11 Daniel Jacobowitz <drow@mvista.com>
6423
6424 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6425 registers which are allowed to fail to store.
6426 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6427 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6428 (ppc_cannot_store_register): FPSCR may not be storable.
6429 * regformats/reg-ppc.dat: Support FPSCR.
6430
e3f36dbd
KB
64312002-04-11 Kevin Buettner <kevinb@redhat.com>
6432
6433 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6434 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6435 Add fpscr as an invalid/unfetchable register.
6436 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6437 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6438 (fill_fpregset): Add support for register fpscr.
6439 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6440 (fill_gregset): Account for the fact that register ``mq'' might
6441 not exist.
6442 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6443 (registers_power): Add fpscr to register set at slot 71.
6444 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6445 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6446
943c9c25
MS
64472002-04-11 Michael Snyder <msnyder@redhat.com>
6448
6449 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6450 * configure: Regenerate.
6451 * config.in: Regenerate.
6452 * acconfig.h: Add define for _SYSCALL32.
6453 * core-sol2.c: Remove #define _SYSCALL32.
6454 * solib-legacy.c: Remove #define _SYSCALL32.
6455
d8c0a2e7
AC
64562002-04-10 Andrew Cagney <ac131313@redhat.com>
6457
6458 * stack.c (select_frame): Cleanup internal error message, do not
6459 use %p.
6460
7cc19214
AC
64612002-04-10 Andrew Cagney <ac131313@redhat.com>
6462
6463 * stack.c (select_frame): Check that selected_frame and the
6464 specified level are as expected.
6465 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6466 Update copyright.
6467 * frame.h (struct frame_info): Add field `level'. Update
6468 copyright.
6469 Work-in-progress PR gdb/464.
6470
67a2b77e
AC
64712002-04-10 Andrew Cagney <ac131313@redhat.com>
6472
6473 * maint.c (maint_print_section_info): Rename print_section_info.
6474 (print_bfd_section_info, print_objfile_section_info): Update.
6475 * inferior.h (struct gdbarch): Add opaque declaration.
6476 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6477 * gdbarch.h: Regenerate.
6478
8cfda98c
ML
64792002-04-10 Michal Ludvig <mludvig@suse.cz>
6480
6481 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6482 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6483 (kernel_u_size): Added.
6484 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6485 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6486
ca439ad2 64872002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6488
ca439ad2
JI
6489 * valarith.c (find_size_for_pointer_math): New function, either returns
6490 the size for a pointer's target, returns 1 for void *, or errors for
6491 incomplete types.
6492 (value_add, value_sub): use find_size_for_pointer_math.
6493
2f2893d9
DJ
64942002-04-09 Daniel Jacobowitz <drow@mvista.com>
6495
6496 * linux-low.c (linux_look_up_symbols): New hook.
6497 (linux_target_ops): Add linux_look_up_symbols.
6498 * remote-utils.c (decode_address): New function.
6499 (look_up_one_symbol): New function.
6500 * server.c (handle_query): Call target look_up_symbols hook.
6501 * server.h (look_up_one_symbol): Add prototype.
6502 * target.h (struct target_ops): Add look_up_symbols hook.
6503
2ec06d2e
DJ
65042002-04-09 Daniel Jacobowitz <drow@mvista.com>
6505
d64b8841
DJ
6506 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6507 * ChangeLog: Correct paths in last ChangeLog entry.
6508
65092002-04-09 Daniel Jacobowitz <drow@mvista.com>
6510
6511 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6512 (struct linux_target_ops): New.
6513 (extern the_low_target): New.
d64b8841 6514 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6515 (register_addr): Use the_low_target explicitly.
6516 (fetch_register): Likewise.
6517 (usr_fetch_inferior_registers): Likewise.
6518 (usr_store_inferior_registers): Likewise.
d64b8841 6519 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6520 (arm_num_regs): Define.
6521 (arm_regmap): Renamed from regmap, made static.
6522 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6523 made static.
6524 (arm_cannot_store_register): Renamed from cannot_store_register,
6525 made static.
6526 (the_low_target): New.
d64b8841 6527 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6528 (i386_num_regs): Define.
6529 (i386_regmap): Renamed from regmap, made static.
6530 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6531 made static.
6532 (i386_cannot_store_register): Renamed from cannot_store_register,
6533 made static.
6534 (the_low_target): New.
d64b8841 6535 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6536 (ia64_num_regs): Define.
6537 (ia64_regmap): Renamed from regmap, made static.
6538 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6539 made static.
6540 (ia64_cannot_store_register): Renamed from cannot_store_register,
6541 made static.
6542 (the_low_target): New.
d64b8841 6543 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6544 (m68k_num_regs): Define.
6545 (m68k_regmap): Renamed from regmap, made static.
6546 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6547 made static.
6548 (m68k_cannot_store_register): Renamed from cannot_store_register,
6549 made static.
6550 (the_low_target): New.
d64b8841 6551 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6552 (mips_num_regs): Define.
6553 (mips_regmap): Renamed from regmap, made static.
6554 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6555 made static.
6556 (mips_cannot_store_register): Renamed from cannot_store_register,
6557 made static.
6558 (the_low_target): New.
d64b8841 6559 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6560 (ppc_num_regs): Define.
6561 (ppc_regmap): Renamed from regmap, made static.
6562 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6563 made static.
6564 (ppc_cannot_store_register): Renamed from cannot_store_register,
6565 made static.
6566 (the_low_target): New.
d64b8841 6567 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6568 (s390_num_regs): Define.
6569 (s390_regmap): Renamed from regmap, made static.
6570 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6571 made static.
6572 (s390_cannot_store_register): Renamed from cannot_store_register,
6573 made static.
6574 (the_low_target): New.
d64b8841 6575 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6576 (sh_num_regs): Define.
6577 (sh_regmap): Renamed from regmap, made static.
6578 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6579 made static.
6580 (sh_cannot_store_register): Renamed from cannot_store_register,
6581 made static.
6582 (the_low_target): New.
d64b8841 6583 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6584 (the_low_target): New.
6585
96cb11df
AC
65862002-04-09 Andrew Cagney <ac131313@redhat.com>
6587
6588 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6589 override FP_REGNUM with frame->fp. Update copyright.
6590 * parse.c (num_std_regs, std_regs): Delete.
6591 (target_map_name_to_register): Do not search std_regs. Update
6592 function description.
6593 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6594 declarations. Update copyright.
6595 Fix PR gdb/251.
361d1df0 6596
c3a3ccc7
DJ
65972002-04-09 Daniel Jacobowitz <drow@mvista.com>
6598
6599 * gdbserver/Makefile.in: Add stamp-h target.
6600 * gdbserver/configure.in: Create stamp-h.
6601 * gdbserver/configure: Regenerated.
6602
ce3a066d
DJ
66032002-04-09 Daniel Jacobowitz <drow@mvista.com>
6604
6605 * gdbserver/inferiors.c: New file.
6606 * gdbserver/target.c: New file.
6607 * gdbserver/target.h: New file.
6608 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6609 dependencies.
6610 * gdbserver/linux-low.c (inferior_pid): New static variable,
6611 moved from server.c.
6612 (linux_create_inferior): Renamed from create_inferior.
6613 Call add_inferior. Return 0 on success instead of a PID.
6614 (linux_attach): Renamed from myattach.
6615 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6616 (linux_thread_alive): Renamed from mythread_alive.
6617 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6618 child dies.
6619 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6620 (regsets_store_inferior_registers): Correct error message.
6621 Add missing ``return 0''.
6622 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6623 (linux_store_registers): Renamed from store_inferior_registers.
6624 (linux_read_memory): Renamed from read_inferior_memory.
6625 (linux_write_memory): Renamed from write_inferior_memory.
6626 (linux_target_ops): New structure.
6627 (initialize_low): Call set_target_ops ().
6628 * gdbserver/remote-utils.c (unhexify): New function.
6629 (hexify): New function.
6630 (input_interrupt): Send signals to ``signal_pid''.
6631 * gdbserver/server.c (inferior_pid): Remove.
6632 (start_inferior): Update create_inferior call.
6633 (attach_inferior): Call add_inferior.
6634 (handle_query): New function.
6635 (main): Call handle_query for `q' packets.
6636 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6637 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6638
0729219d
DJ
66392002-04-09 Daniel Jacobowitz <drow@mvista.com>
6640
6641 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6642 dependencies.
6643 * gdbserver/configure.in: Check for <string.h>
6644 * gdbserver/configure: Regenerate.
6645 * gdbserver/config.in: Regenerate.
6646 * gdbserver/gdbreplay.c: Include needed system headers.
6647 (remote_open): Remove strchr prototype.
6648 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6649 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6650 (supply_register_by_name): Likewise.
6651 (collect_register): Change buf argument to void *.
6652 (collect_register_by_name): Likewise.
6653 * gdbserver/regcache.h: Add missing prototypes.
6654 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6655 * gdbserver/server.c (handle_query): New function.
6656 (attached): New static variable, moved out of main.
6657 (main): Quiet longjmp clobber warnings.
6658 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6659 * gdbserver/utils.c (error): Remove NORETURN.
6660 (fatal): Likewise.
6661
97658e92
DJ
66622002-04-09 Daniel Jacobowitz <drow@mvista.com>
6663
6664 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6665 after the last symbol in a block.
6666
6044e3eb
PM
66672002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6668
6669 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6670 is non zero as a found symbol.
6671
0406ec40
AC
66722002-04-08 Andrew Cagney <ac131313@redhat.com>
6673
6674 * findvar.c: Include "builtin-regs.h".
6675 (value_of_register): Call value_of_builtin_reg when applicable.
6676 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6677 (target_map_name_to_register): Call
6678 builtin_reg_map_name_to_regnum.
6679 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6680 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6681 (builtin_regs_h): Define.
6682 (builtin-regs.o): New target.
6683 (findvar.o): Add $(builtin_regs_h).
6684 * builtin-regs.c, builtin-regs.h: New files.
6685 * std-regs.c: New file.
6686 Partial fix for PR gdb/251.
6687
56a6dfb9
KB
66882002-04-08 Kevin Buettner <kevinb@redhat.com>
6689
6690 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6691 it's no longer required.
6692
3a808432
AC
66932002-04-08 Andrew Cagney <ac131313@redhat.com>
6694
6695 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6696
7c40d541
KB
66972002-04-08 Kevin Buettner <kevinb@redhat.com>
6698
6699 From Jimi X <jimix@watson.ibm.com>:
6700 * rs6000-tdep.c (rs6000_software_single_step): Use
6701 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6702 and size. Use target_insert_breakpoint() and
6703 target_remove_breakpoint() to insert and remove breakpoints
6704 instead of explicit memory reads and writes.
6705
cc9836a8
KB
67062002-04-08 Kevin Buettner <kevinb@redhat.com>
6707
6708 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6709 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6710 ELF_OBJECT_FORMAT ifdef.
6711
7495d1dc
KB
67122002-04-08 Kevin Buettner <kevinb@redhat.com>
6713
6714 From Jimi X <jimix@watson.ibm.com>:
6715 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6716
4288e836
KB
67172002-04-08 Kevin Buettner <kevinb@redhat.com>
6718
6719 From Jimi X <jimix@watson.ibm.com>:
6720 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6721 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6722
a4e4e501
MK
67232002-04-07 Mark Kettenis <kettenis@gnu.org>
6724
6725 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6726 s/asprintf/xasprintf/.
6727 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6728
006defba
AC
67292002-04-07 Andrew Cagney <ac131313@redhat.com>
6730
6731 I believe Jeff Law denies responsability for this one:
6732 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6733 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6734 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6735 Work-around for PR gdb/366.
6736
7aa83cac
EZ
67372002-04-07 Elena Zannoni <ezannoni@redhat.com>
6738
6739 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6740 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6741 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6742
cf1fcca1
EZ
67432002-04-07 Elena Zannoni <ezannoni@redhat.com>
6744
6745 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6746 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6747 information.
6748
3f289e6f
AC
67492002-04-07 Andrew Cagney <ac131313@redhat.com>
6750
6751 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6752 maintainer.
6753
129188f6
AC
67542002-04-07 Andrew Cagney <ac131313@redhat.com>
6755
6756 * README (Reporting Bugs in GDB): Document the bug web page as the
6757 prefered way of submitting bugs.
6758 Fix PR gdb/402.
6759
1200cd6e
AC
67602002-04-06 Andrew Cagney <ac131313@redhat.com>
6761
6762 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6763 -1. Update comment.
6764 * gdbarch.h, gdbarch.c: Re-generate.
6765
2853c33c
AS
67662002-04-07 Andreas Schwab <schwab@suse.de>
6767
6768 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6769 buffer to regcache_collect.
6770
c2169756
AC
67712002-04-06 Andrew Cagney <ac131313@redhat.com>
6772
6773 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6774 * gdbarch.c, gdbarch.h: Re-generate.
6775
25f1b008
AC
67762002-04-06 Andrew Cagney <ac131313@redhat.com>
6777
6778 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6779 declaration. Fix -Werror.
6780
59263426
DJ
67812002-04-05 Daniel Jacobowitz <drow@mvista.com>
6782
6783 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6784 * gdbarch.c: Regenerate.
6785
f5db4da3
MS
67862002-04-05 Michael Snyder <msnyder@redhat.com>
6787
80f8a6eb
MS
6788 * breakpoint.c (clear_command): Rewrite middle section to
6789 combine two loops with identical control conditions.
6790 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6791 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6792
ad3dcc5c
L
67932002-04-05 H.J. Lu (hjl@gnu.org)
6794
6795 * solib-svr4.c (bkpt_names): Add "__start".
6796
f32e7a74
AC
67972002-04-04 Andrew Cagney <ac131313@redhat.com>
6798
6799 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6800 as test for 64 bit target.
6801
8227c0ff
AC
68022002-04-05 Andrew Cagney <ac131313@redhat.com>
6803
6804 * h8500-tdep.c (h8500_write_fp): Delete function.
6805 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6806 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6807 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6809 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6810 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6811 (s390_write_fp):
6812 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6813 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6814 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6815 (d10v_write_fp): Delete function.
6816 * inferior.h (write_fp, generic_target_write_fp): Delete
6817 declarations.
6818 * regcache.c (generic_target_write_fp): Delete function.
6819 (write_fp): Delete function.
6820 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6821 * gdbarch.h, gdbarch.c: Regenerate.
6822 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6823 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6824 (sparc64_write_fp): Delete declaration.
6825 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6826 (h8500_write_fp): Delete declaration.
6827
2757dd86
AC
68282002-04-04 Andrew Cagney <ac131313@redhat.com>
6829
6830 * sparc-tdep.c (sparc64_write_fp): Delete.
6831 (sparc_push_dummy_frame): Replace write_fp call with code to store
6832 the FP directly.
6833 (sparc_gdbarch_init): Do not initialize write_fp.
6834
c69255e1
KB
68352002-04-05 Kevin Buettner <kevinb@redhat.com>
6836
6837 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6838 clause.
6839
ae767bfb
JB
68402002-03-29 Jim Blandy <jimb@redhat.com>
6841
6842 * stack.c (get_selected_block): Add new argument `addr_in_block',
6843 used to return the exact code address we used to select the block,
6844 not just the block.
6845 * blockframe.c (get_frame_block, get_current_block): Same.
6846 * frame.h (get_frame_block, get_current_block,
6847 get_selected_block): Update declarations.
6848 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6849 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6850
84d2ac95
MS
68512002-04-05 Michael Snyder <msnyder@redhat.com>
6852
6853 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6854 warning message.
6855
596aa3bf
JB
68562002-04-05 J. Brobecker <brobecker@gnat.com>
6857
6858 * utils.c (xfullpath): New function.
6859 * defs.h (xfullpath): Add declaration.
6860 * source.c (openp): Use xfullpath in place of gdb_realpath to
6861 avoid resolving the basename part of filenames when the
6862 associated file is a symbolic link. This fixes a potential
6863 inconsistency between the filenames known to GDB and the
6864 filenames it prints in the annotations.
6865 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6866 to be able to match a filename with either the real filename, or
6867 the name of any symbolic link to this file.
6868 (lookup_partial_symtab): Ditto.
6869
c02f5703
MS
68702002-04-04 Michael Snyder <msnyder@redhat.com>
6871
6872 * breakpoint.c: Add support for hardware breakpoints in overlays.
6873 (overlay_events_enabled): New state variable.
6874 (insert_breakpoints): Use overlay_events_enabled to decide
6875 whether to attempt to set a breakpoint at the overlay load addr.
6876 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6877 (remove_breakpoint): Use overlay_events_enabled to decide
6878 whether breakpoints need to be removed from overlay load addr.
6879 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6880 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6881 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6882 disable_overlay_breakpoints): Update overlay_events_enabled.
6883
5fb290d7
DJ
68842002-04-04 Daniel Jacobowitz <drow@mvista.com>
6885
6886 * dwarf2read.c (struct function_range): New.
6887 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6888 (check_cu_functions): New.
6889 (read_file_scope): Initialize global function lists.
6890 Call dwarf_decode_line after processing children.
6891 (read_func_scope): Add to global function list.
6892 (dwarf_decode_lines): Call check_cu_functions everywhere
6893 record_line is called. Call record_line with a linenumber
6894 of 0 to mark sequence ends.
6895
7b3fabf0
ML
68962002-04-04 Michal Ludvig <mludvig@suse.cz>
6897
361d1df0 6898 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6899 change sync with glibc.
6900
bce58c09
JB
69012002-04-03 Jim Blandy <jimb@redhat.com>
6902
6903 * configure.in: Call AC_C_INLINE.
6904 * configure: Regenerated.
361d1df0 6905
2fccf04a
DJ
69062002-04-01 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6909 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6910
2d1bfe2e
MK
69112002-03-31 Mark Kettenis <kettenis@gnu.org>
6912
a5941fbf
MK
6913 * NEWS: Mention gcore support on FreeBSD/i386.
6914
a90cd31d
MK
6915 * fbsd-proc.c: New file.
6916 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6917 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6918
2d1bfe2e
MK
6919 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6920 while statement.
6921
9eb6e5a1
JB
69222002-03-29 Jim Blandy <jimb@redhat.com>
6923
6924 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6925 unescaped newlines in string literals, but newer ones don't. So
6926 escape them.
6927
f02df580
MS
69282002-03-26 Michael Snyder <msnyder@redhat.com>
6929 Andrew Cagney <cagney@redhat.com>
6930
361d1df0 6931 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6932 restore file to memory.
6933 * cli/cli-dump.h: New file.
6934 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6935 * NEWS: Mention new commands.
f02df580 6936
109f874e
MS
69372002-03-28 Michael Snyder <msnyder@redhat.com>
6938
6939 * symfile.c (symbol_file_add): Move test for null symbols to later.
6940
520f6ade
AC
69412002-03-27 Andrew Cagney <ac131313@redhat.com>
6942
6943 From veksler at il.ibm.com:
6944 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6945 the xstrduped original path.
6946 Fix PR gdb/417.
6947
d4654627
MS
69482002-03-27 Michael Snyder <msnyder@redhat.com>
6949
6950 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6951 * infcmd.c (_initialize_infcmd): Ditto.
6952 * language.c (_initialize_language): Ditto.
6953 * symfile.c (_initialize_symfile): Ditto.
6954 * top.c (_init_main): Ditto.
6955 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6956
6be8bc0c
EZ
69572002-03-27 Elena Zannoni <ezannoni@redhat.com>
6958
6959 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6960 vector registers handling.
6961 (skip_prologue): Handle new AltiVec instructions. Fill in new
6962 fields of frame data.
6963 (frame_get_saved_regs): Fill in information for AltiVec registers.
6964
12af6855
JB
69652002-03-27 Jim Blandy <jimb@redhat.com>
6966
6967 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6968 a function; leave this macro here to invoke that function.
6969 (symbol_init_mangled_name): Declaration for that function.
6970 * symtab.c (symbol_init_mangled_name): New function.
6971
dc672865
AC
69722002-03-27 Andrew Cagney <ac131313@redhat.com>
6973
6974 * valarith.c: Replace strerror with safe_strerror.
6975 * tracepoint.c: Ditto.
6976 * lin-lwp.c: Ditto.
6977 * go32-nat.c: Ditto.
6978 * inflow.c: Ditto.
6979 * gnu-nat.c: Ditto.
6980
d96429cd
AS
69812002-03-27 Andreas Schwab <schwab@suse.de>
6982
6983 * event-top.c (command_line_handler): Remove useless if.
6984
7e336ba1
AJ
69852002-03-27 Andreas Jaeger <aj@suse.de>
6986
6987 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6988 comment.
6989
de220d0f
ML
69902002-03-27 Michal Ludvig <mludvig@suse.cz>
6991
6992 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6993 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6994 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6995 (x86_64_linux_dr_get_status, supply_gregset),
6996 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6997 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6998 (x86_64_register_info_table): Add.
6999 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7000 (x86_64_register_raw_size, x86_64_register_virtual_type),
7001 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7002 general x86_64_register_info_table.
7003 (i386_gdbarch_init): gdbarch_register_bytes is now set
7004 dynamicaly during initialization.
7005 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7006 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7007
0e98d0a7
DJ
70082002-03-27 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * gdbserver/server.c (main): Call target_signal_to_host_p
7011 and target_signal_to_host on signals received from the remote.
7012 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7013 target_signal_from_host on signals sent to the remote.
7014 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7015 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7016
3130066b
DJ
70172002-03-27 Daniel Jacobowitz <drow@mvista.com>
7018
7019 * signals/signals.c: Include "server.h" in gdbserver build.
7020 (target_signal_from_name): Don't use STREQ.
7021 (_initialize_signals): Likewise. Don't include function in
7022 gdbserver build.
7023
9aedf4f4
DJ
70242002-03-27 Daniel Jacobowitz <drow@mvista.com>
7025
7026 * signals.c: Moved to...
7027 * signals/signals.c: Here.
7e336ba1 7028 * Makefile (signals.o): Update.
9aedf4f4 7029
3fa41cdb
JL
70302002-03-26 Jeff Law (law@redhat.com)
7031
7032 * somread.c (som_symtab_read): Remove some commented out code and
7033 updated related comments. Do not set the minimal symbol table to
7034 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7035 in a dynamic executable.
7036 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7037 where we are unable to find the minimal symbol for the given
7038 PC value.
7039
ee677e8d
MS
70402002-03-25 Jeff Law (law@redhat.com)
7041
7042 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7043
e76e1718
ML
70442002-03-25 Michal Ludvig <mludvig@suse.cz>
7045
7046 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7047
18a642a1
AC
70482002-03-23 Andrew Cagney <ac131313@redhat.com>
7049
7050 * command.h: Update copyright.
7051 (struct cmd_list_element): Replace definition with opaque
7052 declaration.
7053 (enum cmd_types): Document that it will eventually be moved to
7054 cli/cli-decode.h
7055 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7056 (MALLOCED_REPLACEMENT): Delete macro.
7057 * Makefile.in (cli_decode_h): Add $(command_h).
7058 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7059 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7060 * completer.c: Include "cli/cli-decode.h".
7061 * maint.c: Include "cli/cli-decode.h".
7062 * cli/cli-decode.h: Include "command.h".
7063 (enum command_class): Delete.
7064 (enum cmd_types): Comment out.
7065 (enum cmd_auto_boolean): Delete.
7066 (enum var_types): Delete.
7067
b2875cc0
AC
70682002-03-23 Andrew Cagney <ac131313@redhat.com>
7069
7070 * cli/cli-decode.c: Include "gdb_assert.h".
7071 (add_set_or_show_cmd): New static function.
7072 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7073 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7074 all fields, such as func, from the set command.
7075
3b45974e
AC
70762002-03-23 Andrew Cagney <ac131313@redhat.com>
7077
7078 * MAINTAINERS (sh-elf): Change warning flag to -w.
7079
823ca731
AC
70802002-03-23 Andrew Cagney <cagney@redhat.com>
7081
7082 * defs.h (error): Add printf format attribute.
7083 * thread-db.c (thread_from_lwp): Fix error format string.
7084 * stack.c (parse_frame_specification): Ditto.
7085 * cli/cli-decode.c (undef_cmd_error): Ditto.
7086 * scm-lang.c (scm_lookup_name): Ditto.
7087 * tracepoint.c (trace_error): Ditto.
7088 * remote-utils.c (usage): Ditto.
7089 * remote.c (compare_sections_command): Ditto.
7090 Fix PR gdb/328.
7091
0e101458
AC
70922002-03-22 Andrew Cagney <ac131313@redhat.com>
7093
7094 * gdbtypes.c (append_composite_type_field): New function.
7095 (init_composite_type): New function.
7096 * gdbtypes.h (append_composite_type_field): Declare.
7097 (init_composite_type): Ditto.
7098
8e0662df
EZ
70992002-03-22 Elena Zannoni <ezannoni@redhat.com>
7100
7101 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7102 function.
8e0662df
EZ
7103 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7104 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7105 structure returning convention for SYSV ABI case, but not
7106 for GNU/Linux, FreeBSD, or NetBSD.
7107
3121eff0
DJ
71082002-03-22 Daniel Jacobowitz <drow@mvista.com>
7109
7110 * symtab.h (lookup_block_symbol): Add mangled_name argument
7111 to prototype.
7112
7113 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7114 with new mangled_name argument.
7115 * linespec.c (decode_line_1): Likewise.
7116 * valops (value_of_this): Likewise.
7117 * symtab.c (lookup_transparent_type): Likewise.
7118 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7119 (lookup_symbol): If we are given a mangled name, pass it down
7120 to lookup_symbol_aux.
7121 (lookup_block_symbol): If we are given a mangled name to check
7122 against, only return symbols which match it.
7123
349b409f
CF
71242002-03-22 Christopher Faylor <cgf@redhat.com>
7125
7126 * win32-nat.c (child_create_inferior): Check for proper shell to use
7127 here, in case the user changes it on the fly.
7128 (_initialize_inftarg): Remove shell path considerations.
7129
2a873819
EZ
71302002-03-21 Elena Zannoni <ezannoni@redhat.com>
7131
7132 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7133 for gdbarch_max_register_raw_size and max_register_virtual_size.
7134 Adjust copyright year.
7135
a1b9830c
DJ
71362002-03-21 Daniel Jacobowitz <drow@mvista.com>
7137
7138 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7139 in a function to cover the entire beginning of the function
7140 as well if it does not already.
7141
8b5790f2
TR
71422002-03-21 Tom Rix <trix@redhat.com>
7143
7144 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7145 (rs6000_ptrace64): Renamed from ptrace64.
7146
bdbe5747
MH
71472002-03-20 Martin M. Hunt <hunt@redhat.com>
7148
7149 * gdbserver/remote-utils.c (remote_open): Don't call
7150 getprotobyname, we're all using TCP here so just use
7151 IPPROTO_TCP.
7e336ba1 7152 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7153
71542002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7155
bdbe5747
MH
7156 * regcache.c (_initialize_regcache): No need to call
7157 build_regcache() at this time; it gets called whenever
7158 the gdbarch changes.
7159
7781cd62
DB
71602002-03-20 David O'Brien <obrien@FreeBSD.org>
7161
7162 * sparc-nat.c: Include sys/param.h where possible.
7163
f65ca430
DJ
71642002-03-20 Daniel Jacobowitz <drow@mvista.com>
7165
7166 Fix PR gdb/422.
7167 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7168 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7169 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7170 complex types.
7171 * stabsread.c (rs6000_builtin_type): Likewise.
7172 (read_sun_floating_type): Likewise.
7173
0c867556
PS
71742002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7175
7176 * stabsread.c (read_member_functions): Remove skip code for duplicate
7177 constructor/destructor methods. Use standard parsing for these
7178 methods and just do not chain them to the list of methods after
7179 parsing.
7180
12b9c64f
AO
71812002-03-19 Alexandre Oliva <aoliva@redhat.com>
7182
7183 * coffread.c: Remove redundant static declarations. Replace
7184 occurrences of `PTR' with `void *'.
7185 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7186 * top.h (quit_cover): Likewise.
7187 * defs.h (catch_errors): Likewise.
7188
349c5d5f
AC
71892002-03-18 Andrew Cagney <ac131313@redhat.com>
7190
7191 * defs.h (XMALLOC): Define.
7192 * gdb-events.sh (XMALLOC): Delete macro.
7193 * gdb-events.c, gdb-events.h: Regenerate.
7194 * gdbarch.sh (XMALLOC): Delete macro.
7195 * gdbarch.c: Regenerate.
7196 * serial.c (XMALLOC): Delete macro.
7197 * ui-file.c (XMALLOC): Ditto.
7198 * ser-unix.h (XMALLOC): Ditto.
7199 * sh-tdep.c (XMALLOC): Ditto.
7200 * ui-out.c (XMALLOC): Ditto.
7201 * utils.c (XMALLOC): Ditto.
7202 * i386-tdep.c (XMALLOC): Ditto.
7203 * gdb-events.c (XMALLOC): Ditto.
7204 * d10v-tdep.c (XMALLOC): Ditto.
7205 * cli-out.c (XMALLOC): Ditto.
7206
7207 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7208 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7209 * ui-file.c, ui-out.c: Ditto.
7210
7d0766f3
AC
72112002-03-18 Andrew Cagney <ac131313@redhat.com>
7212
7213 * command.h (struct cmd_list_element): Add field context.
7214 (set_cmd_context, get_cmd_context): Declare.
7215 * cli/cli-decode.h: Ditto.
7216 * cli/cli-decode.c (get_cmd_context): New function.
7217 (set_cmd_context): New function.
7218 (add_cmd): Initialize context.
7219 Part of fixing PR gdb/145 and PR gdb/146.
7220
5913bcb0
AC
72212002-03-17 Andrew Cagney <ac131313@redhat.com>
7222
1868c04e
AC
7223 * cli/cli-decode.c (cmd_type): New function.
7224 * command.h (cmd_type): Declare.
7225 * infrun.c (set_schedlock_func): Call function cmd_type.
7226 * kod.c (kod_set_os): Call cmd_type.
7227 * cris-tdep.c (cris_version_update): Use function cmd_type.
7228 (cris_mode_update, cris_abi_update): Ditto.
7229
5913bcb0
AC
7230 * command.h: (execute_cmd_post_hook): Declare.
7231 (execute_cmd_pre_hook): Declare.
7232 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7233 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7234 functions. Execute pre/post hook while ensuring that afterwords
7235 hook_in is cleared.
7236 * top.c (execute_command): Use execute_cmd_post_hook, and
7237 execute_cmd_pre_hook to execute pre/post commands.
7238 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7239 hook_stop_stub.
7240 (hook_stop_stub): Call execute_cmd_pre_hook.
7241
b51450c9
AC
72422002-03-17 Andrew Cagney <ac131313@redhat.com>
7243
7244 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7245 set'' and this leads to a core dump. Move xstrdup of
7246 operating_system to after check that it is not NULL.
7247
f66c9f11
AC
72482002-03-17 Andrew Cagney <ac131313@redhat.com>
7249
8e694ecf
AC
7250 * kod.c (kod_set_os): Remove unnecessary check that
7251 ``command->type'' is set_cmd.
7252
f66c9f11
AC
7253 * valprint.c (set_input_radix): Use input_radix.
7254 (set_output_radix): Use output_radix.
7255 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7256 isn't reverted.
7257
9d01611c
AC
72582002-03-16 Andrew Cagney <ac131313@redhat.com>
7259
7260 * value.h (struct value): Delete field ``substring_addr''. Change
7261 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7262 force_core_addr_align and force_pointer_aligh.
7263
7264 * value.h (struct value): Fix typo in above change.
9d01611c 7265
4156bb53
PS
72662002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7267
7268 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7269 to fix internal_error from ``maintenance print architecture''.
7270
0e5e3ea6
PS
72712002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7272
7273 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7274 for gcc versions after gcc-2.8.1.
7275
9b013045
PS
72762002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7277
7278 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7279 for method resolution. Restore adjustment of ``this'' pointer after
7280 calling value_struct_elt, which was accidentally removed during the
7281 HP merge.
7282
376c9600
AC
72832002-03-15 Andrew Cagney <ac131313@redhat.com>
7284
7285 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7286 value_of_register.
7287 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7288 get_saved_register.
7289 * value.h (value_of_register): Update.
7290
a4db0f07
RH
72912002-03-14 Richard Henderson <rth@redhat.com>
7292
7293 * configure.in: Detect declaration for canonicalize_file_name.
7294 * utils.c (canonicalize_file_name): Declare, if needed.
7295 (gdb_realpath): Prefer realpath if available and usable.
7296 * config.in, configure: Rebuild.
7297
96383835
RH
72982002-03-14 Richard Henderson <rth@redhat.com>
7299
7300 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7301 a constant array bound.
7302
7303 * MAINTAINERS: Add myself to write-after-approval.
7304
75245b24
MS
73052002-03-14 Michael Snyder <msnyder@redhat.com>
7306
7307 * symfile.c (syms_from_objfile): Return immediately if no syms.
7308 (symbol_file_add): Return immediately if no syms.
7309 (find_sym_fns): Return immediately if no syms.
7310
e641a1ca
ML
73112002-03-13 Michal Ludvig <mludvig@suse.cz>
7312
7313 * gdbserver/remote-util.c (remote_open): Print remote-side's
7314 IP address when remote debugging over the network.
7e336ba1 7315
df08bfec
DB
73162002-03-12 David O'Brien <obrien@FreeBSD.org>
7317
7318 * config/sparc/fbsd.mh: Fix copyright.
7319 * config/sparc/fbsd.mt: Likewise.
7320
9a57864f
RE
73212002-03-11 Richard Earnshaw <rearnsha@arm.com>
7322
7323 * MAINTAINERS: Fix typo in name of gdb warnings option.
7324 (x86-64): Fix formating so that this can be parsed by awk.
7325
dd7bf85e
DJ
73262002-03-10 Daniel Jacobowitz <drow@mvista.com>
7327
7328 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7329 * defs.h: Include "gdb/signals.h".
7330 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7331
33a0a2ac
ML
73322002-03-10 Michal Ludvig <mludvig@suse.cz>
7333
7334 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7335 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7336 from x86-64-tdep.h
7337
dd824b04
DJ
73382002-03-10 Daniel Jacobowitz <drow@mvista.com>
7339 Don Howard <dhoward@redhat.com>
7340
7341 * mips-tdep.c (ST0_FR): Define.
7342 (mips2_fp_compat): New function, temporarily disabled.
7343 (mips_read_fp_register_single): New function.
7344 (mips_read_fp_register_double): New function.
7345 (mips_print_register): Use them.
7346 (do_fp_register_row): Likewise.
7347
6a41ff59
AC
73482002-03-09 Andrew Cagney <ac131313@redhat.com>
7349
7350 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7351 approval''.
7352
4ea09c10
PS
73532002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7354
7355 * stabsread.c (read_member_functions): Fix is_stub test for
7356 static member functions, improve comment.
7357
6ccc741d
RE
73582002-03-07 Richard Earnshaw <rearnsha@arm.com>
7359
7360 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7361 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7362 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7363 commands that set boolean values.
7364 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7365 (arm_rdi_resume): Always initialize PC.
7366 (arm_rdi_open): Don't use rslt as a boolean.
7367 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7368 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7369 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7370 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7371
438013df
AO
73722002-03-06 Alexandre Oliva <aoliva@redhat.com>
7373
7374 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7375 * configure: Rebuilt.
7376
70ed8774
SC
73772002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7378
7379 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7380 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7381
5ba2abeb
AC
73822002-03-06 Andrew Cagney <ac131313@redhat.com>
7383
7384 * cli/cli-decode.c (set_cmd_completer): New function.
7385 * command.h (set_cmd_completer): Declare.
7386 * cli/cli-decode.h (set_cmd_completer): Ditto.
7387
7388 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7389 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7390 * win32-nat.c (_initialize_inftarg): Ditto.
7391 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7392 * proc-api.c (_initialize_proc_api): Ditto.
7393 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7394 * source.c (_initialize_source): Ditto.
7395 * exec.c (_initialize_exec): Ditto.
7396 * solib.c (_initialize_solib): Ditto.
7397 * top.c (init_main): Ditto.
7398 * tracepoint.c (_initialize_tracepoint): Ditto.
7399 * symfile.c (_initialize_symfile): Ditto.
7400 * printcmd.c (_initialize_printcmd): Ditto.
7401 * infcmd.c (_initialize_infcmd): Ditto.
7402 * corefile.c (_initialize_core): Ditto.
7403
f779ca99
AC
74042002-03-05 Andrew Cagney <ac131313@redhat.com>
7405
7406 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7407
01a3934b
AC
74082002-03-05 Andrew Cagney <ac131313@redhat.com>
7409
7410 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7411
37057839
AC
74122002-03-05 Andrew Cagney <ac131313@redhat.com>
7413
7414 * NEWS: Update headings, 5.2 has branched.
7415
c6ecbae5
DJ
74162002-03-04 Daniel Jacobowitz <drow@mvista.com>
7417
7418 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7419 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7420 (register_addr, REGISTER_RAW_SIZE): Likewise.
7421 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7422 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7423
e9f30c21
ML
74242002-03-03 Michal Ludvig <mludvig@suse.cz>
7425
7426 * MAINTAINERS (x86-64): Add myself.
7427 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7428 changed value_ptr -> struct value *
7429
54394ac3
DB
74302002-03-01 David O'Brien <obrien@FreeBSD.org>
7431
7432 * configure.host (sparc64-*-freebsd): Add.
7433 * configure.tgt: Likewise.
7434 * config/sparc/fbsd.mh: New file.
7435 * config/sparc/fbsd.mt: Likewise.
7436 * config/sparc/nm-fbsd.h: Likewise.
7437 * config/sparc/tm-fbsd.h: Likewise.
7438
bfe95955
DJ
74392002-03-01 Daniel Jacobowitz <drow@mvista.com>
7440
7441 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7442 regformats/reg-s390x.dat.
7443
f33c6cbf
AC
74442002-03-01 Andrew Cagney <ac131313@redhat.com>
7445
7446 * utils.c: Add FIXME explaining true/false problem.
7447
5ecaa7dd
AC
74482002-02-28 Andrew Cagney <ac131313@redhat.com>
7449
7450 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7451
2a251cc2
MC
74522002-02-28 Michael Chastain <mec@shout.net>
7453
7454 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7455
6a8031a3 74562002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7457
7458 * gdbserver/linux-s390-low.c: New file.
7459 * regformats/reg-s390.dat: New file.
7460 * regformats/reg-s390x.dat: New file.
7461 * gdbserver/configure.srv: Add S/390.
7462 * gdbserver/Makefile.in: Add S/390.
7463 * configure.tgt: Enable gdbserver for S/390.
7464
ac469903
EZ
74652002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7466
7467 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7468 first line of the doc string for "info dos", except at the end of
7469 the sentence, since the short help stops at the first period.
7470
985cb1a3
JM
74712002-02-28 Jason Merrill <jason@redhat.com>
7472
7473 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7474
c570663e
FF
74752002-02-27 Fred Fish <fnf@redhat.com>
7476
7477 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7478 comment (dumy -> dummy).
7479
43630227
PS
74802002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7481
7482 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7483
b84911e8
RB
74842002-02-27 Rodney Brown <rbrown64@csc.com.au>
7485
7486 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7487
58caa3dc
DJ
74882002-02-27 Daniel Jacobowitz <drow@mvista.com>
7489
7490 * gdbserver/acconfig.h: New file.
7491 * gdbserver/i387-fp.c: New file.
7492 * gdbserver/i387-fp.h: New file.
7493 * gdbserver/linux-x86-64.c: New file.
7494 * regformats/reg-x86-64.dat: New file.
7495 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7496 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7497 * gdbserver/configure.in: Add support for regsets.
7498 * gdbserver/config.in: Regenerate.
7499 * gdbserver/configure: Regenerate.
7500 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7501 * gdbserver/linux-low.h: New file.
7502 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7503 for regsets.
7504 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7505 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7506 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7507 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7508 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7509 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7510 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7511 "i387-fp.h". Add PTRACE_GETREGS and friends.
7512 * gdbserver/regcache.c (supply_register): New function.
7513 (supply_register_by_name): New function.
7514 (collect_register): New function.
7515 (collect_register_by_name): New function.
7516
93652174
DJ
75172002-02-27 Daniel Jacobowitz <drow@mvista.com>
7518
7519 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7520 (config.status): Add configure.srv dependency.
7521 (server_h): Add config.h dependency.
7522
a02e4a61
DJ
75232002-02-27 Daniel Jacobowitz <drow@mvista.com>
7524
7525 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7526 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7527 * gdbserver/configure.srv: Change i386-*-linux* to use
7528 reg-i386-linux.o.
7529
ce0eebec
AC
75302002-02-26 Andrew Cagney <ac131313@redhat.com>
7531
7532 * x86-64-tdep.c: Re-indent. Update copyright date.
7533
82dbc5f7
AC
75342002-02-26 Andrew Cagney <ac131313@redhat.com>
7535
7536 From Michal Ludvig <mludvig@suse.cz>:
7537 * x86-64-tdep.c (value.h): Delete.
7538 (gdb_assert.h): Include.
7539 (x86_64_register_convert_to_virtual,
7540 x86_64_register_convert_to_raw ): Add check which lets only
7541 floating-point values to be converted.
7542 (value_push): Delete.
7543 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7544 (i386_gdbarch_init): Number of register_bytes fixed.
7545
e4621584
AC
75462002-02-26 Andrew Cagney <ac131313@redhat.com>
7547
7548 * MAINTAINERS: Add x86-64 target.
7549
81a9a963
AC
75502002-02-26 Andrew Cagney <ac131313@redhat.com>
7551
7552 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7553 * osfsolib.c (solib_map_sections): Ditto.
7554 * irix5-nat.c (solib_map_sections): Ditto.
7555 * corelow.c (gdb_check_format): Ditto.
7556 * symfile.c (symfile_bfd_open): Ditto.
7557 * solib.c (solib_map_sections): Ditto.
7558 Fix PR gdb/354.
7e336ba1 7559
0f017ab9
AC
75602002-02-26 Andrew Cagney <ac131313@redhat.com>
7561
7562 * remote.c (_initialize_remote): By default, disable ``e'' and
7563 ``E'' step out-of-range packets.
7564
75738c29
AS
75652002-02-26 Andreas Schwab <schwab@suse.de>
7566
7567 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7568 m68k_linux_frame_saved_pc.
7569 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7570 in_sigtramp.
7571 (SIGCONTEXT_PC_OFFSET): Remove.
7572 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7573 m68k_linux_sigtramp_saved_pc): New functions.
7574 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7575 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7576 (UCONTEXT_PC_OFFSET): Define.
7577 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7578 non-RT and RT signal trampolines.
7579
7e8ed687
RE
75802002-02-26 Richard Earnshaw <rearnsha@arm.com>
7581
7582 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7583 (TARGET_NBPG, STACK_END_ADDR): Delete
7584 (VARIABLES_INSIDE_BLOCK): Delete.
7585
6972bc8b
AC
75862002-02-25 Andrew Cagney <ac131313@redhat.com>
7587
7588 * utils.c (perror_with_name): Make string parameter constant.
7589 (print_sys_errmsg): Ditto.
7590 (query): Ditto.
7591 * defs.h (perror_with_name): Update.
7592 (print_sys_errmsg): Update.
7593 (query): Update.
7594
aa32f823
DJ
75952002-02-25 Daniel Jacobowitz <drow@mvista.com>
7596
7597 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7598 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7599
19caaa45
PS
76002002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7601
7602 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7603 if it already matches the current architecture from the exec file.
7604 Include arch-utils.h for gdbarch_info_init prototype.
7605 * Makefile.in (rs6000-nat.o): Update dependencies.
7606
d951901f
EZ
76072002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7608
7609 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7610 list of exported variables.
7611
7ea81414
DJ
76122002-02-24 Daniel Jacobowitz <drow@mvista.com>
7613
7614 * gdbserver/configure.srv: New file.
7615 * gdbserver/configure.in: Use configure.srv instead
7616 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7617 from it.
7618 * gdbserver/configure: Regenerated.
7619 * gdbserver/terminal.h: New file.
7620 * gdbserver/Makefile.in: Update for configure changes. Remove
7621 more unneeded include paths.
7622
080fe24b
AC
76232002-02-24 Andrew Cagney <ac131313@redhat.com>
7624
7625 From wiz at danbala:
7626 * config/sparc/tm-sp64.h: Fix grammar and typos.
7627 Fix PR gdb/287.
7628
8605d56e
AC
76292002-02-24 Andrew Cagney <ac131313@redhat.com>
7630
7631 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7632 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7633 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7634 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7635 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7636 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7637 * s390-tdep.c: Ditto.
92362027
AC
7638 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7639 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7640 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7641 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7642 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7643 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7644 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7645 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7646 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7647 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7648 Fix PR gdb/378.
7e336ba1 7649
8ed32cc0
AC
76502002-02-23 Andrew Cagney <ac131313@redhat.com>
7651
a3007b6f
AC
7652 * lin-thread.c: Delete file.
7653 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7654 to gdb_proc_service.h.
7655 * configure: Re-generate.
7656
50a9e2f1
AC
7657 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7658 * serial.c (serial_open): Delete check for "ocd".
7659 Fix PR gdb/349.
7660
8b6e7932
AC
7661 * Makefile.in (linux-thread.o): Delete target.
7662 * linux-thread.c: Delete file.
7663
d155c46b
AC
7664 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7665 renamed SH files to be consistent.
7666
8ed32cc0
AC
7667 * symtab.c (sort_search_symbols): Use xfree.
7668
0e18d038
RE
76692002-02-23 Richard Earnshaw <rearnsha@arm.com>
7670
7671 * arm-linux-tdep.c (arm_linux_init_abi): Register
7672 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7673 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7674 definition with undef, since we don't want the sysvr4 definition.
7675 (SKIP_TRAMPOLINE_CODE): Likewise.
7676
27aac7ff
AC
76772002-02-23 Andrew Cagney <ac131313@redhat.com>
7678
7679 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7680
7681 * configure.in: (AC_CHECK_FUNCS) Added test for
7682 canonicalize_file_name Regenerated.
7683 * config.in, configure: Regenerated.
7684 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7685 defined use canonicalize_file_name.
7e336ba1 7686
65a6e0ee
MC
76872002-02-23 Michael Chastain <mec@shout.net>
7688
7689 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7690
47b95330
AC
76912002-02-23 Andrew Cagney <ac131313@redhat.com>
7692
7693 * README: Remove references to cygnus.com.
7694 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7695 dot com'' form. Remove references to cygnus.com and sourceware.
7696
696f451b
AC
76972002-02-23 Andrew Cagney <ac131313@redhat.com>
7698
7699 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7700 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7701 1003.1-2001 no longer allows "head -1".
7702 * gdb/Makefile.in (version.c): Likewise.
7703 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7704 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7705 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7706
bbaca940
AC
77072002-02-23 Andrew Cagney <ac131313@redhat.com>
7708
7709 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7710 * command.h (cmd_cfunc_eq): Declare.
7711 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7712
7713 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7714 ``struct cmd_list_element *''.
7715 * cli/cli-cmds.c (is_complete_command): Update. Use
7716 cmd_cfunc_eq.
7717 * top.c (execute_command): Pass the command to
7718 is_complete_command.
7719 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7720
b8b8b047
AC
77212002-02-23 Andrew Cagney <ac131313@redhat.com>
7722
7723 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7724 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7725 architecture defines.
7726 * s390-tdep.c (s390_gdbarch_init): Likewise.
7727
19d3fc80
RE
77282002-02-23 Richard Earnshaw <rearnsha@arm.com>
7729
7730 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7731 (arm_linux_push_arguments): Likewise.
7732 (arm_linux_init_abi): Register them. Also register linux-specific
7733 call_dummy_words.
7734 (find_minsym_and_objfile): Use strcmp, not STREQ.
7735 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7736 (arm_linux_call_dummy_words): Delete declaration.
7737 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7738 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7739 declarations.
7740 (LOWEST_PC): Delete.
7741
3ab13650
PS
77422002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7743
7744 * maint.c (print_section_info): Do not prepend `0x' to filepos
7745 output, it will be handled by local_hex_string_custom.
7746
19d3fc80 77472002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7748
7749 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7750 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7751 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7752
d85a5daf
JB
77532002-02-22 Jim Blandy <jimb@redhat.com>
7754
7755 Indicate that the bcache functions don't change the strings
7756 they're passed.
7757 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7758 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7759
eeb25b8a
PM
77602002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7761
7762 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7763
6badb179
CF
77642002-02-21 Christopher Faylor <cgf@redhat.com>
7765
7766 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7767 find the complete path to a loaded DLL.
7768
e8717518
FF
77692002-02-21 Fred Fish <fnf@redhat.com>
7770
7771 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7772 that marks the end of the range of a function, enter a line number
7773 entry that has a line number of zero and a PC offset that matches
7774 the end of the function. This starts a range of PC's for which no
7775 line number information is known.
7776 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7777 PC's for which no line number info is found (line number is zero)
7778 then we didn't find any valid line information.
7779 * symtab.h: Document use of zero line number entry.
7780
9abe5450
EZ
77812002-02-21 Elena Zannoni <ezannoni@redhat.com>
7782
7783 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7784 (have_ptrace_getvrregs): Define for run time checks.
7785 (gdb_vrregset_t): New type for Altivec register handling.
7786 (fetch_register, store_register): Fetch/store altivec register
7787 when needed.
7788 (fetch_altivec_register, store_altivec_register): New functions.
7789 (supply_vrregset, fill_vrregset): New functions.
7790 (fetch_altivec_registers, store_altivec_registers): New functions.
7791 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7792 registers as well.
7793
aaa38bb5
AJ
77942002-02-21 Jiri Smid <smid@suse.cz>
7795
7796 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7797
b34db576
RE
77982002-02-21 Richard Earnshaw <rearnsha@arm.com>
7799
7800 * Makefile.in (armnbsd-nat.o): Update dependencies.
7801 * armnbsd-nat.c (supply_gregset): New function. Common code to
7802 supply the integer register set.
7803 (supply_fparegset): New function. Similar for FPA registers.
7804 (fetch_regs, fetch_fp_regs): Use them.
7805 (fetch_core_registers): Likewise.
7806 (fetch_elfcore_registers): New function.
7807 (arm_netbsd_elfcore_fns): New core-file type specification.
7808 (_initialize_arm_netbsd_nat): Register it.
7809
3e56fc4b
RE
78102002-02-21 Richard Earnshaw <rearnsha@arm.com>
7811
7812 * armnbsd-nat.c: Include gdbcore.h.
7813 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7814 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7815 'void' to declaration, to shut up ARI.
7816 (fetch_core_registers): Make static. Rewrite using supply_register.
7817 (arm_netbsd_core_fns): New core-file type specification.
7818 (_initialize_arm_netbsd_nat): New function.
7819
097f6b0b
CF
78202002-02-21 Christopher Faylor <cgf@redhat.com>
7821
7822 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7823 value.
7824
c914e0cc
CF
78252002-02-20 Christopher Faylor <cgf@redhat.com>
7826
7827 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7828 fails.
7829
385fa495
DJ
78302002-02-20 Daniel Jacobowitz <drow@mvista.com>
7831
7832 * jv-exp.y (parse_number): Change type of implicit longs
7833 to builtin_type_uint64.
7834
e5f1222d
DJ
78352002-02-20 Daniel Jacobowitz <drow@mvista.com>
7836
7837 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7838 to be an integer instead of a `union wait'.
7839
75c9abc6
DJ
78402002-02-20 Daniel Jacobowitz <drow@mvista.com>
7841
7842 * mips-linux-nat.c: Call the operating system GNU/Linux.
7843 * mips-linux-tdep.c: Likewise.
7844 * mips-tdep.c: Likewise.
7845
551792a5
DJ
78462002-02-20 Daniel Jacobowitz <drow@mvista.com>
7847
7848 Fix PR gdb/265.
7849 * jv-exp.y (parse_number): Handle 64-bit integers.
7850
ee6e2b82
DJ
78512002-02-20 Daniel Jacobowitz <drow@mvista.com>
7852
7853 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7854 AC_STDC_HEADERS to AC_HEADER_STDC.
7855 * gdbserver/configure: Regenerated.
7856
a48442a0
RE
78572002-02-20 Richard Earnshaw <rearnsha@arm.com>
7858
7859 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7860 is defined.
7861 * sparc-tdep.c (get_longjmp_target): Likewise.
7862
fe419ffc
RE
78632002-02-20 Richard Earnshaw <rearnsha@arm.com>
7864
7865 * News: Add news about ARM and Multi-arch. Mention the new target
7866 arm*-*-netbsd*.
7867
5832ed7e
JB
78682002-02-19 Jim Blandy <jimb@redhat.com>
7869
7870 * stabsread.c (error_type_complaint): Improve error message.
7871
84563040
DJ
78722002-02-19 Daniel Jacobowitz <drow@mvista.com>
7873
7874 * gdbserver/README: Update documentation.
7875 * gdbserver/configure.in: Update configury to match documentation.
7876 * gdbserver/Makefile.in: Likewise.
7877 * gdbserver/configure: Regenerated.
7878 * gdbserver/aclocal.m4: New file, generated by aclocal.
7879 * gdbserver/config.in: New file, generated by autoheader.
7880
375fd65b
RE
78812002-02-19 Richard Earnshaw <rearnsha@arm.com>
7882
7883 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7884 armnbsd-nat.c.
7885
08216dd7
RE
78862002-02-19 Richard Earnshaw <rearnsha@arm.com>
7887
7888 * arm-tdep.h (enum arm_float_model): New enum.
7889 (struct gdbarch_tdep): Add fp_model.
7890 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7891 up floating-point conversions until we know the floating-point model
7892 in use by the inferior. Don't complain about being unable to
7893 determine the ABI of the inferior when we don't have one.
7894 (arm_extract_return_value): Support different floating-point models.
7895 (arm_store_return_value): Likewise.
aaa38bb5 7896 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7897 ARM_FLOAT_SOFT.
7898 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7899
65d6d66a
PS
79002002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7901
7902 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7903 of ``current_gdbarch''.
7904
47221191
RE
79052002-02-19 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * armnbsd-nat.c : ANSIfy all function declarations.
7908 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7909 (fetch_inferior_registers): Re-implement in terms of above.
7910 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7911 (store_inferior_registers): Re-implement in terms of above.
7912
fdf39c9a
RE
79132002-02-19 Richard Earnshaw <rearnsha@arm.com>
7914
aaa38bb5 7915 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7916 kernel.
7917 * arm-linux-tdep.c: Likewise.
7918 * config/arm/tm-linux.h: Likewise.
7919
93247f88
RE
79202002-02-19 Richard Earnshaw <rearnsha@arm.com>
7921
7922 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7923 * config/arm/nbsd.mt (TM_FILE): Delete.
7924 * config/arm/tm-nbsd.h: Delete.
7925
d7b486e7
RE
79262002-02-19 Richard Earnshaw <rearnsha@arm.com>
7927
7928 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7929 Initialize CALL_DUMMY_LENGTH.
7930
41d39a95
RE
79312002-02-19 Richard Earnshaw <rearnsha@arm.com>
7932
7933 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7934 function.
7935 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7936 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7937 defines one thing and that is incorrect for this port.
7938 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7939
e1195560
PM
79402002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7941
7942 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7943
c1748f97
PM
79442002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7945
7946 * win32-nat.c (display_selector): New function. Displays information
7947 about the information returned by GetThreadSelectorEntry API function.
7948 (display_selectors): New function. Displays the infomation of
7949 the selector given as argument, or of CS, DS ans FS selectors
7950 if no argument is given.
7951 ( _initialize_inftarg): Add "w32" as info prefix command.
7952 Add "info w32 selector" as command calling display_selectors.
7953
e41e6bbf
PM
79542002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7955
7956 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7957 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7958 if not defined.
7959
0d3a9f48
RE
79602002-02-18 Richard Earnshaw <rearnsha@arm.com>
7961
7962 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7963
3fb4b924
RE
79642002-02-18 Richard Earnshaw <rearnsha@arm.com>
7965
7966 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7967 (arm_fix_call_dummy): Call it.
7968 (arm_call_dummy_breakpoint_offset): Delete.
7969 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7970 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7971
7f55af32
AC
79722002-02-18 Andrew Cagney <ac131313@redhat.com>
7973
7974 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7975 Default to func_frame_chain_valid.
7976 * gdbarch.h, gdbarch.c: Re-generate.
7977 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7978
05f13b9c
EZ
79792002-02-18 Elena Zannoni <ezannoni@redhat.com>
7980
7981 * ppc-linux-nat.c: Update copyright.
7982 (fetch_register, store_register): Add tid parameter, don't compute
7983 tid here.
7984 (fetch_ppc_registers, store_ppc_registers): Add tid
7985 parameter. Pass it along to callees.
7986 (fetch_inferior_registers, store_inferior_registers): Compute tid
7987 here, and pass it to calleed functions.
7988 (fill_gregset, supply_fpregset): Clean up formatting.
7989
d7afb4c9
RE
79902002-02-18 Richard Earnshaw <rearnsha@arm.com>
7991
7992 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7993 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7994
9df628e0
RE
79952002-02-18 Richard Earnshaw <rearnsha@arm.com>
7996
7997 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7998 * gdbarch.c gdbarch.h: Regenerate.
7999 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8000 function.
8001 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8002 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8003 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8004
8005 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8006 * arm-tdep.c (arm_get_longjmp_target): New function.
8007 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8008 this to a positive value register arm_get_longjmp_target as the
8009 longjmp handler.
8010 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8011 (arm_linux_init_abi): Set up longjmp description in tdep.
8012 * armnbsd-nat.c (get_longjmp_target): Delete.
8013 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8014 description in tdep.
8015 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8016 (get_longjmp_target): Delete declaration.
8017 (GET_LONGJMP_TARGET): Delete.
8018 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8019 (GET_LONGJMP_TARGET): Delete.
8020
57bc8964
KB
80212002-02-17 Kevin Buettner <kevinb@redhat.com>
8022
8023 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8024 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8025 of ``current_gdbarch''.
8026
83d31a92
TT
80272002-02-17 Tom Tromey <tromey@redhat.com>
8028
8029 * cli/cli-cmds.c (compare_strings): New function.
8030 (complete_command): Only print each unique item once.
8031 * completer.h (complete_line): Declare.
8032 * completer.c (complete_line): New function.
8033 (line_completion_function): Use it.
8034
17ef5d92
AC
80352002-02-16 Andrew Cagney <ac131313@redhat.com>
8036
8037 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8038 * gdbarch.h, gdbarch.c: Re-generate.
8039
491b8946
DJ
80402002-02-16 Daniel Jacobowitz <drow@mvista.com>
8041
8042 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8043
80442002-02-16 Daniel Jacobowitz <drow@mvista.com>
8045
8046 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8047 * valops.c (value_arg_coerce): Don't take the address of a reference
8048 to convert an argument to a reference.
8049
dfe7f3ac
CF
80502002-02-15 Christopher Faylor <cgf@redhat.com>
8051
8052 * win32-nat.c (get_image_name): New function.
8053 (handle_load_dll): Use get_image_name function.
8054 (get_child_debug_event): Avoid registering debug events until possibly
8055 execed process is started.
8056 (child_create_inferior): Allow invocation via shell so that command
8057 line redirection, etc. works ok.
8058 (_initialize_inftarg): Add new command: "set shell" to control whether
8059 a shell is used to start a process.
8060
1d33e73a
DJ
80612002-02-15 Daniel Jacobowitz <drow@mvista.com>
8062
8063 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8064 instead of find_register_by_number.
8065 (cannot_store_register): Likewise.
8066
48cd0caa
PM
80672002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8068
aaa38bb5 8069 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8070 fprintf_unfiltered (gdb_stderr, ...).
8071
8656e7d8
DJ
80722002-02-15 Daniel Jacobowitz <drow@mvista.com>
8073
8074 * gdbserver/gdbserver.1: Document --attach.
8075
66e810cd
RE
80762002-02-15 Richard Earnshaw <rearnsha@arm.com>
8077
8078 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8079 descriptions.
8080 * arm-tdep.c (arm_default_arm_le_breakpoint)
8081 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8082 (arm_default_thumb_be_breakpoint): New. Initialize them from
8083 traditional breakpoint defines.
8084 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8085 (arm_gdbarch_init): Initialize new breakpoint variables.
8086 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8087 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8088 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8089 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8090 code out to ...
8091 (arm_netbsd_init_abi_common): ... here; new function.
8092 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8093 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8094 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8095 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8096
97e03143
RE
80972002-02-15 Richard Earnshaw <rearnsha@arm.com>
8098
8099 * arm-tdep.h (enum arm_abi): New enum.
8100 (struct gdbarch_tdep): New structure.
8101 (LOWEST_PC): Provide a default.
8102 (arm_gdbarch_register_os_abi): Declare new function.
8103 * arm-tdep.c (arm_abi_names): New array.
8104 (process_note_abi_tag_sections): New function.
8105 (get_elfosabi): New function.
8106 (arm_gdbarch_register_os_abi): New function.
8107 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8108 support for that ABI has been built in, then call the appropriate
8109 configuration routine. Use gdbarch_num_regs() to get the number
8110 of registers.
8111 (arm_dump_tdep): New function.
8112 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8113 place-holder functions.
8114 (_initialize_arm_tdep): Register them.
8115 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8116
8117 * armnbsd-tdep.c: New file.
8118 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8119 * config/arm/nbsd.mt (TDEPFILES): Add it.
8120 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8121
8122 * armnbsd-nat.c: Include regcache.h.
8123 * Makefile.in (armnbsd-nat.o): Update dependency list.
8124
8125 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8126
ad68be46
DJ
81272002-02-14 Daniel Jacobowitz <drow@mvista.com>
8128
8129 * gdbserver/Makefile.in: Fix typos in target rules.
8130
003d6d1d
DJ
81312002-02-14 Daniel Jacobowitz <drow@mvista.com>
8132
aaa38bb5 8133 Fix part of PR gdb/267.
003d6d1d
DJ
8134 * linespec.c (find_methods): Handle constructors specially for now.
8135
6b230f1b
CV
81362002-02-14 Corinna Vinschen <vinschen@redhat.com>
8137
8138 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8139 handling.
8140 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8141 standard_coerce_float_to_double().
8142
1ea98d12
CF
81432002-02-14 Christopher Faylor <cgf@redhat.com>
8144
8145 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8146 GDBINIT_FILENAME.
8147
dd47e6fd
EZ
81482002-02-14 Elena Zannoni <ezannoni@redhat.com>
8149
8150 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8151 find_variant_by_name, because it confuses the multiarch
8152 framework. Return NULL if there isn't an architecture with the
8153 user supplied name, instead of forcing a different one without
8154 recording the change with the multiarch machinery.
8155 (find_variant_by_name): Delete.
8156
d7e39b9e
PS
81572002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8158
8159 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8160 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8161
76e42a4f
MH
81622002-02-13 Martin M. Hunt <hunt@redhat.com>
8163
aaa38bb5 8164 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8165 print_frame_info_listing_hook, set current_source_symtab.
8166
0a30fbc4
DJ
81672002-02-14 Daniel Jacobowitz <drow@mvista.com>
8168
8169 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8170 and remove unused $(INCLUDE_DIR).
8171 Add regcache.c to OBS.
8172 Add generated register protocol files to clean target.
8173 Update dependencies for new objects, obsolete old target code.
8174
8175 * gdbserver/linux-low.c: Remove all platform-specific code to
8176 new files. Remove various dead code. Update to use regcache
8177 functionality.
8178 * gdbserver/remote-utils.c (fromhex): Add return statement
8179 to quiet warning.
8180 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8181 constant.
8182 (input_interrupt): Add integer parameter to match prototype
8183 of a signal handler.
8184 (outreg): Use register_data ().
8185 (prepare_resume_reply): Use gdbserver_expedite_regs.
8186 * gdbserver/server.c (main): Dynamically allocate own_buf because
8187 PBUFSIZ is no longer constant. Use registers_to_string () and
8188 registers_from_string ().
8189 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8190 for error (), fatal (), and warning (). Update definition of
8191 PBUFSIZ to use regcache functionality. Add include guard.
8192 * gdbserver/utils.c (fatal): Add missing ``const''.
8193 (warning): New function.
8194
8195 * regformats/regdat.sh: Include "regcache.h" in generated files.
8196 Provide init_registers () function.
8197 * regformats/regdef.h: Add prototype for set_register_cache ().
8198 Add include guard.
8199
8200 * gdbserver/linux-arm-low.c: New file.
8201 * gdbserver/linux-i386-low.c: New file.
8202 * gdbserver/linux-ia64-low.c: New file.
8203 * gdbserver/linux-m68k-low.c: New file.
8204 * gdbserver/linux-mips-low.c: New file.
8205 * gdbserver/linux-ppc-low.c: New file.
8206 * gdbserver/linux-sh-low.c: New file.
8207
8208 * gdbserver/regcache.c: New file.
8209 * gdbserver/regcache.h: New file.
8210
8211 * gdbserver/low-linux.c: Removed obsolete file.
8212
4cc841d0
DJ
82132002-02-14 Daniel Jacobowitz <drow@mvista.com>
8214
8215 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8216 * config/i386/linux.mt: Likewise.
8217 * config/ia64/linux.mt: Likewise.
8218 * config/m68k/linux.mh: Likewise.
8219 * config/powerpc/linux.mh: Likewise.
8220 * config/mips/linux.mt: Likewise.
8221
8222 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8223
8224 * config/i386/i386lynx.mh: Mark gdbserver variables
8225 as (currently) obsolete for this target.
8226 * config/i386/nbsd.mt: Likewise.
8227 * config/i386/nbsdelf.mt: Likewise.
8228 * config/m32r/m32r.mt: Likewise.
8229 * config/m68k/m68klynx.mh: Likewise.
8230 * config/m68k/nbsd.mt: Likewise.
8231 * config/m68k/sun3os4.mh: Likewise.
8232 * config/mips/vr5000.mt: Likewise.
8233 * config/ns32k/nbsd.mt: Likewise.
8234 * config/pa/hppabsd.mh: Likewise.
8235 * config/pa/hppaosf.mh: Likewise.
8236 * config/powerpc/nbsd.mt: Likewise.
8237 * config/rs6000/rs6000lynx.mh: Likewise.
8238 * config/s390/s390.mt: Likewise.
8239 * config/s390/s390x.mt: Likewise.
8240 * config/sparc/sparclynx.mh: Likewise.
8241 * config/sparc/sun4os4.mh: Likewise.
8242 * config/i386/x86-64linux.mt: Likewise.
8243 * config/sparc/linux.mh: Likewise.
8244
a85f51e7
DJ
82452002-02-14 Daniel Jacobowitz <drow@mvista.com>
8246
8247 * configure.tgt: Configure gdbserver only for known working
8248 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8249 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8250 SUBDIRS if it is configured. Update comment for ${nativefile}.
8251 * configure: Regenerated.
8252
65554fef
MS
82532002-02-13 Michael Snyder <msnyder@redhat.com>
8254
670a52db
MS
8255 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8256
6dbdc4a3
MS
8257 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8258 (default_gcore_mach): Just return 0, work around a problem in bfd.
8259 (default_gcore_target): OK to return NULL if exec_bfd is null.
8260 (make_mem_sec): Use a cast, avoid a warning.
8261
8262 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8263 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8264 sizeof (host pointer) != sizeof (target pointer)).
8265 (procfs_make_note_section): Avoid overflow in psargs string.
8266
aaa38bb5 8267 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8268 implementation return an error.
8269
82702002-02-13 Rodney Brown <rbrown64@csc.com.au>
8271
8272 * procfs.c (procfs_make_note_section): Provide a default definition
8273 (for alpha-dec-osf4.0f). Fix typos.
8274
1e4d76e7
EZ
82752002-02-13 Elena Zannoni <ezannoni@redhat.com>
8276
8277 * linux-proc.c: Add include of regcache.h.
8278 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8279
b6d1a1d5
AC
82802002-02-13 Andrew Cagney <ac131313@redhat.com>
8281
8282 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8283 * memattr.c (create_mem_region): Disallow useless empty region.
8284 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8285 non-overlapping.
b6d1a1d5 8286
6c6ea35e
MC
82872002-02-13 Michael Chastain <mec@shout.net>
8288
8289 * defs.h: Kill CONST_PTR.
8290 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8291 * c-lang.c (c_builtin_types): Likewise.
8292 * ch-lang.c (ch_builtin_types): Likewise.
8293 * f-lang.c (f_builtin_types): Likewise.
8294 * language.c (unknown_builtin_types): Likewise.
8295 * m2-lang.c (m2_builtin_types): Likewise.
8296 * p-lang.c (pascal_builtin_types): Likewise.
8297 * scm-lang.c (c_builtin_types): Likewise.
8298
3e0b0f48
KS
82992002-02-13 Keith Seitz <keiths@redhat.com>
8300
8301 * arm-tdep.h (arm_get_next_pc): Add declaration.
8302
67255d04
RE
83032002-02-13 Richard Earnshaw <rearnsha@arm.com>
8304
8305 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8306 with other related struct-returning functions.
8307 (arm_extract_struct_value_address): New function.
8308 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8309 initialize float_format, double_format and long_double_format as
8310 appropriate to the endianness of the target.
8311 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8312 (arm_use_struct_convention): Delete declaration.
8313 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8314
079777f6
KS
83152002-02-13 Keith Seitz <keiths@redhat.com>
8316
8317 * defs.h (core_addr_to_string_nz): New function.
8318
34588f23
MK
83192002-02-13 Mark Kettenis <kettenis@gnu.org>
8320
8321 Apply missing bits of 2002-01-15 patch.
8322 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8323 (fill_fpregset): Use i387_fill_fsave.
8324
49b563f9
KS
83252002-02-12 Keith Seitz <keiths@redhat.com>
8326
49b563f9
KS
8327 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8328 (core_addr_to_string_nz): New function.
8329
aeb98c60
RE
83302002-02-11 Richard Earnshaw <rearnsha@arm.com>
8331
8332 * arm-linux-nat.c: Really include arm-tdep.h.
8333 * config/arm/tm-linux.h (struct type, struct value): Declare.
8334
65554fef
MS
83352002-02-11 Michael Snyder <msnyder@redhat.com>
8336
8337 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8338 (gcore section): Ifdef for Solaris and Unixware only.
8339 (procfs_do_thread_registers): Unixware needs one lwpstatus
8340 per thread (not one prstatus or pstatus).
8341 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8342 not over all gdb threads. For unixware, call elfcore_write_pstatus
8343 once before iterating over threads.
8344
34e8f22d
RE
83452002-02-11 Richard Earnshaw <rearnsha@arm.com>
8346
8347 * arm-tdep.h: New file.
8348 * arm-tdep.c: Include arm-tdep.h.
8349 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8350 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8351 (arm_print_float_info, arm_register_type, convert_to_extended)
8352 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8353 (arm_extract_return_value, arm_register_name): Make static.
8354 (arm_software_single_step): Similarly. Fix types in declaration.
8355 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8356 (arm_store_return_value, arm_store_struct_return): New functions.
8357 (arm_gdbarch_init): Register the above functions. Also register
8358 call_dummy_start_offset, sizeof_call_dummy_words,
8359 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8360 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8361 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8362 prologue_cache.saved_regs here, rather than ...
8363 (_initialize_arm_tdep): ... here.
8364 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8365 declarations.
8366 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8367 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8368 (arm_print_float_info, arm_register_type, convert_to_extended)
8369 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8370 (arm_extract_return_value, arm_register_name): Delete declarations.
8371 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8372 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8373 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8374 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8375 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8376 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8377 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8378 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8379 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8380 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8381 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8382 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8383 interface.
8384 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8385 * remote-rdi.c remote-rdp.c: Likewise.
8386 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8387 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8388 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8389 definition.
8390
8391 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8392 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8393 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8394 from non-ARM_ prefixed definitions.
8395 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8396 all uses of above.
8397 * remote-rdi.c remote-rdp.c: Likewise.
8398 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8399
148754e5
RE
84002002-02-11 Richard Earnshaw <rearnsha@arm.com>
8401
8402 * arm-tdep.c (arm_frameless_function_invocation)
8403 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8404 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8405 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8406 (arm_pop_frame, arm_get_next_pc): Make static.
8407 (arm_gdbarch_init): Register above in gdbarch structure.
8408 (arm_read_fp): Renamed from arm_target_read_fp.
8409 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8410 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8411 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8412 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8413 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8414 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8415 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8416 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8417 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8418 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8419 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8420
434d2d4f
DJ
84212002-02-10 Daniel Jacobowitz <drow@mvista.com>
8422
8423 * symtab.c (compare_search_syms): New function.
8424 (sort_search_symbols): New function.
8425 (search_symbols): Sort symbols after searching rather than
8426 before.
8427
55241689
AC
84282002-02-10 Andrew Cagney <ac131313@redhat.com>
8429
8430 * NEWS: Linux -> GNU/Linux.
8431
028c194b
AC
84322002-02-10 Andrew Cagney <ac131313@redhat.com>
8433
8434 * gdbarch.sh: For for level one methods, disallow a definition
8435 when partially multi-arched. Add comments explaining rationale.
8436 * gdbarch.h: Re-generate.
8437
6acf50cd
AC
84382002-02-10 Andrew Cagney <ac131313@redhat.com>
8439
8440 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8441 multi-arch partial.
aaa38bb5 8442
50248794
AC
84432002-02-10 Andrew Cagney <ac131313@redhat.com>
8444
8445 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8446 field. Use diff -u.
8447 * gdbarch.c: Re-generate.
8448
c30e0066
AC
84492002-02-10 Andrew Cagney <ac131313@redhat.com>
8450
9b56c5f3 8451 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8452 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8453 partial.
8454
6e6d6484
AC
84552002-02-10 Andrew Cagney <ac131313@redhat.com>
8456
8457 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8458 multi-arch partial.
8459 (PUSH_ARGUMENTS): Switch to using predefault.
8460 * gdbarch.c: Regenerate.
8461
c203844d
AC
84622002-02-10 Andrew Cagney <ac131313@redhat.com>
8463
8464 * valops.c (PUSH_ARGUMENTS): Delete definition.
8465 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8466 partial. Default to default_push_arguments.
8467 * gdbarch.h, gdbarch.c: Regenerate.
8468
b5a2688f
AC
84692002-02-09 Andrew Cagney <ac131313@redhat.com>
8470
8471 * defs.h (throw_exception): Rename return_to_top_level. Update
8472 comments.
8473 * utils.c (error_stream, internal_verror, quit): Ditto.
8474 * top.c (throw_exception, catcher): Ditto.
8475 * sparclet-rom.c (sparclet_load): Ditto.
8476 * remote.c (interrupt_query, minitelnet): Ditto.
8477 * remote-sds.c (interrupt_query): Ditto.
8478 * remote-mips.c (mips_error, mips_kill): Ditto.
8479 * ocd.c (interrupt_query): Ditto.
8480 * monitor.c (monitor_interrupt_query): Ditto.
8481 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8482 * target.h: Update comment.
aaa38bb5 8483
b5a2688f 8484 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8485
2fa5c1e0
AC
84862002-02-09 Andrew Cagney <ac131313@redhat.com>
8487
8488 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8489 default_double_format.
8490 * gdbarch.h, gdbarch.c: Re-generate.
8491 * findvar.c (floatformat_unknown): Delete variable definition.
8492 * doublest.h (floatformat_unknown): Delete variable declaration.
8493
da966255
JB
84942002-02-09 Jim Blandy <jimb@redhat.com>
8495
8496 * stabsread.c (read_type): Add code to parse Sun's syntax for
8497 prototyped function types.
8498
123a4891
AC
84992002-02-09 Andrew Cagney <ac131313@redhat.com>
8500
8501 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8502 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8503
fb39c8f3
PS
85042002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8505
8506 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8507 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8508 now _initialize_xcoffsolib gets called again and overrides the
8509 commands from solib.c in a native configuration.
8510
0b87a11d
MK
85112002-02-09 Mark Kettenis <kettenis@gnu.org>
8512
8513 * doublest.c (store_typed_floating): Don't try to return a value.
8514 Fixes PR gdb/290.
8515
bdc2fc72
JB
85162002-02-08 Jim Blandy <jimb@redhat.com>
8517
8518 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8519 is prototyped and has no arguments, print its argument list as
8520 `(void)'.
8521
da69bbcf
CD
85222002-02-08 Chris Demetriou <cgd@broadcom.com>
8523
8524 * MAINTAINERS (write-after-approval): Add myself.
8525 (paper-trail): I've escaped!
aaa38bb5 8526
b69571f5
CF
85272002-02-08 Christopher Faylor <cgf@redhat.com>
8528
8529 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8530 changes.
8531 (_initialize_check_for_gdb_ini): Ditto.
8532
f6871398
MH
85332002-02-08 Martin M. Hunt <hunt@redhat.com>
8534
8535 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8536 xaprintf -> xasprintf.
8537
4e52d31c
PM
85382002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8539
8540 * win32-nat.c: Remove use of printf and sprintf functions.
8541
39bbf761
RE
85422002-02-08 Richard Earnshaw <rearnsha@arm.com>
8543
8544 * arm-tdep.c (arm_frame_chain_valid): Make static.
8545 (arm_push_arguments): Likewise.
8546 (arm_gdbarch_init): New function.
8547 (_initialize_arm_tdep): Call it.
8548 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8549 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8550 (FRAME_CHAIN_VALID): Delete.
8551 (arm_frame_chain_valid): Delete declaration.
8552 (PUSH_ARGUMENTS): Delete.
8553 (arm_push_arguments): Delete declaration.
8554 (CALL_DUMMY_P): Delete.
8555
9c9532c9
CV
85562002-02-08 Andrew Cagney <ac131313@redhat.com>
8557 Corinna Vinschen <vinschen@redhat.com>
8558
8559 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8560 on builtin float types.
8561
4e8f7a8b
DJ
85622002-02-08 Daniel Jacobowitz <drow@mvista.com>
8563
8564 * utils.c: Include <curses.h> before "bfd.h".
8565 * tui/tui-hooks.c: Likewise.
8566 * tui/tui.c: Likewise.
8567 * tui/tuiCommand.c: Likewise.
8568 * tui/tuiData.c: Likewise.
8569 * tui/tuiDataWin.c: Likewise.
8570 * tui/tuiDisassem.c: Likewise.
8571 * tui/tuiGeneralWin.c: Likewise.
8572 * tui/tuiIO.c: Likewise.
8573 * tui/tuiLayout.c: Likewise.
8574 * tui/tuiRegs.c: Likewise.
8575 * tui/tuiSource.c: Likewise.
8576 * tui/tuiSourceWin.c: Likewise.
8577 * tui/tuiStack.c: Likewise.
8578 * tui/tuiWin.c: Likewise.
8579
cd4bffcf
EZ
85802002-02-07 Elena Zannoni <ezannoni@redhat.com>
8581
8582 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8583 to include space for pseudoregs as well. Update loops accordingly.
8584 (sh_fp_frame_init_saved_regs): Ditto.
8585 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8586
26806ce2
AC
85872002-02-07 Andrew Cagney <ac131313@redhat.com>
8588
8589 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8590 Add Richard Earnshaw to Arm maintainers.
8591
97fdab62
AC
85922002-02-07 Andrew Cagney <ac131313@redhat.com>
8593
a6b98203
AC
8594 * defs.h (warning_begin): Delete declaration.
8595
97fdab62
AC
8596 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8597 Delete macro.
8598
78b29b40
MS
85992002-02-07 Michael Snyder <msnyder@redhat.com>
8600
aaa38bb5 8601 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8602 Logic bug, remove misplaced else.
8603
d8849953
KD
86042002-02-07 Klee Dienes <klee@apple.com>
8605
8606 * fork-inferior.c (fork_inferior): Add '!' to the list of
8607 characters that need to be quoted when building a string for the
8608 shell. Quote '!' specifically with a backslash, since CSH chokes
8609 when trying to evaluate "str!str".
aaa38bb5 8610
095778a0
NC
86112002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8612
8613 * rdi-share/host.h: Only provide a typedef for bool if it is not
8614 defined.
8615
1900040c
MS
86162002-02-04 Michael Snyder <msnyder@redhat.com>
8617
8618 * breakpoint.h (enum bptype): Add new overlay event bp type.
8619 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8620
1900040c
MS
8621 * breakpoint.c (create_internal_breakpoint): New function.
8622 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8623 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8624 (create_thread_event_breakpoint): Ditto.
8625 (create_solib_event_breakpoint): Ditto.
8626 (create_overlay_event_breakpoint): New function.
8627 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8628 (update_breakpoints_after_exec): Delete and re-initialize
8629 overlay event breakpoints after an exec. Add FIXME comment
8630 about longjmp breakpoint.
8631 (print_it_typical): Ignore overlay event breakpoints.
8632 (print_one_breakpoint): Ditto.
8633 (mention): Ditto.
8634 (bpstat_what): Do not stop for overlay event breakpoints.
8635 (delete_breakpoint): Don't delete overlay event breakpoints.
8636 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8637 (breakpoint_re_set): Re-create overlay event breakpoint.
8638
8639 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8640 (overlay_manual_command): Disable overlay breakpoints.
8641 (overlay_off_command): Disable overlay breakpoints.
8642
082fc60d
RE
86432002-02-06 Richard Earnshaw <rearnsha@arm.com>
8644
8645 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8646 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8647 to here from config/tm-arm.h.
8648 (coff_sym_is_thumb): Make static.
8649 (arm_elf_make_msymbol_special): New function.
8650 (arm_coff_make_msymbol_special): New function.
8651 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8652 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8653 (coff_sym_is_thumb): Delete declaration.
8654 (arm_elf_make_msymbol_special): Declare.
8655 (arm_coff_make_msymbol_special): Declare.
8656 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8657 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8658
039c5766
RE
86592002-02-06 Richard Earnshaw <rearnsha@arm.com>
8660
8661 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8662
86632002-02-06 Richard Earnshaw <rearnsha@arm.com>
8664
8665 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8666 * gdbarch.c gdbarch.h: Regenerate.
8667 * arch-utils.c (default_print_float_info): New function.
8668 * arch-utils.h (default_print_float_info): Prototype it.
8669 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8670 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8671 (PRINT_FLOAT_INFO): Document it.
8672
8673 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8674 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8675 (PRINT_FLOAT_INFO): Define.
8676
58fa08f0
PM
86772002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8678
aaa38bb5 8679 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8680 Add typecast to sprintf argument to suppress a warning.
8681
7393af7c
PM
86822002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8683
58fa08f0 8684 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8685 to allow easier handling of pass state.
8686 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8687 that gives exception name and address.
8688 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8689 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8690 exceptions added.
aaa38bb5
AJ
8691 (child_continue): Correctly report continue_status.
8692 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8693 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8694 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8695 the exception should be passed to debuggee or not.
8696
6af4589c
MS
86972002-02-05 Michael Snyder <msnyder@redhat.com>
8698
8699 * regcache.c (fetch_register): Call target_fetch_register
8700 only if we don't call FETCH_PSEUDO_REGISTER.
8701 (store_register): Call target_store_register only if we
8702 don't call STORE_PSEUDO_REGISTER.
8703
a2cf933a
EZ
87042002-02-05 Elena Zannoni <ezannoni@redhat.com>
8705
8706 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8707 ELF_MAKE_MSYMBOL_SPECIAL.
8708 * gdbarch.c, gdbarch.h: Regenerate.
8709 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8710 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8711 * elfread.c (elf_symtab_read): Compile use of
8712 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8713 multiarched.
8714 * coffread.c (coff_symtab_read): Ditto, for
8715 COFF_MAKE_MSYMBOL_SPECIAL.
8716
6bb7be43
JB
87172002-02-05 Jim Blandy <jimb@redhat.com>
8718
8719 * solib-svr4.c (svr4_truncate_ptr): New function.
8720 (svr4_relocate_section_addresses): Do the address arithmetic with
8721 the appropriate truncation for target addresses, even when
8722 CORE_ADDR is larger than a target address.
8723
e18651ec
DJ
87242002-02-05 Daniel Jacobowitz <drow@mvista.com>
8725
8726 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8727 to (int *).
8728
6b2725be
DJ
87292002-02-05 Daniel Jacobowitz <drow@mvista.com>
8730
8731 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8732 code.
8733
fca9e603
DJ
87342002-02-05 Daniel Jacobowitz <drow@mvista.com>
8735
8736 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8737
6c537a52
DJ
87382002-02-05 Daniel Jacobowitz <drow@mvista.com>
8739
8740 * gdbserver/linux-low.c: Remove unused include files.
8741
d844cde6
DJ
87422002-02-05 Daniel Jacobowitz <drow@mvista.com>
8743
8744 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8745 (read_inferior_memory): Use it.
8746 (write_inferior_memory): Likewise.
8747
d07c63e7
DJ
87482002-02-05 Daniel Jacobowitz <drow@mvista.com>
8749
8750 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8751 grubbing through sys_errlist.
8752
da6d8c04
DJ
87532002-02-05 Daniel Jacobowitz <drow@mvista.com>
8754
8755 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8756
5b421780
PM
87572002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8758 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8759
9f60d481
AC
87602002-02-04 Andrew Cagney <ac131313@redhat.com>
8761
8762 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8763 (do_sfunc, set_cmd_sfunc): New functions.
8764
8765 * command.h (struct cmd_list_element): Add field func.
8766 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8767 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8768 * cli/cli-decode.h: Ditto.
8769
8770 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8771 (help_all, help_cmd_list): Ditto.
8772 (find_cmd, complete_on_cmdlist): Ditto.
8773 * top.c (execute_command): Ditto.
8774
8775 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8776 function.sfunc.
8777
8778 * infcmd.c (notice_args_read): Fix function signature.
8779
8780 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8781 * cli/cli-decode.c (add_set_cmd): Ditto.
8782 * utils.c (initialize_utils): Ditto.
8783 * maint.c (_initialize_maint_cmds): Ditto.
8784 * infrun.c (_initialize_infrun): Ditto.
8785 * demangle.c (_initialize_demangler): Ditto.
8786 * remote.c (add_packet_config_cmd): Ditto.
8787 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8788 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8789 * proc-api.c (_initialize_proc_api): Ditto.
8790 * kod.c (_initialize_kod): Ditto.
8791 * valprint.c (_initialize_valprint): Ditto.
8792 * top.c (init_main): Ditto.
8793 * infcmd.c (_initialize_infcmd): Ditto.
8794 * corefile.c (_initialize_core): Ditto.
8795 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8796 * arch-utils.c (initialize_current_architecture): Ditto.
8797 (_initialize_gdbarch_utils): Ditto.
8798 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8799
8800 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8801 * wince.c (_initialize_inftarg): Ditto.
8802 * symfile.c (_initialize_symfile): Ditto.
8803 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8804 * language.c (_initialize_language): Ditto.
8805 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8806
f9ba0717
MS
88072002-02-04 Michael Snyder <msnyder@redhat.com>
8808
8809 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8810
0c74b2a7
DJ
88112002-02-04 Daniel Jacobowitz <drow@mvista.com>
8812
8813 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8814 Add rules for building the register data files.
8815
c638789f
DJ
88162002-02-04 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * regformats/regdat.sh: Add braces to the definition of
8819 expedite_regs_${arch}.
8820
db253027
DJ
88212002-02-04 Daniel Jacobowitz <drow@mvista.com>
8822
8823 * regformats/regdef.h (struct reg): Add comment describing the
8824 requirements for offset and size fields.
8825
206be19c
AS
88262002-02-04 Andreas Schwab <schwab@suse.de>
8827
8828 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8829 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8830
181c1381
RE
88312002-02-04 Richard Earnshaw <rearnsha@arm.com>
8832
8833 * gdbarch.sh (copyright): Update years in generated header.
8834 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8835 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8836 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8837 * dbxread.c: Likewise.
8838 * dwarfread.c: Likewise.
8839 * elfread.c: Likewise.
8840 * somread.c: Likewise.
8841
8842 * arm-tdep.c (arm_smash_text_address): New function.
8843 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8844
fa4ba8da
PM
88452002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8846
8847 Add support for hardware watchpoints on win32 native.
aaa38bb5 8848 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8849 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8850 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8851 of debug registers.
8852 (debug_registers_changed): New variable. Reflects when debug registers
8853 are changed and need to be written to inferior.
aaa38bb5 8854 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8855 was set, used when new threads are created.
8856 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8857 i386-nat code.
8858 (thread_rec): Set dr array if id is the thread of current_event .
8859 (child_continue, child_resume): Change the debug registers for all
8860 threads if debug_registers_changed.
8861 (child_add_thread): Change the debug registers if debug_registers_used.
8862 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8863 Link nm.h to new nm-cygwin.h file.
8864 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8865 of hardware registers.
8866
a73c86fb
AC
88672002-02-03 Andrew Cagney <ac131313@redhat.com>
8868
8869 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8870 Restore behavour broken by 2002-01-20 Andrew Cagney
8871 <ac131313@redhat.com> IEEE_FLOAT removal.
8872
acf5ed49
DJ
88732002-02-03 Daniel Jacobowitz <drow@mvista.com>
8874
8875 * c-valprint.c (c_val_print): Pass a proper valaddr to
8876 cp_print_class_method.
8877 * valops.c (search_struct_method): If there is only one method
8878 and args is NULL, return that method.
8879
493d28d5
DJ
88802002-02-03 Daniel Jacobowitz <drow@mvista.com>
8881
8882 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8883 accessing tag_name directly.
8884
7495dfdb
DJ
88852002-02-03 Daniel Jacobowitz <drow@mvista.com>
8886
8887 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8888 of accessing tag_name directly.
8889
dd6bda65
DJ
88902002-02-03 Daniel Jacobowitz <drow@mvista.com>
8891
8892 PR gdb/280
8893 * gdbtypes.c (replace_type): New function.
8894 * gdbtypes.h (replace_type): Add prototype.
8895 * stabsread.c (read_type): Use replace_type.
8896
88fe217c
RE
88972002-02-03 Richard Earnshaw <rearnsha@arm.com>
8898
8899 * Makefile.in (memattr.o): Add missing dependencies rule.
8900
e5d66720
PS
89012002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8902
8903 * breakpoint.c (break_at_finish_command): Really export.
8904 (break_at_finish_at_depth_command): Ditto.
8905 (tbreak_at_finish_command): Ditto.
8906 * hppa-tdep.c: Include completer.h.
8907 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8908 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8909
fffee0be
AC
89102002-02-01 Andrew Cagney <ac131313@redhat.com>
8911
8912 * utils.c (do_write): New function.
8913 (error_stream): Rewrite combining the code from error_begin and
8914 verror.
8915 (verror): Rewrite using error_stream.
8916 (error_begin): Delete function.
8917
255e7dbf
AC
89182002-02-01 Andrew Cagney <ac131313@redhat.com>
8919
8920 * utils.c (error_begin): Make static.
8921 * defs.h (error_begin): Delete declaration.
8922
8923 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8924 (decode_line_1): Use cplusplus_error instead of error_begin,
8925 cplusplus_hint and return_to_top_level.
8926 * coffread.c (coff_symfile_read): Use error instead of error_begin
8927 and return_to_top_level.
8928 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8929
ddfe3c15
AC
89302002-02-01 Andrew Cagney <ac131313@redhat.com>
8931
8932 * language.h (type_error, range_error): Make string parameter
8933 constant.
8934 * language.c (warning_pre_print): Delete extern declaration.
8935 * dwarfread.c (warning_pre_print): Ditto.
8936 * language.c (type_error, range_error): Rewrite to use verror and
8937 vwarning instead of warning_begin.
8938
03ac34d5
MS
89392002-02-01 Michael Snyder <msnyder@redhat.com>
8940
261c4ca2
MS
8941 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8942 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8943
e00d1dc8
AC
89442002-02-01 Andrew Cagney <ac131313@redhat.com>
8945
8946 * command.h (NO_FUNCTION): Delete macro.
8947 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8948 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8949 * tracepoint.c (_initialize_tracepoint): Ditto.
8950 * cli/cli-decode.c (add_set_cmd): Ditto.
8951 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8952
76b79d6e
DJ
89532002-02-01 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8956 Update ``this'' pointer when calling virtual functions.
8957
799f9e91
MS
89582002-02-01 Michael Snyder <msnyder@redhat.com>
8959
c7bd442c 8960 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
8961 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8962
3cf384d4
DJ
89632002-02-01 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * regformats/reg-arm.dat: New file.
8966 * regformats/reg-i386.dat: New file.
8967 * regformats/reg-ia64.dat: New file.
8968 * regformats/reg-m68k.dat: New file.
8969 * regformats/reg-mips.dat: New file.
8970 * regformats/reg-ppc.dat: New file.
8971 * regformats/reg-sh.dat: New file.
8972 * regformats/regdef.h: New file.
8973 * regformats/regdat.sh: New file.
8974
0defa245
RE
89752002-02-01 Richard Earnshaw <reanrsha@arm.com>
8976
8977 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8978 (arm_frame_args_address, arm_frame_locals_address): New functions.
8979 (arm_frame_num_args): New function.
8980 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8981 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8982 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8983
405f26e6
MS
89842002-01-31 Michael Snyder <msnyder@redhat.com>
8985
502fd408
MS
8986 * breakpoint.c (break_at_finish_command): Export.
8987 (break_at_finish_at_depth_command): Export.
8988 (tbreak_at_finish_command): Export.
8989 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8990 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8991 "tbreak" commands, which are HPPA specific.
8992
7d35e135
MS
8993 * printcmd.c (disassemble_command): Remove an ancient
8994 artifact of an old merge.
8995
aaa38bb5 8996 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
8997 Define enum constant values for overlay mode.
8998 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
8999 (overlay_is_mapped, overlay_auto_command,
9000 overlay_manual_command): Ditto.
d874f1e2 9001
aaa38bb5
AJ
9002 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9003 breakpoint_here_p, breakpoint_inserted_here_p,
9004 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9005 describe_other_breakpoints, check_duplicates, clear_command):
9006 Coding standard fixes.
9007
8add0441 9008 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9009 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9010 code: check bfd SEC_READONLY flag for section.
9011
e351066e
AC
90122002-01-31 Andrew Cagney <ac131313@redhat.com>
9013
7d35e135 9014 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9015
8a48e967
DJ
90162002-01-30 Daniel Jacobowitz <drow@mvista.com>
9017
9018 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9019 data symbols, since we search based on textlow and texthigh.
9020 (find_pc_sect_symtab): Likewise.
9021
f5a96129
AC
90222002-01-30 Andrew Cagney <ac131313@redhat.com>
9023
9024 * defs.h (vwarning): Declare.
f5a96129
AC
9025 * utils.c (vwarning): New function.
9026 (warning): Call vwarning.
9027 (warning_begin): Delete function.
9028
9029 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9030 the warning message.
9031 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9032 warning_begin.
9033
cefd4ef5
MS
90342002-01-30 Michael Snyder <msnyder@redhat.com>
9035
1a703748
MS
9036 * NEWS: Mention "set trust-readonly-sections" command.
9037 Mention generate-core-file command.
cefd4ef5 9038
3a11626d
MS
90392002-01-15 Michael Snyder <msnyder@redhat.com>
9040
9041 * target.c: New command, "set trust-readonly-sections on".
9042 (do_xfer_memory): Honor the suggestion to trust readonly sections
9043 by reading them from the object file instead of from the target.
9044 (initialize_targets): Register command "set trust-readonly-sections".
9045
d1c7e53b
AC
90462002-01-29 Andrew Cagney <ac131313@redhat.com>
9047
9048 * parse.c (target_map_name_to_register): Simplify, search regs and
9049 pseudo-regs using a single loop.
9050
e2c9a72c
AC
90512002-01-30 Andrew Cagney <ac131313@redhat.com>
9052
9053 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9054
69824b4e
MK
90552002-01-15 Rodney Brown <rbrown64@csc.com.au>
9056
9057 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9058 * config/i386/i386v42mp.mh: Add i387-nat.o .
9059 * i386v4-nat.c: Include i387-nat.h.
9060 (supply_fpregset): Use i387_supply_fsave.
9061 (fill_fpregset): Use i387_fill_fsave.
9062
6eb69eab
RE
90632002-01-30 Richard Earnshaw <rearnsha@arm.com>
9064
9065 * arm-tdep.c (arm_call_dummy_words): Define.
9066 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9067 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9068 (CALL_DUMMY_WORDS): Define.
9069 (arm_call_dummy_words): Declare.
9070 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9071 (arm_linux_call_dummy_words): Declare.
9072
9852326a
AS
90732002-01-30 Andreas Schwab <schwab@suse.de>
9074
9075 * m68klinux-nat.c: Fix last change to use regcache_collect
9076 instead of referencing registers[] directly.
9077
977a3030
AC
90782002-01-29 Andrew Cagney <ac131313@redhat.com>
9079
9080 * parse.c (target_map_name_to_register): Delete code wrapped in
9081 #ifdef REGISTER_NAME_ALIAS_HOOK.
9082
2076c72b
MS
90832002-01-28 Michael Snyder <msnyder@redhat.com>
9084
9085 * regcache.c (legacy_read_register_gen): Need to be able to
9086 read pseudo-register as well as real register.
9087 (legacy_write_register_gen): Ditto.
9088
8fcc723b
AC
90892002-01-28 Andrew Cagney <ac131313@redhat.com>
9090
9091 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9092 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9093 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9094 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9095 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9096 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9097 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9098 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9099 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9100 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9101 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9102 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9103 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9104 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9105 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9106 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9107 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9108 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9109 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9110 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9111
afe64c1a
AC
91122002-01-28 Andrew Cagney <ac131313@redhat.com>
9113
9114 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9115 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9116 (initialize_current_architecture): Update target_byte_order using
9117 information from BFD.
aaa38bb5 9118 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9119 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9120
75bc7ddf
AC
91212002-01-28 Andrew Cagney <ac131313@redhat.com>
9122
9123 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9124 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9125
9126 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9127 #ifdef INVALID_FLOAT.
9128 * infcmd.c (do_registers_info): Ditto.
9129 * values.c (unpack_double): Ditto. Add comment.
9130
9131 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9132 already commented out.
9133
0280a90a
AS
91342002-01-26 Andreas Schwab <schwab@suse.de>
9135
9136 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9137 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9138 registers and add support for PTRACE_GETREGS.
9139
7072a954
AC
91402002-01-24 Andrew Cagney <ac131313@redhat.com>
9141
9142 GDB 5.1.1 released from 5.1 branch.
9143 * NEWS: Add 5.1.1 news.
9144 * README: Sync with 5.1 branch.
9145
86f902e0
FF
91462002-01-23 Fred Fish <fnf@redhat.com>
9147
9148 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9149 stabstring on initial malloc. Reallocing will copy it for us,
9150 if necessary.
9151
8af51c36
EZ
91522002-01-23 Elena Zannoni <ezannoni@redhat.com>
9153
aaa38bb5 9154 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9155 (HFILES_NO_SRCDIR): Remove hpread.h.
9156 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9157 (hpread.o): Update dependencies.
9158 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9159
9160 * hp-psymtab-read.c: Remove file.
9161 * hp-symtab-read.c: Remove file.
9162 * hpread.h: Remove file.
9163
9164 * hpread.c: Merge all contents of hp-psymtab-read.c,
9165 hp-symtab-read.c and hpread.h into this file, as it was prior to
9166 January 1999.
9167
9168 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9169 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9170 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9171 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9172
dc5cfeb6
EZ
91732002-01-23 Elena Zannoni <ezannoni@redhat.com>
9174
9175 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9176 fill_gregset): Call gdbarch_tdep() just once, assign result to
9177 variable and use that, instead of calling the function several
9178 times.
9179
ea87b71b
AO
91802002-01-24 Alexandre Oliva <aoliva@redhat.com>
9181
9182 * configure.host: Accept sparcv9 as alias for sparc64.
9183 * configure.tgt: Likewise.
9184
13fc0c2f
KB
91852002-01-22 Kevin Buettner <kevinb@redhat.com>
9186
9187 * solib-aix5.c (build_so_list_from_mapfile)
9188 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9189 arguments is not reversed.
9190 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9191 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9192
7bd872fe
EZ
91932002-01-22 Elena Zannoni <ezannoni@redhat.com>
9194
9195 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9196 modified version of obsolete sh_fetch_pseudo_register.
9197 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9198 (sh4_register_read): New function.
9199 (sh_pseudo_register_write): New function. Renamed and modified
9200 version of obsolete sh_store_pseudo_register.
9201 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9202 (sh4_register_write): New function.
9203 (sh_gdbarch_init): Remove setting of gdbarch function
9204 fetch_pseudo_register and store_pseudo_register. Remove setting of
9205 register_convert_to_raw, register_convert_to_virtual,
9206 register_convertible.
9207 (sh_sh4_register_convertible): Delete. No longer needed. All is
9208 taken care by architecture specific functions
9209 register_read/register_write.
9210 (sh_sh4_register_convert_to_virtual): Make static.
9211 (sh_sh4_register_convert_to_raw): Ditto.
9212
069e84fd
AC
92132002-01-22 Andrew Cagney <ac131313@redhat.com>
9214
9215 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9216 (floatformat_is_nan, floatformat_mantissa): Ditto.
9217
9218 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9219 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9220 builtin_type_ieee_double_little,
9221 builtin_type_ieee_double_littlebyte_bigword,
9222 builtin_type_m68881_ext, builtin_type_i960_ext,
9223 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9224 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9225 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9226 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9227
211a4f69
CV
92282002-01-22 Corinna Vinschen <vinschen@redhat.com>
9229
9230 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9231 parameter. Set frameless flag if it exists and depended of
9232 whether the scanned function is frameless or not.
9233 (xstormy16_skip_prologue): If function is frameless, return
9234 result of xstormy16_scan_prologue().
9235 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9236 call.
9237
f81353e4
EZ
92382002-01-21 Elena Zannoni <ezannoni@redhat.com>
9239
9240 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9241 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9242 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9243 sh_sh4_register_byte, sh_sh4_register_raw_size,
9244 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9245 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9246 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9247 sh_store_pseudo_register, sh_do_pseudo_register): Call
9248 gdbarch_tdep() just once, assign result to variable and use that,
9249 instead of calling the function several times.
9250
63c73a17
MK
92512002-01-20 Mark Kettenis <kettenis@gnu.org>
9252
9253 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9254 macros instead of LAST_FPU_CTRL_REGNUM.
9255 (store_register): Likewise.
9256
39ad761d
JB
92572002-01-21 Jim Blandy <jimb@redhat.com>
9258
9259 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9260 is up-to-date before running the program, not just when a program
9261 exits.
9262
3d74b771
FF
92632002-01-21 Fred Fish <fnf@redhat.com>
9264
9265 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9266 when we have found all instructions we are looking for.
9267
966fbf70
RE
92682002-01-21 Richard Earnshaw <rearnsha@arm.com>
9269
9270 * arm-tdep.c (arm_register_name): New function.
9271 (arm_registers_names): Make static.
9272 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9273 (arm_register_name): Declare.
9274 (REGISTER_NAME): Use it.
9275
c3b4394c
RE
92762002-01-21 Richard Earnshaw <rearnsha@arm.com>
9277 Kevin Buettner <kevinb@redhat.com>
9278
9279 Convert arm targets to new FRAME interface.
9280 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9281 (arm_frame_find_save_regs): Delete.
9282 (arm_frame_init_saved_regs): New.
9283 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9284 Allocate extra_info as required. Convert all uses of fsr.regs
9285 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9286 to use extra_info.
9287 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9288 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9289 (check_prologue_cache, save_prologue_cache): Likewise.
9290 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9291 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9292 (FRAME_FIND_SAVED_REGS): Delete.
9293 (arm_frame_find_saved_regs): Delete prototype.
9294 (arm_frame_init_saved_regs): New prototype.
9295 (FRAME_INIT_SAVED_REGS): Define.
9296
61d99182
AC
92972002-01-20 Andrew Cagney <ac131313@redhat.com>
9298
9299 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9300
6aaea291
AC
93012002-01-20 Andrew Cagney <ac131313@redhat.com>
9302
9303 From Jeff Law <law@redhat.com>:
9304 * infttrace.c: Include <sys/pstat.h>.
9305 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9306 exec file if the ttrace equivalent fails.
9307
15f698d2
AC
93082002-01-20 Andrew Cagney <ac131313@redhat.com>
9309
9310 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9311 (closeLogFile): Ditto.
9312
f86ddd7c
MC
93132002-01-20 Michael Chastain <mec@shout.net>
9314
9315 * top.c (print_gdb_version): Bump copyright year to 2002.
9316
904507ce
AC
93172002-01-20 Andrew Cagney <ac131313@redhat.com>
9318
9319 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9320 Zannoni and Eli Zaretskii.
9321
d7f0b9ce
DJ
93222002-01-20 Daniel Jacobowitz <drow@mvista.com>
9323
9324 * buildsym.c: Update copyright years.
9325 * c-typeprint.c: Likewise.
9326 * dwarf2read.c: Likewise.
9327 * f-typeprint.c: Likewise.
9328 * gdbtypes.c: Likewise.
9329 * gdbtypes.h: Likewise.
9330 * hp-symtab-read.c: Likewise.
9331 * hpread.c: Likewise.
9332 * mdebugread.c: Likewise.
9333 * p-typeprint.c: Likewise.
9334
3fd3d7d2
AC
93352002-01-20 Andrew Cagney <ac131313@redhat.com>
9336
9337 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9338 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9339 byte-order selectable.
9340 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9341 * arch-utils.c: Ditto.
9342 (set_endian): Ditto.
9343 (set_endian_from_file): Ditto.
9344 * gdbserver/low-sim.c (create_inferior): Ditto.
9345 * gdbarch.sh: Ditto.
9346 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9347 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9348 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9349 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9350 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9351 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9352 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9353 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9354 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9355 macro definition.
9356 * config/mips/tm-wince.h: Remove #undef of macro
9357 TARGET_BYTE_ORDER_SELECTABLE.
9358 * config/sh/tm-wince.h: Ditto.
9359
b02dede2
DJ
93602002-01-20 Daniel Jacobowitz <drow@mvista.com>
9361
9362 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9363 member function fields. Add accessor macro
9364 TYPE_FN_FIELD_ARTIFICIAL.
9365 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9366 * c-typeprint.c (c_type_print_base): Skip artificial member
9367 functions.
9368
c3643761
DJ
93692002-01-20 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * f-typeprint.c: Delete unused function f_type_print_args.
9372 * p-typeprint.c: Delete unused function pascal_type_print_args.
9373
8176bb6d
DJ
93742002-01-20 Daniel Jacobowitz <drow@mvista.com>
9375
9376 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9377 comment. Add ``artificial'' to ``union field_location''.
9378
9379 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9380
9381 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9382 * mdebugread.c (parse_symbol): Likewise.
9383 * stabsread.c (define_symbol): Likewise.
9384 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9385 initializing TYPE_FIELD_BITPOS to n (obsolete).
9386 (hpread_doc_function_type): Likewise.
9387 * hpread.c (hpread_function_type): Likewise.
9388
7fd60527
AC
93892002-01-20 Andrew Cagney <ac131313@redhat.com>
9390
9391 * configure.in (host_makefile_frag): Only require a host makefile
9392 fragment when a native build.
9393 * configure: Re-generate.
9394
c2f05ac9
AC
93952002-01-20 Andrew Cagney <ac131313@redhat.com>
9396
9397 * doublest.h (floatformat_from_type): Declare.
9398 * doublest.c (floatformat_from_type): New function.
9399 (convert_typed_floating): Use.
9400
9401 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9402 call to function floatformat_from_type.
9403
9404 * gdbarch.sh (IEEE_FLOAT): Delete.
9405 * gdbarch.h, gdbarch.c: Re-generate.
9406 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9407 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9408 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9409 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9410 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9411 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9412 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9413 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9414 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9415 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9416 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9417 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9418
9419 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9420 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9421 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9422 * sh-tdep.c (sh_gdbarch_init): Ditto.
9423 * mips-tdep.c (mips_gdbarch_init): Ditto.
9424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9425 * cris-tdep.c (cris_gdbarch_init): Ditto.
9426
abf22e64
AJ
94272002-01-20 Jiri Smid <smid@suse.cz>
9428
9429 * configure.host, configure.tgt: Support x86-64.
9430 * NEWS: Note new target x86-64.
9431
b7c4cbf8
AJ
9432 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9433 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9434 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9435 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9436 x86-64-linux-nat.o): Fix dependencies.
9437
82600034
AC
94382002-01-19 Andrew Cagney <ac131313@redhat.com>
9439
9440 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9441 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9442 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9443 * config/sparc/xm-sun4os4.h: Delete file.
9444 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9445
bbe5c628
AC
94462002-01-19 Andrew Cagney <ac131313@redhat.com>
9447
9448 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9449 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9450 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9451 * config/i386/i386lynx.mh (XM_FILE): Delete.
9452 * config/rs6000/xm-rs6000ly.h: Delete file.
9453 * config/sparc/xm-sparclynx.h: Delete file.
9454 * config/m68k/xm-m68klynx.h: Delete file.
9455 * config/i386/xm-i386lynx.h: Delete file.
9456 * config/xm-lynx.h: Delete file.
9457 * config/djgpp/fnchange.lst: Update.
9458
f8453e34
JT
94592002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9460
9461 * alpha-tdep.c (alpha_register_byte): New function.
9462 (alpha_register_raw_size): Ditto.
9463 (alpha_register_virtual_size): Ditto.
9464 (alpha_skip_prologue_internal): Renamed from
9465 alpha_skip_prologue.
9466 (alpha_skip_prologue): New version that calls
9467 alpha_skip_prologue_internal.
9468 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9469 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9470 second argument from alpha_skip_prologue.
9471 (REGISTER_BYTE): Use alpha_register_byte.
9472 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9473 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9474 (FRAMELESS_FUNCTION_INVOCATION): Use
9475 generic_frameless_function_invocation_not.
9476 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9477 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9478
52d9e613
AC
94792002-01-19 Andrew Cagney <ac131313@redhat.com>
9480
9481 * config/mips/xm-news-mips.h: Delete file.
9482 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9483
9484 * config/m88k/xm-m88k.h: Delete file.
9485 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9486 * config/m88k/xm-delta88v4.h: Ditto.
9487 * config/m88k/xm-delta88.h: Ditto.
9488
9489 * config/alpha/xm-fbsd.h: Delete file.
9490 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9491
9492 * config/sparc/xm-sparc.h: Delete file.
9493 * Makefile.in (xm-sun4os4.h): Delete dependency.
9494 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9495 * config/sparc/xm-sun4os4.h: Ditto.
9496 * config/sparc/xm-linux.h: Ditto.
9497
9498 * config/i386/xm-windows.h: Delete file.
9499
2d1b2124
AC
95002002-01-19 Andrew Cagney <ac131313@redhat.com>
9501
9502 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9503 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9504
ee1f65f0
JT
95052002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9506
9507 * alpha-tdep.c (alpha_call_dummy_words): New.
9508 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9509 (CALL_DUMMY_P): Define.
9510 (CALL_DUMMY_WORDS): Define.
9511 (SIZEOF_CALL_DUMMY_WORDS): Define.
9512
98081e55
PB
95132002-01-19 Per Bothner <per@bothner.com>
9514
9515 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9516 isn't NULL, which can happen with some gcj-3.x-produced code.
9517
0d056799
JT
95182002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9519
9520 * alpha-tdep.c (alpha_register_virtual_type): New function.
9521 (alpha_init_frame_pc_first): Ditto.
9522 (alpha_fix_call_dummy): Ditto.
9523 (alpha_store_struct_return): Ditto.
9524 (alpha_extract_struct_value_address): Ditto.
9525 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9526 alpha_register_virtual_type.
9527 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9528 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9529 alpha_extract_struct_value_address.
9530 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9531 (INIT_FRAME_PC): Use init_frame_pc_noop.
9532 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9533
4604bcad
MK
95342002-01-19 Mark Kettenis <kettenis@gnu.org>
9535
9536 * i386gnu-nat.c: Include "i386-tdep.h".
9537 (fetch_fpregs): Simplify code dealing with uninitialized floating
9538 point states such that it doesn't require FP7_REGNUM.
9539
140f9984
JT
95402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9541
abf22e64
AJ
9542 * alpha-tdep.c (frame_extra_info): New.
9543 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9544 frame->extra_info.
9545 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9546 (alpha_frame_saved_pc): Use frame->extra_info.
9547 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9548 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9549 (init_extra_frame_info): Rename to...
9550 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9551 (alpha_print_extra_frame_info): New function.
140f9984
JT
9552 (alpha_frame_locals_address): Ditto.
9553 (alpha_frame_args_address): Ditto.
abf22e64 9554 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9555 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9556 alpha_frame_args_address.
abf22e64 9557 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9558 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9559 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9560 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9561 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9562 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9563
d734c450
JT
95642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9565
9566 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9567 (alpha_cannot_fetch_register): Ditto.
9568 (alpha_cannot_store_register): Ditto.
9569 (alpha_register_convertible): Ditto.
9570 (alpha_use_struct_convention): Ditto.
9571 * config/alpha/tm-alpha.h: Update copyright years.
9572 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9573 (INNER_THAN): Use core_addr_lessthan.
9574 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9575 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9576 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9577 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9578 (FRAME_CHAIN): Remove unnecessary cast.
9579
b4ceaee6
AC
95802002-01-18 Andrew Cagney <ac131313@redhat.com>
9581
9582 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9583 obsolete.
9584
0a65a603
AC
95852002-01-18 Andrew Cagney <ac131313@redhat.com>
9586
9587 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9588 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9589 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9590 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9591 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9592 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9593 * x86-64-linux-nat.c: Ditto.
9594
636a6dfc
JT
95952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9596
abf22e64 9597 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9598 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9599 (REGISTER_NAME): Define.
9600
acceddb6
JT
96012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9602
9603 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9604
ec32e4be
JT
96052002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9606
9607 * alpha-tdep.c: Update copyright years.
9608 (alpha_next_pc): New function.
9609 (alpha_software_single_step): Ditto.
9610 * config/alpha/tm-alpha.h: Add prototype for
9611 alpha_software_single_step.
9612
e771a871
JT
96132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9614
9615 * alphabsd-nat.c: Update copyright years.
9616 (fill_gregset): Use regcache_collect.
9617 (fill_fpregset): Likewise.
9618 (fetch_inferior_registers): Only fetch integer registers
9619 if requested to do so.
9620 (store_inferior_registers): Only store integer registers
9621 if requested to do so.
9622
7708fa01
AC
96232002-01-17 Andrew Cagney <ac131313@redhat.com>
9624
9625 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9626 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9627 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9628 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9629 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9630 * config/arm/linux.mh (XDEPFILES): Delete.
9631 * config/arm/nbsd.mh (XDEPFILES): Delete.
9632 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9633 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9634 * config/i386/i386m3.mh (XDEPFILES): Delete.
9635 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9636 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9637 * config/i386/fbsd.mh (XDEPFILES): Delete.
9638 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9639 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9640 * config/i386/i386v4.mh (XDEPFILES): Delete.
9641 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9642 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9643 * config/i386/i386aix.mh (XDEPFILES): Delete.
9644 * config/i386/go32.mh (XDEPFILES): Delete.
9645 * config/i386/cygwin.mh (XDEPFILES): Delete.
9646 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9647 * config/i386/i386mach.mh (XDEPFILES): Delete.
9648 * config/i386/i386v32.mh (XDEPFILES): Delete.
9649 * config/i386/linux.mh (XDEPFILES): Delete.
9650 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9651 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9652 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9653 * config/i386/i386sco.mh (XDEPFILES): Delete.
9654 * config/i386/i386v.mh (XDEPFILES): Delete.
9655 * config/i386/nbsd.mh (XDEPFILES): Delete.
9656 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9657 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9658 * config/i386/symmetry.mh (XDEPFILES): Delete.
9659 * config/i386/obsd.mh (XDEPFILES): Delete.
9660 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9661 * config/ia64/linux.mh (XDEPFILES): Delete.
9662 * config/ia64/aix.mh (XDEPFILES): Delete.
9663 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9664 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9665 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9666 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9667 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9668 * config/m68k/linux.mh (XDEPFILES): Delete.
9669 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9670 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9671 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9672 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9673 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9674 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9675 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9676 * config/m88k/delta88.mh (XDEPFILES): Delete.
9677 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9678 * config/m88k/m88k.mh (XDEPFILES): Delete.
9679 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9680 * config/mips/linux.mh (XDEPFILES): Delete.
9681 * config/mips/irix6.mh (XDEPFILES): Delete.
9682 * config/mips/irix5.mh (XDEPFILES): Delete.
9683 * config/mips/irix4.mh (XDEPFILES): Delete.
9684 * config/mips/irix3.mh (XDEPFILES): Delete.
9685 * config/mips/decstation.mh (XDEPFILES): Delete.
9686 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9687 (NATDEPFILES): Move core-aout.o to here.
9688 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9689 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9690 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9691 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9692 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9693 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9694 * config/pa/hpux11.mh (XDEPFILES): Delete.
9695 * config/powerpc/aix.mh (XDEPFILES): Delete.
9696 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9697 * config/powerpc/linux.mh (XDEPFILES): Delete.
9698 * config/romp/rtbsd.mh: Rename XDEPFILES.
9699 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9700 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9701 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9702 * config/s390/s390.mh (XDEPFILES): Delete.
9703 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9704 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9705 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9706 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9707 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9708 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9709 * config/sparc/linux.mh (XDEPFILES): Delete.
9710 * config/vax/vaxult.mh (XDEPFILES): Delete.
9711 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9712 * Makefile.in (DEPFILES): Remove XDEPFILES.
9713
375fc983
AC
97142002-01-17 Andrew Cagney <ac131313@redhat.com>
9715
9716 * utils.c (internal_verror): Fix comments, default is yes not no.
9717 Update queries to match. Default to quit and dump core.
9718
8926118c
AC
97192002-01-17 Andrew Cagney <ac131313@redhat.com>
9720
9721 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9722 copyright.
9723 * defs.h, event-top.c, gdbcmd.h: Ditto.
9724 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9725 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9726 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9727 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9728 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9729 * mi/mi-main.c:Ditto.
9730
9731 * stack.c, symfile.c: Update copyright.
9732
45b7b345
DJ
97332002-01-17 Daniel Jacobowitz <drow@mvista.com>
9734
db728ff7
DJ
9735 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9736 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9737 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9738 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9739
db728ff7
DJ
97402002-01-17 Daniel Jacobowitz <drow@mvista.com>
9741
9742 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9743 * gdbserver/low-lynx.c (myattach): Likewise.
9744 * gdbserver/low-nbsd.c (myattach): Likewise.
9745 * gdbserver/low-sim.c (myattach): Likewise.
9746 * gdbserver/low-sparc.c (myattach): Likewise.
9747 * gdbserver/low-sun3.c (myattach): Likewise.
9748
9749 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9750
db728ff7 9751 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9752 (main): Handle "--attach".
9753
8de3c354
AC
97542002-01-16 Andrew Cagney <ac131313@redhat.com>
9755
9756 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9757 maintainer.
9758
b0129042
DJ
97592002-01-15 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * c-typeprint.c (is_type_conversion_operator): Add additional
9762 check for non-conversion operators.
9763
ba8679fb 97642002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9765
9766 * linux-proc.c: Add "info proc" command, a la procfs.c.
9767 (read_mapping): New function, abstract and re-use code.
9768 (linux_find_memory_regions): Use new func read_mapping.
9769 (linux_info_proc_cmd): New function, implement "info proc".
9770 (_initialize_linux_proc): Add new command "info proc".
9771
e4f9b4d5
MS
97722002-01-15 Michael Snyder <msnyder@redhat.com>
9773
9774 * symfile.c (generic_load): Use bfd_map_over_sections method
9775 instead of manipulating bfd structure members directly.
9776 (add_section_size_callback): New function, bfd sections callback
9777 used by generic_load.
9778 (load_sections_callback): New function, bfd sections callback
9779 used by generic_load.
9780
08cf96df
EZ
97812002-01-15 Elena Zannoni <ezannoni@redhat.com>
9782
abf22e64 9783 [Based on work by Jim Blandy]
08cf96df
EZ
9784 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9785 (builtin_type_vec128): Export.
9786 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9787 types.
9788 (builtin_type_vec128): New builtin type for 128 bit vector
9789 registers.
9790 (build_gdbtypes): Initialize builtin_type_v16qi and
9791 builtin_type_v8hi. Create the vec128 register builtin type
9792 structure.
9793 (build_builtin_type_vec128): New function.
abf22e64 9794 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9795 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9796 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9797 AltiVec register to new builtin type.
9798
d7242108
DJ
97992001-01-15 Daniel Jacobowitz <drow@mvista.com>
9800
9801 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9802 to make_cv_type.
9803
4ee3352d
AC
98042002-01-14 Andrew Cagney <ac131313@redhat.com>
9805
9806 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9807 CLEAN_UP_REGISTER_VALUE.
9808 * regcache.c (supply_register): Update only call.
9809
f015b2e7
AC
98102002-01-14 Andrew Cagney <ac131313@redhat.com>
9811
9812 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9813 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9814 a29k-*-vxworks* targets as obsolete.
9815
356ae49d
MS
98162002-01-14 Michael Snyder <msnyder@redhat.com>
9817
9818 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9819 until we can resolve portability issues.
9820 * gregset.h: Remove references to fpxregs.
9821 * gcore.c (gcore_command): Initialize note_sec to NULL.
9822
ade8f45e
AC
98232002-01-13 Andrew Cagney <ac131313@redhat.com>
9824
9825 * signals.c (target_signal_to_name): Rewrite. Only use
9826 signals[].name when in bounds and non-NULL.
abf22e64 9827
89c49e7a
AC
98282002-01-13 Andrew Cagney <ac131313@redhat.com>
9829
9830 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9831 * signals.c (target_signal_to_name): Verify that SIG is within the
9832 bounds of the signals array.
9833
4daa9f9f
AC
98342002-01-13 Andrew Cagney <ac131313@redhat.com>
9835
9836 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9837
ba4bbdcb
KS
98382002-01-13 Keith Seitz <keiths@redhat.com>
9839
9840 * stack.c (print_frame_info_base): Print the frame's pc
9841 only if when print_frame_info_listing_hook is not defined.
9842
575bbeb6
KS
98432002-01-13 Keith Seitz <keiths@redhat.com>
9844
9845 * varobj.c (varobj_set_value): Make sure that there were no
9846 errors evaluating the object before attempting to set its
9847 value.
9848 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9849 so this offset adjustment is no longer necessary.
9850 (create_child): Don't set the error flag if the child is
9851 a CPLUS_FAKE_CHILD.
9852 (value_of_child): If value_fetch_lazy fails, return NULL
9853 so that callers will be notified that an error occurred.
9854 (c_value_of_variable): Delay check of variable's validity
9855 until later. We actually want all structs and unions to have
9856 the value "{...}".
9857 Do not return "???" for variables which could not be evaluated.
9858 This error condition must be returned to the caller so that it
9859 can get the error condition from gdb.
9860 (cplus_name_of_child): Adjust index for vptr before figuring
9861 out the name of the child.
9862 (cplus_value_of_child): If a child's (real) parent is not valid,
9863 don't even bother trying to give a value for it. Just return
9864 an error. Change all instances in this function.
9865 (cplus_type_of_child): If our parent is one of the "fake"
9866 parents, we need to get at the type of the real parent, and
9867 derive the child's true type using this information.
9868
b76898ab
AC
98692002-01-13 Andrew Cagney <ac131313@redhat.com>
9870
9871 From 2002-01-09 John Marshall <johnm@falch.net>:
9872 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9873 sources.redhat.com, and tweak some related URLs which had
9874 suffered from linkrot.
9875
b6649e88
AC
98762002-01-13 Andrew Cagney <ac131313@redhat.com>
9877
9878 From Jeff law:
9879 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9880 structures passed in registers.
9881
82cc5033
EZ
98822002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9883
9884 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9885 white space which prevented compilation. Reported by DSK
9886 <dsk@student.unsw.edu.au>.
9887
ba5f2f8a
MS
98882002-01-11 Michael Snyder <msnyder@redhat.com>
9889
fbd35540
MS
9890 * symfile.c (build_section_addr_info_from_section_tab):
9891 Use bfd access method instead of manipulating bfd directly.
9892 (syms_from_objfile): Ditto.
9893 (simple_overlay_update_1): Ditto.
9894 (simple_overlay_update): Ditto.
9895 (generic_load): Ditto.
9896 (overlay_unmapped_address): FIXME comment, bfd access methods.
9897 (sections_overlap): FIXME comment, bfd access methods.
9898 (pc_in_mapped_range): FIXME comment, bfd access methods.
9899 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9900 (section_is_mapped): FIXME comment, bfd access methods.
9901 (section_is_overlay): FIXME comment, bfd access methods.
9902
ba5f2f8a
MS
9903 * symfile.c (generic_load): Whitespace and long line cleanups.
9904 Remove duplicate variable, change several local variables to
9905 more appropriate data types.
9906 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9907
17df2af6
AC
99082002-01-12 Andrew Cagney <ac131313@redhat.com>
9909
9910 From Peter Schauer:
9911 * language.c (longest_local_hex_string_custom): Use phex_nz to
9912 convert NUM to a hex string.
9913
ec920329
EZ
99142002-01-12 Elena Zannoni <ezannoni@redhat.com>
9915
9916 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9917 the function.
538a76d6 9918 Update Copyright year.
ec920329 9919
3abd2e01
AC
99202002-01-12 Andrew Cagney <ac131313@redhat.com>
9921
9922 * language.c (longest_raw_hex_string): Delete unused function.
9923
b21b22e0
PS
99242002-01-11 Petr Sorfa <petrs@caldera.com>
9925
9926 * MAINTAINERS (write-after-approval): Add myself.
9927 * dwarf2read.c (read_tag_string_type): Handling of
9928 DW_AT_byte_size.
9929 (read_tag_string_type): FORTRAN fix to prevent propagation of
9930 first string size.
9931 (set_cu_language): Handling of DW_LANG_Fortran95
9932
747fe712
RE
99332002-01-11 Richard Earnshaw <rearnsha@arm.com>
9934
9935 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9936 GETPID(inferior_ptid).
9937 (store_inferior_registers): Likewise.
9938
f1bea926
JM
99392002-01-10 Jason Merrill <jason@redhat.com>
9940
9941 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9942 Fix DW_OP_minus.
9943
ae940673
AC
99442002-01-10 Andrew Cagney <ac131313@redhat.com>
9945
9946 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9947 and bfd/elf32-sh-nbsd.c.
9948
00546b04
MS
99492002-01-10 Michael Snyder <msnyder@redhat.com>
9950
352ed7b4
MS
9951 * NEWS: Mention --pid and corefile/proc-id behavior change.
9952
c18be923
MS
9953 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9954 * gcore.c: Include cli/cli-decode.h instead of command.h.
9955
00546b04
MS
9956 * main.c (captured_main): Add new command line option "--pid".
9957 If the second command line argument (following the symbol-file)
9958 begins with a digit, try to attach to it before trying to open
9959 it as a corefile.
9960 (print_gdb_help): Document the "--pid" argument.
9961
db60ec62
EZ
99622002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9963
9964 * completer.c (command_completer): New function.
9965
9966 * completer.h <command_completer>: Add prototype.
9967
9968 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9969 completer for the "help" command.
9970
39c22d1a
JM
99712002-01-09 Jason Merrill <jason@redhat.com>
9972
9973 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9974
c564377f
MS
99752002-01-09 Michael Snyder <msnyder@redhat.com>
9976
975aec09
MS
9977 * i386-linux-nat.c (fill_fpxregset): Make global.
9978 (store_fpxregset): Ditto.
9979
db4a10fa
MS
9980 * gregset.h (gdb_fpxregset_t): Define.
9981 (supply_fpxregset): Prototype.
9982 (fill_fpxregset): Prototype.
9983
c564377f
MS
9984 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9985
c3d45d70
RE
99862002-01-09 Richard Earnshaw <rearnsha@arm.com>
9987
9988 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9989 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9990 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9991
fcc87af1
AC
99922002-01-09 Andrew Cagney <ac131313@redhat.com>
9993
9994 * MAINTAINERS: Update target maintainer rules so that any
9995 Maintainer can approve a tested patch for a maintenance-only
9996 target.
9997
dd96c05b
RE
99982002-01-09 Richard Earnshaw <rearnsha@arm.com>
9999
d4297db9 10000 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10001
d4297db9 10002 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10003 IN_SIGTRAMP.
10004
145fdc6e
MS
100052002-01-08 Michael Snyder <msnyder@redhat.com>
10006
10007 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10008 real name of the executable, rather than the /proc name.
10009
be4d1333
MS
100102002-01-03 Michael Snyder <msnyder@redhat.com>
10011
10012 Implement a "generate-core-file" command in gdb, save target state.
10013 * gcore.c: New file. Implement new command 'generate-core-file'.
10014 Save a corefile image of the current state of the inferior.
10015 * linux-proc.c: Add linux-specific code for saving corefiles.
10016 * target.h (struct target_ops): Add new target vectors for saving
10017 corefiles; to_find_memory_regions and to_make_corefile_notes.
10018 (target_find_memory_regions): New macro.
10019 (target_make_corefile_notes): New macro.
10020 * target.c (update_current_target): Inherit new target methods.
10021 (dummy_find_memory_regions): New place-holder method.
10022 (dummy_make_corefile_notes): New place-holder method.
10023 (init_dummy_target): Initialize new dummy target vectors.
10024 * exec.c (exec_set_find_memory_regions): New function.
10025 Allow the exec_ops vector for memory regions to be taken over.
10026 (exec_make_note_section): New function, target vector method.
10027 * defs.h (exec_set_find_memory_regions): Export prototype.
10028 * procfs.c (proc_find_memory_regions): New function, corefile method.
10029 (procfs_make_note_section): New function, corefile method.
10030 (init_procfs_ops): Set new target vector pointers.
10031 (find_memory_regions_callback): New function.
10032 (procfs_do_thread_registers): New function.
10033 (procfs_corefile_thread_callback): New function.
10034 * sol-thread.c (sol_find_memory_regions): New function.
10035 (sol_make_note_section): New function.
10036 (init_sol_thread_ops): Initialize new target vectors.
10037 * inftarg.c (inftarg_set_find_memory_regions): New function.
10038 Allow to_find_memory_regions vector to be taken over.
10039 (inftarg_set_make_corefile_notes): New function.
10040 Allow to_make_corefile_notes vector to be taken over.
10041 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10042 interface layer if not target_has_execution (may be a corefile).
10043 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10044 * config/sparc/sun4sol2.mh: Ditto.
10045 * config/alpha/alpha-linux.mh: Ditto.
10046 * config/arm/linux.mh: Ditto.
10047 * config/i386/x86-64linux.mh: Ditto.
10048 * config/ia64/linux.mh: Ditto.
10049 * config/m68k/linux.mh: Ditto.
10050 * config/mips/linux.mh: Ditto.
10051 * config/powerpc/linux.mh: Ditto.
10052 * config/sparc/linux.mh: Ditto.
10053
c6b92abd
MS
100542002-01-07 Michael Snyder <msnyder@redhat.com>
10055
10056 * arm-linux-nat.c: Remove references to regcache.c internal data
10057 (registers[] and register_valid[]).
10058
4b09dc8c
MS
100592002-01-07 Michael Snyder <msnyder@redhat.com>
10060
abf22e64
AJ
10061 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10062 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10063 symbol file and shlibs.
10064 * Makefile.in: Add rule for linux-proc.o.
10065 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10066 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10067 * config/arm/linux.mh: Ditto.
10068 * config/i386/linux.mh: Ditto.
10069 * config/i386/x86-64linux.mh: Ditto.
10070 * config/ia64/linux.mh: Ditto.
10071 * config/m68k/linux.mh: Ditto.
10072 * config/mips/linux.mh: Ditto.
10073 * config/powerpc/linux.mh: Ditto.
10074 * config/sparc/linux.mh: Ditto.
10075
c25b74ac
PM
100762002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10077
10078 * win32-nat.c: Add i386-tdep.h dependency.
10079
94cd915f
MS
100802002-01-07 Michael Snyder <msnyder@redhat.com>
10081
c7cccb76
MS
10082 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10083 instead of bfd_get_arch_size. Don't bail out just because
10084 there's no exec_bfd.
abf22e64 10085
34c0bd93
MS
10086 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10087 * p-valprint.c (pascal_object_print_value): Ditto.
10088 * somread.c (som_symtab_read): Ditto.
10089 * symfile.c (simple_free_overlay_region_table): Ditto.
10090 * valops.c (value_assign): Ditto.
10091
21c1c920
MS
10092 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10093 use tilde_expand and strerror for opening save-tracepoints file.
10094
5bbd998e
MS
10095 * thread-db.c (thread_db_new_objfile): Indendation fix.
10096
94cd915f
MS
10097 * infptrace.c (GDB_MAX_ALLOCA): New define.
10098 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10099 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10100 can be overridden with whatever value is appropriate to the host).
10101 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10102 alloca to allocate potentially large buffer.
10103 * rs6000-nat.c (child_xfer_memory): Ditto.
10104 * symm-nat.c (child_xfer_memory): Ditto.
10105 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10106
494e8a93
JSC
101072002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10108
10109 From Nick Clifton <nickc@redhat.com>
10110 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10111
d0e1d48e
MS
101122002-01-07 Michael Snyder <msnyder@redhat.com>
10113
abf22e64 10114 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10115 Don't use exec_bfd if it's NULL.
10116
290b2c7a
MK
101172002-01-06 Mark Kettenis <kettenis@gnu.org>
10118
abf22e64 10119 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10120
aef21287
AC
101212002-01-06 Andrew Cagney <ac131313@redhat.com>
10122
10123 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10124 * gnu-nat.c: Ditto.
10125
30efa627
AC
101262002-01-06 Andrew Cagney <ac131313@redhat.com>
10127
10128 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10129 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10130 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10131 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10132 z8k-coff have not been multi-arched. Update z8k-coff build
10133 status.
10134
9b4ff276
AC
101352002-01-06 Andrew Cagney <ac131313@redhat.com>
10136
10137 * MAINTAINERS: Mark a29k target as obsolete.
10138 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10139 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10140 comments.
10141 * NEWS: Note that a29k targets are obsolete.
10142 * a29k-tdep.c: Mark as obsolete.
10143 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10144 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10145 a29k-*-vxworks* targets as obsolete.
10146 * remote-adapt.c: Obsolete.
10147 * remote-eb.c: Obsolete.
10148 * remote-mm.c: Obsolete.
10149 * remote-udi.c: Obsolete.
10150 * config/a29k/a29k-udi.mt: Obsolete.
10151 * config/a29k/a29k.mt: Obsolete.
10152 * config/a29k/tm-a29k.h: Obsolete.
10153 * config/a29k/tm-vx29k.h: Obsolete.
10154 * config/a29k/vx29k.mt: Obsolete.
10155
a9011d31
AC
101562002-01-05 Andrew Cagney <ac131313@redhat.com>
10157
10158 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10159 with BFD_ENDIAN_BIG.
10160
9299404e
AC
101612002-01-05 Andrew Cagney <ac131313@redhat.com>
10162
10163 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10164 * configure, config.in: Re-generate.
10165 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10166 * defs.h: Do not include <endian.h>.
10167
7e89e357
JT
101682002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10169
10170 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10171 * config.in: Regenerate.
10172 * configure.in: Update copyright years.
10173 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10174 * configure: Regenerate.
10175 * i386bsd-nat.c: Update copyright years.
10176 (fill_gregset): Use regcache_collect.
10177 (fetch_inferior_registers): Only fetch integer registers
10178 if requested to do so. Add support for XMM registers
10179 using PT_GETXMMREGS.
10180 (store_inferior_registers): Only store integer registers
10181 if requested to do so. Add support for XMM registers
10182 using PT_SETXMMREGS.
10183 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10184 (store_inferior_registers): Remove.
10185 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10186 (fetch_elfcore_registers): New function.
10187 (i386nbsd_elfcore_fns): New.
10188 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10189 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10190 i386bsd-nat.o.
10191 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10192 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10193 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10194 * config/i386/tm-nbsd.h: Update copyright years.
10195 (HAVE_SSE_REGS): Define.
10196 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10197 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10198 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10199 (SIGCONTEXT_PC_OFFSET): Remove.
10200 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10201
a752853e
AC
102022002-01-05 Andrew Cagney <ac131313@redhat.com>
10203
10204 * configure.tgt: Remove powerpc-*-macos* target.
10205 * config/m68k/xm-mpw.h: Delete file.
10206 * config/xm-mpw.h: Delete file.
10207 * ser-mac.c: Delete file.
10208 * mpw-make.sed: Delete file.
10209 * mpw-config.in: Delete file.
10210 * mac-xdep.c: Delete file.
10211 * mac-gdb.r: Delete file.
10212 * mac-defs.h: Delete file.
10213 * mac-nat.c: Delete file.
10214 * config/powerpc/macos.mh: Delete file.
10215 * config/powerpc/macos.mt: Delete file.
10216 * config/powerpc/nm-macos.h: Delete file.
10217 * config/powerpc/tm-macos.h: Delete file.
10218 * source.c (openp, open_source_file): Remove obsolete code.
10219 * top.c (gdb_readline): Ditto.
10220 * utils.c (query): Ditto.
10221 * event-top.c (display_gdb_prompt): Ditto.
10222 * Makefile.in (ser-mac.o): Delete obsolete target.
10223 * NEWS: Update.
10224
d7449b42
AC
102252002-01-04 Andrew Cagney <ac131313@redhat.com>
10226
10227 * defs.h (BIG_ENDIAN): Delete macro definition.
10228 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10229 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10230 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10231 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10232 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10233 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10234 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10235 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10236 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10237 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10238 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10239 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10240 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10241 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10242 * gdbarch.c: Re-generate.
10243
356374e8
DJ
102442002-01-04 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10247 for core files.
10248
a2b8f8f8
JT
102492002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10250
10251 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10252
12466af9
AC
102532002-01-04 Andrew Cagney <ac131313@redhat.com>
10254
10255 * value.h (value_ptr): Delete typedef.
10256
3549ab40
JT
102572002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10258
10259 * i386nbsd-nat.c: Update copyright years.
10260 Include i386-tdep.h.
10261
fedbd091
EZ
102622002-01-04 Elena Zannoni <ezannoni@redhat.com>
10263
10264 * stabsread.c: Update copyright years.
10265
10266 From Debashis Mahata <debashis.mahata@wipro.com>:
10267 (read_struct_fields): Deal with Sun C compiler erroneous stab
10268 output for structs and unions.
fec8b34f 10269 Fix PR gdb/269.
fedbd091 10270
eb43544b
DJ
102712002-01-04 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10274 prototype.
10275
1514d34e
DJ
102762002-01-04 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * cp-abi.c: Fix whitespace.
10279 (baseclass_offset): New wrapper function.
10280 * cp-abi.h (baseclass_offset): Add prototype.
10281 (struct cp_abi_ops): Add baseclass_offset pointer.
10282
10283 * valops.c (vb_match): Move to...
10284 * gnu-v2-abi.c (vb_match): here.
10285 * valops.c (baseclass_offset): Move to...
10286 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10287
10288 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10289
10290 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10291 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10292 * hpacc-abi.c (init_hpacc_ops): Likewise.
10293
7f8c9282
DJ
102942002-01-04 Daniel Jacobowitz <drow@mvista.com>
10295
10296 * valops.c (find_overload_match): Accept obj as a
10297 reference parameter. Update it before returning.
10298 * value.h (find_overload_match): Update prototype.
10299 * eval.c (evaluate_subexp_standard): Pass object to
10300 find_overload_match by reference.
10301
f23631e4
AC
103022002-01-03 Andrew Cagney <ac131313@redhat.com>
10303
10304 * valarith.c: Replace value_ptr with struct value pointer. Remove
10305 register attribute from value declarations.
10306 * valops.c: Ditto.
10307 * value.h: Ditto.
10308 * scm-lang.c (scm_lookup_name): Ditto.
10309
79e10fab 103102002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10311
79e10fab
AC
10312 Abstract the functionality of iterating over mapped memory
10313 regions into a general purpose iterator function.
abf22e64 10314 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10315 iterator for memory sections.
10316 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10317 (solib_mappings_callback): New function, callback for above.
10318 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10319 (info_mappings_callback): New function, callback for above.
10320
10321 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10322
c5ad026a
MK
103232002-01-01 Mark Kettenis <kettenis@gnu.org>
10324
d2a7c97a
MK
10325 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10326 * i386-tdep.c: Include "elf-bfd.h".
10327 (process_note_abi_tag_sections): New function.
10328 (i386_gdbarch_init): Add code to recognize various OS/ABI
10329 combinations.
10330
c5ad026a
MK
10331 * maint.c (_initialize_maint_cmds): Add missing \ in
10332 string-literal.
10333
a1a5b71e 10334For older changes see ChangeLog-2001
c906108c
SS
10335\f
10336Local Variables:
10337mode: change-log
10338left-margin: 8
10339fill-column: 74
10340version-control: never
10341End:
This page took 0.869413 seconds and 4 git commands to generate.