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