* NEWS: Mention m68k, mcore multi-arching.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a1789893
GS
12002-07-10 Grace Sainsbury <graces@redhat.com>
2
3 * NEWS: Mention m68k, mcore multi-arching.
4 * MAINTAINERS: Change status of m68k, mcore to reflect
5 multi-arching.
6
02f0d45d
DJ
72002-07-10 Daniel Jacobowitz <drow@mvista.com>
8
9 * valops.c (find_overload_match): Free oload_syms.
10
f15f768e
JB
112002-07-09 Joel Brobecker <brobecker@gnat.com>
12
13 Define HAVE_SYS_PROC_H if sys/proc.h exists
14 * configure.in: Add check for sys/proc.h
15 * config.in: Regenerate.
16 * configure: Regenerate.
17
902a7139
GS
182002-07-09 Grace Sainsbury <graces@redhat.com>
19
20 * config/m68k/tm-m68k.h: Remove macros wrapped in
21 #if !GDB_MULTI_ARCH.
22
82e0fd98
DB
232002-07-09 David O'Brien <obrien@FreeBSD.org>
24
25 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
26 (perror_with_name, remote_close, remote_open, expect, play): Static.
27
a534e424
AC
282002-07-08 Andrew Cagney <ac131313@redhat.com>
29
30 * config.in, configure: Regenerate.
31
9b94f7bf
MK
322002-07-08 Mark Kettenis <kettenis@gnu.org>
33
34 * dwarf2cfi.c: Include "gcore.h".
35 (execute_stack_op): Fix implementation of the
36 DW_OP_deref and DW_OP_deref_size operators by letting do their
37 lookup in the target.
38
1d34db41
MK
392002-07-07 Mark Kettenis <kettenis@gnu.org>
40
41 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
42 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
43 tdep->sc_sp_offset.
44
79d5b63a
DJ
452002-07-05 Daniel Jacobowitz <drow@mvista.com>
46
47 Fix PR gdb/595, gdb/602
48 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
49 Don't call value_cast, just read the vtable pointer; update comments
50 to match.
51
3bb912e8
GS
522002-07-05 Grace Sainsbury <graces@redhat.com>
53
54 * config/mcore/tm-mcore.h: Remove file.
55 * config/mcore/mcore.mt: Remove definition of TM_FILE
56 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
57
ca39387d
MK
582002-07-05 Mark Kettenis <kettenis@gnu.org>
59
60 * i386bsd-tdep.c: Include "gdb_string.h".
61
efdc1108
GS
622002-07-04 Grace Sainsbury <graces@redhat.com>
63
64 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
65 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
66 mcore-tdep.
67 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
68 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
69 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
70 (RETVAL_REGNUM): Move macros from tm-mcore.h
71 (mcore_reg_struct_has_addr): New function.
72 (mcore_gdbarch_init): Added initializations for the macros removed
73 from tm-mcore.h.
74
bb21884d
MK
752002-07-04 Mark Kettenis <kettenis@gnu.org>
76
77 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
78 traditonal string branding within the ELF header.
79
228c6d41
DJ
802002-07-04 Daniel Jacobowitz <drow@mvista.com>
81
82 * symtab.c (remove_params): New function.
83 (make_symbol_overload_list): Use it instead of cplus_demangle.
84 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
85
2404952e
MK
862002-07-04 Mark Kettenis <kettenis@gnu.org>
87
e5e4acad
MK
88 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
89
baadce09
MK
90 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
91 New variables.
92 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
93 and tdep->sigtramp_end.
94 * i386obsd-nat.c: New file.
95 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
96
2404952e
MK
97 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
98 Don't call get_current_frame().
99
9b4f1ba7
PM
1002002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
101
102 * i386-nat.c (child_post_startup_inferior): New function
103 calling i386_cleanup_dregs if
104 I386_USE_GENERIC_WATCHPOINTS is defined.
105 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
106 conditional to acknowledge that i386-nat.c has its
107 own child_post_startup_inferior function.
108
c0d1d883
MK
1092002-07-04 Mark Kettenis <kettenis@gnu.org>
110
00f8375e
MK
111 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
112 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
113 instead of MAX_REGISTER_RAW_SIZE.
114 (i386_extract_return_value, i386_extract_struct_value_address):
115 Convert to use regcache.
116 (i386_gdbarch_init): Set max_register_raw_size and
117 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
118 Set extract_return_value and extract_struct_value_address instead
119 of their deprecated variants.
120
c0d1d883
MK
121 Convert i386 target to generic dummy frames.
122 * i386-tdep.c: Include "symfile.h".
123 (i386_frameless_signal_p): Consider a function to be frameless if
124 the pc points at the first instruction of the function.
125 (i386_frame_chain): Handle (generic) call dummies.
126 (i386_frame_saved_pc): Likewise.
127 (i386_frame_init_saved_regs): Remove code dealing with call
128 dummies on the stack.
129 (i386_push_dummy_frame): Removed.
130 (i386_call_dummy_words): Removed.
131 (i386_fix_call_dummy): Removed.
132 (i386_push_return_address): New function.
133 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
134 parameter, and don't call get_current_frame.
135 (i386_pop_frame): New function.
136 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
137 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
138 entry_point_address, set call_dummy_breakpoint_offset to 0, set
139 call_dummy_length to 0, set call_dummy_words to NULL, set
140 sizeof_call_dummy_words to 0, set fix_call_dummy to
141 generic_fix_call_dummy, set pc_in_call_dummy to
142 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
143 generic_push_dummy_frame, set push_return_address to
144 i386_push_return_address and set frame_chain_valid to
145 generic_file_frame_chain_valid.
146
638c1580
ML
1472002-07-04 Michal Ludvig <mludvig@suse.cz>
148
149 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
150 byte offsets instead of an array of indexes.
151 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
152
049ee0e4
AC
1532002-07-03 Andrew Cagney <ac131313@redhat.com>
154
155 * gdbarch.sh (struct regcache): Add opaque declaration.
156 (EXTRACT_RETURN_VALUE): New architecture method.
157 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
158 * gdbarch.h, gdbarch.c: Regenerate.
159 * arch-utils.c (legacy_extract_return_value): New function.
160 * arch-utils.h (legacy_extract_return_value): Declare.
161 * values.c (value_being_returned): Re-enable code handling
162 EXTRACT_STRUCT_VALUE_ADDRESS. Move
163 deprecated_grub_regcache_for_registers call to block handling
164 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
165 (EXTRACT_RETURN_VALUE): Do not define.
166
4e0d9804
GS
1672002-07-03 Grace Sainsbury <graces@redhat.com>
168
169 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
170 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
171 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
172 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
173 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
174 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
175 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
176 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
177 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
178 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
179 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
180 argument so the function fits the prototype in the architecture
181 vector.
182 (mcore_pop_frame): Remove argument so the function fits the
183 prototype. Use get_current_frame instead of the argument.
184 (mcore_push_arguments): Change type of struct_return so the
185 function can be used in the architecture vector.
186 (mcore_store_struct_return): Add.
187 (mcore_frame_init_saved_regs): Add.
188 (mcore_gdbarch_init): Add function calls to replace the macros
189 removed from tm-mcore.h
190
36160dc4
AC
1912002-07-03 Andrew Cagney <ac131313@redhat.com>
192
193 * infcmd.c (print_return_value): Remove compatibility code calling
194 deprecated_grub_regcache_for_registers.
195
196 * values.c: Include "regcache.h".
197 (value_being_returned): Update. Use
198 deprecated_grub_regcache_for_registers to extract the register
199 buffer address.
200 * value.h (value_being_returned): Change ``retbuf'' parameter to a
201 ``struct regcache''.
202 * Makefile.in (values.o): Add dependency on $(regcache_h).
203
204 * inferior.h (run_stack_dummy): Change type of second parameter to
205 a ``struct regcache''.
206 * valops.c (hand_function_call): Change type of retbuf to ``struct
207 regcache''. Allocate using regcache_xmalloc, clean using
208 make_cleanup_regcache_xfree.
209 * infcmd.c (run_stack_dummy): Update. Use
210 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
211
212 * regcache.c (do_regcache_xfree): New function.
213 (make_cleanup_regcache_xfree): New function.
214 * regcache.h (make_cleanup_regcache_xfree): Declare.
215
e64d9b3d
MH
2162002-07-03 Martin M. Hunt <hunt@redhat.com>
217
4dd79c29
MH
218 * event-top.c (command_line_handler): Don't read past
219 beginning of buffer.
e64d9b3d 220
4dd79c29
MH
2212002-07-03 Martin M. Hunt <hunt@redhat.com>
222
e64d9b3d
MH
223 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
224 struct frame_id.
225 (varobj_create): Store frame_id for root.
226 (varobj_gen_name): Use xasprintf.
227 (varobj_update): Save and restore frame using get_frame_id() and
228 frame_find_by_id().
229 (create_child): Use xasprintf.
230 (new_root_variable): Initialize frame_id.
231 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
232 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
233 to prevent memory leak.
234
26e6c56a
AC
2352002-07-03 Andrew Cagney <ac131313@redhat.com>
236
237 * valops.c (hand_function_call): Move declaration of retbuf to
238 start of function, allocate using malloc, add a cleanup but before
239 the inf_status cleanup, cleanup the buffer. Rename local variable
240 old_chain to inf_status_cleanup.
241
f436dd25
MH
2422002-07-03 Martin M. Hunt <hunt@redhat.com>
243
244 * top.c (execute_command): Use cmd_func() and cmd_func_p().
245
246 * cli/cli-decode.c (cmd_func_p): New function.
247 (cmd_func): New function.
248
249 * command.h: Add cmd_func() and cmd_func_p().
250
4cfe2084
GS
2512002-07-03 Grace Sainsbury <graces@redhat.com>
252
253 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
254 (REGISTER_SIZE): Remove.
255 (MAX_REGISTER_RAW_SIZE): Remove.
256 (REGISTER_VIRTUAL_TYPE): Remove.
257 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
258 (REGISTER_NAME): Remove.
259 (USE_GENERIC_DUMMY_FRAMES): Remove.
260 (CALL_DUMMY): Remove.
261 (CALL_DUMMY_START_OFFSET): Remove.
262 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
263 (CALL_DUMMY_LOCATION): Remove.
264 (FIX_CALL_DUMMY): Remove.
265 (CALL_DUMMY_ADDRESS): Remove.
266 (SIZEOF_CALL_DUMMY_WORDS): Remove.
267 (SAVE_DUMMY_FRAME_TOS): Remove.
268 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
269 (mcore_register_virtual_type): New function.
270 (mcore_register_byte): New function.
271 (mcore_register_size): New function.
272 (mcore_register_name): New function.
273 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
274 macros removed from tm-mcore.h.
275 (mcore_dump_tdep): Add.
276 (_initialize_mcore_tdep): Add gdbarch_register call.
277
4fd667e9
MK
2782002-07-03 Mark Kettenis <kettenis@gnu.org>
279
280 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
281 frameless_look_for_prologue, such that we actually call this
282 function.
283
42f99ac2
JB
2842002-07-02 Joel Brobecker <brobecker@gnat.com>
285
286 * frame.h (frame_address_in_block): New function.
287
288 * blockframe.c (frame_address_in_block): New function extracted
289 from get_frame_block().
290 (get_frame_block): Use frame_address_in_block().
291 (block_innermost_frame): Use frame_address_in_block() to match
292 the frame pc address against the block boundaries rather than
293 the frame pc directly. This prevents a failure when a frame pc
294 is actually a return-address pointing immediately after the end
295 of the given block.
296
103a1597 2972002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
298
299 * MAINTAINERS: Add self under write after approval.
300
3012002-07-02 Grace Sainsbury <graces@redhat.com>
302
103a1597
GS
303 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
304 used in architecture vector. The default is
305 m68k_local_breakpoint_from_pc.
306 (m68k_local_breakpoint_from_pc): Add.
307 (enum): Add register numbers from tm-m68k.h.
308 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
309 vector.
310 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
311 GDB_MULTI_ARCH_PARTIAL.
312 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
313 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
314 m68k-tdep.c.
315 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
316 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
317 to enum in m68k-tdep.c
318
7a5a0534
JB
3192002-07-02 Joel Brobecker <brobecker@gnat.com>
320
321 * solib-osf.c (open_map): Compute the list of shared libraries
322 loaded by the inferior, rather than the list of libraries loaded
323 by GDB itself. Otherwise, GDB ends up reading the symbols from
324 the wrong shared libraries...
325
6f558d74
MK
3262002-07-02 Mark Kettenis <kettenis@gnu.org>
327
b7d15bf7
MK
328 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
329 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
330 macros.
331 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
332 Remove functions.
333 (FRAMELESS_SIGNAL): Remove function.
334 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
335 i386_linux_saved_pc_after_call): Removed.
336 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
337 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
338 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
339
6bff26de
MK
340 * i386-tdep.c (i386_frameless_signal_p): New function.
341 (i386_frame_chain): Deal with frameless signals.
342 (i386_sigtramp_saved_sp): New function.
343 (i386_frame_saved_pc): Deal with frameless signals.
344 (i386_saved_pc_after_call): Make sure the correct value is
345 returned just after entry into a sigtramp.
346 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
347 i386fbsd4_sc_sp_offset): New variables.
348 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
349 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
350 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
351 similiar to what we already did for sc_pc_offset.
352 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
353 tdep->sc_sp_offset.
354
6f558d74
MK
355 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
356
145564b7
ML
3572002-07-02 Michal Ludvig <mludvig@suse.cz>
358
359 * config/i386/tm-x86-64linux.h: New.
360 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
361 definitions.
362 * config/i386/nm-x86-64.h: Rename to ...
363 * config/i386/nm-x86-64linux.h: ... this one.
364 * config/i386/x86-64linux.mh: Reflect the above change.
365
3a1e71e3
MK
3662002-07-01 Mark Kettenis <kettenis@gnu.org>
367
21d0e8a4
MK
368 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
369 with sigcontext_addr. Add sc_sp_offset.
370 (i386bsd_sigtramp_saved_pc): Remove prototype.
371 (i386bsd_sicontext_addr): Add prototype.
372 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
373 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
374 (i386_svr4_sigtramp_saved_pc): Removed.
375 (i386_svr4_sigcontext_addr): New function.
376 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
377 Initialize tdep->sigcontext_addr instead. Initialize
378 tdep->sc_pc_offset and tdep->sc_sp_offset.
379 (i386_gdbarch_init): Likewise.
380 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
381 any more.
382 (i386bsd_sigtramp_saved_pc): Remove function.
383 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
384 Initialize tdep->sigcontext_addr instead. Initialize
385 tdep->sc_pc_offset.
386 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
387 of tdep->sigtramp_saved_pc.
388 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
389 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
390 instead.
391
3a1e71e3
MK
392 * i386-tdep.c (i386_frameless_function_invocation,
393 i386_frame_num_args, i386_frame_init_saved_regs,
394 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
395 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
396 i386_extract_return_value, i386_store_return_value,
397 i386_extract_struct_value_address, i386_register_virtual_type,
398 i386_register_convertible, i386_register_convert_to_virtual,
399 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
400 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
401 static.
402
52e9098c
MK
4032002-07-01 Mark Kettenis <kettenis@gnu.org>
404
77b13a25
MK
405 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
406
52e9098c
MK
407 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
408 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
409 this macro. Include "value.h".
410
1b372fff
AS
4112002-06-30 Aidan Skinner <aidan@velvet.net>
412
413 * ada-exp.tab.c: remove as it's a generated file
414 * ada-lex.c: remove as it's a generated file
415
9c5045b5
MK
4162002-06-30 Mark Kettenis <kettenis@gnu.org>
417
4a93c5bb
MK
418 * config/i386/tm-i386.h (struct frame_info, struct
419 frame_saved_regs, struct value, struct type): Remove forward
420 declarations.
421
322d4fe0
MK
422 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
423 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
424 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
425 (FILL_FPXREGSET): Define.
426
fdd8263d
MK
427 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
428
482e577b
MK
429 * configure.tgt (i[3456]86-*-openbsd*): Fold into
430 i[3456]86-*-netbsd* case.
431 * config/i386/tm-obsd.h: Removed.
432 * config/i386/obsd.mt: Removed.
433 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
434 core-aout.o.
435 (MH_CFLAGS): Add -DYYDEBUG=0.
436
6916549a
MK
437 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
438 i386nbsd_sc_pc_offset on OpenBSD too.
439
9c5045b5
MK
440 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
441 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
442 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
443 define.
444 * i386bsd-tdep.c: Include "arch-utils.h".
445 (i386bsd_aout_in_solib_call_trampoline): New function.
446 (i386bsd_init_abi): Set in_solib_call_trampoline to
447 i386bsd_aout_in_solib_call_trampoline.
448 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
449 in_solib_call_trampoline to generic_in_solib_call_trampoline.
450
aa84d1bb
AC
4512002-06-28 Andrew Cagney <ac131313@redhat.com>
452
453 * macrotab.h: Do not include "obstack.h" or "bcache.h".
454 (struct obstack, struct bcache): Add opaque declarations.
455 * Makefile.in (macrotab_h): Update
456
b4d83933
AC
4572002-06-28 Andrew Cagney <ac131313@redhat.com>
458
459 * blockframe.c (generic_find_dummy_frame): Change return type to
460 ``struct regcache''.
461 (struct dummy_frame): Replace field ``registers'' with regcache, a
462 struct regcache object.
463 (generic_find_dummy_frame): Update.
464 (generic_push_dummy_frame): Update. Use regcache_xfree,
465 regcache_xmalloc and regcache_cpy.
466 (generic_pop_dummy_frame): Update. Use regcache_cpy and
467 regcache_xfree.
468 (deprecated_generic_find_dummy_frame): Update.
469 (generic_read_register_dummy): Update. Use
470 regcache_read_as_address.
471 (generic_call_dummy_register_unwind): Update. Use regcache_read.
472 (generic_get_saved_register): Update. Use regcache_read.
473
08c0b5bc
AC
4742002-06-28 Andrew Cagney <ac131313@redhat.com>
475
476 * Makefile.in (objfiles_h): Add $(bcache_h).
477 * objfiles.h: Include "bcache.h".
478
479 * Makefile.in (symtab_h): Remove $(bcache_h).
480 * symtab.h: Do not include "bcache.h".
481
1f89801a
AC
4822002-06-28 Andrew Cagney <ac131313@redhat.com>
483
484 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
485 generic_func_frame_chain_valid.
486
b9644b58
DB
4872002-06-28 David O'Brien <obrien@FreeBSD.org>
488
489 * config/i386/nm-fbsd.h: Include <sys/param.h>.
490 * config/i386/tm-fbsd.h: Likewise.
491
dd486634
AC
4922002-06-28 Andrew Cagney <ac131313@redhat.com>
493
494 * rs6000-tdep.c (rs6000_gdbarch_init): Use
495 generic_unwind_get_saved_register.
496
0b434a00
AC
4972002-06-27 Andrew Cagney <ac131313@redhat.com>
498
499 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
500 * regcache.c (supply_register): Add missing argument to
501 register_buffer call.
502
f30e5a77
AC
5032002-06-27 Andrew Cagney <ac131313@redhat.com>
504
505 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
506 Solaris /bin/grep does not not like it. From Peter Schauer.
507
9f064c95
TT
5082002-06-26 Tom Tromey <tromey@redhat.com>
509
510 * command.h (add_setshow_cmd): Declare.
511 (add_setshow_cmd_full): Declare.
512 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
513 returns void. Use add_setshow_cmd_full.
514 (add_setshow_cmd_full): New function.
515 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
516 (add_setshow_boolean_cmd): Likewise.
517
099c7589
JT
5182002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
519
520 * config/vax/tm-vax.h: Protect from multiple inclusion.
521 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
522 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
523 * config/vax/tm-vaxbsd.h: ...here. New file.
524 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
525
1d049c5e
JT
5262002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
527
528 * config/vax/tm-vax.h (BREAKPOINT): Remove.
529 (BELIEVE_PCC_PROMOTION): Remove.
530 (AP_REGNUM): Move to...
531 * config/vax/nm-vax.h: ...here.
532 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
533 (vax_breakpoint_from_pc): New function.
534 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
535 and gdbarch_believe_pcc_promotion.
536
4791e091
JT
5372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
538
539 * Makefile.in (vax_tdep_h): Define.
540 (vax-tdep.o): Use $(vax_tdep_h).
541 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
542 (vax_dump_tdep): New function.
543 (_initialize_vax_tdep): Register vax_dump_tdep.
544 * vax-tdep.h: Include osabi.h.
545 (struct gdbarch_tdep): New.
546
da130f98
AC
5472002-06-26 Andrew Cagney <cagney@redhat.com>
548
549 * frame.h (deprecated_generic_find_dummy_frame): Rename
550 generic_find_dummy_frame.
551 * blockframe.c (generic_find_dummy_frame): Make static.
552 (deprecated_generic_find_dummy_frame): New function.
553 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
554 generic_find_dummy_frame with deprecated_find_dummy_frame.
555 (sh64_nofp_frame_init_saved_regs): Ditto.
556 (sh_fp_frame_init_saved_regs): Ditto.
557 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
558 (s390_frame_chain): Ditto.
559 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
560
6300c360
GS
5612002-06-26 Grace Sainsbury <graces@redhat.com>
562
563 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
564 gdbarch vector are at the top.
565 (NUM_REGS): Remove.
566 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
567 (FRAME_ARGS_ADDRESS): Remove.
568 (FRAME_LOCALS_ADDRESS): Remove.
569 (FRAME_NUM_ARGS): Remove.
570 (FRAME_ARGS_SKIP): Remove.
571 * m68k-tdep.c (enum): Add eumeration of special register numbers.
572 (m68k_gdbarch_init): Add gdbarch initializations for macros
573 undefined in tm-m68k.h
574
1c617db8
GS
5752002-06-26 Grace Sainsbury <graces@redhat.com>
576
577 * monitor.h: Add the function regname to monitor_ops
578 structure. This way NUM_REGS does not have to be a constant.
579 * monitor.c (monitor_fetch_register): Added support for regname
580 function. The function is called if the array regnames is NULL.
581 (monitor_store_register): Same.
da130f98
AC
582 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
583 regnames array.
1c617db8
GS
584 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
585 cpu32bug_cmds.regname to point to new function.
586 * abug-rom.c (abug_regname): Same as above.
587 (init_abug_cmds): Same.
588 * dbug-rom.c (dbug_regname): Same as above.
589 (init_dbug_cmds): Same.
590 * remote-est.c (est_regname): Same.
591 (init_est_cmds): Same.
592 * rom68k-rom.c (rom68k_regname): Same.
593 (init_rom68k_cmds): Same.
594
ea9365bb
TT
5952002-06-25 Tom Tromey <tromey@redhat.com>
596
597 * breakpoint.c (delete_command): Don't repeat `delete' commands.
598
72cec141
AC
5992002-06-25 Andrew Cagney <cagney@redhat.com>
600
601 * infrun.c (stop_registers): Change variable's type to ``struct
602 regcache'''.
603 (xmalloc_inferior_status): Delete function.
604 (free_inferior_status): Delete function.
605 (normal_stop): Use regcache_cpy.
606 (struct inferior_status): Change type of fields ``stop_registers''
607 and ``registers'' to ``struct regcache''.
608 (write_inferior_status_register): Use regcache_write.
609 (save_inferior_status): Instead of calling
610 xmalloc_inferior_status, allocate the inf_status buffer directly.
611 Use regcache_dup_no_passthrough and regcache_dup to save the
612 buffers.
613 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
614 Replace the stop_registers regcache instead of overriding it. Use
615 regcache_xfree. Instead of calling free_inferior_status, xfree
616 the buffer directly.
617 (discard_inferior_status): Use regcache_xfree. Instead of calling
618 free_inferior_status, xfree the buffer directly.
619 (build_infrun): Use regcache_xmalloc.
620 (_initialize_infrun): Delete redundant call to build_infrun.
621
622 * Makefile.in (infcmd.o): Add $(regcache_h).
623
624 * infcmd.c: Include "regcache.h".
625 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
626 obtain the address of `stop_registers' register buffer.
627 (print_return_value): Ditto.
628
629 * inferior.h (struct regcache): Add opaque declaration.
630 (stop_registers): Change variable's declared type to ``struct
631 regcache''.
632
defc6f8c
TT
6332002-06-24 Tom Tromey <tromey@redhat.com>
634
c0e624e7
TT
635 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
636 * target.c (initialize_targets): Fixed typo in
637 trust-readonly-sections `show' documentation.
638
defc6f8c
TT
639 * main.c: Marked all strings with _().
640
2b236d82
DH
6412002-06-24 Don Howard <dhoward@redhat.com>
642
643 * memattr.c (create_mem_region): Treat hi == 0 as a special case
644 that means max CORE_ADDR+1.
645 (lookup_mem_region): Ditto.
646 (mem_info_command): Ditto.
647
942dc0e9
GS
6482002-06-24 Grace Sainsbury <graces@redhat.com>
649
650 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
651 (REGISTER_BYTES_OK): Remove.
652 (REGISTER_BYTES): Remove.
653 (STORE_STRUCT_RETURN): Remove.
654 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
655 (STORE_RETURN_VALUE): Remove.
656 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
657 (FRAME_CHAIN): Remove.
658 (FRAMELESS_FUNCTION_INVOCATION): Remove.
659 (FRAME_SAVED_PC): Remove.
660 * m68k-tdep.c (m68k_register_bytes_ok):Add.
661 (m68k_store_struct_return): Add.
662 (m68k_deprecated_extract_return_value): Add.
663 (m68k_deprecated_extract_struct_value_address): Add.
664 (m68k_store_return_value): Add.
665 (m68k_frame_chain): Add.
666 (m68k_frameless_function_invocation): Add.
667 (m68k_frame_saved_pc): Add.
668 (m68k_gdbarch_init): added set_gdbarch calls for new
669 functions and deleted macros.
670
03c30d4d
TT
6712002-06-23 Tom Tromey <tromey@redhat.com>
672
673 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
674 (ALLDEPFILES): Likewise.
675 (udiheaders): Removed.
676 (udip2soc.o): Likewise.
677 (udi2go32.o): Likewise.
678 (udr.o): Likewise.
679 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
680
37e71372
AC
6812002-06-22 Andrew Cagney <ac131313@redhat.com>
682
06a6ac57
AC
683 * infrun.c (_initialize_infrun): Delete unnecessary call to
684 build_infrun.
685
37e71372
AC
686 * regcache.h: Update comments describing the regcache_cpy family
687 of functions.
688 (regcache_save, regcache_restore): Delete declaration.
689 (regcache_save_no_passthrough): Delete declaration.
690 (regcache_restore_no_passthrough): Delete declaration.
691 * regcache.c (regcache_save): Delete function.
692 (regcache_save_no_passthrough): Delete function.
693 (regcache_restore): Delete function.
694 (regcache_restore_no_passthrough): Delete function.
695
78f6d055
AC
6962002-06-21 Andrew Cagney <ac131313@redhat.com>
697
698 * config/m68k/tm-m68k.h: Fix typo.
699 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
700 (m68k_frame_init_saved_regs): Declare.
701
78b119cb
JB
7022002-06-21 Jim Blandy <jimb@redhat.com>
703
704 Remove some vestiges of Harris 88k support.
705 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
706 register numbering quirk.
707 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
708 odd symbols occurring in Harris 88k ELF targets.
709
0fbb3da7
TT
7102002-06-21 Tom Tromey <tromey@redhat.com>
711
712 * gdb_locale.h: New file.
713 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
714 (defs_h): Added gdb_locale.h.
715 * configure, config.in: Rebuilt.
716 * configure.in (PACKAGE): Define.
717 * defs.h: Include gdb_locale.h.
718 * main.c (captured_main): Call setlocale, bindtextdomain,
719 textdomain.
720
456f8b9d
DB
7212002-06-21 Dave Brolley <brolley@redhat.com>
722
723 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
724 * config/frv/frv.mt: New file.
725 * config/frv/tm-frv.h: New file.
726 * configure.tgt: Support frv-*-*.
727 * Makefile.in (frv-tdep.o): New target.
728 * frv-tdep.c: New file.
729 * NEWS: Mention frv.
730
cdd463f9
DB
7312002-06-21 Dave Brolley <brolley@redhat.com>
732
733 * MAINTAINERS: Add self to "Write After Approval" list.
734
5d3ed2e3
GS
7352002-06-21 Grace Sainsbury <graces@redhat.com>
736
737 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
738 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
739 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
740 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
741 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
742
743 * m68k-tdep.c: Include arch-utils.h
744 (m68k_register_raw_size): Add.
745 (m68k_register_virtual_size): Add.
746 (m68k_register_virtual_type): Add.
747 (m68k_register_name): Add.
748 (m68k_stack_align): Add.
749 (m68k_register_byte): Add.
750 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
751 tm-m68k.h.
752
7f8e7424
GS
7532002-06-21 Grace Sainsbury <graces@redhat.com>
754
a2c6a6d5 755 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
756 m68k_find_saved_regs.
757 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 758 references to it with frame->saved_regs.
7f8e7424
GS
759 (m68k_gdbarch_init): Added function calls to initialize the
760 gdbarch structure.
a2c6a6d5
GS
761 (m68k_fix_call_dummy): Add.
762 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
763 (CALL_DUMMY): Remove.
764 (CALL_DUMMY_LENGTH): Remove.
765 (CALL_DUMMY_START_OFFSET): Remove.
766 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
767 (FIX_CALL_DUMMY): Remove.
768 (PUSH_DUMMY_FRAME): Remove.
769 (POP_FRAME): Remove.
7f8e7424 770
f461f5cf
PM
7712002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
772
773 * parse.c (parse_fprintf): New function used to avoid calls to
774 fprintf in bison parser generated debug code.
775 * parser-defs.h: Declaration of new parse_fprintf function.
776 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
777 Set YYDEBUG to 1 by default.
778 Set YYFPRINTF as parse_fprintf.
779
7f0c12ed
ML
7802002-06-21 Michal Ludvig <mludvig@suse.cz>
781
782 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
783 encoding anymore.
784 (pointer_encoding, enum ptr_encoding): New.
785 (execute_cfa_program): Take care about pointer encoding.
786 (dwarf2_build_frame_info): Only call parse_frame_info for
787 .debug_frame and .eh_frame.
788 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
789 fixed augmentation handling, added relative addressing,
790 ignore duplicate FDEs. Added comments.
19d833a2 791 * dwarf2cfi.c: Reindented.
7f0c12ed 792
87c4a039
EZ
7932002-06-20 Elena Zannoni <ezannoni@redhat.com>
794
795 * event-top.c (command_handler): Don't use space_at_cmd_start
796 unless there is sbrk() on the host. Assign time and space data
797 to union fields of the appropriate length.
798
1cf877ad
ML
7992002-06-20 Michal Ludvig <mludvig@suse.cz>
800
801 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
802 x86_64_register_name. Return type changed to 'const char *'.
803 (x86_64_register_name2nr): Rename to x86_64_register_number.
804 (x86_64_gdbarch_init): Update to reflect the change.
805 * x86-64-tdep.h: Ditto.
806 * x86-64-linux-nat.c (x86_64_fxsave_offset)
807 (supply_fpregset): Ditto.
808
3fadccb3
AC
8092002-06-19 Andrew Cagney <cagney@redhat.com>
810
811 * regcache.h: Update copyright.
812 (struct regcache, struct gdbarch): Add opaque declarations.
813 (current_regcache): Declare global variable.
814 (regcache_read, regcache_write): Add gdbarch parameter.
815 (regcache_save, regcache_save_no_passthrough)
816 (regcache_restore, regcache_restore_no_passthrough)
817 (regcache_dup, regcache_dup_no_passthrough)
818 (regcache_cpy, regcache_cpy_no_passthrough)
819 (deprecated_grub_regcache_for_registers)
820 (deprecated_grub_regcache_for_register_valid)
821 (regcache_valid_p): Add function declarations.
822
823 * regcache.c: Update copyright.
824 (regcache_descr_handle): New global variable.
825 (struct regcache_descr): Define.
826 (init_legacy_regcache_descr, init_regcache_descr): New functions.
827 (regcache_descr, xfree_regcache_descr): New functions.
828 (struct regcache): Define.
829 (regcache_xmalloc, regcache_xfree): New functions.
830 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
831 (regcache_dup, regcache_dup_no_passthrough): New functions.
832 (regcache_valid_p, regcache_read_as_address): New functions.
833 (deprecated_grub_regcache_for_registers): New function.
834 (deprecated_grub_regcache_for_register_valid): New function.
835 (current_regcache): New global variable.
836 (register_buffer): Add regcache parameter. Update calls.
837 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
838 (read_register_gen, write_register_gen): Update register_buffer
839 call. Test for legacy_p instead of gdbarch_register_read_p or
840 gdbarch_register_write_p.
841 (regcache_collect): Update register_buffer call.
842 (build_regcache): Rewrite. Use deprecated grub functions.
843 (regcache_save, regcache_save_no_passthrough): New functions.
844 (regcache_restore, regcache_restore_no_passthrough): New
845 functions.
846 (_initialize_regcache): Create the regcache_data_handle. Swap
847 current_regcache global variable.
848
849 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
850 parameter to regcache_read and regcache_write calls.
851 (sh4_register_read): Ditto.
852 (sh64_pseudo_register_read): Ditto.
853 (sh64_register_read): Ditto.
854 (sh_pseudo_register_write): Ditto.
855 (sh4_register_write): Ditto.
856 (sh64_pseudo_register_write): Ditto.
857 (sh64_register_write): Ditto.
858
859 * defs.h (XCALLOC): Define.
860
152d9db6
GS
8612002-06-19 Grace Sainsbury <graces@redhat.com>
862
863 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
864 * m68k-tdep.c (m68k_gdbarch_init): Added.
865 (m68k_dump_tdep): Added.
866
170911c7
DJ
8672002-06-19 Daniel Jacobowitz <drow@mvista.com>
868
869 * ada-lang.c (fill_in_ada_prototype): Update comment.
870
2e4ebe70
DJ
8712002-06-19 Daniel Jacobowitz <drow@mvista.com>
872
873 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
874 MIPS_ABI_LAST.
875 (mips_abi_string, mips_abi_strings): New.
876 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
877 (mips_gdbarch_init): Set tdep->found_abi. Don't set
878 tdep->mips_abi_string. Honor mips_abi_string. Default to
879 O32 if no ABI is found.
880 (mips_dump_tdep): Use mips_abi_strings.
881 (mips_abi_update): New function.
882 (_initialize_mips_tdep): Initialize mips_abi_string. Add
883 ``set mips abi'' and ``show mips abi''. Check the size of
884 mips_abi_strings.
885
16775908
AC
8862002-06-19 Andrew Cagney <cagney@redhat.com>
887
888 * i386-linux-tdep.c (i386_linux_register_name): Make return type
889 constant.
890
5051bfa4 8912002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 892
5051bfa4
JB
893 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
894 current frame using only the first stack size adjustment. All
895 subsequent size adjustments are not considered to be part of
896 the "static" part of the current frame.
897 Compute the address of the saved registers relative to the
898 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
899 in use in this frame.
900
56468235
DH
9012002-06-18 Don Howard <dhoward@redhat.com>
902
903 * valops.c (value_ind): Use value_at_lazy() when dereferencing
904 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
905 suggesting this solution.
906
0b624158
AC
9072002-06-18 Andrew Cagney <ac131313@redhat.com>
908
909 * config/romp/xm-rtbsd.h: Delete file.
910 * config/romp/rtbsd.mh: Delete file.
911
221ea385
KS
9122002-06-18 Keith Seitz <keiths@redhat.com>
913
914 * breakpoint.c (condition_command): Post breakpoint_modify
915 when a condition is added to an existing breakpoint.
916 (commands_command): Likewise for commands.
917 (set_ignore_count): Likewise for ignore counts.
918 If no tty, do not simply return, still need to send event
919 notification.
920 (ignore_command): Only print a newline if the command came
921 from a tty.
922 Don't call breakpoints_changed, since this is now properly
923 handled by set_ignore_count.
924
5402eed1
AC
9252002-06-18 Andrew Cagney <cagney@redhat.com>
926
927 * MAINTAINERS: Note that cris-elf target can be compiled with
928 -Werror.
929 * cris-tdep.c (cris_register_name): Make return type constant.
930 (cris_breakpoint_from_pc): Ditto.
931
cc22880b
ML
9322002-06-18 Michal Ludvig <mludvig@suse.cz>
933
934 * frame.h (struct frame_info): Change type of context to
935 'struct context'.
936
fa88f677
AC
9372002-06-17 Andrew Cagney <cagney@redhat.com>
938
939 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
940 pointer.
941 * gdbarch.h, gdbarch.c: Regenerate.
942 * config/mips/tm-mips.h (mips_register_name): Update.
943 * i386-tdep.h (i386_register_name): Update.
944 * mips-tdep.c (mips_register_name): Update
945 * alpha-tdep.c (alpha_register_name): Update.
946 * arch-utils.c (legacy_register_name): Update.
947 * arch-utils.h (legacy_register_name): Update.
948 * avr-tdep.c (avr_register_name): Update.
949 * ia64-tdep.c (ia64_register_name): Update.
950 * i386-tdep.c (i386_register_name): Update.
951 * sparc-tdep.c (sparc32_register_name): Update.
952 (sparc64_register_name): Update.
953 (sparclite_register_name): Update.
954 (sparclet_register_name): Update.
955 * sh-tdep.c (sh_generic_register_name): Update.
956 (sh_sh_register_name): Update.
957 (sh_sh3_register_name): Update.
958 (sh_sh3e_register_name): Update.
959 (sh_sh_dsp_register_name): Update.
960 (sh_sh3_dsp_register_name): Update.
961 (sh_sh4_register_name): Update.
962 (sh_sh64_register_name): Update.
963 * s390-tdep.c (s390_register_name): Update.
964 * rs6000-tdep.c (rs6000_register_name): Update.
965 * ns32k-tdep.c (ns32k_register_name_32082): Update.
966 (ns32k_register_name_32382): Update.
967 * d10v-tdep.c (d10v_ts2_register_name): Update.
968 (d10v_ts3_register_name): Update.
969 * xstormy16-tdep.c (xstormy16_register_name): Update.
970 * vax-tdep.c (vax_register_name): Update.
971 * v850-tdep.c (v850_register_name): Update.
972 * m68hc11-tdep.c (m68hc11_register_name): Update.
973 * mn10300-tdep.c (mn10300_generic_register_name): Update.
974 (am33_register_name): Update.
975
ea1e7ef6
GS
9762002-06-17 Grace Sainsbury <graces@redhat.com>
977
978 * m68k-tdep.c: Reindented.
979
9b02dd1b
AC
9802002-06-17 Andrew Cagney <ac131313@redhat.com>
981
982 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
983 list of predefined types.
984
8758dec1
MK
9852002-06-16 Mark Kettenis <kettenis@gnu.org>
986
b6197528
MK
987 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
988 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
989 REGISTER_CONVERT_TO_RAW): Remove defines.
990 (i386_register_virtual_type, i386_register_convertible,
991 i386_register_convert_to_virtual, i386_register_convert_to_raw):
992 Remove prototypes.
993 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
994 macros mentioned above.
995
82b47e62
MK
996 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
997 (i386lynx_saved_pc_after_call): Remove prototype.
998 * i386ly-tdep.c: Include "i386-tdep.h".
999 (i386lynx_saved_pc_after_call): Make static. Use
1000 read_memory_nobpt instead of read_memory. Use
1001 read_memory_unsigned_integer instead of read_memory_integer.
1002 (i386lynx_init_abi): New function.
1003 (i386lynx_coff_osabi_sniffer): New function.
1004 (_initialize_i386bsd_tdep): New function.
1005
8758dec1
MK
1006 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1007 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1008 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1009 (i386_fix_call_dummy): Remove prototype.
1010 * i386-tdep.c (i386_call_dummy_words): New variable.
1011 (i386_gdbarch_init): Adjust for removal of the
1012 macros mentioned above.
1013
e9e68a56
AC
10142002-06-15 Andrew Cagney <ac131313@redhat.com>
1015
1016 * command.h (add_setshow_auto_boolean_cmd): Replace
1017 add_set_auto_boolean_cmd.
1018 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1019 add_set_auto_boolean_cmd.
1020 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1021 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1022 mask-address'' command.
1023 (show_mask_address): Add cmd parameter.
1024 * remote.c (add_packet_config_cmd): Update. Change type of
1025 set_func and show_func to cmd_sfunc_ftype.
1026 (_initialize_remote): Update `set remote Z-packet'
1027 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1028 (show_remote_protocol_e_packet_cmd): Ditto.
1029 (show_remote_protocol_E_packet_cmd): Ditto.
1030 (show_remote_protocol_P_packet_cmd): Ditto.
1031 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1032 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1033 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1034 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1035 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1036 (show_remote_protocol_Z_packet_cmd): Ditto.
1037 (show_remote_protocol_binary_download_cmd): Ditto.
1038 (show_remote_cmd): Pass NULL to all of above.
1039
fc08ec52
MK
10402002-06-15 Mark Kettenis <kettenis@gnu.org>
1041
1042 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1043 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1044 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1045 POP_FRAME): Remove defines.
1046 (i386_push_arguments, i386_store_struct_return,
1047 i386_extract_return_value, i386_store_return_value,
1048 i386_extract_struct_value_address, i386_push_dummy_frame,
1049 i386_pop_frame): Renove prototypes.
1050 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1051 macros mentioned above.
1052
e707bbc2
AC
10532002-06-15 Andrew Cagney <ac131313@redhat.com>
1054
1055 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1056 add_set_boolean_cmd.
1057 (add_setshow_cmd): New function.
1058 * command.h (add_setshow_boolean_cmd): Replace
1059 add_set_boolean_cmd.
1060 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1061 and ``set rdiromatzero''.
1062 * maint.c (_initialize_maint_cmds): Update commented out code.
1063 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1064 * target.c (initialize_targets): Update `set
1065 trust-readonly-sections'.
1066 * remote.c (_initialize_remote): Update `set remotebreak'.
1067
42fdc8df
MK
10682002-06-15 Mark Kettenis <kettenis@gnu.org>
1069
93924b6b
MK
1070 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1071 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1072 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1073 fit into multi-arch framework.
1074 (i386_breakpoint_from_pc): New function.
1075 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1076 above.
1077
42fdc8df
MK
1078 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1079 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1080 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1081 (i386_frameless_function_invocation, i386_frame_num_args,
1082 i386_frame_init_saved_regs): Remove prototypes.
1083 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1084 macros mentioned above.
1085
9773a94b
AC
10862002-06-15 Andrew Cagney <ac131313@redhat.com>
1087
1088 * cli/cli-decode.c (set_cmd_cfunc): Update.
1089 (set_cmd_sfunc): Update.
1090 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1091 (set_cmd_sfunc, set_cmd_cfunc): Update.
1092 * cli/cli-decode.h: Update.
1093
6e157172
MK
10942002-06-15 Mark Kettenis <kettenis@gnu.org>
1095
1096 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1097 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1098
7f19b9a2
AC
10992002-06-15 Andrew Cagney <ac131313@redhat.com>
1100
1101 * defs.h (auto_boolean): Declare enum.
1102 * command.h (cmd_auto_boolean): Delete enum.
1103 * mips-tdep.c (mask_address_var): Update.
1104 (mips_mask_address_p): Update.
1105 (show_mask_address): Update.
1106 * remote.c (struct packet_config): Update.
1107 (update_packet_config): Update.
1108 (show_packet_config_cmd): Update.
1109 (packet_ok): Update.
1110 (add_packet_config_cmd): Update.
1111 (_initialize_remote):
1112 * command.h: Update.
1113 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1114 (do_setshow_command): Update.
1115 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1116 * cli/cli-decode.h: Update.
1117
1cf88de5
MK
11182002-06-15 Mark Kettenis <kettenis@gnu.org>
1119
22ba8cf2
MK
1120 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1121 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1122 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1123 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1124 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1125 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1126
762c5349
MK
1127 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1128 list of DJGPP COFF targets.
1129
091198bb
MK
1130 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1131 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1132 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1133 (FP0_REGNUM): Remove define.
1134 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1135 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1136 (i386_register_virtual_size): Remove protoype.
1137 * i386-tdep.c (i386_register_virtual_size): Removed.
1138 (i386_extract_return_value, i386_store_return_value): Use
1139 FP0_REGNUM instead of NUM_FREGS to determine whether the
1140 floating-point registers are available.
1141 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1142 Adjust for removal of macros mentioned above.
1143
11442002-06-15 Mark Kettenis <kettenis@gnu.org>
1145
fcc9bf01
MK
1146 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1147 comments.
1148 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1149 Remove prototypes.
1150 (supply_gregset, fill_gregset): Remove use of register keyword and
1151 remove declaration for regmap. Use I386_NUM_GREGS instead of
1152 NUM_REGS and NUM_FREGS.
1153 (FPREGSET_FSAVE_OFFSET): Remove.
1154 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1155 NUM_FREGS to determine whether the floating-point registers are
1156 available.
1157
65e78234
MK
1158 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1159 gnu_store_registers): Replace usage of NUM_GREGS with
1160 I386_NUM_GREGS.
1161
98df6387
MK
1162 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1163 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1164 usage of NUM_GREGS with I386_NUM_GREGS.
1165
099a9414
MK
1166 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1167
57976e88
MK
1168 * i386bsd-nat.c: Include "i386-tdep.h".
1169 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1170 I386_NUM_GREGS.
1171
b335f4a6
MK
1172 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1173 and associated comment. They no longer make any sense, since we
1174 don't use this file anymore on Linux.
1175
1cf88de5
MK
1176 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1177 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1178 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1179 elements in these arrays.
1180 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1181 MAX_NUM_REGS.
1182
daa66587
MK
11832002-06-15 Mark Kettenis <kettenis@gnu.org>
1184
1185 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1186 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1187
26e9b323
AC
11882002-06-14 Andrew Cagney <cagney@redhat.com>
1189
1190 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1191 EXTRACT_RETURN_VALUE.
1192 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1193 EXTRACT_STRUCT_VALUE_ADDRESS.
1194 * gdbarch.h, gdbarch.c: Regenerate.
1195
1196 * values.c (value_being_returned): Handle
1197 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1198 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1199
1200 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1201 * arm-tdep.c (arm_gdbarch_init): Update.
1202 * avr-tdep.c (avr_gdbarch_init): Update.
1203 * cris-tdep.c (cris_gdbarch_init): Update.
1204 * d10v-tdep.c (d10v_gdbarch_init): Update.
1205 * ia64-tdep.c (ia64_gdbarch_init): Update.
1206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1208 * s390-tdep.c (s390_gdbarch_init): Update.
1209 * sh-tdep.c (sh_gdbarch_init): Update.
1210 * s390-tdep.c (s390_gdbarch_init): Update.
1211 * sparc-tdep.c (sparc_gdbarch_init): Update.
1212 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1213 * v850-tdep.c (v850_gdbarch_init): Update.
1214 * vax-tdep.c (vax_gdbarch_init): Update.
1215 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1217
1218 * config/arc/tm-arc.h: Update.
1219 * config/d30v/tm-d30v.h: Update.
1220 * config/fr30/tm-fr30.h: Update.
1221 * config/h8300/tm-h8300.h: Update.
1222 * config/h8500/tm-h8500.h: Update.
1223 * config/i386/tm-i386.h: Update.
1224 * config/i386/tm-ptx.h: Update.
1225 * config/i386/tm-symmetry.h: Update.
1226 * config/i960/tm-i960.h: Update.
1227 * config/m32r/tm-m32r.h: Update.
1228 * config/m68k/tm-delta68.h: Update.
1229 * config/m68k/tm-linux.h: Update.
1230 * config/m68k/tm-m68k.h: Update.
1231 * config/m88k/tm-m88k.h: Update.
1232 * config/mcore/tm-mcore.h: Update.
1233 * config/mips/tm-mips.h: Update.
1234 * config/mn10200/tm-mn10200.h: Update.
1235 * config/pa/tm-hppa.h: Update.
1236 * config/pa/tm-hppa64.h: Update.
1237 * config/sparc/tm-sp64.h: Update.
1238 * config/sparc/tm-sparc.h: Update.
1239 * config/sparc/tm-sparclet.h: Update.
1240 * config/z8k/tm-z8k.h: Update.
1241
5179e78f
AC
12422002-06-14 Andrew Cagney <cagney@redhat.com>
1243
1244 * Makefile.in (i386_linux_tdep_h): Define.
1245 (i386_tdep_h, i387_tdep_h): Define.
1246 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1247 $(i386_tdep_h) and $(i387_tdep_h).
1248 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1249
8201327c
MK
12502002-06-14 Mark Kettenis <kettenis@gnu.org>
1251
edf393ac
MK
1252 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1253 Already covered by the default.
1254
896fb97d
MK
1255 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1256 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1257 (i386_gdbarch_init): Initialize long_double_format and long_double
1258 bit.
1259
8201327c
MK
1260 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1261 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1262 Move these to ...
1263 * config/i386/i386sol2.mh: ... here.
1264 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1265 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1266 (SIGCONTEXT_PC_OFFSET): Remove define.
1267 (IN_SIGTRAMP): Remove define.
1268 * i386-sol2-tdep.c: New file.
1269
1270 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1271 * config/i386/tm-i386nw.h: Removed.
1272
1273 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1274 USE_STRUCT_CONVENTION): Remove defines.
1275 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1276 (get_longjmp_target): Remove prototype.
1277 (IN_SIGTRAMP): Remove define.
1278 (i386bsd_in_sigtramp): Remove prototype.
1279 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1280 function. Update comment accordingly
1281 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1282 (FRAME_SAVED_PC): Remove define.
1283 (i386bsd_frame_saved_pc): Remove prototype.
1284 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1285 GET_LONGJMP_TARGET): Remove defines.
1286 (get_longjmp_target): Remove prototype.
1287 (IN_SIGTRAMP): Remove define.
1288 (i386bsd_in_sigtramp): Remove prototype.
1289 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1290 function. Update comment accordingly
1291 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1292 (FRAME_SAVED_PC): Remove define.
1293 (i386bsd_frame_saved_pc): Remove prototype.
1294 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1295 Remove prototype.
1296 (USE_STRUCT_CONVENTION): Remove prototype.
1297 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1298 declaration.
1299 (_initialize_i386bsd_nat): Revise logic to determine some
1300 constants at compile time when compiling a native GDB. Warn if
1301 things don't match up with what we expect.
1302 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1303 Remove variables.
1304 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1305 to use date stored in `struct gdbarch_tdep'.
1306 (i386bsd_sigcontext_offset): Remove varaible.
1307 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1308 stored in `struct gdbarch_tdep'.
1309 (i386bsd_frame_saved_pc): Make static.
1310 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1311 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1312 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1313 i386fbsd4_sc_pc_offset): New variables.
1314 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1315 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1316 functions.
1317 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1318 functions.
1319 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1320 Modify the value of i386fbsd_sigtramp_start and
1321 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1322 i386fbsd_sigtramp_end.
1323 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1324 function.
1325
1326 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1327 define to i386-linux-tdep.h.
1328 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1329 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1330 defines.
1331 (i386_linux_register_name, i386_linux_register_byte,
1332 i386_linux_register_raw_size): Remove prototypes.
1333 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1334 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1335 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1336 TARGET_WRITE_PC): Remove defines.
1337 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1338 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1339 i386_linux_write_pc): Remove prototypes.
1340 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1341 (get_longjmp_target): Remove prototype.
1342 * i386-linux-tdep.h: New file.
1343 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1344 * i386-linux-tdep.c: Include "i386-tdep.h" and
1345 "i386-linux-tdep.h".
1346 (i386_linux_register_name, i386_linux_register_byte,
1347 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1348 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1349 Make static.
1350 (i386_linux_init_abi): New function.
1351 (_initialize_i386_linux_tdep): New function.
1352
1353 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1354 (i386_saved_pc_after_call): Remove prototype.
1355 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1356 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1357 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1358 (i386_register_name, i386_stab_reg_to_regnum,
1359 i386_dwarf_reg_to_regnum): Remove prototypes.
1360 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1361 SIZEOF_SSE_REGS): Remove defines.
1362 (REGISTER_BYTES): Remove define.
1363 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1364 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1365 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1366 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1367 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1368 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1369 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1370 (get_longjmp_target): Remove prototype.
1371 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1372 (sigtramp_saved_pc): Remove define.
1373 (i386v4_sigtramp_saved_pc): Remove prototype.
1374 * config/i386/tm-go32.h (FRAME_CHAIN,
1375 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1376 (i386go32_frame_saved_pc): Remove prototype.
1377 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1378 (get_longjmp_target): Remove prototype.
1379 * i386-tdep.h: Include "osabi.h".
1380 (enum i386_abi): Removed.
1381 (enum struct_return): New enum.
1382 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1383 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1384 sc_pc_offset members.
1385 (i386_gdbarch_register_os_abi): Remove prototype.
1386 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1387 I386_SSE_NUM_REGS): New defines.
1388 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1389 I386_SSE_SIZEOF_REGS): New defines.
1390 (i386_register_name, i386_register_byte, i386_register_raw_size):
1391 New prototypes.
1392 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1393 (i386bsd_sigtramp_saved_pc): New prototype.
1394 * i386-tdep.c: Don't include "elf-bfd.h".
1395 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1396 i386_frame_chain, i386_saved_pc_after_call): Make static.
1397 (i386_frame_saved_pc): Rewrite to call architecture dependent
1398 function to deal with signal handlers. Make static.
1399 (i386go32_frame_saved_pc): Removed.
1400 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1401 Removed.
1402 (i386_get_longjmp_target): New function.
1403 (default_struct_convention, pcc_struct_convention,
1404 reg_struct_convention, valid_conventions, struct_convention): New
1405 variables.
1406 (i386_use_struct_convention): New function.
1407 (i386v4_sigtramp_saved_pc): Renamed to
1408 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1409 (i386_pc_in_sigtramp): New function.
1410 (i386_abi_names): Removed.
1411 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1412 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1413 Removed.
1414 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1415 i386_gdbarch_register_os_abi): Removed.
1416 (struct i386_abi_handler): Removed.
1417 (i386_abi_handler_list): Removed.
1418 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1419 functions.
1420 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1421 i386_nw_init_abi): New functions.
1422 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1423 Use set_gdbarch_xxx() calls instead of relying on macros for a
1424 number of calls.
1425 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1426 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1427 Register the various architecture variants defined in this file.
1428
ad2f7632
DJ
14292002-06-14 Daniel Jacobowitz <drow@mvista.com>
1430
1431 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1432 (struct main_type): Remove arg_types member. Update comments for
1433 struct field.
1434 (TYPE_ARG_TYPES): Remove.
1435 (TYPE_FN_FIELD_ARGS): Update.
1436 (smash_to_method_type): Update prototype.
1437
1438 * c-typeprint.c (cp_type_print_method_args): Take method type
1439 instead of argument list. Use new argument layout. Simplify.
1440 (c_type_print_args): Use new argument layout. Simplify.
1441 (c_type_print_base): Update call to cp_type_print_method_args.
1442 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1443 argument; use die->type instead. Update call to
1444 smash_to_method_type.
1445 (read_structure_scope): Update call to dwarf2_add_member_fn.
1446 * gdbtypes.c (allocate_stub_method): Update comment.
1447 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1448 Use new argument layout.
1449 (check_stub_method): Use new argument layout. Don't count
1450 void as an argument.
1451 (print_arg_types): Update comments. Use new argument layout.
1452 (recursive_dump_type): Don't print arg_types member.
1453 * hpread.c (hpread_read_struct_type): Use new argument layout.
1454 (fixup_class_method_type): Likewise.
1455 (hpread_type_lookup): Likewise.
1456 * stabsread.c (read_type): Update calls to read_args and
1457 smash_to_method_type.
1458 (read_args): Use new argument layout. Simplify.
1459 * valops.c (typecmp): Use new argument layout. Update parameters
1460 and comments. Simplify.
1461 (hand_function_call): Use new argument layout.
1462 (search_struct_method): Update call to typecmp.
1463 (find_overload_match): Use new argument layout.
1464
6da02953
DJ
14652002-06-13 Daniel Jacobowitz <drow@mvista.com>
1466
1467 * NEWS: Mention multithreaded debug support for gdbserver.
1468
519b2366
DJ
14692002-06-13 Daniel Jacobowitz <drow@mvista.com>
1470
1471 * MAINTAINERS: Mention NEWS.
1472
a7f48742
DJ
14732002-06-13 Daniel Jacobowitz <drow@mvista.com>
1474
1475 * gdbserver/regcache.c: Add comment.
1476
6c0d6680
DJ
14772002-06-13 Daniel Jacobowitz <drow@mvista.com>
1478
1479 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1480 (struct mips_objfile_private, compare_pdr_entries): New.
1481 (non_heuristic_proc_desc): Read the ".pdr" section if it
1482 is present.
1483
6529d2dd
AC
14842002-06-12 Andrew Cagney <ac131313@redhat.com>
1485
1486 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1487 (arm_debug): New static variable.
1488 (_initialize_arm_tdep): Add ``set debug arm'' command.
1489
26216b98
AC
14902002-06-12 Andrew Cagney <ac131313@redhat.com>
1491
1492 * Makefile.in (sim_arm_h): Define.
1493 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1494 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1495 (arm_register_sim_regno): New function, map an internal REGNUM
1496 onto a simulator register number.
1497 (arm_gdbarch_init): Set register_sim_regno.
1498
814b3ba0
AH
14992002-06-09 Aldy Hernandez <aldyh@redhat.com>
1500
1501 * MAINTAINERS: Add self.
1502
475b0867
JB
15032002-06-11 Jim Blandy <jimb@redhat.com>
1504
919d772c
JB
1505 * source.c (source_info): Mention whether the symtab has
1506 information about preprocessor macros.
1507
475b0867
JB
1508 Call the command `info macro', not `show macro'.
1509 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1510 Fix error message.
1511 (_initialize_macrocmd): Register `info_macro_command' in
1512 `infolist', not `showlist'.
1513
9e364162
DJ
15142002-06-11 Daniel Jacobowitz <drow@mvista.com>
1515
1516 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1517 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1518 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1519 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1520 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1521 unconditionally.
1522 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1523 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1524 (_initialize_mips_tdep): Remove dead code.
1525 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1526 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1527 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1528 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1529 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1530 MIPS_LAST_FP_ARG_REGNUM): Remove.
1531
15322002-06-11 Daniel Jacobowitz <drow@mvista.com>
1533
1534 * gdbserver/thread-db.c: New file.
1535 * gdbserver/proc-service.c: New file.
1536 * gdbserver/acinclude.m4: New file.
1537 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1538 proc-service.o, and thread-db.o.
1539 (linux-low.o): Add USE_THREAD_DB.
1540 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1541 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1542 * gdbserver/aclocal.m4: Regenerated.
1543 * gdbserver/config.in: Regenerated.
1544 * gdbserver/configure: Regenerated.
1545 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1546 thread_db.h, and linux/elf.h headrs.
1547 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1548 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1549 Check for -lthread_db and thread support.
1550 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1551 PowerPC, and SuperH.
1552 * gdbserver/i387-fp.c: Constify arguments.
1553 * gdbserver/i387-fp.h: Likewise.
1554 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1555 `struct inferior_info'. Remove PID member. Use generic inferior
1556 list header. All uses updated.
1557 (inferiors, signal_pid): Removed.
1558 (all_threads): New variable.
1559 (get_thread): Define.
1560 (add_inferior_to_list): New function.
1561 (for_each_inferior): New function.
1562 (change_inferior_id): New function.
1563 (add_inferior): Removed.
1564 (remove_inferior): New function.
1565 (add_thread): New function.
1566 (free_one_thread): New function.
1567 (remove_thread): New function.
1568 (clear_inferiors): Use for_each_inferior and free_one_thread.
1569 (find_inferior): New function.
1570 (find_inferior_id): New function.
1571 (inferior_target_data): Update argument type.
1572 (set_inferior_target_data): Likewise.
1573 (inferior_regcache_data): Likewise.
1574 (set_inferior_regcache_data): Likewise.
1575 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1576 (all_processes, stopping_threads, using_thrads)
1577 (struct pending_signals, debug_threads, pid_of): New.
1578 (inferior_pid): Replace with macro.
1579 (struct inferior_linux_data): Remove.
1580 (get_stop_pc, add_process): New functions.
1581 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1582 Use add_process and add_thread.
1583 (linux_attach_lwp): New function, based on old linux_attach. Use
1584 add_process and add_thread. Set stop_expected for new threads.
1585 (linux_attach): New function.
1586 (linux_kill_one_process): New function.
1587 (linux_kill): Kill all LWPs.
1588 (linux_thread_alive): Use find_inferior_id.
1589 (check_removed_breakpoints, status_pending_p): New functions.
1590 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1591 Update. Use WNOHANG. Wait for cloned processes also. Update process
1592 struct for the found process.
1593 (linux_wait_for_event): New function.
1594 (linux_wait): Use it. Support LWPs.
1595 (send_sigstop, wait_for_sigstop, stop_all_processes)
1596 (linux_resume_one_process, linux_continue_one_process): New functions.
1597 (linux_resume): Support LWPs.
1598 (REGISTER_RAW_SIZE): Remove.
1599 (fetch_register): Use register_size instead. Call supply_register.
1600 (usr_store_inferior_registers): Likewise. Call collect_register.
1601 Fix recursive case.
1602 (regsets_fetch_inferior_registers): Improve error message.
1603 (regsets_store_inferior_registers): Add debugging.
1604 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1605 (unstopped_p, linux_signal_pid): New functions.
1606 (linux_target_ops): Add linux_signal_pid.
1607 (linux_init_signals): New function.
1608 (initialize_low): Call it. Initialize using_threads.
1609 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1610 flag.
1611 (get_regcache): Fetch registers lazily. Add fetch argument
1612 and update all callers.
1613 (regcache_invalidate_one, regcache_invalidate): New
1614 functions.
1615 (new_register_cache): Renamed from create_register_cache.
1616 Return the new regcache.
1617 (free_register_cache): Change argument to a void *.
1618 (registers_to_string, registers_from_string): Call get_regcache
1619 with fetch flag set.
1620 (register_data): Make static. Pass fetch flag to get_regcache.
1621 (supply_register): Call get_regcache with fetch flag clear.
1622 (collect_register): Call get_regcache with fetch flag set.
1623 (collect_register_as_string): New function.
1624 * gdbserver/regcache.h: Update.
1625 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1626 stderr.
1627 Handle input interrupts while waiting for an ACK.
1628 (input_interrupt): Use signal_pid method.
1629 (getpkt): Flush after debug output and use stderr.
1630 (outreg): Use collect_register_as_string.
1631 (new_thread_notify, dead_thread_notify): New functions.
1632 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1633 and general_thread.
1634 (look_up_one_symbol): Flush after debug output.
1635 * gdbserver/server.c (step_thread, server_waiting): New variables.
1636 (start_inferior): Don't use signal_pid. Update call to mywait.
1637 (attach_inferior): Update call to mywait.
1638 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1639 (main): Don't fetch/store registers explicitly. Use
1640 set_desired_inferior. Support proposed ``Hs'' packet. Update
1641 calls to mywait.
1642 * gdbserver/server.h: Update.
1643 (struct inferior_list, struct_inferior_list_entry): New.
1644 * gdbserver/target.c (set_desired_inferior): New.
1645 (write_inferior_memory): Constify.
1646 (mywait): New function.
1647 * gdbserver/target.h: Update.
1648 (struct target_ops): New signal_pid method.
1649 (mywait): Removed macro, added prototype.
1650
1651 * gdbserver/linux-low.h (regset_func): Removed.
1652 (regset_fill_func, regset_store_func): New.
1653 (enum regset_type): New.
1654 (struct regset_info): Add type field. Use new operation types.
1655 (struct linux_target_ops): stop_pc renamed to get_pc.
1656 Add decr_pc_after_break and breakpoint_at.
1657 (get_process, get_thread_proess, get_process_thread)
1658 (strut process_info, all_processes, linux_attach_lwp)
1659 (thread_db_init): New.
1660
1661 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1662 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1663 (the_low_target): Add new members.
1664 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1665 (i386_store_fpxregset): Constify.
1666 (target_regsets): Add new kind identifier.
1667 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1668 (i386_set_pc): Add debugging.
1669 (i386_breakpoint_at): New function.
1670 (the_low_target): Add new members.
1671 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1672 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1673 (mips_breakpoint_at): New.
1674 (the_low_target): Add new members.
1675 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1676 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1677 (the_low_target): Add new members.
1678 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1679 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1680 (the_low_target): Add new members.
1681 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1682 identifier.
1683
23aa4c72
ML
16842002-06-11 Michal Ludvig <mludvig@suse.cz>
1685
1686 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1687 (unwind_tmp_obstack_free, parse_frame_info)
1688 (update_context, cfi_read_fp, cfi_write_fp)
1689 (cfi_frame_chain, cfi_init_extra_frame_info)
1690 (cfi_virtual_frame_pointer): Use the above function.
264d1763 1691 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 1692
70eb15a4
CV
16932002-06-11 Corinna Vinschen <vinschen@redhat.com>
1694
1695 * v850-tdep.c (v850_type_is_scalar): New function.
1696 (v850_use_struct_convention): Match current gcc implementation
1697 as close as possible.
1698 (v850_push_arguments): Fix stack_offset handling. Don't write
1699 struct_addr into register. This is done by v850_store_struct_return.
1700 (v850_extract_return_value): Care for structs.
1701 (v850_store_return_value): Ditto.
1702 (v850_store_struct_return): Actually write address.
1703
482a4d06
ML
17042002-06-11 Michal Ludvig <mludvig@suse.cz>
1705
1706 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1707 without debug information too.
1708
d855c300
AC
17092002-06-10 Andrew Cagney <ac131313@redhat.com>
1710
1711 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1712 Make multi-arch pure.
1713 * gdbarch.h, gdbarch.c: Re-generate.
1714 * arm-tdep.c (arm_print_float_info): Update.
1715 * arch-utils.h (default_print_float_info): Update.
1716 * arch-utils.c (default_print_float_info): Update.
1717 * infcmd.c (float_info): Update call.
1718
dd12a101
AC
17192002-06-10 Andrew Cagney <ac131313@redhat.com>
1720
1721 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1722 the front of the initialize list.
1723
101dcfbe
AC
17242002-06-10 Andrew Cagney <ac131313@redhat.com>
1725
1726 * infrun.c (struct inferior_status): Replace fields
1727 selected_frame_address and selected_level with field
1728 selected_frame_id.
1729 (save_inferior_status): Update. Use get_frame_id.
1730 (struct restore_selected_frame_args): Delete.
1731 (restore_selected_frame): Update. Use frame_find_by_id.
1732 (restore_inferior_status): Update.
1733
1734 * breakpoint.h (struct breakpoint): Change type of
1735 watchpoint_frame to frame_id.
1736 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1737 call to get_current_frame.
1738 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1739 get_current_frame.
1740 (watchpoint_check): Use frame_find_by_id.
1741
1742 * frame.h (record_selected_frame): Delete declaration.
1743 * stack.c (record_selected_frame): Delete function.
1744
1745 * frame.h (struct frame_id): Define.
1746 (get_frame_id): Declare.
1747 (frame_find_by_id): Declare.
1748 * frame.c (frame_find_by_id): New function.
1749 (get_frame_id): New function.
1750
304270b6
AV
17512002-06-10 Andrey Volkov <avolkov@transas.com>
1752
1753 * ser-e7kpc.c: Fix duplicated define and call of
1754 _initialize_ser_e7000pc
1755
2f2cf184
DJ
17562002-06-09 Daniel Jacobowitz <drow@mvista.com>
1757
1758 * signals/signals.c (target_signal_from_host): Fix #ifdef
1759 SIGRTMIN case.
1760 (do_target_signal_to_host): Likewise.
1761
caaa3122
DJ
17622002-06-09 Daniel Jacobowitz <drow@mvista.com>
1763
1764 * mips-tdep.c (mips_find_abi_section): New function.
1765 (mips_gdbarch_init): Call it.
1766
6ac5df3a
MK
17672002-06-09 Mark Kettenis <kettenis@gnu.org>
1768
1769 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1770 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1771 after Andrew's 2002-06-08 gdbarch change.
1772
82ea117a
MK
17732002-06-09 Mark Kettenis <kettenis@gnu.org>
1774
1775 * i386-linux-nat.c (suppy_gregset): Don't supply
1776 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1777 register cache.
1778 (fill_gregset): Don't fetch it under the same circumstances.
1779
3c25f8c7
AC
17802002-06-09 Andrew Cagney <cagney@redhat.com>
1781
1782 * Makefile.in (callback_h): Define.
1783 (remote_sim_h): Update path to remote-sim.h.
1784 (remote-rdp.o): Add $(callback_h).
1785 (remote-sim.o): Use $(callback_h).
1786 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1787 * remote-rdp.c: Include "gdb/callback.h".
1788
1029b7fa
MK
17892002-06-09 Mark Kettenis <kettenis@gnu.org>
1790
1791 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1792 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1793
616675d3
AC
17942002-06-08 Andrew Cagney <ac131313@redhat.com>
1795
a3efda28
AC
1796 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1797 * rdi-share/serpardr.c: Ditto.
1798 * rdi-share/unixcomm.c: Ditto.
1799 * rdi-share/serdrv.c: Ditto.
1800 * rdi-share/hostchan.h: Ditto.
1801 * rdi-share/hostchan.c: Ditto.
1802 * rdi-share/host.h: Ditto.
1803 * rdi-share/devsw.c: Ditto.
1804
c5f10366
AC
1805 * objfiles.h: Change type of obj_private to void pointer.
1806 * pa64solib.c: Update copyright. Don't include "assert.h", use
1807 strcmp instead of STREQ, use LONGEST, do not use PTR
1808 * somsolib.c: Ditto.
1809
616675d3
AC
1810 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1811 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1812 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1813
e4b415d9
AC
18142002-06-08 Andrew Cagney <ac131313@redhat.com>
1815
1816 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1817 (default_get_saved_register): Delete function.
1818 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1819 generic_unwind_get_saved_register.
1820 * gdbarch.h, gdbarch.c: Re-generate.
1821
ca0d0b52
AC
18222002-06-08 Andrew Cagney <ac131313@redhat.com>
1823
1824 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1825 generic_func_frame_chain_valid.
1826 * gdbarch.h, gdbarch.c: Re-generate.
1827 * blockframe.c (generic_func_frame_chain_valid): Only check
1828 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1829 passing FP to PC_IN_CALL_DUMMY.
1830 Fix PR gdb/360.
1831
76860b5f
AC
18322002-06-08 Andrew Cagney <ac131313@redhat.com>
1833
1834 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1835 (register_gdbarch_data): Initialize init_p.
1836 (gdbarch_data): Initialize data pointer using the init function.
1837 (init_gdbarch_data): Delete function.
1838 (gdbarch_update_p): Update.
1839 (initialize_non_multiarch): Update.
1840 (struct gdbarch): Add field initialized_p.
1841 * gdbarch.h, gdbarch.c: Re-generate.
1842
8dda9770
ML
18432002-06-07 Michal Ludvig <mludvig@suse.cz>
1844
1845 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1846 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1847 better do the things actually here.
1848 * x86-64-tdep.c (x86_64_register_name2nr): New.
1849 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1850 (x86_64_gdbarch_init): Respect the above change.
1851 * x86-64-tdep.h (x86_64_register_name2nr)
1852 (x86_64_register_nr2name): Add prototypes.
1853 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1854
3d79a47c
MS
18552002-06-06 Michael Snyder <msnyder@redhat.com>
1856
7bd91a28
MS
1857 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1858 Delete extra braces and re-indent.
1859 (d10v_store_return_value): Char return values
3d79a47c
MS
1860 must be shifted over by one byte in R0.
1861 (d10v_extract_return_value): Delete extra braces, re-indent.
1862
095a4c96
EZ
18632002-06-06 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1866 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1867 (d10v_integer_to_address): Rewrite.
1868 (d10v_frame_init_saved_regs): When reading fp and sp registers use
1869 the d10v specific functions which take care of converting to the
1870 correct space.
1871
e8a77ca4
EZ
18722002-06-06 Elena Zannoni <ezannoni@redhat.com>
1873
1874 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1875 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1876
4f2e4a4f
AC
18772002-06-02 Andrew Cagney <ac131313@redhat.com>
1878
1879 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1880 includes.
1881 * config/tm-linux.h: Ditto.
1882 * config/alpha/tm-alphalinux.h: Ditto.
1883 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1884 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1885 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1886 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1887 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1888 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1889 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1890 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1891 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1892 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1893 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1894 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1895 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1896 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1897 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1898 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1899 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1900 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1901 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1902 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1903 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1904 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1905 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1906 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1907 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1908 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1909 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1910 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1911 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1912 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1913 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1914 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1915 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1916 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1917 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1918 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1919 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1920
ae2ab2ce
AS
19212002-05-04 Aidan Skinner <aidan@velvet.net>
1922
1923 * ada-exp.tab.c: New file
1924 * ada-exp.y: New file
1925 * ada-lang.c: New file
1926 * ada-lang.h: New file
1927 * ada-lex.c: New file
1928 * ada-lex.l: New file
1929 * ada-tasks.c: New file
1930 * ada-typeprint.c: New file
1931 * ada-valprint.c: New file
1932
0ddd0135
JT
19332002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1934
1935 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1936 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1937
750fbacc
JT
19382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1939
1940 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1941 insetead of ppc-linux-tdep.o.
1942 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1943 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1944
df94e18a
AC
19452002-06-02 Andrew Cagney <ac131313@redhat.com>
1946
1947 2002-05-07 Christian Groessler <chris@groessler.org>
1948 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1949 bit register contents for little endian hosts.
1950
1a38ab75
AC
19512002-06-01 Andrew Cagney <ac131313@redhat.com>
1952
1953 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1954 any maintainer.
1955
8b1632ac
AC
19562002-06-01 Andrew Cagney <ac131313@redhat.com>
1957
1958 * gdbarch.h: Regenerate.
1959
627054c8
AC
19602002-06-01 Andrew Cagney <ac131313@redhat.com>
1961
1962 * MAINTAINERS: Add everyone to write-after-approval list.
1963
4f460812
AC
19642002-06-01 Andrew Cagney <ac131313@redhat.com>
1965
1966 * stack.c (frame_info): Use frame_register_unwind instead of
1967 saved_regs. Mention when the SP is on the stack or in a register.
1968
1969 * frame.h (frame_register_unwind_ftype): Define. Document.
1970 (struct frame_info): Add field register_unwind and
1971 register_unwind_cache.
1972 (frame_register_unwind): Declare.
1973 (generic_unwind_get_saved_register): Declare.
1974
1975 * frame.c (frame_register_unwind): New function.
1976 (generic_unwind_get_saved_register): New function.
1977
1978 * blockframe.c (generic_call_dummy_register_unwind): New function.
1979 (frame_saved_regs_register_unwind): New function.
1980 (set_unwind_by_pc): New function.
1981 (create_new_frame): New function.
1982 (get_prev_frame): New function.
1983
de888f76
AC
19842002-05-30 Andrew Cagney <ac131313@redhat.com>
1985
1986 * a29k-share/: Delete directory.
1987 * remote-vx29k.c: Delete file.
1988
2f2c3626
JT
19892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1990
1991 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1992 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1993
9ce5c36a
JT
19942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1995
1996 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1997 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1998 (sparc64nbsd-nat.o)
1999 (sparcnbsd-nat.o)
2000 (sparcnbsd-tdep.o): New dependency lists.
2001 * NEWS: Note new UltraSPARC NetBSD native configuration.
2002 * configure.host (sparc64-*-netbsd*): New host.
2003 * configure.tgt (sparc-*-netbsdelf*)
2004 (sparc-*-netbsd*): Set gdb_target to nbsd.
2005 (sparc64-*-netbsd*): New target.
2006 * sparc64nbsd-nat.c: New file.
2007 * sparcnbsd-nat.c: New file.
2008 * sparcnbsd-tdep.c: New file.
2009 * sparcnbsd-tdep.h: New file.
2010 * config/sparc/nbsd.mt: New file.
2011 * config/sparc/nbsd64.mh: New file.
2012 * config/sparc/nbsd64.mt: New file.
2013 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2014 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2015 (HOST_IPC): Remove.
2016 * config/sparc/nbsdaout.mt: Remove.
2017 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2018 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2019 (HOST_IPC): Remove.
2020 * config/sparc/nbsdelf.mt: Remove.
2021 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2022 sparc-nat.c compatiblity defines.
2023 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2024 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2025 * config/sparc/tm-nbsd64.h: New file.
2026 * config/sparc/tm-nbsdaout.h: Remove.
2027 * config/sparc/xm-nbsd.h: Remove.
2028
ef3cf062
JT
20292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2030
2031 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2032 * sparc-tdep.c: Include osabi.h.
2033 (gdbarch_tdep): Add osabi member.
2034 (_initialize_sparc_tdep): Use gdbarch_register.
2035 (sparc_gdbarch_init): Use generic OS ABI framework.
2036 (sparc_dump_tdep): New function.
2037
ee8ff470
KB
20382002-05-30 Kevin Buettner <kevinb@redhat.com>
2039
2040 * corefile.c (do_captured_read_memory_integer): Return non-zero
2041 result.
2042 (safe_read_memory_integer): Copy result of memory read when
2043 status is non-zero. Also, add comments.
2044
7b112f9c
JT
20452002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2046
2047 * Makefile.in (ppc_tdep_h): Define.
2048 (ppc-linux-nat.o)
2049 (ppc-linux-tdep.o)
2050 (rs6000-tdep.o): Use $(ppc_tdep_h).
2051 (ppc-sysv-tdep.o)
2052 (ppcnbsd-nat.o)
2053 (ppcnbsd-tdep.o): New dependency lists.
2054 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
2055 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2056 (ppc_linux_init_abi): New functions.
7b112f9c
JT
2057 (ppc_sysv_abi_broken_use_struct_convention)
2058 (ppc_sysv_abi_use_struct_convention)
2059 (ppc_sysv_abi_push_arguments): Move to...
2060 * ppc-sysv-tdep.c: ...here.
2061 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2062 * rs6000-tdep.c (process_note_abi_tag_sections)
2063 (get_elfosabi): Remove.
2064 (rs6000_gdbarch_init): Use generic OS ABI framework.
2065 (rs6000_dump_tdep): New function.
2066 (_initialize_rs6000_tdep): Use gdbarch_register.
2067 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2068 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2069 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2070 of ppc-linux-tdep.o.
2071 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2072 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2073 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2074 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2075 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2076 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2077
480dd42a
JB
20782002-05-29 Jim Blandy <jimb@redhat.com>
2079
2080 * macroscope.c (default_macro_scope): Put `void' in empty argument
2081 list.
2082
4182591f
AC
20832002-05-29 Andrew Cagney <ac131313@redhat.com>
2084
2085 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2086 * arch-utils.c: Include "sim-regno.h".
2087 * gdbarch.sh: Don't include "sim-regno.h".
2088 * gdbarch.h, gdbarch.c: Regenerate.
2089 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2090 here.
2091 * arch-utils.h (legacy_register_sim_regno): To here.
2092 * remote-sim.c (legacy_register_sim_regno): Move function from
2093 here.
2094 * arch-utils.c (legacy_register_sim_regno): To here.
2095
8238d0bf
AC
20962002-05-28 Andrew Cagney <ac131313@redhat.com>
2097
2098 * sim-regno.h: New file.
2099 * Makefile.in (sim_regno_h): Define.
2100 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2101 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2102 (legacy_register_sim_regno): New function.
2103 (one2one_register_sim_regno): New function.
2104 (gdbsim_fetch_register): Rewrite.
2105 (gdbsim_store_register): Only store a register when
2106 REGISTER_SIM_REGNO is valid.
2107 * d10v-tdep.c: Include "sim-regno.h".
2108 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2109 (d10v_ts3_register_sim_regno): Ditto.
2110 * gdbarch.sh: Include "sim-regno.h".
2111 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2112 * gdbarch.h, gdbarch.c: Regenerate.
2113 * arch-utils.h (default_register_sim_regno): Delete declaration.
2114 * arch-utils.c (default_register_sim_regno): Delete function.
2115
485721b1
JT
21162002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2117
2118 * ppcnbsd-nat.c: Rewrite.
2119 * ppcnbsd-tdep.c: New file.
2120 * ppcnbsd-tdep.h: New file.
2121 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2122 solib.o, and solib-svr4.o.
2123 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2124 nbsd-tdep.o, and corelow.o.
2125
697f244d
AC
21262002-05-28 Andrew Cagney <ac131313@redhat.com>
2127
2128 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2129 `tr' and `sed'. Mention that `broken' targets are not expected to
2130 build.
2131
f08caad1 21322002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
2133
2134 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2135 Let PC point right after the prologue before looking up symbols.
2136
3139facc
MH
21372002-05-27 Martin M. Hunt <hunt@redhat.com>
2138
2139 * i386-tdep.c (i386_register_virtual_type): Return
2140 builtin_type_vec128i for SSE registers.
2141
2142 * gdbtypes.h (builtin_type_vec128i): Declare.
2143
2144 * gdbtypes.c (build_builtin_type_vec128i): New function.
2145 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2146 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2147 (build_gdbtypes): Initialize new builtin vector types.
2148 (_initialize_gdbtypes): Register new vector types with gdbarch.
2149
6e3ba3b8
JT
21502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2151
2152 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2153 since it has been multi-arch'd.
2154 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2155 Move Alpha and VAX multi-arch news entries to same section
2156 as other multi-arch news.
2157
93d5585d
JT
21582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2159
2160 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2161 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2162 static. Rename some register numbers to put them in ns32k-tdep
2163 private namespace.
2164 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2165 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2166 functions.
2167 (_initialize_ns32k_tdep): Use gdbarch_register.
2168 * ns32k-tdep.h: New file.
2169 * ns32knbsd-tdep.c: New file.
2170 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2171 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2172 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2173 REGISTER_BYTES, REGISTER_BYTE): Remove.
2174 * config/ns32k/tm-ns32k.h: New file.
2175 * config/ns32k/tm-umax.h: Remove.
2176
efb2c70e
JT
21772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2178
2179 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2180 ns32k_store_struct_return, ns32k_extract_return_value,
2181 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2182 functions.
2183 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2184 ns32k_saved_pc_after_call.
2185 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2186 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2187 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2188 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2189 ns32k_extract_struct_value_address.
2190
7bcc927b
JT
21912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2192
2193 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2194 ns32k_fix_call_dummy): New.
2195 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2196 ns32k_call_dummy_words.
2197 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2198 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2199 CALL_DUMMY_NARGS): Remove.
2200 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2201
78f9d765
JT
22022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2203
2204 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2205 ns32k_frame_saved_pc, ns32k_frame_args_address,
2206 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2207 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2208 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2209 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2210 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2211 (BREAKPOINT): Remove..
2212 (FRAME_CHAIN): Define as ns32k_frame_chain.
2213 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2214 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2215 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2216 (FRAME_FIND_SAVED_REGS): Remove.
2217 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2218 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2219 (POP_FRAME): Define as ns32k_pop_frame.
2220
f2c762e0
JT
22212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2222
2223 * ns32k-tdep.c (ns32k_register_byte_32082,
2224 ns32k_register_byte_32382, ns32k_register_raw_size,
2225 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2226 functions.
2227 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2228 ns32k_register_byte_32382.
2229 * config/ns32k/tm-umax.h: Update copyright years.
2230 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2231 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2232 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2233 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2234 (ns32k_get_enter_addr): Fix prototype.
2235
af137673
JT
22362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2237
2238 * ns32k-tdep.c: Update copyright years.
2239 (ns32k_register_name_32082): New function.
2240 (ns32k_register_name_32382): Ditto.
2241 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2242 (REGISTER_NAME): Define as ns32k_register_name_32382.
2243 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2244 (REGISTER_NAME): Define as ns32k_register_name_32082.
2245
a8bc7b56
JB
22462002-05-24 Jim Blandy <jimb@redhat.com>
2247
2248 * dwarf2read.c (free_line_header): Use xfree, not free.
2249
83a45910
JT
22502002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2251
2252 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2253 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2254
0db71247
AC
22552002-05-23 Andrew Cagney <ac131313@redhat.com>
2256
2257 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2258
b9e5e4dd
AC
22592002-05-23 Andrew Cagney <ac131313@redhat.com>
2260
2261 From Ross Alexander at NEC Europe:
2262 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2263
de530e84
MS
22642002-05-23 Michael Snyder <msnyder@redhat.com>
2265
2266 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2267 for input, rather than parse_and_eval_address.
2268
b91b96f4
AC
22692002-05-23 Andrew Cagney <ac131313@redhat.com>
2270
2271 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2272 * Makefile.in (sim_d10v_h): Update definition.
2273
8b279e7a
AC
22742002-05-24 Andrew Cagney <cagney@redhat.com>
2275
2276 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2277 change `2002-05-22 Michael Snyder' below.
2278 (d10v_push_arguments): Ditto.
2279 (d10v_extract_return_value): Ditto.
2280
0a3d0425
JB
22812002-05-23 Jim Blandy <jimb@redhat.com>
2282
2283 * macrotab.c (check_for_redefinition): Don't complain if the new
2284 definition is the same as the previous one. Take more arguments
2285 to allow the comparison.
2286 (macro_define_object, macro_define_function): Pass more arguments
2287 to check_for_redefinition.
2288
78eac43e
MS
22892002-05-22 Michael Snyder <msnyder@redhat.com>
2290
2291 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2292 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2293 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2294 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2295 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2296 Add a temp variable to save a call (and a memory read).
2297 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2298 if possible (so that PC_IN_CALL_DUMMY will work).
2299
9bc1edb8
CV
23002002-05-22 Corinna Vinschen <vinschen@redhat.com>
2301
2302 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2303
005ef3d2
ML
23042002-05-22 Michal Ludvig <mludvig@suse.cz>
2305
2306 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2307 fde->cie_ptr.
2308 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2309 (dwarf2_build_frame_info): Add offset to fde->initial_location
2310 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
2311 (execute_stack_op): Change type of 'result' from ULONGEST to
2312 CORE_ADDR.
005ef3d2 2313
fcf4f891
JT
23142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2315
2316 * config/alpha/tm-nbsd.h: Include solib.h.
2317
cfef91e4
JT
23182002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2319
2320 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2321 assumptions about the host's byte order.
2322
9964235a
JT
23232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2324
2325 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2326 to dependency list.
2327 * alphanbsd-tdep.c: Include solib-svr4.h.
2328 * shnbsd-tdep.c: Ditto.
2329
9eeef8ef
JT
23302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2331
2332 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2333 nbsd-tdep.h to dependency list.
2334 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2335 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2336 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2337 nbsdaout.mh and nbsdelf.mh consistently.
2338 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2339 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2340 nbsdaout.mt and nbsdelf.mh consistently.
2341 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2342 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2343 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2344 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2345 a.out shared library stuff from here...
2346 * config/nm-nbsdaout.h: ...to here.
2347 * config/tm-nbsd.h: Remove.
2348 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2349 * config/arm/nbsd.mh: Remove.
2350 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2351 nbsd-tdep.o.
2352 * config/arm/nbsdaout.mh: New file.
2353 * config/arm/nbsdelf.mh: New file.
2354 * config/arm/nm-nbsdaout.h: New file.
2355 * config/i386/nbsd.mh: Remove.
2356 * config/i386/nbsd.mt: Remove.
2357 * config/i386/nbsdaout.mh: New file.
2358 * config/i386/nbsdaout.mt: New file.
2359 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2360 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2361 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2362 i386_register_u_addr): Remove.
2363 * config/i386/nm-nbsdaout.h: New file.
2364 * config/i386/nm-nbsdelf.h: Remove.
2365 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2366 (USE_STRUCT_CONVENTION): Remove.
2367 * config/i386/tm-nbsdaout.h: New file.
2368 * config/i386/tm-nbsdelf.h: Remove.
2369 * config/m68k/nbsd.mh: Remove.
2370 * config/m68k/nbsd.mt: Remove.
2371 * config/m68k/nbsdaout.mh: New file.
2372 * config/m68k/nbsdaout.mt: New file.
2373 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2374 * config/m68k/nm-nbsdaout.h: New file.
2375 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2376 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2377 * config/ns32k/nbsd.mh: Remove.
2378 * config/ns32k/nbsd.mt: Remove.
2379 * config/ns32k/nbsdaout.mh: New file.
2380 * config/ns32k/nbsdaout.mt: New file.
2381 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2382 * config/ns32k/nm-nbsdaout.h: New file.
2383 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2384 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2385 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2386 (SVR4_SHARED_LIBS): Remove.
2387 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2388 * config/sparc/nbsd.mh: Remove.
2389 * config/sparc/nbsd.mt: Remove.
2390 * config/sparc/nbsdaout.mh: New file.
2391 * config/sparc/nbsdaout.mt: New file.
2392 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2393 * config/sparc/nbsdelf.mt: New file.
2394 * config/sparc/nm-nbsdaout.h: New file.
2395 * config/sparc/nm-nbsdelf.h: Remove.
2396 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2397 * config/sparc/tm-nbsdaout.h: New file.
2398
257ce470
JT
23992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2400
2401 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2402 mipsnbsd-tdep.c
2403 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2404
76a6d5fe
JT
24052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2406
2407 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2408 shnbsd-nat.c.
2409 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2410
45888261
JT
24112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2412
2413 * NEWS: Note new MIPS NetBSD native configuration.
2414 * configure.host (mips*-*-netbsd*): New host.
2415 * configure.tgt (mips*-*-netbsd*): New target.
2416 * mipsnbsd-nat.c: New file.
2417 * mipsnbsd-tdep.c: New file.
2418 * mipsnbsd-tdep.h: New file.
2419 * config/mips/nbsd.mh: New file.
2420 * config/mips/nbsd.mt: New file.
2421 * config/mips/nm-nbsd.h: New file.
2422 * config/mips/tm-nbsd.h: New file.
2423
70f80edf
JT
24242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2425
2426 * Makefile.in (SFILES): Add osabi.c.
2427 (COMMON_OBS): Add osabi.o.
2428 (osabi.o): New dependency list.
2429 * osabi.c: New file.
2430 * osabi.h: New file.
2431 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2432
2433 * Makefile.in (alpha_tdep_h): Define and use instead of
2434 alpha-tdep.h.
2435 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2436 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2437 Remove.
2438 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2439 * alpha-tdep.h: Include osabi.h.
2440 (alpha_abi): Remove.
2441 (gdbarch_tdep): Use generic OS ABI framework.
2442 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2443 gdbarch_register_osabi.
2444 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2445 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2446 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2447
2448 * Makefile.in (sh_tdep_h): Add osabi.h.
2449 * sh-tdep.h (sh_osabi): Remove.
2450 (gdbarch_tdep): Use generic OS ABI framework.
2451 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2452 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2453 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2454 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2455
2456 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2457 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2458 gdbarch_register_osabi.
2459 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2460 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2461 (get_elfosabi): Rename to...
2462 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2463 ABI framework support routines.
2464 (arm_gdbarch_init): Use generic OS ABI framework.
2465 (arm_dump_tdep): Likewise.
2466 (_initialize_arm_tdep): Likewise.
2467 * arm-tdep.h: Include osabi.h.
2468 (arm_abi): Remove.
2469 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2470 osabi member.
2471 (arm_gdbarch_register_os_abi): Remove prototype.
2472 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2473 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2474
2475 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2476 * mips-tdep.c: Include osabi.h.
2477 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2478 OS ABI framework.
2479
d194345b
KH
24802002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2481
2482 * h8300-tdep.c: Fix formatting.
2483
70c6b0d1
EZ
24842002-05-20 Elena Zannoni <ezannoni@redhat.com>
2485
2486 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2487 printing vector registers.
2488
165b8e33
AC
24892002-05-19 Andrew Cagney <ac131313@redhat.com>
2490
2491 From Fernando Nasser:
2492 * remote.c (remote_async_open_1): Re-throw the exception when the
2493 connection fails.
2494 (remote_cisco_open): Ditto.
2495 (remote_open_1): Ditto.
2496
36918e70
AC
24972002-05-19 Andrew Cagney <ac131313@redhat.com>
2498
2499 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2500 (remote_start_remote): Add uiout parameter. Pass through to
2501 remote_start_remote_dummy.
2502 (remote_open_1): Use catch_exception instead of catch_errors.
2503 (remote_async_open_1): Ditto.
2504 (remote_cisco_open): Ditto.
2505
ae44c0c4
AC
25062002-05-19 Andrew Cagney <ac131313@redhat.com>
2507
2508 * remote.c (remote_start_remote): Replace PTR with void pointer.
2509 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2510 static.
2511
8efe637d
AC
25122002-05-18 Andrew Cagney <ac131313@redhat.com>
2513
2514 * gdb_indent.sh: Allow the script to be run in the sim directory.
2515
2f1b5984
MK
25162002-05-18 Mark Kettenis <kettenis@gnu.org>
2517
f0f625e2
MK
2518 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2519 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2520
2f1b5984
MK
2521 * corelow.c (core_open): Only call set_gdbarch_from_file if
2522 exec_bfd is NULL.
2523
fc974602
AV
25242002-05-17 Andrey Volkov <avolkov@transas.com>
2525
2526 * h8300-tdep.c: Add support of EXR register
2527 * config/h8300/tm-h8300.h: Ditto.
2528
906709f4
AV
25292002-05-17 Andrey Volkov <avolkov@transas.com>
2530
2531 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2532
6e591d68
AV
25332002-05-17 Andrey Volkov <avolkov@transas.com>
2534
2535 * h8300-tdep.c: Change literal regnums to REGNO.
2536
84f0252a
JB
25372002-05-17 Jim Blandy <jimb@redhat.com>
2538
e0e9281e
JB
2539 * NEWS: Note addition of macro support.
2540
84f0252a
JB
2541 Expand preprocessor macros in C expressions.
2542 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2543 (scan_macro_expansion, scanning_macro_expansion,
2544 finished_macro_expansion): New function declarations.
2545 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2546 variable declarations.
2547 * parser-defs.h (expression_context_pc): New declaration.
2548 * parse.c (expression_context_pc): New variable.
2549 (parse_exp_1): Set expression_context_pc, as well as
2550 expression_context_block.
2551 * c-exp.y (yylex): If we're not already reading the result of a
2552 macro expansion, try to macro-expand the next token. When we're
2553 done scanning a macro expansion, switch back to the mainline text.
2554 Commas and `if's in a macro's expansion don't terminate the input.
2555 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2556 (macro_original_text, macro_expanded_text,
2557 expression_macro_lookup_func, expression_macro_lookup_baton): New
2558 variables.
2559 (scan_macro_expansion, scanning_macro_expansion,
2560 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2561 c_preprocess_and_parse): New functions.
2562 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2563 c_preprocess_and_parse, instead of c_parse.
2564 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2565 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2566
1c509ca8
JR
2567Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2568
2569 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2570 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2571 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2572
2250ee0c
CV
25732002-05-17 Corinna Vinschen <vinschen@redhat.com>
2574
2575 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2576
ab3b8126
JT
25772002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2578
2579 * Makefile.in (sh_tdep_h): Define and use.
2580 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2581 register enum): Move to...
2582 * * sh-tdep.h: ...here.
2583 * sh-tdep.c: Include sh-tdep.h.
2584 * sh3-rom.c: Likewise.
2585 * shnbsd-tdep.c: Likewise.
2586
ed9d4749
MS
25872002-05-16 Michael Snyder <msnyder@redhat.com>
2588
2589 * arm-tdep.c: Spelling fix in comment.
2590
2e276125
JB
25912002-05-16 Jim Blandy <jimb@redhat.com>
2592
6821892e
JB
2593 Add commands for manually expanding macros and showing their
2594 definitions.
2595 * macrocmd.c, macroscope.c, macroscope.h: New files.
2596 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2597 (macroscope_h): New variable.
2598 (HFILES_NO_SRCDIR): Add macroscope.h.
2599 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2600 (macroscope.o, macrocmd.o): New rules.
2601
2e276125
JB
2602 Teach the Dwarf 2 reader to read macro information.
2603 * dwarf2read.c: #include "macrotab.h".
2604 (dwarf_macinfo_buffer): New variable.
2605 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2606 dwarf_macinfo_size.
2607 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2608 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2609 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2610 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2611 dwarf2_macro_spaces_in_definition): New complaints.
2612 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2613 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2614 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2615 the partial symbol table.
2616 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2617 from what's recorded in the partial symbol table.
2618 (read_file_scope): If the compilation unit has a
2619 `DW_AT_macro_info' attribute, read its macro information.
2620 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2621
2f53fe6c
DJ
26222002-05-16 Daniel Jacobowitz <drow@mvista.com>
2623
2624 Fix PR gdb/546
2625 * ser-tcp.c: Don't include <netinet/udp.h>.
2626
2be99286
SC
26272002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2628
2629 * MAINTAINERS: Update my email address.
2630
c9af212b 26312002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
2632
2633 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2634 include file of the same name.
2635
bf5f1a52
CV
26362002-05-16 Corinna Vinschen <vinschen@redhat.com>
2637
2638 * configure.tgt: Mark v850 as multi-arched.
2639 * config/v850/tm-v850.h: Remove file.
2640 * config/v850/v850.mt: Eliminate TM_FILE.
2641
435e042a
CV
26422002-05-16 Corinna Vinschen <vinschen@redhat.com>
2643
2644 * v850-tdep.c: Full multi-arch.
2645 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2646 Define GDB_MULTI_ARCH to 2.
2647
9819c6c8
PM
26482002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2649
2650 * p-exp.y (current_type): New static variable.
2651 Carries the type of the expression at the position that is parsed.
2652 (push_current_type, pop_current_type): Two new functions. Used
2653 to store/restore current_type in expression on specific tokens.
c9af212b
RE
2654 (search_field): New static variable. Set to one after parsing a point
2655 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
2656 (FIELDNAME): New token. After a point only a token belonging to
2657 current_type type definition is allowed.
2658 (all over token rules): reset and change current_type according
2659 to rules.
2660 (exp '[' rule): insert implicit array index field if
2661 exp is a pascal string type.
2662
3a06899a
CV
26632002-05-16 Corinna Vinschen <vinschen@redhat.com>
2664
2665 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2666 frame info. Use frame_info's saved_regs instead of matching member
2667 in extra_frame_info throughout.
2668 (v850_frame_init_saved_regs): New function.
2669 (v850_init_extra_frame_info): Move most functionality into
2670 v850_frame_init_saved_regs().
2671 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2672 (v850_frame_find_saved_regs): Remove declaration.
2673 (FRAME_FIND_SAVED_REGS): Remove definition.
2674 (v850_frame_init_saved_regs): Add declaration.
2675 (FRAME_INIT_SAVED_REGS): Add definition.
2676
6ed14b0e
CV
26772002-05-16 Corinna Vinschen <vinschen@redhat.com>
2678
2679 * v850-tdep.c: Begin multi-arch'ing v850.
2680 (v850_target_architecture_hook): Remove function.
2681 (v850_gdbarch_init): New function. Add code previously in
2682 v850_target_architecture_hook().
2683 (_initialize_v850_tdep): Don't set target_architecture_hook.
2684 Call register_gdbarch_init() instead.
2685
42725910
DJ
26862002-05-16 Daniel Jacobowitz <drow@mvista.com>
2687
2688 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2689 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2690 (fixup_class_method_type): Likewise.
2691
0bc68c49
DJ
26922002-05-15 Daniel Jacobowitz <drow@mvista.com>
2693
2694 From Martin Pool <mbp@samba.org>:
2695 * gdbserver/server.c (gdbserver_usage): New function.
2696 (main): Call it.
2697
99d9066e
JB
26982002-05-15 Jim Blandy <jimb@redhat.com>
2699
2700 Add macro structures to GDB's symbol tables. Nobody puts anything
2701 in them yet.
2702 * symtab.h (struct symtab): New member: `macro_table'.
2703 * buildsym.h (pending_macros): New global variable.
2704 * buildsym.c: #include "macrotab.h".
2705 (buildsym_init): Initialize `pending_macros'.
2706 (end_symtab): If we found macro information while reading a CU's
2707 debugging info, do build a symtab structure for it. Make the
2708 symtab point to the macro information, and clear the
2709 `pending_macros' pointer which held it while we were reading the
2710 debug info.
2711 (really_free_pendings): Free any pending macro table.
2712 * objfiles.h (struct objfile): New member: `macro_cache'.
2713 * objfiles.c (allocate_objfile): Set allocate and free functions
2714 for the macro cache's objstack.
2715 (free_objfile): Empty the macro cache's obstack.
2716 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2717 set new allocate and free functions for it.
2718 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2719 free functions for the macro cache's objstack. (Why is this
2720 function building its own objfile?)
2721 * symmisc.c (print_objfile_statistics): Print statistics on the
2722 macro bcache.
2723 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2724
c899585b
RE
27252002-05-15 Richard Earnshaw <rearnsha@arm.com>
2726
2727 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2728 (REGISTER_U_ADDR): Delete definition.
2729 (arm_register_u_addr): Delete declaration.
2730
a6cdd8c5
RE
27312002-05-15 Richard Earnshaw <rearnsha@arm.com>
2732
2733 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2734 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2735
fd3a5ca1
DJ
27362002-05-14 Daniel Jacobowitz <drow@mvista.com>
2737
2738 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2739 stop_at -> stop_pc.
2740
c97dcfc7
AC
27412002-05-14 Andrew Cagney <ac131313@redhat.com>
2742
2743 * regcache.c (register_valid): Revise comments refering to "Not
2744 available" and "unavailable".
2745 * frame.c (frame_register_read): Ditto.
2746 * findvar.c (value_of_register): Ditto.
2747
93021b7d
AC
27482002-05-15 Andrew Cagney <cagney@redhat.com>
2749
2750 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2751 (remote-sim.o): Update dependencies.
2752 (d10v-tdep.o): Specify dependencies.
2753 (sim_d10v_h): Define.
2754
a86bc61c
JB
27552002-05-14 Jim Blandy <jimb@redhat.com>
2756
2757 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2758 * macrotab.c (macro_lookup_inclusion, find_definition,
2759 new_macro_table): Same.
2760
2761 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2762 not `! strcmp ()'. This is a dubious improvement.
2763 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2764
2765 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2766 although it's not necessary, to avoid a warning.
2767
2fdde8f8
DJ
27682002-05-14 Daniel Jacobowitz <drow@mvista.com>
2769
2770 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2771 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2772 TYPE_INSTANCE_FLAGS.
2773 (struct main_type): New.
2774 (struct type): Move most members to struct main_type. Change
2775 cv_type and as_type to new type_chain member. Add instance_flags.
2776 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2777 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2778 (finish_cv_type): Remove prototype.
2779 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2780 Set TYPE_CHAIN.
2781 (alloc_type_instance): New function.
2782 (smash_type): New function.
2783 (make_pointer_type, make_reference_type, make_function_type)
2784 (smash_to_member_type, smash_to_method_type): Call smash_type.
2785 (make_qualified_type): New function.
2786 (make_type_with_address_space): Call make_qualified_type.
2787 (make_cv_type): Likewise.
2788 (finish_cv_type): Remove unnecessary function.
2789 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2790 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2791 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2792 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2793 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2794 * hpread.c (hpread_read_struct_type): Likewise.
2795 * stabsread.c (read_struct_type): Likewise.
2796
843fedf4
EZ
27972002-05-14 Elena Zannoni <ezannoni@redhat.com>
2798
2799 * configure.tgt: Add a catch all sh* target, for cases like
2800 sh[2,3,4]-elf and sh-hms.
2801
05a6c72c
KS
28022002-05-14 Keith Seitz <keiths@redhat.com>
2803
2804 * event-loop.c (create_file_handler): Don't do anything but
2805 update data when we are given a fd which we are already
2806 monitoring.
2807
5d085aaf
ML
28082002-05-14 Michal Ludvig <mludvig@suse.cz>
2809
2810 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2811 (update_context): Use __func__ in warnings.
2812
9db8d71f
DJ
28132002-05-14 Daniel Jacobowitz <drow@mvista.com>
2814
2815 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2816 and tcp_close to net_open and net_close.
2817 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2818 using UDP if requested. Don't try to disable Nagle on UDP
2819 sockets.
2820 * remote.c (remote_serial_open): New function. Warn about UDP.
2821 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2822
5dbc6baa
EZ
28232002-05-13 Elena Zannoni <ezannoni@redhat.com>
2824
2825 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2826
cc3023f7
EZ
28272002-05-13 Elena Zannoni <ezannoni@redhat.com>
2828
2829 * configure.tgt: Remove sh-hms target.
2830 * MAINTAINERS: Don't list sh-hms as a separate target.
2831
ec2bcbe7
JB
28322002-05-13 Jim Blandy <jimb@redhat.com>
2833
2834 Add first preprocessor macro-expansion files.
2835 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2836 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2837 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2838 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2839 (COMMON_OBS): Add macrotab.o, macroexp.o.
2840 (macroexp.o, macrotab.o): New rules.
2841
6d531722
AC
28422002-05-13 Andrew Cagney <ac131313@redhat.com>
2843
2844 * config/m88k/tm-m88k.h: Update copyright.
2845 (m88k_target_write_pc): Declare
2846 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2847 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2848 (SHIFT_INST_REGS): Update definition.
2849 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2850 using old definition of TARGET_WRITE_PC.
2851 * regcache.c (generic_target_write_pc): Delete code handling
2852 NNPC_REGNUM.
2853 * gdbarch.sh (NNPC_REGNUM): Delete.
2854 * gdbarch.h, gdbarch.c: Regenerate.
2855
3e3f2739
RE
28562002-05-13 Richard Earnshaw <rearnsha@arm.com>
2857
2858 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2859 builtin reg number.
2860
0004e5a2
DJ
28612002-05-13 Daniel Jacobowitz <drow@mvista.com>
2862
2863 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2864 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2865 (gen_address_of, gen_struct_ref, gen_repeat): Use type
2866 access macros.
2867 * c-typeprint.c (cp_type_print_method_args): Likewise.
2868 (c_type_print_args): Likewise.
2869 * d10v-tdep.c (d10v_push_arguments): Likewise.
2870 (d10v_extract_return_value): Likewise.
2871 * expprint.c (print_subexp): Likewise.
2872 * gdbtypes.c (lookup_primitive_typename): Likewise.
2873 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2874 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2875 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2876 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2877 (TYPE_VECTOR): Likewise.
2878 * hpread.c (hpread_read_struct_type)
2879 (fix_static_member_physnames, fixup_class_method_type)
2880 (hpread_type_lookup): Likewise.
2881 * mdebugread.c (parse_symbol, parse_type): Likewise.
2882 * p-lang.c (is_pascal_string_type): Likewise.
2883 * valops.c (hand_function_call): Likewise.
2884 * x86-64-tdep.c (classify_argument): Likewise.
2885
2886 * hpread.c (hpread_read_function_type)
2887 (hpread_read_doc_function_type): Call replace_type.
2888 * dstread.c (create_new_type): Delete.
2889 (decode_dst_structure, process_dst_function): Call alloc_type.
2890 Use type access macros.
2891
dff95cc7
MK
28922002-05-12 Mark Kettenis <kettenis@gnu.org>
2893
2894 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2895 the're not supported by the current architecture.
2896 (i387_fill_fxsave): Likewise.
2897
bbcd32ad
FF
28982002-05-12 Fred Fish <fnf@redhat.com>
2899
2900 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2901 sect_index_xxx members to index the first slot in section_offsets
2902 if all of the section_offsets are zero.
2903
89cf4787
MK
29042002-05-12 Mark Kettenis <kettenis@gnu.org>
2905
2906 * configure.tgt (sparc-*openbsd): Remove entry accidentially
2907 checked in with last change.
2908
1f77ffc5
MK
29092002-05-12 Mark Kettenis <kettenis@gnu.org>
2910
2911 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2912 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2913 config.sub.
2914
89b8b4a9
DJ
29152002-05-12 Daniel Jacobowitz <drow@mvista.com>
2916
2917 * Makefile.in: Update dependencies.
2918
14a5e767
AC
29192002-05-11 Andrew Cagney <ac131313@redhat.com>
2920
2921 * language.c (local_hex_string_custom): Simplify. Do not depend
2922 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2923
2924 * memattr.c (mem_info_command): Replace calls to
2925 longest_local_hex_string and longest_local_hex_string_custom.
2926 * buildsym.c (make_blockvector): Ditto.
2927 * solib.c (info_sharedlibrary_command): Ditto.
2928 * tracepoint.c (tracepoints_info): Ditto.
2929 * symtab.c (print_msymbol_info): Ditto.
2930
2931 * language.c (local_hex_string): Delete.
2932 (local_hex_string_custom): Delete.
2933 (longest_local_hex_string): Rename to local_hex_string.
2934 (longest_local_hex_string_custom): Rename to
2935 local_hex_string_custom.
2936 * language.h (local_hex_string): Change parameter type to LONGEST.
2937 (local_hex_string_custom): Ditto.
2938 (longest_local_hex_string): Delete declaration.
2939 (longest_local_hex_string_custom): Ditto.
2940
2941 * solib.c: Update copyright.
2942 * memattr.c: Update copyright.
2943
13d01224
AC
29442002-05-11 Andrew Cagney <ac131313@redhat.com>
2945
2946 * arch-utils.h (legacy_register_to_value): Declare.
2947 (legacy_value_to_register): Declare.
2948 (legacy_convert_register_p): Declare.
2949 * arch-utils.c (legacy_register_to_value): New function.
2950 (legacy_value_to_register): New function.
2951 (legacy_convert_register_p): New function.
2952
2953 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2954 (VALUE_TO_REGISTER): Define.
2955 (CONVERT_REGISTER_P): Define.
2956 * gdbarch.h, gdbarch.c: Regenerate.
2957
2958 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2959 VALUE_TO_REGISTER.
2960 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2961 CONVERT_REGISTER_P.
2962
4a1970e4
DJ
29632005-05-11 Daniel Jacobowitz <drow@mvista.com>
2964 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2965
2966 * Makefile.in: Update dependencies for valops.c.
2967 * valops.c: Include "gdb_assert.h".
2968 (typecmp): Skip THIS parameter to methods.
2969 (find_method_list): Remove static_memfuncp argument,
2970 update callers. Check for stub methods.
2971 (find_value_oload_method_list): Don't set *static_memfuncp.
2972 (find_overload_match): Don't check for stub methods. Assert
2973 that methods are not stubbed. Handle static methods.
2974 (value_find_oload_method_list): Remove static_memfuncp argument.
2975 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2976 to the argument list for static stub methods.
2977 * value.h (value_find_oload_method_list): Update prototype.
2978
b2e75d78
AC
29792002-05-11 Andrew Cagney <ac131313@redhat.com>
2980
2981 * arch-utils.h (generic_register_size): Declare.
2982 (generic_register_raw_size, generic_register_virtual_size): Delete
2983 declarations.
2984 * arch-utils.c (generic_register_raw_size): Delete.
2985 (generic_register_size): New function.
2986 (generic_register_virtual_size): Delete.
2987
2988 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2989 default generic_register_size.
2990 * gdbarch.h, gdbarch.c: Re-generate.
2991
2992 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2993 register_virtual_size.
2994 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2996
451fbdda
AC
29972002-05-11 Andrew Cagney <ac131313@redhat.com>
2998
2999 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3000 * gdbarch.h, gdbarch.c: Regenerate.
3001 * gnu-v3-abi.c: Update copyright.
3002 (vtable_address_point_offset): Update.
3003 (gnuv3_rtti_type): Update.
3004 (gnuv3_baseclass_offset): Update.
3005 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3006 (init_fetch_link_map_offsets): Update.
3007 * remote.c (get_remote_state): Update.
3008
6d2f5cea
DJ
30092002-05-11 Daniel Jacobowitz <drow@mvista.com>
3010
3011 * TODO: Remove value_headof/value_from_vtable_info comment.
3012 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3013 * values.c (value_headof, value_from_vtable_info): Delete.
3014 * value.h (value_from_vtable_info): Delete prototype.
3015
d2324da4
AC
30162002-05-11 Andrew Cagney <ac131313@redhat.com>
3017
3018 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3019 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3020 $(gdb_regex_h).
3021 (gdb_assert_h): Define.
3022 (gdb_wait_h): Define.
3023 (gdb_regex_h): Define.
3024
5c717440
DJ
30252002-05-11 Daniel Jacobowitz <drow@mvista.com>
3026
3027 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3028 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3029
6c7861b3
JT
30302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3031
3032 * nbsd-tdep.c: Fix comment.
3033
ea5bc2a6
JT
30342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3035
3036 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3037 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3038 (nbsd-tdep.o): New dependency list.
3039 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3040 nbsd-tdep.h.
3041 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3042 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3043 * nbsd-tdep.c: New file.
3044 * nbsd-tdep.h: New file.
3045 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3046 nbsd-tdep.h.
3047 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3048 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3049 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3050 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3051
b28da865
JT
30522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3053
3054 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3055 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3056 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3057 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3058 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3059 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3060
4b8ff1fa
JT
30612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3062
3063 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3064 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3065 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3066 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3067 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3068 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3069 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3070
dfe6eb1f
JT
30712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3072
3073 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3074 fetch_elfcore_registers to...
3075 * i386nbsd-tdep.c: ...here.
3076 (i386nbsd_use_struct_convention): Rename to...
3077 (i386nbsd_aout_use_struct_convention): ...this.
3078 (i386nbsd_supply_reg): New function.
3079 (i386nbsd_fill_reg): New function.
3080 (fetch_core_registers): Use i386nbsd_supply_reg.
3081 (fetch_elfcore_registers): Likewise.
3082 (_initialize_i386nbsd_tdep): New function.
3083 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3084 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3085 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3086 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3087 (i386nbsd_aout_use_struct_convention): ...this.
3088
20cb8cda
JT
30892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3090
3091 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3092 (store_inferior_registers): Use shnbsd_fill_reg.
3093 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3094 sh_nbsd_supply_register): Collapse into...
3095 (shnbsd_supply_reg): ...this.
3096 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3097 (shnbsd_fill_reg): ...this.
3098 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3099 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3100 (fetch_core_registers): Use shnbsd_supply_reg.
3101 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3102 (sh_nbsd_core_fns): Rename to...
3103 (shnbsd_core_fns): ...this.
3104 (sh_nbsd_elfcore_fns): Rename to...
3105 (shnbsd_elfcore_fns): ...this.
3106 (sh_nbsd_init_abi): Rename to...
3107 (shnbsd_init_abi): ...this.
3108 (_initialize_sh_nbsd_tdep): Rename to...
3109 (_initialize_shnbsd_tdep): ...this.
3110 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3111 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3112 sh_nbsd_fill_register): Remove prototypes.
3113 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3114
e750d25e
JT
31152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3116
3117 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3118 (i387-nat.o): Delete dependency list.
3119 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3120 (x86-64-linux-nat.o): Likewise.
3121 * i387-nat.c: Delete file, moving contents to...
3122 * i387-tdep.c: ...here.
3123 * i387-nat.h: Rename...
3124 * i387-tdep.h: ...to this.
3125 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3126 * i386-linux-nat.c: Likewise.
3127 * i386bsd-nat.c: Likewise.
3128 * i386gnu-nat.c: Likewise.
3129 * i386nbsd-nat.c: Likewise.
3130 * i386v4-nat.c: Likewise.
3131 * x86-64-linux-nat.c: Likewise.
3132 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3133 * config/i386/go32.mh (NATDEPFILES): Likewise.
3134 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3135 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3136 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3137 * config/i386/linux.mh (NATDEPFILES): Likewise.
3138 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3139 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3140 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3141 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3142
1aee598a
JT
31432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3144
3145 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3146 (alphanbsd-nat.o): Remove dependency list.
3147 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3148 * alphanbsd-nat.c: Delete. Contents moved to...
3149 * alphanbsd-tdep.c: ...here.
3150 (_initialize_alphanbsd_tdep): Register core functions.
3151 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3152
12bcb0fe
JT
31532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3154
3155 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3156 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3157 (alphanbsd-nat.o): Likewise.
3158 (alphabsd-tdep.o): New dependency list.
3159 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3160 (fill_gregset): Use alphabsd_fill_reg.
3161 (supply_fpregset): Use alphabsd_supply_fpreg.
3162 (fill_fpregset): Use alphabsd_fill_fpreg.
3163 (fetch_inferior_registers): Use struct reg and struct fpreg
3164 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3165 and alphabsd_supply_fpreg.
3166 (store_inferior_registers): Use struct reg and struct fpreg
3167 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3168 and alphabsd_fill_fpreg.
3169 * alphabsd-tdep.c: New file.
3170 * alphabsd-tdep.h: New file.
3171 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3172 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3173 alphabsd_supply_fpreg.
3174 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3175 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3176
361d1df0
EC
31772002-05-11 Eric Christopher <echristo@redhat.com>
3178
3179 * mips-tdep.c (mips_double_register_type): Fix thinko.
3180 (mips_single_register_type): Ditto.
3181 * MAINTAINERS: Add self.
3182
92dd7cee
MK
31832002-05-11 Mark Kettenis <kettenis@gnu.org>
3184
3185 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3186 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3187 right thing on architectures with different endianness and/or
3188 integer sizes.
3189
e27da16d
JT
31902002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3191
3192 From Christian Limpach <chris@Pin.LU>
3193 * configure.in: Change sed expression which comments out
3194 NATDEPFILES to also comment out continuation lines.
3195 * configure: Regenerate.
3196
ddde02bd
EZ
31972002-05-10 Elena Zannoni <ezannoni@redhat.com>
3198
3199 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3200 big patch.
3201
1c922164
EZ
32022002-05-10 Elena Zannoni <ezannoni@redhat.com>
3203
3204 * sh-tdep.c: Include correct file.
3205
283150cd
EZ
32062002-05-10 Elena Zannoni <ezannoni@redhat.com>
3207
3208 New support for sh64-elf (sh5) target.
3209
3210 * configure.tgt: For sh64-elf target, default to sh-elf.
3211
3212 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3213 (struct gdbarch_tdep): Add new fields for new registers and ABI
3214 info.
361d1df0 3215
283150cd
EZ
3216 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3217 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3218 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3219 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3220 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3221 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3222 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3223 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3224 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3225 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3226 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3227 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3228 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3229 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3230 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3231 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3232 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3233 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3234 sign_extend, sh64_nofp_frame_init_saved_regs,
3235 sh64_init_extra_frame_info, sh64_get_saved_register,
3236 sh64_extract_struct_value_address, sh64_pop_frame,
3237 sh64_push_arguments, sh64_extract_return_value,
3238 sh64_store_return_value, sh64_show_media_regs,
3239 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3240 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3241 sh_sh64_register_virtual_type,
3242 sh_sh64_register_convert_to_virtual,
3243 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3244 sh64_register_read, sh64_pseudo_register_write,
3245 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3246 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3247 sh64_do_pseudo_register, sh_compact_do_registers_info,
3248 sh64_do_registers_info, sh_gdbarch_init): New functions.
3249
3117ed25
EZ
32502002-05-10 Elena Zannoni <ezannoni@redhat.com>
3251
3252 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3253
2654e6d4
DJ
32542002-05-10 Daniel Jacobowitz <drow@mvista.com>
3255
3256 * linespec.c (decode_line_1): Check for a double quote after
3257 a filename correctly.
3258
9ab3e532
JB
32592002-05-10 Jim Blandy <jimb@redhat.com>
3260
3261 Properly track the size of the current objfile's .debug_line section.
3262 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3263 (DWARF_LINE_SIZE): New macro.
3264 (dwarf2_build_psymtabs_hard): Record the line section's size in
3265 the partial symbol table.
3266 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3267 symbol table.
3268
126fa72d
PS
32692002-05-10 Petr Sorfa <petrs@caldera.com>
3270
3271 * ia64-tdep.c: Handle breakpoints on L instruction type
3272 in MLX instruction bundle by moving the breakpoint to
3273 the third slot (X instruction type) as L holds only data.
3274
1f077a3e
KB
32752002-05-10 Kevin Buettner <kevinb@redhat.com>
3276
3277 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3278 (process_one_symbol): Complain about discarding local symbols
3279 due to a misplaced N_LBRAC entry.
3280
8120c9d5 32812002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
3282
3283 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
3284 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3285 decrease the depth we are at, in the case of templates.
361d1df0 3286
67b2c998
DJ
32872002-05-09 Daniel Jacobowitz <drow@mvista.com>
3288
3289 * mips-tdep.c (mips_float_register_type): New function.
3290 (mips_double_register_type): New function.
3291 (mips_print_register): Use them.
3292 (do_fp_register_row): Likewise.
3293
fd326606
DJ
32942002-05-09 Daniel Jacobowitz <drow@mvista.com>
3295
6609d9af 3296 * signals/signals.c (signals): Remove conditional compilation around
fd326606 3297 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 3298 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 3299
bef35864
MS
33002002-05-09 Michael Snyder <msnyder@redhat.com>
3301
3302 * remote-rdp.c (remote_rdp_can_run): Remove.
3303
c55a3f73
TT
33042002-05-09 Tom Tromey <tromey@redhat.com>
3305
3306 * jv-valprint.c (java_val_print): Handle `char' as a special case
3307 of TYPE_CODE_INT.
3308
b8d5e71d
MS
33092002-05-09 Michael Snyder <msnyder@redhat.com>
3310
3311 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3312 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 3313 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 3314 str r(0123),[sp,#nn].
361d1df0 3315 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
3316 order-independent by placing it in a loop.
3317
e2cd42dd
MS
33182002-05-06 Michael Snyder <msnyder@redhat.com>
3319
3320 * stabsread.c (read_type): Add recognition for new attribute:
3321 "@V;" means that an array type is actually a vector.
3322 This is analogous to the vector flag that's been added to dwarf2.
3323
3ce1502b
MK
33242002-05-09 Mark Kettenis <kettenis@gnu.org>
3325
3326 * i386-tdep.h (i386_abi): New enum.
3327 (struct gdbarch_tdep): Replace os_ident member with abi.
3328 (i386_gdbarch_register_os_abi): New prototype.
3329 * i386-tdep.c (i386_abi_names): New array.
3330 (process_note_abi_tag_sections): Removed.
3331 (process_note_sections): New function.
3332 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3333 (struct i386_abi_handler): New struct.
3334 (i386_abi_handler_list): New variable.
3335 (i386_gdbarch_register_os_abi): New function.
3336 (i386_gdbarch_init): Adapt for the changes given above.
3337
084c156a
DJ
33382002-05-08 Daniel Jacobowitz <drow@mvista.com>
3339
3340 * gregset.h: Say "GNU/Linux".
3341
6599f021
EZ
33422002-05-08 Elena Zannoni <ezannoni@redhat.com>
3343
3344 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3345 (build_gdbtypes): Build builtin_type_v2_float.
3346 (_initialize_gdbtypes): Register new builtin type.
3347
40af4b0c
AC
33482002-05-08 Andrew Cagney <ac131313@redhat.com>
3349
3350 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3351 (clear_gdbarch_swap): New function.
3352 (initialize_non_multiarch): Call.
3353 (gdbarch_update_p): Before calling init(), swap out and clear the
3354 existing architecture.
3355 * gdbarch.c: Regenerate.
3356
4fe84f46
JT
33572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3358
3359 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3360 alphanbsd-tdep.c.
3361
4015edd1
JT
33622002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3363
3364 * sh-nbsd-nat.c: Rename to...
3365 * shnbsd-nat.c: ...this.
3366 * sh-nbsd-tdep.c: Rename to...
3367 * shnbsd-tdep.c: ...this.
3368 * sh-nbsd-tdep.h: Rename to...
3369 * shnbsd-tdep.h: ...this.
3370 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3371 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3372
0e2bd219
RE
33732002-05-08 Richard Earnshaw <rearnsha@arm.com>
3374
3375 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3376 concatenation for command help messages.
3377
13a38d45
JT
33782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3379
3380 * NEWS: Note new sh*-*-netbsdelf* configuration.
3381 * configure.host: Set gdb_host_cpu to sh for all sh*.
3382 (sh*-*-netbsdelf*): New host.
3383 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3384 (sh*-*-netbsdelf*): New target.
3385 * sh-nbsd-nat.c: New file.
3386 * sh-nbsd-tdep.c: New file.
3387 * sh-nbsd-tdep.h: New file.
3388 * config/sh/nbsd.mh: New file.
3389 * config/sh/nbsd.mt: New file.
3390 * config/sh/nm-nbsd.h: New file.
3391 * config/sh/tm-nbsd.h: New file.
3392
d658f924
JT
33932002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3394
3395 * sh-tdep.c (sh_osabi_names): Declare.
3396 (process_note_abi_tag_sections): New function.
3397 (get_elfosabi): Ditto.
3398 (sh_gdbarch_register_os_abi): Ditto.
3399 (sh_dump_tdep): Ditto.
3400 _initialize_sh_tdep): Use gdbarch_register to register
3401 sh_gdbarch_init and sh_dump_tdep.
3402 * config/sh/tm-sh.h (sh_osabi): Declare.
3403 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3404
848cfffb
AC
34052002-05-07 Andrew Cagney <ac131313@redhat.com>
3406
3407 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3408 (thumb_scan_prologue): Ditto.
3409 (arm_find_callers_reg): Ditto.
3410 (arm_frame_chain): Ditto.
3411 (arm_init_extra_frame_info): Ditto.
3412 (arm_frame_saved_pc): Ditto.
3413 (arm_pop_frame): Ditto.
3414 (arm_push_return_address): New function.
3415 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3416 call_dummy_location, call_dummy_breakpoint_offset_p,
3417 call_dummy_breakpoint_offset, call_dummy_p,
3418 call_dummy_stack_adjust_p, call_dummy_words,
3419 sizeof_call_dummy_words, call_dummy_start_offset,
3420 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3421 call_dummy_address, push_return_address and push_dummy_frame for
3422 generic dummy frames.
3423
e7d717c0
JT
34242002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3425
3426 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3427 size computation for alloca.
3428 (sh_fp_frame_init_saved_regs): Likewise.
3429
7bbcf283
RE
34302002-05-07 Richard Earnshaw <rearnsha@arm.com>
3431
3432 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3433 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 3434 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
3435 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3436 * remote-rdp.c (remote_rdp_fetch_register): Use
3437 ARM_MAX_REGISTER_RAW_SIZE.
3438 (remote_rdp_store_register): Likewise.
3439
4657573b
ML
34402002-05-07 Michal Ludvig <mludvig@suse.cz>
3441
361d1df0 3442 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
3443 added default labels to switch {} statements.
3444 * x86-64-tdep.c: Ditto.
3445 * x86-64-linux-nat.c: Ditto.
3446
010f3b2f
JT
34472002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3448
3449 * solib.h: Protect against multiple inclusion.
3450
debd256d
JB
34512002-05-06 Jim Blandy <jimb@redhat.com>
3452
9ab3e532
JB
3453 Add first preprocessor macro-expansion files.
3454 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3455 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3456 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3457 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3458 (COMMON_OBS): Add macrotab.o, macroexp.o.
3459 (macroexp.o, macrotab.o): New rules.
3460
debd256d
JB
3461 Separate the job of reading the line number info statement program
3462 header (...expialidocious) out into its own function.
3463 * dwarf2read.c (struct line_head, struct filenames, struct
3464 directories): Replace with...
3465 (struct line_header): New structure, containing the full
3466 contents of the statement program header, including the
3467 include directory and file name tables.
3468 (read_file_scope): If we have line number info, instead of just
3469 calling dwarf_decode_lines to do all the work, call
3470 dwarf_decode_line_header first to get a `struct line_header'
3471 containing the data in the statement program header, and then
3472 pass that to dwarf_decode_lines, which will pick up where that
3473 left off. Be sure to clean up the `struct line_header' object.
3474 (dwarf_decode_line_header, free_line_header, add_include_dir,
3475 add_file_name): New functions.
3476 (dwarf_decode_lines): Move all the code to read the statement
3477 program header into dwarf_decode_line_header. Take the line
3478 header it built as the first argument, instead of the offset to
3479 the compilation unit's line number info. Use the new `struct
3480 line_header' type instead of the old structures. No need to do
3481 cleanups here now, since we don't allocate anything.
3482 (dwarf2_statement_list_fits_in_line_number_section,
3483 dwarf2_line_header_too_long): New complaints.
3484
ac3aafc7
EZ
34852002-05-06 Elena Zannoni <ezannoni@redhat.com>
3486
3487 * gdbtypes.c (init_vector_type): New function.
3488 (build_builtin_type_vec128): Simplify the representation of SIMD
3489 registers.
3490 (build_gdbtypes): Initialize new builtin vector types.
3491 (_initialize_gdbtypes): Register new vector types with gdbarch.
3492 (builtin_type_v4_float, builtin_type_v4_int32,
3493 builtin_type_v8_int16, builtin_type_v16_int8,
3494 builtin_type_v2_int32, builtin_type_v4_int16,
3495 builtin_type_v8_int8): New (renamed) SIMD types.
3496
13e49980
MK
34972002-05-06 Mark Kettenis <kettenis@gnu.org>
3498
3499 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3500 (i387_fill_fxsave): Likewise.
3501
997b20b8
AO
35022002-05-05 Alexandre Oliva <aoliva@redhat.com>
3503
3504 * alpha-tdep.c (alpha_extract_return_value): Don't use
3505 non-constant array size in prototype.
3506
535c96ce
AC
35072002-05-04 Andrew Cagney <ac131313@redhat.com>
3508
3509 From Brian Taylor <briant at model dot com>:
3510 * ui-out.c (ui_out_field_core_addr): Use the function
3511 longest_local_hex_string_custom'to format addresses > 32 bits
3512 wide.
3513
3514 * ui-out.c (ui_out_field_core_addr): Update comment.
3515
bedfa57b
AC
35162002-05-04 Andrew Cagney <ac131313@redhat.com>
3517
3518 * stack.c (select_and_print_frame): Make static. Delete the
3519 parameter `level'.
3520 (func_command): Update call.
3521 (select_frame_command): Delete code computing the frame level.
3522 * frame.h (select_and_print_frame): Delete declaration.
3523
f621c63e
AC
35242002-05-04 Andrew Cagney <ac131313@redhat.com>
3525
3526 * sparc-tdep.c (sparc_get_saved_register): Comment why
3527 get_prev_frame call is safe.
3528
0f7d239c
AC
35292002-05-04 Andrew Cagney <ac131313@redhat.com>
3530
3531 * frame.h (select_frame): Delete level parameter.
3532 * stack.c (select_frame): Update. Use frame_relative_level to
3533 obtain the frame's level.
3534 (select_and_print_frame): Update call.
3535 (select_frame_command): Ditto.
3536 (up_silently_base): Ditto.
3537 (down_silently_base): Ditto.
3538 * ocd.c (ocd_start_remote): Ditto.
3539 * remote-rdp.c (remote_rdp_open): Ditto.
3540 * remote-mips.c (mips_initialize): Ditto.
3541 (common_open): Ditto.
3542 * remote-e7000.c (e7000_start_remote): Ditto.
3543 * m3-nat.c (select_thread): Ditto.
3544 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3545 (child_get_current_exception_event): Ditto.
3546 * varobj.c (varobj_create): Ditto.
3547 (varobj_update): Ditto.
3548 (c_value_of_root): Ditto.
3549 * tracepoint.c (finish_tfind_command): Ditto.
3550 * corelow.c (core_open): Ditto.
3551 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3552 * thread.c (info_threads_command): Ditto.
3553 (switch_to_thread): Ditto.
3554 * infrun.c (normal_stop): Ditto.
3555 (restore_selected_frame): Ditto.
3556 (restore_inferior_status): Ditto.
3557 * breakpoint.c (insert_breakpoints): Ditto.
3558 (watchpoint_check): Ditto.
3559 (bpstat_stop_status): Ditto.
3560 (do_enable_breakpoint): Ditto.
3561 * blockframe.c (flush_cached_frames): Ditto.
3562 (reinit_frame_cache): Ditto.
3563
71d6c7b1
AC
35642002-05-04 Andrew Cagney <ac131313@redhat.com>
3565
3566 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3567 maintainer.
3568
cda6c68a
JB
35692002-05-04 Jim Blandy <jimb@redhat.com>
3570
3571 * gdbtypes.c (replace_type): Doc fix.
3572
5c1c87f0
AC
35732002-05-04 Andrew Cagney <ac131313@redhat.com>
3574
3575 * valprint.c (strcat_longest): Delete commented out function.
3576 Update copyright.
3577
cd9bfe15
AC
35782002-05-04 Andrew Cagney <ac131313@redhat.com>
3579
3580 * MAINTAINERS: Mark a29k as deleted.
3581 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3582 Move new configurations to the top.
3583 * configure.tgt: Remove a29k.
3584 * config/a29k/tm-vx29k.h: Delete.
3585 * config/a29k/vx29k.mt: Delete.
3586 * config/a29k/tm-a29k.h: Delete.
3587 * config/a29k/a29k-udi.mt: Delete.
3588 * config/a29k/a29k.mt: Delete.
3589 * a29k-tdep.c: Delete.
3590 * remote-udi.c: Delete.
3591 * remote-mm.c: Delete.
3592 * remote-eb.c: Delete.
3593 * remote-adapt.c: Delete.
3594 * Makefile.in: Remove obsolete code.
3595 * gdbserver/Makefile.in: Ditto.
3596 * config/s390/s390x.mt: Ditto.
3597 * config/s390/s390.mt: Ditto.
3598 * config/sparc/sparclynx.mh: Ditto.
3599 * config/sparc/linux.mh: Ditto.
3600 * config/pa/hppaosf.mh: Ditto.
3601 * config/pa/hppabsd.mh: Ditto.
3602 * config/ns32k/nbsd.mt: Ditto.
3603 * config/mips/vr5000.mt: Ditto.
3604 * config/m68k/sun3os4.mh: Ditto.
3605 * config/m68k/nbsd.mt: Ditto.
3606 * config/m68k/m68klynx.mh: Ditto.
3607 * config/m32r/m32r.mt: Ditto.
3608 * config/i386/x86-64linux.mt: Ditto.
3609 * config/i386/nbsdelf.mt: Ditto.
3610 * config/i386/nbsd.mt: Ditto.
3611 * config/i386/i386lynx.mh: Ditto.
3612
bf0c5130
AC
36132002-05-04 Andrew Cagney <ac131313@redhat.com>
3614
3615 * target.c (debug_print_register): New function. Handle oversize
3616 registers.
3617 (debug_to_fetch_registers): Call.
3618 (debug_to_store_registers): Call.
3619
2ae1c2d2
JB
36202002-05-03 Jim Blandy <jimb@redhat.com>
3621
13a393b0
JB
3622 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3623 (read_type): Doc fix.
3624 * gdbtypes.c (replace_type): Doc fix.
3625
2ae1c2d2
JB
3626 * stabsread.c (multiply_defined_struct): New complaint.
3627 (read_struct_type): If the type we were passed isn't empty, or
3628 incomplete, don't read the new struct type into it; complain,
3629 and return the original type unchanged. Take a new `type_code'
3630 argument, which is the type code for the new type.
3631 (read_type): Rather than storing the type's type code here, pass
3632 it as an argument to read_struct_type, and let that take care of
3633 storing it. That way, we don't overwrite the original type code,
3634 so read_struct_type can use it to decide whether we're overwriting
3635 something we shouldn't.
3636 (complain_about_struct_wipeout): New function.
3637
8de9bdc4
AC
36382002-05-03 Andrew Cagney <ac131313@redhat.com>
3639
3640 * gdbarch.sh: Assert that gdbarch is non-NULL.
3641 * gdbarch.c: Regenerate.
3642
f773fdbb
JM
36432002-05-03 Jason Merrill <jason@redhat.com>
3644
3645 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3646 and return NULL.
3647
0e04a514
ML
36482002-05-03 Michal Ludvig <mludvig@suse.cz>
3649
3650 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3651 (x86_64_dwarf2gdb_regno_map_length),
3652 (x86_64_dwarf2_reg_to_regnum): Added.
3653 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3654 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3655 (_initialize_x86_64_tdep): Synced with the change above.
3656 (x86_64_skip_prologue): Reformulated message.
3657
065432a8
PM
36582002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3659
3660 * f-exp.y: Also use new prev_lexptr variable
3661 to improve error reporting. Based on Michael Snyder
3662 2002-04-24 dated patch to c-exp.y.
3663 * jv-exp.y: Likewise.
3664 * m2-exp.y: Likewise.
3665
a3162708
EZ
36662002-05-02 Elena Zannoni <ezannoni@redhat.com>
3667
3668 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3669 we are dealing with vectors.
3670
03620c38
PM
36712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3672
3673 * config/m68k/tm-nbsd.h: Obvious fix,
3674 correct machine name.
3675
6604db2e
PM
36762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3677
3678 * p-typeprint.c (pascal_type_print_base): Add support
3679 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3680
0906b739
PM
36812002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3682
3683 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3684 for fondamental pascal 'char' type.
3685
e2625b33
PM
36862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3687
3688 * p-lang.h (is_pascal_string_type): Declaration changed,
3689 new sixth argument of type char ** added.
361d1df0 3690 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
3691 changed. Args length_pos, length_size, string_pos, char_size
3692 can now be NULL. New argument arrayname set to the field
3693 name of the char array. Return value set to char array
3694 field index plus one.
361d1df0 3695 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
3696 is_pascal_string_type function.
3697
cf17c188
AC
36982002-05-02 Andrew Cagney <cagney@redhat.com>
3699
3700 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3701 <cagney@redhat.com> change.
3702 * gdbarch.c: Regenerate.
3703
52bca491
AC
37042002-05-02 Andrew Cagney <cagney@redhat.com>
3705
3706 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3707 before probing for a new one. Detect errorenous gdbarch_init
3708 functions.
3709 * gdbarch.c: Regenerate.
3710
d5e72505
AC
37112002-05-01 Andrew Cagney <cagney@redhat.com>
3712
3713 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3714 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3715 * config/v850/tm-v850.h: Ditto. Update copyright.
3716
af566d9f
AC
37172002-04-30 Andrew Cagney <ac131313@redhat.com>
3718
3719 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3720 current_gdbarch.
3721
880d85fa
MS
37222002-04-30 Michael Snyder <msnyder@redhat.com>
3723
94c30b78
MS
3724 * arm-tdep.c: Whitespace clean-ups.
3725 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
3726 should have been removed as part of 4/24 change.
3727
6f5987a6
KB
37282002-04-30 Kevin Buettner <kevinb@redhat.com>
3729
3730 * rs6000-tdep.c: Added comment describing how fpscr register
3731 numbers were chosen.
3732
1a113c93
MS
37332002-04-30 Michael Snyder <msnyder@redhat.com>
3734
3735 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3736
9a6f53fe
EZ
37372002-04-29 Elena Zannoni <ezannoni@redhat.com>
3738
3739 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3740 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3741 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3742
11ed25ac
KB
37432002-04-29 Kevin Buettner <kevinb@redhat.com>
3744
3745 From Louis Hamilton <hamilton@redhat.com>:
3746 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3747 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3748 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3749 not bfd-private xcoff data, to determine wordsize.
3750 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3751
ae232405
AC
37522002-04-29 Andrew Cagney <ac131313@redhat.com>
3753
3754 GDB 5.2 released from 5.2 branch.
3755
91fd20f7
ML
37562002-04-29 Michal Ludvig <mludvig@suse.cz>
3757
3758 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3759 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3760 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 3761
2dc5091b
EZ
37622002-04-29 Elena Zannoni <ezannoni@redhat.com>
3763
3764 * rs6000-tdep.c (rs6000_extract_return_value,
3765 rs6000_store_return_value): Handle returning vectors.
3766 (rs6000_gdbarch_init): Use
3767 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3768 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3769 New function.
3770 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3771 vectors.
3772 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3773 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 3774
2b9848d8
PM
37752002-04-24 Pierre Muller <ics.u-strasbg.fr>
3776
3777 * hpread.c (hpread_psymtab_to_symtab_1,
3778 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3779 with fprintf_unfiltered (gdb_stderr,...).
3780
f8d17dc5
PM
37812002-04-24 Pierre Muller <ics.u-strasbg.fr>
3782
3783 * remote-array.c (printf_monitor, write_monitor,
361d1df0 3784 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
3785 Replace fprintf (stderr,...
3786 with fprintf_unfiltered (gdb_stderr,....
3787 * remote-es.c: Likewise.
3788 * remote-os9k.c: Likewise.
3789 * remote-st.c: Likewise.
3790
2f2f1ad1
AS
37912002-04-28 Andreas Schwab <schwab@suse.de>
3792
3793 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3794 linux-proc.o and gcore.o.
3795
b6779aa2
AC
37962002-04-26 Michal Ludvig <mludvig@suse.cz>
3797
3798 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3799 code without frame pointers.
3800
7e57f5f4
AC
38012002-04-26 Andrew Cagney <ac131313@redhat.com>
3802
3803 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3804 ON_STACK is needed.
3805
2ceb85d0
BE
38062002-04-26 Ben Elliston <bje@redhat.com>
3807
3808 * target.c (do_xfer_memory): Correct reference to the new option
3809 "trust-readonly-sections".
3810
f5f8a009
EZ
38112002-04-26 Elena Zannoni <ezannoni@redhat.com>
3812
3813 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3814 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3815 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3816 vectors.
3817 (read_array_type): Record the fact that this array type is really a
3818 vector (i.e. are passed in by value).
3819
5868c862
JT
38202002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3821
3822 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3823 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3824 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3825 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3826 * alpha-linux-tdep.c: Include frame.h.
3827 (alpha_linux_sigcontext_addr): New function.
3828 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3829 alpha_linux_sigcontext_addr.
3830 * alpha-osf1-tdep.c: Include gdbcore.h.
3831 (alpha_osf1_sigcontext_addr): New function.
3832 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3833 alpha_osf1_sigcontext_addr.
3834 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3835 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3836
bfb01f37
AC
38372002-04-26 Andrew Cagney <ac131313@redhat.com>
3838
361d1df0 3839 * stack.c (selected_frame_level):
bfb01f37
AC
3840 (select_frame): Do not set selected_frame_level.
3841 * frame.h (selected_frame_level): Delete declaration.
3842
15813d3f
AC
38432002-04-26 Andrew Cagney <ac131313@redhat.com>
3844
3845 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3846 convert_from_func_ptr-addr when AIX / PowerOpen.
3847
6096c27a
AC
38482002-04-25 Andrew Cagney <ac131313@redhat.com>
3849
3850 * valops.c (hand_function_call): Call
3851 generic_save_call_dummy_addr.
3852 * frame.h (generic_save_call_dummy_addr): Declare.
3853 * blockframe.c (struct dummy_frame): Add fields call_lo and
3854 call_hi.
3855 (generic_find_dummy_frame): Check for PC in range call_lo to
3856 call_hi instead of entry_point_address.
3857 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3858 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3859 (generic_save_call_dummy_addr): New function.
3860
f510d44e
DM
38612002-04-24 David S. Miller <davem@redhat.com>
3862
3863 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3864 sparc_skip_prologue.
3865 (sparc_skip_prologue): Kill frameless_p arg, and use line number
3866 information to find prologue when possible.
3867 (sparc_prologue_frameless_p): Call examine_prologue directly.
3868 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3869 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3870 second argument.
3871 (SKIP_PROLOGUE): Likewise.
3872
15d72a92
JT
38732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3874
3875 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3876 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3877 indicate that the condition it was testing is always true.
3878 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3879 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3880 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3881
accc6d1f
JT
38822002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3883
3884 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3885 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3886 tdep->jb_pc and tdep->jb_elt_size.
3887 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3888 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3889 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3890 * alpha-nat.c (get_longjmp_target): Remove.
3891 (JB_ELEMENT_SIZE): Ditto.
3892 (JB_PC): Ditto.
3893 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3894 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3895 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3896 to alpha_get_longjmp_target.
3897 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3898 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3899 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3900
1bfdc549
AC
39012002-04-25 Andrew Cagney <ac131313@redhat.com>
3902
3903 * README: Update to GDB 5.2.
3904
1bd316f0
AC
39052002-04-25 Andrew Cagney <ac131313@redhat.com>
3906
3907 * gdbarch.sh (LC_ALL): Set to `c'.
3908
2e5ff58c
TR
39092002-04-25 Theodore A. Roth <troth@verinet.com>
3910
3911 * avr-tdep.c: Ran through gdb_indent.sh.
3912
e33ce519
TR
39132002-04-25 Theodore A. Roth <troth@verinet.com>
3914
3915 * MAINTAINERS: Add myself as AVR maintainer.
3916 * NEWS: Note new target avr.
3917
8818c391
TR
39182002-04-25 Theodore A. Roth <troth@verinet.com>
3919
3920 * Makefile.in: Add support for AVR target.
3921 * configure.tgt: Add support for AVR target.
3922 * avr-tdep.c: New file
3923 * config/avr/avr.mt: New file.
3924
79509c2d
TR
39252002-04-25 Theodore A. Roth <troth@verinet.com>
3926
3927 * MAINTAINERS: Add myself to write-after-approval.
3928
dac8068e
PM
39292002-04-24 Pierre Muller <ics.u-strasbg.fr>
3930
3931 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3932 with fprintf_unfiltered (gdb_stderr,....
3933
25bf3106
PM
39342002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3935
3936 Fix PR gdb/508.
3937 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3938
24467a86
PM
39392002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3940
3941 * p-exp.y: Also use new prev_lexptr variable
3942 to improve error reporting. Based on Michael Snyder
3943 2002-04-24 dated patch to c-exp.y.
3944
95b80706
JT
39452002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3946
3947 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3948 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3949 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3950 to 0.
3951 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3952 and struct value.
3953 (FUNCTION_START_OFFSET): Remove.
3954 (BREAKPOINT): Ditto.
3955
e90cc612
JT
39562002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3957
3958 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3959 * NEWS: Ditto.
3960
6c72f9f9
JT
39612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3962
3963 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3964 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3965 alpha_linux_pc_in_sigtramp.
3966 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3967 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3968 alpha_osf1_pc_in_sigtramp.
3969 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3970 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3971 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3972 alphafbsd_pc_in_sigtramp.
3973 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3974 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3975 alphanbsd_pc_in_sigtramp.
3976 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3977 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3978
5e4f3379
JT
39792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3980
3981 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3982
da8ca43d
JT
39832002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3984
3985 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3986 alphanbsd-tdep.c.
3987 (alphanbsd-nat.o): New dependency list.
3988 (alphanbsd-tdep.o): Ditto.
3989 * NEWS: Note new native NetBSD/alpha configuration.
3990 * alphanbsd-nat.c: New file.
3991 * alphanbsd-tdep.c: Ditto.
3992 * configure.host (alpha*-*-netbsd*): New host.
3993 * configure.tgt (alpha*-*-netbsd*): New target.
3994 * config/alpha/nbsd.mh: New file.
3995 * config/alpha/nbsd.mt: Ditto.
3996 * config/alpha/nm-nbsd.h: Ditto.
3997 * config/alpha/tm-nbsd.h: Ditto.
3998
36a6271d
JT
39992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4000
4001 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4002 (alpha-osf1-tdep.o): New dependency list.
4003 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4004 and skip_sigtramp_frame members.
4005 * alpha-linux-tdep.c: Include gdbcore.h.
4006 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4007 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4008 * alpha-osf1-tdep.c: New file.
4009 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4010 alpha-osf1-dep.c.
4011 (alpha_frame_past_sigtramp_frame): New function.
4012 (alpha_dynamic_sigtramp_offset): Ditto.
4013 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4014 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4015 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4016 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4017 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4018 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4019 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4020 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4021 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4022 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4023 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4024 to find_solib_trampoline_target.
4025 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4026 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4027 (SKIP_TRAMPOLINE_CODE): Remove.
4028 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4029 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4030 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4031 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4032 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4033 (PROC_SIGTRAMP_MAGIC): Ditto.
4034 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4035 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4036 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4037 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4038 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4039
2f4bc57b
JT
40402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4041
4042 * NEWS: Note that Alpha targets are now multi-arch.
4043
665132f9
MS
40442002-04-24 Michael Snyder <msnyder@redhat.com>
4045
4046 * parser-defs.h (prev_lexptr): New external variable.
4047 * parse.c (parse_exp_1): Set prev_lexptr to null before
4048 calling the language-specific parser.
4049 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4050 (yyerror): Use prev_lexptr in error reporting.
4051
32872fa7
DJ
40522002-04-24 Daniel Jacobowitz <drow@mvista.com>
4053
4054 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4055 * gregset.h: If FILL_FPXREGSET is defined, provide
4056 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4057 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4058 is defined, call fill_fpxregset.
4059
57e76fac
MS
40602002-04-24 Roland McGrath <roland@frob.com>
4061
4062 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4063 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4064 (supply_gregset, supply_fpregset): New functions.
4065
4066 * gnu-nat.c (gnu_find_memory_regions): New function.
4067 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4068 (gnu_xfer_memory): Add a cast.
4069
f43845b3
MS
40702002-04-24 Michael Snyder <msnyder@redhat.com>
4071
361d1df0 4072 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
4073 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4074 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 4075 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
4076 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4077 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4078
a0abec03
AC
4079Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4080
4081 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4082 NUM_PSEUDO_REGS can be used.
4083
d7bd68ca
AC
40842002-04-24 Andrew Cagney <ac131313@redhat.com>
4085
4086 * arch-utils.h: Update copyright.
4087
4088 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4089 * gdbarch.h, gdbarch.c: Re-generate.
4090
4091 * inferior.h (IN_SIGTRAMP): Delete definition.
4092 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4093 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4094
4095 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4096 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4097 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4098 (find_proc_framesize): Ditto.
4099 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4100 (alpha_init_extra_frame_info): Ditto.
4101 * infrun.c (handle_inferior_event): Ditto.
4102 (handle_inferior_event): Ditto.
4103 (check_sigtramp2): Ditto.
4104 * blockframe.c (create_new_frame): Ditto.
4105 (get_prev_frame): Ditto.
4106 * ppc-linux-tdep.c: Update comments.
4107 * i386-linux-tdep.c: Update comments.
4108 * breakpoint.c (bpstat_what): Update comment.
4109
d06f167a
ML
41102002-04-24 Michal Ludvig <mludvig@suse.cz>
4111
4112 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 4113 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
4114 ptrace() calls.
4115 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4116
4867e41e
DM
41172002-04-24 David S. Miller <davem@redhat.com>
4118
21d83aa5
DM
4119 * i960-tdep.c (register_in_window_p): New function.
4120 (i960_find_saved_register): Use it instead of
4121 REGISTER_IN_WINDOW_P.
4122 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4123
4867e41e
DM
4124 * symtab.h (find_stab_function_addr): Kill extern.
4125 * minsyms.c (find_stab_function_addr): Remove from here...
4126 * dbxread.c: ... to here, and mark it static.
4127
69cdf6a2
DM
41282002-04-20 David S. Miller <davem@redhat.com>
4129
4130 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4131 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4132
5a595886
DM
41332002-04-21 David S. Miller <davem@redhat.com>
4134
4135 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4136 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4137 (vx_write_register): Likewise.
4138
1da1a192
JB
41392002-04-23 J. Brobecker <brobecker@gnat.com>
4140
4141 * source.c (is_regular_file): New function.
4142 (openp): Check wether file to open is a regular file
4143 to avoid opening directories.
4144
baa6f10b
JT
41452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4146
4147 * findvar.c (extract_signed_integer): Cast printf argument
4148 to suppress format warning.
4149 (extract_unsigned_integer): Likewise.
4150 * infcmd.c (registers_info): Likewise.
4151 * top.c (get_prompt_1): Likewise.
4152 * valops.c (value_assign): Likewise.
4153 * valprint.c (print_decimal): Likewise.
4154
b2c4da81
L
41552002-04-22 H.J. Lu (hjl@gnu.org)
4156
4157 * c-exp.y (typebase): Support
361d1df0 4158
b2c4da81
L
4159 [long|long long|short] [signed|unsigned] [int|]
4160
4161 and
4162
4163 signed [long|long long|short] int
4164
f267bd6a
JT
41652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4166
4167 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4168 and vax-tdep.h.
4169 * vax-tdep.h: New file.
4170 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4171 Make several routines static.
4172 (vax_get_saved_register): New function.
4173 (vax_gdbarch_init): New function.
4174 (_initialize_vax_tdep): Register vax_gdbarch_init.
4175 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4176 Remove macros now under the control of gdbarch.
4177
da3c6d4a
MS
41782002-04-22 Michael Snyder <msnyder@redhat.com>
4179
11d3b27d
MS
4180 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4181 Some whitespace and coding standards tweaks.
da3c6d4a 4182
a33f7558
JT
41832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4184
4185 * vax-tdep.c: Include regcache.h.
4186 (vax_call_dummy_words): New.
4187 (sizeof_vax_call_dummy_words): New.
4188 (vax_fix_call_dummy): New function.
4189 (vax_saved_pc_after_call): Ditto.
4190 * config/vax/tm-vax.h: Don't include regcache.h.
4191 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4192 (CALL_DUMMY): Remove.
4193 (CALL_DUMMY_WORDS): Define.
4194 (SIZEOF_CALL_DUMMY_WORDS): Define.
4195 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4196
47a73475
MS
41972002-04-18 Michael Snyder <msnyder@redhat.com>
4198
4199 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4200
52efde73
JT
42012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4202
4203 * vax-tdep.c (vax_frame_chain): New function.
4204 (vax_push_dummy_frame): Ditto.
4205 (vax_pop_frame): Ditto.
4206 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4207 (FRAMELESS_FUNCTION_INVOCATION): Use
4208 generic_frameless_function_invocation_not.
4209 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4210 (POP_FRAME): Use vax_pop_frame.
4211
ea74468c
JT
42122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4213
4214 * vax-tdep.c (vax_store_struct_return): New function.
4215 (vax_extract_return_value): Ditto.
4216 (vax_store_return_value): Ditto.
4217 (vax_extract_struct_value_address): Ditto.
4218 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4219 vax_store_struct_return.
4220 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4221 (STORE_RETURN_VALUE): Use vax_store_return_value.
4222 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4223
5516aa92
JT
42242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4225
4226 * vax-tdep.c (vax_frame_saved_pc): New function.
4227 (vax_frame_args_address_correct): Ditto.
4228 (vax_frame_args_address): Ditto.
4229 (vax_frame_locals_address): Ditto.
4230 (vax_frame_num_args): Move code to be in proximity to
4231 other frame-related functions.
4232 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4233 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4234 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4235 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4236 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4237
36af0b35
L
42382002-04-22 H.J. Lu (hjl@gnu.org)
4239
4240 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4241 includedir.
4242
ab62c900
JT
42432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4244
4245 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4246 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4247 (FRAME_INIT_SAVED_REGS): New macro.
4248
7232b100
JT
42492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4250
4251 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4252
b70d2aee
JT
42532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4254
4255 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4256 where needed.
4257 (fetch_osf_core_registers): Likewise.
4258 (supply_gregset): Likewise.
4259
a0e8a2d1 42602002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 4261
a0e8a2d1
JB
4262 * symfile.h (get_section_index): Define.
4263 * symfile.c (get_section_index): New function.
4264 * mdebugread.c (SC_IS_SBSS): New macro.
4265 (SC_IS_BSS): Return true for the scBss storage class only, as
4266 the scSBss storage class refers to the .sbss section.
4267 (parse_partial_symbols): Discard the symbols which associated
4268 section does not exist.
4269 Make sure to use the .sbss section index for symbols which
4270 storage class is scBss, rather than using the .bss section index.
4271
51eb8b08
JT
42722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4273
4274 * vax-tdep.c: Update copyright years.
4275 (vax_register_name): New function.
4276 (vax_register_byte): Ditto.
4277 (vax_register_raw_size): Ditto.
4278 (vax_register_virtual_size): Ditto.
4279 (vax_register_virtual_type): Ditto.
4280 * config/vax/tm-vax.h: Update copyright years.
4281 (REGISTER_NAMES): Remove.
4282 (REGISTER_NAME): Define.
4283 (REGISTER_BYTE): Use vax_register_byte.
4284 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4285 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4286 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4287
6cc1c0a8
AC
42882002-04-21 Andrew Cagney <ac131313@redhat.com>
4289
4290 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4291 declaration
4292 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4293
9319a2fe
DM
42942002-04-21 David S. Miller <davem@redhat.com>
4295
4296 * arch-utils.c (generic_prologue_frameless_p): Kill
4297 SKIP_PROLOGUE_FRAMELESS_P code.
4298 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4299 references.
4300 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4301 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4302 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4303 references.
4304 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4305 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4306 (sparc_gdbarch_init): Pass it to
4307 set_gdbarch_prologue_frameless_p.
a0e8a2d1 4308
e9ed6d01
JT
43092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4310
4311 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4312 (alphabsd-nat.o): New dependency list.
4313
36012033
JT
43142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4315
4316 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4317 alphafbsd-tdep.c.
4318 (alpha-linux-tdep.o): New dependency list.
4319 (alphafbsd-tdep.o): Likewise.
4320
3379287a
JT
43212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4322
4323 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4324 to here...
4325 * alpha-tdep.c: ...from here.
4326 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4327
4bcbd6cb
JT
43282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4329
4330 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4331 prototype from here...
4332 * alpha-tdep.h: ...to here.
4333
b31da25e
AC
43342002-04-21 Andrew Cagney <ac131313@redhat.com>
4335
4336 * frame.h (selected_frame_level): Document as deprecated.
4337 (frame_relative_level): Declare.
4338 * stack.c (frame_relative_level): New function.
4339 (selected_frame_level): Document as deprecated.
4340 (select_frame): Do not set the selected_frame_level.
4341
4342 * stack.c (frame_info, record_selected_frame): Update.
4343 (frame_command, current_frame_command): Update.
4344 (up_silently_base, up_command, down_silently_base): Update.
4345 (down_command): Update.
4346 * inflow.c (kill_command): Update.
4347 * tracepoint.c (finish_tfind_command): Update.
4348 * corelow.c (core_open): Update.
4349 * thread.c (info_threads_command): Update.
4350 (do_captured_thread_select): Update.
4351 * infcmd.c (finish_command): Update.
4352 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4353
9c1d6fe5
JT
43542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4355
4356 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4357
ab89facf
AC
43582002-04-21 Andrew Cagney <ac131313@redhat.com>
4359
4360 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4361 type const.
4362
82a4efa1
JT
43632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4364
4365 * alphafbsd-tdep.c: Update copyright years. Include
4366 alpha-tdep.h.
4367 (alphafbsd_use_struct_convention): Make static.
4368 (alphafbsd_init_abi): New function.
4369 (_initialize_alphafbsd_tdep): New function.
4370 * config/alpha/tm-fbsd.h: Update copyright years.
4371 (USE_STRUCT_CONVENTION): Remove.
4372
44dffaac
JT
43732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4374
4375 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4376 an Alpha ABI variant.
4377 (alpha_abi_handler_list): Declare.
4378 (alpha_gdbarch_register_os_abi): New function.
4379 (alpha_gdbarch_init): Give registered ABI variant handlers a
4380 chance to tweak the gdbarch once we have set up defaults.
4381 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4382
65585be4
JT
43832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4384
4385 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4386 to standard_coerce_float_to_double.
4387 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4388
d9b023cc
JT
43892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4390
4391 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4392 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4393 from gdbarch_tdep rather than a constant.
4394 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4395 the default text address for all Alpha Unix ABIs.
4396 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4397 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4398
dc129d82
JT
43992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4400
4401 * alpha-tdep.h: New file. Includes several Alpha target constants
4402 taken from...
4403 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4404 let gdbarch deal with.
4405 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4406 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4407 to dependency list.
4408 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4409 Alpha target register names.
4410 * alphabsd-nat.c: Likewise.
4411 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4412 Alpha target register names. Make serveral routines static.
4413 (alpha_get_saved_register): New function.
4414 (alpha_abi_names): New.
4415 (process_note_abi_tag_sections): New function.
4416 (get_elfosabi): New function.
4417 (alpha_gdbarch_init): New function.
4418 (alpha_dump_tdep): New function.
4419 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4420
d49d1e0a
AC
44212002-04-21 Andrew Cagney <ac131313@redhat.com>
4422
4423 * frame.c (find_saved_register): Delete #ifdef
4424 HAVE_REGISTER_WINDOWS code.
4425 * config/sparc/tm-sparc.h: Update comments.
4426 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4427
92e8c9ed
AC
44282002-04-21 Andrew Cagney <ac131313@redhat.com>
4429
4430 * i960-tdep.c (i960_find_saved_register): New function.
4431 (i960_get_saved_register): New function.
4432 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4433 (i960_get_saved_register): Declare.
4434 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4435
e1925118
DM
44362002-04-20 David S. Miller <davem@redhat.com>
4437
4438 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4439
29673b29
AC
44402002-04-20 Andrew Cagney <ac131313@redhat.com>
4441
4442 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4443 instead of NUM_PSEUDO_REGS.
4444
6c86dcd5
DM
44452002-04-20 David S. Miller <davem@redhat.com>
4446
4447 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4448 GDB_MULTI_ARCH_PARTIAL
4449 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4450 define, let tm-sp64.h do it.
4451
aa40ec90
JT
44522002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4453
4454 * frame.c (find_saved_register): Avoid a NULL pointer
4455 dereference and actually walk the frame list.
4456
0f79675b
AC
44572002-04-20 Andrew Cagney <ac131313@redhat.com>
4458
4459 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4460 sorted in most most-recent-used order. Document.
4461 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4462
c04a1aa8
DJ
44632002-04-20 Daniel Jacobowitz <drow@mvista.com>
4464
4465 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4466 (add_inferior): Call create_register_cache.
4467 (clear_inferiors): Call free_register_cache.
4468 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4469 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4470 (registers): Remove.
4471 (get_regcache): New function.
4472 (create_register_cache, free_register_cache): New functions.
4473 (set_register_cache): Don't initialize the register cache here.
4474 (registers_to_string, registers_from_string, register_data): Call
4475 get_regcache.
4476 * gdbserver/regcache.h: Add prototypes.
4477 * gdbserver/server.h: Likewise.
4478
611cb4a5
DJ
44792002-04-20 Daniel Jacobowitz <drow@mvista.com>
4480
4481 * gdbserver/mem-break.c: New file.
4482 * gdbserver/mem-break.h: New file.
4483 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4484 dependencies.
4485 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4486 member.
4487 (clear_inferiors): Free target_data member if set.
4488 (inferior_target_data, set_inferior_target_data): New functions.
4489 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4490 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4491 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4492 (struct inferior_linux_data): New.
4493 (linux_create_inferior): Use set_inferior_target_data.
4494 (linux_attach): Likewise. Call add_inferior.
4495 (linux_wait_for_one_inferior): New function.
4496 (linux_wait): Call it.
4497 (linux_write_memory): Add const.
4498 (initialize_low): Call set_breakpoint_data.
4499 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4500 handling members.
4501 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4502 call.
4503 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4504 prototypes.
4505 * gdbserver/target.c (read_inferior_memory)
4506 (write_inferior_memory): New functions.
4507 * gdbserver/target.h (read_inferior_memory)
4508 (write_inferior_memory): Change macros to prototypes.
4509 (struct target_ops): Update comments. Add const to write_memory
4510 definition.
4511
f91305dd 45122002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
4513
4514 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4515 instead of ->prev.
4516 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4517 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4518 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4519 instead of ->prev.
4520
73d322b1
EZ
45212002-04-19 Elena Zannoni <ezannoni@redhat.com>
4522
4523 Fix PR gdb/471.
4524 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4525 (build_builtin_type_vec128): Ditto.
4526 (append_composite_type_field): Fix calculation of type length in
4527 union case.
4528
ccd9a834
EZ
45292002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4530
4531 * config/djgpp/README: Update.
4532
4533 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4534 compiler warnings.
4535
a57f9e49
JT
45362002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4537
4538 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4539 (alpha_setup_arbitrary_frame): ...to this.
4540 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4541 for alpha_setup_arbitrary_frame.
4542
f4f9705a
AC
45432002-04-18 Andrew Cagney <cagney@redhat.com>
4544
4545 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4546 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4547
f4f9705a
AC
4548 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4549 * target.h (memory_breakpoint_from_pc): Update declaration.
4550 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4551
4552 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4553 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4554 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4555 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4556 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4557 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4558 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4559 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4560 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4561 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4562 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4563 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4564
4565 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4566 const pointer.
4567 * monitor.c (monitor_insert_breakpoint): Ditto.
4568 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4569
4570 * config/mcore/tm-mcore.h: Update copyright.
4571 * mem-break.c: Ditto.
4572 * xstormy16-tdep.c: Ditto.
4573
29f319b8
PM
45742002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4575
4576 * p-exp.y: Add precedence rule for '^' token.
4577 This removes the shift/reduce conflicts.
4578 Remove the comment concerning these shift/reduce conflicts.
4579
ebeac11a
EZ
45802002-04-18 Elena Zannoni <ezannoni@redhat.com>
4581
4582 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4583 (registers_powerpc_nofp): New register set for processors
4584 without floating point unit.
4585
27c31547
DM
45862002-04-18 David S. Miller <davem@redhat.com>
4587
4588 * MAINTAINERS: Add myself to write-after-approval.
4589
47a73475
MS
45902002-04-17 Michael Snyder <msnyder@redhat.com>
4591
4592 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4593
953836b2
AC
45942002-04-17 Andrew Cagney <ac131313@redhat.com>
4595
4596 * rs6000-tdep.c (frame_initial_stack_address): Use
4597 frame_register_read to read the alloca_reg.
4598
8b0d4340
AC
45992002-04-17 Andrew Cagney <ac131313@redhat.com>
4600
4601 * frame.c (find_saved_register): Find saved registers in the next
4602 not prev frame.
4603 Fix PR gdb/365.
4604
d8864532
AC
46052002-04-17 Andrew Cagney <ac131313@redhat.com>
4606
4607 * gdbarch.sh (LANG): Set to ``c''.
4608
36cc83a3 46092002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 4610
36cc83a3 4611 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 4612
2f4150cc 46132002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
4614
4615 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4616 Update copyright.
4617
628703c6 4618 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 4619 Also fix PR gdb/391.
361d1df0 4620
56157b4a
AC
46212002-04-14 Andrew Cagney <ac131313@redhat.com>
4622
4623 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4624 * aclocal.m4, configure: Re-generate.
4625 Fix PR gdb/391.
361d1df0 4626
6d1e3329
EZ
46272002-04-14 Elena Zannoni <ezannoni@redhat.com>
4628
4629 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4630 instead of tm_print_insn.
4631
cb06fa07
EZ
46322002-04-14 Elena Zannoni <ezannoni@redhat.com>
4633
4634 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4635
f208ba17
AC
46362002-04-14 Andrew Cagney <ac131313@redhat.com>
4637
4638 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4639 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4640 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4641
20f01a46
DH
46422002-04-12 Don Howard <dhoward@redhat.com>
4643
4644 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4645 max_user_call_depth.
4646 (init_cmd_lists): Initialize the new value;
4647 * cli/cli-script.c (execute_user_command): Limit the call depth of
4648 user defined commands. This avoids a core-dump when user commands
4649 are infinitly recursive.
4650
a88376a3
KB
46512002-04-12 Kevin Buettner <kevinb@redhat.com>
4652
4653 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4654 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4655 from tdep struct instead of DEFAULT_LR_SAVE.
4656 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4657 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4658 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4659
f2172603
MS
46602002-04-12 Michael Snyder <msnyder@redhat.com>
4661
694f61fb 4662 * Remote.c: Spelling fix.
20fe79c8
MS
4663 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4664 If no symbol found for "sbrk", try "_sbrk".
4665 (make_output_phdrs): Use bfd_section_name.
4666 (gcore_copy_callback): Use bfd_section_name.
62995fc4 4667 * eval.c: Indentation fix-ups.
169a7369
MS
4668 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4669 in case it gets applied to an address that is already
4670 in the instruction space.
de74f71f
MS
4671 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4672 * symfile.c: Fix indentation, long lines.
f2172603
MS
4673 * source.c: White space fix-up.
4674
cda5a58a
AC
46752002-04-12 Andrew Cagney <cagney@redhat.com>
4676
4677 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4678 * frame.c (frame_register_read): New function. Return non-zero on
4679 success.
4680 (read_relative_register_raw_bytes_for_frame): Delete.
4681 (read_relative_register_raw_bytes): Delete.
4682 * frame.h (frame_register_read): Declare.
4683 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4684 * sh-tdep.c: Ditto.
4685 * infcmd.c (do_registers_info): Ditto.
4686 * hppa-tdep.c: Ditto.
4687 * rs6000-tdep.c: Ditto.
4688 * h8500-tdep.c: Ditto.
4689 * mips-tdep.c: Ditto.
4690 * h8300-tdep.c: Ditto.
4691 * z8k-tdep.c: Ditto.
4692
2ea5f656
KB
46932002-04-12 Kevin Buettner <kevinb@redhat.com>
4694
4695 From Jimi X <jimix@watson.ibm.com>:
4696 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4697 64-bit SysV ABI.
4698
27b15785
KB
46992002-04-12 Kevin Buettner <kevinb@redhat.com>
4700
4701 From Jimi X <jimix@watson.ibm.com>:
4702 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4703 bfd info.
4704
5d57ee30
KB
47052002-04-12 Kevin Buettner <kevinb@redhat.com>
4706
4707 From Jimi X <jimix@watson.ibm.com>:
4708 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4709 register sets for these processor variants.
4710
bc1e36ca
DJ
47112002-04-11 Daniel Jacobowitz <drow@mvista.com>
4712
4713 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4714 registers which are allowed to fail to store.
4715 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4716 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4717 (ppc_cannot_store_register): FPSCR may not be storable.
4718 * regformats/reg-ppc.dat: Support FPSCR.
4719
e3f36dbd
KB
47202002-04-11 Kevin Buettner <kevinb@redhat.com>
4721
4722 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4723 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4724 Add fpscr as an invalid/unfetchable register.
4725 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4726 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4727 (fill_fpregset): Add support for register fpscr.
4728 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4729 (fill_gregset): Account for the fact that register ``mq'' might
4730 not exist.
4731 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4732 (registers_power): Add fpscr to register set at slot 71.
4733 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4734 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4735
943c9c25
MS
47362002-04-11 Michael Snyder <msnyder@redhat.com>
4737
4738 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4739 * configure: Regenerate.
4740 * config.in: Regenerate.
4741 * acconfig.h: Add define for _SYSCALL32.
4742 * core-sol2.c: Remove #define _SYSCALL32.
4743 * solib-legacy.c: Remove #define _SYSCALL32.
4744
d8c0a2e7
AC
47452002-04-10 Andrew Cagney <ac131313@redhat.com>
4746
4747 * stack.c (select_frame): Cleanup internal error message, do not
4748 use %p.
4749
7cc19214
AC
47502002-04-10 Andrew Cagney <ac131313@redhat.com>
4751
4752 * stack.c (select_frame): Check that selected_frame and the
4753 specified level are as expected.
4754 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4755 Update copyright.
4756 * frame.h (struct frame_info): Add field `level'. Update
4757 copyright.
4758 Work-in-progress PR gdb/464.
4759
67a2b77e
AC
47602002-04-10 Andrew Cagney <ac131313@redhat.com>
4761
4762 * maint.c (maint_print_section_info): Rename print_section_info.
4763 (print_bfd_section_info, print_objfile_section_info): Update.
4764 * inferior.h (struct gdbarch): Add opaque declaration.
4765 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4766 * gdbarch.h: Regenerate.
4767
8cfda98c
ML
47682002-04-10 Michal Ludvig <mludvig@suse.cz>
4769
4770 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4771 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4772 (kernel_u_size): Added.
4773 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4774 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4775
ca439ad2 47762002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 4777
ca439ad2
JI
4778 * valarith.c (find_size_for_pointer_math): New function, either returns
4779 the size for a pointer's target, returns 1 for void *, or errors for
4780 incomplete types.
4781 (value_add, value_sub): use find_size_for_pointer_math.
4782
2f2893d9
DJ
47832002-04-09 Daniel Jacobowitz <drow@mvista.com>
4784
4785 * linux-low.c (linux_look_up_symbols): New hook.
4786 (linux_target_ops): Add linux_look_up_symbols.
4787 * remote-utils.c (decode_address): New function.
4788 (look_up_one_symbol): New function.
4789 * server.c (handle_query): Call target look_up_symbols hook.
4790 * server.h (look_up_one_symbol): Add prototype.
4791 * target.h (struct target_ops): Add look_up_symbols hook.
4792
2ec06d2e
DJ
47932002-04-09 Daniel Jacobowitz <drow@mvista.com>
4794
d64b8841
DJ
4795 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4796 * ChangeLog: Correct paths in last ChangeLog entry.
4797
47982002-04-09 Daniel Jacobowitz <drow@mvista.com>
4799
4800 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
4801 (struct linux_target_ops): New.
4802 (extern the_low_target): New.
d64b8841 4803 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
4804 (register_addr): Use the_low_target explicitly.
4805 (fetch_register): Likewise.
4806 (usr_fetch_inferior_registers): Likewise.
4807 (usr_store_inferior_registers): Likewise.
d64b8841 4808 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
4809 (arm_num_regs): Define.
4810 (arm_regmap): Renamed from regmap, made static.
4811 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4812 made static.
4813 (arm_cannot_store_register): Renamed from cannot_store_register,
4814 made static.
4815 (the_low_target): New.
d64b8841 4816 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
4817 (i386_num_regs): Define.
4818 (i386_regmap): Renamed from regmap, made static.
4819 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4820 made static.
4821 (i386_cannot_store_register): Renamed from cannot_store_register,
4822 made static.
4823 (the_low_target): New.
d64b8841 4824 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
4825 (ia64_num_regs): Define.
4826 (ia64_regmap): Renamed from regmap, made static.
4827 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4828 made static.
4829 (ia64_cannot_store_register): Renamed from cannot_store_register,
4830 made static.
4831 (the_low_target): New.
d64b8841 4832 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
4833 (m68k_num_regs): Define.
4834 (m68k_regmap): Renamed from regmap, made static.
4835 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4836 made static.
4837 (m68k_cannot_store_register): Renamed from cannot_store_register,
4838 made static.
4839 (the_low_target): New.
d64b8841 4840 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
4841 (mips_num_regs): Define.
4842 (mips_regmap): Renamed from regmap, made static.
4843 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4844 made static.
4845 (mips_cannot_store_register): Renamed from cannot_store_register,
4846 made static.
4847 (the_low_target): New.
d64b8841 4848 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
4849 (ppc_num_regs): Define.
4850 (ppc_regmap): Renamed from regmap, made static.
4851 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4852 made static.
4853 (ppc_cannot_store_register): Renamed from cannot_store_register,
4854 made static.
4855 (the_low_target): New.
d64b8841 4856 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
4857 (s390_num_regs): Define.
4858 (s390_regmap): Renamed from regmap, made static.
4859 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4860 made static.
4861 (s390_cannot_store_register): Renamed from cannot_store_register,
4862 made static.
4863 (the_low_target): New.
d64b8841 4864 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
4865 (sh_num_regs): Define.
4866 (sh_regmap): Renamed from regmap, made static.
4867 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4868 made static.
4869 (sh_cannot_store_register): Renamed from cannot_store_register,
4870 made static.
4871 (the_low_target): New.
d64b8841 4872 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
4873 (the_low_target): New.
4874
96cb11df
AC
48752002-04-09 Andrew Cagney <ac131313@redhat.com>
4876
4877 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4878 override FP_REGNUM with frame->fp. Update copyright.
4879 * parse.c (num_std_regs, std_regs): Delete.
4880 (target_map_name_to_register): Do not search std_regs. Update
4881 function description.
4882 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4883 declarations. Update copyright.
4884 Fix PR gdb/251.
361d1df0 4885
c3a3ccc7
DJ
48862002-04-09 Daniel Jacobowitz <drow@mvista.com>
4887
4888 * gdbserver/Makefile.in: Add stamp-h target.
4889 * gdbserver/configure.in: Create stamp-h.
4890 * gdbserver/configure: Regenerated.
4891
ce3a066d
DJ
48922002-04-09 Daniel Jacobowitz <drow@mvista.com>
4893
4894 * gdbserver/inferiors.c: New file.
4895 * gdbserver/target.c: New file.
4896 * gdbserver/target.h: New file.
4897 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4898 dependencies.
4899 * gdbserver/linux-low.c (inferior_pid): New static variable,
4900 moved from server.c.
4901 (linux_create_inferior): Renamed from create_inferior.
4902 Call add_inferior. Return 0 on success instead of a PID.
4903 (linux_attach): Renamed from myattach.
4904 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
4905 (linux_thread_alive): Renamed from mythread_alive.
4906 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
4907 child dies.
4908 (linux_resume): Renamed from myresume. Add missing ``return 0''.
4909 (regsets_store_inferior_registers): Correct error message.
4910 Add missing ``return 0''.
4911 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4912 (linux_store_registers): Renamed from store_inferior_registers.
4913 (linux_read_memory): Renamed from read_inferior_memory.
4914 (linux_write_memory): Renamed from write_inferior_memory.
4915 (linux_target_ops): New structure.
4916 (initialize_low): Call set_target_ops ().
4917 * gdbserver/remote-utils.c (unhexify): New function.
4918 (hexify): New function.
4919 (input_interrupt): Send signals to ``signal_pid''.
4920 * gdbserver/server.c (inferior_pid): Remove.
4921 (start_inferior): Update create_inferior call.
4922 (attach_inferior): Call add_inferior.
4923 (handle_query): New function.
4924 (main): Call handle_query for `q' packets.
4925 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4926 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4927
0729219d
DJ
49282002-04-09 Daniel Jacobowitz <drow@mvista.com>
4929
4930 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4931 dependencies.
4932 * gdbserver/configure.in: Check for <string.h>
4933 * gdbserver/configure: Regenerate.
4934 * gdbserver/config.in: Regenerate.
4935 * gdbserver/gdbreplay.c: Include needed system headers.
4936 (remote_open): Remove strchr prototype.
4937 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4938 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4939 (supply_register_by_name): Likewise.
4940 (collect_register): Change buf argument to void *.
4941 (collect_register_by_name): Likewise.
4942 * gdbserver/regcache.h: Add missing prototypes.
4943 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4944 * gdbserver/server.c (handle_query): New function.
4945 (attached): New static variable, moved out of main.
4946 (main): Quiet longjmp clobber warnings.
4947 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4948 * gdbserver/utils.c (error): Remove NORETURN.
4949 (fatal): Likewise.
4950
97658e92
DJ
49512002-04-09 Daniel Jacobowitz <drow@mvista.com>
4952
4953 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4954 after the last symbol in a block.
4955
6044e3eb
PM
49562002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
4957
4958 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4959 is non zero as a found symbol.
4960
0406ec40
AC
49612002-04-08 Andrew Cagney <ac131313@redhat.com>
4962
4963 * findvar.c: Include "builtin-regs.h".
4964 (value_of_register): Call value_of_builtin_reg when applicable.
4965 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4966 (target_map_name_to_register): Call
4967 builtin_reg_map_name_to_regnum.
4968 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4969 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4970 (builtin_regs_h): Define.
4971 (builtin-regs.o): New target.
4972 (findvar.o): Add $(builtin_regs_h).
4973 * builtin-regs.c, builtin-regs.h: New files.
4974 * std-regs.c: New file.
4975 Partial fix for PR gdb/251.
4976
56a6dfb9
KB
49772002-04-08 Kevin Buettner <kevinb@redhat.com>
4978
4979 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4980 it's no longer required.
4981
3a808432
AC
49822002-04-08 Andrew Cagney <ac131313@redhat.com>
4983
4984 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4985
7c40d541
KB
49862002-04-08 Kevin Buettner <kevinb@redhat.com>
4987
4988 From Jimi X <jimix@watson.ibm.com>:
4989 * rs6000-tdep.c (rs6000_software_single_step): Use
4990 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4991 and size. Use target_insert_breakpoint() and
4992 target_remove_breakpoint() to insert and remove breakpoints
4993 instead of explicit memory reads and writes.
4994
cc9836a8
KB
49952002-04-08 Kevin Buettner <kevinb@redhat.com>
4996
4997 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4998 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4999 ELF_OBJECT_FORMAT ifdef.
5000
7495d1dc
KB
50012002-04-08 Kevin Buettner <kevinb@redhat.com>
5002
5003 From Jimi X <jimix@watson.ibm.com>:
5004 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5005
4288e836
KB
50062002-04-08 Kevin Buettner <kevinb@redhat.com>
5007
5008 From Jimi X <jimix@watson.ibm.com>:
5009 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5010 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5011
a4e4e501
MK
50122002-04-07 Mark Kettenis <kettenis@gnu.org>
5013
5014 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5015 s/asprintf/xasprintf/.
5016 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5017
006defba
AC
50182002-04-07 Andrew Cagney <ac131313@redhat.com>
5019
5020 I believe Jeff Law denies responsability for this one:
5021 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5022 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5023 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5024 Work-around for PR gdb/366.
5025
7aa83cac
EZ
50262002-04-07 Elena Zannoni <ezannoni@redhat.com>
5027
5028 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5029 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5030 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5031
cf1fcca1
EZ
50322002-04-07 Elena Zannoni <ezannoni@redhat.com>
5033
5034 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5035 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5036 information.
5037
3f289e6f
AC
50382002-04-07 Andrew Cagney <ac131313@redhat.com>
5039
5040 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5041 maintainer.
5042
129188f6
AC
50432002-04-07 Andrew Cagney <ac131313@redhat.com>
5044
5045 * README (Reporting Bugs in GDB): Document the bug web page as the
5046 prefered way of submitting bugs.
5047 Fix PR gdb/402.
5048
1200cd6e
AC
50492002-04-06 Andrew Cagney <ac131313@redhat.com>
5050
5051 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5052 -1. Update comment.
5053 * gdbarch.h, gdbarch.c: Re-generate.
5054
2853c33c
AS
50552002-04-07 Andreas Schwab <schwab@suse.de>
5056
5057 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5058 buffer to regcache_collect.
5059
c2169756
AC
50602002-04-06 Andrew Cagney <ac131313@redhat.com>
5061
5062 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5063 * gdbarch.c, gdbarch.h: Re-generate.
5064
25f1b008
AC
50652002-04-06 Andrew Cagney <ac131313@redhat.com>
5066
5067 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5068 declaration. Fix -Werror.
5069
59263426
DJ
50702002-04-05 Daniel Jacobowitz <drow@mvista.com>
5071
5072 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5073 * gdbarch.c: Regenerate.
5074
f5db4da3
MS
50752002-04-05 Michael Snyder <msnyder@redhat.com>
5076
80f8a6eb
MS
5077 * breakpoint.c (clear_command): Rewrite middle section to
5078 combine two loops with identical control conditions.
5079 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
5080 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5081
ad3dcc5c
L
50822002-04-05 H.J. Lu (hjl@gnu.org)
5083
5084 * solib-svr4.c (bkpt_names): Add "__start".
5085
f32e7a74
AC
50862002-04-04 Andrew Cagney <ac131313@redhat.com>
5087
5088 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5089 as test for 64 bit target.
5090
8227c0ff
AC
50912002-04-05 Andrew Cagney <ac131313@redhat.com>
5092
5093 * h8500-tdep.c (h8500_write_fp): Delete function.
5094 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5095 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5096 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5098 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5099 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5100 (s390_write_fp):
5101 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5102 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5103 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5104 (d10v_write_fp): Delete function.
5105 * inferior.h (write_fp, generic_target_write_fp): Delete
5106 declarations.
5107 * regcache.c (generic_target_write_fp): Delete function.
5108 (write_fp): Delete function.
5109 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5110 * gdbarch.h, gdbarch.c: Regenerate.
5111 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5112 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5113 (sparc64_write_fp): Delete declaration.
5114 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5115 (h8500_write_fp): Delete declaration.
5116
2757dd86
AC
51172002-04-04 Andrew Cagney <ac131313@redhat.com>
5118
5119 * sparc-tdep.c (sparc64_write_fp): Delete.
5120 (sparc_push_dummy_frame): Replace write_fp call with code to store
5121 the FP directly.
5122 (sparc_gdbarch_init): Do not initialize write_fp.
5123
c69255e1
KB
51242002-04-05 Kevin Buettner <kevinb@redhat.com>
5125
5126 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5127 clause.
5128
ae767bfb
JB
51292002-03-29 Jim Blandy <jimb@redhat.com>
5130
5131 * stack.c (get_selected_block): Add new argument `addr_in_block',
5132 used to return the exact code address we used to select the block,
5133 not just the block.
5134 * blockframe.c (get_frame_block, get_current_block): Same.
5135 * frame.h (get_frame_block, get_current_block,
5136 get_selected_block): Update declarations.
5137 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5138 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5139
84d2ac95
MS
51402002-04-05 Michael Snyder <msnyder@redhat.com>
5141
5142 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5143 warning message.
5144
596aa3bf
JB
51452002-04-05 J. Brobecker <brobecker@gnat.com>
5146
5147 * utils.c (xfullpath): New function.
5148 * defs.h (xfullpath): Add declaration.
5149 * source.c (openp): Use xfullpath in place of gdb_realpath to
5150 avoid resolving the basename part of filenames when the
5151 associated file is a symbolic link. This fixes a potential
5152 inconsistency between the filenames known to GDB and the
5153 filenames it prints in the annotations.
5154 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5155 to be able to match a filename with either the real filename, or
5156 the name of any symbolic link to this file.
5157 (lookup_partial_symtab): Ditto.
5158
c02f5703
MS
51592002-04-04 Michael Snyder <msnyder@redhat.com>
5160
5161 * breakpoint.c: Add support for hardware breakpoints in overlays.
5162 (overlay_events_enabled): New state variable.
5163 (insert_breakpoints): Use overlay_events_enabled to decide
5164 whether to attempt to set a breakpoint at the overlay load addr.
5165 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5166 (remove_breakpoint): Use overlay_events_enabled to decide
5167 whether breakpoints need to be removed from overlay load addr.
5168 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5169 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 5170 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
5171 disable_overlay_breakpoints): Update overlay_events_enabled.
5172
5fb290d7
DJ
51732002-04-04 Daniel Jacobowitz <drow@mvista.com>
5174
5175 * dwarf2read.c (struct function_range): New.
5176 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5177 (check_cu_functions): New.
5178 (read_file_scope): Initialize global function lists.
5179 Call dwarf_decode_line after processing children.
5180 (read_func_scope): Add to global function list.
5181 (dwarf_decode_lines): Call check_cu_functions everywhere
5182 record_line is called. Call record_line with a linenumber
5183 of 0 to mark sequence ends.
5184
7b3fabf0
ML
51852002-04-04 Michal Ludvig <mludvig@suse.cz>
5186
361d1df0 5187 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
5188 change sync with glibc.
5189
bce58c09
JB
51902002-04-03 Jim Blandy <jimb@redhat.com>
5191
5192 * configure.in: Call AC_C_INLINE.
5193 * configure: Regenerated.
361d1df0 5194
2fccf04a
DJ
51952002-04-01 Daniel Jacobowitz <drow@mvista.com>
5196
5197 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5198 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5199
2d1bfe2e
MK
52002002-03-31 Mark Kettenis <kettenis@gnu.org>
5201
a5941fbf
MK
5202 * NEWS: Mention gcore support on FreeBSD/i386.
5203
a90cd31d
MK
5204 * fbsd-proc.c: New file.
5205 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5206 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5207
2d1bfe2e
MK
5208 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5209 while statement.
5210
9eb6e5a1
JB
52112002-03-29 Jim Blandy <jimb@redhat.com>
5212
5213 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5214 unescaped newlines in string literals, but newer ones don't. So
5215 escape them.
5216
f02df580
MS
52172002-03-26 Michael Snyder <msnyder@redhat.com>
5218 Andrew Cagney <cagney@redhat.com>
5219
361d1df0 5220 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
5221 restore file to memory.
5222 * cli/cli-dump.h: New file.
5223 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 5224 * NEWS: Mention new commands.
f02df580 5225
109f874e
MS
52262002-03-28 Michael Snyder <msnyder@redhat.com>
5227
5228 * symfile.c (symbol_file_add): Move test for null symbols to later.
5229
520f6ade
AC
52302002-03-27 Andrew Cagney <ac131313@redhat.com>
5231
5232 From veksler at il.ibm.com:
5233 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5234 the xstrduped original path.
5235 Fix PR gdb/417.
5236
d4654627
MS
52372002-03-27 Michael Snyder <msnyder@redhat.com>
5238
5239 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5240 * infcmd.c (_initialize_infcmd): Ditto.
5241 * language.c (_initialize_language): Ditto.
5242 * symfile.c (_initialize_symfile): Ditto.
5243 * top.c (_init_main): Ditto.
5244 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5245
6be8bc0c
EZ
52462002-03-27 Elena Zannoni <ezannoni@redhat.com>
5247
5248 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5249 vector registers handling.
5250 (skip_prologue): Handle new AltiVec instructions. Fill in new
5251 fields of frame data.
5252 (frame_get_saved_regs): Fill in information for AltiVec registers.
5253
12af6855
JB
52542002-03-27 Jim Blandy <jimb@redhat.com>
5255
5256 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5257 a function; leave this macro here to invoke that function.
5258 (symbol_init_mangled_name): Declaration for that function.
5259 * symtab.c (symbol_init_mangled_name): New function.
5260
dc672865
AC
52612002-03-27 Andrew Cagney <ac131313@redhat.com>
5262
5263 * valarith.c: Replace strerror with safe_strerror.
5264 * tracepoint.c: Ditto.
5265 * lin-lwp.c: Ditto.
5266 * go32-nat.c: Ditto.
5267 * inflow.c: Ditto.
5268 * gnu-nat.c: Ditto.
5269
d96429cd
AS
52702002-03-27 Andreas Schwab <schwab@suse.de>
5271
5272 * event-top.c (command_line_handler): Remove useless if.
5273
7e336ba1
AJ
52742002-03-27 Andreas Jaeger <aj@suse.de>
5275
5276 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5277 comment.
5278
de220d0f
ML
52792002-03-27 Michal Ludvig <mludvig@suse.cz>
5280
5281 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5282 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5283 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5284 (x86_64_linux_dr_get_status, supply_gregset),
5285 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5286 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5287 (x86_64_register_info_table): Add.
5288 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5289 (x86_64_register_raw_size, x86_64_register_virtual_type),
5290 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5291 general x86_64_register_info_table.
5292 (i386_gdbarch_init): gdbarch_register_bytes is now set
5293 dynamicaly during initialization.
5294 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5295 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 5296
0e98d0a7
DJ
52972002-03-27 Daniel Jacobowitz <drow@mvista.com>
5298
5299 * gdbserver/server.c (main): Call target_signal_to_host_p
5300 and target_signal_to_host on signals received from the remote.
5301 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5302 target_signal_from_host on signals sent to the remote.
5303 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5304 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5305
3130066b
DJ
53062002-03-27 Daniel Jacobowitz <drow@mvista.com>
5307
5308 * signals/signals.c: Include "server.h" in gdbserver build.
5309 (target_signal_from_name): Don't use STREQ.
5310 (_initialize_signals): Likewise. Don't include function in
5311 gdbserver build.
5312
9aedf4f4
DJ
53132002-03-27 Daniel Jacobowitz <drow@mvista.com>
5314
5315 * signals.c: Moved to...
5316 * signals/signals.c: Here.
7e336ba1 5317 * Makefile (signals.o): Update.
9aedf4f4 5318
3fa41cdb
JL
53192002-03-26 Jeff Law (law@redhat.com)
5320
5321 * somread.c (som_symtab_read): Remove some commented out code and
5322 updated related comments. Do not set the minimal symbol table to
5323 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5324 in a dynamic executable.
5325 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5326 where we are unable to find the minimal symbol for the given
5327 PC value.
5328
ee677e8d
MS
53292002-03-25 Jeff Law (law@redhat.com)
5330
5331 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5332
e76e1718
ML
53332002-03-25 Michal Ludvig <mludvig@suse.cz>
5334
5335 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5336
18a642a1
AC
53372002-03-23 Andrew Cagney <ac131313@redhat.com>
5338
5339 * command.h: Update copyright.
5340 (struct cmd_list_element): Replace definition with opaque
5341 declaration.
5342 (enum cmd_types): Document that it will eventually be moved to
5343 cli/cli-decode.h
5344 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5345 (MALLOCED_REPLACEMENT): Delete macro.
5346 * Makefile.in (cli_decode_h): Add $(command_h).
5347 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 5348 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
5349 * completer.c: Include "cli/cli-decode.h".
5350 * maint.c: Include "cli/cli-decode.h".
5351 * cli/cli-decode.h: Include "command.h".
5352 (enum command_class): Delete.
5353 (enum cmd_types): Comment out.
5354 (enum cmd_auto_boolean): Delete.
5355 (enum var_types): Delete.
5356
b2875cc0
AC
53572002-03-23 Andrew Cagney <ac131313@redhat.com>
5358
5359 * cli/cli-decode.c: Include "gdb_assert.h".
5360 (add_set_or_show_cmd): New static function.
5361 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5362 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5363 all fields, such as func, from the set command.
5364
3b45974e
AC
53652002-03-23 Andrew Cagney <ac131313@redhat.com>
5366
5367 * MAINTAINERS (sh-elf): Change warning flag to -w.
5368
823ca731
AC
53692002-03-23 Andrew Cagney <cagney@redhat.com>
5370
5371 * defs.h (error): Add printf format attribute.
5372 * thread-db.c (thread_from_lwp): Fix error format string.
5373 * stack.c (parse_frame_specification): Ditto.
5374 * cli/cli-decode.c (undef_cmd_error): Ditto.
5375 * scm-lang.c (scm_lookup_name): Ditto.
5376 * tracepoint.c (trace_error): Ditto.
5377 * remote-utils.c (usage): Ditto.
5378 * remote.c (compare_sections_command): Ditto.
5379 Fix PR gdb/328.
5380
0e101458
AC
53812002-03-22 Andrew Cagney <ac131313@redhat.com>
5382
5383 * gdbtypes.c (append_composite_type_field): New function.
5384 (init_composite_type): New function.
5385 * gdbtypes.h (append_composite_type_field): Declare.
5386 (init_composite_type): Ditto.
5387
8e0662df
EZ
53882002-03-22 Elena Zannoni <ezannoni@redhat.com>
5389
5390 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 5391 function.
8e0662df
EZ
5392 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5393 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5394 structure returning convention for SYSV ABI case, but not
5395 for GNU/Linux, FreeBSD, or NetBSD.
5396
3121eff0
DJ
53972002-03-22 Daniel Jacobowitz <drow@mvista.com>
5398
5399 * symtab.h (lookup_block_symbol): Add mangled_name argument
5400 to prototype.
5401
5402 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5403 with new mangled_name argument.
5404 * linespec.c (decode_line_1): Likewise.
5405 * valops (value_of_this): Likewise.
5406 * symtab.c (lookup_transparent_type): Likewise.
5407 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5408 (lookup_symbol): If we are given a mangled name, pass it down
5409 to lookup_symbol_aux.
5410 (lookup_block_symbol): If we are given a mangled name to check
5411 against, only return symbols which match it.
5412
349b409f
CF
54132002-03-22 Christopher Faylor <cgf@redhat.com>
5414
5415 * win32-nat.c (child_create_inferior): Check for proper shell to use
5416 here, in case the user changes it on the fly.
5417 (_initialize_inftarg): Remove shell path considerations.
5418
2a873819
EZ
54192002-03-21 Elena Zannoni <ezannoni@redhat.com>
5420
5421 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5422 for gdbarch_max_register_raw_size and max_register_virtual_size.
5423 Adjust copyright year.
5424
a1b9830c
DJ
54252002-03-21 Daniel Jacobowitz <drow@mvista.com>
5426
5427 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5428 in a function to cover the entire beginning of the function
5429 as well if it does not already.
5430
8b5790f2
TR
54312002-03-21 Tom Rix <trix@redhat.com>
5432
5433 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5434 (rs6000_ptrace64): Renamed from ptrace64.
5435
bdbe5747
MH
54362002-03-20 Martin M. Hunt <hunt@redhat.com>
5437
5438 * gdbserver/remote-utils.c (remote_open): Don't call
5439 getprotobyname, we're all using TCP here so just use
5440 IPPROTO_TCP.
7e336ba1 5441 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
5442
54432002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 5444
bdbe5747
MH
5445 * regcache.c (_initialize_regcache): No need to call
5446 build_regcache() at this time; it gets called whenever
5447 the gdbarch changes.
5448
7781cd62
DB
54492002-03-20 David O'Brien <obrien@FreeBSD.org>
5450
5451 * sparc-nat.c: Include sys/param.h where possible.
5452
f65ca430
DJ
54532002-03-20 Daniel Jacobowitz <drow@mvista.com>
5454
5455 Fix PR gdb/422.
5456 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5457 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5458 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5459 complex types.
5460 * stabsread.c (rs6000_builtin_type): Likewise.
5461 (read_sun_floating_type): Likewise.
5462
0c867556
PS
54632002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5464
5465 * stabsread.c (read_member_functions): Remove skip code for duplicate
5466 constructor/destructor methods. Use standard parsing for these
5467 methods and just do not chain them to the list of methods after
5468 parsing.
5469
12b9c64f
AO
54702002-03-19 Alexandre Oliva <aoliva@redhat.com>
5471
5472 * coffread.c: Remove redundant static declarations. Replace
5473 occurrences of `PTR' with `void *'.
5474 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5475 * top.h (quit_cover): Likewise.
5476 * defs.h (catch_errors): Likewise.
5477
349c5d5f
AC
54782002-03-18 Andrew Cagney <ac131313@redhat.com>
5479
5480 * defs.h (XMALLOC): Define.
5481 * gdb-events.sh (XMALLOC): Delete macro.
5482 * gdb-events.c, gdb-events.h: Regenerate.
5483 * gdbarch.sh (XMALLOC): Delete macro.
5484 * gdbarch.c: Regenerate.
5485 * serial.c (XMALLOC): Delete macro.
5486 * ui-file.c (XMALLOC): Ditto.
5487 * ser-unix.h (XMALLOC): Ditto.
5488 * sh-tdep.c (XMALLOC): Ditto.
5489 * ui-out.c (XMALLOC): Ditto.
5490 * utils.c (XMALLOC): Ditto.
5491 * i386-tdep.c (XMALLOC): Ditto.
5492 * gdb-events.c (XMALLOC): Ditto.
5493 * d10v-tdep.c (XMALLOC): Ditto.
5494 * cli-out.c (XMALLOC): Ditto.
5495
5496 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5497 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5498 * ui-file.c, ui-out.c: Ditto.
5499
7d0766f3
AC
55002002-03-18 Andrew Cagney <ac131313@redhat.com>
5501
5502 * command.h (struct cmd_list_element): Add field context.
5503 (set_cmd_context, get_cmd_context): Declare.
5504 * cli/cli-decode.h: Ditto.
5505 * cli/cli-decode.c (get_cmd_context): New function.
5506 (set_cmd_context): New function.
5507 (add_cmd): Initialize context.
5508 Part of fixing PR gdb/145 and PR gdb/146.
5509
5913bcb0
AC
55102002-03-17 Andrew Cagney <ac131313@redhat.com>
5511
1868c04e
AC
5512 * cli/cli-decode.c (cmd_type): New function.
5513 * command.h (cmd_type): Declare.
5514 * infrun.c (set_schedlock_func): Call function cmd_type.
5515 * kod.c (kod_set_os): Call cmd_type.
5516 * cris-tdep.c (cris_version_update): Use function cmd_type.
5517 (cris_mode_update, cris_abi_update): Ditto.
5518
5913bcb0
AC
5519 * command.h: (execute_cmd_post_hook): Declare.
5520 (execute_cmd_pre_hook): Declare.
5521 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5522 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5523 functions. Execute pre/post hook while ensuring that afterwords
5524 hook_in is cleared.
5525 * top.c (execute_command): Use execute_cmd_post_hook, and
5526 execute_cmd_pre_hook to execute pre/post commands.
5527 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5528 hook_stop_stub.
5529 (hook_stop_stub): Call execute_cmd_pre_hook.
5530
b51450c9
AC
55312002-03-17 Andrew Cagney <ac131313@redhat.com>
5532
5533 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5534 set'' and this leads to a core dump. Move xstrdup of
5535 operating_system to after check that it is not NULL.
5536
f66c9f11
AC
55372002-03-17 Andrew Cagney <ac131313@redhat.com>
5538
8e694ecf
AC
5539 * kod.c (kod_set_os): Remove unnecessary check that
5540 ``command->type'' is set_cmd.
5541
f66c9f11
AC
5542 * valprint.c (set_input_radix): Use input_radix.
5543 (set_output_radix): Use output_radix.
5544 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5545 isn't reverted.
5546
9d01611c
AC
55472002-03-16 Andrew Cagney <ac131313@redhat.com>
5548
5549 * value.h (struct value): Delete field ``substring_addr''. Change
5550 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
5551 force_core_addr_align and force_pointer_aligh.
5552
5553 * value.h (struct value): Fix typo in above change.
9d01611c 5554
4156bb53
PS
55552002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5556
5557 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5558 to fix internal_error from ``maintenance print architecture''.
5559
0e5e3ea6
PS
55602002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5561
5562 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5563 for gcc versions after gcc-2.8.1.
5564
9b013045
PS
55652002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5566
5567 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5568 for method resolution. Restore adjustment of ``this'' pointer after
5569 calling value_struct_elt, which was accidentally removed during the
5570 HP merge.
5571
376c9600
AC
55722002-03-15 Andrew Cagney <ac131313@redhat.com>
5573
5574 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5575 value_of_register.
5576 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5577 get_saved_register.
5578 * value.h (value_of_register): Update.
5579
a4db0f07
RH
55802002-03-14 Richard Henderson <rth@redhat.com>
5581
5582 * configure.in: Detect declaration for canonicalize_file_name.
5583 * utils.c (canonicalize_file_name): Declare, if needed.
5584 (gdb_realpath): Prefer realpath if available and usable.
5585 * config.in, configure: Rebuild.
5586
96383835
RH
55872002-03-14 Richard Henderson <rth@redhat.com>
5588
5589 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5590 a constant array bound.
5591
5592 * MAINTAINERS: Add myself to write-after-approval.
5593
75245b24
MS
55942002-03-14 Michael Snyder <msnyder@redhat.com>
5595
5596 * symfile.c (syms_from_objfile): Return immediately if no syms.
5597 (symbol_file_add): Return immediately if no syms.
5598 (find_sym_fns): Return immediately if no syms.
5599
e641a1ca
ML
56002002-03-13 Michal Ludvig <mludvig@suse.cz>
5601
5602 * gdbserver/remote-util.c (remote_open): Print remote-side's
5603 IP address when remote debugging over the network.
7e336ba1 5604
df08bfec
DB
56052002-03-12 David O'Brien <obrien@FreeBSD.org>
5606
5607 * config/sparc/fbsd.mh: Fix copyright.
5608 * config/sparc/fbsd.mt: Likewise.
5609
9a57864f
RE
56102002-03-11 Richard Earnshaw <rearnsha@arm.com>
5611
5612 * MAINTAINERS: Fix typo in name of gdb warnings option.
5613 (x86-64): Fix formating so that this can be parsed by awk.
5614
dd7bf85e
DJ
56152002-03-10 Daniel Jacobowitz <drow@mvista.com>
5616
5617 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5618 * defs.h: Include "gdb/signals.h".
5619 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5620
33a0a2ac
ML
56212002-03-10 Michal Ludvig <mludvig@suse.cz>
5622
5623 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 5624 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
5625 from x86-64-tdep.h
5626
dd824b04
DJ
56272002-03-10 Daniel Jacobowitz <drow@mvista.com>
5628 Don Howard <dhoward@redhat.com>
5629
5630 * mips-tdep.c (ST0_FR): Define.
5631 (mips2_fp_compat): New function, temporarily disabled.
5632 (mips_read_fp_register_single): New function.
5633 (mips_read_fp_register_double): New function.
5634 (mips_print_register): Use them.
5635 (do_fp_register_row): Likewise.
5636
6a41ff59
AC
56372002-03-09 Andrew Cagney <ac131313@redhat.com>
5638
5639 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5640 approval''.
5641
4ea09c10
PS
56422002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5643
5644 * stabsread.c (read_member_functions): Fix is_stub test for
5645 static member functions, improve comment.
5646
6ccc741d
RE
56472002-03-07 Richard Earnshaw <rearnsha@arm.com>
5648
5649 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5650 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5651 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5652 commands that set boolean values.
5653 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5654 (arm_rdi_resume): Always initialize PC.
5655 (arm_rdi_open): Don't use rslt as a boolean.
5656 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5657 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5658 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5659 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5660
438013df
AO
56612002-03-06 Alexandre Oliva <aoliva@redhat.com>
5662
5663 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5664 * configure: Rebuilt.
5665
70ed8774
SC
56662002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5667
5668 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5669 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5670
5ba2abeb
AC
56712002-03-06 Andrew Cagney <ac131313@redhat.com>
5672
5673 * cli/cli-decode.c (set_cmd_completer): New function.
5674 * command.h (set_cmd_completer): Declare.
5675 * cli/cli-decode.h (set_cmd_completer): Ditto.
5676
5677 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5678 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5679 * win32-nat.c (_initialize_inftarg): Ditto.
5680 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5681 * proc-api.c (_initialize_proc_api): Ditto.
5682 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5683 * source.c (_initialize_source): Ditto.
5684 * exec.c (_initialize_exec): Ditto.
5685 * solib.c (_initialize_solib): Ditto.
5686 * top.c (init_main): Ditto.
5687 * tracepoint.c (_initialize_tracepoint): Ditto.
5688 * symfile.c (_initialize_symfile): Ditto.
5689 * printcmd.c (_initialize_printcmd): Ditto.
5690 * infcmd.c (_initialize_infcmd): Ditto.
5691 * corefile.c (_initialize_core): Ditto.
5692
f779ca99
AC
56932002-03-05 Andrew Cagney <ac131313@redhat.com>
5694
5695 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5696
01a3934b
AC
56972002-03-05 Andrew Cagney <ac131313@redhat.com>
5698
5699 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5700
37057839
AC
57012002-03-05 Andrew Cagney <ac131313@redhat.com>
5702
5703 * NEWS: Update headings, 5.2 has branched.
5704
c6ecbae5
DJ
57052002-03-04 Daniel Jacobowitz <drow@mvista.com>
5706
5707 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5708 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5709 (register_addr, REGISTER_RAW_SIZE): Likewise.
5710 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5711 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5712
e9f30c21
ML
57132002-03-03 Michal Ludvig <mludvig@suse.cz>
5714
5715 * MAINTAINERS (x86-64): Add myself.
5716 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5717 changed value_ptr -> struct value *
5718
54394ac3
DB
57192002-03-01 David O'Brien <obrien@FreeBSD.org>
5720
5721 * configure.host (sparc64-*-freebsd): Add.
5722 * configure.tgt: Likewise.
5723 * config/sparc/fbsd.mh: New file.
5724 * config/sparc/fbsd.mt: Likewise.
5725 * config/sparc/nm-fbsd.h: Likewise.
5726 * config/sparc/tm-fbsd.h: Likewise.
5727
bfe95955
DJ
57282002-03-01 Daniel Jacobowitz <drow@mvista.com>
5729
5730 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5731 regformats/reg-s390x.dat.
5732
f33c6cbf
AC
57332002-03-01 Andrew Cagney <ac131313@redhat.com>
5734
5735 * utils.c: Add FIXME explaining true/false problem.
5736
5ecaa7dd
AC
57372002-02-28 Andrew Cagney <ac131313@redhat.com>
5738
5739 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5740
2a251cc2
MC
57412002-02-28 Michael Chastain <mec@shout.net>
5742
5743 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5744
6a8031a3 57452002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
5746
5747 * gdbserver/linux-s390-low.c: New file.
5748 * regformats/reg-s390.dat: New file.
5749 * regformats/reg-s390x.dat: New file.
5750 * gdbserver/configure.srv: Add S/390.
5751 * gdbserver/Makefile.in: Add S/390.
5752 * configure.tgt: Enable gdbserver for S/390.
5753
ac469903
EZ
57542002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5755
5756 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5757 first line of the doc string for "info dos", except at the end of
5758 the sentence, since the short help stops at the first period.
5759
985cb1a3
JM
57602002-02-28 Jason Merrill <jason@redhat.com>
5761
5762 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5763
c570663e
FF
57642002-02-27 Fred Fish <fnf@redhat.com>
5765
5766 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5767 comment (dumy -> dummy).
5768
43630227
PS
57692002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5770
5771 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5772
b84911e8
RB
57732002-02-27 Rodney Brown <rbrown64@csc.com.au>
5774
5775 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5776
58caa3dc
DJ
57772002-02-27 Daniel Jacobowitz <drow@mvista.com>
5778
5779 * gdbserver/acconfig.h: New file.
5780 * gdbserver/i387-fp.c: New file.
5781 * gdbserver/i387-fp.h: New file.
5782 * gdbserver/linux-x86-64.c: New file.
5783 * regformats/reg-x86-64.dat: New file.
5784 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5785 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5786 * gdbserver/configure.in: Add support for regsets.
5787 * gdbserver/config.in: Regenerate.
5788 * gdbserver/configure: Regenerate.
5789 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5790 * gdbserver/linux-low.h: New file.
5791 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5792 for regsets.
5793 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5794 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5795 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5796 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5797 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5798 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5799 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5800 "i387-fp.h". Add PTRACE_GETREGS and friends.
5801 * gdbserver/regcache.c (supply_register): New function.
5802 (supply_register_by_name): New function.
5803 (collect_register): New function.
5804 (collect_register_by_name): New function.
5805
93652174
DJ
58062002-02-27 Daniel Jacobowitz <drow@mvista.com>
5807
5808 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5809 (config.status): Add configure.srv dependency.
5810 (server_h): Add config.h dependency.
5811
a02e4a61
DJ
58122002-02-27 Daniel Jacobowitz <drow@mvista.com>
5813
5814 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5815 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5816 * gdbserver/configure.srv: Change i386-*-linux* to use
5817 reg-i386-linux.o.
5818
ce0eebec
AC
58192002-02-26 Andrew Cagney <ac131313@redhat.com>
5820
5821 * x86-64-tdep.c: Re-indent. Update copyright date.
5822
82dbc5f7
AC
58232002-02-26 Andrew Cagney <ac131313@redhat.com>
5824
5825 From Michal Ludvig <mludvig@suse.cz>:
5826 * x86-64-tdep.c (value.h): Delete.
5827 (gdb_assert.h): Include.
5828 (x86_64_register_convert_to_virtual,
5829 x86_64_register_convert_to_raw ): Add check which lets only
5830 floating-point values to be converted.
5831 (value_push): Delete.
5832 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5833 (i386_gdbarch_init): Number of register_bytes fixed.
5834
e4621584
AC
58352002-02-26 Andrew Cagney <ac131313@redhat.com>
5836
5837 * MAINTAINERS: Add x86-64 target.
5838
81a9a963
AC
58392002-02-26 Andrew Cagney <ac131313@redhat.com>
5840
5841 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5842 * osfsolib.c (solib_map_sections): Ditto.
5843 * irix5-nat.c (solib_map_sections): Ditto.
5844 * corelow.c (gdb_check_format): Ditto.
5845 * symfile.c (symfile_bfd_open): Ditto.
5846 * solib.c (solib_map_sections): Ditto.
5847 Fix PR gdb/354.
7e336ba1 5848
0f017ab9
AC
58492002-02-26 Andrew Cagney <ac131313@redhat.com>
5850
5851 * remote.c (_initialize_remote): By default, disable ``e'' and
5852 ``E'' step out-of-range packets.
5853
75738c29
AS
58542002-02-26 Andreas Schwab <schwab@suse.de>
5855
5856 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5857 m68k_linux_frame_saved_pc.
5858 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5859 in_sigtramp.
5860 (SIGCONTEXT_PC_OFFSET): Remove.
5861 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5862 m68k_linux_sigtramp_saved_pc): New functions.
5863 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5864 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5865 (UCONTEXT_PC_OFFSET): Define.
5866 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5867 non-RT and RT signal trampolines.
5868
7e8ed687
RE
58692002-02-26 Richard Earnshaw <rearnsha@arm.com>
5870
5871 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5872 (TARGET_NBPG, STACK_END_ADDR): Delete
5873 (VARIABLES_INSIDE_BLOCK): Delete.
5874
6972bc8b
AC
58752002-02-25 Andrew Cagney <ac131313@redhat.com>
5876
5877 * utils.c (perror_with_name): Make string parameter constant.
5878 (print_sys_errmsg): Ditto.
5879 (query): Ditto.
5880 * defs.h (perror_with_name): Update.
5881 (print_sys_errmsg): Update.
5882 (query): Update.
5883
aa32f823
DJ
58842002-02-25 Daniel Jacobowitz <drow@mvista.com>
5885
5886 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5887 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5888
19caaa45
PS
58892002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5890
5891 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5892 if it already matches the current architecture from the exec file.
5893 Include arch-utils.h for gdbarch_info_init prototype.
5894 * Makefile.in (rs6000-nat.o): Update dependencies.
5895
d951901f
EZ
58962002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
5897
5898 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5899 list of exported variables.
5900
7ea81414
DJ
59012002-02-24 Daniel Jacobowitz <drow@mvista.com>
5902
5903 * gdbserver/configure.srv: New file.
5904 * gdbserver/configure.in: Use configure.srv instead
5905 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
5906 from it.
5907 * gdbserver/configure: Regenerated.
5908 * gdbserver/terminal.h: New file.
5909 * gdbserver/Makefile.in: Update for configure changes. Remove
5910 more unneeded include paths.
5911
080fe24b
AC
59122002-02-24 Andrew Cagney <ac131313@redhat.com>
5913
5914 From wiz at danbala:
5915 * config/sparc/tm-sp64.h: Fix grammar and typos.
5916 Fix PR gdb/287.
5917
8605d56e
AC
59182002-02-24 Andrew Cagney <ac131313@redhat.com>
5919
5920 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
5921 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5922 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5923 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
5924 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5925 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5926 * s390-tdep.c: Ditto.
92362027
AC
5927 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5928 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5929 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5930 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5931 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5932 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5933 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5934 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5935 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5936 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 5937 Fix PR gdb/378.
7e336ba1 5938
8ed32cc0
AC
59392002-02-23 Andrew Cagney <ac131313@redhat.com>
5940
a3007b6f
AC
5941 * lin-thread.c: Delete file.
5942 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5943 to gdb_proc_service.h.
5944 * configure: Re-generate.
5945
50a9e2f1
AC
5946 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5947 * serial.c (serial_open): Delete check for "ocd".
5948 Fix PR gdb/349.
5949
8b6e7932
AC
5950 * Makefile.in (linux-thread.o): Delete target.
5951 * linux-thread.c: Delete file.
5952
d155c46b
AC
5953 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5954 renamed SH files to be consistent.
5955
8ed32cc0
AC
5956 * symtab.c (sort_search_symbols): Use xfree.
5957
0e18d038
RE
59582002-02-23 Richard Earnshaw <rearnsha@arm.com>
5959
5960 * arm-linux-tdep.c (arm_linux_init_abi): Register
5961 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5962 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5963 definition with undef, since we don't want the sysvr4 definition.
5964 (SKIP_TRAMPOLINE_CODE): Likewise.
5965
27aac7ff
AC
59662002-02-23 Andrew Cagney <ac131313@redhat.com>
5967
5968 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5969
5970 * configure.in: (AC_CHECK_FUNCS) Added test for
5971 canonicalize_file_name Regenerated.
5972 * config.in, configure: Regenerated.
5973 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5974 defined use canonicalize_file_name.
7e336ba1 5975
65a6e0ee
MC
59762002-02-23 Michael Chastain <mec@shout.net>
5977
5978 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5979
47b95330
AC
59802002-02-23 Andrew Cagney <ac131313@redhat.com>
5981
5982 * README: Remove references to cygnus.com.
5983 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5984 dot com'' form. Remove references to cygnus.com and sourceware.
5985
696f451b
AC
59862002-02-23 Andrew Cagney <ac131313@redhat.com>
5987
5988 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5989 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5990 1003.1-2001 no longer allows "head -1".
5991 * gdb/Makefile.in (version.c): Likewise.
5992 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5993 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5994 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5995
bbaca940
AC
59962002-02-23 Andrew Cagney <ac131313@redhat.com>
5997
5998 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5999 * command.h (cmd_cfunc_eq): Declare.
6000 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6001
6002 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6003 ``struct cmd_list_element *''.
6004 * cli/cli-cmds.c (is_complete_command): Update. Use
6005 cmd_cfunc_eq.
6006 * top.c (execute_command): Pass the command to
6007 is_complete_command.
6008 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6009
b8b8b047
AC
60102002-02-23 Andrew Cagney <ac131313@redhat.com>
6011
6012 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6013 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6014 architecture defines.
6015 * s390-tdep.c (s390_gdbarch_init): Likewise.
6016
19d3fc80
RE
60172002-02-23 Richard Earnshaw <rearnsha@arm.com>
6018
6019 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6020 (arm_linux_push_arguments): Likewise.
6021 (arm_linux_init_abi): Register them. Also register linux-specific
6022 call_dummy_words.
6023 (find_minsym_and_objfile): Use strcmp, not STREQ.
6024 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6025 (arm_linux_call_dummy_words): Delete declaration.
6026 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6027 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6028 declarations.
6029 (LOWEST_PC): Delete.
6030
3ab13650
PS
60312002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6032
6033 * maint.c (print_section_info): Do not prepend `0x' to filepos
6034 output, it will be handled by local_hex_string_custom.
6035
19d3fc80 60362002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
6037
6038 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6039 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6040 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6041
d85a5daf
JB
60422002-02-22 Jim Blandy <jimb@redhat.com>
6043
6044 Indicate that the bcache functions don't change the strings
6045 they're passed.
6046 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6047 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6048
eeb25b8a
PM
60492002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6050
6051 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6052
6badb179
CF
60532002-02-21 Christopher Faylor <cgf@redhat.com>
6054
6055 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6056 find the complete path to a loaded DLL.
6057
e8717518
FF
60582002-02-21 Fred Fish <fnf@redhat.com>
6059
6060 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6061 that marks the end of the range of a function, enter a line number
6062 entry that has a line number of zero and a PC offset that matches
6063 the end of the function. This starts a range of PC's for which no
6064 line number information is known.
6065 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6066 PC's for which no line number info is found (line number is zero)
6067 then we didn't find any valid line information.
6068 * symtab.h: Document use of zero line number entry.
6069
9abe5450
EZ
60702002-02-21 Elena Zannoni <ezannoni@redhat.com>
6071
6072 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6073 (have_ptrace_getvrregs): Define for run time checks.
6074 (gdb_vrregset_t): New type for Altivec register handling.
6075 (fetch_register, store_register): Fetch/store altivec register
6076 when needed.
6077 (fetch_altivec_register, store_altivec_register): New functions.
6078 (supply_vrregset, fill_vrregset): New functions.
6079 (fetch_altivec_registers, store_altivec_registers): New functions.
6080 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6081 registers as well.
6082
aaa38bb5
AJ
60832002-02-21 Jiri Smid <smid@suse.cz>
6084
6085 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6086
b34db576
RE
60872002-02-21 Richard Earnshaw <rearnsha@arm.com>
6088
6089 * Makefile.in (armnbsd-nat.o): Update dependencies.
6090 * armnbsd-nat.c (supply_gregset): New function. Common code to
6091 supply the integer register set.
6092 (supply_fparegset): New function. Similar for FPA registers.
6093 (fetch_regs, fetch_fp_regs): Use them.
6094 (fetch_core_registers): Likewise.
6095 (fetch_elfcore_registers): New function.
6096 (arm_netbsd_elfcore_fns): New core-file type specification.
6097 (_initialize_arm_netbsd_nat): Register it.
6098
3e56fc4b
RE
60992002-02-21 Richard Earnshaw <rearnsha@arm.com>
6100
6101 * armnbsd-nat.c: Include gdbcore.h.
6102 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6103 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6104 'void' to declaration, to shut up ARI.
6105 (fetch_core_registers): Make static. Rewrite using supply_register.
6106 (arm_netbsd_core_fns): New core-file type specification.
6107 (_initialize_arm_netbsd_nat): New function.
6108
097f6b0b
CF
61092002-02-21 Christopher Faylor <cgf@redhat.com>
6110
6111 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6112 value.
6113
c914e0cc
CF
61142002-02-20 Christopher Faylor <cgf@redhat.com>
6115
6116 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6117 fails.
6118
385fa495
DJ
61192002-02-20 Daniel Jacobowitz <drow@mvista.com>
6120
6121 * jv-exp.y (parse_number): Change type of implicit longs
6122 to builtin_type_uint64.
6123
e5f1222d
DJ
61242002-02-20 Daniel Jacobowitz <drow@mvista.com>
6125
6126 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6127 to be an integer instead of a `union wait'.
6128
75c9abc6
DJ
61292002-02-20 Daniel Jacobowitz <drow@mvista.com>
6130
6131 * mips-linux-nat.c: Call the operating system GNU/Linux.
6132 * mips-linux-tdep.c: Likewise.
6133 * mips-tdep.c: Likewise.
6134
551792a5
DJ
61352002-02-20 Daniel Jacobowitz <drow@mvista.com>
6136
6137 Fix PR gdb/265.
6138 * jv-exp.y (parse_number): Handle 64-bit integers.
6139
ee6e2b82
DJ
61402002-02-20 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6143 AC_STDC_HEADERS to AC_HEADER_STDC.
6144 * gdbserver/configure: Regenerated.
6145
a48442a0
RE
61462002-02-20 Richard Earnshaw <rearnsha@arm.com>
6147
6148 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6149 is defined.
6150 * sparc-tdep.c (get_longjmp_target): Likewise.
6151
fe419ffc
RE
61522002-02-20 Richard Earnshaw <rearnsha@arm.com>
6153
6154 * News: Add news about ARM and Multi-arch. Mention the new target
6155 arm*-*-netbsd*.
6156
5832ed7e
JB
61572002-02-19 Jim Blandy <jimb@redhat.com>
6158
6159 * stabsread.c (error_type_complaint): Improve error message.
6160
84563040
DJ
61612002-02-19 Daniel Jacobowitz <drow@mvista.com>
6162
6163 * gdbserver/README: Update documentation.
6164 * gdbserver/configure.in: Update configury to match documentation.
6165 * gdbserver/Makefile.in: Likewise.
6166 * gdbserver/configure: Regenerated.
6167 * gdbserver/aclocal.m4: New file, generated by aclocal.
6168 * gdbserver/config.in: New file, generated by autoheader.
6169
375fd65b
RE
61702002-02-19 Richard Earnshaw <rearnsha@arm.com>
6171
6172 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6173 armnbsd-nat.c.
6174
08216dd7
RE
61752002-02-19 Richard Earnshaw <rearnsha@arm.com>
6176
6177 * arm-tdep.h (enum arm_float_model): New enum.
6178 (struct gdbarch_tdep): Add fp_model.
6179 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6180 up floating-point conversions until we know the floating-point model
6181 in use by the inferior. Don't complain about being unable to
6182 determine the ABI of the inferior when we don't have one.
6183 (arm_extract_return_value): Support different floating-point models.
6184 (arm_store_return_value): Likewise.
aaa38bb5 6185 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
6186 ARM_FLOAT_SOFT.
6187 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6188
65d6d66a
PS
61892002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6190
6191 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6192 of ``current_gdbarch''.
6193
47221191
RE
61942002-02-19 Richard Earnshaw <rearnsha@arm.com>
6195
6196 * armnbsd-nat.c : ANSIfy all function declarations.
6197 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6198 (fetch_inferior_registers): Re-implement in terms of above.
6199 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6200 (store_inferior_registers): Re-implement in terms of above.
6201
fdf39c9a
RE
62022002-02-19 Richard Earnshaw <rearnsha@arm.com>
6203
aaa38bb5 6204 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
6205 kernel.
6206 * arm-linux-tdep.c: Likewise.
6207 * config/arm/tm-linux.h: Likewise.
6208
93247f88
RE
62092002-02-19 Richard Earnshaw <rearnsha@arm.com>
6210
6211 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6212 * config/arm/nbsd.mt (TM_FILE): Delete.
6213 * config/arm/tm-nbsd.h: Delete.
6214
d7b486e7
RE
62152002-02-19 Richard Earnshaw <rearnsha@arm.com>
6216
6217 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6218 Initialize CALL_DUMMY_LENGTH.
6219
41d39a95
RE
62202002-02-19 Richard Earnshaw <rearnsha@arm.com>
6221
6222 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6223 function.
6224 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 6225 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
6226 defines one thing and that is incorrect for this port.
6227 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6228
e1195560
PM
62292002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6230
6231 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6232
c1748f97
PM
62332002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6234
6235 * win32-nat.c (display_selector): New function. Displays information
6236 about the information returned by GetThreadSelectorEntry API function.
6237 (display_selectors): New function. Displays the infomation of
6238 the selector given as argument, or of CS, DS ans FS selectors
6239 if no argument is given.
6240 ( _initialize_inftarg): Add "w32" as info prefix command.
6241 Add "info w32 selector" as command calling display_selectors.
6242
e41e6bbf
PM
62432002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6244
6245 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6246 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6247 if not defined.
6248
0d3a9f48
RE
62492002-02-18 Richard Earnshaw <rearnsha@arm.com>
6250
6251 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6252
3fb4b924
RE
62532002-02-18 Richard Earnshaw <rearnsha@arm.com>
6254
6255 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6256 (arm_fix_call_dummy): Call it.
6257 (arm_call_dummy_breakpoint_offset): Delete.
6258 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6259 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6260
7f55af32
AC
62612002-02-18 Andrew Cagney <ac131313@redhat.com>
6262
6263 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6264 Default to func_frame_chain_valid.
6265 * gdbarch.h, gdbarch.c: Re-generate.
6266 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6267
05f13b9c
EZ
62682002-02-18 Elena Zannoni <ezannoni@redhat.com>
6269
6270 * ppc-linux-nat.c: Update copyright.
6271 (fetch_register, store_register): Add tid parameter, don't compute
6272 tid here.
6273 (fetch_ppc_registers, store_ppc_registers): Add tid
6274 parameter. Pass it along to callees.
6275 (fetch_inferior_registers, store_inferior_registers): Compute tid
6276 here, and pass it to calleed functions.
6277 (fill_gregset, supply_fpregset): Clean up formatting.
6278
d7afb4c9
RE
62792002-02-18 Richard Earnshaw <rearnsha@arm.com>
6280
6281 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6282 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6283
9df628e0
RE
62842002-02-18 Richard Earnshaw <rearnsha@arm.com>
6285
6286 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6287 * gdbarch.c gdbarch.h: Regenerate.
6288 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6289 function.
6290 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6291 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6292 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6293
6294 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6295 * arm-tdep.c (arm_get_longjmp_target): New function.
6296 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6297 this to a positive value register arm_get_longjmp_target as the
6298 longjmp handler.
6299 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6300 (arm_linux_init_abi): Set up longjmp description in tdep.
6301 * armnbsd-nat.c (get_longjmp_target): Delete.
6302 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6303 description in tdep.
6304 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6305 (get_longjmp_target): Delete declaration.
6306 (GET_LONGJMP_TARGET): Delete.
6307 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6308 (GET_LONGJMP_TARGET): Delete.
6309
57bc8964
KB
63102002-02-17 Kevin Buettner <kevinb@redhat.com>
6311
6312 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6313 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6314 of ``current_gdbarch''.
6315
83d31a92
TT
63162002-02-17 Tom Tromey <tromey@redhat.com>
6317
6318 * cli/cli-cmds.c (compare_strings): New function.
6319 (complete_command): Only print each unique item once.
6320 * completer.h (complete_line): Declare.
6321 * completer.c (complete_line): New function.
6322 (line_completion_function): Use it.
6323
17ef5d92
AC
63242002-02-16 Andrew Cagney <ac131313@redhat.com>
6325
6326 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6327 * gdbarch.h, gdbarch.c: Re-generate.
6328
491b8946
DJ
63292002-02-16 Daniel Jacobowitz <drow@mvista.com>
6330
6331 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6332
63332002-02-16 Daniel Jacobowitz <drow@mvista.com>
6334
6335 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6336 * valops.c (value_arg_coerce): Don't take the address of a reference
6337 to convert an argument to a reference.
6338
dfe7f3ac
CF
63392002-02-15 Christopher Faylor <cgf@redhat.com>
6340
6341 * win32-nat.c (get_image_name): New function.
6342 (handle_load_dll): Use get_image_name function.
6343 (get_child_debug_event): Avoid registering debug events until possibly
6344 execed process is started.
6345 (child_create_inferior): Allow invocation via shell so that command
6346 line redirection, etc. works ok.
6347 (_initialize_inftarg): Add new command: "set shell" to control whether
6348 a shell is used to start a process.
6349
1d33e73a
DJ
63502002-02-15 Daniel Jacobowitz <drow@mvista.com>
6351
6352 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6353 instead of find_register_by_number.
6354 (cannot_store_register): Likewise.
6355
48cd0caa
PM
63562002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6357
aaa38bb5 6358 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
6359 fprintf_unfiltered (gdb_stderr, ...).
6360
8656e7d8
DJ
63612002-02-15 Daniel Jacobowitz <drow@mvista.com>
6362
6363 * gdbserver/gdbserver.1: Document --attach.
6364
66e810cd
RE
63652002-02-15 Richard Earnshaw <rearnsha@arm.com>
6366
6367 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6368 descriptions.
6369 * arm-tdep.c (arm_default_arm_le_breakpoint)
6370 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6371 (arm_default_thumb_be_breakpoint): New. Initialize them from
6372 traditional breakpoint defines.
6373 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6374 (arm_gdbarch_init): Initialize new breakpoint variables.
6375 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6376 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6377 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6378 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6379 code out to ...
6380 (arm_netbsd_init_abi_common): ... here; new function.
6381 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6382 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6383 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6384 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6385
97e03143
RE
63862002-02-15 Richard Earnshaw <rearnsha@arm.com>
6387
6388 * arm-tdep.h (enum arm_abi): New enum.
6389 (struct gdbarch_tdep): New structure.
6390 (LOWEST_PC): Provide a default.
6391 (arm_gdbarch_register_os_abi): Declare new function.
6392 * arm-tdep.c (arm_abi_names): New array.
6393 (process_note_abi_tag_sections): New function.
6394 (get_elfosabi): New function.
6395 (arm_gdbarch_register_os_abi): New function.
6396 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6397 support for that ABI has been built in, then call the appropriate
6398 configuration routine. Use gdbarch_num_regs() to get the number
6399 of registers.
6400 (arm_dump_tdep): New function.
6401 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6402 place-holder functions.
6403 (_initialize_arm_tdep): Register them.
6404 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6405
6406 * armnbsd-tdep.c: New file.
6407 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6408 * config/arm/nbsd.mt (TDEPFILES): Add it.
6409 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6410
6411 * armnbsd-nat.c: Include regcache.h.
6412 * Makefile.in (armnbsd-nat.o): Update dependency list.
6413
6414 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6415
ad68be46
DJ
64162002-02-14 Daniel Jacobowitz <drow@mvista.com>
6417
6418 * gdbserver/Makefile.in: Fix typos in target rules.
6419
003d6d1d
DJ
64202002-02-14 Daniel Jacobowitz <drow@mvista.com>
6421
aaa38bb5 6422 Fix part of PR gdb/267.
003d6d1d
DJ
6423 * linespec.c (find_methods): Handle constructors specially for now.
6424
6b230f1b
CV
64252002-02-14 Corinna Vinschen <vinschen@redhat.com>
6426
6427 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6428 handling.
6429 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6430 standard_coerce_float_to_double().
6431
1ea98d12
CF
64322002-02-14 Christopher Faylor <cgf@redhat.com>
6433
6434 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6435 GDBINIT_FILENAME.
6436
dd47e6fd
EZ
64372002-02-14 Elena Zannoni <ezannoni@redhat.com>
6438
6439 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6440 find_variant_by_name, because it confuses the multiarch
6441 framework. Return NULL if there isn't an architecture with the
6442 user supplied name, instead of forcing a different one without
6443 recording the change with the multiarch machinery.
6444 (find_variant_by_name): Delete.
6445
d7e39b9e
PS
64462002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6447
6448 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6449 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6450
76e42a4f
MH
64512002-02-13 Martin M. Hunt <hunt@redhat.com>
6452
aaa38bb5 6453 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
6454 print_frame_info_listing_hook, set current_source_symtab.
6455
0a30fbc4
DJ
64562002-02-14 Daniel Jacobowitz <drow@mvista.com>
6457
6458 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6459 and remove unused $(INCLUDE_DIR).
6460 Add regcache.c to OBS.
6461 Add generated register protocol files to clean target.
6462 Update dependencies for new objects, obsolete old target code.
6463
6464 * gdbserver/linux-low.c: Remove all platform-specific code to
6465 new files. Remove various dead code. Update to use regcache
6466 functionality.
6467 * gdbserver/remote-utils.c (fromhex): Add return statement
6468 to quiet warning.
6469 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6470 constant.
6471 (input_interrupt): Add integer parameter to match prototype
6472 of a signal handler.
6473 (outreg): Use register_data ().
6474 (prepare_resume_reply): Use gdbserver_expedite_regs.
6475 * gdbserver/server.c (main): Dynamically allocate own_buf because
6476 PBUFSIZ is no longer constant. Use registers_to_string () and
6477 registers_from_string ().
6478 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6479 for error (), fatal (), and warning (). Update definition of
6480 PBUFSIZ to use regcache functionality. Add include guard.
6481 * gdbserver/utils.c (fatal): Add missing ``const''.
6482 (warning): New function.
6483
6484 * regformats/regdat.sh: Include "regcache.h" in generated files.
6485 Provide init_registers () function.
6486 * regformats/regdef.h: Add prototype for set_register_cache ().
6487 Add include guard.
6488
6489 * gdbserver/linux-arm-low.c: New file.
6490 * gdbserver/linux-i386-low.c: New file.
6491 * gdbserver/linux-ia64-low.c: New file.
6492 * gdbserver/linux-m68k-low.c: New file.
6493 * gdbserver/linux-mips-low.c: New file.
6494 * gdbserver/linux-ppc-low.c: New file.
6495 * gdbserver/linux-sh-low.c: New file.
6496
6497 * gdbserver/regcache.c: New file.
6498 * gdbserver/regcache.h: New file.
6499
6500 * gdbserver/low-linux.c: Removed obsolete file.
6501
4cc841d0
DJ
65022002-02-14 Daniel Jacobowitz <drow@mvista.com>
6503
6504 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6505 * config/i386/linux.mt: Likewise.
6506 * config/ia64/linux.mt: Likewise.
6507 * config/m68k/linux.mh: Likewise.
6508 * config/powerpc/linux.mh: Likewise.
6509 * config/mips/linux.mt: Likewise.
6510
6511 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6512
6513 * config/i386/i386lynx.mh: Mark gdbserver variables
6514 as (currently) obsolete for this target.
6515 * config/i386/nbsd.mt: Likewise.
6516 * config/i386/nbsdelf.mt: Likewise.
6517 * config/m32r/m32r.mt: Likewise.
6518 * config/m68k/m68klynx.mh: Likewise.
6519 * config/m68k/nbsd.mt: Likewise.
6520 * config/m68k/sun3os4.mh: Likewise.
6521 * config/mips/vr5000.mt: Likewise.
6522 * config/ns32k/nbsd.mt: Likewise.
6523 * config/pa/hppabsd.mh: Likewise.
6524 * config/pa/hppaosf.mh: Likewise.
6525 * config/powerpc/nbsd.mt: Likewise.
6526 * config/rs6000/rs6000lynx.mh: Likewise.
6527 * config/s390/s390.mt: Likewise.
6528 * config/s390/s390x.mt: Likewise.
6529 * config/sparc/sparclynx.mh: Likewise.
6530 * config/sparc/sun4os4.mh: Likewise.
6531 * config/i386/x86-64linux.mt: Likewise.
6532 * config/sparc/linux.mh: Likewise.
6533
a85f51e7
DJ
65342002-02-14 Daniel Jacobowitz <drow@mvista.com>
6535
6536 * configure.tgt: Configure gdbserver only for known working
6537 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6538 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6539 SUBDIRS if it is configured. Update comment for ${nativefile}.
6540 * configure: Regenerated.
6541
65554fef
MS
65422002-02-13 Michael Snyder <msnyder@redhat.com>
6543
670a52db
MS
6544 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6545
6dbdc4a3
MS
6546 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6547 (default_gcore_mach): Just return 0, work around a problem in bfd.
6548 (default_gcore_target): OK to return NULL if exec_bfd is null.
6549 (make_mem_sec): Use a cast, avoid a warning.
6550
6551 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 6552 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
6553 sizeof (host pointer) != sizeof (target pointer)).
6554 (procfs_make_note_section): Avoid overflow in psargs string.
6555
aaa38bb5 6556 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
6557 implementation return an error.
6558
65592002-02-13 Rodney Brown <rbrown64@csc.com.au>
6560
6561 * procfs.c (procfs_make_note_section): Provide a default definition
6562 (for alpha-dec-osf4.0f). Fix typos.
6563
1e4d76e7
EZ
65642002-02-13 Elena Zannoni <ezannoni@redhat.com>
6565
6566 * linux-proc.c: Add include of regcache.h.
6567 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6568
b6d1a1d5
AC
65692002-02-13 Andrew Cagney <ac131313@redhat.com>
6570
6571 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
6572 * memattr.c (create_mem_region): Disallow useless empty region.
6573 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 6574 non-overlapping.
b6d1a1d5 6575
6c6ea35e
MC
65762002-02-13 Michael Chastain <mec@shout.net>
6577
6578 * defs.h: Kill CONST_PTR.
6579 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6580 * c-lang.c (c_builtin_types): Likewise.
6581 * ch-lang.c (ch_builtin_types): Likewise.
6582 * f-lang.c (f_builtin_types): Likewise.
6583 * language.c (unknown_builtin_types): Likewise.
6584 * m2-lang.c (m2_builtin_types): Likewise.
6585 * p-lang.c (pascal_builtin_types): Likewise.
6586 * scm-lang.c (c_builtin_types): Likewise.
6587
3e0b0f48
KS
65882002-02-13 Keith Seitz <keiths@redhat.com>
6589
6590 * arm-tdep.h (arm_get_next_pc): Add declaration.
6591
67255d04
RE
65922002-02-13 Richard Earnshaw <rearnsha@arm.com>
6593
6594 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6595 with other related struct-returning functions.
6596 (arm_extract_struct_value_address): New function.
6597 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6598 initialize float_format, double_format and long_double_format as
6599 appropriate to the endianness of the target.
6600 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6601 (arm_use_struct_convention): Delete declaration.
6602 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6603
079777f6
KS
66042002-02-13 Keith Seitz <keiths@redhat.com>
6605
6606 * defs.h (core_addr_to_string_nz): New function.
6607
34588f23
MK
66082002-02-13 Mark Kettenis <kettenis@gnu.org>
6609
6610 Apply missing bits of 2002-01-15 patch.
6611 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6612 (fill_fpregset): Use i387_fill_fsave.
6613
49b563f9
KS
66142002-02-12 Keith Seitz <keiths@redhat.com>
6615
49b563f9
KS
6616 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6617 (core_addr_to_string_nz): New function.
6618
aeb98c60
RE
66192002-02-11 Richard Earnshaw <rearnsha@arm.com>
6620
6621 * arm-linux-nat.c: Really include arm-tdep.h.
6622 * config/arm/tm-linux.h (struct type, struct value): Declare.
6623
65554fef
MS
66242002-02-11 Michael Snyder <msnyder@redhat.com>
6625
6626 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6627 (gcore section): Ifdef for Solaris and Unixware only.
6628 (procfs_do_thread_registers): Unixware needs one lwpstatus
6629 per thread (not one prstatus or pstatus).
6630 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6631 not over all gdb threads. For unixware, call elfcore_write_pstatus
6632 once before iterating over threads.
6633
34e8f22d
RE
66342002-02-11 Richard Earnshaw <rearnsha@arm.com>
6635
6636 * arm-tdep.h: New file.
6637 * arm-tdep.c: Include arm-tdep.h.
6638 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6639 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6640 (arm_print_float_info, arm_register_type, convert_to_extended)
6641 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6642 (arm_extract_return_value, arm_register_name): Make static.
6643 (arm_software_single_step): Similarly. Fix types in declaration.
6644 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6645 (arm_store_return_value, arm_store_struct_return): New functions.
6646 (arm_gdbarch_init): Register the above functions. Also register
6647 call_dummy_start_offset, sizeof_call_dummy_words,
6648 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6649 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 6650 max_register_virtual_size, register_size. Set up
34e8f22d
RE
6651 prologue_cache.saved_regs here, rather than ...
6652 (_initialize_arm_tdep): ... here.
6653 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6654 declarations.
6655 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6656 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6657 (arm_print_float_info, arm_register_type, convert_to_extended)
6658 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6659 (arm_extract_return_value, arm_register_name): Delete declarations.
6660 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6661 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6662 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6663 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6664 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6665 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6666 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6667 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6668 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6669 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6670 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6671 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6672 interface.
6673 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6674 * remote-rdi.c remote-rdp.c: Likewise.
6675 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6676 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6677 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6678 definition.
6679
6680 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6681 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6682 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6683 from non-ARM_ prefixed definitions.
6684 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6685 all uses of above.
6686 * remote-rdi.c remote-rdp.c: Likewise.
6687 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6688
148754e5
RE
66892002-02-11 Richard Earnshaw <rearnsha@arm.com>
6690
6691 * arm-tdep.c (arm_frameless_function_invocation)
6692 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6693 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6694 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6695 (arm_pop_frame, arm_get_next_pc): Make static.
6696 (arm_gdbarch_init): Register above in gdbarch structure.
6697 (arm_read_fp): Renamed from arm_target_read_fp.
6698 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6699 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6700 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6701 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6702 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6703 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6704 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
6705 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6706 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6707 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6708 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 6709
434d2d4f
DJ
67102002-02-10 Daniel Jacobowitz <drow@mvista.com>
6711
6712 * symtab.c (compare_search_syms): New function.
6713 (sort_search_symbols): New function.
6714 (search_symbols): Sort symbols after searching rather than
6715 before.
6716
55241689
AC
67172002-02-10 Andrew Cagney <ac131313@redhat.com>
6718
6719 * NEWS: Linux -> GNU/Linux.
6720
028c194b
AC
67212002-02-10 Andrew Cagney <ac131313@redhat.com>
6722
6723 * gdbarch.sh: For for level one methods, disallow a definition
6724 when partially multi-arched. Add comments explaining rationale.
6725 * gdbarch.h: Re-generate.
6726
6acf50cd
AC
67272002-02-10 Andrew Cagney <ac131313@redhat.com>
6728
6729 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6730 multi-arch partial.
aaa38bb5 6731
50248794
AC
67322002-02-10 Andrew Cagney <ac131313@redhat.com>
6733
6734 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6735 field. Use diff -u.
6736 * gdbarch.c: Re-generate.
6737
c30e0066
AC
67382002-02-10 Andrew Cagney <ac131313@redhat.com>
6739
9b56c5f3 6740 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
6741 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6742 partial.
6743
6e6d6484
AC
67442002-02-10 Andrew Cagney <ac131313@redhat.com>
6745
6746 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6747 multi-arch partial.
6748 (PUSH_ARGUMENTS): Switch to using predefault.
6749 * gdbarch.c: Regenerate.
6750
c203844d
AC
67512002-02-10 Andrew Cagney <ac131313@redhat.com>
6752
6753 * valops.c (PUSH_ARGUMENTS): Delete definition.
6754 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6755 partial. Default to default_push_arguments.
6756 * gdbarch.h, gdbarch.c: Regenerate.
6757
b5a2688f
AC
67582002-02-09 Andrew Cagney <ac131313@redhat.com>
6759
6760 * defs.h (throw_exception): Rename return_to_top_level. Update
6761 comments.
6762 * utils.c (error_stream, internal_verror, quit): Ditto.
6763 * top.c (throw_exception, catcher): Ditto.
6764 * sparclet-rom.c (sparclet_load): Ditto.
6765 * remote.c (interrupt_query, minitelnet): Ditto.
6766 * remote-sds.c (interrupt_query): Ditto.
6767 * remote-mips.c (mips_error, mips_kill): Ditto.
6768 * ocd.c (interrupt_query): Ditto.
6769 * monitor.c (monitor_interrupt_query): Ditto.
6770 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6771 * target.h: Update comment.
aaa38bb5 6772
b5a2688f 6773 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 6774
2fa5c1e0
AC
67752002-02-09 Andrew Cagney <ac131313@redhat.com>
6776
6777 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6778 default_double_format.
6779 * gdbarch.h, gdbarch.c: Re-generate.
6780 * findvar.c (floatformat_unknown): Delete variable definition.
6781 * doublest.h (floatformat_unknown): Delete variable declaration.
6782
da966255
JB
67832002-02-09 Jim Blandy <jimb@redhat.com>
6784
6785 * stabsread.c (read_type): Add code to parse Sun's syntax for
6786 prototyped function types.
6787
123a4891
AC
67882002-02-09 Andrew Cagney <ac131313@redhat.com>
6789
6790 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6791 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6792
fb39c8f3
PS
67932002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6794
6795 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6796 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6797 now _initialize_xcoffsolib gets called again and overrides the
6798 commands from solib.c in a native configuration.
6799
0b87a11d
MK
68002002-02-09 Mark Kettenis <kettenis@gnu.org>
6801
6802 * doublest.c (store_typed_floating): Don't try to return a value.
6803 Fixes PR gdb/290.
6804
bdc2fc72
JB
68052002-02-08 Jim Blandy <jimb@redhat.com>
6806
6807 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6808 is prototyped and has no arguments, print its argument list as
6809 `(void)'.
6810
da69bbcf
CD
68112002-02-08 Chris Demetriou <cgd@broadcom.com>
6812
6813 * MAINTAINERS (write-after-approval): Add myself.
6814 (paper-trail): I've escaped!
aaa38bb5 6815
b69571f5
CF
68162002-02-08 Christopher Faylor <cgf@redhat.com>
6817
6818 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6819 changes.
6820 (_initialize_check_for_gdb_ini): Ditto.
6821
f6871398
MH
68222002-02-08 Martin M. Hunt <hunt@redhat.com>
6823
6824 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6825 xaprintf -> xasprintf.
6826
4e52d31c
PM
68272002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6828
6829 * win32-nat.c: Remove use of printf and sprintf functions.
6830
39bbf761
RE
68312002-02-08 Richard Earnshaw <rearnsha@arm.com>
6832
6833 * arm-tdep.c (arm_frame_chain_valid): Make static.
6834 (arm_push_arguments): Likewise.
6835 (arm_gdbarch_init): New function.
6836 (_initialize_arm_tdep): Call it.
6837 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6838 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6839 (FRAME_CHAIN_VALID): Delete.
6840 (arm_frame_chain_valid): Delete declaration.
6841 (PUSH_ARGUMENTS): Delete.
6842 (arm_push_arguments): Delete declaration.
6843 (CALL_DUMMY_P): Delete.
6844
9c9532c9
CV
68452002-02-08 Andrew Cagney <ac131313@redhat.com>
6846 Corinna Vinschen <vinschen@redhat.com>
6847
6848 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6849 on builtin float types.
6850
4e8f7a8b
DJ
68512002-02-08 Daniel Jacobowitz <drow@mvista.com>
6852
6853 * utils.c: Include <curses.h> before "bfd.h".
6854 * tui/tui-hooks.c: Likewise.
6855 * tui/tui.c: Likewise.
6856 * tui/tuiCommand.c: Likewise.
6857 * tui/tuiData.c: Likewise.
6858 * tui/tuiDataWin.c: Likewise.
6859 * tui/tuiDisassem.c: Likewise.
6860 * tui/tuiGeneralWin.c: Likewise.
6861 * tui/tuiIO.c: Likewise.
6862 * tui/tuiLayout.c: Likewise.
6863 * tui/tuiRegs.c: Likewise.
6864 * tui/tuiSource.c: Likewise.
6865 * tui/tuiSourceWin.c: Likewise.
6866 * tui/tuiStack.c: Likewise.
6867 * tui/tuiWin.c: Likewise.
6868
cd4bffcf
EZ
68692002-02-07 Elena Zannoni <ezannoni@redhat.com>
6870
6871 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6872 to include space for pseudoregs as well. Update loops accordingly.
6873 (sh_fp_frame_init_saved_regs): Ditto.
6874 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6875
26806ce2
AC
68762002-02-07 Andrew Cagney <ac131313@redhat.com>
6877
6878 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6879 Add Richard Earnshaw to Arm maintainers.
6880
97fdab62
AC
68812002-02-07 Andrew Cagney <ac131313@redhat.com>
6882
a6b98203
AC
6883 * defs.h (warning_begin): Delete declaration.
6884
97fdab62
AC
6885 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6886 Delete macro.
6887
78b29b40
MS
68882002-02-07 Michael Snyder <msnyder@redhat.com>
6889
aaa38bb5 6890 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
6891 Logic bug, remove misplaced else.
6892
d8849953
KD
68932002-02-07 Klee Dienes <klee@apple.com>
6894
6895 * fork-inferior.c (fork_inferior): Add '!' to the list of
6896 characters that need to be quoted when building a string for the
6897 shell. Quote '!' specifically with a backslash, since CSH chokes
6898 when trying to evaluate "str!str".
aaa38bb5 6899
095778a0
NC
69002002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6901
6902 * rdi-share/host.h: Only provide a typedef for bool if it is not
6903 defined.
6904
1900040c
MS
69052002-02-04 Michael Snyder <msnyder@redhat.com>
6906
6907 * breakpoint.h (enum bptype): Add new overlay event bp type.
6908 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 6909
1900040c
MS
6910 * breakpoint.c (create_internal_breakpoint): New function.
6911 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6912 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6913 (create_thread_event_breakpoint): Ditto.
6914 (create_solib_event_breakpoint): Ditto.
6915 (create_overlay_event_breakpoint): New function.
6916 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6917 (update_breakpoints_after_exec): Delete and re-initialize
6918 overlay event breakpoints after an exec. Add FIXME comment
6919 about longjmp breakpoint.
6920 (print_it_typical): Ignore overlay event breakpoints.
6921 (print_one_breakpoint): Ditto.
6922 (mention): Ditto.
6923 (bpstat_what): Do not stop for overlay event breakpoints.
6924 (delete_breakpoint): Don't delete overlay event breakpoints.
6925 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6926 (breakpoint_re_set): Re-create overlay event breakpoint.
6927
6928 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6929 (overlay_manual_command): Disable overlay breakpoints.
6930 (overlay_off_command): Disable overlay breakpoints.
6931
082fc60d
RE
69322002-02-06 Richard Earnshaw <rearnsha@arm.com>
6933
6934 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6935 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6936 to here from config/tm-arm.h.
6937 (coff_sym_is_thumb): Make static.
6938 (arm_elf_make_msymbol_special): New function.
6939 (arm_coff_make_msymbol_special): New function.
6940 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6941 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6942 (coff_sym_is_thumb): Delete declaration.
6943 (arm_elf_make_msymbol_special): Declare.
6944 (arm_coff_make_msymbol_special): Declare.
6945 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6946 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6947
039c5766
RE
69482002-02-06 Richard Earnshaw <rearnsha@arm.com>
6949
6950 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6951
69522002-02-06 Richard Earnshaw <rearnsha@arm.com>
6953
6954 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6955 * gdbarch.c gdbarch.h: Regenerate.
6956 * arch-utils.c (default_print_float_info): New function.
6957 * arch-utils.h (default_print_float_info): Prototype it.
6958 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6959 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6960 (PRINT_FLOAT_INFO): Document it.
6961
6962 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6963 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6964 (PRINT_FLOAT_INFO): Define.
6965
58fa08f0
PM
69662002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6967
aaa38bb5 6968 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
6969 Add typecast to sprintf argument to suppress a warning.
6970
7393af7c
PM
69712002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
6972
58fa08f0 6973 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
6974 to allow easier handling of pass state.
6975 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6976 that gives exception name and address.
6977 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 6978 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 6979 exceptions added.
aaa38bb5
AJ
6980 (child_continue): Correctly report continue_status.
6981 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 6982 TARGET_SIGNAL_0 (new default value).
aaa38bb5 6983 (child_resume): consider sig argument passed to decide if
7393af7c
PM
6984 the exception should be passed to debuggee or not.
6985
6af4589c
MS
69862002-02-05 Michael Snyder <msnyder@redhat.com>
6987
6988 * regcache.c (fetch_register): Call target_fetch_register
6989 only if we don't call FETCH_PSEUDO_REGISTER.
6990 (store_register): Call target_store_register only if we
6991 don't call STORE_PSEUDO_REGISTER.
6992
a2cf933a
EZ
69932002-02-05 Elena Zannoni <ezannoni@redhat.com>
6994
6995 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6996 ELF_MAKE_MSYMBOL_SPECIAL.
6997 * gdbarch.c, gdbarch.h: Regenerate.
6998 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 6999 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
7000 * elfread.c (elf_symtab_read): Compile use of
7001 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7002 multiarched.
7003 * coffread.c (coff_symtab_read): Ditto, for
7004 COFF_MAKE_MSYMBOL_SPECIAL.
7005
6bb7be43
JB
70062002-02-05 Jim Blandy <jimb@redhat.com>
7007
7008 * solib-svr4.c (svr4_truncate_ptr): New function.
7009 (svr4_relocate_section_addresses): Do the address arithmetic with
7010 the appropriate truncation for target addresses, even when
7011 CORE_ADDR is larger than a target address.
7012
e18651ec
DJ
70132002-02-05 Daniel Jacobowitz <drow@mvista.com>
7014
7015 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7016 to (int *).
7017
6b2725be
DJ
70182002-02-05 Daniel Jacobowitz <drow@mvista.com>
7019
7020 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7021 code.
7022
fca9e603
DJ
70232002-02-05 Daniel Jacobowitz <drow@mvista.com>
7024
7025 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7026
6c537a52
DJ
70272002-02-05 Daniel Jacobowitz <drow@mvista.com>
7028
7029 * gdbserver/linux-low.c: Remove unused include files.
7030
d844cde6
DJ
70312002-02-05 Daniel Jacobowitz <drow@mvista.com>
7032
7033 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7034 (read_inferior_memory): Use it.
7035 (write_inferior_memory): Likewise.
7036
d07c63e7
DJ
70372002-02-05 Daniel Jacobowitz <drow@mvista.com>
7038
7039 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7040 grubbing through sys_errlist.
7041
da6d8c04
DJ
70422002-02-05 Daniel Jacobowitz <drow@mvista.com>
7043
7044 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7045
5b421780
PM
70462002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7047 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7048
9f60d481
AC
70492002-02-04 Andrew Cagney <ac131313@redhat.com>
7050
7051 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7052 (do_sfunc, set_cmd_sfunc): New functions.
7053
7054 * command.h (struct cmd_list_element): Add field func.
7055 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7056 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7057 * cli/cli-decode.h: Ditto.
7058
7059 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7060 (help_all, help_cmd_list): Ditto.
7061 (find_cmd, complete_on_cmdlist): Ditto.
7062 * top.c (execute_command): Ditto.
7063
7064 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7065 function.sfunc.
7066
7067 * infcmd.c (notice_args_read): Fix function signature.
7068
7069 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7070 * cli/cli-decode.c (add_set_cmd): Ditto.
7071 * utils.c (initialize_utils): Ditto.
7072 * maint.c (_initialize_maint_cmds): Ditto.
7073 * infrun.c (_initialize_infrun): Ditto.
7074 * demangle.c (_initialize_demangler): Ditto.
7075 * remote.c (add_packet_config_cmd): Ditto.
7076 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7077 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7078 * proc-api.c (_initialize_proc_api): Ditto.
7079 * kod.c (_initialize_kod): Ditto.
7080 * valprint.c (_initialize_valprint): Ditto.
7081 * top.c (init_main): Ditto.
7082 * infcmd.c (_initialize_infcmd): Ditto.
7083 * corefile.c (_initialize_core): Ditto.
7084 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7085 * arch-utils.c (initialize_current_architecture): Ditto.
7086 (_initialize_gdbarch_utils): Ditto.
7087 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7088
7089 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7090 * wince.c (_initialize_inftarg): Ditto.
7091 * symfile.c (_initialize_symfile): Ditto.
7092 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7093 * language.c (_initialize_language): Ditto.
7094 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7095
f9ba0717
MS
70962002-02-04 Michael Snyder <msnyder@redhat.com>
7097
7098 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7099
0c74b2a7
DJ
71002002-02-04 Daniel Jacobowitz <drow@mvista.com>
7101
7102 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7103 Add rules for building the register data files.
7104
c638789f
DJ
71052002-02-04 Daniel Jacobowitz <drow@mvista.com>
7106
7107 * regformats/regdat.sh: Add braces to the definition of
7108 expedite_regs_${arch}.
7109
db253027
DJ
71102002-02-04 Daniel Jacobowitz <drow@mvista.com>
7111
7112 * regformats/regdef.h (struct reg): Add comment describing the
7113 requirements for offset and size fields.
7114
206be19c
AS
71152002-02-04 Andreas Schwab <schwab@suse.de>
7116
7117 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7118 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7119
181c1381
RE
71202002-02-04 Richard Earnshaw <rearnsha@arm.com>
7121
7122 * gdbarch.sh (copyright): Update years in generated header.
7123 (SMASH_TEXT_ADDRESS): Add rule.
db253027 7124 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
7125 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7126 * dbxread.c: Likewise.
7127 * dwarfread.c: Likewise.
7128 * elfread.c: Likewise.
7129 * somread.c: Likewise.
7130
7131 * arm-tdep.c (arm_smash_text_address): New function.
7132 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7133
fa4ba8da
PM
71342002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7135
7136 Add support for hardware watchpoints on win32 native.
aaa38bb5 7137 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 7138 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 7139 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
7140 of debug registers.
7141 (debug_registers_changed): New variable. Reflects when debug registers
7142 are changed and need to be written to inferior.
aaa38bb5 7143 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
7144 was set, used when new threads are created.
7145 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7146 i386-nat code.
7147 (thread_rec): Set dr array if id is the thread of current_event .
7148 (child_continue, child_resume): Change the debug registers for all
7149 threads if debug_registers_changed.
7150 (child_add_thread): Change the debug registers if debug_registers_used.
7151 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7152 Link nm.h to new nm-cygwin.h file.
7153 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7154 of hardware registers.
7155
a73c86fb
AC
71562002-02-03 Andrew Cagney <ac131313@redhat.com>
7157
7158 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7159 Restore behavour broken by 2002-01-20 Andrew Cagney
7160 <ac131313@redhat.com> IEEE_FLOAT removal.
7161
acf5ed49
DJ
71622002-02-03 Daniel Jacobowitz <drow@mvista.com>
7163
7164 * c-valprint.c (c_val_print): Pass a proper valaddr to
7165 cp_print_class_method.
7166 * valops.c (search_struct_method): If there is only one method
7167 and args is NULL, return that method.
7168
493d28d5
DJ
71692002-02-03 Daniel Jacobowitz <drow@mvista.com>
7170
7171 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7172 accessing tag_name directly.
7173
7495dfdb
DJ
71742002-02-03 Daniel Jacobowitz <drow@mvista.com>
7175
7176 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7177 of accessing tag_name directly.
7178
dd6bda65
DJ
71792002-02-03 Daniel Jacobowitz <drow@mvista.com>
7180
7181 PR gdb/280
7182 * gdbtypes.c (replace_type): New function.
7183 * gdbtypes.h (replace_type): Add prototype.
7184 * stabsread.c (read_type): Use replace_type.
7185
88fe217c
RE
71862002-02-03 Richard Earnshaw <rearnsha@arm.com>
7187
7188 * Makefile.in (memattr.o): Add missing dependencies rule.
7189
e5d66720
PS
71902002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7191
7192 * breakpoint.c (break_at_finish_command): Really export.
7193 (break_at_finish_at_depth_command): Ditto.
7194 (tbreak_at_finish_command): Ditto.
7195 * hppa-tdep.c: Include completer.h.
7196 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7197 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7198
fffee0be
AC
71992002-02-01 Andrew Cagney <ac131313@redhat.com>
7200
7201 * utils.c (do_write): New function.
7202 (error_stream): Rewrite combining the code from error_begin and
7203 verror.
7204 (verror): Rewrite using error_stream.
7205 (error_begin): Delete function.
7206
255e7dbf
AC
72072002-02-01 Andrew Cagney <ac131313@redhat.com>
7208
7209 * utils.c (error_begin): Make static.
7210 * defs.h (error_begin): Delete declaration.
7211
7212 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7213 (decode_line_1): Use cplusplus_error instead of error_begin,
7214 cplusplus_hint and return_to_top_level.
7215 * coffread.c (coff_symfile_read): Use error instead of error_begin
7216 and return_to_top_level.
7217 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7218
ddfe3c15
AC
72192002-02-01 Andrew Cagney <ac131313@redhat.com>
7220
7221 * language.h (type_error, range_error): Make string parameter
7222 constant.
7223 * language.c (warning_pre_print): Delete extern declaration.
7224 * dwarfread.c (warning_pre_print): Ditto.
7225 * language.c (type_error, range_error): Rewrite to use verror and
7226 vwarning instead of warning_begin.
7227
03ac34d5
MS
72282002-02-01 Michael Snyder <msnyder@redhat.com>
7229
261c4ca2
MS
7230 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7231 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 7232
e00d1dc8
AC
72332002-02-01 Andrew Cagney <ac131313@redhat.com>
7234
7235 * command.h (NO_FUNCTION): Delete macro.
7236 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7237 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7238 * tracepoint.c (_initialize_tracepoint): Ditto.
7239 * cli/cli-decode.c (add_set_cmd): Ditto.
7240 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 7241
76b79d6e
DJ
72422002-02-01 Daniel Jacobowitz <drow@mvista.com>
7243
7244 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7245 Update ``this'' pointer when calling virtual functions.
7246
799f9e91
MS
72472002-02-01 Michael Snyder <msnyder@redhat.com>
7248
c7bd442c 7249 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
7250 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7251
3cf384d4
DJ
72522002-02-01 Daniel Jacobowitz <drow@mvista.com>
7253
7254 * regformats/reg-arm.dat: New file.
7255 * regformats/reg-i386.dat: New file.
7256 * regformats/reg-ia64.dat: New file.
7257 * regformats/reg-m68k.dat: New file.
7258 * regformats/reg-mips.dat: New file.
7259 * regformats/reg-ppc.dat: New file.
7260 * regformats/reg-sh.dat: New file.
7261 * regformats/regdef.h: New file.
7262 * regformats/regdat.sh: New file.
7263
0defa245
RE
72642002-02-01 Richard Earnshaw <reanrsha@arm.com>
7265
7266 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7267 (arm_frame_args_address, arm_frame_locals_address): New functions.
7268 (arm_frame_num_args): New function.
7269 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7270 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7271 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7272
405f26e6
MS
72732002-01-31 Michael Snyder <msnyder@redhat.com>
7274
502fd408
MS
7275 * breakpoint.c (break_at_finish_command): Export.
7276 (break_at_finish_at_depth_command): Export.
7277 (tbreak_at_finish_command): Export.
7278 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7279 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7280 "tbreak" commands, which are HPPA specific.
7281
7d35e135
MS
7282 * printcmd.c (disassemble_command): Remove an ancient
7283 artifact of an old merge.
7284
aaa38bb5 7285 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
7286 Define enum constant values for overlay mode.
7287 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
7288 (overlay_is_mapped, overlay_auto_command,
7289 overlay_manual_command): Ditto.
d874f1e2 7290
aaa38bb5
AJ
7291 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7292 breakpoint_here_p, breakpoint_inserted_here_p,
7293 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
7294 describe_other_breakpoints, check_duplicates, clear_command):
7295 Coding standard fixes.
7296
8add0441 7297 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 7298 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
7299 code: check bfd SEC_READONLY flag for section.
7300
e351066e
AC
73012002-01-31 Andrew Cagney <ac131313@redhat.com>
7302
7d35e135 7303 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 7304
8a48e967
DJ
73052002-01-30 Daniel Jacobowitz <drow@mvista.com>
7306
7307 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7308 data symbols, since we search based on textlow and texthigh.
7309 (find_pc_sect_symtab): Likewise.
7310
f5a96129
AC
73112002-01-30 Andrew Cagney <ac131313@redhat.com>
7312
7313 * defs.h (vwarning): Declare.
f5a96129
AC
7314 * utils.c (vwarning): New function.
7315 (warning): Call vwarning.
7316 (warning_begin): Delete function.
7317
7318 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7319 the warning message.
7320 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7321 warning_begin.
7322
cefd4ef5
MS
73232002-01-30 Michael Snyder <msnyder@redhat.com>
7324
1a703748
MS
7325 * NEWS: Mention "set trust-readonly-sections" command.
7326 Mention generate-core-file command.
cefd4ef5 7327
3a11626d
MS
73282002-01-15 Michael Snyder <msnyder@redhat.com>
7329
7330 * target.c: New command, "set trust-readonly-sections on".
7331 (do_xfer_memory): Honor the suggestion to trust readonly sections
7332 by reading them from the object file instead of from the target.
7333 (initialize_targets): Register command "set trust-readonly-sections".
7334
d1c7e53b
AC
73352002-01-29 Andrew Cagney <ac131313@redhat.com>
7336
7337 * parse.c (target_map_name_to_register): Simplify, search regs and
7338 pseudo-regs using a single loop.
7339
e2c9a72c
AC
73402002-01-30 Andrew Cagney <ac131313@redhat.com>
7341
7342 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7343
69824b4e
MK
73442002-01-15 Rodney Brown <rbrown64@csc.com.au>
7345
7346 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7347 * config/i386/i386v42mp.mh: Add i387-nat.o .
7348 * i386v4-nat.c: Include i387-nat.h.
7349 (supply_fpregset): Use i387_supply_fsave.
7350 (fill_fpregset): Use i387_fill_fsave.
7351
6eb69eab
RE
73522002-01-30 Richard Earnshaw <rearnsha@arm.com>
7353
7354 * arm-tdep.c (arm_call_dummy_words): Define.
7355 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7356 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7357 (CALL_DUMMY_WORDS): Define.
7358 (arm_call_dummy_words): Declare.
7359 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7360 (arm_linux_call_dummy_words): Declare.
7361
9852326a
AS
73622002-01-30 Andreas Schwab <schwab@suse.de>
7363
7364 * m68klinux-nat.c: Fix last change to use regcache_collect
7365 instead of referencing registers[] directly.
7366
977a3030
AC
73672002-01-29 Andrew Cagney <ac131313@redhat.com>
7368
7369 * parse.c (target_map_name_to_register): Delete code wrapped in
7370 #ifdef REGISTER_NAME_ALIAS_HOOK.
7371
2076c72b
MS
73722002-01-28 Michael Snyder <msnyder@redhat.com>
7373
7374 * regcache.c (legacy_read_register_gen): Need to be able to
7375 read pseudo-register as well as real register.
7376 (legacy_write_register_gen): Ditto.
7377
8fcc723b
AC
73782002-01-28 Andrew Cagney <ac131313@redhat.com>
7379
7380 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7381 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7382 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7383 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7384 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7385 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7386 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7387 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7388 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7389 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7390 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7391 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7392 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7393 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7394 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7395 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7396 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7397 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7398 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7399 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7400
afe64c1a
AC
74012002-01-28 Andrew Cagney <ac131313@redhat.com>
7402
7403 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7404 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7405 (initialize_current_architecture): Update target_byte_order using
7406 information from BFD.
aaa38bb5 7407 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
7408 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7409
75bc7ddf
AC
74102002-01-28 Andrew Cagney <ac131313@redhat.com>
7411
7412 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7413 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7414
7415 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7416 #ifdef INVALID_FLOAT.
7417 * infcmd.c (do_registers_info): Ditto.
7418 * values.c (unpack_double): Ditto. Add comment.
7419
7420 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7421 already commented out.
7422
0280a90a
AS
74232002-01-26 Andreas Schwab <schwab@suse.de>
7424
7425 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7426 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7427 registers and add support for PTRACE_GETREGS.
7428
7072a954
AC
74292002-01-24 Andrew Cagney <ac131313@redhat.com>
7430
7431 GDB 5.1.1 released from 5.1 branch.
7432 * NEWS: Add 5.1.1 news.
7433 * README: Sync with 5.1 branch.
7434
86f902e0
FF
74352002-01-23 Fred Fish <fnf@redhat.com>
7436
7437 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7438 stabstring on initial malloc. Reallocing will copy it for us,
7439 if necessary.
7440
8af51c36
EZ
74412002-01-23 Elena Zannoni <ezannoni@redhat.com>
7442
aaa38bb5 7443 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
7444 (HFILES_NO_SRCDIR): Remove hpread.h.
7445 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7446 (hpread.o): Update dependencies.
7447 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7448
7449 * hp-psymtab-read.c: Remove file.
7450 * hp-symtab-read.c: Remove file.
7451 * hpread.h: Remove file.
7452
7453 * hpread.c: Merge all contents of hp-psymtab-read.c,
7454 hp-symtab-read.c and hpread.h into this file, as it was prior to
7455 January 1999.
7456
7457 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 7458 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
7459 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7460 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7461
dc5cfeb6
EZ
74622002-01-23 Elena Zannoni <ezannoni@redhat.com>
7463
7464 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7465 fill_gregset): Call gdbarch_tdep() just once, assign result to
7466 variable and use that, instead of calling the function several
7467 times.
7468
ea87b71b
AO
74692002-01-24 Alexandre Oliva <aoliva@redhat.com>
7470
7471 * configure.host: Accept sparcv9 as alias for sparc64.
7472 * configure.tgt: Likewise.
7473
13fc0c2f
KB
74742002-01-22 Kevin Buettner <kevinb@redhat.com>
7475
7476 * solib-aix5.c (build_so_list_from_mapfile)
7477 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7478 arguments is not reversed.
7479 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7480 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 7481
7bd872fe
EZ
74822002-01-22 Elena Zannoni <ezannoni@redhat.com>
7483
7484 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7485 modified version of obsolete sh_fetch_pseudo_register.
7486 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7487 (sh4_register_read): New function.
7488 (sh_pseudo_register_write): New function. Renamed and modified
7489 version of obsolete sh_store_pseudo_register.
7490 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7491 (sh4_register_write): New function.
7492 (sh_gdbarch_init): Remove setting of gdbarch function
7493 fetch_pseudo_register and store_pseudo_register. Remove setting of
7494 register_convert_to_raw, register_convert_to_virtual,
7495 register_convertible.
7496 (sh_sh4_register_convertible): Delete. No longer needed. All is
7497 taken care by architecture specific functions
7498 register_read/register_write.
7499 (sh_sh4_register_convert_to_virtual): Make static.
7500 (sh_sh4_register_convert_to_raw): Ditto.
7501
069e84fd
AC
75022002-01-22 Andrew Cagney <ac131313@redhat.com>
7503
7504 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7505 (floatformat_is_nan, floatformat_mantissa): Ditto.
7506
7507 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7508 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7509 builtin_type_ieee_double_little,
7510 builtin_type_ieee_double_littlebyte_bigword,
7511 builtin_type_m68881_ext, builtin_type_i960_ext,
7512 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7513 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7514 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7515 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7516
211a4f69
CV
75172002-01-22 Corinna Vinschen <vinschen@redhat.com>
7518
7519 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7520 parameter. Set frameless flag if it exists and depended of
7521 whether the scanned function is frameless or not.
7522 (xstormy16_skip_prologue): If function is frameless, return
7523 result of xstormy16_scan_prologue().
7524 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7525 call.
7526
f81353e4
EZ
75272002-01-21 Elena Zannoni <ezannoni@redhat.com>
7528
7529 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7530 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7531 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7532 sh_sh4_register_byte, sh_sh4_register_raw_size,
7533 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7534 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7535 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7536 sh_store_pseudo_register, sh_do_pseudo_register): Call
7537 gdbarch_tdep() just once, assign result to variable and use that,
7538 instead of calling the function several times.
7539
63c73a17
MK
75402002-01-20 Mark Kettenis <kettenis@gnu.org>
7541
7542 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7543 macros instead of LAST_FPU_CTRL_REGNUM.
7544 (store_register): Likewise.
7545
39ad761d
JB
75462002-01-21 Jim Blandy <jimb@redhat.com>
7547
7548 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7549 is up-to-date before running the program, not just when a program
7550 exits.
7551
3d74b771
FF
75522002-01-21 Fred Fish <fnf@redhat.com>
7553
7554 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7555 when we have found all instructions we are looking for.
7556
966fbf70
RE
75572002-01-21 Richard Earnshaw <rearnsha@arm.com>
7558
7559 * arm-tdep.c (arm_register_name): New function.
7560 (arm_registers_names): Make static.
7561 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7562 (arm_register_name): Declare.
7563 (REGISTER_NAME): Use it.
7564
c3b4394c
RE
75652002-01-21 Richard Earnshaw <rearnsha@arm.com>
7566 Kevin Buettner <kevinb@redhat.com>
7567
7568 Convert arm targets to new FRAME interface.
7569 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7570 (arm_frame_find_save_regs): Delete.
7571 (arm_frame_init_saved_regs): New.
7572 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7573 Allocate extra_info as required. Convert all uses of fsr.regs
7574 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7575 to use extra_info.
7576 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7577 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7578 (check_prologue_cache, save_prologue_cache): Likewise.
7579 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7580 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7581 (FRAME_FIND_SAVED_REGS): Delete.
7582 (arm_frame_find_saved_regs): Delete prototype.
7583 (arm_frame_init_saved_regs): New prototype.
7584 (FRAME_INIT_SAVED_REGS): Define.
7585
61d99182
AC
75862002-01-20 Andrew Cagney <ac131313@redhat.com>
7587
7588 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7589
6aaea291
AC
75902002-01-20 Andrew Cagney <ac131313@redhat.com>
7591
7592 From Jeff Law <law@redhat.com>:
7593 * infttrace.c: Include <sys/pstat.h>.
7594 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7595 exec file if the ttrace equivalent fails.
7596
15f698d2
AC
75972002-01-20 Andrew Cagney <ac131313@redhat.com>
7598
7599 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7600 (closeLogFile): Ditto.
7601
f86ddd7c
MC
76022002-01-20 Michael Chastain <mec@shout.net>
7603
7604 * top.c (print_gdb_version): Bump copyright year to 2002.
7605
904507ce
AC
76062002-01-20 Andrew Cagney <ac131313@redhat.com>
7607
7608 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7609 Zannoni and Eli Zaretskii.
7610
d7f0b9ce
DJ
76112002-01-20 Daniel Jacobowitz <drow@mvista.com>
7612
7613 * buildsym.c: Update copyright years.
7614 * c-typeprint.c: Likewise.
7615 * dwarf2read.c: Likewise.
7616 * f-typeprint.c: Likewise.
7617 * gdbtypes.c: Likewise.
7618 * gdbtypes.h: Likewise.
7619 * hp-symtab-read.c: Likewise.
7620 * hpread.c: Likewise.
7621 * mdebugread.c: Likewise.
7622 * p-typeprint.c: Likewise.
7623
3fd3d7d2
AC
76242002-01-20 Andrew Cagney <ac131313@redhat.com>
7625
7626 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7627 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7628 byte-order selectable.
7629 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7630 * arch-utils.c: Ditto.
7631 (set_endian): Ditto.
7632 (set_endian_from_file): Ditto.
7633 * gdbserver/low-sim.c (create_inferior): Ditto.
7634 * gdbarch.sh: Ditto.
7635 * gdbarch.h: Re-generate.
aaa38bb5
AJ
7636 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7637 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7638 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7639 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7640 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7641 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7642 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
7643 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7644 macro definition.
7645 * config/mips/tm-wince.h: Remove #undef of macro
7646 TARGET_BYTE_ORDER_SELECTABLE.
7647 * config/sh/tm-wince.h: Ditto.
7648
b02dede2
DJ
76492002-01-20 Daniel Jacobowitz <drow@mvista.com>
7650
7651 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7652 member function fields. Add accessor macro
7653 TYPE_FN_FIELD_ARTIFICIAL.
7654 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7655 * c-typeprint.c (c_type_print_base): Skip artificial member
7656 functions.
7657
c3643761
DJ
76582002-01-20 Daniel Jacobowitz <drow@mvista.com>
7659
7660 * f-typeprint.c: Delete unused function f_type_print_args.
7661 * p-typeprint.c: Delete unused function pascal_type_print_args.
7662
8176bb6d
DJ
76632002-01-20 Daniel Jacobowitz <drow@mvista.com>
7664
7665 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7666 comment. Add ``artificial'' to ``union field_location''.
7667
7668 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7669
7670 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7671 * mdebugread.c (parse_symbol): Likewise.
7672 * stabsread.c (define_symbol): Likewise.
7673 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7674 initializing TYPE_FIELD_BITPOS to n (obsolete).
7675 (hpread_doc_function_type): Likewise.
7676 * hpread.c (hpread_function_type): Likewise.
7677
7fd60527
AC
76782002-01-20 Andrew Cagney <ac131313@redhat.com>
7679
7680 * configure.in (host_makefile_frag): Only require a host makefile
7681 fragment when a native build.
7682 * configure: Re-generate.
7683
c2f05ac9
AC
76842002-01-20 Andrew Cagney <ac131313@redhat.com>
7685
7686 * doublest.h (floatformat_from_type): Declare.
7687 * doublest.c (floatformat_from_type): New function.
7688 (convert_typed_floating): Use.
7689
7690 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7691 call to function floatformat_from_type.
7692
7693 * gdbarch.sh (IEEE_FLOAT): Delete.
7694 * gdbarch.h, gdbarch.c: Re-generate.
7695 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7696 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7697 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7698 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7699 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7700 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7701 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7702 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7703 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7704 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7705 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
7706 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7707
7708 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7709 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7710 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7711 * sh-tdep.c (sh_gdbarch_init): Ditto.
7712 * mips-tdep.c (mips_gdbarch_init): Ditto.
7713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7714 * cris-tdep.c (cris_gdbarch_init): Ditto.
7715
abf22e64
AJ
77162002-01-20 Jiri Smid <smid@suse.cz>
7717
7718 * configure.host, configure.tgt: Support x86-64.
7719 * NEWS: Note new target x86-64.
7720
b7c4cbf8
AJ
7721 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7722 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7723 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7724 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7725 x86-64-linux-nat.o): Fix dependencies.
7726
82600034
AC
77272002-01-19 Andrew Cagney <ac131313@redhat.com>
7728
7729 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7730 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7731 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7732 * config/sparc/xm-sun4os4.h: Delete file.
7733 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 7734
bbe5c628
AC
77352002-01-19 Andrew Cagney <ac131313@redhat.com>
7736
7737 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7738 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7739 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7740 * config/i386/i386lynx.mh (XM_FILE): Delete.
7741 * config/rs6000/xm-rs6000ly.h: Delete file.
7742 * config/sparc/xm-sparclynx.h: Delete file.
7743 * config/m68k/xm-m68klynx.h: Delete file.
7744 * config/i386/xm-i386lynx.h: Delete file.
7745 * config/xm-lynx.h: Delete file.
7746 * config/djgpp/fnchange.lst: Update.
7747
f8453e34
JT
77482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7749
7750 * alpha-tdep.c (alpha_register_byte): New function.
7751 (alpha_register_raw_size): Ditto.
7752 (alpha_register_virtual_size): Ditto.
7753 (alpha_skip_prologue_internal): Renamed from
7754 alpha_skip_prologue.
7755 (alpha_skip_prologue): New version that calls
7756 alpha_skip_prologue_internal.
7757 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7758 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7759 second argument from alpha_skip_prologue.
7760 (REGISTER_BYTE): Use alpha_register_byte.
7761 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7762 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7763 (FRAMELESS_FUNCTION_INVOCATION): Use
7764 generic_frameless_function_invocation_not.
7765 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7766 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7767
52d9e613
AC
77682002-01-19 Andrew Cagney <ac131313@redhat.com>
7769
7770 * config/mips/xm-news-mips.h: Delete file.
7771 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7772
7773 * config/m88k/xm-m88k.h: Delete file.
7774 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7775 * config/m88k/xm-delta88v4.h: Ditto.
7776 * config/m88k/xm-delta88.h: Ditto.
7777
7778 * config/alpha/xm-fbsd.h: Delete file.
7779 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7780
7781 * config/sparc/xm-sparc.h: Delete file.
7782 * Makefile.in (xm-sun4os4.h): Delete dependency.
7783 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7784 * config/sparc/xm-sun4os4.h: Ditto.
7785 * config/sparc/xm-linux.h: Ditto.
7786
7787 * config/i386/xm-windows.h: Delete file.
7788
2d1b2124
AC
77892002-01-19 Andrew Cagney <ac131313@redhat.com>
7790
7791 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7792 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7793
ee1f65f0
JT
77942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7795
7796 * alpha-tdep.c (alpha_call_dummy_words): New.
7797 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7798 (CALL_DUMMY_P): Define.
7799 (CALL_DUMMY_WORDS): Define.
7800 (SIZEOF_CALL_DUMMY_WORDS): Define.
7801
98081e55
PB
78022002-01-19 Per Bothner <per@bothner.com>
7803
7804 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7805 isn't NULL, which can happen with some gcj-3.x-produced code.
7806
0d056799
JT
78072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * alpha-tdep.c (alpha_register_virtual_type): New function.
7810 (alpha_init_frame_pc_first): Ditto.
7811 (alpha_fix_call_dummy): Ditto.
7812 (alpha_store_struct_return): Ditto.
7813 (alpha_extract_struct_value_address): Ditto.
7814 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7815 alpha_register_virtual_type.
7816 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7817 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7818 alpha_extract_struct_value_address.
7819 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7820 (INIT_FRAME_PC): Use init_frame_pc_noop.
7821 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7822
4604bcad
MK
78232002-01-19 Mark Kettenis <kettenis@gnu.org>
7824
7825 * i386gnu-nat.c: Include "i386-tdep.h".
7826 (fetch_fpregs): Simplify code dealing with uninitialized floating
7827 point states such that it doesn't require FP7_REGNUM.
7828
140f9984
JT
78292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7830
abf22e64
AJ
7831 * alpha-tdep.c (frame_extra_info): New.
7832 (alpha_find_saved_regs): Make static. Use
140f9984
JT
7833 frame->extra_info.
7834 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
7835 (alpha_frame_saved_pc): Use frame->extra_info.
7836 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7837 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
7838 (init_extra_frame_info): Rename to...
7839 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 7840 (alpha_print_extra_frame_info): New function.
140f9984
JT
7841 (alpha_frame_locals_address): Ditto.
7842 (alpha_frame_args_address): Ditto.
abf22e64 7843 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
7844 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7845 alpha_frame_args_address.
abf22e64 7846 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 7847 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
7848 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7849 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
7850 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7851 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7852
d734c450
JT
78532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7854
7855 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7856 (alpha_cannot_fetch_register): Ditto.
7857 (alpha_cannot_store_register): Ditto.
7858 (alpha_register_convertible): Ditto.
7859 (alpha_use_struct_convention): Ditto.
7860 * config/alpha/tm-alpha.h: Update copyright years.
7861 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7862 (INNER_THAN): Use core_addr_lessthan.
7863 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7864 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7865 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7866 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7867 (FRAME_CHAIN): Remove unnecessary cast.
7868
b4ceaee6
AC
78692002-01-18 Andrew Cagney <ac131313@redhat.com>
7870
7871 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7872 obsolete.
7873
0a65a603
AC
78742002-01-18 Andrew Cagney <ac131313@redhat.com>
7875
7876 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7877 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7878 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7879 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7880 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7881 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7882 * x86-64-linux-nat.c: Ditto.
7883
636a6dfc
JT
78842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7885
abf22e64 7886 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
7887 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7888 (REGISTER_NAME): Define.
7889
acceddb6
JT
78902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7891
7892 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7893
ec32e4be
JT
78942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7895
7896 * alpha-tdep.c: Update copyright years.
7897 (alpha_next_pc): New function.
7898 (alpha_software_single_step): Ditto.
7899 * config/alpha/tm-alpha.h: Add prototype for
7900 alpha_software_single_step.
7901
e771a871
JT
79022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7903
7904 * alphabsd-nat.c: Update copyright years.
7905 (fill_gregset): Use regcache_collect.
7906 (fill_fpregset): Likewise.
7907 (fetch_inferior_registers): Only fetch integer registers
7908 if requested to do so.
7909 (store_inferior_registers): Only store integer registers
7910 if requested to do so.
7911
7708fa01
AC
79122002-01-17 Andrew Cagney <ac131313@redhat.com>
7913
7914 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7915 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7916 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7917 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7918 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7919 * config/arm/linux.mh (XDEPFILES): Delete.
7920 * config/arm/nbsd.mh (XDEPFILES): Delete.
7921 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7922 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7923 * config/i386/i386m3.mh (XDEPFILES): Delete.
7924 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7925 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7926 * config/i386/fbsd.mh (XDEPFILES): Delete.
7927 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7928 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7929 * config/i386/i386v4.mh (XDEPFILES): Delete.
7930 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7931 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7932 * config/i386/i386aix.mh (XDEPFILES): Delete.
7933 * config/i386/go32.mh (XDEPFILES): Delete.
7934 * config/i386/cygwin.mh (XDEPFILES): Delete.
7935 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7936 * config/i386/i386mach.mh (XDEPFILES): Delete.
7937 * config/i386/i386v32.mh (XDEPFILES): Delete.
7938 * config/i386/linux.mh (XDEPFILES): Delete.
7939 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7940 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7941 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7942 * config/i386/i386sco.mh (XDEPFILES): Delete.
7943 * config/i386/i386v.mh (XDEPFILES): Delete.
7944 * config/i386/nbsd.mh (XDEPFILES): Delete.
7945 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7946 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7947 * config/i386/symmetry.mh (XDEPFILES): Delete.
7948 * config/i386/obsd.mh (XDEPFILES): Delete.
7949 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7950 * config/ia64/linux.mh (XDEPFILES): Delete.
7951 * config/ia64/aix.mh (XDEPFILES): Delete.
7952 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7953 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7954 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7955 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7956 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7957 * config/m68k/linux.mh (XDEPFILES): Delete.
7958 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7959 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7960 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7961 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7962 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7963 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7964 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7965 * config/m88k/delta88.mh (XDEPFILES): Delete.
7966 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7967 * config/m88k/m88k.mh (XDEPFILES): Delete.
7968 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7969 * config/mips/linux.mh (XDEPFILES): Delete.
7970 * config/mips/irix6.mh (XDEPFILES): Delete.
7971 * config/mips/irix5.mh (XDEPFILES): Delete.
7972 * config/mips/irix4.mh (XDEPFILES): Delete.
7973 * config/mips/irix3.mh (XDEPFILES): Delete.
7974 * config/mips/decstation.mh (XDEPFILES): Delete.
7975 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7976 (NATDEPFILES): Move core-aout.o to here.
7977 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7978 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7979 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7980 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7981 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7982 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7983 * config/pa/hpux11.mh (XDEPFILES): Delete.
7984 * config/powerpc/aix.mh (XDEPFILES): Delete.
7985 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7986 * config/powerpc/linux.mh (XDEPFILES): Delete.
7987 * config/romp/rtbsd.mh: Rename XDEPFILES.
7988 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7989 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7990 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7991 * config/s390/s390.mh (XDEPFILES): Delete.
7992 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7993 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7994 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7995 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7996 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7997 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7998 * config/sparc/linux.mh (XDEPFILES): Delete.
7999 * config/vax/vaxult.mh (XDEPFILES): Delete.
8000 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8001 * Makefile.in (DEPFILES): Remove XDEPFILES.
8002
375fc983
AC
80032002-01-17 Andrew Cagney <ac131313@redhat.com>
8004
8005 * utils.c (internal_verror): Fix comments, default is yes not no.
8006 Update queries to match. Default to quit and dump core.
8007
8926118c
AC
80082002-01-17 Andrew Cagney <ac131313@redhat.com>
8009
8010 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8011 copyright.
8012 * defs.h, event-top.c, gdbcmd.h: Ditto.
8013 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8014 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8015 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8016 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8017 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8018 * mi/mi-main.c:Ditto.
8019
8020 * stack.c, symfile.c: Update copyright.
8021
45b7b345
DJ
80222002-01-17 Daniel Jacobowitz <drow@mvista.com>
8023
db728ff7
DJ
8024 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8025 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8026 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8027 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 8028
db728ff7
DJ
80292002-01-17 Daniel Jacobowitz <drow@mvista.com>
8030
8031 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8032 * gdbserver/low-lynx.c (myattach): Likewise.
8033 * gdbserver/low-nbsd.c (myattach): Likewise.
8034 * gdbserver/low-sim.c (myattach): Likewise.
8035 * gdbserver/low-sparc.c (myattach): Likewise.
8036 * gdbserver/low-sun3.c (myattach): Likewise.
8037
8038 * gdbserver/low-linux.c (myattach): New function.
45b7b345 8039
db728ff7 8040 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
8041 (main): Handle "--attach".
8042
8de3c354
AC
80432002-01-16 Andrew Cagney <ac131313@redhat.com>
8044
8045 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8046 maintainer.
8047
b0129042
DJ
80482002-01-15 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * c-typeprint.c (is_type_conversion_operator): Add additional
8051 check for non-conversion operators.
8052
ba8679fb 80532002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
8054
8055 * linux-proc.c: Add "info proc" command, a la procfs.c.
8056 (read_mapping): New function, abstract and re-use code.
8057 (linux_find_memory_regions): Use new func read_mapping.
8058 (linux_info_proc_cmd): New function, implement "info proc".
8059 (_initialize_linux_proc): Add new command "info proc".
8060
e4f9b4d5
MS
80612002-01-15 Michael Snyder <msnyder@redhat.com>
8062
8063 * symfile.c (generic_load): Use bfd_map_over_sections method
8064 instead of manipulating bfd structure members directly.
8065 (add_section_size_callback): New function, bfd sections callback
8066 used by generic_load.
8067 (load_sections_callback): New function, bfd sections callback
8068 used by generic_load.
8069
08cf96df
EZ
80702002-01-15 Elena Zannoni <ezannoni@redhat.com>
8071
abf22e64 8072 [Based on work by Jim Blandy]
08cf96df
EZ
8073 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8074 (builtin_type_vec128): Export.
8075 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8076 types.
8077 (builtin_type_vec128): New builtin type for 128 bit vector
8078 registers.
8079 (build_gdbtypes): Initialize builtin_type_v16qi and
8080 builtin_type_v8hi. Create the vec128 register builtin type
8081 structure.
8082 (build_builtin_type_vec128): New function.
abf22e64 8083 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
8084 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8085 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8086 AltiVec register to new builtin type.
8087
d7242108
DJ
80882001-01-15 Daniel Jacobowitz <drow@mvista.com>
8089
8090 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8091 to make_cv_type.
8092
4ee3352d
AC
80932002-01-14 Andrew Cagney <ac131313@redhat.com>
8094
8095 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8096 CLEAN_UP_REGISTER_VALUE.
8097 * regcache.c (supply_register): Update only call.
8098
f015b2e7
AC
80992002-01-14 Andrew Cagney <ac131313@redhat.com>
8100
8101 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8102 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8103 a29k-*-vxworks* targets as obsolete.
8104
356ae49d
MS
81052002-01-14 Michael Snyder <msnyder@redhat.com>
8106
8107 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8108 until we can resolve portability issues.
8109 * gregset.h: Remove references to fpxregs.
8110 * gcore.c (gcore_command): Initialize note_sec to NULL.
8111
ade8f45e
AC
81122002-01-13 Andrew Cagney <ac131313@redhat.com>
8113
8114 * signals.c (target_signal_to_name): Rewrite. Only use
8115 signals[].name when in bounds and non-NULL.
abf22e64 8116
89c49e7a
AC
81172002-01-13 Andrew Cagney <ac131313@redhat.com>
8118
8119 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8120 * signals.c (target_signal_to_name): Verify that SIG is within the
8121 bounds of the signals array.
8122
4daa9f9f
AC
81232002-01-13 Andrew Cagney <ac131313@redhat.com>
8124
8125 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8126
ba4bbdcb
KS
81272002-01-13 Keith Seitz <keiths@redhat.com>
8128
8129 * stack.c (print_frame_info_base): Print the frame's pc
8130 only if when print_frame_info_listing_hook is not defined.
8131
575bbeb6
KS
81322002-01-13 Keith Seitz <keiths@redhat.com>
8133
8134 * varobj.c (varobj_set_value): Make sure that there were no
8135 errors evaluating the object before attempting to set its
8136 value.
8137 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8138 so this offset adjustment is no longer necessary.
8139 (create_child): Don't set the error flag if the child is
8140 a CPLUS_FAKE_CHILD.
8141 (value_of_child): If value_fetch_lazy fails, return NULL
8142 so that callers will be notified that an error occurred.
8143 (c_value_of_variable): Delay check of variable's validity
8144 until later. We actually want all structs and unions to have
8145 the value "{...}".
8146 Do not return "???" for variables which could not be evaluated.
8147 This error condition must be returned to the caller so that it
8148 can get the error condition from gdb.
8149 (cplus_name_of_child): Adjust index for vptr before figuring
8150 out the name of the child.
8151 (cplus_value_of_child): If a child's (real) parent is not valid,
8152 don't even bother trying to give a value for it. Just return
8153 an error. Change all instances in this function.
8154 (cplus_type_of_child): If our parent is one of the "fake"
8155 parents, we need to get at the type of the real parent, and
8156 derive the child's true type using this information.
8157
b76898ab
AC
81582002-01-13 Andrew Cagney <ac131313@redhat.com>
8159
8160 From 2002-01-09 John Marshall <johnm@falch.net>:
8161 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8162 sources.redhat.com, and tweak some related URLs which had
8163 suffered from linkrot.
8164
b6649e88
AC
81652002-01-13 Andrew Cagney <ac131313@redhat.com>
8166
8167 From Jeff law:
8168 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8169 structures passed in registers.
8170
82cc5033
EZ
81712002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8172
8173 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8174 white space which prevented compilation. Reported by DSK
8175 <dsk@student.unsw.edu.au>.
8176
ba5f2f8a
MS
81772002-01-11 Michael Snyder <msnyder@redhat.com>
8178
fbd35540
MS
8179 * symfile.c (build_section_addr_info_from_section_tab):
8180 Use bfd access method instead of manipulating bfd directly.
8181 (syms_from_objfile): Ditto.
8182 (simple_overlay_update_1): Ditto.
8183 (simple_overlay_update): Ditto.
8184 (generic_load): Ditto.
8185 (overlay_unmapped_address): FIXME comment, bfd access methods.
8186 (sections_overlap): FIXME comment, bfd access methods.
8187 (pc_in_mapped_range): FIXME comment, bfd access methods.
8188 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8189 (section_is_mapped): FIXME comment, bfd access methods.
8190 (section_is_overlay): FIXME comment, bfd access methods.
8191
ba5f2f8a
MS
8192 * symfile.c (generic_load): Whitespace and long line cleanups.
8193 Remove duplicate variable, change several local variables to
8194 more appropriate data types.
8195 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8196
17df2af6
AC
81972002-01-12 Andrew Cagney <ac131313@redhat.com>
8198
8199 From Peter Schauer:
8200 * language.c (longest_local_hex_string_custom): Use phex_nz to
8201 convert NUM to a hex string.
8202
ec920329
EZ
82032002-01-12 Elena Zannoni <ezannoni@redhat.com>
8204
8205 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8206 the function.
538a76d6 8207 Update Copyright year.
ec920329 8208
3abd2e01
AC
82092002-01-12 Andrew Cagney <ac131313@redhat.com>
8210
8211 * language.c (longest_raw_hex_string): Delete unused function.
8212
b21b22e0
PS
82132002-01-11 Petr Sorfa <petrs@caldera.com>
8214
8215 * MAINTAINERS (write-after-approval): Add myself.
8216 * dwarf2read.c (read_tag_string_type): Handling of
8217 DW_AT_byte_size.
8218 (read_tag_string_type): FORTRAN fix to prevent propagation of
8219 first string size.
8220 (set_cu_language): Handling of DW_LANG_Fortran95
8221
747fe712
RE
82222002-01-11 Richard Earnshaw <rearnsha@arm.com>
8223
8224 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8225 GETPID(inferior_ptid).
8226 (store_inferior_registers): Likewise.
8227
f1bea926
JM
82282002-01-10 Jason Merrill <jason@redhat.com>
8229
8230 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8231 Fix DW_OP_minus.
8232
ae940673
AC
82332002-01-10 Andrew Cagney <ac131313@redhat.com>
8234
8235 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8236 and bfd/elf32-sh-nbsd.c.
8237
00546b04
MS
82382002-01-10 Michael Snyder <msnyder@redhat.com>
8239
352ed7b4
MS
8240 * NEWS: Mention --pid and corefile/proc-id behavior change.
8241
c18be923
MS
8242 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8243 * gcore.c: Include cli/cli-decode.h instead of command.h.
8244
00546b04
MS
8245 * main.c (captured_main): Add new command line option "--pid".
8246 If the second command line argument (following the symbol-file)
8247 begins with a digit, try to attach to it before trying to open
8248 it as a corefile.
8249 (print_gdb_help): Document the "--pid" argument.
8250
db60ec62
EZ
82512002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8252
8253 * completer.c (command_completer): New function.
8254
8255 * completer.h <command_completer>: Add prototype.
8256
8257 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8258 completer for the "help" command.
8259
39c22d1a
JM
82602002-01-09 Jason Merrill <jason@redhat.com>
8261
8262 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8263
c564377f
MS
82642002-01-09 Michael Snyder <msnyder@redhat.com>
8265
975aec09
MS
8266 * i386-linux-nat.c (fill_fpxregset): Make global.
8267 (store_fpxregset): Ditto.
8268
db4a10fa
MS
8269 * gregset.h (gdb_fpxregset_t): Define.
8270 (supply_fpxregset): Prototype.
8271 (fill_fpxregset): Prototype.
8272
c564377f
MS
8273 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8274
c3d45d70
RE
82752002-01-09 Richard Earnshaw <rearnsha@arm.com>
8276
8277 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8278 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8279 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8280
fcc87af1
AC
82812002-01-09 Andrew Cagney <ac131313@redhat.com>
8282
8283 * MAINTAINERS: Update target maintainer rules so that any
8284 Maintainer can approve a tested patch for a maintenance-only
8285 target.
8286
dd96c05b
RE
82872002-01-09 Richard Earnshaw <rearnsha@arm.com>
8288
d4297db9 8289 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 8290
d4297db9 8291 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
8292 IN_SIGTRAMP.
8293
145fdc6e
MS
82942002-01-08 Michael Snyder <msnyder@redhat.com>
8295
8296 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8297 real name of the executable, rather than the /proc name.
8298
be4d1333
MS
82992002-01-03 Michael Snyder <msnyder@redhat.com>
8300
8301 Implement a "generate-core-file" command in gdb, save target state.
8302 * gcore.c: New file. Implement new command 'generate-core-file'.
8303 Save a corefile image of the current state of the inferior.
8304 * linux-proc.c: Add linux-specific code for saving corefiles.
8305 * target.h (struct target_ops): Add new target vectors for saving
8306 corefiles; to_find_memory_regions and to_make_corefile_notes.
8307 (target_find_memory_regions): New macro.
8308 (target_make_corefile_notes): New macro.
8309 * target.c (update_current_target): Inherit new target methods.
8310 (dummy_find_memory_regions): New place-holder method.
8311 (dummy_make_corefile_notes): New place-holder method.
8312 (init_dummy_target): Initialize new dummy target vectors.
8313 * exec.c (exec_set_find_memory_regions): New function.
8314 Allow the exec_ops vector for memory regions to be taken over.
8315 (exec_make_note_section): New function, target vector method.
8316 * defs.h (exec_set_find_memory_regions): Export prototype.
8317 * procfs.c (proc_find_memory_regions): New function, corefile method.
8318 (procfs_make_note_section): New function, corefile method.
8319 (init_procfs_ops): Set new target vector pointers.
8320 (find_memory_regions_callback): New function.
8321 (procfs_do_thread_registers): New function.
8322 (procfs_corefile_thread_callback): New function.
8323 * sol-thread.c (sol_find_memory_regions): New function.
8324 (sol_make_note_section): New function.
8325 (init_sol_thread_ops): Initialize new target vectors.
8326 * inftarg.c (inftarg_set_find_memory_regions): New function.
8327 Allow to_find_memory_regions vector to be taken over.
8328 (inftarg_set_make_corefile_notes): New function.
8329 Allow to_make_corefile_notes vector to be taken over.
8330 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8331 interface layer if not target_has_execution (may be a corefile).
8332 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8333 * config/sparc/sun4sol2.mh: Ditto.
8334 * config/alpha/alpha-linux.mh: Ditto.
8335 * config/arm/linux.mh: Ditto.
8336 * config/i386/x86-64linux.mh: Ditto.
8337 * config/ia64/linux.mh: Ditto.
8338 * config/m68k/linux.mh: Ditto.
8339 * config/mips/linux.mh: Ditto.
8340 * config/powerpc/linux.mh: Ditto.
8341 * config/sparc/linux.mh: Ditto.
8342
c6b92abd
MS
83432002-01-07 Michael Snyder <msnyder@redhat.com>
8344
8345 * arm-linux-nat.c: Remove references to regcache.c internal data
8346 (registers[] and register_valid[]).
8347
4b09dc8c
MS
83482002-01-07 Michael Snyder <msnyder@redhat.com>
8349
abf22e64
AJ
8350 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8351 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
8352 symbol file and shlibs.
8353 * Makefile.in: Add rule for linux-proc.o.
8354 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8355 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8356 * config/arm/linux.mh: Ditto.
8357 * config/i386/linux.mh: Ditto.
8358 * config/i386/x86-64linux.mh: Ditto.
8359 * config/ia64/linux.mh: Ditto.
8360 * config/m68k/linux.mh: Ditto.
8361 * config/mips/linux.mh: Ditto.
8362 * config/powerpc/linux.mh: Ditto.
8363 * config/sparc/linux.mh: Ditto.
8364
c25b74ac
PM
83652002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8366
8367 * win32-nat.c: Add i386-tdep.h dependency.
8368
94cd915f
MS
83692002-01-07 Michael Snyder <msnyder@redhat.com>
8370
c7cccb76
MS
8371 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8372 instead of bfd_get_arch_size. Don't bail out just because
8373 there's no exec_bfd.
abf22e64 8374
34c0bd93
MS
8375 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8376 * p-valprint.c (pascal_object_print_value): Ditto.
8377 * somread.c (som_symtab_read): Ditto.
8378 * symfile.c (simple_free_overlay_region_table): Ditto.
8379 * valops.c (value_assign): Ditto.
8380
21c1c920
MS
8381 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8382 use tilde_expand and strerror for opening save-tracepoints file.
8383
5bbd998e
MS
8384 * thread-db.c (thread_db_new_objfile): Indendation fix.
8385
94cd915f
MS
8386 * infptrace.c (GDB_MAX_ALLOCA): New define.
8387 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 8388 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
8389 can be overridden with whatever value is appropriate to the host).
8390 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8391 alloca to allocate potentially large buffer.
8392 * rs6000-nat.c (child_xfer_memory): Ditto.
8393 * symm-nat.c (child_xfer_memory): Ditto.
8394 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8395
494e8a93
JSC
83962002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8397
8398 From Nick Clifton <nickc@redhat.com>
8399 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8400
d0e1d48e
MS
84012002-01-07 Michael Snyder <msnyder@redhat.com>
8402
abf22e64 8403 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
8404 Don't use exec_bfd if it's NULL.
8405
290b2c7a
MK
84062002-01-06 Mark Kettenis <kettenis@gnu.org>
8407
abf22e64 8408 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 8409
aef21287
AC
84102002-01-06 Andrew Cagney <ac131313@redhat.com>
8411
8412 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8413 * gnu-nat.c: Ditto.
8414
30efa627
AC
84152002-01-06 Andrew Cagney <ac131313@redhat.com>
8416
8417 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8418 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8419 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8420 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8421 z8k-coff have not been multi-arched. Update z8k-coff build
8422 status.
8423
9b4ff276
AC
84242002-01-06 Andrew Cagney <ac131313@redhat.com>
8425
8426 * MAINTAINERS: Mark a29k target as obsolete.
8427 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8428 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8429 comments.
8430 * NEWS: Note that a29k targets are obsolete.
8431 * a29k-tdep.c: Mark as obsolete.
8432 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8433 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8434 a29k-*-vxworks* targets as obsolete.
8435 * remote-adapt.c: Obsolete.
8436 * remote-eb.c: Obsolete.
8437 * remote-mm.c: Obsolete.
8438 * remote-udi.c: Obsolete.
8439 * config/a29k/a29k-udi.mt: Obsolete.
8440 * config/a29k/a29k.mt: Obsolete.
8441 * config/a29k/tm-a29k.h: Obsolete.
8442 * config/a29k/tm-vx29k.h: Obsolete.
8443 * config/a29k/vx29k.mt: Obsolete.
8444
a9011d31
AC
84452002-01-05 Andrew Cagney <ac131313@redhat.com>
8446
8447 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8448 with BFD_ENDIAN_BIG.
8449
9299404e
AC
84502002-01-05 Andrew Cagney <ac131313@redhat.com>
8451
8452 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8453 * configure, config.in: Re-generate.
8454 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8455 * defs.h: Do not include <endian.h>.
8456
7e89e357
JT
84572002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8458
8459 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8460 * config.in: Regenerate.
8461 * configure.in: Update copyright years.
8462 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8463 * configure: Regenerate.
8464 * i386bsd-nat.c: Update copyright years.
8465 (fill_gregset): Use regcache_collect.
8466 (fetch_inferior_registers): Only fetch integer registers
8467 if requested to do so. Add support for XMM registers
8468 using PT_GETXMMREGS.
8469 (store_inferior_registers): Only store integer registers
8470 if requested to do so. Add support for XMM registers
8471 using PT_SETXMMREGS.
8472 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8473 (store_inferior_registers): Remove.
8474 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8475 (fetch_elfcore_registers): New function.
8476 (i386nbsd_elfcore_fns): New.
8477 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8478 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8479 i386bsd-nat.o.
8480 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8481 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8482 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8483 * config/i386/tm-nbsd.h: Update copyright years.
8484 (HAVE_SSE_REGS): Define.
8485 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8486 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8487 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8488 (SIGCONTEXT_PC_OFFSET): Remove.
8489 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8490
a752853e
AC
84912002-01-05 Andrew Cagney <ac131313@redhat.com>
8492
8493 * configure.tgt: Remove powerpc-*-macos* target.
8494 * config/m68k/xm-mpw.h: Delete file.
8495 * config/xm-mpw.h: Delete file.
8496 * ser-mac.c: Delete file.
8497 * mpw-make.sed: Delete file.
8498 * mpw-config.in: Delete file.
8499 * mac-xdep.c: Delete file.
8500 * mac-gdb.r: Delete file.
8501 * mac-defs.h: Delete file.
8502 * mac-nat.c: Delete file.
8503 * config/powerpc/macos.mh: Delete file.
8504 * config/powerpc/macos.mt: Delete file.
8505 * config/powerpc/nm-macos.h: Delete file.
8506 * config/powerpc/tm-macos.h: Delete file.
8507 * source.c (openp, open_source_file): Remove obsolete code.
8508 * top.c (gdb_readline): Ditto.
8509 * utils.c (query): Ditto.
8510 * event-top.c (display_gdb_prompt): Ditto.
8511 * Makefile.in (ser-mac.o): Delete obsolete target.
8512 * NEWS: Update.
8513
d7449b42
AC
85142002-01-04 Andrew Cagney <ac131313@redhat.com>
8515
8516 * defs.h (BIG_ENDIAN): Delete macro definition.
8517 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8518 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8519 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8520 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8521 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8522 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8523 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8524 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8525 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8526 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8527 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8528 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8529 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8530 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8531 * gdbarch.c: Re-generate.
8532
356374e8
DJ
85332002-01-04 Daniel Jacobowitz <drow@mvista.com>
8534
8535 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8536 for core files.
8537
a2b8f8f8
JT
85382002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8539
8540 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8541
12466af9
AC
85422002-01-04 Andrew Cagney <ac131313@redhat.com>
8543
8544 * value.h (value_ptr): Delete typedef.
8545
3549ab40
JT
85462002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8547
8548 * i386nbsd-nat.c: Update copyright years.
8549 Include i386-tdep.h.
8550
fedbd091
EZ
85512002-01-04 Elena Zannoni <ezannoni@redhat.com>
8552
8553 * stabsread.c: Update copyright years.
8554
8555 From Debashis Mahata <debashis.mahata@wipro.com>:
8556 (read_struct_fields): Deal with Sun C compiler erroneous stab
8557 output for structs and unions.
fec8b34f 8558 Fix PR gdb/269.
fedbd091 8559
eb43544b
DJ
85602002-01-04 Daniel Jacobowitz <drow@mvista.com>
8561
8562 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8563 prototype.
8564
1514d34e
DJ
85652002-01-04 Daniel Jacobowitz <drow@mvista.com>
8566
8567 * cp-abi.c: Fix whitespace.
8568 (baseclass_offset): New wrapper function.
8569 * cp-abi.h (baseclass_offset): Add prototype.
8570 (struct cp_abi_ops): Add baseclass_offset pointer.
8571
8572 * valops.c (vb_match): Move to...
8573 * gnu-v2-abi.c (vb_match): here.
8574 * valops.c (baseclass_offset): Move to...
8575 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8576
8577 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8578
8579 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8580 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8581 * hpacc-abi.c (init_hpacc_ops): Likewise.
8582
7f8c9282
DJ
85832002-01-04 Daniel Jacobowitz <drow@mvista.com>
8584
8585 * valops.c (find_overload_match): Accept obj as a
8586 reference parameter. Update it before returning.
8587 * value.h (find_overload_match): Update prototype.
8588 * eval.c (evaluate_subexp_standard): Pass object to
8589 find_overload_match by reference.
8590
f23631e4
AC
85912002-01-03 Andrew Cagney <ac131313@redhat.com>
8592
8593 * valarith.c: Replace value_ptr with struct value pointer. Remove
8594 register attribute from value declarations.
8595 * valops.c: Ditto.
8596 * value.h: Ditto.
8597 * scm-lang.c (scm_lookup_name): Ditto.
8598
79e10fab 85992002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 8600
79e10fab
AC
8601 Abstract the functionality of iterating over mapped memory
8602 regions into a general purpose iterator function.
abf22e64 8603 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
8604 iterator for memory sections.
8605 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8606 (solib_mappings_callback): New function, callback for above.
8607 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8608 (info_mappings_callback): New function, callback for above.
8609
8610 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8611
c5ad026a
MK
86122002-01-01 Mark Kettenis <kettenis@gnu.org>
8613
d2a7c97a
MK
8614 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8615 * i386-tdep.c: Include "elf-bfd.h".
8616 (process_note_abi_tag_sections): New function.
8617 (i386_gdbarch_init): Add code to recognize various OS/ABI
8618 combinations.
8619
c5ad026a
MK
8620 * maint.c (_initialize_maint_cmds): Add missing \ in
8621 string-literal.
8622
a1a5b71e 8623For older changes see ChangeLog-2001
c906108c
SS
8624\f
8625Local Variables:
8626mode: change-log
8627left-margin: 8
8628fill-column: 74
8629version-control: never
8630End:
This page took 0.649318 seconds and 4 git commands to generate.