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