2002-08-15 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d05285fa
MS
12002-08-15 Michael Snyder <msnyder@redhat.com>
2
466d7106
MS
3 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5 (supply_fpregset): Ditto.
6
d05285fa
MS
7 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
8 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
9 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
10 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
11 (mips_register_convertible, mips_register_convert_to_virtual,
12 mips_register_convert_to_raw): Make static.
13
e76f1f2e
AC
142002-08-15 Andrew Cagney <ac131313@redhat.com>
15
16 * infcmd.c (vector_info): New function.
17 (_initialize_infcmd): Add command "info vector".
18 (print_vector_info): New function.
19
20 * gdbarch.sh (PRINT_VECTOR_INFO): New method
21 * gdbarch.h, gdbarch.c: Regenerate.
22
4782dc19
AC
232002-08-15 Andrew Cagney <ac131313@redhat.com>
24
25 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
26 ``print_all''. Only print vector registers when ``print_all''.
27
23e3a7ac
AC
282002-08-15 Andrew Cagney <ac131313@redhat.com>
29
8e186fd6
AC
30 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
31 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
32
23e3a7ac
AC
33 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
34 Add `args' parameter.
35 * gdbarch.h, gdbarch.c: Regenerate.
36
37 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
38
39 * infcmd.c (float_info): Call print_float_info.
40 (print_float_info): New function. By default, print the
41 floating-point registers.
42
43 * arch-utils.h (default_print_float_info): Delete declaration.
44 * arch-utils.c (default_print_float_info): Delete function.
45
e0ca2bb9
MK
462002-08-16 Mark Kettenis <kettenis@gnu.org>
47
3f733acc
MK
48 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
49 out define.
50
7d8d2918
MK
51 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
52 FRAME.
53
1c7cc583
MK
54 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
55 * configure.host: Make i[3456]86-*-aix host obsolete.
56 * configure.tgt: Make i[3456]86-*-aix target obsolete.
57 * config/i386/i386aix.mh, config/i386/i386aix.mt,
58 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
59 config/i386/xm-i386aix.h: Make files obsolete.
60 * i386aix-nat.c: Make file obsolete.
61 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
62 (i386aix-nat.o): Make target obsolete.
63
e0ca2bb9
MK
64 * config/i386/nm-gnu.h: Removed.
65 * config/i386/nm-i386gnu.h: New file.
66 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
67 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
68 Moved here from ...
69 * config/i386/tm-i386gnu.h: ... here. Removed.
70 * config/i386/xm-i386gnu.h: Removed.
71 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
72 (NAT_FILE): Set to nm-i386gnu.h.
73 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
74 * i386-tdep.c: New file.
75 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
76 (i386gnu-tdep.o): Specify dependencies.
77
16057ec7 782002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 79
6b99ee2e
MK
80 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
81 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
82 Adjust a few comments to reflect reality a bit closer.
83 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
84 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
85 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
86 target_insert_watchpoint, target_remove_watchpoint):
87 Move defines to ...
88 * config/i386/nm-i386sco5.h: ... here.
89 (kernel_u_size): Add prototype. Improve a few comments and add
90 protection against multiple inclusion.
91
d9a6f65c
MK
92 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
93 out define.
94
047eff6a
MK
95 * uw-thread.c (SP_ARG0): Define if not already defined.
96 * config/i386/tm-i386.h (SO_ARG0): Remove define.
97
dcdb1290
MK
98 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
99
5d2d0b2a
MK
100 * config/i386/tm-i386.h: Don't include "regcache.h".
101
61113f8b
MK
102 * i387-tdep.h (i387_print_float_info): New prototype.
103 * i387-tdep.c (print_i387_value, print_i387_ext,
104 print_i387_status_word, print_i387_control_word): Add `struct
105 ui_file *' argument and use it for output.
106 (i387_print_float_info): Renamed from i387_float_info. Add
107 `struct gdbarch *' and `struct ui_file *' arguments and use the
108 latter for output.
109 * i386-tdep.c: Include "i387-tdep.h".
110 (i386_gdbarch_init): Set print_float_info.
111 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
112 (FLOAT_INFO): Remove define.
113
46e0f506
MS
1142002-08-13 Michael Snyder <msnyder@redhat.com>
115
116 * mips-tdep.c (mips_push_arguments): Rename to
117 mips_eabi_push_arguments, and tune for EABI.
118 (MIPS_REGS_HAVE_HOME_P): Delete.
119 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
120 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
121 Delete references to mips_regs_have_home_p.
122
409268de
KS
1232002-08-14 Keith Seitz <keiths@redhat.com>
124
125 * Makefile.in (install-gdbtk): Create insight plugin directory.
126 Install plugins.tcl file.
127
ffc6a242
KS
1282002-08-14 Keith Seitz <keiths@redhat.com>
129
130 * configure.in: Move SUBDIRS to near top of the file so that
131 --enable options may add things to it.
132 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
133 * configure: Regenerate.
134
ebafbe83
MS
1352002-08-13 Michael Snyder <msnyder@redhat.com>
136
137 * mips-tdep.c (mips_o32o64_push_arguments): New function,
138 cloned from mips_push_arguments, tuned for o32/o64 ABI.
139 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
140
32f6f25d
AC
1412002-08-13 Andrew Cagney <ac131313@redhat.com>
142
143 * vax-tdep.c (vax_get_saved_register): Delete function.
144 (vax_gdbarch_init): Update.
145 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
146 (ns32k_gdbarch_init): Update.
147 * alpha-tdep.c (alpha_get_saved_register): Delete function.
148 (alpha_gdbarch_init): Update.
149
53826de9
AC
1502002-08-13 Andrew Cagney <cagney@redhat.com>
151
152 * regcache.c (init_regcache_descr): Overallocate the
153 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
154 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
155 nr_raw_registers.
156 (set_register_cached): Add range checking assertions. Use
157 current_regcache.
158
16057ec7 1592002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
160
161 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
162 numbers for MMX registers.
163
7b4c2dce
AC
1642002-08-13 Andrew Cagney <cagney@redhat.com>
165
166 * i386-tdep.c (i386_gdbarch_init): Use
167 generic_unwind_get_saved_register.
168
1e03ad20
KB
1692002-08-13 Kevin Buettner <kevinb@redhat.com>
170
171 * procfs.c (procfs_can_use_hw_breakpoint): New function.
172 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
173 target vector.
174 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
175 Delete. Add comment regarding this now-deleted target method.
176
548bcbec
SC
1772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
178
179 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
180 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
181 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
182 real PC and the page number (if it's within the memory bank window).
183 (m68hc11_pseudo_register_write): Likewise when saving.
184 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
185 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
186 (m68hc11_register_raw_size): And use 32-bit for it.
187 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
188 16K memory bank is used by the prog; also use the virtual pc.
189
7df11f59
SC
1902002-08-13 Stephane Carrez <stcarrez@nerim.fr>
191
192 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
193 (m68hc11_gdbarch_init): Install it in gdbarch.
194 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
195 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
196 (MSYMBOL_SIZE): New for documentation.
197 (insn_return_kind): Enum to specify how a function returns.
198 (frame_extra_info): Cleanup and record the return mode.
199 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
200 register in address computation.
201 (m68hc11_get_return_insn): New to obtain the return instruction used
202 by the function.
203 (m68hc11_frame_init_saved_regs): Take into account the return
204 instruction used by the function for far and interrupt functions.
205 (m68hc11_init_extra_frame_info): Take into account page register.
206 (m68hc11_frame_args_address): Adjust according to the return mode.
207 (show_regs): Print page register only when it's used.
208
5706502a
SC
2092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
210
211 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
212 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
213 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
214 registers.
215 (m68hc11_register_raw_size): Likewise.
216
28fc6740
AC
2172002-08-13 Andrew Cagney <cagney@redhat.com>
218
219 * i386-tdep.c (i386_register_name): Handle mmx registers.
220 (mmx_regnum_p): New function.
221 (i386_mmx_names): New array.
222 (mmx_num_regs): New variable.
223 (i386_pseudo_register_read): New function.
224 (i386_pseudo_register_write): New function.
225 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
226
227 * regcache.c (regcache_raw_read_unsigned): New function.
228 (regcache_raw_read_signed): New function.
229 * regcache.h (regcache_raw_read_unsigned): Declare.
230 (regcache_raw_read_signed): Declare.
231
a378f419
AC
2322002-08-13 Andrew Cagney <cagney@redhat.com>
233
234 * regcache.c (regcache_raw_read_as_address): Delete function.
235 (regcache_cooked_read_signed): New function.
236 (regcache_cooked_read_unsigned): New function.
237 * regcache.h (regcache_cooked_read_signed): Declare.
238 (regcache_cooked_read_unsigned): Declare.
239 (regcache_raw_read_as_address): Delete declaration.
240
241 * blockframe.c (generic_read_register_dummy): Use
242 regcache_cooked_read_unsigned.
243 * i386-tdep.c (i386_extract_struct_value_address): Use
244 regcache_cooked_read_unsigned.
245
81967506
SC
2462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
247
248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
249 double sizes according to ELF ABI flags.
250 (gdbarch_tdep): Record elf_flags.
251
ffe1f3ee
SC
2522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
253
254 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
255 (m6812_prolog): They can appear in 68HC12 function prologue.
256 (m68hc11_frame_chain): Cleanup.
257
98216c5d
AC
2582002-08-12 Andrew Cagney <cagney@redhat.com>
259
260 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
261 declarations.
262 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
263 (i386_linux_register_raw_size): Delete function.
264 (i386_linux_init_abi): Update.
265 * i386-tdep.c (i386_register_raw_size): Delete function.
266 (i386_register_byte): Delete function.
267 (i386_gdbarch_init): Update.
268 (i386_register_size): Delete array.
269 (i386_register_offset): Delete array.
270
271 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
272 (REGISTER_RAW_SIZE): Delete macro.
273 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
274 (REGISTER_BYTE): Delete macro.
275
3b19021e
AS
2762002-08-11 Aidan Skinner <aidan@velvet.net>
277
278 * ada-lang.c (ada_lookup_partial_symbol)
279 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
280 prototype names so that grep ^func works properly.
281
282 * ada-lang.c (ada_array_element_type)
283 (ada_lookup_partial_symbol): Fix typos in parameter list.
284
285 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
286 Fix prototype names so that grep ^func works properly.
287
b063e7a2
AC
2882002-08-10 Andrew Cagney <cagney@redhat.com>
289 Elena Zannoni <ezannoni@redhat.com>
290 Martin M. Hunt <hunt@redhat.com>
291
292 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
293 (build_builtin_type_vec128i): Set the vector bit.
294 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
295 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
296 (build_builtin_type_vec64): New function.
297 (build_builtin_type_vec64i): New function.
298 (build_gdbtypes): Initialize builtin_type_vec64 and
299 builtin_type_vec64i.
300
a7e3c2ad
AC
3012002-08-09 Andrew Cagney <cagney@redhat.com>
302
303 * regcache.c (regcache_dump): Compare the register offset
304 with REGISTER_BYTE.
305 * arch-utils.c (generic_register_byte): New function.
306 * arch-utils.h (generic_register_byte): Declare.
307 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
308 * gdbarch.h, gdbarch.c: Regenerate.
309
af030b9a
AC
3102002-08-09 Andrew Cagney <cagney@redhat.com>
311
312 * regcache.c: Include "gdbcmd.h"
313 (_initialize_regcache): Add commands "maintenance print
314 registers", "maintenance print raw-registers" and "maintenance
315 print cooked-registers".
316 (enum regcache_dump_what): Define.
317 (dump_endian_bytes): New function.
318 (regcache_dump): New function.
319 (regcache_print): New function.
320 (maintenance_print_registers): New function.
321 (maintenance_print_raw_registers): New function.
322 (maintenance_print_cooked_registers): New function.
323 * Makefile.in (regcache.o): Update dependencies.
324
cb3d25d1
MS
3252002-08-09 Michael Snyder <msnyder@redhat.com>
326
327 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
328 (mips_push_arguments): Correct some comments. Use paddr_nz
329 for printing addresses in debug output. Replace static
330 allocation using MAX_REGISTER_RAW_SIZE with alloca.
331 (mips_n32n64_push_arguments): New function, cloned from
332 mips_push_arguments and tuned for the n32/n64 ABI.
333 (mips_push_register): Buffer needs dynamic allocation.
334 (mips_print_register): Ditto.
335 (do_gp_register_row): Ditto.
336 (mips_store_return_value): Ditto.
337 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
338
2163ab9d
DH
3392002-08-09 Don Howard <dhoward@redhat.com>
340
341 * memattr.c (mem_info_command): Print special case of upper bound
342 as max CORE_ADDR + 1.
343
b78bcb18
MS
3442002-08-08 Michael Snyder <msnyder@redhat.com>
345
346 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
347 returns structs by ref if they're too big to fit in two registers.
348
ffabd70d
KB
3492002-08-09 Kevin Buettner <kevinb@redhat.com>
350
351 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
352 saved regs value.
353 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
354 mips_find_saved_regs().
355 (mips_pop_frame): Likewise.
356
fbcdb4a3
KB
3572002-08-09 Kevin Buettner <kevinb@redhat.com>
358
359 * blockframe.c (frame_saved_regs_register_unwind): Revise
360 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
361 frames are in use.
362
3c3bea1c
GS
3632002-08-09 Grace Sainsbury <graces@redhat.com>
364
365 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
366 T-packets; the 'a' is not taken as a register number.
367 (remote_check_watch_resources, remote_stopped_by_watchpoint)
368 (remote_stopped_data_address): New functions; add to target
369 vector.
370 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
371 prototypes to match other implementations of this
372 function. replace integer argument with pointer -- the length
373 field in the Z-packet is the length of what is pointed to or 1 if
374 pointer is null. Add to target vector.
375 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
376 target vector.
377
378 From Mark Salter:
379 * remote.c (remote_wait): Add support to extract optional
380 watchpoint information from T-packet. Ignore unrecognized
381 optional info in T-packet.
382 (remote_async_wait): Ditto.
383
5d1d95de
CV
3842002-08-09 Corinna Vinschen <vinschen@redhat.com>
385
386 * cli/cli-dump.c: Change fopen modes to use binary open modes
387 as defined in include/fopen-bin.h throughout.
388
c86b5b38
MS
3892002-08-08 Michael Snyder <msnyder@redhat.com>
390
391 * mips-tdep.c: Minor whitespace and indentation clean-ups.
392
b30590dc
KB
3932002-08-08 Kevin Buettner <kevinb@redhat.com>
394
395 * doublest.c (store_floating): Avoid floatformat_from_doublest()
396 assertion failure by returning early after a warning.
397
498868ed
KB
3982002-08-08 Kevin Buettner <kevinb@redhat.com>
399
400 * mips-tdep.c (mips_find_saved_regs): Make static.
401 (mips_frame_init_saved_regs): New function.
402 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
403 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
404 (mips_find_saved_regs): Delete declaration.
405
b2dd6311
GS
4062002-08-08 Grace Sainsbury <graces@redhat.com>
407
3c3bea1c
GS
408 * remote.c (remote_wait, remote_async_wait): Change
409 thread_num from int to ULONGEST.
410 (unpack_varlen_hex): Change result parameter from
411 int * to ULONGEST *.
b2dd6311 412
ea47855f
AC
4132002-08-08 Andrew Cagney <ac131313@redhat.com>
414
415 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
416 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
417 powerpc*-*-*.
418 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
419
69db8bae
AC
4202002-08-08 Andrew Cagney <cagney@redhat.com>
421
422 * gcore.c (override_derive_stack_segment): Delete variable.
423 (preempt_derive_stack_segment): Delete function.
424 (derive_stack_segment): Delete function.
425 (default_derive_stack_segment): Renamed to derive_stack_segment.
426 (override_derive_heap_segment): Delete variable.
427 (preempt_derive_heap_segment): Delete function.
428 (derive_heap_segment): Delete function.
429 (default_derive_heap_segment): Rename to derive_heap_segment.
430
cb811fe7
MS
4312002-08-06 Michael Snyder <msnyder@redhat.com>
432
433 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
434 * mips-tdep.c (mips_EABI_use_struct_convention,
435 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
436 New functions. (mips_use_struct_convention): Delete.
437 (mips_gdbarch_init): set use_gdbarch_convention.
438
8b389c40
MS
4392002-08-06 Michael Snyder <msnyder@redhat.com>
440
441 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
442 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
443 mips_o32_reg_struct_has_addr): New functions.
444 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
445
5c27f28a
AC
4462002-08-07 Andrew Cagney <ac131313@redhat.com>
447
448 * regcache.c (pseudo_register): Delete function.
449 (fetch_register): Delete function.
450 (store_register): Delete function.
451 (regcache_raw_read, legacy_read_register_gen): Use
452 target_fetch_registers instead of fetch_register.
453 (legacy_write_register_gen, regcache_raw_write): Use
454 target_store_register instead of store_register.
455 (write_register_bytes): Ditto.
456
457 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
458 (STORE_PSEUDO_REGISTER): Delete.
459 * gdbarch.h, gdbarch.c: Regenerate.
460
5b331675
CV
4612002-08-06 Corinna Vinschen <vinschen@redhat.com>
462
463 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
464 write dump file binary.
465
6acdf5c7
MS
4662002-08-05 Michael Snyder <msnyder@redhat.com>
467
468 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
469 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
470 (mips_gdbarch_init): Set N32 target to be mips64.
471
b2f01c35
KB
4722002-08-06 Kevin Buettner <kevinb@redhat.com>
473
474 * frame.c (find_saved_register): Break out of loop once saved
475 register address is found. Don't mention sparc in loop comment
476 anymore.
477
63db5580
KB
4782002-08-06 Kevin Buettner <kevinb@redhat.com>
479
480 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
481 mips_default_saved_regsize to 8.
482
5e34e75e
AC
4832002-08-06 Andrew Cagney <ac131313@redhat.com>
484
485 * gcore.c: Do not include <sys/procfs.h>.
486 * Makefile.in (gcore.o): Update dependencies.
487
eb4c54a2
AC
4882002-08-06 Andrew Cagney <cagney@redhat.com>
489
490 * configure.tgt: Make arc-*-* obsolete.
491 * NEWS: Mention that arc-*-* has been identifed as obsolete.
492 * MAINTAINERS: Make arc-elf obsolete.
493 * arc-tdep.c: Make file obsolete.
494 * config/arc/arc.mt: Ditto.
495 * config/arc/tm-arc.h: Ditto.
496
ced15480
TR
4972002-08-05 Theodore A. Roth <troth@verinet.com>
498
499 * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc.
500
b4743822
AC
5012002-08-05 Andrew Cagney <ac131313@redhat.com>
502
503 * mcore-tdep.c (mcore_gdbarch_init): Use
504 generic_unwind_get_saved_register instead of
505 generic_get_saved_register.
506 * v850-tdep.c (v850_gdbarch_init): Ditto.
507 * frv-tdep.c (frv_gdbarch_init): Ditto.
508 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
509 * s390-tdep.c (s390_gdbarch_init): Ditto.
510 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
511 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
512 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
513
3956d554
JB
5142002-08-05 Joel Brobecker <brobecker@gnat.com>
515
516 * objfiles.h: Add missing #include "symfile.h"
517
518 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
519
8249c0d6
AC
5202002-08-04 Andrew Cagney <ac131313@redhat.com>
521
522 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
523 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
524 of FIELD_BITSIZE.
525
b9d14705
DJ
5262002-08-04 Daniel Jacobowitz <drow@mvista.com>
527
528 * NEWS: Cleanup and nitpick.
529
dd73b9bb
AC
5302002-08-03 Andrew Cagney <ac131313@redhat.com>
531
532 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
533
043a27f8
AC
5342002-08-03 Andrew Cagney <ac131313@redhat.com>
535
536 * Makefile.in (gdbtk-bp.o): Update dependencies.
537 (gdbtk-register.o): Ditto.
538 (gdbtk-varobj.o): Ditto.
539
46ce284d
AC
5402002-08-03 Andrew Cagney <cagney@redhat.com>
541
542 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
543 m68hc11_fetch_pseudo_register.
544 (m68hc11_pseudo_register_write): Replace
545 m68hc11_store_pseudo_register.
546 (m68hc11_gdbarch_init): Update.
547
b66d6d2e
AC
548Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
549
550 * gdbarch.sh: Include "gdb_string.h".
551 * gdbarch.c: Regenerate.
552
553 * regcache.c: Include "gdb_string.h".
554 * ax-general.c: Ditto.
555 * varobj.c: Ditto.
556 * std-regs.c: Ditto.
557 * fbsd-proc.c: Ditto.
558 * thread.c: Ditto.
559
560 * Makefile.in (regcache.o): Update dependencies.
561 (thread.o, gdbarch.o): Ditto.
562 (ax-general.o, gdbarch.o): Ditto.
563 (varobj.o, std-regs.o): Ditto.
564 (fbsd-proc.o): Specify dependencies.
565
29e1842b
AC
5662002-08-02 Andrew Cagney <cagney@redhat.com>
567
568 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
569 regnum.
570 (regcache_cooked_write): Ditto.
571
68365089
AC
5722002-08-02 Andrew Cagney <ac131313@redhat.com>
573
574 * regcache.c (regcache_cooked_read): New function.
575 (regcache_cooked_write): New function.
576 (read_register_gen): Rewrite using regcache_cooked_read.
577 (write_register_gen): Rewrite using regcache_cooked_write.
578
579 * regcache.h (regcache_cooked_read, regcache_cooked_write):
580 Declare.
581
d8124050
AC
5822002-08-02 Andrew Cagney <cagney@redhat.com>
583
584 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
585 Replace the architecture methods register_read and register_write.
586 * gdbarch.h, gdbarch.c: Regenerate.
587 * regcache.c (init_regcache_descr): Update.
588 (read_register_gen): Update.
589 (write_register_gen): Update.
590 (supply_register): Update comment.
591
592 * sh-tdep.c (sh_gdbarch_init): Update.
593 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
594 `regcache' and `gdbarch' parameters. Make `buffer' a void
595 pointer. Update code.
596 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
597 `regcache' and `gdbarch' parameters. Make `buffer' a constant
598 void pointer. Update code.
599 (sh64_register_write): Delete.
600 (sh4_register_read): Delete.
601 (sh64_register_read): Delete.
602 (sh4_register_write): Delete.
603 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
604 void pointer, `to' parameter a void pointer.
605 (sh_sh64_register_convert_to_raw): Ditto.
606
a6425924
KB
6072002-08-01 Kevin Buettner <kevinb@redhat.com>
608
609 * mips-tdep.c (mips_register_virtual_type): Use architecture
610 invariant return values.
611
ff5922b5
AC
6122002-08-01 Andrew Cagney <cagney@redhat.com>
613
614 * linux-proc.c: Include "gdb_string.h".
615 * Makefile.in (linux-proc.o): Update dependency list.
616
32a6503c
KB
6172002-08-01 Kevin Buettner <kevinb@redhat.com>
618
619 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
620 comment.
621
ccaa32c7
GS
6222002-08-01 Grace Sainsbury <graces@redhat.com>
623
624 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
625 to_insert_watchpoint, to_remove_watchpoint,
626 to_stopped_by_watchpoint, to_stopped_data_address,
627 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
628 target vecctor. Define their corresponding macros so they call
629 them.
630
631 * target.c: Add default and debug versions of for
632 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
633 to_insert_watchpoint, to_remove_watchpoint,
634 to_stopped_by_watchpoint, to_stopped_data_address,
635 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
636
78fde5f8
KB
6372002-08-01 Kevin Buettner <kevinb@redhat.com>
638
639 * mips-tdep.c (mips_register_virtual_type): New function.
640 (mips_gdbarch_init): Register mips_register_virtual_type()
641 with gdbarch machinery.
642 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
643 this file instead of tm-bigmips.h.
644 (MIPS_REGSIZE): Delete this macro.
645 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
646 multiarch version in mips-tdep.c will be found.
647
db034ac5
AC
6482002-08-01 Andrew Cagney <cagney@redhat.com>
649
650 * NEWS: Menion that CHILL has been made obsolete.
651
652 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
653 * gdbserver/Makefile.in: Ditto.
654 * stabsread.c (read_range_type): Ditto.
655 * gdbtypes.h: Ditto.
656 * language.c (binop_type_check): Ditto.
657 (binop_result_type): Ditto.
658 (integral_type): Ditto.
659 (character_type): Ditto.
660 (string_type): Ditto.
661 (boolean_type): Ditto.
662 (structured_type): Ditto.
663 (lang_bool_type): Ditto.
664 (binop_type_check): Ditto.
665 * language.h (_LANG_chill): Ditto.
666 * dwarfread.c (set_cu_language): Ditto.
667 * dwarfread.c (CHILL_PRODUCER): Ditto.
668 * dwarfread.c (handle_producer): Ditto.
669 * expression.h (enum exp_opcode): Ditto.
670 * eval.c: Ditto for comments.
671 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
672 * expprint.c (print_subexp): Ditto.
673 (print_subexp): Ditto.
674 * valops.c (value_cast): Ditto.
675 (search_struct_field): Ditto.
676 * value.h (COERCE_VARYING_ARRAY): Ditto.
677 * symfile.c (init_filename_language_table): Ditto.
678 (add_psymbol_with_dem_name_to_list): Ditto.
679 * valarith.c (value_binop): Ditto.
680 (value_neg): Ditto.
681 * valops.c (value_slice): Ditto.
682 * symtab.h (union language_specific): Ditto.
683 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
684 (SYMBOL_DEMANGLED_NAME): Ditto.
685 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
686 * defs.h (enum language): Ditto.
687 * symtab.c (got_symtab): Ditto.
688 * utils.c (fprintf_symbol_filtered): Ditto.
689
690 * ch-typeprint.c: Make file obsolete.
691 * ch-valprint.c: Make file obsolete.
692 * ch-lang.h: Make file obsolete.
693 * ch-exp.c: Make file obsolete.
694 * ch-lang.c: Make file obsolete.
695
696 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
697 CHILL_LIB.
698 (TARGET_FLAGS_TO_PASS): Ditto.
699 (CHILLFLAGS): Obsolete.
700 (CHILL): Obsolete.
701 (CHILL_FOR_TARGET): Obsolete.
702 (CHILL_LIB): Obsolete.
703 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
704 ch-valprint.c.
705 (HFILES_NO_SRCDIR): Remove ch-lang.h.
706 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
707 ch-lang.o.
708 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
709 targets.
710
8aaf0b47
JB
7112002-07-31 Joel Brobecker <brobecker@gnat.com>
712
713 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
714 This does not change anything at the moment, but will be helpful
715 later when full Ada support is integrated.
716
f3a7b3a5
KB
7172002-07-31 Kevin Buettner <kevinb@redhat.com>
718
719 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
720 help message.
721
fb850278
KB
7222002-07-31 Kevin Buettner <kevinb@redhat.com>
723
724 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
725 and save it in a local variable. Use variable in later test.
726
e3bddbfa
KB
7272002-07-31 Kevin Buettner <kevinb@redhat.com>
728
729 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
730 test. (Thanks to Daniel Jacobowitz.)
731
28d169de
KB
7322002-07-31 Kevin Buettner <kevinb@redhat.com>
733
734 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
735 (mips_abi_strings): Add "n64".
736 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
737
7fe7e44e
KB
7382002-07-31 Kevin Buettner <kevinb@redhat.com>
739
740 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
741 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
742
c6caf090
KB
7432002-07-31 Kevin Buettner <kevinb@redhat.com>
744
745 * utils.c (host_pointer_to_address, address_to_host_pointer):
746 Use gdb_assert() instead of explicit call to internal_error().
747
c41669e0
KB
7482002-07-30 Kevin Buettner <kevinb@redhat.com>
749
750 * Makefile.in (rs6000-nat.o): Update dependencies.
751
752 From Nicholas Duffek:
753 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
754 (aix-thread.o): New rule.
755 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
756 * config/powerpc/aix432.mh: New file.
757
2fda4977
DJ
7582002-07-30 Daniel Jacobowitz <drow@mvista.com>
759
760 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
761 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
762 (fetch_core_registers, ppc_linux_supply_gregset)
763 (ppc_linux_supply_fpregset): New functions.
764 (ppc_linux_regset_core_fns): New.
765 (_initialize_ppc_linux_tdep): Call add_core_fns.
766 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
767 and ppc_linux_supply_gregset.
768 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
769 (supply_fpregset): Call ppc_linux_supply_fpregset.
770 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
771 corelow.o.
772 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
773
729051e6
DJ
7742002-07-30 Daniel Jacobowitz <drow@mvista.com>
775
776 * symtab.c (lookup_symbol): Demangle before lowercasing.
777
5f8a3188
AC
7782002-07-30 Andrew Cagney <ac131313@redhat.com>
779
780 * symtab.h: Replace #include "gdb_obstack.h" with opaque
781 declaration.
782 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
783 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
784 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
785 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
786 "gdb_string.h".
787 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
788 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
789 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
790 (avr-tdep.o, mon960-rom.o): Ditto.
791 (aout_stabs_gnu_h): Define.
792 (symtab_h): Remove $(gdb_obstack_h).
793
67f07146
JB
7942002-07-30 Jim Blandy <jimb@redhat.com>
795
796 Patch from David Carlton <carlton@math.stanford.edu>:
797 * gdbinit.in: Move the `dir' commands that add GDB's own source
798 directory to the search path to the end, so that the `gdb' source
799 directory will be searched first.
800
04ea0df1
AC
8012002-07-29 Andrew Cagney <ac131313@redhat.com>
802
803 * gdb_obstack.h: New file.
804 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
805 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
806 * objfiles.h: Include "gdb_obstack.h".
807 * Makefile.in (gdb_obstack_h): Define.
808 (symtab_h): Add $(gdb_obstack_h).
809 (objfiles_h): Add $(gdb_obstack_h).
810
811 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
812 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
813 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
814 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
815 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
816 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
817 * symfile.c, coffread.c, c-typeprint.c: Ditto.
818 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
819
820 * Makefile.in (bcache.o): Update dependencies.
821 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
822 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
823 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
824 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
825 (stabsread.o, symfile.o, symmisc.o): Ditto.
826 (symtab.o, typeprint.o, macroexp.o): Ditto.
827 (macrotab.o, mdebugread.o): Ditto.
828 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
829 (coff_ecoff_h, aout_aout64_h): Define.
830 (aout_stabs_gnu_h, libaout_h): Define.
831
d138e37a
AC
8322002-07-29 Andrew Cagney <cagney@redhat.com>
833
834 * regcache.c (struct regcache_descr): Rename nr_registers to
835 nr_cooked_registers. Revise comments describing the structure
836 member fields.
837 (init_regcache_descr): Update.
838 (init_legacy_regcache_descr): Update.
839 (read_register_gen, write_register_gen): When a cooked register in
840 the raw register range, directly access the value from the raw
841 register cache.
842
460e6ec3
AC
8432002-07-29 Andrew Cagney <ac131313@redhat.com>
844
845 * z8k-tdep.c: Do not include "obstack.h".
846 * h8300-tdep.c, h8500-tdep.c: Ditto.
847 * m68hc11-tdep.c, sh-tdep.c: Ditto.
848 * valprint.c, v850-tdep.c: Ditto.
849 * d10v-tdep.c, mn10300-tdep.c: Ditto.
850 * mn10200-tdep.c: Ditto.
851
852 * Makefile.in (z8k-tdep.o): Update dependencies.
853 (m68hc11-tdep.o, valprint.o): Ditto.
854 (v850-tdep.o, d10v-tdep.o): Ditto.
855 (mn10300-tdep.o, sparc-tdep.o): Ditto.
856 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
857 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
858 (sh_opc_h, gdb_sim_sh_h): Define.
859 (elf_sh_h, elf_bfd_h): Define.
860 (opcode_m68hc11_h): Define.
861 (OPCODES_SRC, OPCODES_DIR): define.
862 (OPCODES): Use $(OPCODES_DIR).
863 (gdb_sim_d10v_h): Rename sim_d10v_h.
864 (gdb_sim_arm_h): Rename sim_arm_h.
865
790c9cf0
KB
8662002-07-26 Kevin Buettner <kevinb@redhat.com>
867
868 * utils.c (host_pointer_to_address, address_to_host_pointer):
869 Change internal_error() message to indicate function responsible
870 for the error.
871
9647fa49
KB
8722002-07-26 Kevin Buettner <kevinb@redhat.com>
873
874 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
875 calls to local_hex_string_custom().
876
dabbe2c0
KB
8772002-07-26 Kevin Buettner <kevinb@redhat.com>
878
879 * irix5-nat.c: Move IRIX shared library support from here...
880 * solib-irix.c: ...to here. Revised substantially to work with
881 generic solib framework.
882
b96d0a4e
KB
883 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
884 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
885 * mips-irix-tdep.c: New file.
886
313fb2f6
KB
887 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
888 (mips-irix-tdep.o, solib-irix.o): New rules.
889 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
890 solib-irix.o.
891 * config/mips/irix6.mt (TDEPFILES): Likewise.
892 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
893
ab2eaf26
KB
8942002-07-26 Kevin Buettner <kevinb@redhat.com>
895
177e4768 896 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
897 disabled (via ``#if 0'') includes.
898
7244546a
KB
8992002-07-26 Kevin Buettner <kevinb@redhat.com>
900
901 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
902 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
903 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
904 Add support for the fpscr register.
905 * rs6000-nat.c (regmap, fetch_inferior_registers)
906 (store_inferior_registers, fetch_core_registers): Likewise.
907
dd7be90a
KB
9082002-07-26 Kevin Buettner <kevinb@redhat.com>
909
910 * rs6000-nat.c (language.h): Include.
911 (special_regs): Delete this array.
912 (regmap): New function.
913 (fetch_register, store_register): Use regmap() to map gdb
914 register numbers to ptrace register numbers. Also, use
915 outputs from regmap() to make decisions regarding type of
916 ptrace() call to make. In particular, don't compare against
917 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
918 (fetch_inferior_registers, store_inferior_registers): Where
919 possible, obtain register numbers from tdep struct. Don't
920 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
921 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
922 (LAST_UISA_SP_REGNUM): Delete.
923
11bf77db
KB
9242002-07-25 Kevin Buettner <kevinb@redhat.com>
925
926 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
927 (fetch_registers, store_register, fetch_core_registers): Don't
928 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
929 regcache_collect() as appropriate.
930 (find_toc_address): Format hex address with local_hex_string().
931
06afebeb
AC
9322002-07-25 Andrew Cagney <ac131313@redhat.com>
933
934 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
935 bfd/elf32-frv.c.
936
8c554d79
TT
9372002-07-24 Tom Tromey <tromey@redhat.com>
938
939 * jv-exp.y: Marked all strings with _().
940 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
941 internal_error.
942 (MethodInvocation, CastExpression, parse_number, yyerror,
943 java_type_from_name, push_expression_name, yylex): Typo fixes.
944
e4c242d9
DJ
9452002-07-24 Daniel Jacobowitz <drow@mvista.com>
946
947 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
948 (tee_file_flush, tee_file_write, tee_file_fputs)
949 (tee_file_isatty): New.
950 * ui-file.h (tee_file_new): Add prototype.
951
ebf56fd3
AS
9522002-07-24 Aidan Skinner <aidan@velvet.net>
953
954 * ada-lang.c: Change k&r style function definitions to prototyped
955 form.
956 * ada-typeprint.c: Change k&r style function definitions to prototyped
957 form.
958 * ada-valprint.c: Change k&r style function definitions to prototyped
959 form.
960
7fb623f7
AC
9612002-07-24 Andrew Cagney <cagney@redhat.com>
962
963 * README: Remove reference to remote-bug.
964 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
965 remote-bug.c.
966 (m88k-nat.o): Delete rule.
967 (m88k-tdep.o): Delete rule.
968 (remote-bug.o): Delete rule.
969 * MAINTAINERS: Mark as obsolete.
970 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
971 * m88k-tdep.c: Make file obsolete.
972 * config/m88k/m88k.mh: Ditto.
973 * config/m88k/delta88v4.mh: Ditto.
974 * config/m88k/delta88v4.mt: Ditto.
975 * config/m88k/delta88.mt: Ditto.
976 * config/m88k/delta88.mh: Ditto.
977 * remote-bug.c: Ditto.
978 * config/m88k/tm-delta88.h: Ditto.
979 * config/m88k/nm-delta88v4.h: Ditto.
980 * config/m88k/xm-delta88.h: Ditto.
981 * config/m88k/xm-dgux.h: Ditto.
982 * config/m88k/tm-m88k.h: Ditto.
983 * config/m88k/nm-m88k.h: Ditto.
984 * config/m88k/tm-delta88v4.h: Ditto.
985 * m88k-nat.c: Ditto.
986 * cxux-nat.c: Ditto.
987 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
988 and m88*-*-* obsolete.
989 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
990 m88*-*-* obsolete.
991
37611a2b
AC
9922002-07-24 Andrew Cagney <cagney@redhat.com>
993
994 * findvar.c (extract_unsigned_integer): Make `addr' parameter
995 constant. Same for local pointer variables.
996 (extract_signed_integer): Ditto.
997 * defs.h (extract_unsigned_integer): Update.
998 (extract_signed_integer): Update.
999
18ff0538
KB
10002002-07-24 Kevin Buettner <kevinb@redhat.com>
1001
1002 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1003 * gdbserver/configure: Regenerate.
1004 * gdbserver/config.in: Regenerate.
1005
1aaa5f99
AC
10062002-07-24 Andrew Cagney <cagney@redhat.com>
1007
1008 * regcache.c (regcache_raw_write): Change buf parameter to a
1009 constant void pointer.
1010 (regcache_raw_read): Change buf parameter to a void pointer.
1011 (legacy_write_register_gen): Change myaddr parameter a constant
1012 void pointer.
1013 (supply_register): Change val parameter to a const void pointer.
1014 * regcache.h (regcache_raw_write): Update declaration.
1015 (regcache_raw_read): Update declaration.
1016 (supply_register): Update declaration.
1017
b4f5539f
TT
10182002-07-24 Tom Tromey <tromey@redhat.com>
1019
1020 * defs.h (gdb_readline_wrapper): Declare.
1021 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1022 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1023 * top.c (gdb_readline_wrapper): New function.
1024 (command_line_input): Use it.
1025
0818c12a
AC
10262002-07-24 Andrew Cagney <cagney@redhat.com>
1027
1028 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1029 regcache_read and regcache_write.
1030 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1031 * regcache.c: Update.
1032 * sh-tdep.c (sh64_push_arguments): Update comment.
1033 (sh_pseudo_register_read): Update.
1034 (sh_pseudo_register_write): Update.
1035 (sh4_register_read): Update.
1036 (sh4_register_write): Update.
1037 (sh64_pseudo_register_read): Update.
1038 (sh64_pseudo_register_write): Update.
1039 (sh64_register_read): Update.
1040 (sh64_register_write): Update.
1041 * i386-tdep.c (i386_extract_return_value): Update.
1042 (i386_extract_struct_value_address): Update.
1043 (i386_extract_return_value): Update.
1044 * blockframe.c (generic_read_register_dummy): Update.
1045 (generic_call_dummy_register_unwind): Update
1046 * infrun.c (write_inferior_status_register): Update.
1047
f7321c06
JB
10482002-07-23 Jim Blandy <jimb@redhat.com>
1049
1050 * parser-defs.h (expression_context_pc): Make this extern.
1051 (Thanks to Michael Snyder.)
1052
2037aebb
AC
10532002-07-23 Andrew Cagney <ac131313@redhat.com>
1054
1055 GDB 5.2.1 released from 5.2 branch.
1056 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1057 * README: Update to mention 5.2.1.
1058
66504d44
MS
10592002-07-23 Mark Salter <msalter@redhat.com>
1060
1061 * remote.c (remote_read_bytes): Fix check for error.
1062
27bae383
KB
10632002-07-22 Kevin Buettner <kevinb@redhat.com>
1064
1065 * aix-thread.c (language.h): Include.
1066 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1067 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1068 Print newlines at end of debug messages.
1069 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1070 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1071
10722002-07-22 Kevin Buettner <kevinb@redhat.com>
1073
1074 * aix-thread.c (ppc-tdep.h): Include.
1075 (special_register_p): New function.
1076 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1077 (store_regs_user_thread): Use register number information from
1078 gdbarch_tdep struct instead of hardcoded offsets relative to
1079 FIRST_UISA_SP_REGNUM.
1080 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1081 special_register_p() instead of using FPLAST_REGNUM and
1082 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1083 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1084 will be MQ's register number.
1085
10862002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1087
1088 * aix-thread.c (ops): Rename to aix_thread_ops.
1089 (base_ops): Rename to base_target.
1090 (ops_attach): Rename to aix_thread_attach.
1091 (ops_detach): Rename to aix_thread_detach.
1092 (ops_resume): Rename to aix_thread_detach.
1093 (ops_wait): Rename to aix_thread_wait.
1094 (ops_kill): Rename to aix_thread_kill.
1095 (init_ops): Rename to init_aix_thread_ops.
1096 (ops_fetch_register): Rename to aix_thread_fetch_register.
1097 (ops_store_register): Rename to aix_thread_store_register.
1098 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1099 (ops_thread_alive): Rename to aix_thread_thread_alive.
1100 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1101 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1102 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1103 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1104 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1105 (store_regs_lib): Rename to store_regs_user_thread.
1106 (store_regs_kern): Rename to store_regs_kernel_thread.
1107
27bae383 11082002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1109
1110 * aix-thread.c (ops_prepare_to_store): Eliminate.
1111 (init_ops): Don't initialize ops.prepare_to_store.
1112 (store_regs_kern): Pre-fetch register buffers from child,
1113 because some registers may not be in the cache. Copy
1114 regs from register cache only if they are cached.
1115 (store_regs_lib): Copy regs from register cache only
1116 if they are cached.
1117 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1118 fill_gprs64): Ditto.
1119
61c5da0b
KB
11202002-07-22 Kevin Buettner <kevinb@redhat.com>
1121
1122 * aix-thread.c (gdb_assert.h): Include.
1123 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1124 register sizes (from register cache) match size of buffer holding
1125 register data.
1126 (fill_sprs32): Change parameter types to match those in the ptrace()
1127 buffer.
1128 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1129 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1130
11312002-07-22 Michael Snyder <msnyder@redhat.com>
1132
1133 * aix-thread.c (supply_sprs64): Cosmetic change.
1134 (supply_sprs32): Cosmetic change.
1135 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1136 (fill_sprs64): Use regcache_collect instead of read_register.
1137 (store_regs_lib): Use regcache_collect instead of
1138 read_register. Use fill_sprs32 instead of fill_sprs64,
1139 if debugging a 32-bit architecture.
1140 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1141 out of the register cache, instead of passing a pointer into
1142 the register cache directly to ptrace. Use regcache_collect
1143 insteaad of read_register.
1144 (ops_prepare_to_store): Use target_read_registers instead
1145 of read_register_bytes.
1146
36479eb1
AS
11472002-07-20 Aidan Skinner <aidan@velvet.net>
1148
1149 * MAINTAINERS: Add self under write after approval.
1150
80ae6ee2
AS
11512002-07-20 Aidan Skinner <aidan@velvet.net>
1152
1153 * ada-tasks.c: Change k&r style function definitions to prototyped
1154 form.
1155
8a8ab2b9
AC
11562002-07-19 Andrew Cagney <ac131313@redhat.com>
1157
1158 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1159 * x86-64-tdep.c: Include "objfiles.h".
1160 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1161 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1162
fb16b900
ML
11632002-07-17 Michal Ludvig <michal@suse.cz>
1164
1165 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1166 (update_context): Initialise cfa variable.
1167
0fe7bf7b
MS
11682002-07-17 Michael Snyder <msnyder@redhat.com>
1169
1170 * aix-thread.c: Shorten some long lines.
1171 Bring comments into line with code spec.
1172
488f131b
JB
11732002-07-18 Joel Brobecker <brobecker@gnat.com>
1174
1175 * infrun.c: Re-indent using gdb_indent.sh.
1176
46c415d2
JB
11772002-07-18 Joel Brobecker <brobecker@gnat.com>
1178
1179 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1180 Leave the indentation temporarily untouched, to minimize the diffs.
1181
cdecafbe
EZ
11822002-07-18 Elena Zannoni <ezannoni@redhat.com>
1183
1184 * stabsread.c: Make os9k sections of the code obsolete,
1185 for real this time.
1186 * stabsread.h: Make os9k sections of the code obsolete.
1187
7b6aa020
ML
11882002-07-18 Michal Ludvig <mludvig@suse.cz>
1189
09ec9b38
ML
1190 * linux-low.c (regsets_store_inferior_registers): Add free()
1191 at the end of a loop to prevent memory leak.
1192 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1193 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1194 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1195 line a comment.
4894ac5d 1196 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1197
233282cd
JB
11982002-07-17 Jim Blandy <jimb@redhat.com>
1199
1200 * macrocmd.c (info_macro_command): Remove newline from error
1201 message.
1202
7b6aa020 12032002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1204
1205 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1206 (sh_gdbarch_init): Use it for sh-dsp.
1207
f7ef9339
KB
12082002-07-16 Kevin Buettner <kevinb@redhat.com>
1209
1210 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1211 64-bit DWARF2 format.
1212
8dd72958
JB
12132002-07-16 Joel Brobecker <brobecker@gnat.com>
1214
1215 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1216 <sys/proc.h> when not available.
1217
a99a9e1b
AC
12182002-07-16 Andrew Cagney <ac131313@redhat.com>
1219
1220 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1221 * stabsread.c: Make os9k sections of the code obsolete.
1222 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1223 * config/i386/i386os9k.mt: Make file obsolete.
1224 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1225 (COMMON_OBS): Remove os9kread.o
1226 (SFILES): Remove os9kread.c.
1227 (os9kread.o, remote-os9k.o): Make target obsolete.
1228 * remote-os9k.c: Make file obsolete.
1229 * os9kread.c: Make file obsolete.
1230 * Makefile.in
1231
7a3085c1
AC
12322002-07-16 Andrew Cagney <ac131313@redhat.com>
1233
1234 * NEWS: Mention that the FR30 has been made obsolete.
1235 * fr30-tdep.c: Make file obsolete.
1236 * config/fr30/tm-fr30.h: Ditto.
1237 * config/fr30/fr30.mt: Ditto.
1238 * configure.tgt: Make fr30-*-elf obsolete.
1239 * MAINTAINERS: Make fr30-elf obsolete.
1240
28a93f5a
PM
12412002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1242
1243 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1244 found is not inside a section.
1245
be006b8b
KB
12462002-07-15 Kevin Buettner <kevinb@redhat.com>
1247
1248 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1249 strerror().
1250 (pdc_realloc): Use xrealloc() instead of realloc().
1251
14fa3751
KB
12522002-07-15 Kevin Buettner <kevinb@redhat.com>
1253
1254 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1255 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1256 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1257 macros.
1258
42cc437f
KB
12592002-07-15 Kevin Buettner <kevinb@redhat.com>
1260
1261 * aix-thread.c (ptrace_check): Eliminate goto.
1262 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1263 problem.
1264
8e2c28d4
KB
12652002-07-15 Kevin Buettner <kevinb@redhat.com>
1266
1267 * aix-thread.c (gdbcmd.h): Include.
1268 (DEBUG, DBG, DBG2, dbg): Eliminate.
1269 (debug_aix_thread): New static global.
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 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1273 invocations to DBG and DBG2 macros to test against
1274 ``debug_aix_thread'' and call fprintf_unfiltered().
1275 (_initialize_aix_thread): Add new command "set debug aix-thread".
1276
30413464
AC
12772002-07-15 Andrew Cagney <ac131313@redhat.com>
1278
1279 From Gerhard Tonn <TON@de.ibm.com>:
1280 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1281 instead of supply_register.
1282
7c43edc1
AC
12832002-07-15 Andrew Cagney <ac131313@redhat.com>
1284
1285 * dwarf2cfi.c: Include "gdb_assert.h".
1286 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1287 non-NULL.
1288 (update_context): Do not use __func__. Add missing ``break''.
1289 (update_context): Do not use __func__.
1290
9364a0ef
EZ
12912002-07-15 Elena Zannoni <ezannoni@redhat.com>
1292
1293 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1294 and its setting. Set gdbarch instruction printing functions
1295 directly. For non-rs6000 case use new function
1296 gdb_print_insn_powerpc.
1297 (gdb_print_insn_powerpc): New function.
1298
3fbeef0b
AC
12992002-07-13 Andrew Cagney <ac131313@redhat.com>
1300
92eb23c5 1301 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1302 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1303 * configure.tgt: Mark d30v-*-* as obsolete.
1304 * d30v-tdep.c: Mark file as obsolete.
1305 * config/d30v/d30v.mt: Ditto.
1306 * config/d30v/tm-d30v.h: Ditto.
1307
aacb1f0a
AS
13082002-07-13 Aidan Skinner <aidan@velvet.net>
1309
1310 * ada-tasks.c (add_task_entry): replace calls to
1311 malloc() with xmalloc
1312 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1313
1314 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1315 ada_finish_decode_line_1, all_sals_for_line
1316 ada_breakpoint_rewrite): replace calls to free() with xfree()
1317
c11d79f2
KB
13182002-07-12 Kevin Buettner <kevinb@redhat.com>
1319
1320 From Nicholas Duffek (with minor changes by Martin Hunt,
1321 Louis Hamilton, and Kevin Buettner):
1322 * aix-thread.c: New file.
1323
8e19ed76
PS
13242002-07-12 Petr Sorfa <petrs@caldera.com>
1325
1326 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1327 complaint for invalid attribute class or form.
1328 (read_func_scope): DW_AT_frame_base
1329 better handling of DW_AT_block*.
1330 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1331 better handling of DW_AT_block*.
1332 (read_common_block): DW_AT_location
1333 better handling of DW_AT_block*.
1334 (read_partial_die): DW_AT_location better handling
1335 of DW_AT_block*.
1336 (new_symbol): DW_AT_external better handling of
1337 DW_AT_block*. Proper initialization of variable
1338 "addr".
1339 (attr_form_is_block): New function that returns true
1340 if the attribute's form is of DW_FORM_block*.
1341
295401f7
DJ
13422002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1343
1344 * valops.c (find_method_list): Remove comment about
1345 removed STATIC_MEMFUNCP argument.
1346 (value_find_oload_method_list): Likewise.
1347
e42dc924
KB
13482002-07-12 Kevin Buettner <kevinb@redhat.com>
1349
1350 From Nicholas Duffek:
1351 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1352 target_new_objfile_hook.
1353
6904b546
KB
13542002-07-12 Kevin Buettner <kevinb@redhat.com>
1355
1356 From Nicholas Duffek:
1357 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1358 csect.
1359
53fe9346
AC
13602002-07-12 Andrew Cagney <cagney@redhat.com>
1361
1362 * MAINTAINERS: Mention --enable-sim-build-warnings.
1363 (m68hc11-elf): Disable sim build warnings.
1364 (m32r-elf): Mark as broken obsolete candidate.
1365 (x86_64-linux-gnu): Mark as buildable with -Werror.
1366 (arm-elf): Change -w to ``,'' which enables warnings but not
1367 -Werror.
1368
af5f3db6
AC
13692002-07-12 Andrew Cagney <ac131313@redhat.com>
1370
1371 * bcache.h: Update copyright.
1372 (struct bstring, struct bcache): Move definition to "bcache.c".
1373 Replaced by opaque declaration.
1374 (bcache_xfree): Replace free_bcache.
1375 (bcache_xmalloc, bcache_memory_used): Declare.
1376
1377 * bcache.c: Update copyright.
1378 (struct bstring, struct bcache): Moved to here from "bcache.h".
1379 Update comments.
1380 (bcache_xmalloc, bcache_memory_used): New functions.
1381 (bcache_xfree): Replace function free_bcache.
1382
1383 * Makefile.in (objfiles.o): Add $(bcache_h).
1384 (objfiles_h): Remove $(bcache_h).
1385 (symfile.o): Add $(bcache_h).
1386
1387 * symmisc.c: Update copyright.
1388 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1389 (print_objfile_statistics): Use bcache_memory_used.
1390
1391 * symfile.c: Include "bcache.h".
1392 (reread_symbols): Use bcache_xfree.
1393 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1394 (add_psymbol_to_list): Pass psymbol_cache by value.
1395 (add_psymbol_with_dem_name_to_list): Ditto.
1396
1397 * objfiles.h: Update copyright.
1398 (struct bcache): Declare opaque. Do not include "bcache.h".
1399 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1400 bcache'' pointers.
1401 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1402
1403 * objfiles.c: Include "bcache.h". Update copyright.
1404 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1405 macro_cache.
1406 (free_objfile): Use bcache_xfree.
1407
444199e7
GS
14082002-07-11 Grace Sainsbury <graces@redhat.com>
1409
1410 * monitor.c (monitor_fetch_register): Make name a constant.
1411 (monitor_store_register): Same.
1412
261397f8
DJ
14132002-07-11 Daniel Jacobowitz <drow@mvista.com>
1414
1415 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1416 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1417 (finish_block) For non-function blocks, hash the symbol table. For
1418 function blocks, mark the symbol table as unhashed.
1419 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1420 (msymbol_hash_iw): Likewise.
1421 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1422 value.
1423 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1424 (lookup_minimal_symbol): Likewise for both.
1425 * symtab.h (struct block): Add `hashtable' flag. Comment the
1426 hashtable.
1427 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1428 (ALL_BLOCK_SYMBOLS): Update.
1429 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1430 (struct symbol): Add `hash_next' pointer.
1431 * symtab.c (lookup_block_symbol): Search using the hash table when
1432 possible.
1433 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1434 (search_symbols, find_addr_symbol): Likewise.
1435
1436 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1437 (read_dst_symtab): Likewise.
1438 * jv-lang.c (get_java_class_symtab): Likewise.
1439 * mdebugread.c: Include "gdb_assert.h".
1440 (shrink_block): Assert that the block being modified is not hashed.
1441 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1442 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1443 symbols.
1444 (dump_symtab): Recognize hashed blocks.
1445 * printcmd.c (print_frame_args): Assert that function blocks do not
1446 have hashed symbol tables.
1447 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1448 (fill_in_ada_prototype, debug_print_block): Likewise.
1449 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1450
6f0eaa01
CV
14512002-07-11 Corinna Vinschen <vinschen@redhat.com>
1452
1453 * stack.c (print_frame): Use result of frame_address_in_block()
1454 instead of fi->pc when evaluating symbols.
1455 (backtrace_command_1): Ditto.
1456
a208b0cb
AC
14572002-07-11 Andrew Cagney <cagney@redhat.com>
1458
1459 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1460 Make static.
1461
1462 * arm-tdep.c (arm_register_name): Make return type constant.
1463
a6b6b089
AC
14642002-07-10 Andrew Cagney <ac131313@redhat.com>
1465
5ae5f592
AC
1466 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1467 prototype.
1468 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1469 * s390-tdep.c (s390_fp_regnum): Ditto.
1470 (s390_read_fp): Ditto.
1471 (s390_pop_frame): Ditto.
1472 (_initialize_s390_tdep): Ditto.
1473 * remote.c (get_remote_state): Ditto.
1474 * procfs.c (mappingflags): Ditto.
1475 * memattr.c (_initialize_mem): Ditto.
1476 * mcore-tdep.c (mcore_pop_frame): Ditto.
1477 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1478 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1479 * language.c (set_case_str): Ditto.
1480 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1481 * frv-tdep.c (new_variant): Ditto.
1482 (frv_stopped_data_address): Ditto.
1483 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1484 (context_alloc): Ditto.
1485 (frame_state_alloc): Ditto.
1486 (unwind_tmp_obstack_init): Ditto.
1487 (unwind_tmp_obstack_free): Ditto.
1488 (cfi_read_fp): Ditto.
1489 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1490 (cris_pop_frame): Ditto.
1491 * c-lang.c (scanning_macro_expansion): Ditto.
1492 (finished_macro_expansion): Ditto.
1493 (c_preprocess_and_parse): Ditto.
1494 * gdbarch.sh: Ditto.
1495 * gdbarch.h, gdbarch.c: Regenerate.
1496 * config/mn10200/tm-mn10200.h: Adjust indentation.
1497 * target.c: Adjust indentation.
1498 * symtab.h: Adjust indentation.
1499 * stabsread.h: Adjust indentation.
1500 * remote-es.c: Adjust indentation.
1501 * os9kread.c: Adjust indentation.
1502
15032002-07-10 Andrew Cagney <ac131313@redhat.com>
1504
a6b6b089
AC
1505 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1506 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1507
a1789893
GS
15082002-07-10 Grace Sainsbury <graces@redhat.com>
1509
1510 * NEWS: Mention m68k, mcore multi-arching.
1511 * MAINTAINERS: Change status of m68k, mcore to reflect
1512 multi-arching.
1513
02f0d45d
DJ
15142002-07-10 Daniel Jacobowitz <drow@mvista.com>
1515
1516 * valops.c (find_overload_match): Free oload_syms.
1517
f15f768e
JB
15182002-07-09 Joel Brobecker <brobecker@gnat.com>
1519
1520 Define HAVE_SYS_PROC_H if sys/proc.h exists
1521 * configure.in: Add check for sys/proc.h
1522 * config.in: Regenerate.
1523 * configure: Regenerate.
1524
902a7139
GS
15252002-07-09 Grace Sainsbury <graces@redhat.com>
1526
1527 * config/m68k/tm-m68k.h: Remove macros wrapped in
1528 #if !GDB_MULTI_ARCH.
1529
82e0fd98
DB
15302002-07-09 David O'Brien <obrien@FreeBSD.org>
1531
1532 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1533 (perror_with_name, remote_close, remote_open, expect, play): Static.
1534
a534e424
AC
15352002-07-08 Andrew Cagney <ac131313@redhat.com>
1536
1537 * config.in, configure: Regenerate.
1538
9b94f7bf
MK
15392002-07-08 Mark Kettenis <kettenis@gnu.org>
1540
1541 * dwarf2cfi.c: Include "gcore.h".
1542 (execute_stack_op): Fix implementation of the
1543 DW_OP_deref and DW_OP_deref_size operators by letting do their
1544 lookup in the target.
1545
1d34db41
MK
15462002-07-07 Mark Kettenis <kettenis@gnu.org>
1547
1548 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1549 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1550 tdep->sc_sp_offset.
1551
79d5b63a
DJ
15522002-07-05 Daniel Jacobowitz <drow@mvista.com>
1553
1554 Fix PR gdb/595, gdb/602
1555 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1556 Don't call value_cast, just read the vtable pointer; update comments
1557 to match.
1558
3bb912e8
GS
15592002-07-05 Grace Sainsbury <graces@redhat.com>
1560
1561 * config/mcore/tm-mcore.h: Remove file.
1562 * config/mcore/mcore.mt: Remove definition of TM_FILE
1563 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1564
ca39387d
MK
15652002-07-05 Mark Kettenis <kettenis@gnu.org>
1566
1567 * i386bsd-tdep.c: Include "gdb_string.h".
1568
efdc1108
GS
15692002-07-04 Grace Sainsbury <graces@redhat.com>
1570
1571 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1572 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1573 mcore-tdep.
1574 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1575 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1576 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1577 (RETVAL_REGNUM): Move macros from tm-mcore.h
1578 (mcore_reg_struct_has_addr): New function.
1579 (mcore_gdbarch_init): Added initializations for the macros removed
1580 from tm-mcore.h.
1581
bb21884d
MK
15822002-07-04 Mark Kettenis <kettenis@gnu.org>
1583
1584 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1585 traditonal string branding within the ELF header.
1586
228c6d41
DJ
15872002-07-04 Daniel Jacobowitz <drow@mvista.com>
1588
1589 * symtab.c (remove_params): New function.
1590 (make_symbol_overload_list): Use it instead of cplus_demangle.
1591 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1592
2404952e
MK
15932002-07-04 Mark Kettenis <kettenis@gnu.org>
1594
e5e4acad
MK
1595 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1596
baadce09
MK
1597 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1598 New variables.
1599 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1600 and tdep->sigtramp_end.
1601 * i386obsd-nat.c: New file.
1602 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1603
2404952e
MK
1604 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1605 Don't call get_current_frame().
1606
9b4f1ba7
PM
16072002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1608
1609 * i386-nat.c (child_post_startup_inferior): New function
1610 calling i386_cleanup_dregs if
1611 I386_USE_GENERIC_WATCHPOINTS is defined.
1612 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1613 conditional to acknowledge that i386-nat.c has its
1614 own child_post_startup_inferior function.
1615
c0d1d883
MK
16162002-07-04 Mark Kettenis <kettenis@gnu.org>
1617
00f8375e
MK
1618 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1619 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1620 instead of MAX_REGISTER_RAW_SIZE.
1621 (i386_extract_return_value, i386_extract_struct_value_address):
1622 Convert to use regcache.
1623 (i386_gdbarch_init): Set max_register_raw_size and
1624 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1625 Set extract_return_value and extract_struct_value_address instead
1626 of their deprecated variants.
1627
c0d1d883
MK
1628 Convert i386 target to generic dummy frames.
1629 * i386-tdep.c: Include "symfile.h".
1630 (i386_frameless_signal_p): Consider a function to be frameless if
1631 the pc points at the first instruction of the function.
1632 (i386_frame_chain): Handle (generic) call dummies.
1633 (i386_frame_saved_pc): Likewise.
1634 (i386_frame_init_saved_regs): Remove code dealing with call
1635 dummies on the stack.
1636 (i386_push_dummy_frame): Removed.
1637 (i386_call_dummy_words): Removed.
1638 (i386_fix_call_dummy): Removed.
1639 (i386_push_return_address): New function.
1640 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1641 parameter, and don't call get_current_frame.
1642 (i386_pop_frame): New function.
1643 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1644 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1645 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1646 call_dummy_length to 0, set call_dummy_words to NULL, set
1647 sizeof_call_dummy_words to 0, set fix_call_dummy to
1648 generic_fix_call_dummy, set pc_in_call_dummy to
1649 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1650 generic_push_dummy_frame, set push_return_address to
1651 i386_push_return_address and set frame_chain_valid to
1652 generic_file_frame_chain_valid.
1653
638c1580
ML
16542002-07-04 Michal Ludvig <mludvig@suse.cz>
1655
1656 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1657 byte offsets instead of an array of indexes.
1658 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1659
049ee0e4
AC
16602002-07-03 Andrew Cagney <ac131313@redhat.com>
1661
1662 * gdbarch.sh (struct regcache): Add opaque declaration.
1663 (EXTRACT_RETURN_VALUE): New architecture method.
1664 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1665 * gdbarch.h, gdbarch.c: Regenerate.
1666 * arch-utils.c (legacy_extract_return_value): New function.
1667 * arch-utils.h (legacy_extract_return_value): Declare.
1668 * values.c (value_being_returned): Re-enable code handling
1669 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1670 deprecated_grub_regcache_for_registers call to block handling
1671 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1672 (EXTRACT_RETURN_VALUE): Do not define.
1673
4e0d9804
GS
16742002-07-03 Grace Sainsbury <graces@redhat.com>
1675
1676 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1677 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1678 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1679 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1680 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1681 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1682 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1683 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1684 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1685 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1686 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1687 argument so the function fits the prototype in the architecture
1688 vector.
1689 (mcore_pop_frame): Remove argument so the function fits the
1690 prototype. Use get_current_frame instead of the argument.
1691 (mcore_push_arguments): Change type of struct_return so the
1692 function can be used in the architecture vector.
1693 (mcore_store_struct_return): Add.
1694 (mcore_frame_init_saved_regs): Add.
1695 (mcore_gdbarch_init): Add function calls to replace the macros
1696 removed from tm-mcore.h
1697
36160dc4
AC
16982002-07-03 Andrew Cagney <ac131313@redhat.com>
1699
1700 * infcmd.c (print_return_value): Remove compatibility code calling
1701 deprecated_grub_regcache_for_registers.
1702
1703 * values.c: Include "regcache.h".
1704 (value_being_returned): Update. Use
1705 deprecated_grub_regcache_for_registers to extract the register
1706 buffer address.
1707 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1708 ``struct regcache''.
1709 * Makefile.in (values.o): Add dependency on $(regcache_h).
1710
1711 * inferior.h (run_stack_dummy): Change type of second parameter to
1712 a ``struct regcache''.
1713 * valops.c (hand_function_call): Change type of retbuf to ``struct
1714 regcache''. Allocate using regcache_xmalloc, clean using
1715 make_cleanup_regcache_xfree.
1716 * infcmd.c (run_stack_dummy): Update. Use
1717 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1718
1719 * regcache.c (do_regcache_xfree): New function.
1720 (make_cleanup_regcache_xfree): New function.
1721 * regcache.h (make_cleanup_regcache_xfree): Declare.
1722
e64d9b3d
MH
17232002-07-03 Martin M. Hunt <hunt@redhat.com>
1724
4dd79c29
MH
1725 * event-top.c (command_line_handler): Don't read past
1726 beginning of buffer.
e64d9b3d 1727
4dd79c29
MH
17282002-07-03 Martin M. Hunt <hunt@redhat.com>
1729
e64d9b3d
MH
1730 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1731 struct frame_id.
1732 (varobj_create): Store frame_id for root.
1733 (varobj_gen_name): Use xasprintf.
1734 (varobj_update): Save and restore frame using get_frame_id() and
1735 frame_find_by_id().
1736 (create_child): Use xasprintf.
1737 (new_root_variable): Initialize frame_id.
1738 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1739 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1740 to prevent memory leak.
1741
26e6c56a
AC
17422002-07-03 Andrew Cagney <ac131313@redhat.com>
1743
1744 * valops.c (hand_function_call): Move declaration of retbuf to
1745 start of function, allocate using malloc, add a cleanup but before
1746 the inf_status cleanup, cleanup the buffer. Rename local variable
1747 old_chain to inf_status_cleanup.
1748
f436dd25
MH
17492002-07-03 Martin M. Hunt <hunt@redhat.com>
1750
1751 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1752
1753 * cli/cli-decode.c (cmd_func_p): New function.
1754 (cmd_func): New function.
1755
1756 * command.h: Add cmd_func() and cmd_func_p().
1757
4cfe2084
GS
17582002-07-03 Grace Sainsbury <graces@redhat.com>
1759
1760 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1761 (REGISTER_SIZE): Remove.
1762 (MAX_REGISTER_RAW_SIZE): Remove.
1763 (REGISTER_VIRTUAL_TYPE): Remove.
1764 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1765 (REGISTER_NAME): Remove.
1766 (USE_GENERIC_DUMMY_FRAMES): Remove.
1767 (CALL_DUMMY): Remove.
1768 (CALL_DUMMY_START_OFFSET): Remove.
1769 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1770 (CALL_DUMMY_LOCATION): Remove.
1771 (FIX_CALL_DUMMY): Remove.
1772 (CALL_DUMMY_ADDRESS): Remove.
1773 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1774 (SAVE_DUMMY_FRAME_TOS): Remove.
1775 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1776 (mcore_register_virtual_type): New function.
1777 (mcore_register_byte): New function.
1778 (mcore_register_size): New function.
1779 (mcore_register_name): New function.
1780 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1781 macros removed from tm-mcore.h.
1782 (mcore_dump_tdep): Add.
1783 (_initialize_mcore_tdep): Add gdbarch_register call.
1784
4fd667e9
MK
17852002-07-03 Mark Kettenis <kettenis@gnu.org>
1786
1787 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1788 frameless_look_for_prologue, such that we actually call this
1789 function.
1790
42f99ac2
JB
17912002-07-02 Joel Brobecker <brobecker@gnat.com>
1792
1793 * frame.h (frame_address_in_block): New function.
1794
1795 * blockframe.c (frame_address_in_block): New function extracted
1796 from get_frame_block().
1797 (get_frame_block): Use frame_address_in_block().
1798 (block_innermost_frame): Use frame_address_in_block() to match
1799 the frame pc address against the block boundaries rather than
1800 the frame pc directly. This prevents a failure when a frame pc
1801 is actually a return-address pointing immediately after the end
1802 of the given block.
1803
103a1597 18042002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
1805
1806 * MAINTAINERS: Add self under write after approval.
1807
18082002-07-02 Grace Sainsbury <graces@redhat.com>
1809
103a1597
GS
1810 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1811 used in architecture vector. The default is
1812 m68k_local_breakpoint_from_pc.
1813 (m68k_local_breakpoint_from_pc): Add.
1814 (enum): Add register numbers from tm-m68k.h.
1815 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1816 vector.
1817 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1818 GDB_MULTI_ARCH_PARTIAL.
1819 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1820 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1821 m68k-tdep.c.
1822 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1823 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1824 to enum in m68k-tdep.c
1825
7a5a0534
JB
18262002-07-02 Joel Brobecker <brobecker@gnat.com>
1827
1828 * solib-osf.c (open_map): Compute the list of shared libraries
1829 loaded by the inferior, rather than the list of libraries loaded
1830 by GDB itself. Otherwise, GDB ends up reading the symbols from
1831 the wrong shared libraries...
1832
6f558d74
MK
18332002-07-02 Mark Kettenis <kettenis@gnu.org>
1834
b7d15bf7
MK
1835 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1836 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1837 macros.
1838 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1839 Remove functions.
1840 (FRAMELESS_SIGNAL): Remove function.
1841 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1842 i386_linux_saved_pc_after_call): Removed.
1843 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1844 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1845 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1846
6bff26de
MK
1847 * i386-tdep.c (i386_frameless_signal_p): New function.
1848 (i386_frame_chain): Deal with frameless signals.
1849 (i386_sigtramp_saved_sp): New function.
1850 (i386_frame_saved_pc): Deal with frameless signals.
1851 (i386_saved_pc_after_call): Make sure the correct value is
1852 returned just after entry into a sigtramp.
1853 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1854 i386fbsd4_sc_sp_offset): New variables.
1855 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1856 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1857 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1858 similiar to what we already did for sc_pc_offset.
1859 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1860 tdep->sc_sp_offset.
1861
6f558d74
MK
1862 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1863
145564b7
ML
18642002-07-02 Michal Ludvig <mludvig@suse.cz>
1865
1866 * config/i386/tm-x86-64linux.h: New.
1867 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1868 definitions.
1869 * config/i386/nm-x86-64.h: Rename to ...
1870 * config/i386/nm-x86-64linux.h: ... this one.
1871 * config/i386/x86-64linux.mh: Reflect the above change.
1872
3a1e71e3
MK
18732002-07-01 Mark Kettenis <kettenis@gnu.org>
1874
21d0e8a4
MK
1875 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1876 with sigcontext_addr. Add sc_sp_offset.
1877 (i386bsd_sigtramp_saved_pc): Remove prototype.
1878 (i386bsd_sicontext_addr): Add prototype.
1879 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1880 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1881 (i386_svr4_sigtramp_saved_pc): Removed.
1882 (i386_svr4_sigcontext_addr): New function.
1883 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1884 Initialize tdep->sigcontext_addr instead. Initialize
1885 tdep->sc_pc_offset and tdep->sc_sp_offset.
1886 (i386_gdbarch_init): Likewise.
1887 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1888 any more.
1889 (i386bsd_sigtramp_saved_pc): Remove function.
1890 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1891 Initialize tdep->sigcontext_addr instead. Initialize
1892 tdep->sc_pc_offset.
1893 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1894 of tdep->sigtramp_saved_pc.
1895 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1896 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1897 instead.
1898
3a1e71e3
MK
1899 * i386-tdep.c (i386_frameless_function_invocation,
1900 i386_frame_num_args, i386_frame_init_saved_regs,
1901 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1902 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1903 i386_extract_return_value, i386_store_return_value,
1904 i386_extract_struct_value_address, i386_register_virtual_type,
1905 i386_register_convertible, i386_register_convert_to_virtual,
1906 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1907 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1908 static.
1909
52e9098c
MK
19102002-07-01 Mark Kettenis <kettenis@gnu.org>
1911
77b13a25
MK
1912 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1913
52e9098c
MK
1914 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1915 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1916 this macro. Include "value.h".
1917
1b372fff
AS
19182002-06-30 Aidan Skinner <aidan@velvet.net>
1919
1920 * ada-exp.tab.c: remove as it's a generated file
1921 * ada-lex.c: remove as it's a generated file
1922
9c5045b5
MK
19232002-06-30 Mark Kettenis <kettenis@gnu.org>
1924
4a93c5bb
MK
1925 * config/i386/tm-i386.h (struct frame_info, struct
1926 frame_saved_regs, struct value, struct type): Remove forward
1927 declarations.
1928
322d4fe0
MK
1929 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1930 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1931 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1932 (FILL_FPXREGSET): Define.
1933
fdd8263d
MK
1934 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1935
482e577b
MK
1936 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1937 i[3456]86-*-netbsd* case.
1938 * config/i386/tm-obsd.h: Removed.
1939 * config/i386/obsd.mt: Removed.
1940 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1941 core-aout.o.
1942 (MH_CFLAGS): Add -DYYDEBUG=0.
1943
6916549a
MK
1944 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1945 i386nbsd_sc_pc_offset on OpenBSD too.
1946
9c5045b5
MK
1947 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1948 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1949 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1950 define.
1951 * i386bsd-tdep.c: Include "arch-utils.h".
1952 (i386bsd_aout_in_solib_call_trampoline): New function.
1953 (i386bsd_init_abi): Set in_solib_call_trampoline to
1954 i386bsd_aout_in_solib_call_trampoline.
1955 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1956 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1957
aa84d1bb
AC
19582002-06-28 Andrew Cagney <ac131313@redhat.com>
1959
1960 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1961 (struct obstack, struct bcache): Add opaque declarations.
1962 * Makefile.in (macrotab_h): Update
1963
b4d83933
AC
19642002-06-28 Andrew Cagney <ac131313@redhat.com>
1965
1966 * blockframe.c (generic_find_dummy_frame): Change return type to
1967 ``struct regcache''.
1968 (struct dummy_frame): Replace field ``registers'' with regcache, a
1969 struct regcache object.
1970 (generic_find_dummy_frame): Update.
1971 (generic_push_dummy_frame): Update. Use regcache_xfree,
1972 regcache_xmalloc and regcache_cpy.
1973 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1974 regcache_xfree.
1975 (deprecated_generic_find_dummy_frame): Update.
1976 (generic_read_register_dummy): Update. Use
1977 regcache_read_as_address.
1978 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1979 (generic_get_saved_register): Update. Use regcache_read.
1980
08c0b5bc
AC
19812002-06-28 Andrew Cagney <ac131313@redhat.com>
1982
1983 * Makefile.in (objfiles_h): Add $(bcache_h).
1984 * objfiles.h: Include "bcache.h".
1985
1986 * Makefile.in (symtab_h): Remove $(bcache_h).
1987 * symtab.h: Do not include "bcache.h".
1988
1f89801a
AC
19892002-06-28 Andrew Cagney <ac131313@redhat.com>
1990
1991 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1992 generic_func_frame_chain_valid.
1993
b9644b58
DB
19942002-06-28 David O'Brien <obrien@FreeBSD.org>
1995
1996 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1997 * config/i386/tm-fbsd.h: Likewise.
1998
dd486634
AC
19992002-06-28 Andrew Cagney <ac131313@redhat.com>
2000
2001 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2002 generic_unwind_get_saved_register.
2003
0b434a00
AC
20042002-06-27 Andrew Cagney <ac131313@redhat.com>
2005
2006 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2007 * regcache.c (supply_register): Add missing argument to
2008 register_buffer call.
2009
f30e5a77
AC
20102002-06-27 Andrew Cagney <ac131313@redhat.com>
2011
2012 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2013 Solaris /bin/grep does not not like it. From Peter Schauer.
2014
9f064c95
TT
20152002-06-26 Tom Tromey <tromey@redhat.com>
2016
2017 * command.h (add_setshow_cmd): Declare.
2018 (add_setshow_cmd_full): Declare.
2019 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2020 returns void. Use add_setshow_cmd_full.
2021 (add_setshow_cmd_full): New function.
2022 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2023 (add_setshow_boolean_cmd): Likewise.
2024
099c7589
JT
20252002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2026
2027 * config/vax/tm-vax.h: Protect from multiple inclusion.
2028 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2029 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2030 * config/vax/tm-vaxbsd.h: ...here. New file.
2031 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2032
1d049c5e
JT
20332002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2034
2035 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2036 (BELIEVE_PCC_PROMOTION): Remove.
2037 (AP_REGNUM): Move to...
2038 * config/vax/nm-vax.h: ...here.
2039 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2040 (vax_breakpoint_from_pc): New function.
2041 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2042 and gdbarch_believe_pcc_promotion.
2043
4791e091
JT
20442002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2045
2046 * Makefile.in (vax_tdep_h): Define.
2047 (vax-tdep.o): Use $(vax_tdep_h).
2048 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2049 (vax_dump_tdep): New function.
2050 (_initialize_vax_tdep): Register vax_dump_tdep.
2051 * vax-tdep.h: Include osabi.h.
2052 (struct gdbarch_tdep): New.
2053
da130f98
AC
20542002-06-26 Andrew Cagney <cagney@redhat.com>
2055
2056 * frame.h (deprecated_generic_find_dummy_frame): Rename
2057 generic_find_dummy_frame.
2058 * blockframe.c (generic_find_dummy_frame): Make static.
2059 (deprecated_generic_find_dummy_frame): New function.
2060 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2061 generic_find_dummy_frame with deprecated_find_dummy_frame.
2062 (sh64_nofp_frame_init_saved_regs): Ditto.
2063 (sh_fp_frame_init_saved_regs): Ditto.
2064 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2065 (s390_frame_chain): Ditto.
2066 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2067
6300c360
GS
20682002-06-26 Grace Sainsbury <graces@redhat.com>
2069
2070 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2071 gdbarch vector are at the top.
2072 (NUM_REGS): Remove.
2073 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2074 (FRAME_ARGS_ADDRESS): Remove.
2075 (FRAME_LOCALS_ADDRESS): Remove.
2076 (FRAME_NUM_ARGS): Remove.
2077 (FRAME_ARGS_SKIP): Remove.
2078 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2079 (m68k_gdbarch_init): Add gdbarch initializations for macros
2080 undefined in tm-m68k.h
2081
1c617db8
GS
20822002-06-26 Grace Sainsbury <graces@redhat.com>
2083
2084 * monitor.h: Add the function regname to monitor_ops
2085 structure. This way NUM_REGS does not have to be a constant.
2086 * monitor.c (monitor_fetch_register): Added support for regname
2087 function. The function is called if the array regnames is NULL.
2088 (monitor_store_register): Same.
da130f98
AC
2089 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2090 regnames array.
1c617db8
GS
2091 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2092 cpu32bug_cmds.regname to point to new function.
2093 * abug-rom.c (abug_regname): Same as above.
2094 (init_abug_cmds): Same.
2095 * dbug-rom.c (dbug_regname): Same as above.
2096 (init_dbug_cmds): Same.
2097 * remote-est.c (est_regname): Same.
2098 (init_est_cmds): Same.
2099 * rom68k-rom.c (rom68k_regname): Same.
2100 (init_rom68k_cmds): Same.
2101
ea9365bb
TT
21022002-06-25 Tom Tromey <tromey@redhat.com>
2103
2104 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2105
72cec141
AC
21062002-06-25 Andrew Cagney <cagney@redhat.com>
2107
2108 * infrun.c (stop_registers): Change variable's type to ``struct
2109 regcache'''.
2110 (xmalloc_inferior_status): Delete function.
2111 (free_inferior_status): Delete function.
2112 (normal_stop): Use regcache_cpy.
2113 (struct inferior_status): Change type of fields ``stop_registers''
2114 and ``registers'' to ``struct regcache''.
2115 (write_inferior_status_register): Use regcache_write.
2116 (save_inferior_status): Instead of calling
2117 xmalloc_inferior_status, allocate the inf_status buffer directly.
2118 Use regcache_dup_no_passthrough and regcache_dup to save the
2119 buffers.
2120 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2121 Replace the stop_registers regcache instead of overriding it. Use
2122 regcache_xfree. Instead of calling free_inferior_status, xfree
2123 the buffer directly.
2124 (discard_inferior_status): Use regcache_xfree. Instead of calling
2125 free_inferior_status, xfree the buffer directly.
2126 (build_infrun): Use regcache_xmalloc.
2127 (_initialize_infrun): Delete redundant call to build_infrun.
2128
2129 * Makefile.in (infcmd.o): Add $(regcache_h).
2130
2131 * infcmd.c: Include "regcache.h".
2132 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2133 obtain the address of `stop_registers' register buffer.
2134 (print_return_value): Ditto.
2135
2136 * inferior.h (struct regcache): Add opaque declaration.
2137 (stop_registers): Change variable's declared type to ``struct
2138 regcache''.
2139
defc6f8c
TT
21402002-06-24 Tom Tromey <tromey@redhat.com>
2141
c0e624e7
TT
2142 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2143 * target.c (initialize_targets): Fixed typo in
2144 trust-readonly-sections `show' documentation.
2145
defc6f8c
TT
2146 * main.c: Marked all strings with _().
2147
2b236d82
DH
21482002-06-24 Don Howard <dhoward@redhat.com>
2149
2150 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2151 that means max CORE_ADDR+1.
2152 (lookup_mem_region): Ditto.
2153 (mem_info_command): Ditto.
2154
942dc0e9
GS
21552002-06-24 Grace Sainsbury <graces@redhat.com>
2156
2157 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2158 (REGISTER_BYTES_OK): Remove.
2159 (REGISTER_BYTES): Remove.
2160 (STORE_STRUCT_RETURN): Remove.
2161 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2162 (STORE_RETURN_VALUE): Remove.
2163 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2164 (FRAME_CHAIN): Remove.
2165 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2166 (FRAME_SAVED_PC): Remove.
2167 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2168 (m68k_store_struct_return): Add.
2169 (m68k_deprecated_extract_return_value): Add.
2170 (m68k_deprecated_extract_struct_value_address): Add.
2171 (m68k_store_return_value): Add.
2172 (m68k_frame_chain): Add.
2173 (m68k_frameless_function_invocation): Add.
2174 (m68k_frame_saved_pc): Add.
2175 (m68k_gdbarch_init): added set_gdbarch calls for new
2176 functions and deleted macros.
2177
03c30d4d
TT
21782002-06-23 Tom Tromey <tromey@redhat.com>
2179
2180 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2181 (ALLDEPFILES): Likewise.
2182 (udiheaders): Removed.
2183 (udip2soc.o): Likewise.
2184 (udi2go32.o): Likewise.
2185 (udr.o): Likewise.
2186 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2187
37e71372
AC
21882002-06-22 Andrew Cagney <ac131313@redhat.com>
2189
06a6ac57
AC
2190 * infrun.c (_initialize_infrun): Delete unnecessary call to
2191 build_infrun.
2192
37e71372
AC
2193 * regcache.h: Update comments describing the regcache_cpy family
2194 of functions.
2195 (regcache_save, regcache_restore): Delete declaration.
2196 (regcache_save_no_passthrough): Delete declaration.
2197 (regcache_restore_no_passthrough): Delete declaration.
2198 * regcache.c (regcache_save): Delete function.
2199 (regcache_save_no_passthrough): Delete function.
2200 (regcache_restore): Delete function.
2201 (regcache_restore_no_passthrough): Delete function.
2202
78f6d055
AC
22032002-06-21 Andrew Cagney <ac131313@redhat.com>
2204
2205 * config/m68k/tm-m68k.h: Fix typo.
2206 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2207 (m68k_frame_init_saved_regs): Declare.
2208
78b119cb
JB
22092002-06-21 Jim Blandy <jimb@redhat.com>
2210
2211 Remove some vestiges of Harris 88k support.
2212 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2213 register numbering quirk.
2214 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2215 odd symbols occurring in Harris 88k ELF targets.
2216
0fbb3da7
TT
22172002-06-21 Tom Tromey <tromey@redhat.com>
2218
2219 * gdb_locale.h: New file.
2220 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2221 (defs_h): Added gdb_locale.h.
2222 * configure, config.in: Rebuilt.
2223 * configure.in (PACKAGE): Define.
2224 * defs.h: Include gdb_locale.h.
2225 * main.c (captured_main): Call setlocale, bindtextdomain,
2226 textdomain.
2227
456f8b9d
DB
22282002-06-21 Dave Brolley <brolley@redhat.com>
2229
2230 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2231 * config/frv/frv.mt: New file.
2232 * config/frv/tm-frv.h: New file.
2233 * configure.tgt: Support frv-*-*.
2234 * Makefile.in (frv-tdep.o): New target.
2235 * frv-tdep.c: New file.
2236 * NEWS: Mention frv.
2237
cdd463f9
DB
22382002-06-21 Dave Brolley <brolley@redhat.com>
2239
2240 * MAINTAINERS: Add self to "Write After Approval" list.
2241
5d3ed2e3
GS
22422002-06-21 Grace Sainsbury <graces@redhat.com>
2243
2244 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2245 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2246 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2247 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2248 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2249
2250 * m68k-tdep.c: Include arch-utils.h
2251 (m68k_register_raw_size): Add.
2252 (m68k_register_virtual_size): Add.
2253 (m68k_register_virtual_type): Add.
2254 (m68k_register_name): Add.
2255 (m68k_stack_align): Add.
2256 (m68k_register_byte): Add.
2257 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2258 tm-m68k.h.
2259
7f8e7424
GS
22602002-06-21 Grace Sainsbury <graces@redhat.com>
2261
a2c6a6d5 2262 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2263 m68k_find_saved_regs.
2264 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2265 references to it with frame->saved_regs.
7f8e7424
GS
2266 (m68k_gdbarch_init): Added function calls to initialize the
2267 gdbarch structure.
a2c6a6d5
GS
2268 (m68k_fix_call_dummy): Add.
2269 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2270 (CALL_DUMMY): Remove.
2271 (CALL_DUMMY_LENGTH): Remove.
2272 (CALL_DUMMY_START_OFFSET): Remove.
2273 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2274 (FIX_CALL_DUMMY): Remove.
2275 (PUSH_DUMMY_FRAME): Remove.
2276 (POP_FRAME): Remove.
7f8e7424 2277
f461f5cf
PM
22782002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2279
2280 * parse.c (parse_fprintf): New function used to avoid calls to
2281 fprintf in bison parser generated debug code.
2282 * parser-defs.h: Declaration of new parse_fprintf function.
2283 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2284 Set YYDEBUG to 1 by default.
2285 Set YYFPRINTF as parse_fprintf.
2286
7f0c12ed
ML
22872002-06-21 Michal Ludvig <mludvig@suse.cz>
2288
2289 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2290 encoding anymore.
2291 (pointer_encoding, enum ptr_encoding): New.
2292 (execute_cfa_program): Take care about pointer encoding.
2293 (dwarf2_build_frame_info): Only call parse_frame_info for
2294 .debug_frame and .eh_frame.
2295 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2296 fixed augmentation handling, added relative addressing,
2297 ignore duplicate FDEs. Added comments.
19d833a2 2298 * dwarf2cfi.c: Reindented.
7f0c12ed 2299
87c4a039
EZ
23002002-06-20 Elena Zannoni <ezannoni@redhat.com>
2301
2302 * event-top.c (command_handler): Don't use space_at_cmd_start
2303 unless there is sbrk() on the host. Assign time and space data
2304 to union fields of the appropriate length.
2305
1cf877ad
ML
23062002-06-20 Michal Ludvig <mludvig@suse.cz>
2307
2308 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2309 x86_64_register_name. Return type changed to 'const char *'.
2310 (x86_64_register_name2nr): Rename to x86_64_register_number.
2311 (x86_64_gdbarch_init): Update to reflect the change.
2312 * x86-64-tdep.h: Ditto.
2313 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2314 (supply_fpregset): Ditto.
2315
3fadccb3
AC
23162002-06-19 Andrew Cagney <cagney@redhat.com>
2317
2318 * regcache.h: Update copyright.
2319 (struct regcache, struct gdbarch): Add opaque declarations.
2320 (current_regcache): Declare global variable.
2321 (regcache_read, regcache_write): Add gdbarch parameter.
2322 (regcache_save, regcache_save_no_passthrough)
2323 (regcache_restore, regcache_restore_no_passthrough)
2324 (regcache_dup, regcache_dup_no_passthrough)
2325 (regcache_cpy, regcache_cpy_no_passthrough)
2326 (deprecated_grub_regcache_for_registers)
2327 (deprecated_grub_regcache_for_register_valid)
2328 (regcache_valid_p): Add function declarations.
2329
2330 * regcache.c: Update copyright.
2331 (regcache_descr_handle): New global variable.
2332 (struct regcache_descr): Define.
2333 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2334 (regcache_descr, xfree_regcache_descr): New functions.
2335 (struct regcache): Define.
2336 (regcache_xmalloc, regcache_xfree): New functions.
2337 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2338 (regcache_dup, regcache_dup_no_passthrough): New functions.
2339 (regcache_valid_p, regcache_read_as_address): New functions.
2340 (deprecated_grub_regcache_for_registers): New function.
2341 (deprecated_grub_regcache_for_register_valid): New function.
2342 (current_regcache): New global variable.
2343 (register_buffer): Add regcache parameter. Update calls.
2344 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2345 (read_register_gen, write_register_gen): Update register_buffer
2346 call. Test for legacy_p instead of gdbarch_register_read_p or
2347 gdbarch_register_write_p.
2348 (regcache_collect): Update register_buffer call.
2349 (build_regcache): Rewrite. Use deprecated grub functions.
2350 (regcache_save, regcache_save_no_passthrough): New functions.
2351 (regcache_restore, regcache_restore_no_passthrough): New
2352 functions.
2353 (_initialize_regcache): Create the regcache_data_handle. Swap
2354 current_regcache global variable.
2355
2356 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2357 parameter to regcache_read and regcache_write calls.
2358 (sh4_register_read): Ditto.
2359 (sh64_pseudo_register_read): Ditto.
2360 (sh64_register_read): Ditto.
2361 (sh_pseudo_register_write): Ditto.
2362 (sh4_register_write): Ditto.
2363 (sh64_pseudo_register_write): Ditto.
2364 (sh64_register_write): Ditto.
2365
2366 * defs.h (XCALLOC): Define.
2367
152d9db6
GS
23682002-06-19 Grace Sainsbury <graces@redhat.com>
2369
2370 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2371 * m68k-tdep.c (m68k_gdbarch_init): Added.
2372 (m68k_dump_tdep): Added.
2373
170911c7
DJ
23742002-06-19 Daniel Jacobowitz <drow@mvista.com>
2375
2376 * ada-lang.c (fill_in_ada_prototype): Update comment.
2377
2e4ebe70
DJ
23782002-06-19 Daniel Jacobowitz <drow@mvista.com>
2379
2380 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2381 MIPS_ABI_LAST.
2382 (mips_abi_string, mips_abi_strings): New.
2383 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2384 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2385 tdep->mips_abi_string. Honor mips_abi_string. Default to
2386 O32 if no ABI is found.
2387 (mips_dump_tdep): Use mips_abi_strings.
2388 (mips_abi_update): New function.
2389 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2390 ``set mips abi'' and ``show mips abi''. Check the size of
2391 mips_abi_strings.
2392
16775908
AC
23932002-06-19 Andrew Cagney <cagney@redhat.com>
2394
2395 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2396 constant.
2397
5051bfa4 23982002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2399
5051bfa4
JB
2400 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2401 current frame using only the first stack size adjustment. All
2402 subsequent size adjustments are not considered to be part of
2403 the "static" part of the current frame.
2404 Compute the address of the saved registers relative to the
2405 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2406 in use in this frame.
2407
56468235
DH
24082002-06-18 Don Howard <dhoward@redhat.com>
2409
2410 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2411 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2412 suggesting this solution.
2413
0b624158
AC
24142002-06-18 Andrew Cagney <ac131313@redhat.com>
2415
2416 * config/romp/xm-rtbsd.h: Delete file.
2417 * config/romp/rtbsd.mh: Delete file.
2418
221ea385
KS
24192002-06-18 Keith Seitz <keiths@redhat.com>
2420
2421 * breakpoint.c (condition_command): Post breakpoint_modify
2422 when a condition is added to an existing breakpoint.
2423 (commands_command): Likewise for commands.
2424 (set_ignore_count): Likewise for ignore counts.
2425 If no tty, do not simply return, still need to send event
2426 notification.
2427 (ignore_command): Only print a newline if the command came
2428 from a tty.
2429 Don't call breakpoints_changed, since this is now properly
2430 handled by set_ignore_count.
2431
5402eed1
AC
24322002-06-18 Andrew Cagney <cagney@redhat.com>
2433
2434 * MAINTAINERS: Note that cris-elf target can be compiled with
2435 -Werror.
2436 * cris-tdep.c (cris_register_name): Make return type constant.
2437 (cris_breakpoint_from_pc): Ditto.
2438
cc22880b
ML
24392002-06-18 Michal Ludvig <mludvig@suse.cz>
2440
2441 * frame.h (struct frame_info): Change type of context to
2442 'struct context'.
2443
fa88f677
AC
24442002-06-17 Andrew Cagney <cagney@redhat.com>
2445
2446 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2447 pointer.
2448 * gdbarch.h, gdbarch.c: Regenerate.
2449 * config/mips/tm-mips.h (mips_register_name): Update.
2450 * i386-tdep.h (i386_register_name): Update.
2451 * mips-tdep.c (mips_register_name): Update
2452 * alpha-tdep.c (alpha_register_name): Update.
2453 * arch-utils.c (legacy_register_name): Update.
2454 * arch-utils.h (legacy_register_name): Update.
2455 * avr-tdep.c (avr_register_name): Update.
2456 * ia64-tdep.c (ia64_register_name): Update.
2457 * i386-tdep.c (i386_register_name): Update.
2458 * sparc-tdep.c (sparc32_register_name): Update.
2459 (sparc64_register_name): Update.
2460 (sparclite_register_name): Update.
2461 (sparclet_register_name): Update.
2462 * sh-tdep.c (sh_generic_register_name): Update.
2463 (sh_sh_register_name): Update.
2464 (sh_sh3_register_name): Update.
2465 (sh_sh3e_register_name): Update.
2466 (sh_sh_dsp_register_name): Update.
2467 (sh_sh3_dsp_register_name): Update.
2468 (sh_sh4_register_name): Update.
2469 (sh_sh64_register_name): Update.
2470 * s390-tdep.c (s390_register_name): Update.
2471 * rs6000-tdep.c (rs6000_register_name): Update.
2472 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2473 (ns32k_register_name_32382): Update.
2474 * d10v-tdep.c (d10v_ts2_register_name): Update.
2475 (d10v_ts3_register_name): Update.
2476 * xstormy16-tdep.c (xstormy16_register_name): Update.
2477 * vax-tdep.c (vax_register_name): Update.
2478 * v850-tdep.c (v850_register_name): Update.
2479 * m68hc11-tdep.c (m68hc11_register_name): Update.
2480 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2481 (am33_register_name): Update.
2482
ea1e7ef6
GS
24832002-06-17 Grace Sainsbury <graces@redhat.com>
2484
2485 * m68k-tdep.c: Reindented.
2486
9b02dd1b
AC
24872002-06-17 Andrew Cagney <ac131313@redhat.com>
2488
2489 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2490 list of predefined types.
2491
8758dec1
MK
24922002-06-16 Mark Kettenis <kettenis@gnu.org>
2493
b6197528
MK
2494 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2495 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2496 REGISTER_CONVERT_TO_RAW): Remove defines.
2497 (i386_register_virtual_type, i386_register_convertible,
2498 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2499 Remove prototypes.
2500 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2501 macros mentioned above.
2502
82b47e62
MK
2503 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2504 (i386lynx_saved_pc_after_call): Remove prototype.
2505 * i386ly-tdep.c: Include "i386-tdep.h".
2506 (i386lynx_saved_pc_after_call): Make static. Use
2507 read_memory_nobpt instead of read_memory. Use
2508 read_memory_unsigned_integer instead of read_memory_integer.
2509 (i386lynx_init_abi): New function.
2510 (i386lynx_coff_osabi_sniffer): New function.
2511 (_initialize_i386bsd_tdep): New function.
2512
8758dec1
MK
2513 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2514 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2515 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2516 (i386_fix_call_dummy): Remove prototype.
2517 * i386-tdep.c (i386_call_dummy_words): New variable.
2518 (i386_gdbarch_init): Adjust for removal of the
2519 macros mentioned above.
2520
e9e68a56
AC
25212002-06-15 Andrew Cagney <ac131313@redhat.com>
2522
2523 * command.h (add_setshow_auto_boolean_cmd): Replace
2524 add_set_auto_boolean_cmd.
2525 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2526 add_set_auto_boolean_cmd.
2527 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2528 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2529 mask-address'' command.
2530 (show_mask_address): Add cmd parameter.
2531 * remote.c (add_packet_config_cmd): Update. Change type of
2532 set_func and show_func to cmd_sfunc_ftype.
2533 (_initialize_remote): Update `set remote Z-packet'
2534 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2535 (show_remote_protocol_e_packet_cmd): Ditto.
2536 (show_remote_protocol_E_packet_cmd): Ditto.
2537 (show_remote_protocol_P_packet_cmd): Ditto.
2538 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2539 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2540 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2541 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2542 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2543 (show_remote_protocol_Z_packet_cmd): Ditto.
2544 (show_remote_protocol_binary_download_cmd): Ditto.
2545 (show_remote_cmd): Pass NULL to all of above.
2546
fc08ec52
MK
25472002-06-15 Mark Kettenis <kettenis@gnu.org>
2548
2549 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2550 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2551 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2552 POP_FRAME): Remove defines.
2553 (i386_push_arguments, i386_store_struct_return,
2554 i386_extract_return_value, i386_store_return_value,
2555 i386_extract_struct_value_address, i386_push_dummy_frame,
2556 i386_pop_frame): Renove prototypes.
2557 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2558 macros mentioned above.
2559
e707bbc2
AC
25602002-06-15 Andrew Cagney <ac131313@redhat.com>
2561
2562 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2563 add_set_boolean_cmd.
2564 (add_setshow_cmd): New function.
2565 * command.h (add_setshow_boolean_cmd): Replace
2566 add_set_boolean_cmd.
2567 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2568 and ``set rdiromatzero''.
2569 * maint.c (_initialize_maint_cmds): Update commented out code.
2570 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2571 * target.c (initialize_targets): Update `set
2572 trust-readonly-sections'.
2573 * remote.c (_initialize_remote): Update `set remotebreak'.
2574
42fdc8df
MK
25752002-06-15 Mark Kettenis <kettenis@gnu.org>
2576
93924b6b
MK
2577 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2578 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2579 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2580 fit into multi-arch framework.
2581 (i386_breakpoint_from_pc): New function.
2582 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2583 above.
2584
42fdc8df
MK
2585 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2586 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2587 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2588 (i386_frameless_function_invocation, i386_frame_num_args,
2589 i386_frame_init_saved_regs): Remove prototypes.
2590 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2591 macros mentioned above.
2592
9773a94b
AC
25932002-06-15 Andrew Cagney <ac131313@redhat.com>
2594
2595 * cli/cli-decode.c (set_cmd_cfunc): Update.
2596 (set_cmd_sfunc): Update.
2597 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2598 (set_cmd_sfunc, set_cmd_cfunc): Update.
2599 * cli/cli-decode.h: Update.
2600
6e157172
MK
26012002-06-15 Mark Kettenis <kettenis@gnu.org>
2602
2603 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2604 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2605
7f19b9a2
AC
26062002-06-15 Andrew Cagney <ac131313@redhat.com>
2607
2608 * defs.h (auto_boolean): Declare enum.
2609 * command.h (cmd_auto_boolean): Delete enum.
2610 * mips-tdep.c (mask_address_var): Update.
2611 (mips_mask_address_p): Update.
2612 (show_mask_address): Update.
2613 * remote.c (struct packet_config): Update.
2614 (update_packet_config): Update.
2615 (show_packet_config_cmd): Update.
2616 (packet_ok): Update.
2617 (add_packet_config_cmd): Update.
2618 (_initialize_remote):
2619 * command.h: Update.
2620 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2621 (do_setshow_command): Update.
2622 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2623 * cli/cli-decode.h: Update.
2624
1cf88de5
MK
26252002-06-15 Mark Kettenis <kettenis@gnu.org>
2626
22ba8cf2
MK
2627 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2628 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2629 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2630 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2631 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2632 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2633
762c5349
MK
2634 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2635 list of DJGPP COFF targets.
2636
091198bb
MK
2637 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2638 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2639 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2640 (FP0_REGNUM): Remove define.
2641 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2642 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2643 (i386_register_virtual_size): Remove protoype.
2644 * i386-tdep.c (i386_register_virtual_size): Removed.
2645 (i386_extract_return_value, i386_store_return_value): Use
2646 FP0_REGNUM instead of NUM_FREGS to determine whether the
2647 floating-point registers are available.
2648 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2649 Adjust for removal of macros mentioned above.
2650
26512002-06-15 Mark Kettenis <kettenis@gnu.org>
2652
fcc9bf01
MK
2653 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2654 comments.
2655 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2656 Remove prototypes.
2657 (supply_gregset, fill_gregset): Remove use of register keyword and
2658 remove declaration for regmap. Use I386_NUM_GREGS instead of
2659 NUM_REGS and NUM_FREGS.
2660 (FPREGSET_FSAVE_OFFSET): Remove.
2661 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2662 NUM_FREGS to determine whether the floating-point registers are
2663 available.
2664
65e78234
MK
2665 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2666 gnu_store_registers): Replace usage of NUM_GREGS with
2667 I386_NUM_GREGS.
2668
98df6387
MK
2669 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2670 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2671 usage of NUM_GREGS with I386_NUM_GREGS.
2672
099a9414
MK
2673 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2674
57976e88
MK
2675 * i386bsd-nat.c: Include "i386-tdep.h".
2676 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2677 I386_NUM_GREGS.
2678
b335f4a6
MK
2679 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2680 and associated comment. They no longer make any sense, since we
2681 don't use this file anymore on Linux.
2682
1cf88de5
MK
2683 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2684 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2685 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2686 elements in these arrays.
2687 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2688 MAX_NUM_REGS.
2689
daa66587
MK
26902002-06-15 Mark Kettenis <kettenis@gnu.org>
2691
2692 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2693 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2694
26e9b323
AC
26952002-06-14 Andrew Cagney <cagney@redhat.com>
2696
2697 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2698 EXTRACT_RETURN_VALUE.
2699 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2700 EXTRACT_STRUCT_VALUE_ADDRESS.
2701 * gdbarch.h, gdbarch.c: Regenerate.
2702
2703 * values.c (value_being_returned): Handle
2704 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2705 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2706
2707 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2708 * arm-tdep.c (arm_gdbarch_init): Update.
2709 * avr-tdep.c (avr_gdbarch_init): Update.
2710 * cris-tdep.c (cris_gdbarch_init): Update.
2711 * d10v-tdep.c (d10v_gdbarch_init): Update.
2712 * ia64-tdep.c (ia64_gdbarch_init): Update.
2713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2714 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2715 * s390-tdep.c (s390_gdbarch_init): Update.
2716 * sh-tdep.c (sh_gdbarch_init): Update.
2717 * s390-tdep.c (s390_gdbarch_init): Update.
2718 * sparc-tdep.c (sparc_gdbarch_init): Update.
2719 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2720 * v850-tdep.c (v850_gdbarch_init): Update.
2721 * vax-tdep.c (vax_gdbarch_init): Update.
2722 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2724
2725 * config/arc/tm-arc.h: Update.
2726 * config/d30v/tm-d30v.h: Update.
2727 * config/fr30/tm-fr30.h: Update.
2728 * config/h8300/tm-h8300.h: Update.
2729 * config/h8500/tm-h8500.h: Update.
2730 * config/i386/tm-i386.h: Update.
2731 * config/i386/tm-ptx.h: Update.
2732 * config/i386/tm-symmetry.h: Update.
2733 * config/i960/tm-i960.h: Update.
2734 * config/m32r/tm-m32r.h: Update.
2735 * config/m68k/tm-delta68.h: Update.
2736 * config/m68k/tm-linux.h: Update.
2737 * config/m68k/tm-m68k.h: Update.
2738 * config/m88k/tm-m88k.h: Update.
2739 * config/mcore/tm-mcore.h: Update.
2740 * config/mips/tm-mips.h: Update.
2741 * config/mn10200/tm-mn10200.h: Update.
2742 * config/pa/tm-hppa.h: Update.
2743 * config/pa/tm-hppa64.h: Update.
2744 * config/sparc/tm-sp64.h: Update.
2745 * config/sparc/tm-sparc.h: Update.
2746 * config/sparc/tm-sparclet.h: Update.
2747 * config/z8k/tm-z8k.h: Update.
2748
5179e78f
AC
27492002-06-14 Andrew Cagney <cagney@redhat.com>
2750
2751 * Makefile.in (i386_linux_tdep_h): Define.
2752 (i386_tdep_h, i387_tdep_h): Define.
2753 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2754 $(i386_tdep_h) and $(i387_tdep_h).
2755 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2756
8201327c
MK
27572002-06-14 Mark Kettenis <kettenis@gnu.org>
2758
edf393ac
MK
2759 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2760 Already covered by the default.
2761
896fb97d
MK
2762 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2763 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2764 (i386_gdbarch_init): Initialize long_double_format and long_double
2765 bit.
2766
8201327c
MK
2767 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2768 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2769 Move these to ...
2770 * config/i386/i386sol2.mh: ... here.
2771 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2772 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2773 (SIGCONTEXT_PC_OFFSET): Remove define.
2774 (IN_SIGTRAMP): Remove define.
2775 * i386-sol2-tdep.c: New file.
2776
2777 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2778 * config/i386/tm-i386nw.h: Removed.
2779
2780 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2781 USE_STRUCT_CONVENTION): Remove defines.
2782 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2783 (get_longjmp_target): Remove prototype.
2784 (IN_SIGTRAMP): Remove define.
2785 (i386bsd_in_sigtramp): Remove prototype.
2786 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2787 function. Update comment accordingly
2788 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2789 (FRAME_SAVED_PC): Remove define.
2790 (i386bsd_frame_saved_pc): Remove prototype.
2791 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2792 GET_LONGJMP_TARGET): Remove defines.
2793 (get_longjmp_target): Remove prototype.
2794 (IN_SIGTRAMP): Remove define.
2795 (i386bsd_in_sigtramp): Remove prototype.
2796 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2797 function. Update comment accordingly
2798 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2799 (FRAME_SAVED_PC): Remove define.
2800 (i386bsd_frame_saved_pc): Remove prototype.
2801 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2802 Remove prototype.
2803 (USE_STRUCT_CONVENTION): Remove prototype.
2804 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2805 declaration.
2806 (_initialize_i386bsd_nat): Revise logic to determine some
2807 constants at compile time when compiling a native GDB. Warn if
2808 things don't match up with what we expect.
2809 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2810 Remove variables.
2811 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2812 to use date stored in `struct gdbarch_tdep'.
2813 (i386bsd_sigcontext_offset): Remove varaible.
2814 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2815 stored in `struct gdbarch_tdep'.
2816 (i386bsd_frame_saved_pc): Make static.
2817 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2818 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2819 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2820 i386fbsd4_sc_pc_offset): New variables.
2821 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2822 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2823 functions.
2824 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2825 functions.
2826 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2827 Modify the value of i386fbsd_sigtramp_start and
2828 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2829 i386fbsd_sigtramp_end.
2830 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2831 function.
2832
2833 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2834 define to i386-linux-tdep.h.
2835 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2836 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2837 defines.
2838 (i386_linux_register_name, i386_linux_register_byte,
2839 i386_linux_register_raw_size): Remove prototypes.
2840 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2841 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2842 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2843 TARGET_WRITE_PC): Remove defines.
2844 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2845 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2846 i386_linux_write_pc): Remove prototypes.
2847 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2848 (get_longjmp_target): Remove prototype.
2849 * i386-linux-tdep.h: New file.
2850 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2851 * i386-linux-tdep.c: Include "i386-tdep.h" and
2852 "i386-linux-tdep.h".
2853 (i386_linux_register_name, i386_linux_register_byte,
2854 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2855 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2856 Make static.
2857 (i386_linux_init_abi): New function.
2858 (_initialize_i386_linux_tdep): New function.
2859
2860 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2861 (i386_saved_pc_after_call): Remove prototype.
2862 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2863 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2864 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2865 (i386_register_name, i386_stab_reg_to_regnum,
2866 i386_dwarf_reg_to_regnum): Remove prototypes.
2867 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2868 SIZEOF_SSE_REGS): Remove defines.
2869 (REGISTER_BYTES): Remove define.
2870 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2871 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2872 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2873 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2874 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2875 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2876 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2877 (get_longjmp_target): Remove prototype.
2878 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2879 (sigtramp_saved_pc): Remove define.
2880 (i386v4_sigtramp_saved_pc): Remove prototype.
2881 * config/i386/tm-go32.h (FRAME_CHAIN,
2882 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2883 (i386go32_frame_saved_pc): Remove prototype.
2884 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2885 (get_longjmp_target): Remove prototype.
2886 * i386-tdep.h: Include "osabi.h".
2887 (enum i386_abi): Removed.
2888 (enum struct_return): New enum.
2889 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2890 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2891 sc_pc_offset members.
2892 (i386_gdbarch_register_os_abi): Remove prototype.
2893 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2894 I386_SSE_NUM_REGS): New defines.
2895 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2896 I386_SSE_SIZEOF_REGS): New defines.
2897 (i386_register_name, i386_register_byte, i386_register_raw_size):
2898 New prototypes.
2899 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2900 (i386bsd_sigtramp_saved_pc): New prototype.
2901 * i386-tdep.c: Don't include "elf-bfd.h".
2902 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2903 i386_frame_chain, i386_saved_pc_after_call): Make static.
2904 (i386_frame_saved_pc): Rewrite to call architecture dependent
2905 function to deal with signal handlers. Make static.
2906 (i386go32_frame_saved_pc): Removed.
2907 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2908 Removed.
2909 (i386_get_longjmp_target): New function.
2910 (default_struct_convention, pcc_struct_convention,
2911 reg_struct_convention, valid_conventions, struct_convention): New
2912 variables.
2913 (i386_use_struct_convention): New function.
2914 (i386v4_sigtramp_saved_pc): Renamed to
2915 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2916 (i386_pc_in_sigtramp): New function.
2917 (i386_abi_names): Removed.
2918 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2919 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2920 Removed.
2921 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2922 i386_gdbarch_register_os_abi): Removed.
2923 (struct i386_abi_handler): Removed.
2924 (i386_abi_handler_list): Removed.
2925 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2926 functions.
2927 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2928 i386_nw_init_abi): New functions.
2929 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2930 Use set_gdbarch_xxx() calls instead of relying on macros for a
2931 number of calls.
2932 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2933 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2934 Register the various architecture variants defined in this file.
2935
ad2f7632
DJ
29362002-06-14 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2939 (struct main_type): Remove arg_types member. Update comments for
2940 struct field.
2941 (TYPE_ARG_TYPES): Remove.
2942 (TYPE_FN_FIELD_ARGS): Update.
2943 (smash_to_method_type): Update prototype.
2944
2945 * c-typeprint.c (cp_type_print_method_args): Take method type
2946 instead of argument list. Use new argument layout. Simplify.
2947 (c_type_print_args): Use new argument layout. Simplify.
2948 (c_type_print_base): Update call to cp_type_print_method_args.
2949 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2950 argument; use die->type instead. Update call to
2951 smash_to_method_type.
2952 (read_structure_scope): Update call to dwarf2_add_member_fn.
2953 * gdbtypes.c (allocate_stub_method): Update comment.
2954 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2955 Use new argument layout.
2956 (check_stub_method): Use new argument layout. Don't count
2957 void as an argument.
2958 (print_arg_types): Update comments. Use new argument layout.
2959 (recursive_dump_type): Don't print arg_types member.
2960 * hpread.c (hpread_read_struct_type): Use new argument layout.
2961 (fixup_class_method_type): Likewise.
2962 (hpread_type_lookup): Likewise.
2963 * stabsread.c (read_type): Update calls to read_args and
2964 smash_to_method_type.
2965 (read_args): Use new argument layout. Simplify.
2966 * valops.c (typecmp): Use new argument layout. Update parameters
2967 and comments. Simplify.
2968 (hand_function_call): Use new argument layout.
2969 (search_struct_method): Update call to typecmp.
2970 (find_overload_match): Use new argument layout.
2971
6da02953
DJ
29722002-06-13 Daniel Jacobowitz <drow@mvista.com>
2973
2974 * NEWS: Mention multithreaded debug support for gdbserver.
2975
519b2366
DJ
29762002-06-13 Daniel Jacobowitz <drow@mvista.com>
2977
2978 * MAINTAINERS: Mention NEWS.
2979
a7f48742
DJ
29802002-06-13 Daniel Jacobowitz <drow@mvista.com>
2981
2982 * gdbserver/regcache.c: Add comment.
2983
6c0d6680
DJ
29842002-06-13 Daniel Jacobowitz <drow@mvista.com>
2985
2986 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2987 (struct mips_objfile_private, compare_pdr_entries): New.
2988 (non_heuristic_proc_desc): Read the ".pdr" section if it
2989 is present.
2990
6529d2dd
AC
29912002-06-12 Andrew Cagney <ac131313@redhat.com>
2992
2993 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2994 (arm_debug): New static variable.
2995 (_initialize_arm_tdep): Add ``set debug arm'' command.
2996
26216b98
AC
29972002-06-12 Andrew Cagney <ac131313@redhat.com>
2998
2999 * Makefile.in (sim_arm_h): Define.
3000 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3001 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3002 (arm_register_sim_regno): New function, map an internal REGNUM
3003 onto a simulator register number.
3004 (arm_gdbarch_init): Set register_sim_regno.
3005
814b3ba0
AH
30062002-06-09 Aldy Hernandez <aldyh@redhat.com>
3007
3008 * MAINTAINERS: Add self.
3009
475b0867
JB
30102002-06-11 Jim Blandy <jimb@redhat.com>
3011
919d772c
JB
3012 * source.c (source_info): Mention whether the symtab has
3013 information about preprocessor macros.
3014
475b0867
JB
3015 Call the command `info macro', not `show macro'.
3016 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3017 Fix error message.
3018 (_initialize_macrocmd): Register `info_macro_command' in
3019 `infolist', not `showlist'.
3020
9e364162
DJ
30212002-06-11 Daniel Jacobowitz <drow@mvista.com>
3022
3023 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3024 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3025 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3026 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3027 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3028 unconditionally.
3029 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3030 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3031 (_initialize_mips_tdep): Remove dead code.
3032 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3033 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3034 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3035 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3036 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3037 MIPS_LAST_FP_ARG_REGNUM): Remove.
3038
30392002-06-11 Daniel Jacobowitz <drow@mvista.com>
3040
3041 * gdbserver/thread-db.c: New file.
3042 * gdbserver/proc-service.c: New file.
3043 * gdbserver/acinclude.m4: New file.
3044 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3045 proc-service.o, and thread-db.o.
3046 (linux-low.o): Add USE_THREAD_DB.
3047 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3048 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3049 * gdbserver/aclocal.m4: Regenerated.
3050 * gdbserver/config.in: Regenerated.
3051 * gdbserver/configure: Regenerated.
3052 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3053 thread_db.h, and linux/elf.h headrs.
3054 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3055 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3056 Check for -lthread_db and thread support.
3057 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3058 PowerPC, and SuperH.
3059 * gdbserver/i387-fp.c: Constify arguments.
3060 * gdbserver/i387-fp.h: Likewise.
3061 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3062 `struct inferior_info'. Remove PID member. Use generic inferior
3063 list header. All uses updated.
3064 (inferiors, signal_pid): Removed.
3065 (all_threads): New variable.
3066 (get_thread): Define.
3067 (add_inferior_to_list): New function.
3068 (for_each_inferior): New function.
3069 (change_inferior_id): New function.
3070 (add_inferior): Removed.
3071 (remove_inferior): New function.
3072 (add_thread): New function.
3073 (free_one_thread): New function.
3074 (remove_thread): New function.
3075 (clear_inferiors): Use for_each_inferior and free_one_thread.
3076 (find_inferior): New function.
3077 (find_inferior_id): New function.
3078 (inferior_target_data): Update argument type.
3079 (set_inferior_target_data): Likewise.
3080 (inferior_regcache_data): Likewise.
3081 (set_inferior_regcache_data): Likewise.
3082 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3083 (all_processes, stopping_threads, using_thrads)
3084 (struct pending_signals, debug_threads, pid_of): New.
3085 (inferior_pid): Replace with macro.
3086 (struct inferior_linux_data): Remove.
3087 (get_stop_pc, add_process): New functions.
3088 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3089 Use add_process and add_thread.
3090 (linux_attach_lwp): New function, based on old linux_attach. Use
3091 add_process and add_thread. Set stop_expected for new threads.
3092 (linux_attach): New function.
3093 (linux_kill_one_process): New function.
3094 (linux_kill): Kill all LWPs.
3095 (linux_thread_alive): Use find_inferior_id.
3096 (check_removed_breakpoints, status_pending_p): New functions.
3097 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3098 Update. Use WNOHANG. Wait for cloned processes also. Update process
3099 struct for the found process.
3100 (linux_wait_for_event): New function.
3101 (linux_wait): Use it. Support LWPs.
3102 (send_sigstop, wait_for_sigstop, stop_all_processes)
3103 (linux_resume_one_process, linux_continue_one_process): New functions.
3104 (linux_resume): Support LWPs.
3105 (REGISTER_RAW_SIZE): Remove.
3106 (fetch_register): Use register_size instead. Call supply_register.
3107 (usr_store_inferior_registers): Likewise. Call collect_register.
3108 Fix recursive case.
3109 (regsets_fetch_inferior_registers): Improve error message.
3110 (regsets_store_inferior_registers): Add debugging.
3111 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3112 (unstopped_p, linux_signal_pid): New functions.
3113 (linux_target_ops): Add linux_signal_pid.
3114 (linux_init_signals): New function.
3115 (initialize_low): Call it. Initialize using_threads.
3116 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3117 flag.
3118 (get_regcache): Fetch registers lazily. Add fetch argument
3119 and update all callers.
3120 (regcache_invalidate_one, regcache_invalidate): New
3121 functions.
3122 (new_register_cache): Renamed from create_register_cache.
3123 Return the new regcache.
3124 (free_register_cache): Change argument to a void *.
3125 (registers_to_string, registers_from_string): Call get_regcache
3126 with fetch flag set.
3127 (register_data): Make static. Pass fetch flag to get_regcache.
3128 (supply_register): Call get_regcache with fetch flag clear.
3129 (collect_register): Call get_regcache with fetch flag set.
3130 (collect_register_as_string): New function.
3131 * gdbserver/regcache.h: Update.
3132 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3133 stderr.
3134 Handle input interrupts while waiting for an ACK.
3135 (input_interrupt): Use signal_pid method.
3136 (getpkt): Flush after debug output and use stderr.
3137 (outreg): Use collect_register_as_string.
3138 (new_thread_notify, dead_thread_notify): New functions.
3139 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3140 and general_thread.
3141 (look_up_one_symbol): Flush after debug output.
3142 * gdbserver/server.c (step_thread, server_waiting): New variables.
3143 (start_inferior): Don't use signal_pid. Update call to mywait.
3144 (attach_inferior): Update call to mywait.
3145 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3146 (main): Don't fetch/store registers explicitly. Use
3147 set_desired_inferior. Support proposed ``Hs'' packet. Update
3148 calls to mywait.
3149 * gdbserver/server.h: Update.
3150 (struct inferior_list, struct_inferior_list_entry): New.
3151 * gdbserver/target.c (set_desired_inferior): New.
3152 (write_inferior_memory): Constify.
3153 (mywait): New function.
3154 * gdbserver/target.h: Update.
3155 (struct target_ops): New signal_pid method.
3156 (mywait): Removed macro, added prototype.
3157
3158 * gdbserver/linux-low.h (regset_func): Removed.
3159 (regset_fill_func, regset_store_func): New.
3160 (enum regset_type): New.
3161 (struct regset_info): Add type field. Use new operation types.
3162 (struct linux_target_ops): stop_pc renamed to get_pc.
3163 Add decr_pc_after_break and breakpoint_at.
3164 (get_process, get_thread_proess, get_process_thread)
3165 (strut process_info, all_processes, linux_attach_lwp)
3166 (thread_db_init): New.
3167
3168 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3169 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3170 (the_low_target): Add new members.
3171 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3172 (i386_store_fpxregset): Constify.
3173 (target_regsets): Add new kind identifier.
3174 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3175 (i386_set_pc): Add debugging.
3176 (i386_breakpoint_at): New function.
3177 (the_low_target): Add new members.
3178 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3179 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3180 (mips_breakpoint_at): New.
3181 (the_low_target): Add new members.
3182 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3183 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3184 (the_low_target): Add new members.
3185 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3186 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3187 (the_low_target): Add new members.
3188 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3189 identifier.
3190
23aa4c72
ML
31912002-06-11 Michal Ludvig <mludvig@suse.cz>
3192
3193 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3194 (unwind_tmp_obstack_free, parse_frame_info)
3195 (update_context, cfi_read_fp, cfi_write_fp)
3196 (cfi_frame_chain, cfi_init_extra_frame_info)
3197 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3198 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3199
70eb15a4
CV
32002002-06-11 Corinna Vinschen <vinschen@redhat.com>
3201
3202 * v850-tdep.c (v850_type_is_scalar): New function.
3203 (v850_use_struct_convention): Match current gcc implementation
3204 as close as possible.
3205 (v850_push_arguments): Fix stack_offset handling. Don't write
3206 struct_addr into register. This is done by v850_store_struct_return.
3207 (v850_extract_return_value): Care for structs.
3208 (v850_store_return_value): Ditto.
3209 (v850_store_struct_return): Actually write address.
3210
482a4d06
ML
32112002-06-11 Michal Ludvig <mludvig@suse.cz>
3212
3213 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3214 without debug information too.
3215
d855c300
AC
32162002-06-10 Andrew Cagney <ac131313@redhat.com>
3217
3218 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3219 Make multi-arch pure.
3220 * gdbarch.h, gdbarch.c: Re-generate.
3221 * arm-tdep.c (arm_print_float_info): Update.
3222 * arch-utils.h (default_print_float_info): Update.
3223 * arch-utils.c (default_print_float_info): Update.
3224 * infcmd.c (float_info): Update call.
3225
dd12a101
AC
32262002-06-10 Andrew Cagney <ac131313@redhat.com>
3227
3228 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3229 the front of the initialize list.
3230
101dcfbe
AC
32312002-06-10 Andrew Cagney <ac131313@redhat.com>
3232
3233 * infrun.c (struct inferior_status): Replace fields
3234 selected_frame_address and selected_level with field
3235 selected_frame_id.
3236 (save_inferior_status): Update. Use get_frame_id.
3237 (struct restore_selected_frame_args): Delete.
3238 (restore_selected_frame): Update. Use frame_find_by_id.
3239 (restore_inferior_status): Update.
3240
3241 * breakpoint.h (struct breakpoint): Change type of
3242 watchpoint_frame to frame_id.
3243 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3244 call to get_current_frame.
3245 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3246 get_current_frame.
3247 (watchpoint_check): Use frame_find_by_id.
3248
3249 * frame.h (record_selected_frame): Delete declaration.
3250 * stack.c (record_selected_frame): Delete function.
3251
3252 * frame.h (struct frame_id): Define.
3253 (get_frame_id): Declare.
3254 (frame_find_by_id): Declare.
3255 * frame.c (frame_find_by_id): New function.
3256 (get_frame_id): New function.
3257
304270b6
AV
32582002-06-10 Andrey Volkov <avolkov@transas.com>
3259
3260 * ser-e7kpc.c: Fix duplicated define and call of
3261 _initialize_ser_e7000pc
3262
2f2cf184
DJ
32632002-06-09 Daniel Jacobowitz <drow@mvista.com>
3264
3265 * signals/signals.c (target_signal_from_host): Fix #ifdef
3266 SIGRTMIN case.
3267 (do_target_signal_to_host): Likewise.
3268
caaa3122
DJ
32692002-06-09 Daniel Jacobowitz <drow@mvista.com>
3270
3271 * mips-tdep.c (mips_find_abi_section): New function.
3272 (mips_gdbarch_init): Call it.
3273
6ac5df3a
MK
32742002-06-09 Mark Kettenis <kettenis@gnu.org>
3275
3276 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3277 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3278 after Andrew's 2002-06-08 gdbarch change.
3279
82ea117a
MK
32802002-06-09 Mark Kettenis <kettenis@gnu.org>
3281
3282 * i386-linux-nat.c (suppy_gregset): Don't supply
3283 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3284 register cache.
3285 (fill_gregset): Don't fetch it under the same circumstances.
3286
3c25f8c7
AC
32872002-06-09 Andrew Cagney <cagney@redhat.com>
3288
3289 * Makefile.in (callback_h): Define.
3290 (remote_sim_h): Update path to remote-sim.h.
3291 (remote-rdp.o): Add $(callback_h).
3292 (remote-sim.o): Use $(callback_h).
3293 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3294 * remote-rdp.c: Include "gdb/callback.h".
3295
1029b7fa
MK
32962002-06-09 Mark Kettenis <kettenis@gnu.org>
3297
3298 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3299 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3300
616675d3
AC
33012002-06-08 Andrew Cagney <ac131313@redhat.com>
3302
a3efda28
AC
3303 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3304 * rdi-share/serpardr.c: Ditto.
3305 * rdi-share/unixcomm.c: Ditto.
3306 * rdi-share/serdrv.c: Ditto.
3307 * rdi-share/hostchan.h: Ditto.
3308 * rdi-share/hostchan.c: Ditto.
3309 * rdi-share/host.h: Ditto.
3310 * rdi-share/devsw.c: Ditto.
3311
c5f10366
AC
3312 * objfiles.h: Change type of obj_private to void pointer.
3313 * pa64solib.c: Update copyright. Don't include "assert.h", use
3314 strcmp instead of STREQ, use LONGEST, do not use PTR
3315 * somsolib.c: Ditto.
3316
616675d3
AC
3317 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3318 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3319 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3320
e4b415d9
AC
33212002-06-08 Andrew Cagney <ac131313@redhat.com>
3322
3323 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3324 (default_get_saved_register): Delete function.
3325 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3326 generic_unwind_get_saved_register.
3327 * gdbarch.h, gdbarch.c: Re-generate.
3328
ca0d0b52
AC
33292002-06-08 Andrew Cagney <ac131313@redhat.com>
3330
3331 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3332 generic_func_frame_chain_valid.
3333 * gdbarch.h, gdbarch.c: Re-generate.
3334 * blockframe.c (generic_func_frame_chain_valid): Only check
3335 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3336 passing FP to PC_IN_CALL_DUMMY.
3337 Fix PR gdb/360.
3338
76860b5f
AC
33392002-06-08 Andrew Cagney <ac131313@redhat.com>
3340
3341 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3342 (register_gdbarch_data): Initialize init_p.
3343 (gdbarch_data): Initialize data pointer using the init function.
3344 (init_gdbarch_data): Delete function.
3345 (gdbarch_update_p): Update.
3346 (initialize_non_multiarch): Update.
3347 (struct gdbarch): Add field initialized_p.
3348 * gdbarch.h, gdbarch.c: Re-generate.
3349
8dda9770
ML
33502002-06-07 Michal Ludvig <mludvig@suse.cz>
3351
3352 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3353 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3354 better do the things actually here.
3355 * x86-64-tdep.c (x86_64_register_name2nr): New.
3356 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3357 (x86_64_gdbarch_init): Respect the above change.
3358 * x86-64-tdep.h (x86_64_register_name2nr)
3359 (x86_64_register_nr2name): Add prototypes.
3360 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3361
3d79a47c
MS
33622002-06-06 Michael Snyder <msnyder@redhat.com>
3363
7bd91a28
MS
3364 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3365 Delete extra braces and re-indent.
3366 (d10v_store_return_value): Char return values
3d79a47c
MS
3367 must be shifted over by one byte in R0.
3368 (d10v_extract_return_value): Delete extra braces, re-indent.
3369
095a4c96
EZ
33702002-06-06 Elena Zannoni <ezannoni@redhat.com>
3371
3372 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3373 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3374 (d10v_integer_to_address): Rewrite.
3375 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3376 the d10v specific functions which take care of converting to the
3377 correct space.
3378
e8a77ca4
EZ
33792002-06-06 Elena Zannoni <ezannoni@redhat.com>
3380
3381 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3382 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3383
4f2e4a4f
AC
33842002-06-02 Andrew Cagney <ac131313@redhat.com>
3385
3386 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3387 includes.
3388 * config/tm-linux.h: Ditto.
3389 * config/alpha/tm-alphalinux.h: Ditto.
3390 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3391 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3392 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3393 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3394 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3395 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3396 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3397 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3398 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3399 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3400 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3401 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3402 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3403 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3404 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3405 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3406 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3407 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3408 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3409 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3410 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3411 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3412 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3413 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3414 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3415 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3416 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3417 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3418 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3419 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3420 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3421 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3422 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3423 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3424 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3425 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3426 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3427
ae2ab2ce
AS
34282002-05-04 Aidan Skinner <aidan@velvet.net>
3429
3430 * ada-exp.tab.c: New file
3431 * ada-exp.y: New file
3432 * ada-lang.c: New file
3433 * ada-lang.h: New file
3434 * ada-lex.c: New file
3435 * ada-lex.l: New file
3436 * ada-tasks.c: New file
3437 * ada-typeprint.c: New file
3438 * ada-valprint.c: New file
3439
0ddd0135
JT
34402002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3441
3442 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3443 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3444
750fbacc
JT
34452002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3446
3447 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3448 insetead of ppc-linux-tdep.o.
3449 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3450 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3451
df94e18a
AC
34522002-06-02 Andrew Cagney <ac131313@redhat.com>
3453
3454 2002-05-07 Christian Groessler <chris@groessler.org>
3455 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3456 bit register contents for little endian hosts.
3457
1a38ab75
AC
34582002-06-01 Andrew Cagney <ac131313@redhat.com>
3459
3460 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3461 any maintainer.
3462
8b1632ac
AC
34632002-06-01 Andrew Cagney <ac131313@redhat.com>
3464
3465 * gdbarch.h: Regenerate.
3466
627054c8
AC
34672002-06-01 Andrew Cagney <ac131313@redhat.com>
3468
3469 * MAINTAINERS: Add everyone to write-after-approval list.
3470
4f460812
AC
34712002-06-01 Andrew Cagney <ac131313@redhat.com>
3472
3473 * stack.c (frame_info): Use frame_register_unwind instead of
3474 saved_regs. Mention when the SP is on the stack or in a register.
3475
3476 * frame.h (frame_register_unwind_ftype): Define. Document.
3477 (struct frame_info): Add field register_unwind and
3478 register_unwind_cache.
3479 (frame_register_unwind): Declare.
3480 (generic_unwind_get_saved_register): Declare.
3481
3482 * frame.c (frame_register_unwind): New function.
3483 (generic_unwind_get_saved_register): New function.
3484
3485 * blockframe.c (generic_call_dummy_register_unwind): New function.
3486 (frame_saved_regs_register_unwind): New function.
3487 (set_unwind_by_pc): New function.
3488 (create_new_frame): New function.
3489 (get_prev_frame): New function.
3490
de888f76
AC
34912002-05-30 Andrew Cagney <ac131313@redhat.com>
3492
3493 * a29k-share/: Delete directory.
3494 * remote-vx29k.c: Delete file.
3495
2f2c3626
JT
34962002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3497
3498 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3499 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3500
9ce5c36a
JT
35012002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3502
3503 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3504 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3505 (sparc64nbsd-nat.o)
3506 (sparcnbsd-nat.o)
3507 (sparcnbsd-tdep.o): New dependency lists.
3508 * NEWS: Note new UltraSPARC NetBSD native configuration.
3509 * configure.host (sparc64-*-netbsd*): New host.
3510 * configure.tgt (sparc-*-netbsdelf*)
3511 (sparc-*-netbsd*): Set gdb_target to nbsd.
3512 (sparc64-*-netbsd*): New target.
3513 * sparc64nbsd-nat.c: New file.
3514 * sparcnbsd-nat.c: New file.
3515 * sparcnbsd-tdep.c: New file.
3516 * sparcnbsd-tdep.h: New file.
3517 * config/sparc/nbsd.mt: New file.
3518 * config/sparc/nbsd64.mh: New file.
3519 * config/sparc/nbsd64.mt: New file.
3520 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3521 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3522 (HOST_IPC): Remove.
3523 * config/sparc/nbsdaout.mt: Remove.
3524 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3525 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3526 (HOST_IPC): Remove.
3527 * config/sparc/nbsdelf.mt: Remove.
3528 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3529 sparc-nat.c compatiblity defines.
3530 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3531 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3532 * config/sparc/tm-nbsd64.h: New file.
3533 * config/sparc/tm-nbsdaout.h: Remove.
3534 * config/sparc/xm-nbsd.h: Remove.
3535
ef3cf062
JT
35362002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3537
3538 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3539 * sparc-tdep.c: Include osabi.h.
3540 (gdbarch_tdep): Add osabi member.
3541 (_initialize_sparc_tdep): Use gdbarch_register.
3542 (sparc_gdbarch_init): Use generic OS ABI framework.
3543 (sparc_dump_tdep): New function.
3544
ee8ff470
KB
35452002-05-30 Kevin Buettner <kevinb@redhat.com>
3546
3547 * corefile.c (do_captured_read_memory_integer): Return non-zero
3548 result.
3549 (safe_read_memory_integer): Copy result of memory read when
3550 status is non-zero. Also, add comments.
3551
7b112f9c
JT
35522002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3553
3554 * Makefile.in (ppc_tdep_h): Define.
3555 (ppc-linux-nat.o)
3556 (ppc-linux-tdep.o)
3557 (rs6000-tdep.o): Use $(ppc_tdep_h).
3558 (ppc-sysv-tdep.o)
3559 (ppcnbsd-nat.o)
3560 (ppcnbsd-tdep.o): New dependency lists.
3561 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
3562 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3563 (ppc_linux_init_abi): New functions.
7b112f9c
JT
3564 (ppc_sysv_abi_broken_use_struct_convention)
3565 (ppc_sysv_abi_use_struct_convention)
3566 (ppc_sysv_abi_push_arguments): Move to...
3567 * ppc-sysv-tdep.c: ...here.
3568 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3569 * rs6000-tdep.c (process_note_abi_tag_sections)
3570 (get_elfosabi): Remove.
3571 (rs6000_gdbarch_init): Use generic OS ABI framework.
3572 (rs6000_dump_tdep): New function.
3573 (_initialize_rs6000_tdep): Use gdbarch_register.
3574 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3575 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3576 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3577 of ppc-linux-tdep.o.
3578 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3579 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3580 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3581 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3582 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3583 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3584
480dd42a
JB
35852002-05-29 Jim Blandy <jimb@redhat.com>
3586
3587 * macroscope.c (default_macro_scope): Put `void' in empty argument
3588 list.
3589
4182591f
AC
35902002-05-29 Andrew Cagney <ac131313@redhat.com>
3591
3592 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3593 * arch-utils.c: Include "sim-regno.h".
3594 * gdbarch.sh: Don't include "sim-regno.h".
3595 * gdbarch.h, gdbarch.c: Regenerate.
3596 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3597 here.
3598 * arch-utils.h (legacy_register_sim_regno): To here.
3599 * remote-sim.c (legacy_register_sim_regno): Move function from
3600 here.
3601 * arch-utils.c (legacy_register_sim_regno): To here.
3602
8238d0bf
AC
36032002-05-28 Andrew Cagney <ac131313@redhat.com>
3604
3605 * sim-regno.h: New file.
3606 * Makefile.in (sim_regno_h): Define.
3607 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3608 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3609 (legacy_register_sim_regno): New function.
3610 (one2one_register_sim_regno): New function.
3611 (gdbsim_fetch_register): Rewrite.
3612 (gdbsim_store_register): Only store a register when
3613 REGISTER_SIM_REGNO is valid.
3614 * d10v-tdep.c: Include "sim-regno.h".
3615 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3616 (d10v_ts3_register_sim_regno): Ditto.
3617 * gdbarch.sh: Include "sim-regno.h".
3618 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3619 * gdbarch.h, gdbarch.c: Regenerate.
3620 * arch-utils.h (default_register_sim_regno): Delete declaration.
3621 * arch-utils.c (default_register_sim_regno): Delete function.
3622
485721b1
JT
36232002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3624
3625 * ppcnbsd-nat.c: Rewrite.
3626 * ppcnbsd-tdep.c: New file.
3627 * ppcnbsd-tdep.h: New file.
3628 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3629 solib.o, and solib-svr4.o.
3630 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3631 nbsd-tdep.o, and corelow.o.
3632
697f244d
AC
36332002-05-28 Andrew Cagney <ac131313@redhat.com>
3634
3635 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3636 `tr' and `sed'. Mention that `broken' targets are not expected to
3637 build.
3638
f08caad1 36392002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
3640
3641 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3642 Let PC point right after the prologue before looking up symbols.
3643
3139facc
MH
36442002-05-27 Martin M. Hunt <hunt@redhat.com>
3645
3646 * i386-tdep.c (i386_register_virtual_type): Return
3647 builtin_type_vec128i for SSE registers.
3648
3649 * gdbtypes.h (builtin_type_vec128i): Declare.
3650
3651 * gdbtypes.c (build_builtin_type_vec128i): New function.
3652 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3653 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3654 (build_gdbtypes): Initialize new builtin vector types.
3655 (_initialize_gdbtypes): Register new vector types with gdbarch.
3656
6e3ba3b8
JT
36572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3658
3659 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3660 since it has been multi-arch'd.
3661 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3662 Move Alpha and VAX multi-arch news entries to same section
3663 as other multi-arch news.
3664
93d5585d
JT
36652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3666
3667 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3668 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3669 static. Rename some register numbers to put them in ns32k-tdep
3670 private namespace.
3671 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3672 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3673 functions.
3674 (_initialize_ns32k_tdep): Use gdbarch_register.
3675 * ns32k-tdep.h: New file.
3676 * ns32knbsd-tdep.c: New file.
3677 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3678 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3679 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3680 REGISTER_BYTES, REGISTER_BYTE): Remove.
3681 * config/ns32k/tm-ns32k.h: New file.
3682 * config/ns32k/tm-umax.h: Remove.
3683
efb2c70e
JT
36842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3685
3686 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3687 ns32k_store_struct_return, ns32k_extract_return_value,
3688 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3689 functions.
3690 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3691 ns32k_saved_pc_after_call.
3692 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3693 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3694 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3695 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3696 ns32k_extract_struct_value_address.
3697
7bcc927b
JT
36982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3699
3700 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3701 ns32k_fix_call_dummy): New.
3702 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3703 ns32k_call_dummy_words.
3704 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3705 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3706 CALL_DUMMY_NARGS): Remove.
3707 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3708
78f9d765
JT
37092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3710
3711 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3712 ns32k_frame_saved_pc, ns32k_frame_args_address,
3713 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3714 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3715 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3716 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3717 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3718 (BREAKPOINT): Remove..
3719 (FRAME_CHAIN): Define as ns32k_frame_chain.
3720 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3721 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3722 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3723 (FRAME_FIND_SAVED_REGS): Remove.
3724 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3725 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3726 (POP_FRAME): Define as ns32k_pop_frame.
3727
f2c762e0
JT
37282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3729
3730 * ns32k-tdep.c (ns32k_register_byte_32082,
3731 ns32k_register_byte_32382, ns32k_register_raw_size,
3732 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3733 functions.
3734 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3735 ns32k_register_byte_32382.
3736 * config/ns32k/tm-umax.h: Update copyright years.
3737 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3738 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3739 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3740 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3741 (ns32k_get_enter_addr): Fix prototype.
3742
af137673
JT
37432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3744
3745 * ns32k-tdep.c: Update copyright years.
3746 (ns32k_register_name_32082): New function.
3747 (ns32k_register_name_32382): Ditto.
3748 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3749 (REGISTER_NAME): Define as ns32k_register_name_32382.
3750 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3751 (REGISTER_NAME): Define as ns32k_register_name_32082.
3752
a8bc7b56
JB
37532002-05-24 Jim Blandy <jimb@redhat.com>
3754
3755 * dwarf2read.c (free_line_header): Use xfree, not free.
3756
83a45910
JT
37572002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3758
3759 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3760 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3761
0db71247
AC
37622002-05-23 Andrew Cagney <ac131313@redhat.com>
3763
3764 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3765
b9e5e4dd
AC
37662002-05-23 Andrew Cagney <ac131313@redhat.com>
3767
3768 From Ross Alexander at NEC Europe:
3769 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3770
de530e84
MS
37712002-05-23 Michael Snyder <msnyder@redhat.com>
3772
3773 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3774 for input, rather than parse_and_eval_address.
3775
b91b96f4
AC
37762002-05-23 Andrew Cagney <ac131313@redhat.com>
3777
3778 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3779 * Makefile.in (sim_d10v_h): Update definition.
3780
8b279e7a
AC
37812002-05-24 Andrew Cagney <cagney@redhat.com>
3782
3783 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3784 change `2002-05-22 Michael Snyder' below.
3785 (d10v_push_arguments): Ditto.
3786 (d10v_extract_return_value): Ditto.
3787
0a3d0425
JB
37882002-05-23 Jim Blandy <jimb@redhat.com>
3789
3790 * macrotab.c (check_for_redefinition): Don't complain if the new
3791 definition is the same as the previous one. Take more arguments
3792 to allow the comparison.
3793 (macro_define_object, macro_define_function): Pass more arguments
3794 to check_for_redefinition.
3795
78eac43e
MS
37962002-05-22 Michael Snyder <msnyder@redhat.com>
3797
3798 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3799 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3800 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3801 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3802 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3803 Add a temp variable to save a call (and a memory read).
3804 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3805 if possible (so that PC_IN_CALL_DUMMY will work).
3806
9bc1edb8
CV
38072002-05-22 Corinna Vinschen <vinschen@redhat.com>
3808
3809 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3810
005ef3d2
ML
38112002-05-22 Michal Ludvig <mludvig@suse.cz>
3812
3813 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3814 fde->cie_ptr.
3815 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3816 (dwarf2_build_frame_info): Add offset to fde->initial_location
3817 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
3818 (execute_stack_op): Change type of 'result' from ULONGEST to
3819 CORE_ADDR.
005ef3d2 3820
fcf4f891
JT
38212002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3822
3823 * config/alpha/tm-nbsd.h: Include solib.h.
3824
cfef91e4
JT
38252002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3826
3827 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3828 assumptions about the host's byte order.
3829
9964235a
JT
38302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3831
3832 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3833 to dependency list.
3834 * alphanbsd-tdep.c: Include solib-svr4.h.
3835 * shnbsd-tdep.c: Ditto.
3836
9eeef8ef
JT
38372002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3838
3839 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3840 nbsd-tdep.h to dependency list.
3841 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3842 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3843 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3844 nbsdaout.mh and nbsdelf.mh consistently.
3845 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3846 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3847 nbsdaout.mt and nbsdelf.mh consistently.
3848 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3849 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3850 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3851 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3852 a.out shared library stuff from here...
3853 * config/nm-nbsdaout.h: ...to here.
3854 * config/tm-nbsd.h: Remove.
3855 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3856 * config/arm/nbsd.mh: Remove.
3857 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3858 nbsd-tdep.o.
3859 * config/arm/nbsdaout.mh: New file.
3860 * config/arm/nbsdelf.mh: New file.
3861 * config/arm/nm-nbsdaout.h: New file.
3862 * config/i386/nbsd.mh: Remove.
3863 * config/i386/nbsd.mt: Remove.
3864 * config/i386/nbsdaout.mh: New file.
3865 * config/i386/nbsdaout.mt: New file.
3866 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3867 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3868 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3869 i386_register_u_addr): Remove.
3870 * config/i386/nm-nbsdaout.h: New file.
3871 * config/i386/nm-nbsdelf.h: Remove.
3872 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3873 (USE_STRUCT_CONVENTION): Remove.
3874 * config/i386/tm-nbsdaout.h: New file.
3875 * config/i386/tm-nbsdelf.h: Remove.
3876 * config/m68k/nbsd.mh: Remove.
3877 * config/m68k/nbsd.mt: Remove.
3878 * config/m68k/nbsdaout.mh: New file.
3879 * config/m68k/nbsdaout.mt: New file.
3880 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3881 * config/m68k/nm-nbsdaout.h: New file.
3882 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3883 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3884 * config/ns32k/nbsd.mh: Remove.
3885 * config/ns32k/nbsd.mt: Remove.
3886 * config/ns32k/nbsdaout.mh: New file.
3887 * config/ns32k/nbsdaout.mt: New file.
3888 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3889 * config/ns32k/nm-nbsdaout.h: New file.
3890 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3891 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3892 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3893 (SVR4_SHARED_LIBS): Remove.
3894 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3895 * config/sparc/nbsd.mh: Remove.
3896 * config/sparc/nbsd.mt: Remove.
3897 * config/sparc/nbsdaout.mh: New file.
3898 * config/sparc/nbsdaout.mt: New file.
3899 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3900 * config/sparc/nbsdelf.mt: New file.
3901 * config/sparc/nm-nbsdaout.h: New file.
3902 * config/sparc/nm-nbsdelf.h: Remove.
3903 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3904 * config/sparc/tm-nbsdaout.h: New file.
3905
257ce470
JT
39062002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3907
3908 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3909 mipsnbsd-tdep.c
3910 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3911
76a6d5fe
JT
39122002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3913
3914 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3915 shnbsd-nat.c.
3916 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3917
45888261
JT
39182002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3919
3920 * NEWS: Note new MIPS NetBSD native configuration.
3921 * configure.host (mips*-*-netbsd*): New host.
3922 * configure.tgt (mips*-*-netbsd*): New target.
3923 * mipsnbsd-nat.c: New file.
3924 * mipsnbsd-tdep.c: New file.
3925 * mipsnbsd-tdep.h: New file.
3926 * config/mips/nbsd.mh: New file.
3927 * config/mips/nbsd.mt: New file.
3928 * config/mips/nm-nbsd.h: New file.
3929 * config/mips/tm-nbsd.h: New file.
3930
70f80edf
JT
39312002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3932
3933 * Makefile.in (SFILES): Add osabi.c.
3934 (COMMON_OBS): Add osabi.o.
3935 (osabi.o): New dependency list.
3936 * osabi.c: New file.
3937 * osabi.h: New file.
3938 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3939
3940 * Makefile.in (alpha_tdep_h): Define and use instead of
3941 alpha-tdep.h.
3942 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3943 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3944 Remove.
3945 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3946 * alpha-tdep.h: Include osabi.h.
3947 (alpha_abi): Remove.
3948 (gdbarch_tdep): Use generic OS ABI framework.
3949 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3950 gdbarch_register_osabi.
3951 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3952 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3953 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3954
3955 * Makefile.in (sh_tdep_h): Add osabi.h.
3956 * sh-tdep.h (sh_osabi): Remove.
3957 (gdbarch_tdep): Use generic OS ABI framework.
3958 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3959 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3960 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3961 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3962
3963 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3964 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3965 gdbarch_register_osabi.
3966 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3967 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3968 (get_elfosabi): Rename to...
3969 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3970 ABI framework support routines.
3971 (arm_gdbarch_init): Use generic OS ABI framework.
3972 (arm_dump_tdep): Likewise.
3973 (_initialize_arm_tdep): Likewise.
3974 * arm-tdep.h: Include osabi.h.
3975 (arm_abi): Remove.
3976 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3977 osabi member.
3978 (arm_gdbarch_register_os_abi): Remove prototype.
3979 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3980 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3981
3982 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3983 * mips-tdep.c: Include osabi.h.
3984 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3985 OS ABI framework.
3986
d194345b
KH
39872002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3988
3989 * h8300-tdep.c: Fix formatting.
3990
70c6b0d1
EZ
39912002-05-20 Elena Zannoni <ezannoni@redhat.com>
3992
3993 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3994 printing vector registers.
3995
165b8e33
AC
39962002-05-19 Andrew Cagney <ac131313@redhat.com>
3997
3998 From Fernando Nasser:
3999 * remote.c (remote_async_open_1): Re-throw the exception when the
4000 connection fails.
4001 (remote_cisco_open): Ditto.
4002 (remote_open_1): Ditto.
4003
36918e70
AC
40042002-05-19 Andrew Cagney <ac131313@redhat.com>
4005
4006 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4007 (remote_start_remote): Add uiout parameter. Pass through to
4008 remote_start_remote_dummy.
4009 (remote_open_1): Use catch_exception instead of catch_errors.
4010 (remote_async_open_1): Ditto.
4011 (remote_cisco_open): Ditto.
4012
ae44c0c4
AC
40132002-05-19 Andrew Cagney <ac131313@redhat.com>
4014
4015 * remote.c (remote_start_remote): Replace PTR with void pointer.
4016 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4017 static.
4018
8efe637d
AC
40192002-05-18 Andrew Cagney <ac131313@redhat.com>
4020
4021 * gdb_indent.sh: Allow the script to be run in the sim directory.
4022
2f1b5984
MK
40232002-05-18 Mark Kettenis <kettenis@gnu.org>
4024
f0f625e2
MK
4025 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4026 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4027
2f1b5984
MK
4028 * corelow.c (core_open): Only call set_gdbarch_from_file if
4029 exec_bfd is NULL.
4030
fc974602
AV
40312002-05-17 Andrey Volkov <avolkov@transas.com>
4032
4033 * h8300-tdep.c: Add support of EXR register
4034 * config/h8300/tm-h8300.h: Ditto.
4035
906709f4
AV
40362002-05-17 Andrey Volkov <avolkov@transas.com>
4037
4038 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4039
6e591d68
AV
40402002-05-17 Andrey Volkov <avolkov@transas.com>
4041
4042 * h8300-tdep.c: Change literal regnums to REGNO.
4043
84f0252a
JB
40442002-05-17 Jim Blandy <jimb@redhat.com>
4045
e0e9281e
JB
4046 * NEWS: Note addition of macro support.
4047
84f0252a
JB
4048 Expand preprocessor macros in C expressions.
4049 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4050 (scan_macro_expansion, scanning_macro_expansion,
4051 finished_macro_expansion): New function declarations.
4052 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4053 variable declarations.
4054 * parser-defs.h (expression_context_pc): New declaration.
4055 * parse.c (expression_context_pc): New variable.
4056 (parse_exp_1): Set expression_context_pc, as well as
4057 expression_context_block.
4058 * c-exp.y (yylex): If we're not already reading the result of a
4059 macro expansion, try to macro-expand the next token. When we're
4060 done scanning a macro expansion, switch back to the mainline text.
4061 Commas and `if's in a macro's expansion don't terminate the input.
4062 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4063 (macro_original_text, macro_expanded_text,
4064 expression_macro_lookup_func, expression_macro_lookup_baton): New
4065 variables.
4066 (scan_macro_expansion, scanning_macro_expansion,
4067 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4068 c_preprocess_and_parse): New functions.
4069 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4070 c_preprocess_and_parse, instead of c_parse.
4071 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4072 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4073
1c509ca8
JR
4074Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4075
4076 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4077 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4078 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4079
2250ee0c
CV
40802002-05-17 Corinna Vinschen <vinschen@redhat.com>
4081
4082 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4083
ab3b8126
JT
40842002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4085
4086 * Makefile.in (sh_tdep_h): Define and use.
4087 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4088 register enum): Move to...
4089 * * sh-tdep.h: ...here.
4090 * sh-tdep.c: Include sh-tdep.h.
4091 * sh3-rom.c: Likewise.
4092 * shnbsd-tdep.c: Likewise.
4093
ed9d4749
MS
40942002-05-16 Michael Snyder <msnyder@redhat.com>
4095
4096 * arm-tdep.c: Spelling fix in comment.
4097
2e276125
JB
40982002-05-16 Jim Blandy <jimb@redhat.com>
4099
6821892e
JB
4100 Add commands for manually expanding macros and showing their
4101 definitions.
4102 * macrocmd.c, macroscope.c, macroscope.h: New files.
4103 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4104 (macroscope_h): New variable.
4105 (HFILES_NO_SRCDIR): Add macroscope.h.
4106 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4107 (macroscope.o, macrocmd.o): New rules.
4108
2e276125
JB
4109 Teach the Dwarf 2 reader to read macro information.
4110 * dwarf2read.c: #include "macrotab.h".
4111 (dwarf_macinfo_buffer): New variable.
4112 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4113 dwarf_macinfo_size.
4114 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4115 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4116 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4117 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4118 dwarf2_macro_spaces_in_definition): New complaints.
4119 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4120 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4121 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4122 the partial symbol table.
4123 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4124 from what's recorded in the partial symbol table.
4125 (read_file_scope): If the compilation unit has a
4126 `DW_AT_macro_info' attribute, read its macro information.
4127 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4128
2f53fe6c
DJ
41292002-05-16 Daniel Jacobowitz <drow@mvista.com>
4130
4131 Fix PR gdb/546
4132 * ser-tcp.c: Don't include <netinet/udp.h>.
4133
2be99286
SC
41342002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4135
4136 * MAINTAINERS: Update my email address.
4137
c9af212b 41382002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4139
4140 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4141 include file of the same name.
4142
bf5f1a52
CV
41432002-05-16 Corinna Vinschen <vinschen@redhat.com>
4144
4145 * configure.tgt: Mark v850 as multi-arched.
4146 * config/v850/tm-v850.h: Remove file.
4147 * config/v850/v850.mt: Eliminate TM_FILE.
4148
435e042a
CV
41492002-05-16 Corinna Vinschen <vinschen@redhat.com>
4150
4151 * v850-tdep.c: Full multi-arch.
4152 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4153 Define GDB_MULTI_ARCH to 2.
4154
9819c6c8
PM
41552002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4156
4157 * p-exp.y (current_type): New static variable.
4158 Carries the type of the expression at the position that is parsed.
4159 (push_current_type, pop_current_type): Two new functions. Used
4160 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4161 (search_field): New static variable. Set to one after parsing a point
4162 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4163 (FIELDNAME): New token. After a point only a token belonging to
4164 current_type type definition is allowed.
4165 (all over token rules): reset and change current_type according
4166 to rules.
4167 (exp '[' rule): insert implicit array index field if
4168 exp is a pascal string type.
4169
3a06899a
CV
41702002-05-16 Corinna Vinschen <vinschen@redhat.com>
4171
4172 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4173 frame info. Use frame_info's saved_regs instead of matching member
4174 in extra_frame_info throughout.
4175 (v850_frame_init_saved_regs): New function.
4176 (v850_init_extra_frame_info): Move most functionality into
4177 v850_frame_init_saved_regs().
4178 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4179 (v850_frame_find_saved_regs): Remove declaration.
4180 (FRAME_FIND_SAVED_REGS): Remove definition.
4181 (v850_frame_init_saved_regs): Add declaration.
4182 (FRAME_INIT_SAVED_REGS): Add definition.
4183
6ed14b0e
CV
41842002-05-16 Corinna Vinschen <vinschen@redhat.com>
4185
4186 * v850-tdep.c: Begin multi-arch'ing v850.
4187 (v850_target_architecture_hook): Remove function.
4188 (v850_gdbarch_init): New function. Add code previously in
4189 v850_target_architecture_hook().
4190 (_initialize_v850_tdep): Don't set target_architecture_hook.
4191 Call register_gdbarch_init() instead.
4192
42725910
DJ
41932002-05-16 Daniel Jacobowitz <drow@mvista.com>
4194
4195 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4196 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4197 (fixup_class_method_type): Likewise.
4198
0bc68c49
DJ
41992002-05-15 Daniel Jacobowitz <drow@mvista.com>
4200
4201 From Martin Pool <mbp@samba.org>:
4202 * gdbserver/server.c (gdbserver_usage): New function.
4203 (main): Call it.
4204
99d9066e
JB
42052002-05-15 Jim Blandy <jimb@redhat.com>
4206
4207 Add macro structures to GDB's symbol tables. Nobody puts anything
4208 in them yet.
4209 * symtab.h (struct symtab): New member: `macro_table'.
4210 * buildsym.h (pending_macros): New global variable.
4211 * buildsym.c: #include "macrotab.h".
4212 (buildsym_init): Initialize `pending_macros'.
4213 (end_symtab): If we found macro information while reading a CU's
4214 debugging info, do build a symtab structure for it. Make the
4215 symtab point to the macro information, and clear the
4216 `pending_macros' pointer which held it while we were reading the
4217 debug info.
4218 (really_free_pendings): Free any pending macro table.
4219 * objfiles.h (struct objfile): New member: `macro_cache'.
4220 * objfiles.c (allocate_objfile): Set allocate and free functions
4221 for the macro cache's objstack.
4222 (free_objfile): Empty the macro cache's obstack.
4223 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4224 set new allocate and free functions for it.
4225 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4226 free functions for the macro cache's objstack. (Why is this
4227 function building its own objfile?)
4228 * symmisc.c (print_objfile_statistics): Print statistics on the
4229 macro bcache.
4230 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4231
c899585b
RE
42322002-05-15 Richard Earnshaw <rearnsha@arm.com>
4233
4234 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4235 (REGISTER_U_ADDR): Delete definition.
4236 (arm_register_u_addr): Delete declaration.
4237
a6cdd8c5
RE
42382002-05-15 Richard Earnshaw <rearnsha@arm.com>
4239
4240 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4241 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4242
fd3a5ca1
DJ
42432002-05-14 Daniel Jacobowitz <drow@mvista.com>
4244
4245 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4246 stop_at -> stop_pc.
4247
c97dcfc7
AC
42482002-05-14 Andrew Cagney <ac131313@redhat.com>
4249
4250 * regcache.c (register_valid): Revise comments refering to "Not
4251 available" and "unavailable".
4252 * frame.c (frame_register_read): Ditto.
4253 * findvar.c (value_of_register): Ditto.
4254
93021b7d
AC
42552002-05-15 Andrew Cagney <cagney@redhat.com>
4256
4257 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4258 (remote-sim.o): Update dependencies.
4259 (d10v-tdep.o): Specify dependencies.
4260 (sim_d10v_h): Define.
4261
a86bc61c
JB
42622002-05-14 Jim Blandy <jimb@redhat.com>
4263
4264 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4265 * macrotab.c (macro_lookup_inclusion, find_definition,
4266 new_macro_table): Same.
4267
4268 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4269 not `! strcmp ()'. This is a dubious improvement.
4270 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4271
4272 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4273 although it's not necessary, to avoid a warning.
4274
2fdde8f8
DJ
42752002-05-14 Daniel Jacobowitz <drow@mvista.com>
4276
4277 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4278 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4279 TYPE_INSTANCE_FLAGS.
4280 (struct main_type): New.
4281 (struct type): Move most members to struct main_type. Change
4282 cv_type and as_type to new type_chain member. Add instance_flags.
4283 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4284 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4285 (finish_cv_type): Remove prototype.
4286 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4287 Set TYPE_CHAIN.
4288 (alloc_type_instance): New function.
4289 (smash_type): New function.
4290 (make_pointer_type, make_reference_type, make_function_type)
4291 (smash_to_member_type, smash_to_method_type): Call smash_type.
4292 (make_qualified_type): New function.
4293 (make_type_with_address_space): Call make_qualified_type.
4294 (make_cv_type): Likewise.
4295 (finish_cv_type): Remove unnecessary function.
4296 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4297 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4298 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4299 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4300 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4301 * hpread.c (hpread_read_struct_type): Likewise.
4302 * stabsread.c (read_struct_type): Likewise.
4303
843fedf4
EZ
43042002-05-14 Elena Zannoni <ezannoni@redhat.com>
4305
4306 * configure.tgt: Add a catch all sh* target, for cases like
4307 sh[2,3,4]-elf and sh-hms.
4308
05a6c72c
KS
43092002-05-14 Keith Seitz <keiths@redhat.com>
4310
4311 * event-loop.c (create_file_handler): Don't do anything but
4312 update data when we are given a fd which we are already
4313 monitoring.
4314
5d085aaf
ML
43152002-05-14 Michal Ludvig <mludvig@suse.cz>
4316
4317 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4318 (update_context): Use __func__ in warnings.
4319
9db8d71f
DJ
43202002-05-14 Daniel Jacobowitz <drow@mvista.com>
4321
4322 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4323 and tcp_close to net_open and net_close.
4324 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4325 using UDP if requested. Don't try to disable Nagle on UDP
4326 sockets.
4327 * remote.c (remote_serial_open): New function. Warn about UDP.
4328 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4329
5dbc6baa
EZ
43302002-05-13 Elena Zannoni <ezannoni@redhat.com>
4331
4332 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4333
cc3023f7
EZ
43342002-05-13 Elena Zannoni <ezannoni@redhat.com>
4335
4336 * configure.tgt: Remove sh-hms target.
4337 * MAINTAINERS: Don't list sh-hms as a separate target.
4338
ec2bcbe7
JB
43392002-05-13 Jim Blandy <jimb@redhat.com>
4340
4341 Add first preprocessor macro-expansion files.
4342 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4343 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4344 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4345 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4346 (COMMON_OBS): Add macrotab.o, macroexp.o.
4347 (macroexp.o, macrotab.o): New rules.
4348
6d531722
AC
43492002-05-13 Andrew Cagney <ac131313@redhat.com>
4350
4351 * config/m88k/tm-m88k.h: Update copyright.
4352 (m88k_target_write_pc): Declare
4353 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4354 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4355 (SHIFT_INST_REGS): Update definition.
4356 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4357 using old definition of TARGET_WRITE_PC.
4358 * regcache.c (generic_target_write_pc): Delete code handling
4359 NNPC_REGNUM.
4360 * gdbarch.sh (NNPC_REGNUM): Delete.
4361 * gdbarch.h, gdbarch.c: Regenerate.
4362
3e3f2739
RE
43632002-05-13 Richard Earnshaw <rearnsha@arm.com>
4364
4365 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4366 builtin reg number.
4367
0004e5a2
DJ
43682002-05-13 Daniel Jacobowitz <drow@mvista.com>
4369
4370 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4371 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4372 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4373 access macros.
4374 * c-typeprint.c (cp_type_print_method_args): Likewise.
4375 (c_type_print_args): Likewise.
4376 * d10v-tdep.c (d10v_push_arguments): Likewise.
4377 (d10v_extract_return_value): Likewise.
4378 * expprint.c (print_subexp): Likewise.
4379 * gdbtypes.c (lookup_primitive_typename): Likewise.
4380 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4381 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4382 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4383 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4384 (TYPE_VECTOR): Likewise.
4385 * hpread.c (hpread_read_struct_type)
4386 (fix_static_member_physnames, fixup_class_method_type)
4387 (hpread_type_lookup): Likewise.
4388 * mdebugread.c (parse_symbol, parse_type): Likewise.
4389 * p-lang.c (is_pascal_string_type): Likewise.
4390 * valops.c (hand_function_call): Likewise.
4391 * x86-64-tdep.c (classify_argument): Likewise.
4392
4393 * hpread.c (hpread_read_function_type)
4394 (hpread_read_doc_function_type): Call replace_type.
4395 * dstread.c (create_new_type): Delete.
4396 (decode_dst_structure, process_dst_function): Call alloc_type.
4397 Use type access macros.
4398
dff95cc7
MK
43992002-05-12 Mark Kettenis <kettenis@gnu.org>
4400
4401 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4402 the're not supported by the current architecture.
4403 (i387_fill_fxsave): Likewise.
4404
bbcd32ad
FF
44052002-05-12 Fred Fish <fnf@redhat.com>
4406
4407 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4408 sect_index_xxx members to index the first slot in section_offsets
4409 if all of the section_offsets are zero.
4410
89cf4787
MK
44112002-05-12 Mark Kettenis <kettenis@gnu.org>
4412
4413 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4414 checked in with last change.
4415
1f77ffc5
MK
44162002-05-12 Mark Kettenis <kettenis@gnu.org>
4417
4418 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4419 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4420 config.sub.
4421
89b8b4a9
DJ
44222002-05-12 Daniel Jacobowitz <drow@mvista.com>
4423
4424 * Makefile.in: Update dependencies.
4425
14a5e767
AC
44262002-05-11 Andrew Cagney <ac131313@redhat.com>
4427
4428 * language.c (local_hex_string_custom): Simplify. Do not depend
4429 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4430
4431 * memattr.c (mem_info_command): Replace calls to
4432 longest_local_hex_string and longest_local_hex_string_custom.
4433 * buildsym.c (make_blockvector): Ditto.
4434 * solib.c (info_sharedlibrary_command): Ditto.
4435 * tracepoint.c (tracepoints_info): Ditto.
4436 * symtab.c (print_msymbol_info): Ditto.
4437
4438 * language.c (local_hex_string): Delete.
4439 (local_hex_string_custom): Delete.
4440 (longest_local_hex_string): Rename to local_hex_string.
4441 (longest_local_hex_string_custom): Rename to
4442 local_hex_string_custom.
4443 * language.h (local_hex_string): Change parameter type to LONGEST.
4444 (local_hex_string_custom): Ditto.
4445 (longest_local_hex_string): Delete declaration.
4446 (longest_local_hex_string_custom): Ditto.
4447
4448 * solib.c: Update copyright.
4449 * memattr.c: Update copyright.
4450
13d01224
AC
44512002-05-11 Andrew Cagney <ac131313@redhat.com>
4452
4453 * arch-utils.h (legacy_register_to_value): Declare.
4454 (legacy_value_to_register): Declare.
4455 (legacy_convert_register_p): Declare.
4456 * arch-utils.c (legacy_register_to_value): New function.
4457 (legacy_value_to_register): New function.
4458 (legacy_convert_register_p): New function.
4459
4460 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4461 (VALUE_TO_REGISTER): Define.
4462 (CONVERT_REGISTER_P): Define.
4463 * gdbarch.h, gdbarch.c: Regenerate.
4464
4465 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4466 VALUE_TO_REGISTER.
4467 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4468 CONVERT_REGISTER_P.
4469
4a1970e4
DJ
44702005-05-11 Daniel Jacobowitz <drow@mvista.com>
4471 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4472
4473 * Makefile.in: Update dependencies for valops.c.
4474 * valops.c: Include "gdb_assert.h".
4475 (typecmp): Skip THIS parameter to methods.
4476 (find_method_list): Remove static_memfuncp argument,
4477 update callers. Check for stub methods.
4478 (find_value_oload_method_list): Don't set *static_memfuncp.
4479 (find_overload_match): Don't check for stub methods. Assert
4480 that methods are not stubbed. Handle static methods.
4481 (value_find_oload_method_list): Remove static_memfuncp argument.
4482 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4483 to the argument list for static stub methods.
4484 * value.h (value_find_oload_method_list): Update prototype.
4485
b2e75d78
AC
44862002-05-11 Andrew Cagney <ac131313@redhat.com>
4487
4488 * arch-utils.h (generic_register_size): Declare.
4489 (generic_register_raw_size, generic_register_virtual_size): Delete
4490 declarations.
4491 * arch-utils.c (generic_register_raw_size): Delete.
4492 (generic_register_size): New function.
4493 (generic_register_virtual_size): Delete.
4494
4495 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4496 default generic_register_size.
4497 * gdbarch.h, gdbarch.c: Re-generate.
4498
4499 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4500 register_virtual_size.
4501 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4502 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4503
451fbdda
AC
45042002-05-11 Andrew Cagney <ac131313@redhat.com>
4505
4506 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4507 * gdbarch.h, gdbarch.c: Regenerate.
4508 * gnu-v3-abi.c: Update copyright.
4509 (vtable_address_point_offset): Update.
4510 (gnuv3_rtti_type): Update.
4511 (gnuv3_baseclass_offset): Update.
4512 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4513 (init_fetch_link_map_offsets): Update.
4514 * remote.c (get_remote_state): Update.
4515
6d2f5cea
DJ
45162002-05-11 Daniel Jacobowitz <drow@mvista.com>
4517
4518 * TODO: Remove value_headof/value_from_vtable_info comment.
4519 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4520 * values.c (value_headof, value_from_vtable_info): Delete.
4521 * value.h (value_from_vtable_info): Delete prototype.
4522
d2324da4
AC
45232002-05-11 Andrew Cagney <ac131313@redhat.com>
4524
4525 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4526 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4527 $(gdb_regex_h).
4528 (gdb_assert_h): Define.
4529 (gdb_wait_h): Define.
4530 (gdb_regex_h): Define.
4531
5c717440
DJ
45322002-05-11 Daniel Jacobowitz <drow@mvista.com>
4533
4534 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4535 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4536
6c7861b3
JT
45372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4538
4539 * nbsd-tdep.c: Fix comment.
4540
ea5bc2a6
JT
45412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4542
4543 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4544 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4545 (nbsd-tdep.o): New dependency list.
4546 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4547 nbsd-tdep.h.
4548 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4549 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4550 * nbsd-tdep.c: New file.
4551 * nbsd-tdep.h: New file.
4552 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4553 nbsd-tdep.h.
4554 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4555 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4556 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4557 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4558
b28da865
JT
45592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4560
4561 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4562 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4563 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4564 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4565 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4566 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4567
4b8ff1fa
JT
45682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4569
4570 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4571 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4572 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4573 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4574 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4575 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4576 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4577
dfe6eb1f
JT
45782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4579
4580 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4581 fetch_elfcore_registers to...
4582 * i386nbsd-tdep.c: ...here.
4583 (i386nbsd_use_struct_convention): Rename to...
4584 (i386nbsd_aout_use_struct_convention): ...this.
4585 (i386nbsd_supply_reg): New function.
4586 (i386nbsd_fill_reg): New function.
4587 (fetch_core_registers): Use i386nbsd_supply_reg.
4588 (fetch_elfcore_registers): Likewise.
4589 (_initialize_i386nbsd_tdep): New function.
4590 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4591 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4592 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4593 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4594 (i386nbsd_aout_use_struct_convention): ...this.
4595
20cb8cda
JT
45962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4599 (store_inferior_registers): Use shnbsd_fill_reg.
4600 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4601 sh_nbsd_supply_register): Collapse into...
4602 (shnbsd_supply_reg): ...this.
4603 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4604 (shnbsd_fill_reg): ...this.
4605 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4606 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4607 (fetch_core_registers): Use shnbsd_supply_reg.
4608 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4609 (sh_nbsd_core_fns): Rename to...
4610 (shnbsd_core_fns): ...this.
4611 (sh_nbsd_elfcore_fns): Rename to...
4612 (shnbsd_elfcore_fns): ...this.
4613 (sh_nbsd_init_abi): Rename to...
4614 (shnbsd_init_abi): ...this.
4615 (_initialize_sh_nbsd_tdep): Rename to...
4616 (_initialize_shnbsd_tdep): ...this.
4617 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4618 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4619 sh_nbsd_fill_register): Remove prototypes.
4620 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4621
e750d25e
JT
46222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4623
4624 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4625 (i387-nat.o): Delete dependency list.
4626 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4627 (x86-64-linux-nat.o): Likewise.
4628 * i387-nat.c: Delete file, moving contents to...
4629 * i387-tdep.c: ...here.
4630 * i387-nat.h: Rename...
4631 * i387-tdep.h: ...to this.
4632 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4633 * i386-linux-nat.c: Likewise.
4634 * i386bsd-nat.c: Likewise.
4635 * i386gnu-nat.c: Likewise.
4636 * i386nbsd-nat.c: Likewise.
4637 * i386v4-nat.c: Likewise.
4638 * x86-64-linux-nat.c: Likewise.
4639 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4640 * config/i386/go32.mh (NATDEPFILES): Likewise.
4641 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4642 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4643 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4644 * config/i386/linux.mh (NATDEPFILES): Likewise.
4645 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4646 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4647 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4648 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4649
1aee598a
JT
46502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4651
4652 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4653 (alphanbsd-nat.o): Remove dependency list.
4654 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4655 * alphanbsd-nat.c: Delete. Contents moved to...
4656 * alphanbsd-tdep.c: ...here.
4657 (_initialize_alphanbsd_tdep): Register core functions.
4658 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4659
12bcb0fe
JT
46602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4661
4662 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4663 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4664 (alphanbsd-nat.o): Likewise.
4665 (alphabsd-tdep.o): New dependency list.
4666 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4667 (fill_gregset): Use alphabsd_fill_reg.
4668 (supply_fpregset): Use alphabsd_supply_fpreg.
4669 (fill_fpregset): Use alphabsd_fill_fpreg.
4670 (fetch_inferior_registers): Use struct reg and struct fpreg
4671 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4672 and alphabsd_supply_fpreg.
4673 (store_inferior_registers): Use struct reg and struct fpreg
4674 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4675 and alphabsd_fill_fpreg.
4676 * alphabsd-tdep.c: New file.
4677 * alphabsd-tdep.h: New file.
4678 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4679 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4680 alphabsd_supply_fpreg.
4681 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4682 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4683
361d1df0
EC
46842002-05-11 Eric Christopher <echristo@redhat.com>
4685
4686 * mips-tdep.c (mips_double_register_type): Fix thinko.
4687 (mips_single_register_type): Ditto.
4688 * MAINTAINERS: Add self.
4689
92dd7cee
MK
46902002-05-11 Mark Kettenis <kettenis@gnu.org>
4691
4692 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4693 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4694 right thing on architectures with different endianness and/or
4695 integer sizes.
4696
e27da16d
JT
46972002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4698
4699 From Christian Limpach <chris@Pin.LU>
4700 * configure.in: Change sed expression which comments out
4701 NATDEPFILES to also comment out continuation lines.
4702 * configure: Regenerate.
4703
ddde02bd
EZ
47042002-05-10 Elena Zannoni <ezannoni@redhat.com>
4705
4706 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4707 big patch.
4708
1c922164
EZ
47092002-05-10 Elena Zannoni <ezannoni@redhat.com>
4710
4711 * sh-tdep.c: Include correct file.
4712
283150cd
EZ
47132002-05-10 Elena Zannoni <ezannoni@redhat.com>
4714
4715 New support for sh64-elf (sh5) target.
4716
4717 * configure.tgt: For sh64-elf target, default to sh-elf.
4718
4719 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4720 (struct gdbarch_tdep): Add new fields for new registers and ABI
4721 info.
361d1df0 4722
283150cd
EZ
4723 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4724 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4725 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4726 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4727 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4728 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4729 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4730 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4731 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4732 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4733 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4734 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4735 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4736 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4737 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4738 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4739 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4740 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4741 sign_extend, sh64_nofp_frame_init_saved_regs,
4742 sh64_init_extra_frame_info, sh64_get_saved_register,
4743 sh64_extract_struct_value_address, sh64_pop_frame,
4744 sh64_push_arguments, sh64_extract_return_value,
4745 sh64_store_return_value, sh64_show_media_regs,
4746 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4747 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4748 sh_sh64_register_virtual_type,
4749 sh_sh64_register_convert_to_virtual,
4750 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4751 sh64_register_read, sh64_pseudo_register_write,
4752 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4753 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4754 sh64_do_pseudo_register, sh_compact_do_registers_info,
4755 sh64_do_registers_info, sh_gdbarch_init): New functions.
4756
3117ed25
EZ
47572002-05-10 Elena Zannoni <ezannoni@redhat.com>
4758
4759 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4760
2654e6d4
DJ
47612002-05-10 Daniel Jacobowitz <drow@mvista.com>
4762
4763 * linespec.c (decode_line_1): Check for a double quote after
4764 a filename correctly.
4765
9ab3e532
JB
47662002-05-10 Jim Blandy <jimb@redhat.com>
4767
4768 Properly track the size of the current objfile's .debug_line section.
4769 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4770 (DWARF_LINE_SIZE): New macro.
4771 (dwarf2_build_psymtabs_hard): Record the line section's size in
4772 the partial symbol table.
4773 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4774 symbol table.
4775
126fa72d
PS
47762002-05-10 Petr Sorfa <petrs@caldera.com>
4777
4778 * ia64-tdep.c: Handle breakpoints on L instruction type
4779 in MLX instruction bundle by moving the breakpoint to
4780 the third slot (X instruction type) as L holds only data.
4781
1f077a3e
KB
47822002-05-10 Kevin Buettner <kevinb@redhat.com>
4783
4784 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4785 (process_one_symbol): Complain about discarding local symbols
4786 due to a misplaced N_LBRAC entry.
4787
8120c9d5 47882002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
4789
4790 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
4791 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4792 decrease the depth we are at, in the case of templates.
361d1df0 4793
67b2c998
DJ
47942002-05-09 Daniel Jacobowitz <drow@mvista.com>
4795
4796 * mips-tdep.c (mips_float_register_type): New function.
4797 (mips_double_register_type): New function.
4798 (mips_print_register): Use them.
4799 (do_fp_register_row): Likewise.
4800
fd326606
DJ
48012002-05-09 Daniel Jacobowitz <drow@mvista.com>
4802
6609d9af 4803 * signals/signals.c (signals): Remove conditional compilation around
fd326606 4804 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 4805 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 4806
bef35864
MS
48072002-05-09 Michael Snyder <msnyder@redhat.com>
4808
4809 * remote-rdp.c (remote_rdp_can_run): Remove.
4810
c55a3f73
TT
48112002-05-09 Tom Tromey <tromey@redhat.com>
4812
4813 * jv-valprint.c (java_val_print): Handle `char' as a special case
4814 of TYPE_CODE_INT.
4815
b8d5e71d
MS
48162002-05-09 Michael Snyder <msnyder@redhat.com>
4817
4818 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4819 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 4820 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 4821 str r(0123),[sp,#nn].
361d1df0 4822 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
4823 order-independent by placing it in a loop.
4824
e2cd42dd
MS
48252002-05-06 Michael Snyder <msnyder@redhat.com>
4826
4827 * stabsread.c (read_type): Add recognition for new attribute:
4828 "@V;" means that an array type is actually a vector.
4829 This is analogous to the vector flag that's been added to dwarf2.
4830
3ce1502b
MK
48312002-05-09 Mark Kettenis <kettenis@gnu.org>
4832
4833 * i386-tdep.h (i386_abi): New enum.
4834 (struct gdbarch_tdep): Replace os_ident member with abi.
4835 (i386_gdbarch_register_os_abi): New prototype.
4836 * i386-tdep.c (i386_abi_names): New array.
4837 (process_note_abi_tag_sections): Removed.
4838 (process_note_sections): New function.
4839 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4840 (struct i386_abi_handler): New struct.
4841 (i386_abi_handler_list): New variable.
4842 (i386_gdbarch_register_os_abi): New function.
4843 (i386_gdbarch_init): Adapt for the changes given above.
4844
084c156a
DJ
48452002-05-08 Daniel Jacobowitz <drow@mvista.com>
4846
4847 * gregset.h: Say "GNU/Linux".
4848
6599f021
EZ
48492002-05-08 Elena Zannoni <ezannoni@redhat.com>
4850
4851 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4852 (build_gdbtypes): Build builtin_type_v2_float.
4853 (_initialize_gdbtypes): Register new builtin type.
4854
40af4b0c
AC
48552002-05-08 Andrew Cagney <ac131313@redhat.com>
4856
4857 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4858 (clear_gdbarch_swap): New function.
4859 (initialize_non_multiarch): Call.
4860 (gdbarch_update_p): Before calling init(), swap out and clear the
4861 existing architecture.
4862 * gdbarch.c: Regenerate.
4863
4fe84f46
JT
48642002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4865
4866 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4867 alphanbsd-tdep.c.
4868
4015edd1
JT
48692002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4870
4871 * sh-nbsd-nat.c: Rename to...
4872 * shnbsd-nat.c: ...this.
4873 * sh-nbsd-tdep.c: Rename to...
4874 * shnbsd-tdep.c: ...this.
4875 * sh-nbsd-tdep.h: Rename to...
4876 * shnbsd-tdep.h: ...this.
4877 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4878 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4879
0e2bd219
RE
48802002-05-08 Richard Earnshaw <rearnsha@arm.com>
4881
4882 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4883 concatenation for command help messages.
4884
13a38d45
JT
48852002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4886
4887 * NEWS: Note new sh*-*-netbsdelf* configuration.
4888 * configure.host: Set gdb_host_cpu to sh for all sh*.
4889 (sh*-*-netbsdelf*): New host.
4890 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4891 (sh*-*-netbsdelf*): New target.
4892 * sh-nbsd-nat.c: New file.
4893 * sh-nbsd-tdep.c: New file.
4894 * sh-nbsd-tdep.h: New file.
4895 * config/sh/nbsd.mh: New file.
4896 * config/sh/nbsd.mt: New file.
4897 * config/sh/nm-nbsd.h: New file.
4898 * config/sh/tm-nbsd.h: New file.
4899
d658f924
JT
49002002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4901
4902 * sh-tdep.c (sh_osabi_names): Declare.
4903 (process_note_abi_tag_sections): New function.
4904 (get_elfosabi): Ditto.
4905 (sh_gdbarch_register_os_abi): Ditto.
4906 (sh_dump_tdep): Ditto.
4907 _initialize_sh_tdep): Use gdbarch_register to register
4908 sh_gdbarch_init and sh_dump_tdep.
4909 * config/sh/tm-sh.h (sh_osabi): Declare.
4910 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4911
848cfffb
AC
49122002-05-07 Andrew Cagney <ac131313@redhat.com>
4913
4914 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4915 (thumb_scan_prologue): Ditto.
4916 (arm_find_callers_reg): Ditto.
4917 (arm_frame_chain): Ditto.
4918 (arm_init_extra_frame_info): Ditto.
4919 (arm_frame_saved_pc): Ditto.
4920 (arm_pop_frame): Ditto.
4921 (arm_push_return_address): New function.
4922 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4923 call_dummy_location, call_dummy_breakpoint_offset_p,
4924 call_dummy_breakpoint_offset, call_dummy_p,
4925 call_dummy_stack_adjust_p, call_dummy_words,
4926 sizeof_call_dummy_words, call_dummy_start_offset,
4927 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4928 call_dummy_address, push_return_address and push_dummy_frame for
4929 generic dummy frames.
4930
e7d717c0
JT
49312002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4932
4933 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4934 size computation for alloca.
4935 (sh_fp_frame_init_saved_regs): Likewise.
4936
7bbcf283
RE
49372002-05-07 Richard Earnshaw <rearnsha@arm.com>
4938
4939 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4940 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 4941 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
4942 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4943 * remote-rdp.c (remote_rdp_fetch_register): Use
4944 ARM_MAX_REGISTER_RAW_SIZE.
4945 (remote_rdp_store_register): Likewise.
4946
4657573b
ML
49472002-05-07 Michal Ludvig <mludvig@suse.cz>
4948
361d1df0 4949 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
4950 added default labels to switch {} statements.
4951 * x86-64-tdep.c: Ditto.
4952 * x86-64-linux-nat.c: Ditto.
4953
010f3b2f
JT
49542002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4955
4956 * solib.h: Protect against multiple inclusion.
4957
debd256d
JB
49582002-05-06 Jim Blandy <jimb@redhat.com>
4959
9ab3e532
JB
4960 Add first preprocessor macro-expansion files.
4961 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4962 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4963 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4964 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4965 (COMMON_OBS): Add macrotab.o, macroexp.o.
4966 (macroexp.o, macrotab.o): New rules.
4967
debd256d
JB
4968 Separate the job of reading the line number info statement program
4969 header (...expialidocious) out into its own function.
4970 * dwarf2read.c (struct line_head, struct filenames, struct
4971 directories): Replace with...
4972 (struct line_header): New structure, containing the full
4973 contents of the statement program header, including the
4974 include directory and file name tables.
4975 (read_file_scope): If we have line number info, instead of just
4976 calling dwarf_decode_lines to do all the work, call
4977 dwarf_decode_line_header first to get a `struct line_header'
4978 containing the data in the statement program header, and then
4979 pass that to dwarf_decode_lines, which will pick up where that
4980 left off. Be sure to clean up the `struct line_header' object.
4981 (dwarf_decode_line_header, free_line_header, add_include_dir,
4982 add_file_name): New functions.
4983 (dwarf_decode_lines): Move all the code to read the statement
4984 program header into dwarf_decode_line_header. Take the line
4985 header it built as the first argument, instead of the offset to
4986 the compilation unit's line number info. Use the new `struct
4987 line_header' type instead of the old structures. No need to do
4988 cleanups here now, since we don't allocate anything.
4989 (dwarf2_statement_list_fits_in_line_number_section,
4990 dwarf2_line_header_too_long): New complaints.
4991
ac3aafc7
EZ
49922002-05-06 Elena Zannoni <ezannoni@redhat.com>
4993
4994 * gdbtypes.c (init_vector_type): New function.
4995 (build_builtin_type_vec128): Simplify the representation of SIMD
4996 registers.
4997 (build_gdbtypes): Initialize new builtin vector types.
4998 (_initialize_gdbtypes): Register new vector types with gdbarch.
4999 (builtin_type_v4_float, builtin_type_v4_int32,
5000 builtin_type_v8_int16, builtin_type_v16_int8,
5001 builtin_type_v2_int32, builtin_type_v4_int16,
5002 builtin_type_v8_int8): New (renamed) SIMD types.
5003
13e49980
MK
50042002-05-06 Mark Kettenis <kettenis@gnu.org>
5005
5006 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5007 (i387_fill_fxsave): Likewise.
5008
997b20b8
AO
50092002-05-05 Alexandre Oliva <aoliva@redhat.com>
5010
5011 * alpha-tdep.c (alpha_extract_return_value): Don't use
5012 non-constant array size in prototype.
5013
535c96ce
AC
50142002-05-04 Andrew Cagney <ac131313@redhat.com>
5015
5016 From Brian Taylor <briant at model dot com>:
5017 * ui-out.c (ui_out_field_core_addr): Use the function
5018 longest_local_hex_string_custom'to format addresses > 32 bits
5019 wide.
5020
5021 * ui-out.c (ui_out_field_core_addr): Update comment.
5022
bedfa57b
AC
50232002-05-04 Andrew Cagney <ac131313@redhat.com>
5024
5025 * stack.c (select_and_print_frame): Make static. Delete the
5026 parameter `level'.
5027 (func_command): Update call.
5028 (select_frame_command): Delete code computing the frame level.
5029 * frame.h (select_and_print_frame): Delete declaration.
5030
f621c63e
AC
50312002-05-04 Andrew Cagney <ac131313@redhat.com>
5032
5033 * sparc-tdep.c (sparc_get_saved_register): Comment why
5034 get_prev_frame call is safe.
5035
0f7d239c
AC
50362002-05-04 Andrew Cagney <ac131313@redhat.com>
5037
5038 * frame.h (select_frame): Delete level parameter.
5039 * stack.c (select_frame): Update. Use frame_relative_level to
5040 obtain the frame's level.
5041 (select_and_print_frame): Update call.
5042 (select_frame_command): Ditto.
5043 (up_silently_base): Ditto.
5044 (down_silently_base): Ditto.
5045 * ocd.c (ocd_start_remote): Ditto.
5046 * remote-rdp.c (remote_rdp_open): Ditto.
5047 * remote-mips.c (mips_initialize): Ditto.
5048 (common_open): Ditto.
5049 * remote-e7000.c (e7000_start_remote): Ditto.
5050 * m3-nat.c (select_thread): Ditto.
5051 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5052 (child_get_current_exception_event): Ditto.
5053 * varobj.c (varobj_create): Ditto.
5054 (varobj_update): Ditto.
5055 (c_value_of_root): Ditto.
5056 * tracepoint.c (finish_tfind_command): Ditto.
5057 * corelow.c (core_open): Ditto.
5058 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5059 * thread.c (info_threads_command): Ditto.
5060 (switch_to_thread): Ditto.
5061 * infrun.c (normal_stop): Ditto.
5062 (restore_selected_frame): Ditto.
5063 (restore_inferior_status): Ditto.
5064 * breakpoint.c (insert_breakpoints): Ditto.
5065 (watchpoint_check): Ditto.
5066 (bpstat_stop_status): Ditto.
5067 (do_enable_breakpoint): Ditto.
5068 * blockframe.c (flush_cached_frames): Ditto.
5069 (reinit_frame_cache): Ditto.
5070
71d6c7b1
AC
50712002-05-04 Andrew Cagney <ac131313@redhat.com>
5072
5073 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5074 maintainer.
5075
cda6c68a
JB
50762002-05-04 Jim Blandy <jimb@redhat.com>
5077
5078 * gdbtypes.c (replace_type): Doc fix.
5079
5c1c87f0
AC
50802002-05-04 Andrew Cagney <ac131313@redhat.com>
5081
5082 * valprint.c (strcat_longest): Delete commented out function.
5083 Update copyright.
5084
cd9bfe15
AC
50852002-05-04 Andrew Cagney <ac131313@redhat.com>
5086
5087 * MAINTAINERS: Mark a29k as deleted.
5088 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5089 Move new configurations to the top.
5090 * configure.tgt: Remove a29k.
5091 * config/a29k/tm-vx29k.h: Delete.
5092 * config/a29k/vx29k.mt: Delete.
5093 * config/a29k/tm-a29k.h: Delete.
5094 * config/a29k/a29k-udi.mt: Delete.
5095 * config/a29k/a29k.mt: Delete.
5096 * a29k-tdep.c: Delete.
5097 * remote-udi.c: Delete.
5098 * remote-mm.c: Delete.
5099 * remote-eb.c: Delete.
5100 * remote-adapt.c: Delete.
5101 * Makefile.in: Remove obsolete code.
5102 * gdbserver/Makefile.in: Ditto.
5103 * config/s390/s390x.mt: Ditto.
5104 * config/s390/s390.mt: Ditto.
5105 * config/sparc/sparclynx.mh: Ditto.
5106 * config/sparc/linux.mh: Ditto.
5107 * config/pa/hppaosf.mh: Ditto.
5108 * config/pa/hppabsd.mh: Ditto.
5109 * config/ns32k/nbsd.mt: Ditto.
5110 * config/mips/vr5000.mt: Ditto.
5111 * config/m68k/sun3os4.mh: Ditto.
5112 * config/m68k/nbsd.mt: Ditto.
5113 * config/m68k/m68klynx.mh: Ditto.
5114 * config/m32r/m32r.mt: Ditto.
5115 * config/i386/x86-64linux.mt: Ditto.
5116 * config/i386/nbsdelf.mt: Ditto.
5117 * config/i386/nbsd.mt: Ditto.
5118 * config/i386/i386lynx.mh: Ditto.
5119
bf0c5130
AC
51202002-05-04 Andrew Cagney <ac131313@redhat.com>
5121
5122 * target.c (debug_print_register): New function. Handle oversize
5123 registers.
5124 (debug_to_fetch_registers): Call.
5125 (debug_to_store_registers): Call.
5126
2ae1c2d2
JB
51272002-05-03 Jim Blandy <jimb@redhat.com>
5128
13a393b0
JB
5129 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5130 (read_type): Doc fix.
5131 * gdbtypes.c (replace_type): Doc fix.
5132
2ae1c2d2
JB
5133 * stabsread.c (multiply_defined_struct): New complaint.
5134 (read_struct_type): If the type we were passed isn't empty, or
5135 incomplete, don't read the new struct type into it; complain,
5136 and return the original type unchanged. Take a new `type_code'
5137 argument, which is the type code for the new type.
5138 (read_type): Rather than storing the type's type code here, pass
5139 it as an argument to read_struct_type, and let that take care of
5140 storing it. That way, we don't overwrite the original type code,
5141 so read_struct_type can use it to decide whether we're overwriting
5142 something we shouldn't.
5143 (complain_about_struct_wipeout): New function.
5144
8de9bdc4
AC
51452002-05-03 Andrew Cagney <ac131313@redhat.com>
5146
5147 * gdbarch.sh: Assert that gdbarch is non-NULL.
5148 * gdbarch.c: Regenerate.
5149
f773fdbb
JM
51502002-05-03 Jason Merrill <jason@redhat.com>
5151
5152 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5153 and return NULL.
5154
0e04a514
ML
51552002-05-03 Michal Ludvig <mludvig@suse.cz>
5156
5157 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5158 (x86_64_dwarf2gdb_regno_map_length),
5159 (x86_64_dwarf2_reg_to_regnum): Added.
5160 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5161 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5162 (_initialize_x86_64_tdep): Synced with the change above.
5163 (x86_64_skip_prologue): Reformulated message.
5164
065432a8
PM
51652002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5166
5167 * f-exp.y: Also use new prev_lexptr variable
5168 to improve error reporting. Based on Michael Snyder
5169 2002-04-24 dated patch to c-exp.y.
5170 * jv-exp.y: Likewise.
5171 * m2-exp.y: Likewise.
5172
a3162708
EZ
51732002-05-02 Elena Zannoni <ezannoni@redhat.com>
5174
5175 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5176 we are dealing with vectors.
5177
03620c38
PM
51782002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5179
5180 * config/m68k/tm-nbsd.h: Obvious fix,
5181 correct machine name.
5182
6604db2e
PM
51832002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5184
5185 * p-typeprint.c (pascal_type_print_base): Add support
5186 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5187
0906b739
PM
51882002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5189
5190 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5191 for fondamental pascal 'char' type.
5192
e2625b33
PM
51932002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5194
5195 * p-lang.h (is_pascal_string_type): Declaration changed,
5196 new sixth argument of type char ** added.
361d1df0 5197 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5198 changed. Args length_pos, length_size, string_pos, char_size
5199 can now be NULL. New argument arrayname set to the field
5200 name of the char array. Return value set to char array
5201 field index plus one.
361d1df0 5202 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5203 is_pascal_string_type function.
5204
cf17c188
AC
52052002-05-02 Andrew Cagney <cagney@redhat.com>
5206
5207 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5208 <cagney@redhat.com> change.
5209 * gdbarch.c: Regenerate.
5210
52bca491
AC
52112002-05-02 Andrew Cagney <cagney@redhat.com>
5212
5213 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5214 before probing for a new one. Detect errorenous gdbarch_init
5215 functions.
5216 * gdbarch.c: Regenerate.
5217
d5e72505
AC
52182002-05-01 Andrew Cagney <cagney@redhat.com>
5219
5220 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5221 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5222 * config/v850/tm-v850.h: Ditto. Update copyright.
5223
af566d9f
AC
52242002-04-30 Andrew Cagney <ac131313@redhat.com>
5225
5226 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5227 current_gdbarch.
5228
880d85fa
MS
52292002-04-30 Michael Snyder <msnyder@redhat.com>
5230
94c30b78
MS
5231 * arm-tdep.c: Whitespace clean-ups.
5232 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5233 should have been removed as part of 4/24 change.
5234
6f5987a6
KB
52352002-04-30 Kevin Buettner <kevinb@redhat.com>
5236
5237 * rs6000-tdep.c: Added comment describing how fpscr register
5238 numbers were chosen.
5239
1a113c93
MS
52402002-04-30 Michael Snyder <msnyder@redhat.com>
5241
5242 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5243
9a6f53fe
EZ
52442002-04-29 Elena Zannoni <ezannoni@redhat.com>
5245
5246 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5247 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5248 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5249
11ed25ac
KB
52502002-04-29 Kevin Buettner <kevinb@redhat.com>
5251
5252 From Louis Hamilton <hamilton@redhat.com>:
5253 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5254 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5255 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5256 not bfd-private xcoff data, to determine wordsize.
5257 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5258
ae232405
AC
52592002-04-29 Andrew Cagney <ac131313@redhat.com>
5260
5261 GDB 5.2 released from 5.2 branch.
5262
91fd20f7
ML
52632002-04-29 Michal Ludvig <mludvig@suse.cz>
5264
5265 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5266 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5267 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5268
2dc5091b
EZ
52692002-04-29 Elena Zannoni <ezannoni@redhat.com>
5270
5271 * rs6000-tdep.c (rs6000_extract_return_value,
5272 rs6000_store_return_value): Handle returning vectors.
5273 (rs6000_gdbarch_init): Use
5274 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5275 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5276 New function.
5277 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5278 vectors.
5279 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5280 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5281
2b9848d8
PM
52822002-04-24 Pierre Muller <ics.u-strasbg.fr>
5283
5284 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5285 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5286 with fprintf_unfiltered (gdb_stderr,...).
5287
f8d17dc5
PM
52882002-04-24 Pierre Muller <ics.u-strasbg.fr>
5289
5290 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5291 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5292 Replace fprintf (stderr,...
5293 with fprintf_unfiltered (gdb_stderr,....
5294 * remote-es.c: Likewise.
5295 * remote-os9k.c: Likewise.
5296 * remote-st.c: Likewise.
5297
2f2f1ad1
AS
52982002-04-28 Andreas Schwab <schwab@suse.de>
5299
5300 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5301 linux-proc.o and gcore.o.
5302
b6779aa2
AC
53032002-04-26 Michal Ludvig <mludvig@suse.cz>
5304
5305 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5306 code without frame pointers.
5307
7e57f5f4
AC
53082002-04-26 Andrew Cagney <ac131313@redhat.com>
5309
5310 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5311 ON_STACK is needed.
5312
2ceb85d0
BE
53132002-04-26 Ben Elliston <bje@redhat.com>
5314
5315 * target.c (do_xfer_memory): Correct reference to the new option
5316 "trust-readonly-sections".
5317
f5f8a009
EZ
53182002-04-26 Elena Zannoni <ezannoni@redhat.com>
5319
5320 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5321 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5322 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5323 vectors.
5324 (read_array_type): Record the fact that this array type is really a
5325 vector (i.e. are passed in by value).
5326
5868c862
JT
53272002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5328
5329 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5330 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5331 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5332 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5333 * alpha-linux-tdep.c: Include frame.h.
5334 (alpha_linux_sigcontext_addr): New function.
5335 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5336 alpha_linux_sigcontext_addr.
5337 * alpha-osf1-tdep.c: Include gdbcore.h.
5338 (alpha_osf1_sigcontext_addr): New function.
5339 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5340 alpha_osf1_sigcontext_addr.
5341 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5342 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5343
bfb01f37
AC
53442002-04-26 Andrew Cagney <ac131313@redhat.com>
5345
361d1df0 5346 * stack.c (selected_frame_level):
bfb01f37
AC
5347 (select_frame): Do not set selected_frame_level.
5348 * frame.h (selected_frame_level): Delete declaration.
5349
15813d3f
AC
53502002-04-26 Andrew Cagney <ac131313@redhat.com>
5351
5352 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5353 convert_from_func_ptr-addr when AIX / PowerOpen.
5354
6096c27a
AC
53552002-04-25 Andrew Cagney <ac131313@redhat.com>
5356
5357 * valops.c (hand_function_call): Call
5358 generic_save_call_dummy_addr.
5359 * frame.h (generic_save_call_dummy_addr): Declare.
5360 * blockframe.c (struct dummy_frame): Add fields call_lo and
5361 call_hi.
5362 (generic_find_dummy_frame): Check for PC in range call_lo to
5363 call_hi instead of entry_point_address.
5364 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5365 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5366 (generic_save_call_dummy_addr): New function.
5367
f510d44e
DM
53682002-04-24 David S. Miller <davem@redhat.com>
5369
5370 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5371 sparc_skip_prologue.
5372 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5373 information to find prologue when possible.
5374 (sparc_prologue_frameless_p): Call examine_prologue directly.
5375 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5376 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5377 second argument.
5378 (SKIP_PROLOGUE): Likewise.
5379
15d72a92
JT
53802002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5381
5382 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5383 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5384 indicate that the condition it was testing is always true.
5385 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5386 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5387 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5388
accc6d1f
JT
53892002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5390
5391 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5392 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5393 tdep->jb_pc and tdep->jb_elt_size.
5394 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5395 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5396 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5397 * alpha-nat.c (get_longjmp_target): Remove.
5398 (JB_ELEMENT_SIZE): Ditto.
5399 (JB_PC): Ditto.
5400 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5401 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5402 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5403 to alpha_get_longjmp_target.
5404 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5405 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5406 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5407
1bfdc549
AC
54082002-04-25 Andrew Cagney <ac131313@redhat.com>
5409
5410 * README: Update to GDB 5.2.
5411
1bd316f0
AC
54122002-04-25 Andrew Cagney <ac131313@redhat.com>
5413
5414 * gdbarch.sh (LC_ALL): Set to `c'.
5415
2e5ff58c
TR
54162002-04-25 Theodore A. Roth <troth@verinet.com>
5417
5418 * avr-tdep.c: Ran through gdb_indent.sh.
5419
e33ce519
TR
54202002-04-25 Theodore A. Roth <troth@verinet.com>
5421
5422 * MAINTAINERS: Add myself as AVR maintainer.
5423 * NEWS: Note new target avr.
5424
8818c391
TR
54252002-04-25 Theodore A. Roth <troth@verinet.com>
5426
5427 * Makefile.in: Add support for AVR target.
5428 * configure.tgt: Add support for AVR target.
5429 * avr-tdep.c: New file
5430 * config/avr/avr.mt: New file.
5431
79509c2d
TR
54322002-04-25 Theodore A. Roth <troth@verinet.com>
5433
5434 * MAINTAINERS: Add myself to write-after-approval.
5435
dac8068e
PM
54362002-04-24 Pierre Muller <ics.u-strasbg.fr>
5437
5438 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5439 with fprintf_unfiltered (gdb_stderr,....
5440
25bf3106
PM
54412002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5442
5443 Fix PR gdb/508.
5444 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5445
24467a86
PM
54462002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5447
5448 * p-exp.y: Also use new prev_lexptr variable
5449 to improve error reporting. Based on Michael Snyder
5450 2002-04-24 dated patch to c-exp.y.
5451
95b80706
JT
54522002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5453
5454 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5455 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5456 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5457 to 0.
5458 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5459 and struct value.
5460 (FUNCTION_START_OFFSET): Remove.
5461 (BREAKPOINT): Ditto.
5462
e90cc612
JT
54632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5464
5465 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5466 * NEWS: Ditto.
5467
6c72f9f9
JT
54682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5469
5470 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5471 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5472 alpha_linux_pc_in_sigtramp.
5473 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5474 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5475 alpha_osf1_pc_in_sigtramp.
5476 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5477 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5478 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5479 alphafbsd_pc_in_sigtramp.
5480 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5481 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5482 alphanbsd_pc_in_sigtramp.
5483 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5484 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5485
5e4f3379
JT
54862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5487
5488 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5489
da8ca43d
JT
54902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5491
5492 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5493 alphanbsd-tdep.c.
5494 (alphanbsd-nat.o): New dependency list.
5495 (alphanbsd-tdep.o): Ditto.
5496 * NEWS: Note new native NetBSD/alpha configuration.
5497 * alphanbsd-nat.c: New file.
5498 * alphanbsd-tdep.c: Ditto.
5499 * configure.host (alpha*-*-netbsd*): New host.
5500 * configure.tgt (alpha*-*-netbsd*): New target.
5501 * config/alpha/nbsd.mh: New file.
5502 * config/alpha/nbsd.mt: Ditto.
5503 * config/alpha/nm-nbsd.h: Ditto.
5504 * config/alpha/tm-nbsd.h: Ditto.
5505
36a6271d
JT
55062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5507
5508 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5509 (alpha-osf1-tdep.o): New dependency list.
5510 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5511 and skip_sigtramp_frame members.
5512 * alpha-linux-tdep.c: Include gdbcore.h.
5513 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5514 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5515 * alpha-osf1-tdep.c: New file.
5516 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5517 alpha-osf1-dep.c.
5518 (alpha_frame_past_sigtramp_frame): New function.
5519 (alpha_dynamic_sigtramp_offset): Ditto.
5520 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5521 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5522 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5523 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5524 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5525 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5526 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5527 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5528 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5529 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5530 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5531 to find_solib_trampoline_target.
5532 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5533 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5534 (SKIP_TRAMPOLINE_CODE): Remove.
5535 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5536 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5537 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5538 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5539 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5540 (PROC_SIGTRAMP_MAGIC): Ditto.
5541 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5542 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5543 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5544 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5545 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5546
2f4bc57b
JT
55472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5548
5549 * NEWS: Note that Alpha targets are now multi-arch.
5550
665132f9
MS
55512002-04-24 Michael Snyder <msnyder@redhat.com>
5552
5553 * parser-defs.h (prev_lexptr): New external variable.
5554 * parse.c (parse_exp_1): Set prev_lexptr to null before
5555 calling the language-specific parser.
5556 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5557 (yyerror): Use prev_lexptr in error reporting.
5558
32872fa7
DJ
55592002-04-24 Daniel Jacobowitz <drow@mvista.com>
5560
5561 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5562 * gregset.h: If FILL_FPXREGSET is defined, provide
5563 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5564 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5565 is defined, call fill_fpxregset.
5566
57e76fac
MS
55672002-04-24 Roland McGrath <roland@frob.com>
5568
5569 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5570 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5571 (supply_gregset, supply_fpregset): New functions.
5572
5573 * gnu-nat.c (gnu_find_memory_regions): New function.
5574 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5575 (gnu_xfer_memory): Add a cast.
5576
f43845b3
MS
55772002-04-24 Michael Snyder <msnyder@redhat.com>
5578
361d1df0 5579 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
5580 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5581 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 5582 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
5583 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5584 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5585
a0abec03
AC
5586Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5587
5588 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5589 NUM_PSEUDO_REGS can be used.
5590
d7bd68ca
AC
55912002-04-24 Andrew Cagney <ac131313@redhat.com>
5592
5593 * arch-utils.h: Update copyright.
5594
5595 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5596 * gdbarch.h, gdbarch.c: Re-generate.
5597
5598 * inferior.h (IN_SIGTRAMP): Delete definition.
5599 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5600 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5601
5602 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5603 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5604 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5605 (find_proc_framesize): Ditto.
5606 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5607 (alpha_init_extra_frame_info): Ditto.
5608 * infrun.c (handle_inferior_event): Ditto.
5609 (handle_inferior_event): Ditto.
5610 (check_sigtramp2): Ditto.
5611 * blockframe.c (create_new_frame): Ditto.
5612 (get_prev_frame): Ditto.
5613 * ppc-linux-tdep.c: Update comments.
5614 * i386-linux-tdep.c: Update comments.
5615 * breakpoint.c (bpstat_what): Update comment.
5616
d06f167a
ML
56172002-04-24 Michal Ludvig <mludvig@suse.cz>
5618
5619 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 5620 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
5621 ptrace() calls.
5622 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5623
4867e41e
DM
56242002-04-24 David S. Miller <davem@redhat.com>
5625
21d83aa5
DM
5626 * i960-tdep.c (register_in_window_p): New function.
5627 (i960_find_saved_register): Use it instead of
5628 REGISTER_IN_WINDOW_P.
5629 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5630
4867e41e
DM
5631 * symtab.h (find_stab_function_addr): Kill extern.
5632 * minsyms.c (find_stab_function_addr): Remove from here...
5633 * dbxread.c: ... to here, and mark it static.
5634
69cdf6a2
DM
56352002-04-20 David S. Miller <davem@redhat.com>
5636
5637 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5638 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5639
5a595886
DM
56402002-04-21 David S. Miller <davem@redhat.com>
5641
5642 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5643 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5644 (vx_write_register): Likewise.
5645
1da1a192
JB
56462002-04-23 J. Brobecker <brobecker@gnat.com>
5647
5648 * source.c (is_regular_file): New function.
5649 (openp): Check wether file to open is a regular file
5650 to avoid opening directories.
5651
baa6f10b
JT
56522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5653
5654 * findvar.c (extract_signed_integer): Cast printf argument
5655 to suppress format warning.
5656 (extract_unsigned_integer): Likewise.
5657 * infcmd.c (registers_info): Likewise.
5658 * top.c (get_prompt_1): Likewise.
5659 * valops.c (value_assign): Likewise.
5660 * valprint.c (print_decimal): Likewise.
5661
b2c4da81
L
56622002-04-22 H.J. Lu (hjl@gnu.org)
5663
5664 * c-exp.y (typebase): Support
361d1df0 5665
b2c4da81
L
5666 [long|long long|short] [signed|unsigned] [int|]
5667
5668 and
5669
5670 signed [long|long long|short] int
5671
f267bd6a
JT
56722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5673
5674 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5675 and vax-tdep.h.
5676 * vax-tdep.h: New file.
5677 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5678 Make several routines static.
5679 (vax_get_saved_register): New function.
5680 (vax_gdbarch_init): New function.
5681 (_initialize_vax_tdep): Register vax_gdbarch_init.
5682 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5683 Remove macros now under the control of gdbarch.
5684
da3c6d4a
MS
56852002-04-22 Michael Snyder <msnyder@redhat.com>
5686
11d3b27d
MS
5687 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5688 Some whitespace and coding standards tweaks.
da3c6d4a 5689
a33f7558
JT
56902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5691
5692 * vax-tdep.c: Include regcache.h.
5693 (vax_call_dummy_words): New.
5694 (sizeof_vax_call_dummy_words): New.
5695 (vax_fix_call_dummy): New function.
5696 (vax_saved_pc_after_call): Ditto.
5697 * config/vax/tm-vax.h: Don't include regcache.h.
5698 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5699 (CALL_DUMMY): Remove.
5700 (CALL_DUMMY_WORDS): Define.
5701 (SIZEOF_CALL_DUMMY_WORDS): Define.
5702 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5703
47a73475
MS
57042002-04-18 Michael Snyder <msnyder@redhat.com>
5705
5706 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5707
52efde73
JT
57082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5709
5710 * vax-tdep.c (vax_frame_chain): New function.
5711 (vax_push_dummy_frame): Ditto.
5712 (vax_pop_frame): Ditto.
5713 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5714 (FRAMELESS_FUNCTION_INVOCATION): Use
5715 generic_frameless_function_invocation_not.
5716 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5717 (POP_FRAME): Use vax_pop_frame.
5718
ea74468c
JT
57192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5720
5721 * vax-tdep.c (vax_store_struct_return): New function.
5722 (vax_extract_return_value): Ditto.
5723 (vax_store_return_value): Ditto.
5724 (vax_extract_struct_value_address): Ditto.
5725 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5726 vax_store_struct_return.
5727 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5728 (STORE_RETURN_VALUE): Use vax_store_return_value.
5729 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5730
5516aa92
JT
57312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5732
5733 * vax-tdep.c (vax_frame_saved_pc): New function.
5734 (vax_frame_args_address_correct): Ditto.
5735 (vax_frame_args_address): Ditto.
5736 (vax_frame_locals_address): Ditto.
5737 (vax_frame_num_args): Move code to be in proximity to
5738 other frame-related functions.
5739 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5740 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5741 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5742 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5743 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5744
36af0b35
L
57452002-04-22 H.J. Lu (hjl@gnu.org)
5746
5747 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5748 includedir.
5749
ab62c900
JT
57502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5751
5752 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5753 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5754 (FRAME_INIT_SAVED_REGS): New macro.
5755
7232b100
JT
57562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5757
5758 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5759
b70d2aee
JT
57602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5761
5762 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5763 where needed.
5764 (fetch_osf_core_registers): Likewise.
5765 (supply_gregset): Likewise.
5766
a0e8a2d1 57672002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 5768
a0e8a2d1
JB
5769 * symfile.h (get_section_index): Define.
5770 * symfile.c (get_section_index): New function.
5771 * mdebugread.c (SC_IS_SBSS): New macro.
5772 (SC_IS_BSS): Return true for the scBss storage class only, as
5773 the scSBss storage class refers to the .sbss section.
5774 (parse_partial_symbols): Discard the symbols which associated
5775 section does not exist.
5776 Make sure to use the .sbss section index for symbols which
5777 storage class is scBss, rather than using the .bss section index.
5778
51eb8b08
JT
57792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5780
5781 * vax-tdep.c: Update copyright years.
5782 (vax_register_name): New function.
5783 (vax_register_byte): Ditto.
5784 (vax_register_raw_size): Ditto.
5785 (vax_register_virtual_size): Ditto.
5786 (vax_register_virtual_type): Ditto.
5787 * config/vax/tm-vax.h: Update copyright years.
5788 (REGISTER_NAMES): Remove.
5789 (REGISTER_NAME): Define.
5790 (REGISTER_BYTE): Use vax_register_byte.
5791 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5792 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5793 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5794
6cc1c0a8
AC
57952002-04-21 Andrew Cagney <ac131313@redhat.com>
5796
5797 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5798 declaration
5799 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5800
9319a2fe
DM
58012002-04-21 David S. Miller <davem@redhat.com>
5802
5803 * arch-utils.c (generic_prologue_frameless_p): Kill
5804 SKIP_PROLOGUE_FRAMELESS_P code.
5805 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5806 references.
5807 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5808 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5809 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5810 references.
5811 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5812 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5813 (sparc_gdbarch_init): Pass it to
5814 set_gdbarch_prologue_frameless_p.
a0e8a2d1 5815
e9ed6d01
JT
58162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5817
5818 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5819 (alphabsd-nat.o): New dependency list.
5820
36012033
JT
58212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5822
5823 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5824 alphafbsd-tdep.c.
5825 (alpha-linux-tdep.o): New dependency list.
5826 (alphafbsd-tdep.o): Likewise.
5827
3379287a
JT
58282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5829
5830 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5831 to here...
5832 * alpha-tdep.c: ...from here.
5833 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5834
4bcbd6cb
JT
58352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5836
5837 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5838 prototype from here...
5839 * alpha-tdep.h: ...to here.
5840
b31da25e
AC
58412002-04-21 Andrew Cagney <ac131313@redhat.com>
5842
5843 * frame.h (selected_frame_level): Document as deprecated.
5844 (frame_relative_level): Declare.
5845 * stack.c (frame_relative_level): New function.
5846 (selected_frame_level): Document as deprecated.
5847 (select_frame): Do not set the selected_frame_level.
5848
5849 * stack.c (frame_info, record_selected_frame): Update.
5850 (frame_command, current_frame_command): Update.
5851 (up_silently_base, up_command, down_silently_base): Update.
5852 (down_command): Update.
5853 * inflow.c (kill_command): Update.
5854 * tracepoint.c (finish_tfind_command): Update.
5855 * corelow.c (core_open): Update.
5856 * thread.c (info_threads_command): Update.
5857 (do_captured_thread_select): Update.
5858 * infcmd.c (finish_command): Update.
5859 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5860
9c1d6fe5
JT
58612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5862
5863 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5864
ab89facf
AC
58652002-04-21 Andrew Cagney <ac131313@redhat.com>
5866
5867 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5868 type const.
5869
82a4efa1
JT
58702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5871
5872 * alphafbsd-tdep.c: Update copyright years. Include
5873 alpha-tdep.h.
5874 (alphafbsd_use_struct_convention): Make static.
5875 (alphafbsd_init_abi): New function.
5876 (_initialize_alphafbsd_tdep): New function.
5877 * config/alpha/tm-fbsd.h: Update copyright years.
5878 (USE_STRUCT_CONVENTION): Remove.
5879
44dffaac
JT
58802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5881
5882 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5883 an Alpha ABI variant.
5884 (alpha_abi_handler_list): Declare.
5885 (alpha_gdbarch_register_os_abi): New function.
5886 (alpha_gdbarch_init): Give registered ABI variant handlers a
5887 chance to tweak the gdbarch once we have set up defaults.
5888 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5889
65585be4
JT
58902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5891
5892 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5893 to standard_coerce_float_to_double.
5894 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5895
d9b023cc
JT
58962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5897
5898 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5899 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5900 from gdbarch_tdep rather than a constant.
5901 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5902 the default text address for all Alpha Unix ABIs.
5903 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5904 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5905
dc129d82
JT
59062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5907
5908 * alpha-tdep.h: New file. Includes several Alpha target constants
5909 taken from...
5910 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5911 let gdbarch deal with.
5912 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5913 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5914 to dependency list.
5915 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5916 Alpha target register names.
5917 * alphabsd-nat.c: Likewise.
5918 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5919 Alpha target register names. Make serveral routines static.
5920 (alpha_get_saved_register): New function.
5921 (alpha_abi_names): New.
5922 (process_note_abi_tag_sections): New function.
5923 (get_elfosabi): New function.
5924 (alpha_gdbarch_init): New function.
5925 (alpha_dump_tdep): New function.
5926 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5927
d49d1e0a
AC
59282002-04-21 Andrew Cagney <ac131313@redhat.com>
5929
5930 * frame.c (find_saved_register): Delete #ifdef
5931 HAVE_REGISTER_WINDOWS code.
5932 * config/sparc/tm-sparc.h: Update comments.
5933 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5934
92e8c9ed
AC
59352002-04-21 Andrew Cagney <ac131313@redhat.com>
5936
5937 * i960-tdep.c (i960_find_saved_register): New function.
5938 (i960_get_saved_register): New function.
5939 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5940 (i960_get_saved_register): Declare.
5941 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5942
e1925118
DM
59432002-04-20 David S. Miller <davem@redhat.com>
5944
5945 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5946
29673b29
AC
59472002-04-20 Andrew Cagney <ac131313@redhat.com>
5948
5949 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5950 instead of NUM_PSEUDO_REGS.
5951
6c86dcd5
DM
59522002-04-20 David S. Miller <davem@redhat.com>
5953
5954 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5955 GDB_MULTI_ARCH_PARTIAL
5956 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5957 define, let tm-sp64.h do it.
5958
aa40ec90
JT
59592002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5960
5961 * frame.c (find_saved_register): Avoid a NULL pointer
5962 dereference and actually walk the frame list.
5963
0f79675b
AC
59642002-04-20 Andrew Cagney <ac131313@redhat.com>
5965
5966 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5967 sorted in most most-recent-used order. Document.
5968 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 5969
c04a1aa8
DJ
59702002-04-20 Daniel Jacobowitz <drow@mvista.com>
5971
5972 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5973 (add_inferior): Call create_register_cache.
5974 (clear_inferiors): Call free_register_cache.
5975 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5976 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5977 (registers): Remove.
5978 (get_regcache): New function.
5979 (create_register_cache, free_register_cache): New functions.
5980 (set_register_cache): Don't initialize the register cache here.
5981 (registers_to_string, registers_from_string, register_data): Call
5982 get_regcache.
5983 * gdbserver/regcache.h: Add prototypes.
5984 * gdbserver/server.h: Likewise.
5985
611cb4a5
DJ
59862002-04-20 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * gdbserver/mem-break.c: New file.
5989 * gdbserver/mem-break.h: New file.
5990 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5991 dependencies.
5992 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5993 member.
5994 (clear_inferiors): Free target_data member if set.
5995 (inferior_target_data, set_inferior_target_data): New functions.
5996 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5997 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5998 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5999 (struct inferior_linux_data): New.
6000 (linux_create_inferior): Use set_inferior_target_data.
6001 (linux_attach): Likewise. Call add_inferior.
6002 (linux_wait_for_one_inferior): New function.
6003 (linux_wait): Call it.
6004 (linux_write_memory): Add const.
6005 (initialize_low): Call set_breakpoint_data.
6006 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6007 handling members.
6008 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6009 call.
6010 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6011 prototypes.
6012 * gdbserver/target.c (read_inferior_memory)
6013 (write_inferior_memory): New functions.
6014 * gdbserver/target.h (read_inferior_memory)
6015 (write_inferior_memory): Change macros to prototypes.
6016 (struct target_ops): Update comments. Add const to write_memory
6017 definition.
6018
f91305dd 60192002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6020
6021 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6022 instead of ->prev.
6023 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6024 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6025 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6026 instead of ->prev.
6027
73d322b1
EZ
60282002-04-19 Elena Zannoni <ezannoni@redhat.com>
6029
6030 Fix PR gdb/471.
6031 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6032 (build_builtin_type_vec128): Ditto.
6033 (append_composite_type_field): Fix calculation of type length in
6034 union case.
6035
ccd9a834
EZ
60362002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6037
6038 * config/djgpp/README: Update.
6039
6040 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6041 compiler warnings.
6042
a57f9e49
JT
60432002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6044
6045 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6046 (alpha_setup_arbitrary_frame): ...to this.
6047 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6048 for alpha_setup_arbitrary_frame.
6049
f4f9705a
AC
60502002-04-18 Andrew Cagney <cagney@redhat.com>
6051
6052 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6053 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6054
f4f9705a
AC
6055 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6056 * target.h (memory_breakpoint_from_pc): Update declaration.
6057 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6058
6059 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6060 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6061 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6062 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6063 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6064 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6065 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6066 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6067 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6068 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6069 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6070 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6071
6072 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6073 const pointer.
6074 * monitor.c (monitor_insert_breakpoint): Ditto.
6075 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6076
6077 * config/mcore/tm-mcore.h: Update copyright.
6078 * mem-break.c: Ditto.
6079 * xstormy16-tdep.c: Ditto.
6080
29f319b8
PM
60812002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6082
6083 * p-exp.y: Add precedence rule for '^' token.
6084 This removes the shift/reduce conflicts.
6085 Remove the comment concerning these shift/reduce conflicts.
6086
ebeac11a
EZ
60872002-04-18 Elena Zannoni <ezannoni@redhat.com>
6088
6089 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6090 (registers_powerpc_nofp): New register set for processors
6091 without floating point unit.
6092
27c31547
DM
60932002-04-18 David S. Miller <davem@redhat.com>
6094
6095 * MAINTAINERS: Add myself to write-after-approval.
6096
47a73475
MS
60972002-04-17 Michael Snyder <msnyder@redhat.com>
6098
6099 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6100
953836b2
AC
61012002-04-17 Andrew Cagney <ac131313@redhat.com>
6102
6103 * rs6000-tdep.c (frame_initial_stack_address): Use
6104 frame_register_read to read the alloca_reg.
6105
8b0d4340
AC
61062002-04-17 Andrew Cagney <ac131313@redhat.com>
6107
6108 * frame.c (find_saved_register): Find saved registers in the next
6109 not prev frame.
6110 Fix PR gdb/365.
6111
d8864532
AC
61122002-04-17 Andrew Cagney <ac131313@redhat.com>
6113
6114 * gdbarch.sh (LANG): Set to ``c''.
6115
36cc83a3 61162002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6117
36cc83a3 6118 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6119
2f4150cc 61202002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6121
6122 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6123 Update copyright.
6124
628703c6 6125 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6126 Also fix PR gdb/391.
361d1df0 6127
56157b4a
AC
61282002-04-14 Andrew Cagney <ac131313@redhat.com>
6129
6130 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6131 * aclocal.m4, configure: Re-generate.
6132 Fix PR gdb/391.
361d1df0 6133
6d1e3329
EZ
61342002-04-14 Elena Zannoni <ezannoni@redhat.com>
6135
6136 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6137 instead of tm_print_insn.
6138
cb06fa07
EZ
61392002-04-14 Elena Zannoni <ezannoni@redhat.com>
6140
6141 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6142
f208ba17
AC
61432002-04-14 Andrew Cagney <ac131313@redhat.com>
6144
6145 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6146 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6147 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6148
20f01a46
DH
61492002-04-12 Don Howard <dhoward@redhat.com>
6150
6151 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6152 max_user_call_depth.
6153 (init_cmd_lists): Initialize the new value;
6154 * cli/cli-script.c (execute_user_command): Limit the call depth of
6155 user defined commands. This avoids a core-dump when user commands
6156 are infinitly recursive.
6157
a88376a3
KB
61582002-04-12 Kevin Buettner <kevinb@redhat.com>
6159
6160 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6161 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6162 from tdep struct instead of DEFAULT_LR_SAVE.
6163 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6164 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6165 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6166
f2172603
MS
61672002-04-12 Michael Snyder <msnyder@redhat.com>
6168
694f61fb 6169 * Remote.c: Spelling fix.
20fe79c8
MS
6170 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6171 If no symbol found for "sbrk", try "_sbrk".
6172 (make_output_phdrs): Use bfd_section_name.
6173 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6174 * eval.c: Indentation fix-ups.
169a7369
MS
6175 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6176 in case it gets applied to an address that is already
6177 in the instruction space.
de74f71f
MS
6178 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6179 * symfile.c: Fix indentation, long lines.
f2172603
MS
6180 * source.c: White space fix-up.
6181
cda5a58a
AC
61822002-04-12 Andrew Cagney <cagney@redhat.com>
6183
6184 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6185 * frame.c (frame_register_read): New function. Return non-zero on
6186 success.
6187 (read_relative_register_raw_bytes_for_frame): Delete.
6188 (read_relative_register_raw_bytes): Delete.
6189 * frame.h (frame_register_read): Declare.
6190 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6191 * sh-tdep.c: Ditto.
6192 * infcmd.c (do_registers_info): Ditto.
6193 * hppa-tdep.c: Ditto.
6194 * rs6000-tdep.c: Ditto.
6195 * h8500-tdep.c: Ditto.
6196 * mips-tdep.c: Ditto.
6197 * h8300-tdep.c: Ditto.
6198 * z8k-tdep.c: Ditto.
6199
2ea5f656
KB
62002002-04-12 Kevin Buettner <kevinb@redhat.com>
6201
6202 From Jimi X <jimix@watson.ibm.com>:
6203 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6204 64-bit SysV ABI.
6205
27b15785
KB
62062002-04-12 Kevin Buettner <kevinb@redhat.com>
6207
6208 From Jimi X <jimix@watson.ibm.com>:
6209 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6210 bfd info.
6211
5d57ee30
KB
62122002-04-12 Kevin Buettner <kevinb@redhat.com>
6213
6214 From Jimi X <jimix@watson.ibm.com>:
6215 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6216 register sets for these processor variants.
6217
bc1e36ca
DJ
62182002-04-11 Daniel Jacobowitz <drow@mvista.com>
6219
6220 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6221 registers which are allowed to fail to store.
6222 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6223 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6224 (ppc_cannot_store_register): FPSCR may not be storable.
6225 * regformats/reg-ppc.dat: Support FPSCR.
6226
e3f36dbd
KB
62272002-04-11 Kevin Buettner <kevinb@redhat.com>
6228
6229 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6230 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6231 Add fpscr as an invalid/unfetchable register.
6232 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6233 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6234 (fill_fpregset): Add support for register fpscr.
6235 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6236 (fill_gregset): Account for the fact that register ``mq'' might
6237 not exist.
6238 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6239 (registers_power): Add fpscr to register set at slot 71.
6240 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6241 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6242
943c9c25
MS
62432002-04-11 Michael Snyder <msnyder@redhat.com>
6244
6245 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6246 * configure: Regenerate.
6247 * config.in: Regenerate.
6248 * acconfig.h: Add define for _SYSCALL32.
6249 * core-sol2.c: Remove #define _SYSCALL32.
6250 * solib-legacy.c: Remove #define _SYSCALL32.
6251
d8c0a2e7
AC
62522002-04-10 Andrew Cagney <ac131313@redhat.com>
6253
6254 * stack.c (select_frame): Cleanup internal error message, do not
6255 use %p.
6256
7cc19214
AC
62572002-04-10 Andrew Cagney <ac131313@redhat.com>
6258
6259 * stack.c (select_frame): Check that selected_frame and the
6260 specified level are as expected.
6261 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6262 Update copyright.
6263 * frame.h (struct frame_info): Add field `level'. Update
6264 copyright.
6265 Work-in-progress PR gdb/464.
6266
67a2b77e
AC
62672002-04-10 Andrew Cagney <ac131313@redhat.com>
6268
6269 * maint.c (maint_print_section_info): Rename print_section_info.
6270 (print_bfd_section_info, print_objfile_section_info): Update.
6271 * inferior.h (struct gdbarch): Add opaque declaration.
6272 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6273 * gdbarch.h: Regenerate.
6274
8cfda98c
ML
62752002-04-10 Michal Ludvig <mludvig@suse.cz>
6276
6277 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6278 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6279 (kernel_u_size): Added.
6280 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6281 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6282
ca439ad2 62832002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6284
ca439ad2
JI
6285 * valarith.c (find_size_for_pointer_math): New function, either returns
6286 the size for a pointer's target, returns 1 for void *, or errors for
6287 incomplete types.
6288 (value_add, value_sub): use find_size_for_pointer_math.
6289
2f2893d9
DJ
62902002-04-09 Daniel Jacobowitz <drow@mvista.com>
6291
6292 * linux-low.c (linux_look_up_symbols): New hook.
6293 (linux_target_ops): Add linux_look_up_symbols.
6294 * remote-utils.c (decode_address): New function.
6295 (look_up_one_symbol): New function.
6296 * server.c (handle_query): Call target look_up_symbols hook.
6297 * server.h (look_up_one_symbol): Add prototype.
6298 * target.h (struct target_ops): Add look_up_symbols hook.
6299
2ec06d2e
DJ
63002002-04-09 Daniel Jacobowitz <drow@mvista.com>
6301
d64b8841
DJ
6302 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6303 * ChangeLog: Correct paths in last ChangeLog entry.
6304
63052002-04-09 Daniel Jacobowitz <drow@mvista.com>
6306
6307 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6308 (struct linux_target_ops): New.
6309 (extern the_low_target): New.
d64b8841 6310 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6311 (register_addr): Use the_low_target explicitly.
6312 (fetch_register): Likewise.
6313 (usr_fetch_inferior_registers): Likewise.
6314 (usr_store_inferior_registers): Likewise.
d64b8841 6315 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6316 (arm_num_regs): Define.
6317 (arm_regmap): Renamed from regmap, made static.
6318 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6319 made static.
6320 (arm_cannot_store_register): Renamed from cannot_store_register,
6321 made static.
6322 (the_low_target): New.
d64b8841 6323 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6324 (i386_num_regs): Define.
6325 (i386_regmap): Renamed from regmap, made static.
6326 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6327 made static.
6328 (i386_cannot_store_register): Renamed from cannot_store_register,
6329 made static.
6330 (the_low_target): New.
d64b8841 6331 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6332 (ia64_num_regs): Define.
6333 (ia64_regmap): Renamed from regmap, made static.
6334 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6335 made static.
6336 (ia64_cannot_store_register): Renamed from cannot_store_register,
6337 made static.
6338 (the_low_target): New.
d64b8841 6339 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6340 (m68k_num_regs): Define.
6341 (m68k_regmap): Renamed from regmap, made static.
6342 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6343 made static.
6344 (m68k_cannot_store_register): Renamed from cannot_store_register,
6345 made static.
6346 (the_low_target): New.
d64b8841 6347 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6348 (mips_num_regs): Define.
6349 (mips_regmap): Renamed from regmap, made static.
6350 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6351 made static.
6352 (mips_cannot_store_register): Renamed from cannot_store_register,
6353 made static.
6354 (the_low_target): New.
d64b8841 6355 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6356 (ppc_num_regs): Define.
6357 (ppc_regmap): Renamed from regmap, made static.
6358 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6359 made static.
6360 (ppc_cannot_store_register): Renamed from cannot_store_register,
6361 made static.
6362 (the_low_target): New.
d64b8841 6363 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6364 (s390_num_regs): Define.
6365 (s390_regmap): Renamed from regmap, made static.
6366 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6367 made static.
6368 (s390_cannot_store_register): Renamed from cannot_store_register,
6369 made static.
6370 (the_low_target): New.
d64b8841 6371 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6372 (sh_num_regs): Define.
6373 (sh_regmap): Renamed from regmap, made static.
6374 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6375 made static.
6376 (sh_cannot_store_register): Renamed from cannot_store_register,
6377 made static.
6378 (the_low_target): New.
d64b8841 6379 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6380 (the_low_target): New.
6381
96cb11df
AC
63822002-04-09 Andrew Cagney <ac131313@redhat.com>
6383
6384 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6385 override FP_REGNUM with frame->fp. Update copyright.
6386 * parse.c (num_std_regs, std_regs): Delete.
6387 (target_map_name_to_register): Do not search std_regs. Update
6388 function description.
6389 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6390 declarations. Update copyright.
6391 Fix PR gdb/251.
361d1df0 6392
c3a3ccc7
DJ
63932002-04-09 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * gdbserver/Makefile.in: Add stamp-h target.
6396 * gdbserver/configure.in: Create stamp-h.
6397 * gdbserver/configure: Regenerated.
6398
ce3a066d
DJ
63992002-04-09 Daniel Jacobowitz <drow@mvista.com>
6400
6401 * gdbserver/inferiors.c: New file.
6402 * gdbserver/target.c: New file.
6403 * gdbserver/target.h: New file.
6404 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6405 dependencies.
6406 * gdbserver/linux-low.c (inferior_pid): New static variable,
6407 moved from server.c.
6408 (linux_create_inferior): Renamed from create_inferior.
6409 Call add_inferior. Return 0 on success instead of a PID.
6410 (linux_attach): Renamed from myattach.
6411 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6412 (linux_thread_alive): Renamed from mythread_alive.
6413 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6414 child dies.
6415 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6416 (regsets_store_inferior_registers): Correct error message.
6417 Add missing ``return 0''.
6418 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6419 (linux_store_registers): Renamed from store_inferior_registers.
6420 (linux_read_memory): Renamed from read_inferior_memory.
6421 (linux_write_memory): Renamed from write_inferior_memory.
6422 (linux_target_ops): New structure.
6423 (initialize_low): Call set_target_ops ().
6424 * gdbserver/remote-utils.c (unhexify): New function.
6425 (hexify): New function.
6426 (input_interrupt): Send signals to ``signal_pid''.
6427 * gdbserver/server.c (inferior_pid): Remove.
6428 (start_inferior): Update create_inferior call.
6429 (attach_inferior): Call add_inferior.
6430 (handle_query): New function.
6431 (main): Call handle_query for `q' packets.
6432 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6433 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6434
0729219d
DJ
64352002-04-09 Daniel Jacobowitz <drow@mvista.com>
6436
6437 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6438 dependencies.
6439 * gdbserver/configure.in: Check for <string.h>
6440 * gdbserver/configure: Regenerate.
6441 * gdbserver/config.in: Regenerate.
6442 * gdbserver/gdbreplay.c: Include needed system headers.
6443 (remote_open): Remove strchr prototype.
6444 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6445 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6446 (supply_register_by_name): Likewise.
6447 (collect_register): Change buf argument to void *.
6448 (collect_register_by_name): Likewise.
6449 * gdbserver/regcache.h: Add missing prototypes.
6450 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6451 * gdbserver/server.c (handle_query): New function.
6452 (attached): New static variable, moved out of main.
6453 (main): Quiet longjmp clobber warnings.
6454 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6455 * gdbserver/utils.c (error): Remove NORETURN.
6456 (fatal): Likewise.
6457
97658e92
DJ
64582002-04-09 Daniel Jacobowitz <drow@mvista.com>
6459
6460 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6461 after the last symbol in a block.
6462
6044e3eb
PM
64632002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6464
6465 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6466 is non zero as a found symbol.
6467
0406ec40
AC
64682002-04-08 Andrew Cagney <ac131313@redhat.com>
6469
6470 * findvar.c: Include "builtin-regs.h".
6471 (value_of_register): Call value_of_builtin_reg when applicable.
6472 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6473 (target_map_name_to_register): Call
6474 builtin_reg_map_name_to_regnum.
6475 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6476 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6477 (builtin_regs_h): Define.
6478 (builtin-regs.o): New target.
6479 (findvar.o): Add $(builtin_regs_h).
6480 * builtin-regs.c, builtin-regs.h: New files.
6481 * std-regs.c: New file.
6482 Partial fix for PR gdb/251.
6483
56a6dfb9
KB
64842002-04-08 Kevin Buettner <kevinb@redhat.com>
6485
6486 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6487 it's no longer required.
6488
3a808432
AC
64892002-04-08 Andrew Cagney <ac131313@redhat.com>
6490
6491 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6492
7c40d541
KB
64932002-04-08 Kevin Buettner <kevinb@redhat.com>
6494
6495 From Jimi X <jimix@watson.ibm.com>:
6496 * rs6000-tdep.c (rs6000_software_single_step): Use
6497 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6498 and size. Use target_insert_breakpoint() and
6499 target_remove_breakpoint() to insert and remove breakpoints
6500 instead of explicit memory reads and writes.
6501
cc9836a8
KB
65022002-04-08 Kevin Buettner <kevinb@redhat.com>
6503
6504 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6505 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6506 ELF_OBJECT_FORMAT ifdef.
6507
7495d1dc
KB
65082002-04-08 Kevin Buettner <kevinb@redhat.com>
6509
6510 From Jimi X <jimix@watson.ibm.com>:
6511 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6512
4288e836
KB
65132002-04-08 Kevin Buettner <kevinb@redhat.com>
6514
6515 From Jimi X <jimix@watson.ibm.com>:
6516 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6517 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6518
a4e4e501
MK
65192002-04-07 Mark Kettenis <kettenis@gnu.org>
6520
6521 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6522 s/asprintf/xasprintf/.
6523 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6524
006defba
AC
65252002-04-07 Andrew Cagney <ac131313@redhat.com>
6526
6527 I believe Jeff Law denies responsability for this one:
6528 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6529 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6530 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6531 Work-around for PR gdb/366.
6532
7aa83cac
EZ
65332002-04-07 Elena Zannoni <ezannoni@redhat.com>
6534
6535 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6536 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6537 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6538
cf1fcca1
EZ
65392002-04-07 Elena Zannoni <ezannoni@redhat.com>
6540
6541 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6542 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6543 information.
6544
3f289e6f
AC
65452002-04-07 Andrew Cagney <ac131313@redhat.com>
6546
6547 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6548 maintainer.
6549
129188f6
AC
65502002-04-07 Andrew Cagney <ac131313@redhat.com>
6551
6552 * README (Reporting Bugs in GDB): Document the bug web page as the
6553 prefered way of submitting bugs.
6554 Fix PR gdb/402.
6555
1200cd6e
AC
65562002-04-06 Andrew Cagney <ac131313@redhat.com>
6557
6558 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6559 -1. Update comment.
6560 * gdbarch.h, gdbarch.c: Re-generate.
6561
2853c33c
AS
65622002-04-07 Andreas Schwab <schwab@suse.de>
6563
6564 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6565 buffer to regcache_collect.
6566
c2169756
AC
65672002-04-06 Andrew Cagney <ac131313@redhat.com>
6568
6569 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6570 * gdbarch.c, gdbarch.h: Re-generate.
6571
25f1b008
AC
65722002-04-06 Andrew Cagney <ac131313@redhat.com>
6573
6574 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6575 declaration. Fix -Werror.
6576
59263426
DJ
65772002-04-05 Daniel Jacobowitz <drow@mvista.com>
6578
6579 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6580 * gdbarch.c: Regenerate.
6581
f5db4da3
MS
65822002-04-05 Michael Snyder <msnyder@redhat.com>
6583
80f8a6eb
MS
6584 * breakpoint.c (clear_command): Rewrite middle section to
6585 combine two loops with identical control conditions.
6586 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6587 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6588
ad3dcc5c
L
65892002-04-05 H.J. Lu (hjl@gnu.org)
6590
6591 * solib-svr4.c (bkpt_names): Add "__start".
6592
f32e7a74
AC
65932002-04-04 Andrew Cagney <ac131313@redhat.com>
6594
6595 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6596 as test for 64 bit target.
6597
8227c0ff
AC
65982002-04-05 Andrew Cagney <ac131313@redhat.com>
6599
6600 * h8500-tdep.c (h8500_write_fp): Delete function.
6601 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6602 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6603 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6605 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6606 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6607 (s390_write_fp):
6608 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6609 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6610 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6611 (d10v_write_fp): Delete function.
6612 * inferior.h (write_fp, generic_target_write_fp): Delete
6613 declarations.
6614 * regcache.c (generic_target_write_fp): Delete function.
6615 (write_fp): Delete function.
6616 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6617 * gdbarch.h, gdbarch.c: Regenerate.
6618 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6619 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6620 (sparc64_write_fp): Delete declaration.
6621 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6622 (h8500_write_fp): Delete declaration.
6623
2757dd86
AC
66242002-04-04 Andrew Cagney <ac131313@redhat.com>
6625
6626 * sparc-tdep.c (sparc64_write_fp): Delete.
6627 (sparc_push_dummy_frame): Replace write_fp call with code to store
6628 the FP directly.
6629 (sparc_gdbarch_init): Do not initialize write_fp.
6630
c69255e1
KB
66312002-04-05 Kevin Buettner <kevinb@redhat.com>
6632
6633 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6634 clause.
6635
ae767bfb
JB
66362002-03-29 Jim Blandy <jimb@redhat.com>
6637
6638 * stack.c (get_selected_block): Add new argument `addr_in_block',
6639 used to return the exact code address we used to select the block,
6640 not just the block.
6641 * blockframe.c (get_frame_block, get_current_block): Same.
6642 * frame.h (get_frame_block, get_current_block,
6643 get_selected_block): Update declarations.
6644 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6645 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6646
84d2ac95
MS
66472002-04-05 Michael Snyder <msnyder@redhat.com>
6648
6649 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6650 warning message.
6651
596aa3bf
JB
66522002-04-05 J. Brobecker <brobecker@gnat.com>
6653
6654 * utils.c (xfullpath): New function.
6655 * defs.h (xfullpath): Add declaration.
6656 * source.c (openp): Use xfullpath in place of gdb_realpath to
6657 avoid resolving the basename part of filenames when the
6658 associated file is a symbolic link. This fixes a potential
6659 inconsistency between the filenames known to GDB and the
6660 filenames it prints in the annotations.
6661 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6662 to be able to match a filename with either the real filename, or
6663 the name of any symbolic link to this file.
6664 (lookup_partial_symtab): Ditto.
6665
c02f5703
MS
66662002-04-04 Michael Snyder <msnyder@redhat.com>
6667
6668 * breakpoint.c: Add support for hardware breakpoints in overlays.
6669 (overlay_events_enabled): New state variable.
6670 (insert_breakpoints): Use overlay_events_enabled to decide
6671 whether to attempt to set a breakpoint at the overlay load addr.
6672 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6673 (remove_breakpoint): Use overlay_events_enabled to decide
6674 whether breakpoints need to be removed from overlay load addr.
6675 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6676 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 6677 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
6678 disable_overlay_breakpoints): Update overlay_events_enabled.
6679
5fb290d7
DJ
66802002-04-04 Daniel Jacobowitz <drow@mvista.com>
6681
6682 * dwarf2read.c (struct function_range): New.
6683 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6684 (check_cu_functions): New.
6685 (read_file_scope): Initialize global function lists.
6686 Call dwarf_decode_line after processing children.
6687 (read_func_scope): Add to global function list.
6688 (dwarf_decode_lines): Call check_cu_functions everywhere
6689 record_line is called. Call record_line with a linenumber
6690 of 0 to mark sequence ends.
6691
7b3fabf0
ML
66922002-04-04 Michal Ludvig <mludvig@suse.cz>
6693
361d1df0 6694 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
6695 change sync with glibc.
6696
bce58c09
JB
66972002-04-03 Jim Blandy <jimb@redhat.com>
6698
6699 * configure.in: Call AC_C_INLINE.
6700 * configure: Regenerated.
361d1df0 6701
2fccf04a
DJ
67022002-04-01 Daniel Jacobowitz <drow@mvista.com>
6703
6704 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6705 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6706
2d1bfe2e
MK
67072002-03-31 Mark Kettenis <kettenis@gnu.org>
6708
a5941fbf
MK
6709 * NEWS: Mention gcore support on FreeBSD/i386.
6710
a90cd31d
MK
6711 * fbsd-proc.c: New file.
6712 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6713 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6714
2d1bfe2e
MK
6715 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6716 while statement.
6717
9eb6e5a1
JB
67182002-03-29 Jim Blandy <jimb@redhat.com>
6719
6720 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6721 unescaped newlines in string literals, but newer ones don't. So
6722 escape them.
6723
f02df580
MS
67242002-03-26 Michael Snyder <msnyder@redhat.com>
6725 Andrew Cagney <cagney@redhat.com>
6726
361d1df0 6727 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
6728 restore file to memory.
6729 * cli/cli-dump.h: New file.
6730 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 6731 * NEWS: Mention new commands.
f02df580 6732
109f874e
MS
67332002-03-28 Michael Snyder <msnyder@redhat.com>
6734
6735 * symfile.c (symbol_file_add): Move test for null symbols to later.
6736
520f6ade
AC
67372002-03-27 Andrew Cagney <ac131313@redhat.com>
6738
6739 From veksler at il.ibm.com:
6740 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6741 the xstrduped original path.
6742 Fix PR gdb/417.
6743
d4654627
MS
67442002-03-27 Michael Snyder <msnyder@redhat.com>
6745
6746 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6747 * infcmd.c (_initialize_infcmd): Ditto.
6748 * language.c (_initialize_language): Ditto.
6749 * symfile.c (_initialize_symfile): Ditto.
6750 * top.c (_init_main): Ditto.
6751 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6752
6be8bc0c
EZ
67532002-03-27 Elena Zannoni <ezannoni@redhat.com>
6754
6755 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6756 vector registers handling.
6757 (skip_prologue): Handle new AltiVec instructions. Fill in new
6758 fields of frame data.
6759 (frame_get_saved_regs): Fill in information for AltiVec registers.
6760
12af6855
JB
67612002-03-27 Jim Blandy <jimb@redhat.com>
6762
6763 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6764 a function; leave this macro here to invoke that function.
6765 (symbol_init_mangled_name): Declaration for that function.
6766 * symtab.c (symbol_init_mangled_name): New function.
6767
dc672865
AC
67682002-03-27 Andrew Cagney <ac131313@redhat.com>
6769
6770 * valarith.c: Replace strerror with safe_strerror.
6771 * tracepoint.c: Ditto.
6772 * lin-lwp.c: Ditto.
6773 * go32-nat.c: Ditto.
6774 * inflow.c: Ditto.
6775 * gnu-nat.c: Ditto.
6776
d96429cd
AS
67772002-03-27 Andreas Schwab <schwab@suse.de>
6778
6779 * event-top.c (command_line_handler): Remove useless if.
6780
7e336ba1
AJ
67812002-03-27 Andreas Jaeger <aj@suse.de>
6782
6783 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6784 comment.
6785
de220d0f
ML
67862002-03-27 Michal Ludvig <mludvig@suse.cz>
6787
6788 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6789 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6790 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6791 (x86_64_linux_dr_get_status, supply_gregset),
6792 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6793 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6794 (x86_64_register_info_table): Add.
6795 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6796 (x86_64_register_raw_size, x86_64_register_virtual_type),
6797 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6798 general x86_64_register_info_table.
6799 (i386_gdbarch_init): gdbarch_register_bytes is now set
6800 dynamicaly during initialization.
6801 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6802 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 6803
0e98d0a7
DJ
68042002-03-27 Daniel Jacobowitz <drow@mvista.com>
6805
6806 * gdbserver/server.c (main): Call target_signal_to_host_p
6807 and target_signal_to_host on signals received from the remote.
6808 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6809 target_signal_from_host on signals sent to the remote.
6810 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6811 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6812
3130066b
DJ
68132002-03-27 Daniel Jacobowitz <drow@mvista.com>
6814
6815 * signals/signals.c: Include "server.h" in gdbserver build.
6816 (target_signal_from_name): Don't use STREQ.
6817 (_initialize_signals): Likewise. Don't include function in
6818 gdbserver build.
6819
9aedf4f4
DJ
68202002-03-27 Daniel Jacobowitz <drow@mvista.com>
6821
6822 * signals.c: Moved to...
6823 * signals/signals.c: Here.
7e336ba1 6824 * Makefile (signals.o): Update.
9aedf4f4 6825
3fa41cdb
JL
68262002-03-26 Jeff Law (law@redhat.com)
6827
6828 * somread.c (som_symtab_read): Remove some commented out code and
6829 updated related comments. Do not set the minimal symbol table to
6830 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6831 in a dynamic executable.
6832 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6833 where we are unable to find the minimal symbol for the given
6834 PC value.
6835
ee677e8d
MS
68362002-03-25 Jeff Law (law@redhat.com)
6837
6838 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6839
e76e1718
ML
68402002-03-25 Michal Ludvig <mludvig@suse.cz>
6841
6842 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6843
18a642a1
AC
68442002-03-23 Andrew Cagney <ac131313@redhat.com>
6845
6846 * command.h: Update copyright.
6847 (struct cmd_list_element): Replace definition with opaque
6848 declaration.
6849 (enum cmd_types): Document that it will eventually be moved to
6850 cli/cli-decode.h
6851 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6852 (MALLOCED_REPLACEMENT): Delete macro.
6853 * Makefile.in (cli_decode_h): Add $(command_h).
6854 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 6855 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
6856 * completer.c: Include "cli/cli-decode.h".
6857 * maint.c: Include "cli/cli-decode.h".
6858 * cli/cli-decode.h: Include "command.h".
6859 (enum command_class): Delete.
6860 (enum cmd_types): Comment out.
6861 (enum cmd_auto_boolean): Delete.
6862 (enum var_types): Delete.
6863
b2875cc0
AC
68642002-03-23 Andrew Cagney <ac131313@redhat.com>
6865
6866 * cli/cli-decode.c: Include "gdb_assert.h".
6867 (add_set_or_show_cmd): New static function.
6868 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6869 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6870 all fields, such as func, from the set command.
6871
3b45974e
AC
68722002-03-23 Andrew Cagney <ac131313@redhat.com>
6873
6874 * MAINTAINERS (sh-elf): Change warning flag to -w.
6875
823ca731
AC
68762002-03-23 Andrew Cagney <cagney@redhat.com>
6877
6878 * defs.h (error): Add printf format attribute.
6879 * thread-db.c (thread_from_lwp): Fix error format string.
6880 * stack.c (parse_frame_specification): Ditto.
6881 * cli/cli-decode.c (undef_cmd_error): Ditto.
6882 * scm-lang.c (scm_lookup_name): Ditto.
6883 * tracepoint.c (trace_error): Ditto.
6884 * remote-utils.c (usage): Ditto.
6885 * remote.c (compare_sections_command): Ditto.
6886 Fix PR gdb/328.
6887
0e101458
AC
68882002-03-22 Andrew Cagney <ac131313@redhat.com>
6889
6890 * gdbtypes.c (append_composite_type_field): New function.
6891 (init_composite_type): New function.
6892 * gdbtypes.h (append_composite_type_field): Declare.
6893 (init_composite_type): Ditto.
6894
8e0662df
EZ
68952002-03-22 Elena Zannoni <ezannoni@redhat.com>
6896
6897 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 6898 function.
8e0662df
EZ
6899 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6900 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6901 structure returning convention for SYSV ABI case, but not
6902 for GNU/Linux, FreeBSD, or NetBSD.
6903
3121eff0
DJ
69042002-03-22 Daniel Jacobowitz <drow@mvista.com>
6905
6906 * symtab.h (lookup_block_symbol): Add mangled_name argument
6907 to prototype.
6908
6909 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6910 with new mangled_name argument.
6911 * linespec.c (decode_line_1): Likewise.
6912 * valops (value_of_this): Likewise.
6913 * symtab.c (lookup_transparent_type): Likewise.
6914 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6915 (lookup_symbol): If we are given a mangled name, pass it down
6916 to lookup_symbol_aux.
6917 (lookup_block_symbol): If we are given a mangled name to check
6918 against, only return symbols which match it.
6919
349b409f
CF
69202002-03-22 Christopher Faylor <cgf@redhat.com>
6921
6922 * win32-nat.c (child_create_inferior): Check for proper shell to use
6923 here, in case the user changes it on the fly.
6924 (_initialize_inftarg): Remove shell path considerations.
6925
2a873819
EZ
69262002-03-21 Elena Zannoni <ezannoni@redhat.com>
6927
6928 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6929 for gdbarch_max_register_raw_size and max_register_virtual_size.
6930 Adjust copyright year.
6931
a1b9830c
DJ
69322002-03-21 Daniel Jacobowitz <drow@mvista.com>
6933
6934 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6935 in a function to cover the entire beginning of the function
6936 as well if it does not already.
6937
8b5790f2
TR
69382002-03-21 Tom Rix <trix@redhat.com>
6939
6940 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6941 (rs6000_ptrace64): Renamed from ptrace64.
6942
bdbe5747
MH
69432002-03-20 Martin M. Hunt <hunt@redhat.com>
6944
6945 * gdbserver/remote-utils.c (remote_open): Don't call
6946 getprotobyname, we're all using TCP here so just use
6947 IPPROTO_TCP.
7e336ba1 6948 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
6949
69502002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 6951
bdbe5747
MH
6952 * regcache.c (_initialize_regcache): No need to call
6953 build_regcache() at this time; it gets called whenever
6954 the gdbarch changes.
6955
7781cd62
DB
69562002-03-20 David O'Brien <obrien@FreeBSD.org>
6957
6958 * sparc-nat.c: Include sys/param.h where possible.
6959
f65ca430
DJ
69602002-03-20 Daniel Jacobowitz <drow@mvista.com>
6961
6962 Fix PR gdb/422.
6963 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6964 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6965 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6966 complex types.
6967 * stabsread.c (rs6000_builtin_type): Likewise.
6968 (read_sun_floating_type): Likewise.
6969
0c867556
PS
69702002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6971
6972 * stabsread.c (read_member_functions): Remove skip code for duplicate
6973 constructor/destructor methods. Use standard parsing for these
6974 methods and just do not chain them to the list of methods after
6975 parsing.
6976
12b9c64f
AO
69772002-03-19 Alexandre Oliva <aoliva@redhat.com>
6978
6979 * coffread.c: Remove redundant static declarations. Replace
6980 occurrences of `PTR' with `void *'.
6981 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6982 * top.h (quit_cover): Likewise.
6983 * defs.h (catch_errors): Likewise.
6984
349c5d5f
AC
69852002-03-18 Andrew Cagney <ac131313@redhat.com>
6986
6987 * defs.h (XMALLOC): Define.
6988 * gdb-events.sh (XMALLOC): Delete macro.
6989 * gdb-events.c, gdb-events.h: Regenerate.
6990 * gdbarch.sh (XMALLOC): Delete macro.
6991 * gdbarch.c: Regenerate.
6992 * serial.c (XMALLOC): Delete macro.
6993 * ui-file.c (XMALLOC): Ditto.
6994 * ser-unix.h (XMALLOC): Ditto.
6995 * sh-tdep.c (XMALLOC): Ditto.
6996 * ui-out.c (XMALLOC): Ditto.
6997 * utils.c (XMALLOC): Ditto.
6998 * i386-tdep.c (XMALLOC): Ditto.
6999 * gdb-events.c (XMALLOC): Ditto.
7000 * d10v-tdep.c (XMALLOC): Ditto.
7001 * cli-out.c (XMALLOC): Ditto.
7002
7003 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7004 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7005 * ui-file.c, ui-out.c: Ditto.
7006
7d0766f3
AC
70072002-03-18 Andrew Cagney <ac131313@redhat.com>
7008
7009 * command.h (struct cmd_list_element): Add field context.
7010 (set_cmd_context, get_cmd_context): Declare.
7011 * cli/cli-decode.h: Ditto.
7012 * cli/cli-decode.c (get_cmd_context): New function.
7013 (set_cmd_context): New function.
7014 (add_cmd): Initialize context.
7015 Part of fixing PR gdb/145 and PR gdb/146.
7016
5913bcb0
AC
70172002-03-17 Andrew Cagney <ac131313@redhat.com>
7018
1868c04e
AC
7019 * cli/cli-decode.c (cmd_type): New function.
7020 * command.h (cmd_type): Declare.
7021 * infrun.c (set_schedlock_func): Call function cmd_type.
7022 * kod.c (kod_set_os): Call cmd_type.
7023 * cris-tdep.c (cris_version_update): Use function cmd_type.
7024 (cris_mode_update, cris_abi_update): Ditto.
7025
5913bcb0
AC
7026 * command.h: (execute_cmd_post_hook): Declare.
7027 (execute_cmd_pre_hook): Declare.
7028 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7029 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7030 functions. Execute pre/post hook while ensuring that afterwords
7031 hook_in is cleared.
7032 * top.c (execute_command): Use execute_cmd_post_hook, and
7033 execute_cmd_pre_hook to execute pre/post commands.
7034 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7035 hook_stop_stub.
7036 (hook_stop_stub): Call execute_cmd_pre_hook.
7037
b51450c9
AC
70382002-03-17 Andrew Cagney <ac131313@redhat.com>
7039
7040 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7041 set'' and this leads to a core dump. Move xstrdup of
7042 operating_system to after check that it is not NULL.
7043
f66c9f11
AC
70442002-03-17 Andrew Cagney <ac131313@redhat.com>
7045
8e694ecf
AC
7046 * kod.c (kod_set_os): Remove unnecessary check that
7047 ``command->type'' is set_cmd.
7048
f66c9f11
AC
7049 * valprint.c (set_input_radix): Use input_radix.
7050 (set_output_radix): Use output_radix.
7051 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7052 isn't reverted.
7053
9d01611c
AC
70542002-03-16 Andrew Cagney <ac131313@redhat.com>
7055
7056 * value.h (struct value): Delete field ``substring_addr''. Change
7057 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7058 force_core_addr_align and force_pointer_aligh.
7059
7060 * value.h (struct value): Fix typo in above change.
9d01611c 7061
4156bb53
PS
70622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7063
7064 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7065 to fix internal_error from ``maintenance print architecture''.
7066
0e5e3ea6
PS
70672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7068
7069 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7070 for gcc versions after gcc-2.8.1.
7071
9b013045
PS
70722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7073
7074 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7075 for method resolution. Restore adjustment of ``this'' pointer after
7076 calling value_struct_elt, which was accidentally removed during the
7077 HP merge.
7078
376c9600
AC
70792002-03-15 Andrew Cagney <ac131313@redhat.com>
7080
7081 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7082 value_of_register.
7083 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7084 get_saved_register.
7085 * value.h (value_of_register): Update.
7086
a4db0f07
RH
70872002-03-14 Richard Henderson <rth@redhat.com>
7088
7089 * configure.in: Detect declaration for canonicalize_file_name.
7090 * utils.c (canonicalize_file_name): Declare, if needed.
7091 (gdb_realpath): Prefer realpath if available and usable.
7092 * config.in, configure: Rebuild.
7093
96383835
RH
70942002-03-14 Richard Henderson <rth@redhat.com>
7095
7096 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7097 a constant array bound.
7098
7099 * MAINTAINERS: Add myself to write-after-approval.
7100
75245b24
MS
71012002-03-14 Michael Snyder <msnyder@redhat.com>
7102
7103 * symfile.c (syms_from_objfile): Return immediately if no syms.
7104 (symbol_file_add): Return immediately if no syms.
7105 (find_sym_fns): Return immediately if no syms.
7106
e641a1ca
ML
71072002-03-13 Michal Ludvig <mludvig@suse.cz>
7108
7109 * gdbserver/remote-util.c (remote_open): Print remote-side's
7110 IP address when remote debugging over the network.
7e336ba1 7111
df08bfec
DB
71122002-03-12 David O'Brien <obrien@FreeBSD.org>
7113
7114 * config/sparc/fbsd.mh: Fix copyright.
7115 * config/sparc/fbsd.mt: Likewise.
7116
9a57864f
RE
71172002-03-11 Richard Earnshaw <rearnsha@arm.com>
7118
7119 * MAINTAINERS: Fix typo in name of gdb warnings option.
7120 (x86-64): Fix formating so that this can be parsed by awk.
7121
dd7bf85e
DJ
71222002-03-10 Daniel Jacobowitz <drow@mvista.com>
7123
7124 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7125 * defs.h: Include "gdb/signals.h".
7126 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7127
33a0a2ac
ML
71282002-03-10 Michal Ludvig <mludvig@suse.cz>
7129
7130 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7131 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7132 from x86-64-tdep.h
7133
dd824b04
DJ
71342002-03-10 Daniel Jacobowitz <drow@mvista.com>
7135 Don Howard <dhoward@redhat.com>
7136
7137 * mips-tdep.c (ST0_FR): Define.
7138 (mips2_fp_compat): New function, temporarily disabled.
7139 (mips_read_fp_register_single): New function.
7140 (mips_read_fp_register_double): New function.
7141 (mips_print_register): Use them.
7142 (do_fp_register_row): Likewise.
7143
6a41ff59
AC
71442002-03-09 Andrew Cagney <ac131313@redhat.com>
7145
7146 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7147 approval''.
7148
4ea09c10
PS
71492002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7150
7151 * stabsread.c (read_member_functions): Fix is_stub test for
7152 static member functions, improve comment.
7153
6ccc741d
RE
71542002-03-07 Richard Earnshaw <rearnsha@arm.com>
7155
7156 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7157 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7158 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7159 commands that set boolean values.
7160 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7161 (arm_rdi_resume): Always initialize PC.
7162 (arm_rdi_open): Don't use rslt as a boolean.
7163 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7164 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7165 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7166 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7167
438013df
AO
71682002-03-06 Alexandre Oliva <aoliva@redhat.com>
7169
7170 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7171 * configure: Rebuilt.
7172
70ed8774
SC
71732002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7174
7175 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7176 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7177
5ba2abeb
AC
71782002-03-06 Andrew Cagney <ac131313@redhat.com>
7179
7180 * cli/cli-decode.c (set_cmd_completer): New function.
7181 * command.h (set_cmd_completer): Declare.
7182 * cli/cli-decode.h (set_cmd_completer): Ditto.
7183
7184 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7185 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7186 * win32-nat.c (_initialize_inftarg): Ditto.
7187 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7188 * proc-api.c (_initialize_proc_api): Ditto.
7189 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7190 * source.c (_initialize_source): Ditto.
7191 * exec.c (_initialize_exec): Ditto.
7192 * solib.c (_initialize_solib): Ditto.
7193 * top.c (init_main): Ditto.
7194 * tracepoint.c (_initialize_tracepoint): Ditto.
7195 * symfile.c (_initialize_symfile): Ditto.
7196 * printcmd.c (_initialize_printcmd): Ditto.
7197 * infcmd.c (_initialize_infcmd): Ditto.
7198 * corefile.c (_initialize_core): Ditto.
7199
f779ca99
AC
72002002-03-05 Andrew Cagney <ac131313@redhat.com>
7201
7202 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7203
01a3934b
AC
72042002-03-05 Andrew Cagney <ac131313@redhat.com>
7205
7206 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7207
37057839
AC
72082002-03-05 Andrew Cagney <ac131313@redhat.com>
7209
7210 * NEWS: Update headings, 5.2 has branched.
7211
c6ecbae5
DJ
72122002-03-04 Daniel Jacobowitz <drow@mvista.com>
7213
7214 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7215 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7216 (register_addr, REGISTER_RAW_SIZE): Likewise.
7217 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7218 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7219
e9f30c21
ML
72202002-03-03 Michal Ludvig <mludvig@suse.cz>
7221
7222 * MAINTAINERS (x86-64): Add myself.
7223 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7224 changed value_ptr -> struct value *
7225
54394ac3
DB
72262002-03-01 David O'Brien <obrien@FreeBSD.org>
7227
7228 * configure.host (sparc64-*-freebsd): Add.
7229 * configure.tgt: Likewise.
7230 * config/sparc/fbsd.mh: New file.
7231 * config/sparc/fbsd.mt: Likewise.
7232 * config/sparc/nm-fbsd.h: Likewise.
7233 * config/sparc/tm-fbsd.h: Likewise.
7234
bfe95955
DJ
72352002-03-01 Daniel Jacobowitz <drow@mvista.com>
7236
7237 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7238 regformats/reg-s390x.dat.
7239
f33c6cbf
AC
72402002-03-01 Andrew Cagney <ac131313@redhat.com>
7241
7242 * utils.c: Add FIXME explaining true/false problem.
7243
5ecaa7dd
AC
72442002-02-28 Andrew Cagney <ac131313@redhat.com>
7245
7246 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7247
2a251cc2
MC
72482002-02-28 Michael Chastain <mec@shout.net>
7249
7250 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7251
6a8031a3 72522002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7253
7254 * gdbserver/linux-s390-low.c: New file.
7255 * regformats/reg-s390.dat: New file.
7256 * regformats/reg-s390x.dat: New file.
7257 * gdbserver/configure.srv: Add S/390.
7258 * gdbserver/Makefile.in: Add S/390.
7259 * configure.tgt: Enable gdbserver for S/390.
7260
ac469903
EZ
72612002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7262
7263 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7264 first line of the doc string for "info dos", except at the end of
7265 the sentence, since the short help stops at the first period.
7266
985cb1a3
JM
72672002-02-28 Jason Merrill <jason@redhat.com>
7268
7269 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7270
c570663e
FF
72712002-02-27 Fred Fish <fnf@redhat.com>
7272
7273 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7274 comment (dumy -> dummy).
7275
43630227
PS
72762002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7277
7278 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7279
b84911e8
RB
72802002-02-27 Rodney Brown <rbrown64@csc.com.au>
7281
7282 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7283
58caa3dc
DJ
72842002-02-27 Daniel Jacobowitz <drow@mvista.com>
7285
7286 * gdbserver/acconfig.h: New file.
7287 * gdbserver/i387-fp.c: New file.
7288 * gdbserver/i387-fp.h: New file.
7289 * gdbserver/linux-x86-64.c: New file.
7290 * regformats/reg-x86-64.dat: New file.
7291 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7292 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7293 * gdbserver/configure.in: Add support for regsets.
7294 * gdbserver/config.in: Regenerate.
7295 * gdbserver/configure: Regenerate.
7296 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7297 * gdbserver/linux-low.h: New file.
7298 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7299 for regsets.
7300 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7301 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7302 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7303 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7304 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7305 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7306 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7307 "i387-fp.h". Add PTRACE_GETREGS and friends.
7308 * gdbserver/regcache.c (supply_register): New function.
7309 (supply_register_by_name): New function.
7310 (collect_register): New function.
7311 (collect_register_by_name): New function.
7312
93652174
DJ
73132002-02-27 Daniel Jacobowitz <drow@mvista.com>
7314
7315 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7316 (config.status): Add configure.srv dependency.
7317 (server_h): Add config.h dependency.
7318
a02e4a61
DJ
73192002-02-27 Daniel Jacobowitz <drow@mvista.com>
7320
7321 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7322 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7323 * gdbserver/configure.srv: Change i386-*-linux* to use
7324 reg-i386-linux.o.
7325
ce0eebec
AC
73262002-02-26 Andrew Cagney <ac131313@redhat.com>
7327
7328 * x86-64-tdep.c: Re-indent. Update copyright date.
7329
82dbc5f7
AC
73302002-02-26 Andrew Cagney <ac131313@redhat.com>
7331
7332 From Michal Ludvig <mludvig@suse.cz>:
7333 * x86-64-tdep.c (value.h): Delete.
7334 (gdb_assert.h): Include.
7335 (x86_64_register_convert_to_virtual,
7336 x86_64_register_convert_to_raw ): Add check which lets only
7337 floating-point values to be converted.
7338 (value_push): Delete.
7339 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7340 (i386_gdbarch_init): Number of register_bytes fixed.
7341
e4621584
AC
73422002-02-26 Andrew Cagney <ac131313@redhat.com>
7343
7344 * MAINTAINERS: Add x86-64 target.
7345
81a9a963
AC
73462002-02-26 Andrew Cagney <ac131313@redhat.com>
7347
7348 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7349 * osfsolib.c (solib_map_sections): Ditto.
7350 * irix5-nat.c (solib_map_sections): Ditto.
7351 * corelow.c (gdb_check_format): Ditto.
7352 * symfile.c (symfile_bfd_open): Ditto.
7353 * solib.c (solib_map_sections): Ditto.
7354 Fix PR gdb/354.
7e336ba1 7355
0f017ab9
AC
73562002-02-26 Andrew Cagney <ac131313@redhat.com>
7357
7358 * remote.c (_initialize_remote): By default, disable ``e'' and
7359 ``E'' step out-of-range packets.
7360
75738c29
AS
73612002-02-26 Andreas Schwab <schwab@suse.de>
7362
7363 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7364 m68k_linux_frame_saved_pc.
7365 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7366 in_sigtramp.
7367 (SIGCONTEXT_PC_OFFSET): Remove.
7368 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7369 m68k_linux_sigtramp_saved_pc): New functions.
7370 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7371 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7372 (UCONTEXT_PC_OFFSET): Define.
7373 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7374 non-RT and RT signal trampolines.
7375
7e8ed687
RE
73762002-02-26 Richard Earnshaw <rearnsha@arm.com>
7377
7378 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7379 (TARGET_NBPG, STACK_END_ADDR): Delete
7380 (VARIABLES_INSIDE_BLOCK): Delete.
7381
6972bc8b
AC
73822002-02-25 Andrew Cagney <ac131313@redhat.com>
7383
7384 * utils.c (perror_with_name): Make string parameter constant.
7385 (print_sys_errmsg): Ditto.
7386 (query): Ditto.
7387 * defs.h (perror_with_name): Update.
7388 (print_sys_errmsg): Update.
7389 (query): Update.
7390
aa32f823
DJ
73912002-02-25 Daniel Jacobowitz <drow@mvista.com>
7392
7393 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7394 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7395
19caaa45
PS
73962002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7397
7398 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7399 if it already matches the current architecture from the exec file.
7400 Include arch-utils.h for gdbarch_info_init prototype.
7401 * Makefile.in (rs6000-nat.o): Update dependencies.
7402
d951901f
EZ
74032002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7404
7405 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7406 list of exported variables.
7407
7ea81414
DJ
74082002-02-24 Daniel Jacobowitz <drow@mvista.com>
7409
7410 * gdbserver/configure.srv: New file.
7411 * gdbserver/configure.in: Use configure.srv instead
7412 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7413 from it.
7414 * gdbserver/configure: Regenerated.
7415 * gdbserver/terminal.h: New file.
7416 * gdbserver/Makefile.in: Update for configure changes. Remove
7417 more unneeded include paths.
7418
080fe24b
AC
74192002-02-24 Andrew Cagney <ac131313@redhat.com>
7420
7421 From wiz at danbala:
7422 * config/sparc/tm-sp64.h: Fix grammar and typos.
7423 Fix PR gdb/287.
7424
8605d56e
AC
74252002-02-24 Andrew Cagney <ac131313@redhat.com>
7426
7427 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7428 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7429 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7430 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7431 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7432 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7433 * s390-tdep.c: Ditto.
92362027
AC
7434 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7435 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7436 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7437 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7438 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7439 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7440 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7441 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7442 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7443 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7444 Fix PR gdb/378.
7e336ba1 7445
8ed32cc0
AC
74462002-02-23 Andrew Cagney <ac131313@redhat.com>
7447
a3007b6f
AC
7448 * lin-thread.c: Delete file.
7449 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7450 to gdb_proc_service.h.
7451 * configure: Re-generate.
7452
50a9e2f1
AC
7453 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7454 * serial.c (serial_open): Delete check for "ocd".
7455 Fix PR gdb/349.
7456
8b6e7932
AC
7457 * Makefile.in (linux-thread.o): Delete target.
7458 * linux-thread.c: Delete file.
7459
d155c46b
AC
7460 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7461 renamed SH files to be consistent.
7462
8ed32cc0
AC
7463 * symtab.c (sort_search_symbols): Use xfree.
7464
0e18d038
RE
74652002-02-23 Richard Earnshaw <rearnsha@arm.com>
7466
7467 * arm-linux-tdep.c (arm_linux_init_abi): Register
7468 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7469 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7470 definition with undef, since we don't want the sysvr4 definition.
7471 (SKIP_TRAMPOLINE_CODE): Likewise.
7472
27aac7ff
AC
74732002-02-23 Andrew Cagney <ac131313@redhat.com>
7474
7475 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7476
7477 * configure.in: (AC_CHECK_FUNCS) Added test for
7478 canonicalize_file_name Regenerated.
7479 * config.in, configure: Regenerated.
7480 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7481 defined use canonicalize_file_name.
7e336ba1 7482
65a6e0ee
MC
74832002-02-23 Michael Chastain <mec@shout.net>
7484
7485 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7486
47b95330
AC
74872002-02-23 Andrew Cagney <ac131313@redhat.com>
7488
7489 * README: Remove references to cygnus.com.
7490 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7491 dot com'' form. Remove references to cygnus.com and sourceware.
7492
696f451b
AC
74932002-02-23 Andrew Cagney <ac131313@redhat.com>
7494
7495 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7496 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7497 1003.1-2001 no longer allows "head -1".
7498 * gdb/Makefile.in (version.c): Likewise.
7499 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7500 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7501 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7502
bbaca940
AC
75032002-02-23 Andrew Cagney <ac131313@redhat.com>
7504
7505 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7506 * command.h (cmd_cfunc_eq): Declare.
7507 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7508
7509 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7510 ``struct cmd_list_element *''.
7511 * cli/cli-cmds.c (is_complete_command): Update. Use
7512 cmd_cfunc_eq.
7513 * top.c (execute_command): Pass the command to
7514 is_complete_command.
7515 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7516
b8b8b047
AC
75172002-02-23 Andrew Cagney <ac131313@redhat.com>
7518
7519 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7520 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7521 architecture defines.
7522 * s390-tdep.c (s390_gdbarch_init): Likewise.
7523
19d3fc80
RE
75242002-02-23 Richard Earnshaw <rearnsha@arm.com>
7525
7526 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7527 (arm_linux_push_arguments): Likewise.
7528 (arm_linux_init_abi): Register them. Also register linux-specific
7529 call_dummy_words.
7530 (find_minsym_and_objfile): Use strcmp, not STREQ.
7531 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7532 (arm_linux_call_dummy_words): Delete declaration.
7533 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7534 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7535 declarations.
7536 (LOWEST_PC): Delete.
7537
3ab13650
PS
75382002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7539
7540 * maint.c (print_section_info): Do not prepend `0x' to filepos
7541 output, it will be handled by local_hex_string_custom.
7542
19d3fc80 75432002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7544
7545 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7546 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7547 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7548
d85a5daf
JB
75492002-02-22 Jim Blandy <jimb@redhat.com>
7550
7551 Indicate that the bcache functions don't change the strings
7552 they're passed.
7553 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7554 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7555
eeb25b8a
PM
75562002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7557
7558 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7559
6badb179
CF
75602002-02-21 Christopher Faylor <cgf@redhat.com>
7561
7562 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7563 find the complete path to a loaded DLL.
7564
e8717518
FF
75652002-02-21 Fred Fish <fnf@redhat.com>
7566
7567 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7568 that marks the end of the range of a function, enter a line number
7569 entry that has a line number of zero and a PC offset that matches
7570 the end of the function. This starts a range of PC's for which no
7571 line number information is known.
7572 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7573 PC's for which no line number info is found (line number is zero)
7574 then we didn't find any valid line information.
7575 * symtab.h: Document use of zero line number entry.
7576
9abe5450
EZ
75772002-02-21 Elena Zannoni <ezannoni@redhat.com>
7578
7579 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7580 (have_ptrace_getvrregs): Define for run time checks.
7581 (gdb_vrregset_t): New type for Altivec register handling.
7582 (fetch_register, store_register): Fetch/store altivec register
7583 when needed.
7584 (fetch_altivec_register, store_altivec_register): New functions.
7585 (supply_vrregset, fill_vrregset): New functions.
7586 (fetch_altivec_registers, store_altivec_registers): New functions.
7587 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7588 registers as well.
7589
aaa38bb5
AJ
75902002-02-21 Jiri Smid <smid@suse.cz>
7591
7592 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7593
b34db576
RE
75942002-02-21 Richard Earnshaw <rearnsha@arm.com>
7595
7596 * Makefile.in (armnbsd-nat.o): Update dependencies.
7597 * armnbsd-nat.c (supply_gregset): New function. Common code to
7598 supply the integer register set.
7599 (supply_fparegset): New function. Similar for FPA registers.
7600 (fetch_regs, fetch_fp_regs): Use them.
7601 (fetch_core_registers): Likewise.
7602 (fetch_elfcore_registers): New function.
7603 (arm_netbsd_elfcore_fns): New core-file type specification.
7604 (_initialize_arm_netbsd_nat): Register it.
7605
3e56fc4b
RE
76062002-02-21 Richard Earnshaw <rearnsha@arm.com>
7607
7608 * armnbsd-nat.c: Include gdbcore.h.
7609 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7610 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7611 'void' to declaration, to shut up ARI.
7612 (fetch_core_registers): Make static. Rewrite using supply_register.
7613 (arm_netbsd_core_fns): New core-file type specification.
7614 (_initialize_arm_netbsd_nat): New function.
7615
097f6b0b
CF
76162002-02-21 Christopher Faylor <cgf@redhat.com>
7617
7618 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7619 value.
7620
c914e0cc
CF
76212002-02-20 Christopher Faylor <cgf@redhat.com>
7622
7623 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7624 fails.
7625
385fa495
DJ
76262002-02-20 Daniel Jacobowitz <drow@mvista.com>
7627
7628 * jv-exp.y (parse_number): Change type of implicit longs
7629 to builtin_type_uint64.
7630
e5f1222d
DJ
76312002-02-20 Daniel Jacobowitz <drow@mvista.com>
7632
7633 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7634 to be an integer instead of a `union wait'.
7635
75c9abc6
DJ
76362002-02-20 Daniel Jacobowitz <drow@mvista.com>
7637
7638 * mips-linux-nat.c: Call the operating system GNU/Linux.
7639 * mips-linux-tdep.c: Likewise.
7640 * mips-tdep.c: Likewise.
7641
551792a5
DJ
76422002-02-20 Daniel Jacobowitz <drow@mvista.com>
7643
7644 Fix PR gdb/265.
7645 * jv-exp.y (parse_number): Handle 64-bit integers.
7646
ee6e2b82
DJ
76472002-02-20 Daniel Jacobowitz <drow@mvista.com>
7648
7649 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7650 AC_STDC_HEADERS to AC_HEADER_STDC.
7651 * gdbserver/configure: Regenerated.
7652
a48442a0
RE
76532002-02-20 Richard Earnshaw <rearnsha@arm.com>
7654
7655 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7656 is defined.
7657 * sparc-tdep.c (get_longjmp_target): Likewise.
7658
fe419ffc
RE
76592002-02-20 Richard Earnshaw <rearnsha@arm.com>
7660
7661 * News: Add news about ARM and Multi-arch. Mention the new target
7662 arm*-*-netbsd*.
7663
5832ed7e
JB
76642002-02-19 Jim Blandy <jimb@redhat.com>
7665
7666 * stabsread.c (error_type_complaint): Improve error message.
7667
84563040
DJ
76682002-02-19 Daniel Jacobowitz <drow@mvista.com>
7669
7670 * gdbserver/README: Update documentation.
7671 * gdbserver/configure.in: Update configury to match documentation.
7672 * gdbserver/Makefile.in: Likewise.
7673 * gdbserver/configure: Regenerated.
7674 * gdbserver/aclocal.m4: New file, generated by aclocal.
7675 * gdbserver/config.in: New file, generated by autoheader.
7676
375fd65b
RE
76772002-02-19 Richard Earnshaw <rearnsha@arm.com>
7678
7679 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7680 armnbsd-nat.c.
7681
08216dd7
RE
76822002-02-19 Richard Earnshaw <rearnsha@arm.com>
7683
7684 * arm-tdep.h (enum arm_float_model): New enum.
7685 (struct gdbarch_tdep): Add fp_model.
7686 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7687 up floating-point conversions until we know the floating-point model
7688 in use by the inferior. Don't complain about being unable to
7689 determine the ABI of the inferior when we don't have one.
7690 (arm_extract_return_value): Support different floating-point models.
7691 (arm_store_return_value): Likewise.
aaa38bb5 7692 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
7693 ARM_FLOAT_SOFT.
7694 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7695
65d6d66a
PS
76962002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7697
7698 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7699 of ``current_gdbarch''.
7700
47221191
RE
77012002-02-19 Richard Earnshaw <rearnsha@arm.com>
7702
7703 * armnbsd-nat.c : ANSIfy all function declarations.
7704 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7705 (fetch_inferior_registers): Re-implement in terms of above.
7706 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7707 (store_inferior_registers): Re-implement in terms of above.
7708
fdf39c9a
RE
77092002-02-19 Richard Earnshaw <rearnsha@arm.com>
7710
aaa38bb5 7711 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
7712 kernel.
7713 * arm-linux-tdep.c: Likewise.
7714 * config/arm/tm-linux.h: Likewise.
7715
93247f88
RE
77162002-02-19 Richard Earnshaw <rearnsha@arm.com>
7717
7718 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7719 * config/arm/nbsd.mt (TM_FILE): Delete.
7720 * config/arm/tm-nbsd.h: Delete.
7721
d7b486e7
RE
77222002-02-19 Richard Earnshaw <rearnsha@arm.com>
7723
7724 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7725 Initialize CALL_DUMMY_LENGTH.
7726
41d39a95
RE
77272002-02-19 Richard Earnshaw <rearnsha@arm.com>
7728
7729 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7730 function.
7731 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 7732 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
7733 defines one thing and that is incorrect for this port.
7734 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7735
e1195560
PM
77362002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7737
7738 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7739
c1748f97
PM
77402002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7741
7742 * win32-nat.c (display_selector): New function. Displays information
7743 about the information returned by GetThreadSelectorEntry API function.
7744 (display_selectors): New function. Displays the infomation of
7745 the selector given as argument, or of CS, DS ans FS selectors
7746 if no argument is given.
7747 ( _initialize_inftarg): Add "w32" as info prefix command.
7748 Add "info w32 selector" as command calling display_selectors.
7749
e41e6bbf
PM
77502002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7751
7752 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7753 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7754 if not defined.
7755
0d3a9f48
RE
77562002-02-18 Richard Earnshaw <rearnsha@arm.com>
7757
7758 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7759
3fb4b924
RE
77602002-02-18 Richard Earnshaw <rearnsha@arm.com>
7761
7762 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7763 (arm_fix_call_dummy): Call it.
7764 (arm_call_dummy_breakpoint_offset): Delete.
7765 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7766 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7767
7f55af32
AC
77682002-02-18 Andrew Cagney <ac131313@redhat.com>
7769
7770 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7771 Default to func_frame_chain_valid.
7772 * gdbarch.h, gdbarch.c: Re-generate.
7773 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7774
05f13b9c
EZ
77752002-02-18 Elena Zannoni <ezannoni@redhat.com>
7776
7777 * ppc-linux-nat.c: Update copyright.
7778 (fetch_register, store_register): Add tid parameter, don't compute
7779 tid here.
7780 (fetch_ppc_registers, store_ppc_registers): Add tid
7781 parameter. Pass it along to callees.
7782 (fetch_inferior_registers, store_inferior_registers): Compute tid
7783 here, and pass it to calleed functions.
7784 (fill_gregset, supply_fpregset): Clean up formatting.
7785
d7afb4c9
RE
77862002-02-18 Richard Earnshaw <rearnsha@arm.com>
7787
7788 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7789 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7790
9df628e0
RE
77912002-02-18 Richard Earnshaw <rearnsha@arm.com>
7792
7793 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7794 * gdbarch.c gdbarch.h: Regenerate.
7795 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7796 function.
7797 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7798 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7799 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7800
7801 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7802 * arm-tdep.c (arm_get_longjmp_target): New function.
7803 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7804 this to a positive value register arm_get_longjmp_target as the
7805 longjmp handler.
7806 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7807 (arm_linux_init_abi): Set up longjmp description in tdep.
7808 * armnbsd-nat.c (get_longjmp_target): Delete.
7809 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7810 description in tdep.
7811 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7812 (get_longjmp_target): Delete declaration.
7813 (GET_LONGJMP_TARGET): Delete.
7814 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7815 (GET_LONGJMP_TARGET): Delete.
7816
57bc8964
KB
78172002-02-17 Kevin Buettner <kevinb@redhat.com>
7818
7819 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7820 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7821 of ``current_gdbarch''.
7822
83d31a92
TT
78232002-02-17 Tom Tromey <tromey@redhat.com>
7824
7825 * cli/cli-cmds.c (compare_strings): New function.
7826 (complete_command): Only print each unique item once.
7827 * completer.h (complete_line): Declare.
7828 * completer.c (complete_line): New function.
7829 (line_completion_function): Use it.
7830
17ef5d92
AC
78312002-02-16 Andrew Cagney <ac131313@redhat.com>
7832
7833 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7834 * gdbarch.h, gdbarch.c: Re-generate.
7835
491b8946
DJ
78362002-02-16 Daniel Jacobowitz <drow@mvista.com>
7837
7838 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7839
78402002-02-16 Daniel Jacobowitz <drow@mvista.com>
7841
7842 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7843 * valops.c (value_arg_coerce): Don't take the address of a reference
7844 to convert an argument to a reference.
7845
dfe7f3ac
CF
78462002-02-15 Christopher Faylor <cgf@redhat.com>
7847
7848 * win32-nat.c (get_image_name): New function.
7849 (handle_load_dll): Use get_image_name function.
7850 (get_child_debug_event): Avoid registering debug events until possibly
7851 execed process is started.
7852 (child_create_inferior): Allow invocation via shell so that command
7853 line redirection, etc. works ok.
7854 (_initialize_inftarg): Add new command: "set shell" to control whether
7855 a shell is used to start a process.
7856
1d33e73a
DJ
78572002-02-15 Daniel Jacobowitz <drow@mvista.com>
7858
7859 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7860 instead of find_register_by_number.
7861 (cannot_store_register): Likewise.
7862
48cd0caa
PM
78632002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7864
aaa38bb5 7865 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
7866 fprintf_unfiltered (gdb_stderr, ...).
7867
8656e7d8
DJ
78682002-02-15 Daniel Jacobowitz <drow@mvista.com>
7869
7870 * gdbserver/gdbserver.1: Document --attach.
7871
66e810cd
RE
78722002-02-15 Richard Earnshaw <rearnsha@arm.com>
7873
7874 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7875 descriptions.
7876 * arm-tdep.c (arm_default_arm_le_breakpoint)
7877 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7878 (arm_default_thumb_be_breakpoint): New. Initialize them from
7879 traditional breakpoint defines.
7880 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7881 (arm_gdbarch_init): Initialize new breakpoint variables.
7882 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7883 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7884 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7885 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7886 code out to ...
7887 (arm_netbsd_init_abi_common): ... here; new function.
7888 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7889 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7890 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7891 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7892
97e03143
RE
78932002-02-15 Richard Earnshaw <rearnsha@arm.com>
7894
7895 * arm-tdep.h (enum arm_abi): New enum.
7896 (struct gdbarch_tdep): New structure.
7897 (LOWEST_PC): Provide a default.
7898 (arm_gdbarch_register_os_abi): Declare new function.
7899 * arm-tdep.c (arm_abi_names): New array.
7900 (process_note_abi_tag_sections): New function.
7901 (get_elfosabi): New function.
7902 (arm_gdbarch_register_os_abi): New function.
7903 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7904 support for that ABI has been built in, then call the appropriate
7905 configuration routine. Use gdbarch_num_regs() to get the number
7906 of registers.
7907 (arm_dump_tdep): New function.
7908 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7909 place-holder functions.
7910 (_initialize_arm_tdep): Register them.
7911 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7912
7913 * armnbsd-tdep.c: New file.
7914 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7915 * config/arm/nbsd.mt (TDEPFILES): Add it.
7916 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7917
7918 * armnbsd-nat.c: Include regcache.h.
7919 * Makefile.in (armnbsd-nat.o): Update dependency list.
7920
7921 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7922
ad68be46
DJ
79232002-02-14 Daniel Jacobowitz <drow@mvista.com>
7924
7925 * gdbserver/Makefile.in: Fix typos in target rules.
7926
003d6d1d
DJ
79272002-02-14 Daniel Jacobowitz <drow@mvista.com>
7928
aaa38bb5 7929 Fix part of PR gdb/267.
003d6d1d
DJ
7930 * linespec.c (find_methods): Handle constructors specially for now.
7931
6b230f1b
CV
79322002-02-14 Corinna Vinschen <vinschen@redhat.com>
7933
7934 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7935 handling.
7936 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7937 standard_coerce_float_to_double().
7938
1ea98d12
CF
79392002-02-14 Christopher Faylor <cgf@redhat.com>
7940
7941 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7942 GDBINIT_FILENAME.
7943
dd47e6fd
EZ
79442002-02-14 Elena Zannoni <ezannoni@redhat.com>
7945
7946 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7947 find_variant_by_name, because it confuses the multiarch
7948 framework. Return NULL if there isn't an architecture with the
7949 user supplied name, instead of forcing a different one without
7950 recording the change with the multiarch machinery.
7951 (find_variant_by_name): Delete.
7952
d7e39b9e
PS
79532002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7954
7955 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7956 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7957
76e42a4f
MH
79582002-02-13 Martin M. Hunt <hunt@redhat.com>
7959
aaa38bb5 7960 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
7961 print_frame_info_listing_hook, set current_source_symtab.
7962
0a30fbc4
DJ
79632002-02-14 Daniel Jacobowitz <drow@mvista.com>
7964
7965 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7966 and remove unused $(INCLUDE_DIR).
7967 Add regcache.c to OBS.
7968 Add generated register protocol files to clean target.
7969 Update dependencies for new objects, obsolete old target code.
7970
7971 * gdbserver/linux-low.c: Remove all platform-specific code to
7972 new files. Remove various dead code. Update to use regcache
7973 functionality.
7974 * gdbserver/remote-utils.c (fromhex): Add return statement
7975 to quiet warning.
7976 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7977 constant.
7978 (input_interrupt): Add integer parameter to match prototype
7979 of a signal handler.
7980 (outreg): Use register_data ().
7981 (prepare_resume_reply): Use gdbserver_expedite_regs.
7982 * gdbserver/server.c (main): Dynamically allocate own_buf because
7983 PBUFSIZ is no longer constant. Use registers_to_string () and
7984 registers_from_string ().
7985 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7986 for error (), fatal (), and warning (). Update definition of
7987 PBUFSIZ to use regcache functionality. Add include guard.
7988 * gdbserver/utils.c (fatal): Add missing ``const''.
7989 (warning): New function.
7990
7991 * regformats/regdat.sh: Include "regcache.h" in generated files.
7992 Provide init_registers () function.
7993 * regformats/regdef.h: Add prototype for set_register_cache ().
7994 Add include guard.
7995
7996 * gdbserver/linux-arm-low.c: New file.
7997 * gdbserver/linux-i386-low.c: New file.
7998 * gdbserver/linux-ia64-low.c: New file.
7999 * gdbserver/linux-m68k-low.c: New file.
8000 * gdbserver/linux-mips-low.c: New file.
8001 * gdbserver/linux-ppc-low.c: New file.
8002 * gdbserver/linux-sh-low.c: New file.
8003
8004 * gdbserver/regcache.c: New file.
8005 * gdbserver/regcache.h: New file.
8006
8007 * gdbserver/low-linux.c: Removed obsolete file.
8008
4cc841d0
DJ
80092002-02-14 Daniel Jacobowitz <drow@mvista.com>
8010
8011 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8012 * config/i386/linux.mt: Likewise.
8013 * config/ia64/linux.mt: Likewise.
8014 * config/m68k/linux.mh: Likewise.
8015 * config/powerpc/linux.mh: Likewise.
8016 * config/mips/linux.mt: Likewise.
8017
8018 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8019
8020 * config/i386/i386lynx.mh: Mark gdbserver variables
8021 as (currently) obsolete for this target.
8022 * config/i386/nbsd.mt: Likewise.
8023 * config/i386/nbsdelf.mt: Likewise.
8024 * config/m32r/m32r.mt: Likewise.
8025 * config/m68k/m68klynx.mh: Likewise.
8026 * config/m68k/nbsd.mt: Likewise.
8027 * config/m68k/sun3os4.mh: Likewise.
8028 * config/mips/vr5000.mt: Likewise.
8029 * config/ns32k/nbsd.mt: Likewise.
8030 * config/pa/hppabsd.mh: Likewise.
8031 * config/pa/hppaosf.mh: Likewise.
8032 * config/powerpc/nbsd.mt: Likewise.
8033 * config/rs6000/rs6000lynx.mh: Likewise.
8034 * config/s390/s390.mt: Likewise.
8035 * config/s390/s390x.mt: Likewise.
8036 * config/sparc/sparclynx.mh: Likewise.
8037 * config/sparc/sun4os4.mh: Likewise.
8038 * config/i386/x86-64linux.mt: Likewise.
8039 * config/sparc/linux.mh: Likewise.
8040
a85f51e7
DJ
80412002-02-14 Daniel Jacobowitz <drow@mvista.com>
8042
8043 * configure.tgt: Configure gdbserver only for known working
8044 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8045 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8046 SUBDIRS if it is configured. Update comment for ${nativefile}.
8047 * configure: Regenerated.
8048
65554fef
MS
80492002-02-13 Michael Snyder <msnyder@redhat.com>
8050
670a52db
MS
8051 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8052
6dbdc4a3
MS
8053 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8054 (default_gcore_mach): Just return 0, work around a problem in bfd.
8055 (default_gcore_target): OK to return NULL if exec_bfd is null.
8056 (make_mem_sec): Use a cast, avoid a warning.
8057
8058 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8059 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8060 sizeof (host pointer) != sizeof (target pointer)).
8061 (procfs_make_note_section): Avoid overflow in psargs string.
8062
aaa38bb5 8063 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8064 implementation return an error.
8065
80662002-02-13 Rodney Brown <rbrown64@csc.com.au>
8067
8068 * procfs.c (procfs_make_note_section): Provide a default definition
8069 (for alpha-dec-osf4.0f). Fix typos.
8070
1e4d76e7
EZ
80712002-02-13 Elena Zannoni <ezannoni@redhat.com>
8072
8073 * linux-proc.c: Add include of regcache.h.
8074 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8075
b6d1a1d5
AC
80762002-02-13 Andrew Cagney <ac131313@redhat.com>
8077
8078 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8079 * memattr.c (create_mem_region): Disallow useless empty region.
8080 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8081 non-overlapping.
b6d1a1d5 8082
6c6ea35e
MC
80832002-02-13 Michael Chastain <mec@shout.net>
8084
8085 * defs.h: Kill CONST_PTR.
8086 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8087 * c-lang.c (c_builtin_types): Likewise.
8088 * ch-lang.c (ch_builtin_types): Likewise.
8089 * f-lang.c (f_builtin_types): Likewise.
8090 * language.c (unknown_builtin_types): Likewise.
8091 * m2-lang.c (m2_builtin_types): Likewise.
8092 * p-lang.c (pascal_builtin_types): Likewise.
8093 * scm-lang.c (c_builtin_types): Likewise.
8094
3e0b0f48
KS
80952002-02-13 Keith Seitz <keiths@redhat.com>
8096
8097 * arm-tdep.h (arm_get_next_pc): Add declaration.
8098
67255d04
RE
80992002-02-13 Richard Earnshaw <rearnsha@arm.com>
8100
8101 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8102 with other related struct-returning functions.
8103 (arm_extract_struct_value_address): New function.
8104 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8105 initialize float_format, double_format and long_double_format as
8106 appropriate to the endianness of the target.
8107 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8108 (arm_use_struct_convention): Delete declaration.
8109 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8110
079777f6
KS
81112002-02-13 Keith Seitz <keiths@redhat.com>
8112
8113 * defs.h (core_addr_to_string_nz): New function.
8114
34588f23
MK
81152002-02-13 Mark Kettenis <kettenis@gnu.org>
8116
8117 Apply missing bits of 2002-01-15 patch.
8118 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8119 (fill_fpregset): Use i387_fill_fsave.
8120
49b563f9
KS
81212002-02-12 Keith Seitz <keiths@redhat.com>
8122
49b563f9
KS
8123 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8124 (core_addr_to_string_nz): New function.
8125
aeb98c60
RE
81262002-02-11 Richard Earnshaw <rearnsha@arm.com>
8127
8128 * arm-linux-nat.c: Really include arm-tdep.h.
8129 * config/arm/tm-linux.h (struct type, struct value): Declare.
8130
65554fef
MS
81312002-02-11 Michael Snyder <msnyder@redhat.com>
8132
8133 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8134 (gcore section): Ifdef for Solaris and Unixware only.
8135 (procfs_do_thread_registers): Unixware needs one lwpstatus
8136 per thread (not one prstatus or pstatus).
8137 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8138 not over all gdb threads. For unixware, call elfcore_write_pstatus
8139 once before iterating over threads.
8140
34e8f22d
RE
81412002-02-11 Richard Earnshaw <rearnsha@arm.com>
8142
8143 * arm-tdep.h: New file.
8144 * arm-tdep.c: Include arm-tdep.h.
8145 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8146 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8147 (arm_print_float_info, arm_register_type, convert_to_extended)
8148 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8149 (arm_extract_return_value, arm_register_name): Make static.
8150 (arm_software_single_step): Similarly. Fix types in declaration.
8151 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8152 (arm_store_return_value, arm_store_struct_return): New functions.
8153 (arm_gdbarch_init): Register the above functions. Also register
8154 call_dummy_start_offset, sizeof_call_dummy_words,
8155 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8156 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8157 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8158 prologue_cache.saved_regs here, rather than ...
8159 (_initialize_arm_tdep): ... here.
8160 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8161 declarations.
8162 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8163 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8164 (arm_print_float_info, arm_register_type, convert_to_extended)
8165 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8166 (arm_extract_return_value, arm_register_name): Delete declarations.
8167 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8168 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8169 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8170 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8171 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8172 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8173 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8174 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8175 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8176 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8177 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8178 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8179 interface.
8180 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8181 * remote-rdi.c remote-rdp.c: Likewise.
8182 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8183 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8184 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8185 definition.
8186
8187 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8188 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8189 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8190 from non-ARM_ prefixed definitions.
8191 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8192 all uses of above.
8193 * remote-rdi.c remote-rdp.c: Likewise.
8194 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8195
148754e5
RE
81962002-02-11 Richard Earnshaw <rearnsha@arm.com>
8197
8198 * arm-tdep.c (arm_frameless_function_invocation)
8199 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8200 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8201 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8202 (arm_pop_frame, arm_get_next_pc): Make static.
8203 (arm_gdbarch_init): Register above in gdbarch structure.
8204 (arm_read_fp): Renamed from arm_target_read_fp.
8205 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8206 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8207 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8208 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8209 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8210 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8211 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8212 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8213 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8214 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8215 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8216
434d2d4f
DJ
82172002-02-10 Daniel Jacobowitz <drow@mvista.com>
8218
8219 * symtab.c (compare_search_syms): New function.
8220 (sort_search_symbols): New function.
8221 (search_symbols): Sort symbols after searching rather than
8222 before.
8223
55241689
AC
82242002-02-10 Andrew Cagney <ac131313@redhat.com>
8225
8226 * NEWS: Linux -> GNU/Linux.
8227
028c194b
AC
82282002-02-10 Andrew Cagney <ac131313@redhat.com>
8229
8230 * gdbarch.sh: For for level one methods, disallow a definition
8231 when partially multi-arched. Add comments explaining rationale.
8232 * gdbarch.h: Re-generate.
8233
6acf50cd
AC
82342002-02-10 Andrew Cagney <ac131313@redhat.com>
8235
8236 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8237 multi-arch partial.
aaa38bb5 8238
50248794
AC
82392002-02-10 Andrew Cagney <ac131313@redhat.com>
8240
8241 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8242 field. Use diff -u.
8243 * gdbarch.c: Re-generate.
8244
c30e0066
AC
82452002-02-10 Andrew Cagney <ac131313@redhat.com>
8246
9b56c5f3 8247 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8248 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8249 partial.
8250
6e6d6484
AC
82512002-02-10 Andrew Cagney <ac131313@redhat.com>
8252
8253 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8254 multi-arch partial.
8255 (PUSH_ARGUMENTS): Switch to using predefault.
8256 * gdbarch.c: Regenerate.
8257
c203844d
AC
82582002-02-10 Andrew Cagney <ac131313@redhat.com>
8259
8260 * valops.c (PUSH_ARGUMENTS): Delete definition.
8261 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8262 partial. Default to default_push_arguments.
8263 * gdbarch.h, gdbarch.c: Regenerate.
8264
b5a2688f
AC
82652002-02-09 Andrew Cagney <ac131313@redhat.com>
8266
8267 * defs.h (throw_exception): Rename return_to_top_level. Update
8268 comments.
8269 * utils.c (error_stream, internal_verror, quit): Ditto.
8270 * top.c (throw_exception, catcher): Ditto.
8271 * sparclet-rom.c (sparclet_load): Ditto.
8272 * remote.c (interrupt_query, minitelnet): Ditto.
8273 * remote-sds.c (interrupt_query): Ditto.
8274 * remote-mips.c (mips_error, mips_kill): Ditto.
8275 * ocd.c (interrupt_query): Ditto.
8276 * monitor.c (monitor_interrupt_query): Ditto.
8277 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8278 * target.h: Update comment.
aaa38bb5 8279
b5a2688f 8280 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8281
2fa5c1e0
AC
82822002-02-09 Andrew Cagney <ac131313@redhat.com>
8283
8284 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8285 default_double_format.
8286 * gdbarch.h, gdbarch.c: Re-generate.
8287 * findvar.c (floatformat_unknown): Delete variable definition.
8288 * doublest.h (floatformat_unknown): Delete variable declaration.
8289
da966255
JB
82902002-02-09 Jim Blandy <jimb@redhat.com>
8291
8292 * stabsread.c (read_type): Add code to parse Sun's syntax for
8293 prototyped function types.
8294
123a4891
AC
82952002-02-09 Andrew Cagney <ac131313@redhat.com>
8296
8297 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8298 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8299
fb39c8f3
PS
83002002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8301
8302 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8303 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8304 now _initialize_xcoffsolib gets called again and overrides the
8305 commands from solib.c in a native configuration.
8306
0b87a11d
MK
83072002-02-09 Mark Kettenis <kettenis@gnu.org>
8308
8309 * doublest.c (store_typed_floating): Don't try to return a value.
8310 Fixes PR gdb/290.
8311
bdc2fc72
JB
83122002-02-08 Jim Blandy <jimb@redhat.com>
8313
8314 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8315 is prototyped and has no arguments, print its argument list as
8316 `(void)'.
8317
da69bbcf
CD
83182002-02-08 Chris Demetriou <cgd@broadcom.com>
8319
8320 * MAINTAINERS (write-after-approval): Add myself.
8321 (paper-trail): I've escaped!
aaa38bb5 8322
b69571f5
CF
83232002-02-08 Christopher Faylor <cgf@redhat.com>
8324
8325 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8326 changes.
8327 (_initialize_check_for_gdb_ini): Ditto.
8328
f6871398
MH
83292002-02-08 Martin M. Hunt <hunt@redhat.com>
8330
8331 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8332 xaprintf -> xasprintf.
8333
4e52d31c
PM
83342002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8335
8336 * win32-nat.c: Remove use of printf and sprintf functions.
8337
39bbf761
RE
83382002-02-08 Richard Earnshaw <rearnsha@arm.com>
8339
8340 * arm-tdep.c (arm_frame_chain_valid): Make static.
8341 (arm_push_arguments): Likewise.
8342 (arm_gdbarch_init): New function.
8343 (_initialize_arm_tdep): Call it.
8344 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8345 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8346 (FRAME_CHAIN_VALID): Delete.
8347 (arm_frame_chain_valid): Delete declaration.
8348 (PUSH_ARGUMENTS): Delete.
8349 (arm_push_arguments): Delete declaration.
8350 (CALL_DUMMY_P): Delete.
8351
9c9532c9
CV
83522002-02-08 Andrew Cagney <ac131313@redhat.com>
8353 Corinna Vinschen <vinschen@redhat.com>
8354
8355 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8356 on builtin float types.
8357
4e8f7a8b
DJ
83582002-02-08 Daniel Jacobowitz <drow@mvista.com>
8359
8360 * utils.c: Include <curses.h> before "bfd.h".
8361 * tui/tui-hooks.c: Likewise.
8362 * tui/tui.c: Likewise.
8363 * tui/tuiCommand.c: Likewise.
8364 * tui/tuiData.c: Likewise.
8365 * tui/tuiDataWin.c: Likewise.
8366 * tui/tuiDisassem.c: Likewise.
8367 * tui/tuiGeneralWin.c: Likewise.
8368 * tui/tuiIO.c: Likewise.
8369 * tui/tuiLayout.c: Likewise.
8370 * tui/tuiRegs.c: Likewise.
8371 * tui/tuiSource.c: Likewise.
8372 * tui/tuiSourceWin.c: Likewise.
8373 * tui/tuiStack.c: Likewise.
8374 * tui/tuiWin.c: Likewise.
8375
cd4bffcf
EZ
83762002-02-07 Elena Zannoni <ezannoni@redhat.com>
8377
8378 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8379 to include space for pseudoregs as well. Update loops accordingly.
8380 (sh_fp_frame_init_saved_regs): Ditto.
8381 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8382
26806ce2
AC
83832002-02-07 Andrew Cagney <ac131313@redhat.com>
8384
8385 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8386 Add Richard Earnshaw to Arm maintainers.
8387
97fdab62
AC
83882002-02-07 Andrew Cagney <ac131313@redhat.com>
8389
a6b98203
AC
8390 * defs.h (warning_begin): Delete declaration.
8391
97fdab62
AC
8392 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8393 Delete macro.
8394
78b29b40
MS
83952002-02-07 Michael Snyder <msnyder@redhat.com>
8396
aaa38bb5 8397 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8398 Logic bug, remove misplaced else.
8399
d8849953
KD
84002002-02-07 Klee Dienes <klee@apple.com>
8401
8402 * fork-inferior.c (fork_inferior): Add '!' to the list of
8403 characters that need to be quoted when building a string for the
8404 shell. Quote '!' specifically with a backslash, since CSH chokes
8405 when trying to evaluate "str!str".
aaa38bb5 8406
095778a0
NC
84072002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8408
8409 * rdi-share/host.h: Only provide a typedef for bool if it is not
8410 defined.
8411
1900040c
MS
84122002-02-04 Michael Snyder <msnyder@redhat.com>
8413
8414 * breakpoint.h (enum bptype): Add new overlay event bp type.
8415 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8416
1900040c
MS
8417 * breakpoint.c (create_internal_breakpoint): New function.
8418 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8419 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8420 (create_thread_event_breakpoint): Ditto.
8421 (create_solib_event_breakpoint): Ditto.
8422 (create_overlay_event_breakpoint): New function.
8423 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8424 (update_breakpoints_after_exec): Delete and re-initialize
8425 overlay event breakpoints after an exec. Add FIXME comment
8426 about longjmp breakpoint.
8427 (print_it_typical): Ignore overlay event breakpoints.
8428 (print_one_breakpoint): Ditto.
8429 (mention): Ditto.
8430 (bpstat_what): Do not stop for overlay event breakpoints.
8431 (delete_breakpoint): Don't delete overlay event breakpoints.
8432 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8433 (breakpoint_re_set): Re-create overlay event breakpoint.
8434
8435 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8436 (overlay_manual_command): Disable overlay breakpoints.
8437 (overlay_off_command): Disable overlay breakpoints.
8438
082fc60d
RE
84392002-02-06 Richard Earnshaw <rearnsha@arm.com>
8440
8441 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8442 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8443 to here from config/tm-arm.h.
8444 (coff_sym_is_thumb): Make static.
8445 (arm_elf_make_msymbol_special): New function.
8446 (arm_coff_make_msymbol_special): New function.
8447 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8448 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8449 (coff_sym_is_thumb): Delete declaration.
8450 (arm_elf_make_msymbol_special): Declare.
8451 (arm_coff_make_msymbol_special): Declare.
8452 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8453 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8454
039c5766
RE
84552002-02-06 Richard Earnshaw <rearnsha@arm.com>
8456
8457 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8458
84592002-02-06 Richard Earnshaw <rearnsha@arm.com>
8460
8461 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8462 * gdbarch.c gdbarch.h: Regenerate.
8463 * arch-utils.c (default_print_float_info): New function.
8464 * arch-utils.h (default_print_float_info): Prototype it.
8465 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8466 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8467 (PRINT_FLOAT_INFO): Document it.
8468
8469 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8470 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8471 (PRINT_FLOAT_INFO): Define.
8472
58fa08f0
PM
84732002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8474
aaa38bb5 8475 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8476 Add typecast to sprintf argument to suppress a warning.
8477
7393af7c
PM
84782002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8479
58fa08f0 8480 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8481 to allow easier handling of pass state.
8482 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8483 that gives exception name and address.
8484 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8485 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8486 exceptions added.
aaa38bb5
AJ
8487 (child_continue): Correctly report continue_status.
8488 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8489 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8490 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8491 the exception should be passed to debuggee or not.
8492
6af4589c
MS
84932002-02-05 Michael Snyder <msnyder@redhat.com>
8494
8495 * regcache.c (fetch_register): Call target_fetch_register
8496 only if we don't call FETCH_PSEUDO_REGISTER.
8497 (store_register): Call target_store_register only if we
8498 don't call STORE_PSEUDO_REGISTER.
8499
a2cf933a
EZ
85002002-02-05 Elena Zannoni <ezannoni@redhat.com>
8501
8502 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8503 ELF_MAKE_MSYMBOL_SPECIAL.
8504 * gdbarch.c, gdbarch.h: Regenerate.
8505 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8506 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8507 * elfread.c (elf_symtab_read): Compile use of
8508 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8509 multiarched.
8510 * coffread.c (coff_symtab_read): Ditto, for
8511 COFF_MAKE_MSYMBOL_SPECIAL.
8512
6bb7be43
JB
85132002-02-05 Jim Blandy <jimb@redhat.com>
8514
8515 * solib-svr4.c (svr4_truncate_ptr): New function.
8516 (svr4_relocate_section_addresses): Do the address arithmetic with
8517 the appropriate truncation for target addresses, even when
8518 CORE_ADDR is larger than a target address.
8519
e18651ec
DJ
85202002-02-05 Daniel Jacobowitz <drow@mvista.com>
8521
8522 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8523 to (int *).
8524
6b2725be
DJ
85252002-02-05 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8528 code.
8529
fca9e603
DJ
85302002-02-05 Daniel Jacobowitz <drow@mvista.com>
8531
8532 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8533
6c537a52
DJ
85342002-02-05 Daniel Jacobowitz <drow@mvista.com>
8535
8536 * gdbserver/linux-low.c: Remove unused include files.
8537
d844cde6
DJ
85382002-02-05 Daniel Jacobowitz <drow@mvista.com>
8539
8540 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8541 (read_inferior_memory): Use it.
8542 (write_inferior_memory): Likewise.
8543
d07c63e7
DJ
85442002-02-05 Daniel Jacobowitz <drow@mvista.com>
8545
8546 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8547 grubbing through sys_errlist.
8548
da6d8c04
DJ
85492002-02-05 Daniel Jacobowitz <drow@mvista.com>
8550
8551 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8552
5b421780
PM
85532002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8554 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8555
9f60d481
AC
85562002-02-04 Andrew Cagney <ac131313@redhat.com>
8557
8558 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8559 (do_sfunc, set_cmd_sfunc): New functions.
8560
8561 * command.h (struct cmd_list_element): Add field func.
8562 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8563 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8564 * cli/cli-decode.h: Ditto.
8565
8566 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8567 (help_all, help_cmd_list): Ditto.
8568 (find_cmd, complete_on_cmdlist): Ditto.
8569 * top.c (execute_command): Ditto.
8570
8571 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8572 function.sfunc.
8573
8574 * infcmd.c (notice_args_read): Fix function signature.
8575
8576 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8577 * cli/cli-decode.c (add_set_cmd): Ditto.
8578 * utils.c (initialize_utils): Ditto.
8579 * maint.c (_initialize_maint_cmds): Ditto.
8580 * infrun.c (_initialize_infrun): Ditto.
8581 * demangle.c (_initialize_demangler): Ditto.
8582 * remote.c (add_packet_config_cmd): Ditto.
8583 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8584 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8585 * proc-api.c (_initialize_proc_api): Ditto.
8586 * kod.c (_initialize_kod): Ditto.
8587 * valprint.c (_initialize_valprint): Ditto.
8588 * top.c (init_main): Ditto.
8589 * infcmd.c (_initialize_infcmd): Ditto.
8590 * corefile.c (_initialize_core): Ditto.
8591 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8592 * arch-utils.c (initialize_current_architecture): Ditto.
8593 (_initialize_gdbarch_utils): Ditto.
8594 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8595
8596 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8597 * wince.c (_initialize_inftarg): Ditto.
8598 * symfile.c (_initialize_symfile): Ditto.
8599 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8600 * language.c (_initialize_language): Ditto.
8601 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8602
f9ba0717
MS
86032002-02-04 Michael Snyder <msnyder@redhat.com>
8604
8605 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8606
0c74b2a7
DJ
86072002-02-04 Daniel Jacobowitz <drow@mvista.com>
8608
8609 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8610 Add rules for building the register data files.
8611
c638789f
DJ
86122002-02-04 Daniel Jacobowitz <drow@mvista.com>
8613
8614 * regformats/regdat.sh: Add braces to the definition of
8615 expedite_regs_${arch}.
8616
db253027
DJ
86172002-02-04 Daniel Jacobowitz <drow@mvista.com>
8618
8619 * regformats/regdef.h (struct reg): Add comment describing the
8620 requirements for offset and size fields.
8621
206be19c
AS
86222002-02-04 Andreas Schwab <schwab@suse.de>
8623
8624 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8625 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8626
181c1381
RE
86272002-02-04 Richard Earnshaw <rearnsha@arm.com>
8628
8629 * gdbarch.sh (copyright): Update years in generated header.
8630 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8631 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8632 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8633 * dbxread.c: Likewise.
8634 * dwarfread.c: Likewise.
8635 * elfread.c: Likewise.
8636 * somread.c: Likewise.
8637
8638 * arm-tdep.c (arm_smash_text_address): New function.
8639 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8640
fa4ba8da
PM
86412002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8642
8643 Add support for hardware watchpoints on win32 native.
aaa38bb5 8644 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8645 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8646 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
8647 of debug registers.
8648 (debug_registers_changed): New variable. Reflects when debug registers
8649 are changed and need to be written to inferior.
aaa38bb5 8650 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
8651 was set, used when new threads are created.
8652 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8653 i386-nat code.
8654 (thread_rec): Set dr array if id is the thread of current_event .
8655 (child_continue, child_resume): Change the debug registers for all
8656 threads if debug_registers_changed.
8657 (child_add_thread): Change the debug registers if debug_registers_used.
8658 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8659 Link nm.h to new nm-cygwin.h file.
8660 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8661 of hardware registers.
8662
a73c86fb
AC
86632002-02-03 Andrew Cagney <ac131313@redhat.com>
8664
8665 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8666 Restore behavour broken by 2002-01-20 Andrew Cagney
8667 <ac131313@redhat.com> IEEE_FLOAT removal.
8668
acf5ed49
DJ
86692002-02-03 Daniel Jacobowitz <drow@mvista.com>
8670
8671 * c-valprint.c (c_val_print): Pass a proper valaddr to
8672 cp_print_class_method.
8673 * valops.c (search_struct_method): If there is only one method
8674 and args is NULL, return that method.
8675
493d28d5
DJ
86762002-02-03 Daniel Jacobowitz <drow@mvista.com>
8677
8678 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8679 accessing tag_name directly.
8680
7495dfdb
DJ
86812002-02-03 Daniel Jacobowitz <drow@mvista.com>
8682
8683 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8684 of accessing tag_name directly.
8685
dd6bda65
DJ
86862002-02-03 Daniel Jacobowitz <drow@mvista.com>
8687
8688 PR gdb/280
8689 * gdbtypes.c (replace_type): New function.
8690 * gdbtypes.h (replace_type): Add prototype.
8691 * stabsread.c (read_type): Use replace_type.
8692
88fe217c
RE
86932002-02-03 Richard Earnshaw <rearnsha@arm.com>
8694
8695 * Makefile.in (memattr.o): Add missing dependencies rule.
8696
e5d66720
PS
86972002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8698
8699 * breakpoint.c (break_at_finish_command): Really export.
8700 (break_at_finish_at_depth_command): Ditto.
8701 (tbreak_at_finish_command): Ditto.
8702 * hppa-tdep.c: Include completer.h.
8703 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8704 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8705
fffee0be
AC
87062002-02-01 Andrew Cagney <ac131313@redhat.com>
8707
8708 * utils.c (do_write): New function.
8709 (error_stream): Rewrite combining the code from error_begin and
8710 verror.
8711 (verror): Rewrite using error_stream.
8712 (error_begin): Delete function.
8713
255e7dbf
AC
87142002-02-01 Andrew Cagney <ac131313@redhat.com>
8715
8716 * utils.c (error_begin): Make static.
8717 * defs.h (error_begin): Delete declaration.
8718
8719 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8720 (decode_line_1): Use cplusplus_error instead of error_begin,
8721 cplusplus_hint and return_to_top_level.
8722 * coffread.c (coff_symfile_read): Use error instead of error_begin
8723 and return_to_top_level.
8724 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8725
ddfe3c15
AC
87262002-02-01 Andrew Cagney <ac131313@redhat.com>
8727
8728 * language.h (type_error, range_error): Make string parameter
8729 constant.
8730 * language.c (warning_pre_print): Delete extern declaration.
8731 * dwarfread.c (warning_pre_print): Ditto.
8732 * language.c (type_error, range_error): Rewrite to use verror and
8733 vwarning instead of warning_begin.
8734
03ac34d5
MS
87352002-02-01 Michael Snyder <msnyder@redhat.com>
8736
261c4ca2
MS
8737 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8738 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 8739
e00d1dc8
AC
87402002-02-01 Andrew Cagney <ac131313@redhat.com>
8741
8742 * command.h (NO_FUNCTION): Delete macro.
8743 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8744 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8745 * tracepoint.c (_initialize_tracepoint): Ditto.
8746 * cli/cli-decode.c (add_set_cmd): Ditto.
8747 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 8748
76b79d6e
DJ
87492002-02-01 Daniel Jacobowitz <drow@mvista.com>
8750
8751 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8752 Update ``this'' pointer when calling virtual functions.
8753
799f9e91
MS
87542002-02-01 Michael Snyder <msnyder@redhat.com>
8755
c7bd442c 8756 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
8757 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8758
3cf384d4
DJ
87592002-02-01 Daniel Jacobowitz <drow@mvista.com>
8760
8761 * regformats/reg-arm.dat: New file.
8762 * regformats/reg-i386.dat: New file.
8763 * regformats/reg-ia64.dat: New file.
8764 * regformats/reg-m68k.dat: New file.
8765 * regformats/reg-mips.dat: New file.
8766 * regformats/reg-ppc.dat: New file.
8767 * regformats/reg-sh.dat: New file.
8768 * regformats/regdef.h: New file.
8769 * regformats/regdat.sh: New file.
8770
0defa245
RE
87712002-02-01 Richard Earnshaw <reanrsha@arm.com>
8772
8773 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8774 (arm_frame_args_address, arm_frame_locals_address): New functions.
8775 (arm_frame_num_args): New function.
8776 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8777 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8778 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8779
405f26e6
MS
87802002-01-31 Michael Snyder <msnyder@redhat.com>
8781
502fd408
MS
8782 * breakpoint.c (break_at_finish_command): Export.
8783 (break_at_finish_at_depth_command): Export.
8784 (tbreak_at_finish_command): Export.
8785 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8786 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8787 "tbreak" commands, which are HPPA specific.
8788
7d35e135
MS
8789 * printcmd.c (disassemble_command): Remove an ancient
8790 artifact of an old merge.
8791
aaa38bb5 8792 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
8793 Define enum constant values for overlay mode.
8794 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
8795 (overlay_is_mapped, overlay_auto_command,
8796 overlay_manual_command): Ditto.
d874f1e2 8797
aaa38bb5
AJ
8798 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8799 breakpoint_here_p, breakpoint_inserted_here_p,
8800 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
8801 describe_other_breakpoints, check_duplicates, clear_command):
8802 Coding standard fixes.
8803
8add0441 8804 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 8805 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
8806 code: check bfd SEC_READONLY flag for section.
8807
e351066e
AC
88082002-01-31 Andrew Cagney <ac131313@redhat.com>
8809
7d35e135 8810 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 8811
8a48e967
DJ
88122002-01-30 Daniel Jacobowitz <drow@mvista.com>
8813
8814 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8815 data symbols, since we search based on textlow and texthigh.
8816 (find_pc_sect_symtab): Likewise.
8817
f5a96129
AC
88182002-01-30 Andrew Cagney <ac131313@redhat.com>
8819
8820 * defs.h (vwarning): Declare.
f5a96129
AC
8821 * utils.c (vwarning): New function.
8822 (warning): Call vwarning.
8823 (warning_begin): Delete function.
8824
8825 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8826 the warning message.
8827 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8828 warning_begin.
8829
cefd4ef5
MS
88302002-01-30 Michael Snyder <msnyder@redhat.com>
8831
1a703748
MS
8832 * NEWS: Mention "set trust-readonly-sections" command.
8833 Mention generate-core-file command.
cefd4ef5 8834
3a11626d
MS
88352002-01-15 Michael Snyder <msnyder@redhat.com>
8836
8837 * target.c: New command, "set trust-readonly-sections on".
8838 (do_xfer_memory): Honor the suggestion to trust readonly sections
8839 by reading them from the object file instead of from the target.
8840 (initialize_targets): Register command "set trust-readonly-sections".
8841
d1c7e53b
AC
88422002-01-29 Andrew Cagney <ac131313@redhat.com>
8843
8844 * parse.c (target_map_name_to_register): Simplify, search regs and
8845 pseudo-regs using a single loop.
8846
e2c9a72c
AC
88472002-01-30 Andrew Cagney <ac131313@redhat.com>
8848
8849 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8850
69824b4e
MK
88512002-01-15 Rodney Brown <rbrown64@csc.com.au>
8852
8853 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8854 * config/i386/i386v42mp.mh: Add i387-nat.o .
8855 * i386v4-nat.c: Include i387-nat.h.
8856 (supply_fpregset): Use i387_supply_fsave.
8857 (fill_fpregset): Use i387_fill_fsave.
8858
6eb69eab
RE
88592002-01-30 Richard Earnshaw <rearnsha@arm.com>
8860
8861 * arm-tdep.c (arm_call_dummy_words): Define.
8862 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8863 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8864 (CALL_DUMMY_WORDS): Define.
8865 (arm_call_dummy_words): Declare.
8866 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8867 (arm_linux_call_dummy_words): Declare.
8868
9852326a
AS
88692002-01-30 Andreas Schwab <schwab@suse.de>
8870
8871 * m68klinux-nat.c: Fix last change to use regcache_collect
8872 instead of referencing registers[] directly.
8873
977a3030
AC
88742002-01-29 Andrew Cagney <ac131313@redhat.com>
8875
8876 * parse.c (target_map_name_to_register): Delete code wrapped in
8877 #ifdef REGISTER_NAME_ALIAS_HOOK.
8878
2076c72b
MS
88792002-01-28 Michael Snyder <msnyder@redhat.com>
8880
8881 * regcache.c (legacy_read_register_gen): Need to be able to
8882 read pseudo-register as well as real register.
8883 (legacy_write_register_gen): Ditto.
8884
8fcc723b
AC
88852002-01-28 Andrew Cagney <ac131313@redhat.com>
8886
8887 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8888 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8889 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8890 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8891 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8892 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8893 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8894 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8895 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8896 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8897 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8898 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8899 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8900 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8901 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8902 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8903 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8904 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8905 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8906 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8907
afe64c1a
AC
89082002-01-28 Andrew Cagney <ac131313@redhat.com>
8909
8910 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8911 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8912 (initialize_current_architecture): Update target_byte_order using
8913 information from BFD.
aaa38bb5 8914 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
8915 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8916
75bc7ddf
AC
89172002-01-28 Andrew Cagney <ac131313@redhat.com>
8918
8919 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8920 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8921
8922 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8923 #ifdef INVALID_FLOAT.
8924 * infcmd.c (do_registers_info): Ditto.
8925 * values.c (unpack_double): Ditto. Add comment.
8926
8927 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8928 already commented out.
8929
0280a90a
AS
89302002-01-26 Andreas Schwab <schwab@suse.de>
8931
8932 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8933 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8934 registers and add support for PTRACE_GETREGS.
8935
7072a954
AC
89362002-01-24 Andrew Cagney <ac131313@redhat.com>
8937
8938 GDB 5.1.1 released from 5.1 branch.
8939 * NEWS: Add 5.1.1 news.
8940 * README: Sync with 5.1 branch.
8941
86f902e0
FF
89422002-01-23 Fred Fish <fnf@redhat.com>
8943
8944 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8945 stabstring on initial malloc. Reallocing will copy it for us,
8946 if necessary.
8947
8af51c36
EZ
89482002-01-23 Elena Zannoni <ezannoni@redhat.com>
8949
aaa38bb5 8950 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
8951 (HFILES_NO_SRCDIR): Remove hpread.h.
8952 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8953 (hpread.o): Update dependencies.
8954 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8955
8956 * hp-psymtab-read.c: Remove file.
8957 * hp-symtab-read.c: Remove file.
8958 * hpread.h: Remove file.
8959
8960 * hpread.c: Merge all contents of hp-psymtab-read.c,
8961 hp-symtab-read.c and hpread.h into this file, as it was prior to
8962 January 1999.
8963
8964 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 8965 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
8966 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8967 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8968
dc5cfeb6
EZ
89692002-01-23 Elena Zannoni <ezannoni@redhat.com>
8970
8971 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8972 fill_gregset): Call gdbarch_tdep() just once, assign result to
8973 variable and use that, instead of calling the function several
8974 times.
8975
ea87b71b
AO
89762002-01-24 Alexandre Oliva <aoliva@redhat.com>
8977
8978 * configure.host: Accept sparcv9 as alias for sparc64.
8979 * configure.tgt: Likewise.
8980
13fc0c2f
KB
89812002-01-22 Kevin Buettner <kevinb@redhat.com>
8982
8983 * solib-aix5.c (build_so_list_from_mapfile)
8984 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8985 arguments is not reversed.
8986 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8987 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 8988
7bd872fe
EZ
89892002-01-22 Elena Zannoni <ezannoni@redhat.com>
8990
8991 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8992 modified version of obsolete sh_fetch_pseudo_register.
8993 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8994 (sh4_register_read): New function.
8995 (sh_pseudo_register_write): New function. Renamed and modified
8996 version of obsolete sh_store_pseudo_register.
8997 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8998 (sh4_register_write): New function.
8999 (sh_gdbarch_init): Remove setting of gdbarch function
9000 fetch_pseudo_register and store_pseudo_register. Remove setting of
9001 register_convert_to_raw, register_convert_to_virtual,
9002 register_convertible.
9003 (sh_sh4_register_convertible): Delete. No longer needed. All is
9004 taken care by architecture specific functions
9005 register_read/register_write.
9006 (sh_sh4_register_convert_to_virtual): Make static.
9007 (sh_sh4_register_convert_to_raw): Ditto.
9008
069e84fd
AC
90092002-01-22 Andrew Cagney <ac131313@redhat.com>
9010
9011 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9012 (floatformat_is_nan, floatformat_mantissa): Ditto.
9013
9014 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9015 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9016 builtin_type_ieee_double_little,
9017 builtin_type_ieee_double_littlebyte_bigword,
9018 builtin_type_m68881_ext, builtin_type_i960_ext,
9019 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9020 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9021 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9022 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9023
211a4f69
CV
90242002-01-22 Corinna Vinschen <vinschen@redhat.com>
9025
9026 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9027 parameter. Set frameless flag if it exists and depended of
9028 whether the scanned function is frameless or not.
9029 (xstormy16_skip_prologue): If function is frameless, return
9030 result of xstormy16_scan_prologue().
9031 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9032 call.
9033
f81353e4
EZ
90342002-01-21 Elena Zannoni <ezannoni@redhat.com>
9035
9036 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9037 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9038 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9039 sh_sh4_register_byte, sh_sh4_register_raw_size,
9040 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9041 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9042 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9043 sh_store_pseudo_register, sh_do_pseudo_register): Call
9044 gdbarch_tdep() just once, assign result to variable and use that,
9045 instead of calling the function several times.
9046
63c73a17
MK
90472002-01-20 Mark Kettenis <kettenis@gnu.org>
9048
9049 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9050 macros instead of LAST_FPU_CTRL_REGNUM.
9051 (store_register): Likewise.
9052
39ad761d
JB
90532002-01-21 Jim Blandy <jimb@redhat.com>
9054
9055 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9056 is up-to-date before running the program, not just when a program
9057 exits.
9058
3d74b771
FF
90592002-01-21 Fred Fish <fnf@redhat.com>
9060
9061 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9062 when we have found all instructions we are looking for.
9063
966fbf70
RE
90642002-01-21 Richard Earnshaw <rearnsha@arm.com>
9065
9066 * arm-tdep.c (arm_register_name): New function.
9067 (arm_registers_names): Make static.
9068 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9069 (arm_register_name): Declare.
9070 (REGISTER_NAME): Use it.
9071
c3b4394c
RE
90722002-01-21 Richard Earnshaw <rearnsha@arm.com>
9073 Kevin Buettner <kevinb@redhat.com>
9074
9075 Convert arm targets to new FRAME interface.
9076 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9077 (arm_frame_find_save_regs): Delete.
9078 (arm_frame_init_saved_regs): New.
9079 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9080 Allocate extra_info as required. Convert all uses of fsr.regs
9081 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9082 to use extra_info.
9083 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9084 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9085 (check_prologue_cache, save_prologue_cache): Likewise.
9086 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9087 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9088 (FRAME_FIND_SAVED_REGS): Delete.
9089 (arm_frame_find_saved_regs): Delete prototype.
9090 (arm_frame_init_saved_regs): New prototype.
9091 (FRAME_INIT_SAVED_REGS): Define.
9092
61d99182
AC
90932002-01-20 Andrew Cagney <ac131313@redhat.com>
9094
9095 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9096
6aaea291
AC
90972002-01-20 Andrew Cagney <ac131313@redhat.com>
9098
9099 From Jeff Law <law@redhat.com>:
9100 * infttrace.c: Include <sys/pstat.h>.
9101 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9102 exec file if the ttrace equivalent fails.
9103
15f698d2
AC
91042002-01-20 Andrew Cagney <ac131313@redhat.com>
9105
9106 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9107 (closeLogFile): Ditto.
9108
f86ddd7c
MC
91092002-01-20 Michael Chastain <mec@shout.net>
9110
9111 * top.c (print_gdb_version): Bump copyright year to 2002.
9112
904507ce
AC
91132002-01-20 Andrew Cagney <ac131313@redhat.com>
9114
9115 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9116 Zannoni and Eli Zaretskii.
9117
d7f0b9ce
DJ
91182002-01-20 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * buildsym.c: Update copyright years.
9121 * c-typeprint.c: Likewise.
9122 * dwarf2read.c: Likewise.
9123 * f-typeprint.c: Likewise.
9124 * gdbtypes.c: Likewise.
9125 * gdbtypes.h: Likewise.
9126 * hp-symtab-read.c: Likewise.
9127 * hpread.c: Likewise.
9128 * mdebugread.c: Likewise.
9129 * p-typeprint.c: Likewise.
9130
3fd3d7d2
AC
91312002-01-20 Andrew Cagney <ac131313@redhat.com>
9132
9133 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9134 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9135 byte-order selectable.
9136 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9137 * arch-utils.c: Ditto.
9138 (set_endian): Ditto.
9139 (set_endian_from_file): Ditto.
9140 * gdbserver/low-sim.c (create_inferior): Ditto.
9141 * gdbarch.sh: Ditto.
9142 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9143 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9144 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9145 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9146 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9147 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9148 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9149 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9150 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9151 macro definition.
9152 * config/mips/tm-wince.h: Remove #undef of macro
9153 TARGET_BYTE_ORDER_SELECTABLE.
9154 * config/sh/tm-wince.h: Ditto.
9155
b02dede2
DJ
91562002-01-20 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9159 member function fields. Add accessor macro
9160 TYPE_FN_FIELD_ARTIFICIAL.
9161 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9162 * c-typeprint.c (c_type_print_base): Skip artificial member
9163 functions.
9164
c3643761
DJ
91652002-01-20 Daniel Jacobowitz <drow@mvista.com>
9166
9167 * f-typeprint.c: Delete unused function f_type_print_args.
9168 * p-typeprint.c: Delete unused function pascal_type_print_args.
9169
8176bb6d
DJ
91702002-01-20 Daniel Jacobowitz <drow@mvista.com>
9171
9172 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9173 comment. Add ``artificial'' to ``union field_location''.
9174
9175 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9176
9177 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9178 * mdebugread.c (parse_symbol): Likewise.
9179 * stabsread.c (define_symbol): Likewise.
9180 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9181 initializing TYPE_FIELD_BITPOS to n (obsolete).
9182 (hpread_doc_function_type): Likewise.
9183 * hpread.c (hpread_function_type): Likewise.
9184
7fd60527
AC
91852002-01-20 Andrew Cagney <ac131313@redhat.com>
9186
9187 * configure.in (host_makefile_frag): Only require a host makefile
9188 fragment when a native build.
9189 * configure: Re-generate.
9190
c2f05ac9
AC
91912002-01-20 Andrew Cagney <ac131313@redhat.com>
9192
9193 * doublest.h (floatformat_from_type): Declare.
9194 * doublest.c (floatformat_from_type): New function.
9195 (convert_typed_floating): Use.
9196
9197 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9198 call to function floatformat_from_type.
9199
9200 * gdbarch.sh (IEEE_FLOAT): Delete.
9201 * gdbarch.h, gdbarch.c: Re-generate.
9202 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9203 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9204 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9205 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9206 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9207 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9208 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9209 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9210 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9211 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9212 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9213 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9214
9215 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9216 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9217 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9218 * sh-tdep.c (sh_gdbarch_init): Ditto.
9219 * mips-tdep.c (mips_gdbarch_init): Ditto.
9220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9221 * cris-tdep.c (cris_gdbarch_init): Ditto.
9222
abf22e64
AJ
92232002-01-20 Jiri Smid <smid@suse.cz>
9224
9225 * configure.host, configure.tgt: Support x86-64.
9226 * NEWS: Note new target x86-64.
9227
b7c4cbf8
AJ
9228 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9229 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9230 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9231 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9232 x86-64-linux-nat.o): Fix dependencies.
9233
82600034
AC
92342002-01-19 Andrew Cagney <ac131313@redhat.com>
9235
9236 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9237 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9238 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9239 * config/sparc/xm-sun4os4.h: Delete file.
9240 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9241
bbe5c628
AC
92422002-01-19 Andrew Cagney <ac131313@redhat.com>
9243
9244 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9245 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9246 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9247 * config/i386/i386lynx.mh (XM_FILE): Delete.
9248 * config/rs6000/xm-rs6000ly.h: Delete file.
9249 * config/sparc/xm-sparclynx.h: Delete file.
9250 * config/m68k/xm-m68klynx.h: Delete file.
9251 * config/i386/xm-i386lynx.h: Delete file.
9252 * config/xm-lynx.h: Delete file.
9253 * config/djgpp/fnchange.lst: Update.
9254
f8453e34
JT
92552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9256
9257 * alpha-tdep.c (alpha_register_byte): New function.
9258 (alpha_register_raw_size): Ditto.
9259 (alpha_register_virtual_size): Ditto.
9260 (alpha_skip_prologue_internal): Renamed from
9261 alpha_skip_prologue.
9262 (alpha_skip_prologue): New version that calls
9263 alpha_skip_prologue_internal.
9264 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9265 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9266 second argument from alpha_skip_prologue.
9267 (REGISTER_BYTE): Use alpha_register_byte.
9268 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9269 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9270 (FRAMELESS_FUNCTION_INVOCATION): Use
9271 generic_frameless_function_invocation_not.
9272 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9273 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9274
52d9e613
AC
92752002-01-19 Andrew Cagney <ac131313@redhat.com>
9276
9277 * config/mips/xm-news-mips.h: Delete file.
9278 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9279
9280 * config/m88k/xm-m88k.h: Delete file.
9281 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9282 * config/m88k/xm-delta88v4.h: Ditto.
9283 * config/m88k/xm-delta88.h: Ditto.
9284
9285 * config/alpha/xm-fbsd.h: Delete file.
9286 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9287
9288 * config/sparc/xm-sparc.h: Delete file.
9289 * Makefile.in (xm-sun4os4.h): Delete dependency.
9290 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9291 * config/sparc/xm-sun4os4.h: Ditto.
9292 * config/sparc/xm-linux.h: Ditto.
9293
9294 * config/i386/xm-windows.h: Delete file.
9295
2d1b2124
AC
92962002-01-19 Andrew Cagney <ac131313@redhat.com>
9297
9298 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9299 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9300
ee1f65f0
JT
93012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9302
9303 * alpha-tdep.c (alpha_call_dummy_words): New.
9304 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9305 (CALL_DUMMY_P): Define.
9306 (CALL_DUMMY_WORDS): Define.
9307 (SIZEOF_CALL_DUMMY_WORDS): Define.
9308
98081e55
PB
93092002-01-19 Per Bothner <per@bothner.com>
9310
9311 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9312 isn't NULL, which can happen with some gcj-3.x-produced code.
9313
0d056799
JT
93142002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9315
9316 * alpha-tdep.c (alpha_register_virtual_type): New function.
9317 (alpha_init_frame_pc_first): Ditto.
9318 (alpha_fix_call_dummy): Ditto.
9319 (alpha_store_struct_return): Ditto.
9320 (alpha_extract_struct_value_address): Ditto.
9321 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9322 alpha_register_virtual_type.
9323 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9324 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9325 alpha_extract_struct_value_address.
9326 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9327 (INIT_FRAME_PC): Use init_frame_pc_noop.
9328 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9329
4604bcad
MK
93302002-01-19 Mark Kettenis <kettenis@gnu.org>
9331
9332 * i386gnu-nat.c: Include "i386-tdep.h".
9333 (fetch_fpregs): Simplify code dealing with uninitialized floating
9334 point states such that it doesn't require FP7_REGNUM.
9335
140f9984
JT
93362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9337
abf22e64
AJ
9338 * alpha-tdep.c (frame_extra_info): New.
9339 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9340 frame->extra_info.
9341 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9342 (alpha_frame_saved_pc): Use frame->extra_info.
9343 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9344 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9345 (init_extra_frame_info): Rename to...
9346 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9347 (alpha_print_extra_frame_info): New function.
140f9984
JT
9348 (alpha_frame_locals_address): Ditto.
9349 (alpha_frame_args_address): Ditto.
abf22e64 9350 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9351 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9352 alpha_frame_args_address.
abf22e64 9353 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9354 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9355 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9356 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9357 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9358 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9359
d734c450
JT
93602002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9361
9362 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9363 (alpha_cannot_fetch_register): Ditto.
9364 (alpha_cannot_store_register): Ditto.
9365 (alpha_register_convertible): Ditto.
9366 (alpha_use_struct_convention): Ditto.
9367 * config/alpha/tm-alpha.h: Update copyright years.
9368 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9369 (INNER_THAN): Use core_addr_lessthan.
9370 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9371 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9372 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9373 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9374 (FRAME_CHAIN): Remove unnecessary cast.
9375
b4ceaee6
AC
93762002-01-18 Andrew Cagney <ac131313@redhat.com>
9377
9378 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9379 obsolete.
9380
0a65a603
AC
93812002-01-18 Andrew Cagney <ac131313@redhat.com>
9382
9383 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9384 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9385 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9386 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9387 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9388 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9389 * x86-64-linux-nat.c: Ditto.
9390
636a6dfc
JT
93912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9392
abf22e64 9393 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9394 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9395 (REGISTER_NAME): Define.
9396
acceddb6
JT
93972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9398
9399 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9400
ec32e4be
JT
94012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9402
9403 * alpha-tdep.c: Update copyright years.
9404 (alpha_next_pc): New function.
9405 (alpha_software_single_step): Ditto.
9406 * config/alpha/tm-alpha.h: Add prototype for
9407 alpha_software_single_step.
9408
e771a871
JT
94092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9410
9411 * alphabsd-nat.c: Update copyright years.
9412 (fill_gregset): Use regcache_collect.
9413 (fill_fpregset): Likewise.
9414 (fetch_inferior_registers): Only fetch integer registers
9415 if requested to do so.
9416 (store_inferior_registers): Only store integer registers
9417 if requested to do so.
9418
7708fa01
AC
94192002-01-17 Andrew Cagney <ac131313@redhat.com>
9420
9421 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9422 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9423 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9424 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9425 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9426 * config/arm/linux.mh (XDEPFILES): Delete.
9427 * config/arm/nbsd.mh (XDEPFILES): Delete.
9428 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9429 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9430 * config/i386/i386m3.mh (XDEPFILES): Delete.
9431 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9432 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9433 * config/i386/fbsd.mh (XDEPFILES): Delete.
9434 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9435 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9436 * config/i386/i386v4.mh (XDEPFILES): Delete.
9437 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9438 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9439 * config/i386/i386aix.mh (XDEPFILES): Delete.
9440 * config/i386/go32.mh (XDEPFILES): Delete.
9441 * config/i386/cygwin.mh (XDEPFILES): Delete.
9442 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9443 * config/i386/i386mach.mh (XDEPFILES): Delete.
9444 * config/i386/i386v32.mh (XDEPFILES): Delete.
9445 * config/i386/linux.mh (XDEPFILES): Delete.
9446 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9447 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9448 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9449 * config/i386/i386sco.mh (XDEPFILES): Delete.
9450 * config/i386/i386v.mh (XDEPFILES): Delete.
9451 * config/i386/nbsd.mh (XDEPFILES): Delete.
9452 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9453 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9454 * config/i386/symmetry.mh (XDEPFILES): Delete.
9455 * config/i386/obsd.mh (XDEPFILES): Delete.
9456 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9457 * config/ia64/linux.mh (XDEPFILES): Delete.
9458 * config/ia64/aix.mh (XDEPFILES): Delete.
9459 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9460 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9461 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9462 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9463 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9464 * config/m68k/linux.mh (XDEPFILES): Delete.
9465 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9466 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9467 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9468 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9469 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9470 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9471 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9472 * config/m88k/delta88.mh (XDEPFILES): Delete.
9473 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9474 * config/m88k/m88k.mh (XDEPFILES): Delete.
9475 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9476 * config/mips/linux.mh (XDEPFILES): Delete.
9477 * config/mips/irix6.mh (XDEPFILES): Delete.
9478 * config/mips/irix5.mh (XDEPFILES): Delete.
9479 * config/mips/irix4.mh (XDEPFILES): Delete.
9480 * config/mips/irix3.mh (XDEPFILES): Delete.
9481 * config/mips/decstation.mh (XDEPFILES): Delete.
9482 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9483 (NATDEPFILES): Move core-aout.o to here.
9484 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9485 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9486 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9487 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9488 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9489 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9490 * config/pa/hpux11.mh (XDEPFILES): Delete.
9491 * config/powerpc/aix.mh (XDEPFILES): Delete.
9492 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9493 * config/powerpc/linux.mh (XDEPFILES): Delete.
9494 * config/romp/rtbsd.mh: Rename XDEPFILES.
9495 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9496 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9497 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9498 * config/s390/s390.mh (XDEPFILES): Delete.
9499 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9500 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9501 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9502 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9503 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9504 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9505 * config/sparc/linux.mh (XDEPFILES): Delete.
9506 * config/vax/vaxult.mh (XDEPFILES): Delete.
9507 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9508 * Makefile.in (DEPFILES): Remove XDEPFILES.
9509
375fc983
AC
95102002-01-17 Andrew Cagney <ac131313@redhat.com>
9511
9512 * utils.c (internal_verror): Fix comments, default is yes not no.
9513 Update queries to match. Default to quit and dump core.
9514
8926118c
AC
95152002-01-17 Andrew Cagney <ac131313@redhat.com>
9516
9517 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9518 copyright.
9519 * defs.h, event-top.c, gdbcmd.h: Ditto.
9520 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9521 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9522 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9523 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9524 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9525 * mi/mi-main.c:Ditto.
9526
9527 * stack.c, symfile.c: Update copyright.
9528
45b7b345
DJ
95292002-01-17 Daniel Jacobowitz <drow@mvista.com>
9530
db728ff7
DJ
9531 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9532 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9533 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9534 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9535
db728ff7
DJ
95362002-01-17 Daniel Jacobowitz <drow@mvista.com>
9537
9538 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9539 * gdbserver/low-lynx.c (myattach): Likewise.
9540 * gdbserver/low-nbsd.c (myattach): Likewise.
9541 * gdbserver/low-sim.c (myattach): Likewise.
9542 * gdbserver/low-sparc.c (myattach): Likewise.
9543 * gdbserver/low-sun3.c (myattach): Likewise.
9544
9545 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9546
db728ff7 9547 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9548 (main): Handle "--attach".
9549
8de3c354
AC
95502002-01-16 Andrew Cagney <ac131313@redhat.com>
9551
9552 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9553 maintainer.
9554
b0129042
DJ
95552002-01-15 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * c-typeprint.c (is_type_conversion_operator): Add additional
9558 check for non-conversion operators.
9559
ba8679fb 95602002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9561
9562 * linux-proc.c: Add "info proc" command, a la procfs.c.
9563 (read_mapping): New function, abstract and re-use code.
9564 (linux_find_memory_regions): Use new func read_mapping.
9565 (linux_info_proc_cmd): New function, implement "info proc".
9566 (_initialize_linux_proc): Add new command "info proc".
9567
e4f9b4d5
MS
95682002-01-15 Michael Snyder <msnyder@redhat.com>
9569
9570 * symfile.c (generic_load): Use bfd_map_over_sections method
9571 instead of manipulating bfd structure members directly.
9572 (add_section_size_callback): New function, bfd sections callback
9573 used by generic_load.
9574 (load_sections_callback): New function, bfd sections callback
9575 used by generic_load.
9576
08cf96df
EZ
95772002-01-15 Elena Zannoni <ezannoni@redhat.com>
9578
abf22e64 9579 [Based on work by Jim Blandy]
08cf96df
EZ
9580 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9581 (builtin_type_vec128): Export.
9582 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9583 types.
9584 (builtin_type_vec128): New builtin type for 128 bit vector
9585 registers.
9586 (build_gdbtypes): Initialize builtin_type_v16qi and
9587 builtin_type_v8hi. Create the vec128 register builtin type
9588 structure.
9589 (build_builtin_type_vec128): New function.
abf22e64 9590 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9591 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9592 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9593 AltiVec register to new builtin type.
9594
d7242108
DJ
95952001-01-15 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9598 to make_cv_type.
9599
4ee3352d
AC
96002002-01-14 Andrew Cagney <ac131313@redhat.com>
9601
9602 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9603 CLEAN_UP_REGISTER_VALUE.
9604 * regcache.c (supply_register): Update only call.
9605
f015b2e7
AC
96062002-01-14 Andrew Cagney <ac131313@redhat.com>
9607
9608 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9609 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9610 a29k-*-vxworks* targets as obsolete.
9611
356ae49d
MS
96122002-01-14 Michael Snyder <msnyder@redhat.com>
9613
9614 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9615 until we can resolve portability issues.
9616 * gregset.h: Remove references to fpxregs.
9617 * gcore.c (gcore_command): Initialize note_sec to NULL.
9618
ade8f45e
AC
96192002-01-13 Andrew Cagney <ac131313@redhat.com>
9620
9621 * signals.c (target_signal_to_name): Rewrite. Only use
9622 signals[].name when in bounds and non-NULL.
abf22e64 9623
89c49e7a
AC
96242002-01-13 Andrew Cagney <ac131313@redhat.com>
9625
9626 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9627 * signals.c (target_signal_to_name): Verify that SIG is within the
9628 bounds of the signals array.
9629
4daa9f9f
AC
96302002-01-13 Andrew Cagney <ac131313@redhat.com>
9631
9632 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9633
ba4bbdcb
KS
96342002-01-13 Keith Seitz <keiths@redhat.com>
9635
9636 * stack.c (print_frame_info_base): Print the frame's pc
9637 only if when print_frame_info_listing_hook is not defined.
9638
575bbeb6
KS
96392002-01-13 Keith Seitz <keiths@redhat.com>
9640
9641 * varobj.c (varobj_set_value): Make sure that there were no
9642 errors evaluating the object before attempting to set its
9643 value.
9644 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9645 so this offset adjustment is no longer necessary.
9646 (create_child): Don't set the error flag if the child is
9647 a CPLUS_FAKE_CHILD.
9648 (value_of_child): If value_fetch_lazy fails, return NULL
9649 so that callers will be notified that an error occurred.
9650 (c_value_of_variable): Delay check of variable's validity
9651 until later. We actually want all structs and unions to have
9652 the value "{...}".
9653 Do not return "???" for variables which could not be evaluated.
9654 This error condition must be returned to the caller so that it
9655 can get the error condition from gdb.
9656 (cplus_name_of_child): Adjust index for vptr before figuring
9657 out the name of the child.
9658 (cplus_value_of_child): If a child's (real) parent is not valid,
9659 don't even bother trying to give a value for it. Just return
9660 an error. Change all instances in this function.
9661 (cplus_type_of_child): If our parent is one of the "fake"
9662 parents, we need to get at the type of the real parent, and
9663 derive the child's true type using this information.
9664
b76898ab
AC
96652002-01-13 Andrew Cagney <ac131313@redhat.com>
9666
9667 From 2002-01-09 John Marshall <johnm@falch.net>:
9668 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9669 sources.redhat.com, and tweak some related URLs which had
9670 suffered from linkrot.
9671
b6649e88
AC
96722002-01-13 Andrew Cagney <ac131313@redhat.com>
9673
9674 From Jeff law:
9675 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9676 structures passed in registers.
9677
82cc5033
EZ
96782002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9679
9680 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9681 white space which prevented compilation. Reported by DSK
9682 <dsk@student.unsw.edu.au>.
9683
ba5f2f8a
MS
96842002-01-11 Michael Snyder <msnyder@redhat.com>
9685
fbd35540
MS
9686 * symfile.c (build_section_addr_info_from_section_tab):
9687 Use bfd access method instead of manipulating bfd directly.
9688 (syms_from_objfile): Ditto.
9689 (simple_overlay_update_1): Ditto.
9690 (simple_overlay_update): Ditto.
9691 (generic_load): Ditto.
9692 (overlay_unmapped_address): FIXME comment, bfd access methods.
9693 (sections_overlap): FIXME comment, bfd access methods.
9694 (pc_in_mapped_range): FIXME comment, bfd access methods.
9695 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9696 (section_is_mapped): FIXME comment, bfd access methods.
9697 (section_is_overlay): FIXME comment, bfd access methods.
9698
ba5f2f8a
MS
9699 * symfile.c (generic_load): Whitespace and long line cleanups.
9700 Remove duplicate variable, change several local variables to
9701 more appropriate data types.
9702 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9703
17df2af6
AC
97042002-01-12 Andrew Cagney <ac131313@redhat.com>
9705
9706 From Peter Schauer:
9707 * language.c (longest_local_hex_string_custom): Use phex_nz to
9708 convert NUM to a hex string.
9709
ec920329
EZ
97102002-01-12 Elena Zannoni <ezannoni@redhat.com>
9711
9712 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9713 the function.
538a76d6 9714 Update Copyright year.
ec920329 9715
3abd2e01
AC
97162002-01-12 Andrew Cagney <ac131313@redhat.com>
9717
9718 * language.c (longest_raw_hex_string): Delete unused function.
9719
b21b22e0
PS
97202002-01-11 Petr Sorfa <petrs@caldera.com>
9721
9722 * MAINTAINERS (write-after-approval): Add myself.
9723 * dwarf2read.c (read_tag_string_type): Handling of
9724 DW_AT_byte_size.
9725 (read_tag_string_type): FORTRAN fix to prevent propagation of
9726 first string size.
9727 (set_cu_language): Handling of DW_LANG_Fortran95
9728
747fe712
RE
97292002-01-11 Richard Earnshaw <rearnsha@arm.com>
9730
9731 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9732 GETPID(inferior_ptid).
9733 (store_inferior_registers): Likewise.
9734
f1bea926
JM
97352002-01-10 Jason Merrill <jason@redhat.com>
9736
9737 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9738 Fix DW_OP_minus.
9739
ae940673
AC
97402002-01-10 Andrew Cagney <ac131313@redhat.com>
9741
9742 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9743 and bfd/elf32-sh-nbsd.c.
9744
00546b04
MS
97452002-01-10 Michael Snyder <msnyder@redhat.com>
9746
352ed7b4
MS
9747 * NEWS: Mention --pid and corefile/proc-id behavior change.
9748
c18be923
MS
9749 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9750 * gcore.c: Include cli/cli-decode.h instead of command.h.
9751
00546b04
MS
9752 * main.c (captured_main): Add new command line option "--pid".
9753 If the second command line argument (following the symbol-file)
9754 begins with a digit, try to attach to it before trying to open
9755 it as a corefile.
9756 (print_gdb_help): Document the "--pid" argument.
9757
db60ec62
EZ
97582002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9759
9760 * completer.c (command_completer): New function.
9761
9762 * completer.h <command_completer>: Add prototype.
9763
9764 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9765 completer for the "help" command.
9766
39c22d1a
JM
97672002-01-09 Jason Merrill <jason@redhat.com>
9768
9769 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9770
c564377f
MS
97712002-01-09 Michael Snyder <msnyder@redhat.com>
9772
975aec09
MS
9773 * i386-linux-nat.c (fill_fpxregset): Make global.
9774 (store_fpxregset): Ditto.
9775
db4a10fa
MS
9776 * gregset.h (gdb_fpxregset_t): Define.
9777 (supply_fpxregset): Prototype.
9778 (fill_fpxregset): Prototype.
9779
c564377f
MS
9780 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9781
c3d45d70
RE
97822002-01-09 Richard Earnshaw <rearnsha@arm.com>
9783
9784 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9785 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9786 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9787
fcc87af1
AC
97882002-01-09 Andrew Cagney <ac131313@redhat.com>
9789
9790 * MAINTAINERS: Update target maintainer rules so that any
9791 Maintainer can approve a tested patch for a maintenance-only
9792 target.
9793
dd96c05b
RE
97942002-01-09 Richard Earnshaw <rearnsha@arm.com>
9795
d4297db9 9796 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 9797
d4297db9 9798 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
9799 IN_SIGTRAMP.
9800
145fdc6e
MS
98012002-01-08 Michael Snyder <msnyder@redhat.com>
9802
9803 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9804 real name of the executable, rather than the /proc name.
9805
be4d1333
MS
98062002-01-03 Michael Snyder <msnyder@redhat.com>
9807
9808 Implement a "generate-core-file" command in gdb, save target state.
9809 * gcore.c: New file. Implement new command 'generate-core-file'.
9810 Save a corefile image of the current state of the inferior.
9811 * linux-proc.c: Add linux-specific code for saving corefiles.
9812 * target.h (struct target_ops): Add new target vectors for saving
9813 corefiles; to_find_memory_regions and to_make_corefile_notes.
9814 (target_find_memory_regions): New macro.
9815 (target_make_corefile_notes): New macro.
9816 * target.c (update_current_target): Inherit new target methods.
9817 (dummy_find_memory_regions): New place-holder method.
9818 (dummy_make_corefile_notes): New place-holder method.
9819 (init_dummy_target): Initialize new dummy target vectors.
9820 * exec.c (exec_set_find_memory_regions): New function.
9821 Allow the exec_ops vector for memory regions to be taken over.
9822 (exec_make_note_section): New function, target vector method.
9823 * defs.h (exec_set_find_memory_regions): Export prototype.
9824 * procfs.c (proc_find_memory_regions): New function, corefile method.
9825 (procfs_make_note_section): New function, corefile method.
9826 (init_procfs_ops): Set new target vector pointers.
9827 (find_memory_regions_callback): New function.
9828 (procfs_do_thread_registers): New function.
9829 (procfs_corefile_thread_callback): New function.
9830 * sol-thread.c (sol_find_memory_regions): New function.
9831 (sol_make_note_section): New function.
9832 (init_sol_thread_ops): Initialize new target vectors.
9833 * inftarg.c (inftarg_set_find_memory_regions): New function.
9834 Allow to_find_memory_regions vector to be taken over.
9835 (inftarg_set_make_corefile_notes): New function.
9836 Allow to_make_corefile_notes vector to be taken over.
9837 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9838 interface layer if not target_has_execution (may be a corefile).
9839 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9840 * config/sparc/sun4sol2.mh: Ditto.
9841 * config/alpha/alpha-linux.mh: Ditto.
9842 * config/arm/linux.mh: Ditto.
9843 * config/i386/x86-64linux.mh: Ditto.
9844 * config/ia64/linux.mh: Ditto.
9845 * config/m68k/linux.mh: Ditto.
9846 * config/mips/linux.mh: Ditto.
9847 * config/powerpc/linux.mh: Ditto.
9848 * config/sparc/linux.mh: Ditto.
9849
c6b92abd
MS
98502002-01-07 Michael Snyder <msnyder@redhat.com>
9851
9852 * arm-linux-nat.c: Remove references to regcache.c internal data
9853 (registers[] and register_valid[]).
9854
4b09dc8c
MS
98552002-01-07 Michael Snyder <msnyder@redhat.com>
9856
abf22e64
AJ
9857 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9858 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
9859 symbol file and shlibs.
9860 * Makefile.in: Add rule for linux-proc.o.
9861 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9862 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9863 * config/arm/linux.mh: Ditto.
9864 * config/i386/linux.mh: Ditto.
9865 * config/i386/x86-64linux.mh: Ditto.
9866 * config/ia64/linux.mh: Ditto.
9867 * config/m68k/linux.mh: Ditto.
9868 * config/mips/linux.mh: Ditto.
9869 * config/powerpc/linux.mh: Ditto.
9870 * config/sparc/linux.mh: Ditto.
9871
c25b74ac
PM
98722002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9873
9874 * win32-nat.c: Add i386-tdep.h dependency.
9875
94cd915f
MS
98762002-01-07 Michael Snyder <msnyder@redhat.com>
9877
c7cccb76
MS
9878 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9879 instead of bfd_get_arch_size. Don't bail out just because
9880 there's no exec_bfd.
abf22e64 9881
34c0bd93
MS
9882 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9883 * p-valprint.c (pascal_object_print_value): Ditto.
9884 * somread.c (som_symtab_read): Ditto.
9885 * symfile.c (simple_free_overlay_region_table): Ditto.
9886 * valops.c (value_assign): Ditto.
9887
21c1c920
MS
9888 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9889 use tilde_expand and strerror for opening save-tracepoints file.
9890
5bbd998e
MS
9891 * thread-db.c (thread_db_new_objfile): Indendation fix.
9892
94cd915f
MS
9893 * infptrace.c (GDB_MAX_ALLOCA): New define.
9894 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 9895 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
9896 can be overridden with whatever value is appropriate to the host).
9897 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9898 alloca to allocate potentially large buffer.
9899 * rs6000-nat.c (child_xfer_memory): Ditto.
9900 * symm-nat.c (child_xfer_memory): Ditto.
9901 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9902
494e8a93
JSC
99032002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9904
9905 From Nick Clifton <nickc@redhat.com>
9906 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9907
d0e1d48e
MS
99082002-01-07 Michael Snyder <msnyder@redhat.com>
9909
abf22e64 9910 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
9911 Don't use exec_bfd if it's NULL.
9912
290b2c7a
MK
99132002-01-06 Mark Kettenis <kettenis@gnu.org>
9914
abf22e64 9915 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 9916
aef21287
AC
99172002-01-06 Andrew Cagney <ac131313@redhat.com>
9918
9919 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9920 * gnu-nat.c: Ditto.
9921
30efa627
AC
99222002-01-06 Andrew Cagney <ac131313@redhat.com>
9923
9924 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9925 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9926 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9927 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9928 z8k-coff have not been multi-arched. Update z8k-coff build
9929 status.
9930
9b4ff276
AC
99312002-01-06 Andrew Cagney <ac131313@redhat.com>
9932
9933 * MAINTAINERS: Mark a29k target as obsolete.
9934 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9935 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9936 comments.
9937 * NEWS: Note that a29k targets are obsolete.
9938 * a29k-tdep.c: Mark as obsolete.
9939 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9940 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9941 a29k-*-vxworks* targets as obsolete.
9942 * remote-adapt.c: Obsolete.
9943 * remote-eb.c: Obsolete.
9944 * remote-mm.c: Obsolete.
9945 * remote-udi.c: Obsolete.
9946 * config/a29k/a29k-udi.mt: Obsolete.
9947 * config/a29k/a29k.mt: Obsolete.
9948 * config/a29k/tm-a29k.h: Obsolete.
9949 * config/a29k/tm-vx29k.h: Obsolete.
9950 * config/a29k/vx29k.mt: Obsolete.
9951
a9011d31
AC
99522002-01-05 Andrew Cagney <ac131313@redhat.com>
9953
9954 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9955 with BFD_ENDIAN_BIG.
9956
9299404e
AC
99572002-01-05 Andrew Cagney <ac131313@redhat.com>
9958
9959 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9960 * configure, config.in: Re-generate.
9961 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9962 * defs.h: Do not include <endian.h>.
9963
7e89e357
JT
99642002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9967 * config.in: Regenerate.
9968 * configure.in: Update copyright years.
9969 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9970 * configure: Regenerate.
9971 * i386bsd-nat.c: Update copyright years.
9972 (fill_gregset): Use regcache_collect.
9973 (fetch_inferior_registers): Only fetch integer registers
9974 if requested to do so. Add support for XMM registers
9975 using PT_GETXMMREGS.
9976 (store_inferior_registers): Only store integer registers
9977 if requested to do so. Add support for XMM registers
9978 using PT_SETXMMREGS.
9979 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9980 (store_inferior_registers): Remove.
9981 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9982 (fetch_elfcore_registers): New function.
9983 (i386nbsd_elfcore_fns): New.
9984 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9985 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9986 i386bsd-nat.o.
9987 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9988 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9989 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9990 * config/i386/tm-nbsd.h: Update copyright years.
9991 (HAVE_SSE_REGS): Define.
9992 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9993 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9994 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9995 (SIGCONTEXT_PC_OFFSET): Remove.
9996 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9997
a752853e
AC
99982002-01-05 Andrew Cagney <ac131313@redhat.com>
9999
10000 * configure.tgt: Remove powerpc-*-macos* target.
10001 * config/m68k/xm-mpw.h: Delete file.
10002 * config/xm-mpw.h: Delete file.
10003 * ser-mac.c: Delete file.
10004 * mpw-make.sed: Delete file.
10005 * mpw-config.in: Delete file.
10006 * mac-xdep.c: Delete file.
10007 * mac-gdb.r: Delete file.
10008 * mac-defs.h: Delete file.
10009 * mac-nat.c: Delete file.
10010 * config/powerpc/macos.mh: Delete file.
10011 * config/powerpc/macos.mt: Delete file.
10012 * config/powerpc/nm-macos.h: Delete file.
10013 * config/powerpc/tm-macos.h: Delete file.
10014 * source.c (openp, open_source_file): Remove obsolete code.
10015 * top.c (gdb_readline): Ditto.
10016 * utils.c (query): Ditto.
10017 * event-top.c (display_gdb_prompt): Ditto.
10018 * Makefile.in (ser-mac.o): Delete obsolete target.
10019 * NEWS: Update.
10020
d7449b42
AC
100212002-01-04 Andrew Cagney <ac131313@redhat.com>
10022
10023 * defs.h (BIG_ENDIAN): Delete macro definition.
10024 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10025 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10026 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10027 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10028 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10029 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10030 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10031 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10032 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10033 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10034 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10035 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10036 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10037 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10038 * gdbarch.c: Re-generate.
10039
356374e8
DJ
100402002-01-04 Daniel Jacobowitz <drow@mvista.com>
10041
10042 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10043 for core files.
10044
a2b8f8f8
JT
100452002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10046
10047 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10048
12466af9
AC
100492002-01-04 Andrew Cagney <ac131313@redhat.com>
10050
10051 * value.h (value_ptr): Delete typedef.
10052
3549ab40
JT
100532002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10054
10055 * i386nbsd-nat.c: Update copyright years.
10056 Include i386-tdep.h.
10057
fedbd091
EZ
100582002-01-04 Elena Zannoni <ezannoni@redhat.com>
10059
10060 * stabsread.c: Update copyright years.
10061
10062 From Debashis Mahata <debashis.mahata@wipro.com>:
10063 (read_struct_fields): Deal with Sun C compiler erroneous stab
10064 output for structs and unions.
fec8b34f 10065 Fix PR gdb/269.
fedbd091 10066
eb43544b
DJ
100672002-01-04 Daniel Jacobowitz <drow@mvista.com>
10068
10069 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10070 prototype.
10071
1514d34e
DJ
100722002-01-04 Daniel Jacobowitz <drow@mvista.com>
10073
10074 * cp-abi.c: Fix whitespace.
10075 (baseclass_offset): New wrapper function.
10076 * cp-abi.h (baseclass_offset): Add prototype.
10077 (struct cp_abi_ops): Add baseclass_offset pointer.
10078
10079 * valops.c (vb_match): Move to...
10080 * gnu-v2-abi.c (vb_match): here.
10081 * valops.c (baseclass_offset): Move to...
10082 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10083
10084 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10085
10086 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10087 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10088 * hpacc-abi.c (init_hpacc_ops): Likewise.
10089
7f8c9282
DJ
100902002-01-04 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * valops.c (find_overload_match): Accept obj as a
10093 reference parameter. Update it before returning.
10094 * value.h (find_overload_match): Update prototype.
10095 * eval.c (evaluate_subexp_standard): Pass object to
10096 find_overload_match by reference.
10097
f23631e4
AC
100982002-01-03 Andrew Cagney <ac131313@redhat.com>
10099
10100 * valarith.c: Replace value_ptr with struct value pointer. Remove
10101 register attribute from value declarations.
10102 * valops.c: Ditto.
10103 * value.h: Ditto.
10104 * scm-lang.c (scm_lookup_name): Ditto.
10105
79e10fab 101062002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10107
79e10fab
AC
10108 Abstract the functionality of iterating over mapped memory
10109 regions into a general purpose iterator function.
abf22e64 10110 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10111 iterator for memory sections.
10112 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10113 (solib_mappings_callback): New function, callback for above.
10114 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10115 (info_mappings_callback): New function, callback for above.
10116
10117 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10118
c5ad026a
MK
101192002-01-01 Mark Kettenis <kettenis@gnu.org>
10120
d2a7c97a
MK
10121 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10122 * i386-tdep.c: Include "elf-bfd.h".
10123 (process_note_abi_tag_sections): New function.
10124 (i386_gdbarch_init): Add code to recognize various OS/ABI
10125 combinations.
10126
c5ad026a
MK
10127 * maint.c (_initialize_maint_cmds): Add missing \ in
10128 string-literal.
10129
a1a5b71e 10130For older changes see ChangeLog-2001
c906108c
SS
10131\f
10132Local Variables:
10133mode: change-log
10134left-margin: 8
10135fill-column: 74
10136version-control: never
10137End:
This page took 0.786552 seconds and 4 git commands to generate.