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