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