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