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