* Makefile.in (i386_linux_tdep_h): Define.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5179e78f
AC
12002-06-14 Andrew Cagney <cagney@redhat.com>
2
3 * Makefile.in (i386_linux_tdep_h): Define.
4 (i386_tdep_h, i387_tdep_h): Define.
5 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6 $(i386_tdep_h) and $(i387_tdep_h).
7 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8
8201327c
MK
92002-06-14 Mark Kettenis <kettenis@gnu.org>
10
edf393ac
MK
11 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
12 Already covered by the default.
13
896fb97d
MK
14 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
15 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
16 (i386_gdbarch_init): Initialize long_double_format and long_double
17 bit.
18
8201327c
MK
19 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
20 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
21 Move these to ...
22 * config/i386/i386sol2.mh: ... here.
23 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
24 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
25 (SIGCONTEXT_PC_OFFSET): Remove define.
26 (IN_SIGTRAMP): Remove define.
27 * i386-sol2-tdep.c: New file.
28
29 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
30 * config/i386/tm-i386nw.h: Removed.
31
32 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
33 USE_STRUCT_CONVENTION): Remove defines.
34 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
35 (get_longjmp_target): Remove prototype.
36 (IN_SIGTRAMP): Remove define.
37 (i386bsd_in_sigtramp): Remove prototype.
38 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
39 function. Update comment accordingly
40 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
41 (FRAME_SAVED_PC): Remove define.
42 (i386bsd_frame_saved_pc): Remove prototype.
43 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
44 GET_LONGJMP_TARGET): Remove defines.
45 (get_longjmp_target): Remove prototype.
46 (IN_SIGTRAMP): Remove define.
47 (i386bsd_in_sigtramp): Remove prototype.
48 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
49 function. Update comment accordingly
50 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
51 (FRAME_SAVED_PC): Remove define.
52 (i386bsd_frame_saved_pc): Remove prototype.
53 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
54 Remove prototype.
55 (USE_STRUCT_CONVENTION): Remove prototype.
56 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
57 declaration.
58 (_initialize_i386bsd_nat): Revise logic to determine some
59 constants at compile time when compiling a native GDB. Warn if
60 things don't match up with what we expect.
61 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
62 Remove variables.
63 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
64 to use date stored in `struct gdbarch_tdep'.
65 (i386bsd_sigcontext_offset): Remove varaible.
66 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
67 stored in `struct gdbarch_tdep'.
68 (i386bsd_frame_saved_pc): Make static.
69 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
70 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
71 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
72 i386fbsd4_sc_pc_offset): New variables.
73 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
74 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
75 functions.
76 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
77 functions.
78 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
79 Modify the value of i386fbsd_sigtramp_start and
80 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
81 i386fbsd_sigtramp_end.
82 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
83 function.
84
85 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
86 define to i386-linux-tdep.h.
87 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
88 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
89 defines.
90 (i386_linux_register_name, i386_linux_register_byte,
91 i386_linux_register_raw_size): Remove prototypes.
92 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
93 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
94 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
95 TARGET_WRITE_PC): Remove defines.
96 (i386_linux_in_sigtramp, i386_linux_frame_chain,
97 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
98 i386_linux_write_pc): Remove prototypes.
99 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
100 (get_longjmp_target): Remove prototype.
101 * i386-linux-tdep.h: New file.
102 * i386-linux-nat.c: Include "i386-linux-tdep.h".
103 * i386-linux-tdep.c: Include "i386-tdep.h" and
104 "i386-linux-tdep.h".
105 (i386_linux_register_name, i386_linux_register_byte,
106 i386_linux_register_raw_size, i386_linux_in_sigtramp,
107 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
108 Make static.
109 (i386_linux_init_abi): New function.
110 (_initialize_i386_linux_tdep): New function.
111
112 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
113 (i386_saved_pc_after_call): Remove prototype.
114 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
115 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
116 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
117 (i386_register_name, i386_stab_reg_to_regnum,
118 i386_dwarf_reg_to_regnum): Remove prototypes.
119 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
120 SIZEOF_SSE_REGS): Remove defines.
121 (REGISTER_BYTES): Remove define.
122 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
123 (i386_register_byte, i386_register_raw_size): Remove prototypes.
124 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
125 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
126 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
127 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
128 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
129 (get_longjmp_target): Remove prototype.
130 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
131 (sigtramp_saved_pc): Remove define.
132 (i386v4_sigtramp_saved_pc): Remove prototype.
133 * config/i386/tm-go32.h (FRAME_CHAIN,
134 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
135 (i386go32_frame_saved_pc): Remove prototype.
136 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
137 (get_longjmp_target): Remove prototype.
138 * i386-tdep.h: Include "osabi.h".
139 (enum i386_abi): Removed.
140 (enum struct_return): New enum.
141 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
142 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
143 sc_pc_offset members.
144 (i386_gdbarch_register_os_abi): Remove prototype.
145 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
146 I386_SSE_NUM_REGS): New defines.
147 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
148 I386_SSE_SIZEOF_REGS): New defines.
149 (i386_register_name, i386_register_byte, i386_register_raw_size):
150 New prototypes.
151 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
152 (i386bsd_sigtramp_saved_pc): New prototype.
153 * i386-tdep.c: Don't include "elf-bfd.h".
154 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
155 i386_frame_chain, i386_saved_pc_after_call): Make static.
156 (i386_frame_saved_pc): Rewrite to call architecture dependent
157 function to deal with signal handlers. Make static.
158 (i386go32_frame_saved_pc): Removed.
159 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
160 Removed.
161 (i386_get_longjmp_target): New function.
162 (default_struct_convention, pcc_struct_convention,
163 reg_struct_convention, valid_conventions, struct_convention): New
164 variables.
165 (i386_use_struct_convention): New function.
166 (i386v4_sigtramp_saved_pc): Renamed to
167 i386_svr4_sigtramp_saved_pc. Made static. Moved.
168 (i386_pc_in_sigtramp): New function.
169 (i386_abi_names): Removed.
170 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
171 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
172 Removed.
173 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
174 i386_gdbarch_register_os_abi): Removed.
175 (struct i386_abi_handler): Removed.
176 (i386_abi_handler_list): Removed.
177 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
178 functions.
179 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
180 i386_nw_init_abi): New functions.
181 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
182 Use set_gdbarch_xxx() calls instead of relying on macros for a
183 number of calls.
184 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
185 (_initialize_i386_tdep): Add new 'struct-convcention' command.
186 Register the various architecture variants defined in this file.
187
ad2f7632
DJ
1882002-06-14 Daniel Jacobowitz <drow@mvista.com>
189
190 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
191 (struct main_type): Remove arg_types member. Update comments for
192 struct field.
193 (TYPE_ARG_TYPES): Remove.
194 (TYPE_FN_FIELD_ARGS): Update.
195 (smash_to_method_type): Update prototype.
196
197 * c-typeprint.c (cp_type_print_method_args): Take method type
198 instead of argument list. Use new argument layout. Simplify.
199 (c_type_print_args): Use new argument layout. Simplify.
200 (c_type_print_base): Update call to cp_type_print_method_args.
201 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
202 argument; use die->type instead. Update call to
203 smash_to_method_type.
204 (read_structure_scope): Update call to dwarf2_add_member_fn.
205 * gdbtypes.c (allocate_stub_method): Update comment.
206 (smash_to_method_type): Take new NARGS and VARARGS arguments.
207 Use new argument layout.
208 (check_stub_method): Use new argument layout. Don't count
209 void as an argument.
210 (print_arg_types): Update comments. Use new argument layout.
211 (recursive_dump_type): Don't print arg_types member.
212 * hpread.c (hpread_read_struct_type): Use new argument layout.
213 (fixup_class_method_type): Likewise.
214 (hpread_type_lookup): Likewise.
215 * stabsread.c (read_type): Update calls to read_args and
216 smash_to_method_type.
217 (read_args): Use new argument layout. Simplify.
218 * valops.c (typecmp): Use new argument layout. Update parameters
219 and comments. Simplify.
220 (hand_function_call): Use new argument layout.
221 (search_struct_method): Update call to typecmp.
222 (find_overload_match): Use new argument layout.
223
6da02953
DJ
2242002-06-13 Daniel Jacobowitz <drow@mvista.com>
225
226 * NEWS: Mention multithreaded debug support for gdbserver.
227
519b2366
DJ
2282002-06-13 Daniel Jacobowitz <drow@mvista.com>
229
230 * MAINTAINERS: Mention NEWS.
231
a7f48742
DJ
2322002-06-13 Daniel Jacobowitz <drow@mvista.com>
233
234 * gdbserver/regcache.c: Add comment.
235
6c0d6680
DJ
2362002-06-13 Daniel Jacobowitz <drow@mvista.com>
237
238 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
239 (struct mips_objfile_private, compare_pdr_entries): New.
240 (non_heuristic_proc_desc): Read the ".pdr" section if it
241 is present.
242
6529d2dd
AC
2432002-06-12 Andrew Cagney <ac131313@redhat.com>
244
245 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
246 (arm_debug): New static variable.
247 (_initialize_arm_tdep): Add ``set debug arm'' command.
248
26216b98
AC
2492002-06-12 Andrew Cagney <ac131313@redhat.com>
250
251 * Makefile.in (sim_arm_h): Define.
252 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
253 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
254 (arm_register_sim_regno): New function, map an internal REGNUM
255 onto a simulator register number.
256 (arm_gdbarch_init): Set register_sim_regno.
257
814b3ba0
AH
2582002-06-09 Aldy Hernandez <aldyh@redhat.com>
259
260 * MAINTAINERS: Add self.
261
475b0867
JB
2622002-06-11 Jim Blandy <jimb@redhat.com>
263
919d772c
JB
264 * source.c (source_info): Mention whether the symtab has
265 information about preprocessor macros.
266
475b0867
JB
267 Call the command `info macro', not `show macro'.
268 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
269 Fix error message.
270 (_initialize_macrocmd): Register `info_macro_command' in
271 `infolist', not `showlist'.
272
9e364162
DJ
2732002-06-11 Daniel Jacobowitz <drow@mvista.com>
274
275 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
276 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
277 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
278 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
279 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
280 unconditionally.
281 (set_mipsfpu_single_command, set_mipsfpu_double_command)
282 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
283 (_initialize_mips_tdep): Remove dead code.
284 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
285 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
286 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
287 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
288 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
289 MIPS_LAST_FP_ARG_REGNUM): Remove.
290
2912002-06-11 Daniel Jacobowitz <drow@mvista.com>
292
293 * gdbserver/thread-db.c: New file.
294 * gdbserver/proc-service.c: New file.
295 * gdbserver/acinclude.m4: New file.
296 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
297 proc-service.o, and thread-db.o.
298 (linux-low.o): Add USE_THREAD_DB.
299 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
300 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
301 * gdbserver/aclocal.m4: Regenerated.
302 * gdbserver/config.in: Regenerated.
303 * gdbserver/configure: Regenerated.
304 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
305 thread_db.h, and linux/elf.h headrs.
306 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
307 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
308 Check for -lthread_db and thread support.
309 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
310 PowerPC, and SuperH.
311 * gdbserver/i387-fp.c: Constify arguments.
312 * gdbserver/i387-fp.h: Likewise.
313 * gdbserver/inferiors.c: (struct thread_info): Renamed from
314 `struct inferior_info'. Remove PID member. Use generic inferior
315 list header. All uses updated.
316 (inferiors, signal_pid): Removed.
317 (all_threads): New variable.
318 (get_thread): Define.
319 (add_inferior_to_list): New function.
320 (for_each_inferior): New function.
321 (change_inferior_id): New function.
322 (add_inferior): Removed.
323 (remove_inferior): New function.
324 (add_thread): New function.
325 (free_one_thread): New function.
326 (remove_thread): New function.
327 (clear_inferiors): Use for_each_inferior and free_one_thread.
328 (find_inferior): New function.
329 (find_inferior_id): New function.
330 (inferior_target_data): Update argument type.
331 (set_inferior_target_data): Likewise.
332 (inferior_regcache_data): Likewise.
333 (set_inferior_regcache_data): Likewise.
334 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
335 (all_processes, stopping_threads, using_thrads)
336 (struct pending_signals, debug_threads, pid_of): New.
337 (inferior_pid): Replace with macro.
338 (struct inferior_linux_data): Remove.
339 (get_stop_pc, add_process): New functions.
340 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
341 Use add_process and add_thread.
342 (linux_attach_lwp): New function, based on old linux_attach. Use
343 add_process and add_thread. Set stop_expected for new threads.
344 (linux_attach): New function.
345 (linux_kill_one_process): New function.
346 (linux_kill): Kill all LWPs.
347 (linux_thread_alive): Use find_inferior_id.
348 (check_removed_breakpoints, status_pending_p): New functions.
349 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
350 Update. Use WNOHANG. Wait for cloned processes also. Update process
351 struct for the found process.
352 (linux_wait_for_event): New function.
353 (linux_wait): Use it. Support LWPs.
354 (send_sigstop, wait_for_sigstop, stop_all_processes)
355 (linux_resume_one_process, linux_continue_one_process): New functions.
356 (linux_resume): Support LWPs.
357 (REGISTER_RAW_SIZE): Remove.
358 (fetch_register): Use register_size instead. Call supply_register.
359 (usr_store_inferior_registers): Likewise. Call collect_register.
360 Fix recursive case.
361 (regsets_fetch_inferior_registers): Improve error message.
362 (regsets_store_inferior_registers): Add debugging.
363 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
364 (unstopped_p, linux_signal_pid): New functions.
365 (linux_target_ops): Add linux_signal_pid.
366 (linux_init_signals): New function.
367 (initialize_low): Call it. Initialize using_threads.
368 * gdbserver/regcache.c (inferior_regcache_data): Add valid
369 flag.
370 (get_regcache): Fetch registers lazily. Add fetch argument
371 and update all callers.
372 (regcache_invalidate_one, regcache_invalidate): New
373 functions.
374 (new_register_cache): Renamed from create_register_cache.
375 Return the new regcache.
376 (free_register_cache): Change argument to a void *.
377 (registers_to_string, registers_from_string): Call get_regcache
378 with fetch flag set.
379 (register_data): Make static. Pass fetch flag to get_regcache.
380 (supply_register): Call get_regcache with fetch flag clear.
381 (collect_register): Call get_regcache with fetch flag set.
382 (collect_register_as_string): New function.
383 * gdbserver/regcache.h: Update.
384 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
385 stderr.
386 Handle input interrupts while waiting for an ACK.
387 (input_interrupt): Use signal_pid method.
388 (getpkt): Flush after debug output and use stderr.
389 (outreg): Use collect_register_as_string.
390 (new_thread_notify, dead_thread_notify): New functions.
391 (prepare_resume_reply): Check using_threads. Set thread_from_wait
392 and general_thread.
393 (look_up_one_symbol): Flush after debug output.
394 * gdbserver/server.c (step_thread, server_waiting): New variables.
395 (start_inferior): Don't use signal_pid. Update call to mywait.
396 (attach_inferior): Update call to mywait.
397 (handle_query): Handle qfThreadInfo and qsThreadInfo.
398 (main): Don't fetch/store registers explicitly. Use
399 set_desired_inferior. Support proposed ``Hs'' packet. Update
400 calls to mywait.
401 * gdbserver/server.h: Update.
402 (struct inferior_list, struct_inferior_list_entry): New.
403 * gdbserver/target.c (set_desired_inferior): New.
404 (write_inferior_memory): Constify.
405 (mywait): New function.
406 * gdbserver/target.h: Update.
407 (struct target_ops): New signal_pid method.
408 (mywait): Removed macro, added prototype.
409
410 * gdbserver/linux-low.h (regset_func): Removed.
411 (regset_fill_func, regset_store_func): New.
412 (enum regset_type): New.
413 (struct regset_info): Add type field. Use new operation types.
414 (struct linux_target_ops): stop_pc renamed to get_pc.
415 Add decr_pc_after_break and breakpoint_at.
416 (get_process, get_thread_proess, get_process_thread)
417 (strut process_info, all_processes, linux_attach_lwp)
418 (thread_db_init): New.
419
420 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
421 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
422 (the_low_target): Add new members.
423 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
424 (i386_store_fpxregset): Constify.
425 (target_regsets): Add new kind identifier.
426 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
427 (i386_set_pc): Add debugging.
428 (i386_breakpoint_at): New function.
429 (the_low_target): Add new members.
430 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
431 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
432 (mips_breakpoint_at): New.
433 (the_low_target): Add new members.
434 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
435 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
436 (the_low_target): Add new members.
437 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
438 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
439 (the_low_target): Add new members.
440 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
441 identifier.
442
23aa4c72
ML
4432002-06-11 Michal Ludvig <mludvig@suse.cz>
444
445 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
446 (unwind_tmp_obstack_free, parse_frame_info)
447 (update_context, cfi_read_fp, cfi_write_fp)
448 (cfi_frame_chain, cfi_init_extra_frame_info)
449 (cfi_virtual_frame_pointer): Use the above function.
264d1763 450 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 451
70eb15a4
CV
4522002-06-11 Corinna Vinschen <vinschen@redhat.com>
453
454 * v850-tdep.c (v850_type_is_scalar): New function.
455 (v850_use_struct_convention): Match current gcc implementation
456 as close as possible.
457 (v850_push_arguments): Fix stack_offset handling. Don't write
458 struct_addr into register. This is done by v850_store_struct_return.
459 (v850_extract_return_value): Care for structs.
460 (v850_store_return_value): Ditto.
461 (v850_store_struct_return): Actually write address.
462
482a4d06
ML
4632002-06-11 Michal Ludvig <mludvig@suse.cz>
464
465 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
466 without debug information too.
467
d855c300
AC
4682002-06-10 Andrew Cagney <ac131313@redhat.com>
469
470 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
471 Make multi-arch pure.
472 * gdbarch.h, gdbarch.c: Re-generate.
473 * arm-tdep.c (arm_print_float_info): Update.
474 * arch-utils.h (default_print_float_info): Update.
475 * arch-utils.c (default_print_float_info): Update.
476 * infcmd.c (float_info): Update call.
477
dd12a101
AC
4782002-06-10 Andrew Cagney <ac131313@redhat.com>
479
480 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
481 the front of the initialize list.
482
101dcfbe
AC
4832002-06-10 Andrew Cagney <ac131313@redhat.com>
484
485 * infrun.c (struct inferior_status): Replace fields
486 selected_frame_address and selected_level with field
487 selected_frame_id.
488 (save_inferior_status): Update. Use get_frame_id.
489 (struct restore_selected_frame_args): Delete.
490 (restore_selected_frame): Update. Use frame_find_by_id.
491 (restore_inferior_status): Update.
492
493 * breakpoint.h (struct breakpoint): Change type of
494 watchpoint_frame to frame_id.
495 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
496 call to get_current_frame.
497 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
498 get_current_frame.
499 (watchpoint_check): Use frame_find_by_id.
500
501 * frame.h (record_selected_frame): Delete declaration.
502 * stack.c (record_selected_frame): Delete function.
503
504 * frame.h (struct frame_id): Define.
505 (get_frame_id): Declare.
506 (frame_find_by_id): Declare.
507 * frame.c (frame_find_by_id): New function.
508 (get_frame_id): New function.
509
304270b6
AV
5102002-06-10 Andrey Volkov <avolkov@transas.com>
511
512 * ser-e7kpc.c: Fix duplicated define and call of
513 _initialize_ser_e7000pc
514
2f2cf184
DJ
5152002-06-09 Daniel Jacobowitz <drow@mvista.com>
516
517 * signals/signals.c (target_signal_from_host): Fix #ifdef
518 SIGRTMIN case.
519 (do_target_signal_to_host): Likewise.
520
caaa3122
DJ
5212002-06-09 Daniel Jacobowitz <drow@mvista.com>
522
523 * mips-tdep.c (mips_find_abi_section): New function.
524 (mips_gdbarch_init): Call it.
525
6ac5df3a
MK
5262002-06-09 Mark Kettenis <kettenis@gnu.org>
527
528 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
529 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
530 after Andrew's 2002-06-08 gdbarch change.
531
82ea117a
MK
5322002-06-09 Mark Kettenis <kettenis@gnu.org>
533
534 * i386-linux-nat.c (suppy_gregset): Don't supply
535 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
536 register cache.
537 (fill_gregset): Don't fetch it under the same circumstances.
538
3c25f8c7
AC
5392002-06-09 Andrew Cagney <cagney@redhat.com>
540
541 * Makefile.in (callback_h): Define.
542 (remote_sim_h): Update path to remote-sim.h.
543 (remote-rdp.o): Add $(callback_h).
544 (remote-sim.o): Use $(callback_h).
545 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
546 * remote-rdp.c: Include "gdb/callback.h".
547
1029b7fa
MK
5482002-06-09 Mark Kettenis <kettenis@gnu.org>
549
550 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
551 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
552
616675d3
AC
5532002-06-08 Andrew Cagney <ac131313@redhat.com>
554
a3efda28
AC
555 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
556 * rdi-share/serpardr.c: Ditto.
557 * rdi-share/unixcomm.c: Ditto.
558 * rdi-share/serdrv.c: Ditto.
559 * rdi-share/hostchan.h: Ditto.
560 * rdi-share/hostchan.c: Ditto.
561 * rdi-share/host.h: Ditto.
562 * rdi-share/devsw.c: Ditto.
563
c5f10366
AC
564 * objfiles.h: Change type of obj_private to void pointer.
565 * pa64solib.c: Update copyright. Don't include "assert.h", use
566 strcmp instead of STREQ, use LONGEST, do not use PTR
567 * somsolib.c: Ditto.
568
616675d3
AC
569 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
570 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
571 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
572
e4b415d9
AC
5732002-06-08 Andrew Cagney <ac131313@redhat.com>
574
575 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
576 (default_get_saved_register): Delete function.
577 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
578 generic_unwind_get_saved_register.
579 * gdbarch.h, gdbarch.c: Re-generate.
580
ca0d0b52
AC
5812002-06-08 Andrew Cagney <ac131313@redhat.com>
582
583 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
584 generic_func_frame_chain_valid.
585 * gdbarch.h, gdbarch.c: Re-generate.
586 * blockframe.c (generic_func_frame_chain_valid): Only check
587 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
588 passing FP to PC_IN_CALL_DUMMY.
589 Fix PR gdb/360.
590
76860b5f
AC
5912002-06-08 Andrew Cagney <ac131313@redhat.com>
592
593 * gdbarch.sh (struct gdbarch_data): Add field init_p.
594 (register_gdbarch_data): Initialize init_p.
595 (gdbarch_data): Initialize data pointer using the init function.
596 (init_gdbarch_data): Delete function.
597 (gdbarch_update_p): Update.
598 (initialize_non_multiarch): Update.
599 (struct gdbarch): Add field initialized_p.
600 * gdbarch.h, gdbarch.c: Re-generate.
601
8dda9770
ML
6022002-06-07 Michal Ludvig <mludvig@suse.cz>
603
604 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
605 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
606 better do the things actually here.
607 * x86-64-tdep.c (x86_64_register_name2nr): New.
608 (x86_64_register_name): Renamed to x86_64_register_nr2name.
609 (x86_64_gdbarch_init): Respect the above change.
610 * x86-64-tdep.h (x86_64_register_name2nr)
611 (x86_64_register_nr2name): Add prototypes.
612 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
613
3d79a47c
MS
6142002-06-06 Michael Snyder <msnyder@redhat.com>
615
7bd91a28
MS
616 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
617 Delete extra braces and re-indent.
618 (d10v_store_return_value): Char return values
3d79a47c
MS
619 must be shifted over by one byte in R0.
620 (d10v_extract_return_value): Delete extra braces, re-indent.
621
095a4c96
EZ
6222002-06-06 Elena Zannoni <ezannoni@redhat.com>
623
624 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
625 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
626 (d10v_integer_to_address): Rewrite.
627 (d10v_frame_init_saved_regs): When reading fp and sp registers use
628 the d10v specific functions which take care of converting to the
629 correct space.
630
e8a77ca4
EZ
6312002-06-06 Elena Zannoni <ezannoni@redhat.com>
632
633 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
634 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
635
4f2e4a4f
AC
6362002-06-02 Andrew Cagney <ac131313@redhat.com>
637
638 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
639 includes.
640 * config/tm-linux.h: Ditto.
641 * config/alpha/tm-alphalinux.h: Ditto.
642 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
643 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
644 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
645 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
646 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
647 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
648 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
649 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
650 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
651 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
652 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
653 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
654 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
655 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
656 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
657 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
658 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
659 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
660 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
661 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
662 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
663 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
664 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
665 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
666 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
667 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
668 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
669 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
670 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
671 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
672 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
673 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
674 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
675 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
676 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
677 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
678 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
679
ae2ab2ce
AS
6802002-05-04 Aidan Skinner <aidan@velvet.net>
681
682 * ada-exp.tab.c: New file
683 * ada-exp.y: New file
684 * ada-lang.c: New file
685 * ada-lang.h: New file
686 * ada-lex.c: New file
687 * ada-lex.l: New file
688 * ada-tasks.c: New file
689 * ada-typeprint.c: New file
690 * ada-valprint.c: New file
691
0ddd0135
JT
6922002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
693
694 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
695 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
696
750fbacc
JT
6972002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
698
699 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
700 insetead of ppc-linux-tdep.o.
701 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
702 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
703
df94e18a
AC
7042002-06-02 Andrew Cagney <ac131313@redhat.com>
705
706 2002-05-07 Christian Groessler <chris@groessler.org>
707 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
708 bit register contents for little endian hosts.
709
1a38ab75
AC
7102002-06-01 Andrew Cagney <ac131313@redhat.com>
711
712 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
713 any maintainer.
714
8b1632ac
AC
7152002-06-01 Andrew Cagney <ac131313@redhat.com>
716
717 * gdbarch.h: Regenerate.
718
627054c8
AC
7192002-06-01 Andrew Cagney <ac131313@redhat.com>
720
721 * MAINTAINERS: Add everyone to write-after-approval list.
722
4f460812
AC
7232002-06-01 Andrew Cagney <ac131313@redhat.com>
724
725 * stack.c (frame_info): Use frame_register_unwind instead of
726 saved_regs. Mention when the SP is on the stack or in a register.
727
728 * frame.h (frame_register_unwind_ftype): Define. Document.
729 (struct frame_info): Add field register_unwind and
730 register_unwind_cache.
731 (frame_register_unwind): Declare.
732 (generic_unwind_get_saved_register): Declare.
733
734 * frame.c (frame_register_unwind): New function.
735 (generic_unwind_get_saved_register): New function.
736
737 * blockframe.c (generic_call_dummy_register_unwind): New function.
738 (frame_saved_regs_register_unwind): New function.
739 (set_unwind_by_pc): New function.
740 (create_new_frame): New function.
741 (get_prev_frame): New function.
742
de888f76
AC
7432002-05-30 Andrew Cagney <ac131313@redhat.com>
744
745 * a29k-share/: Delete directory.
746 * remote-vx29k.c: Delete file.
747
2f2c3626
JT
7482002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
749
750 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
751 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
752
9ce5c36a
JT
7532002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
754
755 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
756 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
757 (sparc64nbsd-nat.o)
758 (sparcnbsd-nat.o)
759 (sparcnbsd-tdep.o): New dependency lists.
760 * NEWS: Note new UltraSPARC NetBSD native configuration.
761 * configure.host (sparc64-*-netbsd*): New host.
762 * configure.tgt (sparc-*-netbsdelf*)
763 (sparc-*-netbsd*): Set gdb_target to nbsd.
764 (sparc64-*-netbsd*): New target.
765 * sparc64nbsd-nat.c: New file.
766 * sparcnbsd-nat.c: New file.
767 * sparcnbsd-tdep.c: New file.
768 * sparcnbsd-tdep.h: New file.
769 * config/sparc/nbsd.mt: New file.
770 * config/sparc/nbsd64.mh: New file.
771 * config/sparc/nbsd64.mt: New file.
772 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
773 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
774 (HOST_IPC): Remove.
775 * config/sparc/nbsdaout.mt: Remove.
776 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
777 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
778 (HOST_IPC): Remove.
779 * config/sparc/nbsdelf.mt: Remove.
780 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
781 sparc-nat.c compatiblity defines.
782 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
783 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
784 * config/sparc/tm-nbsd64.h: New file.
785 * config/sparc/tm-nbsdaout.h: Remove.
786 * config/sparc/xm-nbsd.h: Remove.
787
ef3cf062
JT
7882002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
789
790 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
791 * sparc-tdep.c: Include osabi.h.
792 (gdbarch_tdep): Add osabi member.
793 (_initialize_sparc_tdep): Use gdbarch_register.
794 (sparc_gdbarch_init): Use generic OS ABI framework.
795 (sparc_dump_tdep): New function.
796
ee8ff470
KB
7972002-05-30 Kevin Buettner <kevinb@redhat.com>
798
799 * corefile.c (do_captured_read_memory_integer): Return non-zero
800 result.
801 (safe_read_memory_integer): Copy result of memory read when
802 status is non-zero. Also, add comments.
803
7b112f9c
JT
8042002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
805
806 * Makefile.in (ppc_tdep_h): Define.
807 (ppc-linux-nat.o)
808 (ppc-linux-tdep.o)
809 (rs6000-tdep.o): Use $(ppc_tdep_h).
810 (ppc-sysv-tdep.o)
811 (ppcnbsd-nat.o)
812 (ppcnbsd-tdep.o): New dependency lists.
813 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
814 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
815 (ppc_linux_init_abi): New functions.
7b112f9c
JT
816 (ppc_sysv_abi_broken_use_struct_convention)
817 (ppc_sysv_abi_use_struct_convention)
818 (ppc_sysv_abi_push_arguments): Move to...
819 * ppc-sysv-tdep.c: ...here.
820 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
821 * rs6000-tdep.c (process_note_abi_tag_sections)
822 (get_elfosabi): Remove.
823 (rs6000_gdbarch_init): Use generic OS ABI framework.
824 (rs6000_dump_tdep): New function.
825 (_initialize_rs6000_tdep): Use gdbarch_register.
826 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
827 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
828 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
829 of ppc-linux-tdep.o.
830 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
831 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
832 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
833 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
834 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
835 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
836
480dd42a
JB
8372002-05-29 Jim Blandy <jimb@redhat.com>
838
839 * macroscope.c (default_macro_scope): Put `void' in empty argument
840 list.
841
4182591f
AC
8422002-05-29 Andrew Cagney <ac131313@redhat.com>
843
844 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
845 * arch-utils.c: Include "sim-regno.h".
846 * gdbarch.sh: Don't include "sim-regno.h".
847 * gdbarch.h, gdbarch.c: Regenerate.
848 * sim-regno.h (legacy_register_sim_regno): Move declaration from
849 here.
850 * arch-utils.h (legacy_register_sim_regno): To here.
851 * remote-sim.c (legacy_register_sim_regno): Move function from
852 here.
853 * arch-utils.c (legacy_register_sim_regno): To here.
854
8238d0bf
AC
8552002-05-28 Andrew Cagney <ac131313@redhat.com>
856
857 * sim-regno.h: New file.
858 * Makefile.in (sim_regno_h): Define.
859 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
860 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
861 (legacy_register_sim_regno): New function.
862 (one2one_register_sim_regno): New function.
863 (gdbsim_fetch_register): Rewrite.
864 (gdbsim_store_register): Only store a register when
865 REGISTER_SIM_REGNO is valid.
866 * d10v-tdep.c: Include "sim-regno.h".
867 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
868 (d10v_ts3_register_sim_regno): Ditto.
869 * gdbarch.sh: Include "sim-regno.h".
870 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
871 * gdbarch.h, gdbarch.c: Regenerate.
872 * arch-utils.h (default_register_sim_regno): Delete declaration.
873 * arch-utils.c (default_register_sim_regno): Delete function.
874
485721b1
JT
8752002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
876
877 * ppcnbsd-nat.c: Rewrite.
878 * ppcnbsd-tdep.c: New file.
879 * ppcnbsd-tdep.h: New file.
880 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
881 solib.o, and solib-svr4.o.
882 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
883 nbsd-tdep.o, and corelow.o.
884
697f244d
AC
8852002-05-28 Andrew Cagney <ac131313@redhat.com>
886
887 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
888 `tr' and `sed'. Mention that `broken' targets are not expected to
889 build.
890
f08caad1 8912002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
892
893 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
894 Let PC point right after the prologue before looking up symbols.
895
3139facc
MH
8962002-05-27 Martin M. Hunt <hunt@redhat.com>
897
898 * i386-tdep.c (i386_register_virtual_type): Return
899 builtin_type_vec128i for SSE registers.
900
901 * gdbtypes.h (builtin_type_vec128i): Declare.
902
903 * gdbtypes.c (build_builtin_type_vec128i): New function.
904 (builtin_type_v2_double, builtin_type_v4_int64): New types.
905 (builtin_type_vec128i): New type for SSE2 128-bit registers.
906 (build_gdbtypes): Initialize new builtin vector types.
907 (_initialize_gdbtypes): Register new vector types with gdbarch.
908
6e3ba3b8
JT
9092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
910
911 * MAINTAINERS: ns32k is not longer an obsolete candidate,
912 since it has been multi-arch'd.
913 * NEWS: Note that ns32k-*-* is now partial multi-arch.
914 Move Alpha and VAX multi-arch news entries to same section
915 as other multi-arch news.
916
93d5585d
JT
9172002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
918
919 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
920 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
921 static. Rename some register numbers to put them in ns32k-tdep
922 private namespace.
923 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
924 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
925 functions.
926 (_initialize_ns32k_tdep): Use gdbarch_register.
927 * ns32k-tdep.h: New file.
928 * ns32knbsd-tdep.c: New file.
929 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
930 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
931 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
932 REGISTER_BYTES, REGISTER_BYTE): Remove.
933 * config/ns32k/tm-ns32k.h: New file.
934 * config/ns32k/tm-umax.h: Remove.
935
efb2c70e
JT
9362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
937
938 * ns32k-tdep.c (ns32k_saved_pc_after_call,
939 ns32k_store_struct_return, ns32k_extract_return_value,
940 ns32k_store_return_value, ns32k_extract_struct_value_address): New
941 functions.
942 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
943 ns32k_saved_pc_after_call.
944 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
945 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
946 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
947 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
948 ns32k_extract_struct_value_address.
949
7bcc927b
JT
9502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
951
952 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
953 ns32k_fix_call_dummy): New.
954 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
955 ns32k_call_dummy_words.
956 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
957 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
958 CALL_DUMMY_NARGS): Remove.
959 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
960
78f9d765
JT
9612002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
962
963 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
964 ns32k_frame_saved_pc, ns32k_frame_args_address,
965 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
966 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
967 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
968 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
969 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
970 (BREAKPOINT): Remove..
971 (FRAME_CHAIN): Define as ns32k_frame_chain.
972 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
973 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
974 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
975 (FRAME_FIND_SAVED_REGS): Remove.
976 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
977 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
978 (POP_FRAME): Define as ns32k_pop_frame.
979
f2c762e0
JT
9802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
981
982 * ns32k-tdep.c (ns32k_register_byte_32082,
983 ns32k_register_byte_32382, ns32k_register_raw_size,
984 ns32k_register_virtual_size, ns32k_register_virtual_type): New
985 functions.
986 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
987 ns32k_register_byte_32382.
988 * config/ns32k/tm-umax.h: Update copyright years.
989 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
990 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
991 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
992 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
993 (ns32k_get_enter_addr): Fix prototype.
994
af137673
JT
9952002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
996
997 * ns32k-tdep.c: Update copyright years.
998 (ns32k_register_name_32082): New function.
999 (ns32k_register_name_32382): Ditto.
1000 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1001 (REGISTER_NAME): Define as ns32k_register_name_32382.
1002 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1003 (REGISTER_NAME): Define as ns32k_register_name_32082.
1004
a8bc7b56
JB
10052002-05-24 Jim Blandy <jimb@redhat.com>
1006
1007 * dwarf2read.c (free_line_header): Use xfree, not free.
1008
83a45910
JT
10092002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1010
1011 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1012 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1013
0db71247
AC
10142002-05-23 Andrew Cagney <ac131313@redhat.com>
1015
1016 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1017
b9e5e4dd
AC
10182002-05-23 Andrew Cagney <ac131313@redhat.com>
1019
1020 From Ross Alexander at NEC Europe:
1021 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1022
de530e84
MS
10232002-05-23 Michael Snyder <msnyder@redhat.com>
1024
1025 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1026 for input, rather than parse_and_eval_address.
1027
b91b96f4
AC
10282002-05-23 Andrew Cagney <ac131313@redhat.com>
1029
1030 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1031 * Makefile.in (sim_d10v_h): Update definition.
1032
8b279e7a
AC
10332002-05-24 Andrew Cagney <cagney@redhat.com>
1034
1035 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1036 change `2002-05-22 Michael Snyder' below.
1037 (d10v_push_arguments): Ditto.
1038 (d10v_extract_return_value): Ditto.
1039
0a3d0425
JB
10402002-05-23 Jim Blandy <jimb@redhat.com>
1041
1042 * macrotab.c (check_for_redefinition): Don't complain if the new
1043 definition is the same as the previous one. Take more arguments
1044 to allow the comparison.
1045 (macro_define_object, macro_define_function): Pass more arguments
1046 to check_for_redefinition.
1047
78eac43e
MS
10482002-05-22 Michael Snyder <msnyder@redhat.com>
1049
1050 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1051 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1052 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1053 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1054 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1055 Add a temp variable to save a call (and a memory read).
1056 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1057 if possible (so that PC_IN_CALL_DUMMY will work).
1058
9bc1edb8
CV
10592002-05-22 Corinna Vinschen <vinschen@redhat.com>
1060
1061 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1062
005ef3d2
ML
10632002-05-22 Michal Ludvig <mludvig@suse.cz>
1064
1065 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1066 fde->cie_ptr.
1067 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1068 (dwarf2_build_frame_info): Add offset to fde->initial_location
1069 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
1070 (execute_stack_op): Change type of 'result' from ULONGEST to
1071 CORE_ADDR.
005ef3d2 1072
fcf4f891
JT
10732002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1074
1075 * config/alpha/tm-nbsd.h: Include solib.h.
1076
cfef91e4
JT
10772002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1078
1079 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1080 assumptions about the host's byte order.
1081
9964235a
JT
10822002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1083
1084 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1085 to dependency list.
1086 * alphanbsd-tdep.c: Include solib-svr4.h.
1087 * shnbsd-tdep.c: Ditto.
1088
9eeef8ef
JT
10892002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1090
1091 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1092 nbsd-tdep.h to dependency list.
1093 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1094 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1095 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1096 nbsdaout.mh and nbsdelf.mh consistently.
1097 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1098 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1099 nbsdaout.mt and nbsdelf.mh consistently.
1100 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1101 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1102 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1103 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1104 a.out shared library stuff from here...
1105 * config/nm-nbsdaout.h: ...to here.
1106 * config/tm-nbsd.h: Remove.
1107 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1108 * config/arm/nbsd.mh: Remove.
1109 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1110 nbsd-tdep.o.
1111 * config/arm/nbsdaout.mh: New file.
1112 * config/arm/nbsdelf.mh: New file.
1113 * config/arm/nm-nbsdaout.h: New file.
1114 * config/i386/nbsd.mh: Remove.
1115 * config/i386/nbsd.mt: Remove.
1116 * config/i386/nbsdaout.mh: New file.
1117 * config/i386/nbsdaout.mt: New file.
1118 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1119 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1120 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1121 i386_register_u_addr): Remove.
1122 * config/i386/nm-nbsdaout.h: New file.
1123 * config/i386/nm-nbsdelf.h: Remove.
1124 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1125 (USE_STRUCT_CONVENTION): Remove.
1126 * config/i386/tm-nbsdaout.h: New file.
1127 * config/i386/tm-nbsdelf.h: Remove.
1128 * config/m68k/nbsd.mh: Remove.
1129 * config/m68k/nbsd.mt: Remove.
1130 * config/m68k/nbsdaout.mh: New file.
1131 * config/m68k/nbsdaout.mt: New file.
1132 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1133 * config/m68k/nm-nbsdaout.h: New file.
1134 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1135 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1136 * config/ns32k/nbsd.mh: Remove.
1137 * config/ns32k/nbsd.mt: Remove.
1138 * config/ns32k/nbsdaout.mh: New file.
1139 * config/ns32k/nbsdaout.mt: New file.
1140 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1141 * config/ns32k/nm-nbsdaout.h: New file.
1142 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1143 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1144 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1145 (SVR4_SHARED_LIBS): Remove.
1146 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1147 * config/sparc/nbsd.mh: Remove.
1148 * config/sparc/nbsd.mt: Remove.
1149 * config/sparc/nbsdaout.mh: New file.
1150 * config/sparc/nbsdaout.mt: New file.
1151 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1152 * config/sparc/nbsdelf.mt: New file.
1153 * config/sparc/nm-nbsdaout.h: New file.
1154 * config/sparc/nm-nbsdelf.h: Remove.
1155 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1156 * config/sparc/tm-nbsdaout.h: New file.
1157
257ce470
JT
11582002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1159
1160 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1161 mipsnbsd-tdep.c
1162 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1163
76a6d5fe
JT
11642002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1165
1166 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1167 shnbsd-nat.c.
1168 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1169
45888261
JT
11702002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1171
1172 * NEWS: Note new MIPS NetBSD native configuration.
1173 * configure.host (mips*-*-netbsd*): New host.
1174 * configure.tgt (mips*-*-netbsd*): New target.
1175 * mipsnbsd-nat.c: New file.
1176 * mipsnbsd-tdep.c: New file.
1177 * mipsnbsd-tdep.h: New file.
1178 * config/mips/nbsd.mh: New file.
1179 * config/mips/nbsd.mt: New file.
1180 * config/mips/nm-nbsd.h: New file.
1181 * config/mips/tm-nbsd.h: New file.
1182
70f80edf
JT
11832002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1184
1185 * Makefile.in (SFILES): Add osabi.c.
1186 (COMMON_OBS): Add osabi.o.
1187 (osabi.o): New dependency list.
1188 * osabi.c: New file.
1189 * osabi.h: New file.
1190 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1191
1192 * Makefile.in (alpha_tdep_h): Define and use instead of
1193 alpha-tdep.h.
1194 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1195 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1196 Remove.
1197 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1198 * alpha-tdep.h: Include osabi.h.
1199 (alpha_abi): Remove.
1200 (gdbarch_tdep): Use generic OS ABI framework.
1201 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1202 gdbarch_register_osabi.
1203 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1204 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1205 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1206
1207 * Makefile.in (sh_tdep_h): Add osabi.h.
1208 * sh-tdep.h (sh_osabi): Remove.
1209 (gdbarch_tdep): Use generic OS ABI framework.
1210 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1211 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1212 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1213 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1214
1215 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1216 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1217 gdbarch_register_osabi.
1218 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1219 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1220 (get_elfosabi): Rename to...
1221 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1222 ABI framework support routines.
1223 (arm_gdbarch_init): Use generic OS ABI framework.
1224 (arm_dump_tdep): Likewise.
1225 (_initialize_arm_tdep): Likewise.
1226 * arm-tdep.h: Include osabi.h.
1227 (arm_abi): Remove.
1228 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1229 osabi member.
1230 (arm_gdbarch_register_os_abi): Remove prototype.
1231 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1232 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1233
1234 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1235 * mips-tdep.c: Include osabi.h.
1236 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1237 OS ABI framework.
1238
d194345b
KH
12392002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1240
1241 * h8300-tdep.c: Fix formatting.
1242
70c6b0d1
EZ
12432002-05-20 Elena Zannoni <ezannoni@redhat.com>
1244
1245 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1246 printing vector registers.
1247
165b8e33
AC
12482002-05-19 Andrew Cagney <ac131313@redhat.com>
1249
1250 From Fernando Nasser:
1251 * remote.c (remote_async_open_1): Re-throw the exception when the
1252 connection fails.
1253 (remote_cisco_open): Ditto.
1254 (remote_open_1): Ditto.
1255
36918e70
AC
12562002-05-19 Andrew Cagney <ac131313@redhat.com>
1257
1258 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1259 (remote_start_remote): Add uiout parameter. Pass through to
1260 remote_start_remote_dummy.
1261 (remote_open_1): Use catch_exception instead of catch_errors.
1262 (remote_async_open_1): Ditto.
1263 (remote_cisco_open): Ditto.
1264
ae44c0c4
AC
12652002-05-19 Andrew Cagney <ac131313@redhat.com>
1266
1267 * remote.c (remote_start_remote): Replace PTR with void pointer.
1268 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1269 static.
1270
8efe637d
AC
12712002-05-18 Andrew Cagney <ac131313@redhat.com>
1272
1273 * gdb_indent.sh: Allow the script to be run in the sim directory.
1274
2f1b5984
MK
12752002-05-18 Mark Kettenis <kettenis@gnu.org>
1276
f0f625e2
MK
1277 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1278 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1279
2f1b5984
MK
1280 * corelow.c (core_open): Only call set_gdbarch_from_file if
1281 exec_bfd is NULL.
1282
fc974602
AV
12832002-05-17 Andrey Volkov <avolkov@transas.com>
1284
1285 * h8300-tdep.c: Add support of EXR register
1286 * config/h8300/tm-h8300.h: Ditto.
1287
906709f4
AV
12882002-05-17 Andrey Volkov <avolkov@transas.com>
1289
1290 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1291
6e591d68
AV
12922002-05-17 Andrey Volkov <avolkov@transas.com>
1293
1294 * h8300-tdep.c: Change literal regnums to REGNO.
1295
84f0252a
JB
12962002-05-17 Jim Blandy <jimb@redhat.com>
1297
e0e9281e
JB
1298 * NEWS: Note addition of macro support.
1299
84f0252a
JB
1300 Expand preprocessor macros in C expressions.
1301 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1302 (scan_macro_expansion, scanning_macro_expansion,
1303 finished_macro_expansion): New function declarations.
1304 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1305 variable declarations.
1306 * parser-defs.h (expression_context_pc): New declaration.
1307 * parse.c (expression_context_pc): New variable.
1308 (parse_exp_1): Set expression_context_pc, as well as
1309 expression_context_block.
1310 * c-exp.y (yylex): If we're not already reading the result of a
1311 macro expansion, try to macro-expand the next token. When we're
1312 done scanning a macro expansion, switch back to the mainline text.
1313 Commas and `if's in a macro's expansion don't terminate the input.
1314 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1315 (macro_original_text, macro_expanded_text,
1316 expression_macro_lookup_func, expression_macro_lookup_baton): New
1317 variables.
1318 (scan_macro_expansion, scanning_macro_expansion,
1319 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1320 c_preprocess_and_parse): New functions.
1321 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1322 c_preprocess_and_parse, instead of c_parse.
1323 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1324 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1325
1c509ca8
JR
1326Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1327
1328 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1329 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1330 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1331
2250ee0c
CV
13322002-05-17 Corinna Vinschen <vinschen@redhat.com>
1333
1334 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1335
ab3b8126
JT
13362002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1337
1338 * Makefile.in (sh_tdep_h): Define and use.
1339 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1340 register enum): Move to...
1341 * * sh-tdep.h: ...here.
1342 * sh-tdep.c: Include sh-tdep.h.
1343 * sh3-rom.c: Likewise.
1344 * shnbsd-tdep.c: Likewise.
1345
ed9d4749
MS
13462002-05-16 Michael Snyder <msnyder@redhat.com>
1347
1348 * arm-tdep.c: Spelling fix in comment.
1349
2e276125
JB
13502002-05-16 Jim Blandy <jimb@redhat.com>
1351
6821892e
JB
1352 Add commands for manually expanding macros and showing their
1353 definitions.
1354 * macrocmd.c, macroscope.c, macroscope.h: New files.
1355 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1356 (macroscope_h): New variable.
1357 (HFILES_NO_SRCDIR): Add macroscope.h.
1358 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1359 (macroscope.o, macrocmd.o): New rules.
1360
2e276125
JB
1361 Teach the Dwarf 2 reader to read macro information.
1362 * dwarf2read.c: #include "macrotab.h".
1363 (dwarf_macinfo_buffer): New variable.
1364 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1365 dwarf_macinfo_size.
1366 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1367 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1368 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1369 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1370 dwarf2_macro_spaces_in_definition): New complaints.
1371 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1372 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1373 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1374 the partial symbol table.
1375 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1376 from what's recorded in the partial symbol table.
1377 (read_file_scope): If the compilation unit has a
1378 `DW_AT_macro_info' attribute, read its macro information.
1379 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1380
2f53fe6c
DJ
13812002-05-16 Daniel Jacobowitz <drow@mvista.com>
1382
1383 Fix PR gdb/546
1384 * ser-tcp.c: Don't include <netinet/udp.h>.
1385
2be99286
SC
13862002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1387
1388 * MAINTAINERS: Update my email address.
1389
c9af212b 13902002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
1391
1392 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1393 include file of the same name.
1394
bf5f1a52
CV
13952002-05-16 Corinna Vinschen <vinschen@redhat.com>
1396
1397 * configure.tgt: Mark v850 as multi-arched.
1398 * config/v850/tm-v850.h: Remove file.
1399 * config/v850/v850.mt: Eliminate TM_FILE.
1400
435e042a
CV
14012002-05-16 Corinna Vinschen <vinschen@redhat.com>
1402
1403 * v850-tdep.c: Full multi-arch.
1404 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1405 Define GDB_MULTI_ARCH to 2.
1406
9819c6c8
PM
14072002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1408
1409 * p-exp.y (current_type): New static variable.
1410 Carries the type of the expression at the position that is parsed.
1411 (push_current_type, pop_current_type): Two new functions. Used
1412 to store/restore current_type in expression on specific tokens.
c9af212b
RE
1413 (search_field): New static variable. Set to one after parsing a point
1414 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
1415 (FIELDNAME): New token. After a point only a token belonging to
1416 current_type type definition is allowed.
1417 (all over token rules): reset and change current_type according
1418 to rules.
1419 (exp '[' rule): insert implicit array index field if
1420 exp is a pascal string type.
1421
3a06899a
CV
14222002-05-16 Corinna Vinschen <vinschen@redhat.com>
1423
1424 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1425 frame info. Use frame_info's saved_regs instead of matching member
1426 in extra_frame_info throughout.
1427 (v850_frame_init_saved_regs): New function.
1428 (v850_init_extra_frame_info): Move most functionality into
1429 v850_frame_init_saved_regs().
1430 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1431 (v850_frame_find_saved_regs): Remove declaration.
1432 (FRAME_FIND_SAVED_REGS): Remove definition.
1433 (v850_frame_init_saved_regs): Add declaration.
1434 (FRAME_INIT_SAVED_REGS): Add definition.
1435
6ed14b0e
CV
14362002-05-16 Corinna Vinschen <vinschen@redhat.com>
1437
1438 * v850-tdep.c: Begin multi-arch'ing v850.
1439 (v850_target_architecture_hook): Remove function.
1440 (v850_gdbarch_init): New function. Add code previously in
1441 v850_target_architecture_hook().
1442 (_initialize_v850_tdep): Don't set target_architecture_hook.
1443 Call register_gdbarch_init() instead.
1444
42725910
DJ
14452002-05-16 Daniel Jacobowitz <drow@mvista.com>
1446
1447 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1448 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1449 (fixup_class_method_type): Likewise.
1450
0bc68c49
DJ
14512002-05-15 Daniel Jacobowitz <drow@mvista.com>
1452
1453 From Martin Pool <mbp@samba.org>:
1454 * gdbserver/server.c (gdbserver_usage): New function.
1455 (main): Call it.
1456
99d9066e
JB
14572002-05-15 Jim Blandy <jimb@redhat.com>
1458
1459 Add macro structures to GDB's symbol tables. Nobody puts anything
1460 in them yet.
1461 * symtab.h (struct symtab): New member: `macro_table'.
1462 * buildsym.h (pending_macros): New global variable.
1463 * buildsym.c: #include "macrotab.h".
1464 (buildsym_init): Initialize `pending_macros'.
1465 (end_symtab): If we found macro information while reading a CU's
1466 debugging info, do build a symtab structure for it. Make the
1467 symtab point to the macro information, and clear the
1468 `pending_macros' pointer which held it while we were reading the
1469 debug info.
1470 (really_free_pendings): Free any pending macro table.
1471 * objfiles.h (struct objfile): New member: `macro_cache'.
1472 * objfiles.c (allocate_objfile): Set allocate and free functions
1473 for the macro cache's objstack.
1474 (free_objfile): Empty the macro cache's obstack.
1475 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1476 set new allocate and free functions for it.
1477 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1478 free functions for the macro cache's objstack. (Why is this
1479 function building its own objfile?)
1480 * symmisc.c (print_objfile_statistics): Print statistics on the
1481 macro bcache.
1482 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1483
c899585b
RE
14842002-05-15 Richard Earnshaw <rearnsha@arm.com>
1485
1486 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1487 (REGISTER_U_ADDR): Delete definition.
1488 (arm_register_u_addr): Delete declaration.
1489
a6cdd8c5
RE
14902002-05-15 Richard Earnshaw <rearnsha@arm.com>
1491
1492 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1493 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1494
fd3a5ca1
DJ
14952002-05-14 Daniel Jacobowitz <drow@mvista.com>
1496
1497 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1498 stop_at -> stop_pc.
1499
c97dcfc7
AC
15002002-05-14 Andrew Cagney <ac131313@redhat.com>
1501
1502 * regcache.c (register_valid): Revise comments refering to "Not
1503 available" and "unavailable".
1504 * frame.c (frame_register_read): Ditto.
1505 * findvar.c (value_of_register): Ditto.
1506
93021b7d
AC
15072002-05-15 Andrew Cagney <cagney@redhat.com>
1508
1509 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1510 (remote-sim.o): Update dependencies.
1511 (d10v-tdep.o): Specify dependencies.
1512 (sim_d10v_h): Define.
1513
a86bc61c
JB
15142002-05-14 Jim Blandy <jimb@redhat.com>
1515
1516 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1517 * macrotab.c (macro_lookup_inclusion, find_definition,
1518 new_macro_table): Same.
1519
1520 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1521 not `! strcmp ()'. This is a dubious improvement.
1522 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1523
1524 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1525 although it's not necessary, to avoid a warning.
1526
2fdde8f8
DJ
15272002-05-14 Daniel Jacobowitz <drow@mvista.com>
1528
1529 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1530 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1531 TYPE_INSTANCE_FLAGS.
1532 (struct main_type): New.
1533 (struct type): Move most members to struct main_type. Change
1534 cv_type and as_type to new type_chain member. Add instance_flags.
1535 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1536 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1537 (finish_cv_type): Remove prototype.
1538 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1539 Set TYPE_CHAIN.
1540 (alloc_type_instance): New function.
1541 (smash_type): New function.
1542 (make_pointer_type, make_reference_type, make_function_type)
1543 (smash_to_member_type, smash_to_method_type): Call smash_type.
1544 (make_qualified_type): New function.
1545 (make_type_with_address_space): Call make_qualified_type.
1546 (make_cv_type): Likewise.
1547 (finish_cv_type): Remove unnecessary function.
1548 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1549 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1550 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1551 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1552 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1553 * hpread.c (hpread_read_struct_type): Likewise.
1554 * stabsread.c (read_struct_type): Likewise.
1555
843fedf4
EZ
15562002-05-14 Elena Zannoni <ezannoni@redhat.com>
1557
1558 * configure.tgt: Add a catch all sh* target, for cases like
1559 sh[2,3,4]-elf and sh-hms.
1560
05a6c72c
KS
15612002-05-14 Keith Seitz <keiths@redhat.com>
1562
1563 * event-loop.c (create_file_handler): Don't do anything but
1564 update data when we are given a fd which we are already
1565 monitoring.
1566
5d085aaf
ML
15672002-05-14 Michal Ludvig <mludvig@suse.cz>
1568
1569 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1570 (update_context): Use __func__ in warnings.
1571
9db8d71f
DJ
15722002-05-14 Daniel Jacobowitz <drow@mvista.com>
1573
1574 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1575 and tcp_close to net_open and net_close.
1576 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1577 using UDP if requested. Don't try to disable Nagle on UDP
1578 sockets.
1579 * remote.c (remote_serial_open): New function. Warn about UDP.
1580 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1581
5dbc6baa
EZ
15822002-05-13 Elena Zannoni <ezannoni@redhat.com>
1583
1584 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1585
cc3023f7
EZ
15862002-05-13 Elena Zannoni <ezannoni@redhat.com>
1587
1588 * configure.tgt: Remove sh-hms target.
1589 * MAINTAINERS: Don't list sh-hms as a separate target.
1590
ec2bcbe7
JB
15912002-05-13 Jim Blandy <jimb@redhat.com>
1592
1593 Add first preprocessor macro-expansion files.
1594 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1595 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1596 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1597 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1598 (COMMON_OBS): Add macrotab.o, macroexp.o.
1599 (macroexp.o, macrotab.o): New rules.
1600
6d531722
AC
16012002-05-13 Andrew Cagney <ac131313@redhat.com>
1602
1603 * config/m88k/tm-m88k.h: Update copyright.
1604 (m88k_target_write_pc): Declare
1605 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1606 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1607 (SHIFT_INST_REGS): Update definition.
1608 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1609 using old definition of TARGET_WRITE_PC.
1610 * regcache.c (generic_target_write_pc): Delete code handling
1611 NNPC_REGNUM.
1612 * gdbarch.sh (NNPC_REGNUM): Delete.
1613 * gdbarch.h, gdbarch.c: Regenerate.
1614
3e3f2739
RE
16152002-05-13 Richard Earnshaw <rearnsha@arm.com>
1616
1617 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1618 builtin reg number.
1619
0004e5a2
DJ
16202002-05-13 Daniel Jacobowitz <drow@mvista.com>
1621
1622 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1623 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1624 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1625 access macros.
1626 * c-typeprint.c (cp_type_print_method_args): Likewise.
1627 (c_type_print_args): Likewise.
1628 * d10v-tdep.c (d10v_push_arguments): Likewise.
1629 (d10v_extract_return_value): Likewise.
1630 * expprint.c (print_subexp): Likewise.
1631 * gdbtypes.c (lookup_primitive_typename): Likewise.
1632 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1633 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1634 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1635 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1636 (TYPE_VECTOR): Likewise.
1637 * hpread.c (hpread_read_struct_type)
1638 (fix_static_member_physnames, fixup_class_method_type)
1639 (hpread_type_lookup): Likewise.
1640 * mdebugread.c (parse_symbol, parse_type): Likewise.
1641 * p-lang.c (is_pascal_string_type): Likewise.
1642 * valops.c (hand_function_call): Likewise.
1643 * x86-64-tdep.c (classify_argument): Likewise.
1644
1645 * hpread.c (hpread_read_function_type)
1646 (hpread_read_doc_function_type): Call replace_type.
1647 * dstread.c (create_new_type): Delete.
1648 (decode_dst_structure, process_dst_function): Call alloc_type.
1649 Use type access macros.
1650
dff95cc7
MK
16512002-05-12 Mark Kettenis <kettenis@gnu.org>
1652
1653 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1654 the're not supported by the current architecture.
1655 (i387_fill_fxsave): Likewise.
1656
bbcd32ad
FF
16572002-05-12 Fred Fish <fnf@redhat.com>
1658
1659 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1660 sect_index_xxx members to index the first slot in section_offsets
1661 if all of the section_offsets are zero.
1662
89cf4787
MK
16632002-05-12 Mark Kettenis <kettenis@gnu.org>
1664
1665 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1666 checked in with last change.
1667
1f77ffc5
MK
16682002-05-12 Mark Kettenis <kettenis@gnu.org>
1669
1670 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1671 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1672 config.sub.
1673
89b8b4a9
DJ
16742002-05-12 Daniel Jacobowitz <drow@mvista.com>
1675
1676 * Makefile.in: Update dependencies.
1677
14a5e767
AC
16782002-05-11 Andrew Cagney <ac131313@redhat.com>
1679
1680 * language.c (local_hex_string_custom): Simplify. Do not depend
1681 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1682
1683 * memattr.c (mem_info_command): Replace calls to
1684 longest_local_hex_string and longest_local_hex_string_custom.
1685 * buildsym.c (make_blockvector): Ditto.
1686 * solib.c (info_sharedlibrary_command): Ditto.
1687 * tracepoint.c (tracepoints_info): Ditto.
1688 * symtab.c (print_msymbol_info): Ditto.
1689
1690 * language.c (local_hex_string): Delete.
1691 (local_hex_string_custom): Delete.
1692 (longest_local_hex_string): Rename to local_hex_string.
1693 (longest_local_hex_string_custom): Rename to
1694 local_hex_string_custom.
1695 * language.h (local_hex_string): Change parameter type to LONGEST.
1696 (local_hex_string_custom): Ditto.
1697 (longest_local_hex_string): Delete declaration.
1698 (longest_local_hex_string_custom): Ditto.
1699
1700 * solib.c: Update copyright.
1701 * memattr.c: Update copyright.
1702
13d01224
AC
17032002-05-11 Andrew Cagney <ac131313@redhat.com>
1704
1705 * arch-utils.h (legacy_register_to_value): Declare.
1706 (legacy_value_to_register): Declare.
1707 (legacy_convert_register_p): Declare.
1708 * arch-utils.c (legacy_register_to_value): New function.
1709 (legacy_value_to_register): New function.
1710 (legacy_convert_register_p): New function.
1711
1712 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1713 (VALUE_TO_REGISTER): Define.
1714 (CONVERT_REGISTER_P): Define.
1715 * gdbarch.h, gdbarch.c: Regenerate.
1716
1717 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1718 VALUE_TO_REGISTER.
1719 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1720 CONVERT_REGISTER_P.
1721
4a1970e4
DJ
17222005-05-11 Daniel Jacobowitz <drow@mvista.com>
1723 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1724
1725 * Makefile.in: Update dependencies for valops.c.
1726 * valops.c: Include "gdb_assert.h".
1727 (typecmp): Skip THIS parameter to methods.
1728 (find_method_list): Remove static_memfuncp argument,
1729 update callers. Check for stub methods.
1730 (find_value_oload_method_list): Don't set *static_memfuncp.
1731 (find_overload_match): Don't check for stub methods. Assert
1732 that methods are not stubbed. Handle static methods.
1733 (value_find_oload_method_list): Remove static_memfuncp argument.
1734 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1735 to the argument list for static stub methods.
1736 * value.h (value_find_oload_method_list): Update prototype.
1737
b2e75d78
AC
17382002-05-11 Andrew Cagney <ac131313@redhat.com>
1739
1740 * arch-utils.h (generic_register_size): Declare.
1741 (generic_register_raw_size, generic_register_virtual_size): Delete
1742 declarations.
1743 * arch-utils.c (generic_register_raw_size): Delete.
1744 (generic_register_size): New function.
1745 (generic_register_virtual_size): Delete.
1746
1747 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1748 default generic_register_size.
1749 * gdbarch.h, gdbarch.c: Re-generate.
1750
1751 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1752 register_virtual_size.
1753 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1755
451fbdda
AC
17562002-05-11 Andrew Cagney <ac131313@redhat.com>
1757
1758 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1759 * gdbarch.h, gdbarch.c: Regenerate.
1760 * gnu-v3-abi.c: Update copyright.
1761 (vtable_address_point_offset): Update.
1762 (gnuv3_rtti_type): Update.
1763 (gnuv3_baseclass_offset): Update.
1764 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1765 (init_fetch_link_map_offsets): Update.
1766 * remote.c (get_remote_state): Update.
1767
6d2f5cea
DJ
17682002-05-11 Daniel Jacobowitz <drow@mvista.com>
1769
1770 * TODO: Remove value_headof/value_from_vtable_info comment.
1771 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1772 * values.c (value_headof, value_from_vtable_info): Delete.
1773 * value.h (value_from_vtable_info): Delete prototype.
1774
d2324da4
AC
17752002-05-11 Andrew Cagney <ac131313@redhat.com>
1776
1777 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1778 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1779 $(gdb_regex_h).
1780 (gdb_assert_h): Define.
1781 (gdb_wait_h): Define.
1782 (gdb_regex_h): Define.
1783
5c717440
DJ
17842002-05-11 Daniel Jacobowitz <drow@mvista.com>
1785
1786 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1787 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1788
6c7861b3
JT
17892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1790
1791 * nbsd-tdep.c: Fix comment.
1792
ea5bc2a6
JT
17932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1794
1795 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1796 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1797 (nbsd-tdep.o): New dependency list.
1798 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1799 nbsd-tdep.h.
1800 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1801 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1802 * nbsd-tdep.c: New file.
1803 * nbsd-tdep.h: New file.
1804 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1805 nbsd-tdep.h.
1806 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1807 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1808 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1809 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1810
b28da865
JT
18112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1812
1813 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1814 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1815 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1816 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1817 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1818 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1819
4b8ff1fa
JT
18202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1821
1822 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1823 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1824 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1825 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1826 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1827 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1828 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1829
dfe6eb1f
JT
18302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1831
1832 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1833 fetch_elfcore_registers to...
1834 * i386nbsd-tdep.c: ...here.
1835 (i386nbsd_use_struct_convention): Rename to...
1836 (i386nbsd_aout_use_struct_convention): ...this.
1837 (i386nbsd_supply_reg): New function.
1838 (i386nbsd_fill_reg): New function.
1839 (fetch_core_registers): Use i386nbsd_supply_reg.
1840 (fetch_elfcore_registers): Likewise.
1841 (_initialize_i386nbsd_tdep): New function.
1842 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1843 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1844 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1845 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1846 (i386nbsd_aout_use_struct_convention): ...this.
1847
20cb8cda
JT
18482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1849
1850 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1851 (store_inferior_registers): Use shnbsd_fill_reg.
1852 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1853 sh_nbsd_supply_register): Collapse into...
1854 (shnbsd_supply_reg): ...this.
1855 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1856 (shnbsd_fill_reg): ...this.
1857 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1858 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1859 (fetch_core_registers): Use shnbsd_supply_reg.
1860 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1861 (sh_nbsd_core_fns): Rename to...
1862 (shnbsd_core_fns): ...this.
1863 (sh_nbsd_elfcore_fns): Rename to...
1864 (shnbsd_elfcore_fns): ...this.
1865 (sh_nbsd_init_abi): Rename to...
1866 (shnbsd_init_abi): ...this.
1867 (_initialize_sh_nbsd_tdep): Rename to...
1868 (_initialize_shnbsd_tdep): ...this.
1869 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1870 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1871 sh_nbsd_fill_register): Remove prototypes.
1872 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1873
e750d25e
JT
18742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1875
1876 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1877 (i387-nat.o): Delete dependency list.
1878 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1879 (x86-64-linux-nat.o): Likewise.
1880 * i387-nat.c: Delete file, moving contents to...
1881 * i387-tdep.c: ...here.
1882 * i387-nat.h: Rename...
1883 * i387-tdep.h: ...to this.
1884 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1885 * i386-linux-nat.c: Likewise.
1886 * i386bsd-nat.c: Likewise.
1887 * i386gnu-nat.c: Likewise.
1888 * i386nbsd-nat.c: Likewise.
1889 * i386v4-nat.c: Likewise.
1890 * x86-64-linux-nat.c: Likewise.
1891 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1892 * config/i386/go32.mh (NATDEPFILES): Likewise.
1893 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1894 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1895 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1896 * config/i386/linux.mh (NATDEPFILES): Likewise.
1897 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1898 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1899 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1900 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1901
1aee598a
JT
19022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1903
1904 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1905 (alphanbsd-nat.o): Remove dependency list.
1906 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1907 * alphanbsd-nat.c: Delete. Contents moved to...
1908 * alphanbsd-tdep.c: ...here.
1909 (_initialize_alphanbsd_tdep): Register core functions.
1910 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1911
12bcb0fe
JT
19122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1913
1914 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1915 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1916 (alphanbsd-nat.o): Likewise.
1917 (alphabsd-tdep.o): New dependency list.
1918 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1919 (fill_gregset): Use alphabsd_fill_reg.
1920 (supply_fpregset): Use alphabsd_supply_fpreg.
1921 (fill_fpregset): Use alphabsd_fill_fpreg.
1922 (fetch_inferior_registers): Use struct reg and struct fpreg
1923 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1924 and alphabsd_supply_fpreg.
1925 (store_inferior_registers): Use struct reg and struct fpreg
1926 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1927 and alphabsd_fill_fpreg.
1928 * alphabsd-tdep.c: New file.
1929 * alphabsd-tdep.h: New file.
1930 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1931 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1932 alphabsd_supply_fpreg.
1933 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1934 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1935
361d1df0
EC
19362002-05-11 Eric Christopher <echristo@redhat.com>
1937
1938 * mips-tdep.c (mips_double_register_type): Fix thinko.
1939 (mips_single_register_type): Ditto.
1940 * MAINTAINERS: Add self.
1941
92dd7cee
MK
19422002-05-11 Mark Kettenis <kettenis@gnu.org>
1943
1944 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1945 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1946 right thing on architectures with different endianness and/or
1947 integer sizes.
1948
e27da16d
JT
19492002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1950
1951 From Christian Limpach <chris@Pin.LU>
1952 * configure.in: Change sed expression which comments out
1953 NATDEPFILES to also comment out continuation lines.
1954 * configure: Regenerate.
1955
ddde02bd
EZ
19562002-05-10 Elena Zannoni <ezannoni@redhat.com>
1957
1958 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1959 big patch.
1960
1c922164
EZ
19612002-05-10 Elena Zannoni <ezannoni@redhat.com>
1962
1963 * sh-tdep.c: Include correct file.
1964
283150cd
EZ
19652002-05-10 Elena Zannoni <ezannoni@redhat.com>
1966
1967 New support for sh64-elf (sh5) target.
1968
1969 * configure.tgt: For sh64-elf target, default to sh-elf.
1970
1971 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1972 (struct gdbarch_tdep): Add new fields for new registers and ABI
1973 info.
361d1df0 1974
283150cd
EZ
1975 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1976 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1977 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1978 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1979 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1980 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1981 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1982 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1983 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1984 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1985 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1986 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1987 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1988 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1989 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1990 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1991 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1992 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1993 sign_extend, sh64_nofp_frame_init_saved_regs,
1994 sh64_init_extra_frame_info, sh64_get_saved_register,
1995 sh64_extract_struct_value_address, sh64_pop_frame,
1996 sh64_push_arguments, sh64_extract_return_value,
1997 sh64_store_return_value, sh64_show_media_regs,
1998 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1999 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2000 sh_sh64_register_virtual_type,
2001 sh_sh64_register_convert_to_virtual,
2002 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2003 sh64_register_read, sh64_pseudo_register_write,
2004 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2005 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2006 sh64_do_pseudo_register, sh_compact_do_registers_info,
2007 sh64_do_registers_info, sh_gdbarch_init): New functions.
2008
3117ed25
EZ
20092002-05-10 Elena Zannoni <ezannoni@redhat.com>
2010
2011 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2012
2654e6d4
DJ
20132002-05-10 Daniel Jacobowitz <drow@mvista.com>
2014
2015 * linespec.c (decode_line_1): Check for a double quote after
2016 a filename correctly.
2017
9ab3e532
JB
20182002-05-10 Jim Blandy <jimb@redhat.com>
2019
2020 Properly track the size of the current objfile's .debug_line section.
2021 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2022 (DWARF_LINE_SIZE): New macro.
2023 (dwarf2_build_psymtabs_hard): Record the line section's size in
2024 the partial symbol table.
2025 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2026 symbol table.
2027
126fa72d
PS
20282002-05-10 Petr Sorfa <petrs@caldera.com>
2029
2030 * ia64-tdep.c: Handle breakpoints on L instruction type
2031 in MLX instruction bundle by moving the breakpoint to
2032 the third slot (X instruction type) as L holds only data.
2033
1f077a3e
KB
20342002-05-10 Kevin Buettner <kevinb@redhat.com>
2035
2036 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2037 (process_one_symbol): Complain about discarding local symbols
2038 due to a misplaced N_LBRAC entry.
2039
8120c9d5 20402002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
2041
2042 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
2043 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2044 decrease the depth we are at, in the case of templates.
361d1df0 2045
67b2c998
DJ
20462002-05-09 Daniel Jacobowitz <drow@mvista.com>
2047
2048 * mips-tdep.c (mips_float_register_type): New function.
2049 (mips_double_register_type): New function.
2050 (mips_print_register): Use them.
2051 (do_fp_register_row): Likewise.
2052
fd326606
DJ
20532002-05-09 Daniel Jacobowitz <drow@mvista.com>
2054
6609d9af 2055 * signals/signals.c (signals): Remove conditional compilation around
fd326606 2056 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 2057 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 2058
bef35864
MS
20592002-05-09 Michael Snyder <msnyder@redhat.com>
2060
2061 * remote-rdp.c (remote_rdp_can_run): Remove.
2062
c55a3f73
TT
20632002-05-09 Tom Tromey <tromey@redhat.com>
2064
2065 * jv-valprint.c (java_val_print): Handle `char' as a special case
2066 of TYPE_CODE_INT.
2067
b8d5e71d
MS
20682002-05-09 Michael Snyder <msnyder@redhat.com>
2069
2070 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2071 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 2072 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 2073 str r(0123),[sp,#nn].
361d1df0 2074 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
2075 order-independent by placing it in a loop.
2076
e2cd42dd
MS
20772002-05-06 Michael Snyder <msnyder@redhat.com>
2078
2079 * stabsread.c (read_type): Add recognition for new attribute:
2080 "@V;" means that an array type is actually a vector.
2081 This is analogous to the vector flag that's been added to dwarf2.
2082
3ce1502b
MK
20832002-05-09 Mark Kettenis <kettenis@gnu.org>
2084
2085 * i386-tdep.h (i386_abi): New enum.
2086 (struct gdbarch_tdep): Replace os_ident member with abi.
2087 (i386_gdbarch_register_os_abi): New prototype.
2088 * i386-tdep.c (i386_abi_names): New array.
2089 (process_note_abi_tag_sections): Removed.
2090 (process_note_sections): New function.
2091 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2092 (struct i386_abi_handler): New struct.
2093 (i386_abi_handler_list): New variable.
2094 (i386_gdbarch_register_os_abi): New function.
2095 (i386_gdbarch_init): Adapt for the changes given above.
2096
084c156a
DJ
20972002-05-08 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * gregset.h: Say "GNU/Linux".
2100
6599f021
EZ
21012002-05-08 Elena Zannoni <ezannoni@redhat.com>
2102
2103 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2104 (build_gdbtypes): Build builtin_type_v2_float.
2105 (_initialize_gdbtypes): Register new builtin type.
2106
40af4b0c
AC
21072002-05-08 Andrew Cagney <ac131313@redhat.com>
2108
2109 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2110 (clear_gdbarch_swap): New function.
2111 (initialize_non_multiarch): Call.
2112 (gdbarch_update_p): Before calling init(), swap out and clear the
2113 existing architecture.
2114 * gdbarch.c: Regenerate.
2115
4fe84f46
JT
21162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2117
2118 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2119 alphanbsd-tdep.c.
2120
4015edd1
JT
21212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2122
2123 * sh-nbsd-nat.c: Rename to...
2124 * shnbsd-nat.c: ...this.
2125 * sh-nbsd-tdep.c: Rename to...
2126 * shnbsd-tdep.c: ...this.
2127 * sh-nbsd-tdep.h: Rename to...
2128 * shnbsd-tdep.h: ...this.
2129 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2130 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2131
0e2bd219
RE
21322002-05-08 Richard Earnshaw <rearnsha@arm.com>
2133
2134 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2135 concatenation for command help messages.
2136
13a38d45
JT
21372002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2138
2139 * NEWS: Note new sh*-*-netbsdelf* configuration.
2140 * configure.host: Set gdb_host_cpu to sh for all sh*.
2141 (sh*-*-netbsdelf*): New host.
2142 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2143 (sh*-*-netbsdelf*): New target.
2144 * sh-nbsd-nat.c: New file.
2145 * sh-nbsd-tdep.c: New file.
2146 * sh-nbsd-tdep.h: New file.
2147 * config/sh/nbsd.mh: New file.
2148 * config/sh/nbsd.mt: New file.
2149 * config/sh/nm-nbsd.h: New file.
2150 * config/sh/tm-nbsd.h: New file.
2151
d658f924
JT
21522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2153
2154 * sh-tdep.c (sh_osabi_names): Declare.
2155 (process_note_abi_tag_sections): New function.
2156 (get_elfosabi): Ditto.
2157 (sh_gdbarch_register_os_abi): Ditto.
2158 (sh_dump_tdep): Ditto.
2159 _initialize_sh_tdep): Use gdbarch_register to register
2160 sh_gdbarch_init and sh_dump_tdep.
2161 * config/sh/tm-sh.h (sh_osabi): Declare.
2162 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2163
848cfffb
AC
21642002-05-07 Andrew Cagney <ac131313@redhat.com>
2165
2166 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2167 (thumb_scan_prologue): Ditto.
2168 (arm_find_callers_reg): Ditto.
2169 (arm_frame_chain): Ditto.
2170 (arm_init_extra_frame_info): Ditto.
2171 (arm_frame_saved_pc): Ditto.
2172 (arm_pop_frame): Ditto.
2173 (arm_push_return_address): New function.
2174 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2175 call_dummy_location, call_dummy_breakpoint_offset_p,
2176 call_dummy_breakpoint_offset, call_dummy_p,
2177 call_dummy_stack_adjust_p, call_dummy_words,
2178 sizeof_call_dummy_words, call_dummy_start_offset,
2179 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2180 call_dummy_address, push_return_address and push_dummy_frame for
2181 generic dummy frames.
2182
e7d717c0
JT
21832002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2184
2185 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2186 size computation for alloca.
2187 (sh_fp_frame_init_saved_regs): Likewise.
2188
7bbcf283
RE
21892002-05-07 Richard Earnshaw <rearnsha@arm.com>
2190
2191 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2192 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 2193 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
2194 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2195 * remote-rdp.c (remote_rdp_fetch_register): Use
2196 ARM_MAX_REGISTER_RAW_SIZE.
2197 (remote_rdp_store_register): Likewise.
2198
4657573b
ML
21992002-05-07 Michal Ludvig <mludvig@suse.cz>
2200
361d1df0 2201 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
2202 added default labels to switch {} statements.
2203 * x86-64-tdep.c: Ditto.
2204 * x86-64-linux-nat.c: Ditto.
2205
010f3b2f
JT
22062002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2207
2208 * solib.h: Protect against multiple inclusion.
2209
debd256d
JB
22102002-05-06 Jim Blandy <jimb@redhat.com>
2211
9ab3e532
JB
2212 Add first preprocessor macro-expansion files.
2213 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2214 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2215 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2216 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2217 (COMMON_OBS): Add macrotab.o, macroexp.o.
2218 (macroexp.o, macrotab.o): New rules.
2219
debd256d
JB
2220 Separate the job of reading the line number info statement program
2221 header (...expialidocious) out into its own function.
2222 * dwarf2read.c (struct line_head, struct filenames, struct
2223 directories): Replace with...
2224 (struct line_header): New structure, containing the full
2225 contents of the statement program header, including the
2226 include directory and file name tables.
2227 (read_file_scope): If we have line number info, instead of just
2228 calling dwarf_decode_lines to do all the work, call
2229 dwarf_decode_line_header first to get a `struct line_header'
2230 containing the data in the statement program header, and then
2231 pass that to dwarf_decode_lines, which will pick up where that
2232 left off. Be sure to clean up the `struct line_header' object.
2233 (dwarf_decode_line_header, free_line_header, add_include_dir,
2234 add_file_name): New functions.
2235 (dwarf_decode_lines): Move all the code to read the statement
2236 program header into dwarf_decode_line_header. Take the line
2237 header it built as the first argument, instead of the offset to
2238 the compilation unit's line number info. Use the new `struct
2239 line_header' type instead of the old structures. No need to do
2240 cleanups here now, since we don't allocate anything.
2241 (dwarf2_statement_list_fits_in_line_number_section,
2242 dwarf2_line_header_too_long): New complaints.
2243
ac3aafc7
EZ
22442002-05-06 Elena Zannoni <ezannoni@redhat.com>
2245
2246 * gdbtypes.c (init_vector_type): New function.
2247 (build_builtin_type_vec128): Simplify the representation of SIMD
2248 registers.
2249 (build_gdbtypes): Initialize new builtin vector types.
2250 (_initialize_gdbtypes): Register new vector types with gdbarch.
2251 (builtin_type_v4_float, builtin_type_v4_int32,
2252 builtin_type_v8_int16, builtin_type_v16_int8,
2253 builtin_type_v2_int32, builtin_type_v4_int16,
2254 builtin_type_v8_int8): New (renamed) SIMD types.
2255
13e49980
MK
22562002-05-06 Mark Kettenis <kettenis@gnu.org>
2257
2258 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2259 (i387_fill_fxsave): Likewise.
2260
997b20b8
AO
22612002-05-05 Alexandre Oliva <aoliva@redhat.com>
2262
2263 * alpha-tdep.c (alpha_extract_return_value): Don't use
2264 non-constant array size in prototype.
2265
535c96ce
AC
22662002-05-04 Andrew Cagney <ac131313@redhat.com>
2267
2268 From Brian Taylor <briant at model dot com>:
2269 * ui-out.c (ui_out_field_core_addr): Use the function
2270 longest_local_hex_string_custom'to format addresses > 32 bits
2271 wide.
2272
2273 * ui-out.c (ui_out_field_core_addr): Update comment.
2274
bedfa57b
AC
22752002-05-04 Andrew Cagney <ac131313@redhat.com>
2276
2277 * stack.c (select_and_print_frame): Make static. Delete the
2278 parameter `level'.
2279 (func_command): Update call.
2280 (select_frame_command): Delete code computing the frame level.
2281 * frame.h (select_and_print_frame): Delete declaration.
2282
f621c63e
AC
22832002-05-04 Andrew Cagney <ac131313@redhat.com>
2284
2285 * sparc-tdep.c (sparc_get_saved_register): Comment why
2286 get_prev_frame call is safe.
2287
0f7d239c
AC
22882002-05-04 Andrew Cagney <ac131313@redhat.com>
2289
2290 * frame.h (select_frame): Delete level parameter.
2291 * stack.c (select_frame): Update. Use frame_relative_level to
2292 obtain the frame's level.
2293 (select_and_print_frame): Update call.
2294 (select_frame_command): Ditto.
2295 (up_silently_base): Ditto.
2296 (down_silently_base): Ditto.
2297 * ocd.c (ocd_start_remote): Ditto.
2298 * remote-rdp.c (remote_rdp_open): Ditto.
2299 * remote-mips.c (mips_initialize): Ditto.
2300 (common_open): Ditto.
2301 * remote-e7000.c (e7000_start_remote): Ditto.
2302 * m3-nat.c (select_thread): Ditto.
2303 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2304 (child_get_current_exception_event): Ditto.
2305 * varobj.c (varobj_create): Ditto.
2306 (varobj_update): Ditto.
2307 (c_value_of_root): Ditto.
2308 * tracepoint.c (finish_tfind_command): Ditto.
2309 * corelow.c (core_open): Ditto.
2310 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2311 * thread.c (info_threads_command): Ditto.
2312 (switch_to_thread): Ditto.
2313 * infrun.c (normal_stop): Ditto.
2314 (restore_selected_frame): Ditto.
2315 (restore_inferior_status): Ditto.
2316 * breakpoint.c (insert_breakpoints): Ditto.
2317 (watchpoint_check): Ditto.
2318 (bpstat_stop_status): Ditto.
2319 (do_enable_breakpoint): Ditto.
2320 * blockframe.c (flush_cached_frames): Ditto.
2321 (reinit_frame_cache): Ditto.
2322
71d6c7b1
AC
23232002-05-04 Andrew Cagney <ac131313@redhat.com>
2324
2325 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2326 maintainer.
2327
cda6c68a
JB
23282002-05-04 Jim Blandy <jimb@redhat.com>
2329
2330 * gdbtypes.c (replace_type): Doc fix.
2331
5c1c87f0
AC
23322002-05-04 Andrew Cagney <ac131313@redhat.com>
2333
2334 * valprint.c (strcat_longest): Delete commented out function.
2335 Update copyright.
2336
cd9bfe15
AC
23372002-05-04 Andrew Cagney <ac131313@redhat.com>
2338
2339 * MAINTAINERS: Mark a29k as deleted.
2340 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2341 Move new configurations to the top.
2342 * configure.tgt: Remove a29k.
2343 * config/a29k/tm-vx29k.h: Delete.
2344 * config/a29k/vx29k.mt: Delete.
2345 * config/a29k/tm-a29k.h: Delete.
2346 * config/a29k/a29k-udi.mt: Delete.
2347 * config/a29k/a29k.mt: Delete.
2348 * a29k-tdep.c: Delete.
2349 * remote-udi.c: Delete.
2350 * remote-mm.c: Delete.
2351 * remote-eb.c: Delete.
2352 * remote-adapt.c: Delete.
2353 * Makefile.in: Remove obsolete code.
2354 * gdbserver/Makefile.in: Ditto.
2355 * config/s390/s390x.mt: Ditto.
2356 * config/s390/s390.mt: Ditto.
2357 * config/sparc/sparclynx.mh: Ditto.
2358 * config/sparc/linux.mh: Ditto.
2359 * config/pa/hppaosf.mh: Ditto.
2360 * config/pa/hppabsd.mh: Ditto.
2361 * config/ns32k/nbsd.mt: Ditto.
2362 * config/mips/vr5000.mt: Ditto.
2363 * config/m68k/sun3os4.mh: Ditto.
2364 * config/m68k/nbsd.mt: Ditto.
2365 * config/m68k/m68klynx.mh: Ditto.
2366 * config/m32r/m32r.mt: Ditto.
2367 * config/i386/x86-64linux.mt: Ditto.
2368 * config/i386/nbsdelf.mt: Ditto.
2369 * config/i386/nbsd.mt: Ditto.
2370 * config/i386/i386lynx.mh: Ditto.
2371
bf0c5130
AC
23722002-05-04 Andrew Cagney <ac131313@redhat.com>
2373
2374 * target.c (debug_print_register): New function. Handle oversize
2375 registers.
2376 (debug_to_fetch_registers): Call.
2377 (debug_to_store_registers): Call.
2378
2ae1c2d2
JB
23792002-05-03 Jim Blandy <jimb@redhat.com>
2380
13a393b0
JB
2381 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2382 (read_type): Doc fix.
2383 * gdbtypes.c (replace_type): Doc fix.
2384
2ae1c2d2
JB
2385 * stabsread.c (multiply_defined_struct): New complaint.
2386 (read_struct_type): If the type we were passed isn't empty, or
2387 incomplete, don't read the new struct type into it; complain,
2388 and return the original type unchanged. Take a new `type_code'
2389 argument, which is the type code for the new type.
2390 (read_type): Rather than storing the type's type code here, pass
2391 it as an argument to read_struct_type, and let that take care of
2392 storing it. That way, we don't overwrite the original type code,
2393 so read_struct_type can use it to decide whether we're overwriting
2394 something we shouldn't.
2395 (complain_about_struct_wipeout): New function.
2396
8de9bdc4
AC
23972002-05-03 Andrew Cagney <ac131313@redhat.com>
2398
2399 * gdbarch.sh: Assert that gdbarch is non-NULL.
2400 * gdbarch.c: Regenerate.
2401
f773fdbb
JM
24022002-05-03 Jason Merrill <jason@redhat.com>
2403
2404 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2405 and return NULL.
2406
0e04a514
ML
24072002-05-03 Michal Ludvig <mludvig@suse.cz>
2408
2409 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2410 (x86_64_dwarf2gdb_regno_map_length),
2411 (x86_64_dwarf2_reg_to_regnum): Added.
2412 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2413 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2414 (_initialize_x86_64_tdep): Synced with the change above.
2415 (x86_64_skip_prologue): Reformulated message.
2416
065432a8
PM
24172002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2418
2419 * f-exp.y: Also use new prev_lexptr variable
2420 to improve error reporting. Based on Michael Snyder
2421 2002-04-24 dated patch to c-exp.y.
2422 * jv-exp.y: Likewise.
2423 * m2-exp.y: Likewise.
2424
a3162708
EZ
24252002-05-02 Elena Zannoni <ezannoni@redhat.com>
2426
2427 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2428 we are dealing with vectors.
2429
03620c38
PM
24302002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2431
2432 * config/m68k/tm-nbsd.h: Obvious fix,
2433 correct machine name.
2434
6604db2e
PM
24352002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2436
2437 * p-typeprint.c (pascal_type_print_base): Add support
2438 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2439
0906b739
PM
24402002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2441
2442 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2443 for fondamental pascal 'char' type.
2444
e2625b33
PM
24452002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2446
2447 * p-lang.h (is_pascal_string_type): Declaration changed,
2448 new sixth argument of type char ** added.
361d1df0 2449 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
2450 changed. Args length_pos, length_size, string_pos, char_size
2451 can now be NULL. New argument arrayname set to the field
2452 name of the char array. Return value set to char array
2453 field index plus one.
361d1df0 2454 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
2455 is_pascal_string_type function.
2456
cf17c188
AC
24572002-05-02 Andrew Cagney <cagney@redhat.com>
2458
2459 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2460 <cagney@redhat.com> change.
2461 * gdbarch.c: Regenerate.
2462
52bca491
AC
24632002-05-02 Andrew Cagney <cagney@redhat.com>
2464
2465 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2466 before probing for a new one. Detect errorenous gdbarch_init
2467 functions.
2468 * gdbarch.c: Regenerate.
2469
d5e72505
AC
24702002-05-01 Andrew Cagney <cagney@redhat.com>
2471
2472 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2473 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2474 * config/v850/tm-v850.h: Ditto. Update copyright.
2475
af566d9f
AC
24762002-04-30 Andrew Cagney <ac131313@redhat.com>
2477
2478 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2479 current_gdbarch.
2480
880d85fa
MS
24812002-04-30 Michael Snyder <msnyder@redhat.com>
2482
94c30b78
MS
2483 * arm-tdep.c: Whitespace clean-ups.
2484 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
2485 should have been removed as part of 4/24 change.
2486
6f5987a6
KB
24872002-04-30 Kevin Buettner <kevinb@redhat.com>
2488
2489 * rs6000-tdep.c: Added comment describing how fpscr register
2490 numbers were chosen.
2491
1a113c93
MS
24922002-04-30 Michael Snyder <msnyder@redhat.com>
2493
2494 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2495
9a6f53fe
EZ
24962002-04-29 Elena Zannoni <ezannoni@redhat.com>
2497
2498 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2499 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2500 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2501
11ed25ac
KB
25022002-04-29 Kevin Buettner <kevinb@redhat.com>
2503
2504 From Louis Hamilton <hamilton@redhat.com>:
2505 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2506 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2507 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2508 not bfd-private xcoff data, to determine wordsize.
2509 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2510
ae232405
AC
25112002-04-29 Andrew Cagney <ac131313@redhat.com>
2512
2513 GDB 5.2 released from 5.2 branch.
2514
91fd20f7
ML
25152002-04-29 Michal Ludvig <mludvig@suse.cz>
2516
2517 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2518 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2519 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 2520
2dc5091b
EZ
25212002-04-29 Elena Zannoni <ezannoni@redhat.com>
2522
2523 * rs6000-tdep.c (rs6000_extract_return_value,
2524 rs6000_store_return_value): Handle returning vectors.
2525 (rs6000_gdbarch_init): Use
2526 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2527 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2528 New function.
2529 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2530 vectors.
2531 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2532 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 2533
2b9848d8
PM
25342002-04-24 Pierre Muller <ics.u-strasbg.fr>
2535
2536 * hpread.c (hpread_psymtab_to_symtab_1,
2537 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2538 with fprintf_unfiltered (gdb_stderr,...).
2539
f8d17dc5
PM
25402002-04-24 Pierre Muller <ics.u-strasbg.fr>
2541
2542 * remote-array.c (printf_monitor, write_monitor,
361d1df0 2543 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
2544 Replace fprintf (stderr,...
2545 with fprintf_unfiltered (gdb_stderr,....
2546 * remote-es.c: Likewise.
2547 * remote-os9k.c: Likewise.
2548 * remote-st.c: Likewise.
2549
2f2f1ad1
AS
25502002-04-28 Andreas Schwab <schwab@suse.de>
2551
2552 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2553 linux-proc.o and gcore.o.
2554
b6779aa2
AC
25552002-04-26 Michal Ludvig <mludvig@suse.cz>
2556
2557 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2558 code without frame pointers.
2559
7e57f5f4
AC
25602002-04-26 Andrew Cagney <ac131313@redhat.com>
2561
2562 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2563 ON_STACK is needed.
2564
2ceb85d0
BE
25652002-04-26 Ben Elliston <bje@redhat.com>
2566
2567 * target.c (do_xfer_memory): Correct reference to the new option
2568 "trust-readonly-sections".
2569
f5f8a009
EZ
25702002-04-26 Elena Zannoni <ezannoni@redhat.com>
2571
2572 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2573 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2574 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2575 vectors.
2576 (read_array_type): Record the fact that this array type is really a
2577 vector (i.e. are passed in by value).
2578
5868c862
JT
25792002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2580
2581 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2582 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2583 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2584 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2585 * alpha-linux-tdep.c: Include frame.h.
2586 (alpha_linux_sigcontext_addr): New function.
2587 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2588 alpha_linux_sigcontext_addr.
2589 * alpha-osf1-tdep.c: Include gdbcore.h.
2590 (alpha_osf1_sigcontext_addr): New function.
2591 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2592 alpha_osf1_sigcontext_addr.
2593 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2594 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2595
bfb01f37
AC
25962002-04-26 Andrew Cagney <ac131313@redhat.com>
2597
361d1df0 2598 * stack.c (selected_frame_level):
bfb01f37
AC
2599 (select_frame): Do not set selected_frame_level.
2600 * frame.h (selected_frame_level): Delete declaration.
2601
15813d3f
AC
26022002-04-26 Andrew Cagney <ac131313@redhat.com>
2603
2604 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2605 convert_from_func_ptr-addr when AIX / PowerOpen.
2606
6096c27a
AC
26072002-04-25 Andrew Cagney <ac131313@redhat.com>
2608
2609 * valops.c (hand_function_call): Call
2610 generic_save_call_dummy_addr.
2611 * frame.h (generic_save_call_dummy_addr): Declare.
2612 * blockframe.c (struct dummy_frame): Add fields call_lo and
2613 call_hi.
2614 (generic_find_dummy_frame): Check for PC in range call_lo to
2615 call_hi instead of entry_point_address.
2616 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2617 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2618 (generic_save_call_dummy_addr): New function.
2619
f510d44e
DM
26202002-04-24 David S. Miller <davem@redhat.com>
2621
2622 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2623 sparc_skip_prologue.
2624 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2625 information to find prologue when possible.
2626 (sparc_prologue_frameless_p): Call examine_prologue directly.
2627 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2628 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2629 second argument.
2630 (SKIP_PROLOGUE): Likewise.
2631
15d72a92
JT
26322002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2633
2634 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2635 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2636 indicate that the condition it was testing is always true.
2637 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2638 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2639 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2640
accc6d1f
JT
26412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2642
2643 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2644 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2645 tdep->jb_pc and tdep->jb_elt_size.
2646 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2647 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2648 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2649 * alpha-nat.c (get_longjmp_target): Remove.
2650 (JB_ELEMENT_SIZE): Ditto.
2651 (JB_PC): Ditto.
2652 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2653 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2654 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2655 to alpha_get_longjmp_target.
2656 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2657 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2658 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2659
1bfdc549
AC
26602002-04-25 Andrew Cagney <ac131313@redhat.com>
2661
2662 * README: Update to GDB 5.2.
2663
1bd316f0
AC
26642002-04-25 Andrew Cagney <ac131313@redhat.com>
2665
2666 * gdbarch.sh (LC_ALL): Set to `c'.
2667
2e5ff58c
TR
26682002-04-25 Theodore A. Roth <troth@verinet.com>
2669
2670 * avr-tdep.c: Ran through gdb_indent.sh.
2671
e33ce519
TR
26722002-04-25 Theodore A. Roth <troth@verinet.com>
2673
2674 * MAINTAINERS: Add myself as AVR maintainer.
2675 * NEWS: Note new target avr.
2676
8818c391
TR
26772002-04-25 Theodore A. Roth <troth@verinet.com>
2678
2679 * Makefile.in: Add support for AVR target.
2680 * configure.tgt: Add support for AVR target.
2681 * avr-tdep.c: New file
2682 * config/avr/avr.mt: New file.
2683
79509c2d
TR
26842002-04-25 Theodore A. Roth <troth@verinet.com>
2685
2686 * MAINTAINERS: Add myself to write-after-approval.
2687
dac8068e
PM
26882002-04-24 Pierre Muller <ics.u-strasbg.fr>
2689
2690 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2691 with fprintf_unfiltered (gdb_stderr,....
2692
25bf3106
PM
26932002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2694
2695 Fix PR gdb/508.
2696 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2697
24467a86
PM
26982002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2699
2700 * p-exp.y: Also use new prev_lexptr variable
2701 to improve error reporting. Based on Michael Snyder
2702 2002-04-24 dated patch to c-exp.y.
2703
95b80706
JT
27042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2705
2706 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2707 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2708 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2709 to 0.
2710 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2711 and struct value.
2712 (FUNCTION_START_OFFSET): Remove.
2713 (BREAKPOINT): Ditto.
2714
e90cc612
JT
27152002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2716
2717 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2718 * NEWS: Ditto.
2719
6c72f9f9
JT
27202002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2721
2722 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2723 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2724 alpha_linux_pc_in_sigtramp.
2725 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2726 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2727 alpha_osf1_pc_in_sigtramp.
2728 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2729 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2730 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2731 alphafbsd_pc_in_sigtramp.
2732 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2733 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2734 alphanbsd_pc_in_sigtramp.
2735 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2736 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2737
5e4f3379
JT
27382002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2739
2740 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2741
da8ca43d
JT
27422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2743
2744 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2745 alphanbsd-tdep.c.
2746 (alphanbsd-nat.o): New dependency list.
2747 (alphanbsd-tdep.o): Ditto.
2748 * NEWS: Note new native NetBSD/alpha configuration.
2749 * alphanbsd-nat.c: New file.
2750 * alphanbsd-tdep.c: Ditto.
2751 * configure.host (alpha*-*-netbsd*): New host.
2752 * configure.tgt (alpha*-*-netbsd*): New target.
2753 * config/alpha/nbsd.mh: New file.
2754 * config/alpha/nbsd.mt: Ditto.
2755 * config/alpha/nm-nbsd.h: Ditto.
2756 * config/alpha/tm-nbsd.h: Ditto.
2757
36a6271d
JT
27582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2759
2760 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2761 (alpha-osf1-tdep.o): New dependency list.
2762 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2763 and skip_sigtramp_frame members.
2764 * alpha-linux-tdep.c: Include gdbcore.h.
2765 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2766 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2767 * alpha-osf1-tdep.c: New file.
2768 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2769 alpha-osf1-dep.c.
2770 (alpha_frame_past_sigtramp_frame): New function.
2771 (alpha_dynamic_sigtramp_offset): Ditto.
2772 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2773 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2774 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2775 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2776 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2777 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2778 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2779 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2780 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2781 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2782 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2783 to find_solib_trampoline_target.
2784 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2785 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2786 (SKIP_TRAMPOLINE_CODE): Remove.
2787 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2788 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2789 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2790 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2791 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2792 (PROC_SIGTRAMP_MAGIC): Ditto.
2793 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2794 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2795 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2796 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2797 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2798
2f4bc57b
JT
27992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2800
2801 * NEWS: Note that Alpha targets are now multi-arch.
2802
665132f9
MS
28032002-04-24 Michael Snyder <msnyder@redhat.com>
2804
2805 * parser-defs.h (prev_lexptr): New external variable.
2806 * parse.c (parse_exp_1): Set prev_lexptr to null before
2807 calling the language-specific parser.
2808 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2809 (yyerror): Use prev_lexptr in error reporting.
2810
32872fa7
DJ
28112002-04-24 Daniel Jacobowitz <drow@mvista.com>
2812
2813 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2814 * gregset.h: If FILL_FPXREGSET is defined, provide
2815 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2816 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2817 is defined, call fill_fpxregset.
2818
57e76fac
MS
28192002-04-24 Roland McGrath <roland@frob.com>
2820
2821 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2822 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2823 (supply_gregset, supply_fpregset): New functions.
2824
2825 * gnu-nat.c (gnu_find_memory_regions): New function.
2826 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2827 (gnu_xfer_memory): Add a cast.
2828
f43845b3
MS
28292002-04-24 Michael Snyder <msnyder@redhat.com>
2830
361d1df0 2831 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
2832 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2833 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 2834 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
2835 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2836 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2837
a0abec03
AC
2838Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2839
2840 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2841 NUM_PSEUDO_REGS can be used.
2842
d7bd68ca
AC
28432002-04-24 Andrew Cagney <ac131313@redhat.com>
2844
2845 * arch-utils.h: Update copyright.
2846
2847 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2848 * gdbarch.h, gdbarch.c: Re-generate.
2849
2850 * inferior.h (IN_SIGTRAMP): Delete definition.
2851 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2852 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2853
2854 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2855 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2856 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2857 (find_proc_framesize): Ditto.
2858 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2859 (alpha_init_extra_frame_info): Ditto.
2860 * infrun.c (handle_inferior_event): Ditto.
2861 (handle_inferior_event): Ditto.
2862 (check_sigtramp2): Ditto.
2863 * blockframe.c (create_new_frame): Ditto.
2864 (get_prev_frame): Ditto.
2865 * ppc-linux-tdep.c: Update comments.
2866 * i386-linux-tdep.c: Update comments.
2867 * breakpoint.c (bpstat_what): Update comment.
2868
d06f167a
ML
28692002-04-24 Michal Ludvig <mludvig@suse.cz>
2870
2871 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 2872 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
2873 ptrace() calls.
2874 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2875
4867e41e
DM
28762002-04-24 David S. Miller <davem@redhat.com>
2877
21d83aa5
DM
2878 * i960-tdep.c (register_in_window_p): New function.
2879 (i960_find_saved_register): Use it instead of
2880 REGISTER_IN_WINDOW_P.
2881 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2882
4867e41e
DM
2883 * symtab.h (find_stab_function_addr): Kill extern.
2884 * minsyms.c (find_stab_function_addr): Remove from here...
2885 * dbxread.c: ... to here, and mark it static.
2886
69cdf6a2
DM
28872002-04-20 David S. Miller <davem@redhat.com>
2888
2889 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2890 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2891
5a595886
DM
28922002-04-21 David S. Miller <davem@redhat.com>
2893
2894 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2895 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2896 (vx_write_register): Likewise.
2897
1da1a192
JB
28982002-04-23 J. Brobecker <brobecker@gnat.com>
2899
2900 * source.c (is_regular_file): New function.
2901 (openp): Check wether file to open is a regular file
2902 to avoid opening directories.
2903
baa6f10b
JT
29042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2905
2906 * findvar.c (extract_signed_integer): Cast printf argument
2907 to suppress format warning.
2908 (extract_unsigned_integer): Likewise.
2909 * infcmd.c (registers_info): Likewise.
2910 * top.c (get_prompt_1): Likewise.
2911 * valops.c (value_assign): Likewise.
2912 * valprint.c (print_decimal): Likewise.
2913
b2c4da81
L
29142002-04-22 H.J. Lu (hjl@gnu.org)
2915
2916 * c-exp.y (typebase): Support
361d1df0 2917
b2c4da81
L
2918 [long|long long|short] [signed|unsigned] [int|]
2919
2920 and
2921
2922 signed [long|long long|short] int
2923
f267bd6a
JT
29242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2925
2926 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2927 and vax-tdep.h.
2928 * vax-tdep.h: New file.
2929 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2930 Make several routines static.
2931 (vax_get_saved_register): New function.
2932 (vax_gdbarch_init): New function.
2933 (_initialize_vax_tdep): Register vax_gdbarch_init.
2934 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2935 Remove macros now under the control of gdbarch.
2936
da3c6d4a
MS
29372002-04-22 Michael Snyder <msnyder@redhat.com>
2938
11d3b27d
MS
2939 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2940 Some whitespace and coding standards tweaks.
da3c6d4a 2941
a33f7558
JT
29422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2943
2944 * vax-tdep.c: Include regcache.h.
2945 (vax_call_dummy_words): New.
2946 (sizeof_vax_call_dummy_words): New.
2947 (vax_fix_call_dummy): New function.
2948 (vax_saved_pc_after_call): Ditto.
2949 * config/vax/tm-vax.h: Don't include regcache.h.
2950 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2951 (CALL_DUMMY): Remove.
2952 (CALL_DUMMY_WORDS): Define.
2953 (SIZEOF_CALL_DUMMY_WORDS): Define.
2954 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2955
47a73475
MS
29562002-04-18 Michael Snyder <msnyder@redhat.com>
2957
2958 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2959
52efde73
JT
29602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2961
2962 * vax-tdep.c (vax_frame_chain): New function.
2963 (vax_push_dummy_frame): Ditto.
2964 (vax_pop_frame): Ditto.
2965 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2966 (FRAMELESS_FUNCTION_INVOCATION): Use
2967 generic_frameless_function_invocation_not.
2968 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2969 (POP_FRAME): Use vax_pop_frame.
2970
ea74468c
JT
29712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2972
2973 * vax-tdep.c (vax_store_struct_return): New function.
2974 (vax_extract_return_value): Ditto.
2975 (vax_store_return_value): Ditto.
2976 (vax_extract_struct_value_address): Ditto.
2977 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2978 vax_store_struct_return.
2979 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2980 (STORE_RETURN_VALUE): Use vax_store_return_value.
2981 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2982
5516aa92
JT
29832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2984
2985 * vax-tdep.c (vax_frame_saved_pc): New function.
2986 (vax_frame_args_address_correct): Ditto.
2987 (vax_frame_args_address): Ditto.
2988 (vax_frame_locals_address): Ditto.
2989 (vax_frame_num_args): Move code to be in proximity to
2990 other frame-related functions.
2991 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2992 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2993 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2994 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2995 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2996
36af0b35
L
29972002-04-22 H.J. Lu (hjl@gnu.org)
2998
2999 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3000 includedir.
3001
ab62c900
JT
30022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3003
3004 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3005 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3006 (FRAME_INIT_SAVED_REGS): New macro.
3007
7232b100
JT
30082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3009
3010 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3011
b70d2aee
JT
30122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3013
3014 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3015 where needed.
3016 (fetch_osf_core_registers): Likewise.
3017 (supply_gregset): Likewise.
3018
a0e8a2d1 30192002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 3020
a0e8a2d1
JB
3021 * symfile.h (get_section_index): Define.
3022 * symfile.c (get_section_index): New function.
3023 * mdebugread.c (SC_IS_SBSS): New macro.
3024 (SC_IS_BSS): Return true for the scBss storage class only, as
3025 the scSBss storage class refers to the .sbss section.
3026 (parse_partial_symbols): Discard the symbols which associated
3027 section does not exist.
3028 Make sure to use the .sbss section index for symbols which
3029 storage class is scBss, rather than using the .bss section index.
3030
51eb8b08
JT
30312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3032
3033 * vax-tdep.c: Update copyright years.
3034 (vax_register_name): New function.
3035 (vax_register_byte): Ditto.
3036 (vax_register_raw_size): Ditto.
3037 (vax_register_virtual_size): Ditto.
3038 (vax_register_virtual_type): Ditto.
3039 * config/vax/tm-vax.h: Update copyright years.
3040 (REGISTER_NAMES): Remove.
3041 (REGISTER_NAME): Define.
3042 (REGISTER_BYTE): Use vax_register_byte.
3043 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3044 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3045 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3046
6cc1c0a8
AC
30472002-04-21 Andrew Cagney <ac131313@redhat.com>
3048
3049 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3050 declaration
3051 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3052
9319a2fe
DM
30532002-04-21 David S. Miller <davem@redhat.com>
3054
3055 * arch-utils.c (generic_prologue_frameless_p): Kill
3056 SKIP_PROLOGUE_FRAMELESS_P code.
3057 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3058 references.
3059 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3060 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3061 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3062 references.
3063 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3064 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3065 (sparc_gdbarch_init): Pass it to
3066 set_gdbarch_prologue_frameless_p.
a0e8a2d1 3067
e9ed6d01
JT
30682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3069
3070 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3071 (alphabsd-nat.o): New dependency list.
3072
36012033
JT
30732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3074
3075 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3076 alphafbsd-tdep.c.
3077 (alpha-linux-tdep.o): New dependency list.
3078 (alphafbsd-tdep.o): Likewise.
3079
3379287a
JT
30802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3081
3082 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3083 to here...
3084 * alpha-tdep.c: ...from here.
3085 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3086
4bcbd6cb
JT
30872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3088
3089 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3090 prototype from here...
3091 * alpha-tdep.h: ...to here.
3092
b31da25e
AC
30932002-04-21 Andrew Cagney <ac131313@redhat.com>
3094
3095 * frame.h (selected_frame_level): Document as deprecated.
3096 (frame_relative_level): Declare.
3097 * stack.c (frame_relative_level): New function.
3098 (selected_frame_level): Document as deprecated.
3099 (select_frame): Do not set the selected_frame_level.
3100
3101 * stack.c (frame_info, record_selected_frame): Update.
3102 (frame_command, current_frame_command): Update.
3103 (up_silently_base, up_command, down_silently_base): Update.
3104 (down_command): Update.
3105 * inflow.c (kill_command): Update.
3106 * tracepoint.c (finish_tfind_command): Update.
3107 * corelow.c (core_open): Update.
3108 * thread.c (info_threads_command): Update.
3109 (do_captured_thread_select): Update.
3110 * infcmd.c (finish_command): Update.
3111 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3112
9c1d6fe5
JT
31132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3114
3115 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3116
ab89facf
AC
31172002-04-21 Andrew Cagney <ac131313@redhat.com>
3118
3119 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3120 type const.
3121
82a4efa1
JT
31222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3123
3124 * alphafbsd-tdep.c: Update copyright years. Include
3125 alpha-tdep.h.
3126 (alphafbsd_use_struct_convention): Make static.
3127 (alphafbsd_init_abi): New function.
3128 (_initialize_alphafbsd_tdep): New function.
3129 * config/alpha/tm-fbsd.h: Update copyright years.
3130 (USE_STRUCT_CONVENTION): Remove.
3131
44dffaac
JT
31322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3133
3134 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3135 an Alpha ABI variant.
3136 (alpha_abi_handler_list): Declare.
3137 (alpha_gdbarch_register_os_abi): New function.
3138 (alpha_gdbarch_init): Give registered ABI variant handlers a
3139 chance to tweak the gdbarch once we have set up defaults.
3140 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3141
65585be4
JT
31422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3143
3144 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3145 to standard_coerce_float_to_double.
3146 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3147
d9b023cc
JT
31482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3149
3150 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3151 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3152 from gdbarch_tdep rather than a constant.
3153 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3154 the default text address for all Alpha Unix ABIs.
3155 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3156 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3157
dc129d82
JT
31582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3159
3160 * alpha-tdep.h: New file. Includes several Alpha target constants
3161 taken from...
3162 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3163 let gdbarch deal with.
3164 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3165 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3166 to dependency list.
3167 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3168 Alpha target register names.
3169 * alphabsd-nat.c: Likewise.
3170 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3171 Alpha target register names. Make serveral routines static.
3172 (alpha_get_saved_register): New function.
3173 (alpha_abi_names): New.
3174 (process_note_abi_tag_sections): New function.
3175 (get_elfosabi): New function.
3176 (alpha_gdbarch_init): New function.
3177 (alpha_dump_tdep): New function.
3178 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3179
d49d1e0a
AC
31802002-04-21 Andrew Cagney <ac131313@redhat.com>
3181
3182 * frame.c (find_saved_register): Delete #ifdef
3183 HAVE_REGISTER_WINDOWS code.
3184 * config/sparc/tm-sparc.h: Update comments.
3185 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3186
92e8c9ed
AC
31872002-04-21 Andrew Cagney <ac131313@redhat.com>
3188
3189 * i960-tdep.c (i960_find_saved_register): New function.
3190 (i960_get_saved_register): New function.
3191 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3192 (i960_get_saved_register): Declare.
3193 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3194
e1925118
DM
31952002-04-20 David S. Miller <davem@redhat.com>
3196
3197 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3198
29673b29
AC
31992002-04-20 Andrew Cagney <ac131313@redhat.com>
3200
3201 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3202 instead of NUM_PSEUDO_REGS.
3203
6c86dcd5
DM
32042002-04-20 David S. Miller <davem@redhat.com>
3205
3206 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3207 GDB_MULTI_ARCH_PARTIAL
3208 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3209 define, let tm-sp64.h do it.
3210
aa40ec90
JT
32112002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
3212
3213 * frame.c (find_saved_register): Avoid a NULL pointer
3214 dereference and actually walk the frame list.
3215
0f79675b
AC
32162002-04-20 Andrew Cagney <ac131313@redhat.com>
3217
3218 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3219 sorted in most most-recent-used order. Document.
3220 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 3221
c04a1aa8
DJ
32222002-04-20 Daniel Jacobowitz <drow@mvista.com>
3223
3224 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3225 (add_inferior): Call create_register_cache.
3226 (clear_inferiors): Call free_register_cache.
3227 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3228 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3229 (registers): Remove.
3230 (get_regcache): New function.
3231 (create_register_cache, free_register_cache): New functions.
3232 (set_register_cache): Don't initialize the register cache here.
3233 (registers_to_string, registers_from_string, register_data): Call
3234 get_regcache.
3235 * gdbserver/regcache.h: Add prototypes.
3236 * gdbserver/server.h: Likewise.
3237
611cb4a5
DJ
32382002-04-20 Daniel Jacobowitz <drow@mvista.com>
3239
3240 * gdbserver/mem-break.c: New file.
3241 * gdbserver/mem-break.h: New file.
3242 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3243 dependencies.
3244 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3245 member.
3246 (clear_inferiors): Free target_data member if set.
3247 (inferior_target_data, set_inferior_target_data): New functions.
3248 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3249 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3250 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3251 (struct inferior_linux_data): New.
3252 (linux_create_inferior): Use set_inferior_target_data.
3253 (linux_attach): Likewise. Call add_inferior.
3254 (linux_wait_for_one_inferior): New function.
3255 (linux_wait): Call it.
3256 (linux_write_memory): Add const.
3257 (initialize_low): Call set_breakpoint_data.
3258 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3259 handling members.
3260 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3261 call.
3262 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3263 prototypes.
3264 * gdbserver/target.c (read_inferior_memory)
3265 (write_inferior_memory): New functions.
3266 * gdbserver/target.h (read_inferior_memory)
3267 (write_inferior_memory): Change macros to prototypes.
3268 (struct target_ops): Update comments. Add const to write_memory
3269 definition.
3270
f91305dd 32712002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
3272
3273 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3274 instead of ->prev.
3275 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3276 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3277 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3278 instead of ->prev.
3279
73d322b1
EZ
32802002-04-19 Elena Zannoni <ezannoni@redhat.com>
3281
3282 Fix PR gdb/471.
3283 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3284 (build_builtin_type_vec128): Ditto.
3285 (append_composite_type_field): Fix calculation of type length in
3286 union case.
3287
ccd9a834
EZ
32882002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3289
3290 * config/djgpp/README: Update.
3291
3292 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3293 compiler warnings.
3294
a57f9e49
JT
32952002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3296
3297 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3298 (alpha_setup_arbitrary_frame): ...to this.
3299 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3300 for alpha_setup_arbitrary_frame.
3301
f4f9705a
AC
33022002-04-18 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3305 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 3306
f4f9705a
AC
3307 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3308 * target.h (memory_breakpoint_from_pc): Update declaration.
3309 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3310
3311 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3312 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3313 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3314 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3315 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3316 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3317 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3318 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3319 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3320 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3321 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3322 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3323
3324 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3325 const pointer.
3326 * monitor.c (monitor_insert_breakpoint): Ditto.
3327 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3328
3329 * config/mcore/tm-mcore.h: Update copyright.
3330 * mem-break.c: Ditto.
3331 * xstormy16-tdep.c: Ditto.
3332
29f319b8
PM
33332002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3334
3335 * p-exp.y: Add precedence rule for '^' token.
3336 This removes the shift/reduce conflicts.
3337 Remove the comment concerning these shift/reduce conflicts.
3338
ebeac11a
EZ
33392002-04-18 Elena Zannoni <ezannoni@redhat.com>
3340
3341 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3342 (registers_powerpc_nofp): New register set for processors
3343 without floating point unit.
3344
27c31547
DM
33452002-04-18 David S. Miller <davem@redhat.com>
3346
3347 * MAINTAINERS: Add myself to write-after-approval.
3348
47a73475
MS
33492002-04-17 Michael Snyder <msnyder@redhat.com>
3350
3351 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3352
953836b2
AC
33532002-04-17 Andrew Cagney <ac131313@redhat.com>
3354
3355 * rs6000-tdep.c (frame_initial_stack_address): Use
3356 frame_register_read to read the alloca_reg.
3357
8b0d4340
AC
33582002-04-17 Andrew Cagney <ac131313@redhat.com>
3359
3360 * frame.c (find_saved_register): Find saved registers in the next
3361 not prev frame.
3362 Fix PR gdb/365.
3363
d8864532
AC
33642002-04-17 Andrew Cagney <ac131313@redhat.com>
3365
3366 * gdbarch.sh (LANG): Set to ``c''.
3367
36cc83a3 33682002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 3369
36cc83a3 3370 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 3371
2f4150cc 33722002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
3373
3374 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3375 Update copyright.
3376
628703c6 3377 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 3378 Also fix PR gdb/391.
361d1df0 3379
56157b4a
AC
33802002-04-14 Andrew Cagney <ac131313@redhat.com>
3381
3382 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3383 * aclocal.m4, configure: Re-generate.
3384 Fix PR gdb/391.
361d1df0 3385
6d1e3329
EZ
33862002-04-14 Elena Zannoni <ezannoni@redhat.com>
3387
3388 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3389 instead of tm_print_insn.
3390
cb06fa07
EZ
33912002-04-14 Elena Zannoni <ezannoni@redhat.com>
3392
3393 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3394
f208ba17
AC
33952002-04-14 Andrew Cagney <ac131313@redhat.com>
3396
3397 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3398 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3399 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3400
20f01a46
DH
34012002-04-12 Don Howard <dhoward@redhat.com>
3402
3403 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3404 max_user_call_depth.
3405 (init_cmd_lists): Initialize the new value;
3406 * cli/cli-script.c (execute_user_command): Limit the call depth of
3407 user defined commands. This avoids a core-dump when user commands
3408 are infinitly recursive.
3409
a88376a3
KB
34102002-04-12 Kevin Buettner <kevinb@redhat.com>
3411
3412 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3413 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3414 from tdep struct instead of DEFAULT_LR_SAVE.
3415 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3416 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3417 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3418
f2172603
MS
34192002-04-12 Michael Snyder <msnyder@redhat.com>
3420
694f61fb 3421 * Remote.c: Spelling fix.
20fe79c8
MS
3422 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3423 If no symbol found for "sbrk", try "_sbrk".
3424 (make_output_phdrs): Use bfd_section_name.
3425 (gcore_copy_callback): Use bfd_section_name.
62995fc4 3426 * eval.c: Indentation fix-ups.
169a7369
MS
3427 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3428 in case it gets applied to an address that is already
3429 in the instruction space.
de74f71f
MS
3430 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3431 * symfile.c: Fix indentation, long lines.
f2172603
MS
3432 * source.c: White space fix-up.
3433
cda5a58a
AC
34342002-04-12 Andrew Cagney <cagney@redhat.com>
3435
3436 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3437 * frame.c (frame_register_read): New function. Return non-zero on
3438 success.
3439 (read_relative_register_raw_bytes_for_frame): Delete.
3440 (read_relative_register_raw_bytes): Delete.
3441 * frame.h (frame_register_read): Declare.
3442 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3443 * sh-tdep.c: Ditto.
3444 * infcmd.c (do_registers_info): Ditto.
3445 * hppa-tdep.c: Ditto.
3446 * rs6000-tdep.c: Ditto.
3447 * h8500-tdep.c: Ditto.
3448 * mips-tdep.c: Ditto.
3449 * h8300-tdep.c: Ditto.
3450 * z8k-tdep.c: Ditto.
3451
2ea5f656
KB
34522002-04-12 Kevin Buettner <kevinb@redhat.com>
3453
3454 From Jimi X <jimix@watson.ibm.com>:
3455 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3456 64-bit SysV ABI.
3457
27b15785
KB
34582002-04-12 Kevin Buettner <kevinb@redhat.com>
3459
3460 From Jimi X <jimix@watson.ibm.com>:
3461 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3462 bfd info.
3463
5d57ee30
KB
34642002-04-12 Kevin Buettner <kevinb@redhat.com>
3465
3466 From Jimi X <jimix@watson.ibm.com>:
3467 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3468 register sets for these processor variants.
3469
bc1e36ca
DJ
34702002-04-11 Daniel Jacobowitz <drow@mvista.com>
3471
3472 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3473 registers which are allowed to fail to store.
3474 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3475 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3476 (ppc_cannot_store_register): FPSCR may not be storable.
3477 * regformats/reg-ppc.dat: Support FPSCR.
3478
e3f36dbd
KB
34792002-04-11 Kevin Buettner <kevinb@redhat.com>
3480
3481 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3482 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3483 Add fpscr as an invalid/unfetchable register.
3484 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3485 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3486 (fill_fpregset): Add support for register fpscr.
3487 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3488 (fill_gregset): Account for the fact that register ``mq'' might
3489 not exist.
3490 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3491 (registers_power): Add fpscr to register set at slot 71.
3492 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3493 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3494
943c9c25
MS
34952002-04-11 Michael Snyder <msnyder@redhat.com>
3496
3497 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3498 * configure: Regenerate.
3499 * config.in: Regenerate.
3500 * acconfig.h: Add define for _SYSCALL32.
3501 * core-sol2.c: Remove #define _SYSCALL32.
3502 * solib-legacy.c: Remove #define _SYSCALL32.
3503
d8c0a2e7
AC
35042002-04-10 Andrew Cagney <ac131313@redhat.com>
3505
3506 * stack.c (select_frame): Cleanup internal error message, do not
3507 use %p.
3508
7cc19214
AC
35092002-04-10 Andrew Cagney <ac131313@redhat.com>
3510
3511 * stack.c (select_frame): Check that selected_frame and the
3512 specified level are as expected.
3513 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3514 Update copyright.
3515 * frame.h (struct frame_info): Add field `level'. Update
3516 copyright.
3517 Work-in-progress PR gdb/464.
3518
67a2b77e
AC
35192002-04-10 Andrew Cagney <ac131313@redhat.com>
3520
3521 * maint.c (maint_print_section_info): Rename print_section_info.
3522 (print_bfd_section_info, print_objfile_section_info): Update.
3523 * inferior.h (struct gdbarch): Add opaque declaration.
3524 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3525 * gdbarch.h: Regenerate.
3526
8cfda98c
ML
35272002-04-10 Michal Ludvig <mludvig@suse.cz>
3528
3529 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3530 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3531 (kernel_u_size): Added.
3532 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3533 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3534
ca439ad2 35352002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 3536
ca439ad2
JI
3537 * valarith.c (find_size_for_pointer_math): New function, either returns
3538 the size for a pointer's target, returns 1 for void *, or errors for
3539 incomplete types.
3540 (value_add, value_sub): use find_size_for_pointer_math.
3541
2f2893d9
DJ
35422002-04-09 Daniel Jacobowitz <drow@mvista.com>
3543
3544 * linux-low.c (linux_look_up_symbols): New hook.
3545 (linux_target_ops): Add linux_look_up_symbols.
3546 * remote-utils.c (decode_address): New function.
3547 (look_up_one_symbol): New function.
3548 * server.c (handle_query): Call target look_up_symbols hook.
3549 * server.h (look_up_one_symbol): Add prototype.
3550 * target.h (struct target_ops): Add look_up_symbols hook.
3551
2ec06d2e
DJ
35522002-04-09 Daniel Jacobowitz <drow@mvista.com>
3553
d64b8841
DJ
3554 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3555 * ChangeLog: Correct paths in last ChangeLog entry.
3556
35572002-04-09 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
3560 (struct linux_target_ops): New.
3561 (extern the_low_target): New.
d64b8841 3562 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
3563 (register_addr): Use the_low_target explicitly.
3564 (fetch_register): Likewise.
3565 (usr_fetch_inferior_registers): Likewise.
3566 (usr_store_inferior_registers): Likewise.
d64b8841 3567 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
3568 (arm_num_regs): Define.
3569 (arm_regmap): Renamed from regmap, made static.
3570 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3571 made static.
3572 (arm_cannot_store_register): Renamed from cannot_store_register,
3573 made static.
3574 (the_low_target): New.
d64b8841 3575 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
3576 (i386_num_regs): Define.
3577 (i386_regmap): Renamed from regmap, made static.
3578 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3579 made static.
3580 (i386_cannot_store_register): Renamed from cannot_store_register,
3581 made static.
3582 (the_low_target): New.
d64b8841 3583 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
3584 (ia64_num_regs): Define.
3585 (ia64_regmap): Renamed from regmap, made static.
3586 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3587 made static.
3588 (ia64_cannot_store_register): Renamed from cannot_store_register,
3589 made static.
3590 (the_low_target): New.
d64b8841 3591 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
3592 (m68k_num_regs): Define.
3593 (m68k_regmap): Renamed from regmap, made static.
3594 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3595 made static.
3596 (m68k_cannot_store_register): Renamed from cannot_store_register,
3597 made static.
3598 (the_low_target): New.
d64b8841 3599 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
3600 (mips_num_regs): Define.
3601 (mips_regmap): Renamed from regmap, made static.
3602 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3603 made static.
3604 (mips_cannot_store_register): Renamed from cannot_store_register,
3605 made static.
3606 (the_low_target): New.
d64b8841 3607 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
3608 (ppc_num_regs): Define.
3609 (ppc_regmap): Renamed from regmap, made static.
3610 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3611 made static.
3612 (ppc_cannot_store_register): Renamed from cannot_store_register,
3613 made static.
3614 (the_low_target): New.
d64b8841 3615 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
3616 (s390_num_regs): Define.
3617 (s390_regmap): Renamed from regmap, made static.
3618 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3619 made static.
3620 (s390_cannot_store_register): Renamed from cannot_store_register,
3621 made static.
3622 (the_low_target): New.
d64b8841 3623 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
3624 (sh_num_regs): Define.
3625 (sh_regmap): Renamed from regmap, made static.
3626 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3627 made static.
3628 (sh_cannot_store_register): Renamed from cannot_store_register,
3629 made static.
3630 (the_low_target): New.
d64b8841 3631 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
3632 (the_low_target): New.
3633
96cb11df
AC
36342002-04-09 Andrew Cagney <ac131313@redhat.com>
3635
3636 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3637 override FP_REGNUM with frame->fp. Update copyright.
3638 * parse.c (num_std_regs, std_regs): Delete.
3639 (target_map_name_to_register): Do not search std_regs. Update
3640 function description.
3641 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3642 declarations. Update copyright.
3643 Fix PR gdb/251.
361d1df0 3644
c3a3ccc7
DJ
36452002-04-09 Daniel Jacobowitz <drow@mvista.com>
3646
3647 * gdbserver/Makefile.in: Add stamp-h target.
3648 * gdbserver/configure.in: Create stamp-h.
3649 * gdbserver/configure: Regenerated.
3650
ce3a066d
DJ
36512002-04-09 Daniel Jacobowitz <drow@mvista.com>
3652
3653 * gdbserver/inferiors.c: New file.
3654 * gdbserver/target.c: New file.
3655 * gdbserver/target.h: New file.
3656 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3657 dependencies.
3658 * gdbserver/linux-low.c (inferior_pid): New static variable,
3659 moved from server.c.
3660 (linux_create_inferior): Renamed from create_inferior.
3661 Call add_inferior. Return 0 on success instead of a PID.
3662 (linux_attach): Renamed from myattach.
3663 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3664 (linux_thread_alive): Renamed from mythread_alive.
3665 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3666 child dies.
3667 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3668 (regsets_store_inferior_registers): Correct error message.
3669 Add missing ``return 0''.
3670 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3671 (linux_store_registers): Renamed from store_inferior_registers.
3672 (linux_read_memory): Renamed from read_inferior_memory.
3673 (linux_write_memory): Renamed from write_inferior_memory.
3674 (linux_target_ops): New structure.
3675 (initialize_low): Call set_target_ops ().
3676 * gdbserver/remote-utils.c (unhexify): New function.
3677 (hexify): New function.
3678 (input_interrupt): Send signals to ``signal_pid''.
3679 * gdbserver/server.c (inferior_pid): Remove.
3680 (start_inferior): Update create_inferior call.
3681 (attach_inferior): Call add_inferior.
3682 (handle_query): New function.
3683 (main): Call handle_query for `q' packets.
3684 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3685 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3686
0729219d
DJ
36872002-04-09 Daniel Jacobowitz <drow@mvista.com>
3688
3689 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3690 dependencies.
3691 * gdbserver/configure.in: Check for <string.h>
3692 * gdbserver/configure: Regenerate.
3693 * gdbserver/config.in: Regenerate.
3694 * gdbserver/gdbreplay.c: Include needed system headers.
3695 (remote_open): Remove strchr prototype.
3696 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3697 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3698 (supply_register_by_name): Likewise.
3699 (collect_register): Change buf argument to void *.
3700 (collect_register_by_name): Likewise.
3701 * gdbserver/regcache.h: Add missing prototypes.
3702 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3703 * gdbserver/server.c (handle_query): New function.
3704 (attached): New static variable, moved out of main.
3705 (main): Quiet longjmp clobber warnings.
3706 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3707 * gdbserver/utils.c (error): Remove NORETURN.
3708 (fatal): Likewise.
3709
97658e92
DJ
37102002-04-09 Daniel Jacobowitz <drow@mvista.com>
3711
3712 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3713 after the last symbol in a block.
3714
6044e3eb
PM
37152002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3716
3717 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3718 is non zero as a found symbol.
3719
0406ec40
AC
37202002-04-08 Andrew Cagney <ac131313@redhat.com>
3721
3722 * findvar.c: Include "builtin-regs.h".
3723 (value_of_register): Call value_of_builtin_reg when applicable.
3724 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3725 (target_map_name_to_register): Call
3726 builtin_reg_map_name_to_regnum.
3727 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3728 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3729 (builtin_regs_h): Define.
3730 (builtin-regs.o): New target.
3731 (findvar.o): Add $(builtin_regs_h).
3732 * builtin-regs.c, builtin-regs.h: New files.
3733 * std-regs.c: New file.
3734 Partial fix for PR gdb/251.
3735
56a6dfb9
KB
37362002-04-08 Kevin Buettner <kevinb@redhat.com>
3737
3738 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3739 it's no longer required.
3740
3a808432
AC
37412002-04-08 Andrew Cagney <ac131313@redhat.com>
3742
3743 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3744
7c40d541
KB
37452002-04-08 Kevin Buettner <kevinb@redhat.com>
3746
3747 From Jimi X <jimix@watson.ibm.com>:
3748 * rs6000-tdep.c (rs6000_software_single_step): Use
3749 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3750 and size. Use target_insert_breakpoint() and
3751 target_remove_breakpoint() to insert and remove breakpoints
3752 instead of explicit memory reads and writes.
3753
cc9836a8
KB
37542002-04-08 Kevin Buettner <kevinb@redhat.com>
3755
3756 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3757 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3758 ELF_OBJECT_FORMAT ifdef.
3759
7495d1dc
KB
37602002-04-08 Kevin Buettner <kevinb@redhat.com>
3761
3762 From Jimi X <jimix@watson.ibm.com>:
3763 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3764
4288e836
KB
37652002-04-08 Kevin Buettner <kevinb@redhat.com>
3766
3767 From Jimi X <jimix@watson.ibm.com>:
3768 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3769 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3770
a4e4e501
MK
37712002-04-07 Mark Kettenis <kettenis@gnu.org>
3772
3773 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3774 s/asprintf/xasprintf/.
3775 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3776
006defba
AC
37772002-04-07 Andrew Cagney <ac131313@redhat.com>
3778
3779 I believe Jeff Law denies responsability for this one:
3780 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3781 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3782 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3783 Work-around for PR gdb/366.
3784
7aa83cac
EZ
37852002-04-07 Elena Zannoni <ezannoni@redhat.com>
3786
3787 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3788 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3789 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3790
cf1fcca1
EZ
37912002-04-07 Elena Zannoni <ezannoni@redhat.com>
3792
3793 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3794 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3795 information.
3796
3f289e6f
AC
37972002-04-07 Andrew Cagney <ac131313@redhat.com>
3798
3799 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3800 maintainer.
3801
129188f6
AC
38022002-04-07 Andrew Cagney <ac131313@redhat.com>
3803
3804 * README (Reporting Bugs in GDB): Document the bug web page as the
3805 prefered way of submitting bugs.
3806 Fix PR gdb/402.
3807
1200cd6e
AC
38082002-04-06 Andrew Cagney <ac131313@redhat.com>
3809
3810 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3811 -1. Update comment.
3812 * gdbarch.h, gdbarch.c: Re-generate.
3813
2853c33c
AS
38142002-04-07 Andreas Schwab <schwab@suse.de>
3815
3816 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3817 buffer to regcache_collect.
3818
c2169756
AC
38192002-04-06 Andrew Cagney <ac131313@redhat.com>
3820
3821 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3822 * gdbarch.c, gdbarch.h: Re-generate.
3823
25f1b008
AC
38242002-04-06 Andrew Cagney <ac131313@redhat.com>
3825
3826 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3827 declaration. Fix -Werror.
3828
59263426
DJ
38292002-04-05 Daniel Jacobowitz <drow@mvista.com>
3830
3831 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3832 * gdbarch.c: Regenerate.
3833
f5db4da3
MS
38342002-04-05 Michael Snyder <msnyder@redhat.com>
3835
80f8a6eb
MS
3836 * breakpoint.c (clear_command): Rewrite middle section to
3837 combine two loops with identical control conditions.
3838 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
3839 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3840
ad3dcc5c
L
38412002-04-05 H.J. Lu (hjl@gnu.org)
3842
3843 * solib-svr4.c (bkpt_names): Add "__start".
3844
f32e7a74
AC
38452002-04-04 Andrew Cagney <ac131313@redhat.com>
3846
3847 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3848 as test for 64 bit target.
3849
8227c0ff
AC
38502002-04-05 Andrew Cagney <ac131313@redhat.com>
3851
3852 * h8500-tdep.c (h8500_write_fp): Delete function.
3853 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3854 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3855 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3857 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3858 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3859 (s390_write_fp):
3860 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3861 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3862 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3863 (d10v_write_fp): Delete function.
3864 * inferior.h (write_fp, generic_target_write_fp): Delete
3865 declarations.
3866 * regcache.c (generic_target_write_fp): Delete function.
3867 (write_fp): Delete function.
3868 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3869 * gdbarch.h, gdbarch.c: Regenerate.
3870 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3871 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3872 (sparc64_write_fp): Delete declaration.
3873 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3874 (h8500_write_fp): Delete declaration.
3875
2757dd86
AC
38762002-04-04 Andrew Cagney <ac131313@redhat.com>
3877
3878 * sparc-tdep.c (sparc64_write_fp): Delete.
3879 (sparc_push_dummy_frame): Replace write_fp call with code to store
3880 the FP directly.
3881 (sparc_gdbarch_init): Do not initialize write_fp.
3882
c69255e1
KB
38832002-04-05 Kevin Buettner <kevinb@redhat.com>
3884
3885 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3886 clause.
3887
ae767bfb
JB
38882002-03-29 Jim Blandy <jimb@redhat.com>
3889
3890 * stack.c (get_selected_block): Add new argument `addr_in_block',
3891 used to return the exact code address we used to select the block,
3892 not just the block.
3893 * blockframe.c (get_frame_block, get_current_block): Same.
3894 * frame.h (get_frame_block, get_current_block,
3895 get_selected_block): Update declarations.
3896 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3897 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3898
84d2ac95
MS
38992002-04-05 Michael Snyder <msnyder@redhat.com>
3900
3901 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3902 warning message.
3903
596aa3bf
JB
39042002-04-05 J. Brobecker <brobecker@gnat.com>
3905
3906 * utils.c (xfullpath): New function.
3907 * defs.h (xfullpath): Add declaration.
3908 * source.c (openp): Use xfullpath in place of gdb_realpath to
3909 avoid resolving the basename part of filenames when the
3910 associated file is a symbolic link. This fixes a potential
3911 inconsistency between the filenames known to GDB and the
3912 filenames it prints in the annotations.
3913 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3914 to be able to match a filename with either the real filename, or
3915 the name of any symbolic link to this file.
3916 (lookup_partial_symtab): Ditto.
3917
c02f5703
MS
39182002-04-04 Michael Snyder <msnyder@redhat.com>
3919
3920 * breakpoint.c: Add support for hardware breakpoints in overlays.
3921 (overlay_events_enabled): New state variable.
3922 (insert_breakpoints): Use overlay_events_enabled to decide
3923 whether to attempt to set a breakpoint at the overlay load addr.
3924 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3925 (remove_breakpoint): Use overlay_events_enabled to decide
3926 whether breakpoints need to be removed from overlay load addr.
3927 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3928 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 3929 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
3930 disable_overlay_breakpoints): Update overlay_events_enabled.
3931
5fb290d7
DJ
39322002-04-04 Daniel Jacobowitz <drow@mvista.com>
3933
3934 * dwarf2read.c (struct function_range): New.
3935 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3936 (check_cu_functions): New.
3937 (read_file_scope): Initialize global function lists.
3938 Call dwarf_decode_line after processing children.
3939 (read_func_scope): Add to global function list.
3940 (dwarf_decode_lines): Call check_cu_functions everywhere
3941 record_line is called. Call record_line with a linenumber
3942 of 0 to mark sequence ends.
3943
7b3fabf0
ML
39442002-04-04 Michal Ludvig <mludvig@suse.cz>
3945
361d1df0 3946 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
3947 change sync with glibc.
3948
bce58c09
JB
39492002-04-03 Jim Blandy <jimb@redhat.com>
3950
3951 * configure.in: Call AC_C_INLINE.
3952 * configure: Regenerated.
361d1df0 3953
2fccf04a
DJ
39542002-04-01 Daniel Jacobowitz <drow@mvista.com>
3955
3956 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3957 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3958
2d1bfe2e
MK
39592002-03-31 Mark Kettenis <kettenis@gnu.org>
3960
a5941fbf
MK
3961 * NEWS: Mention gcore support on FreeBSD/i386.
3962
a90cd31d
MK
3963 * fbsd-proc.c: New file.
3964 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3965 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3966
2d1bfe2e
MK
3967 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3968 while statement.
3969
9eb6e5a1
JB
39702002-03-29 Jim Blandy <jimb@redhat.com>
3971
3972 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3973 unescaped newlines in string literals, but newer ones don't. So
3974 escape them.
3975
f02df580
MS
39762002-03-26 Michael Snyder <msnyder@redhat.com>
3977 Andrew Cagney <cagney@redhat.com>
3978
361d1df0 3979 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
3980 restore file to memory.
3981 * cli/cli-dump.h: New file.
3982 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 3983 * NEWS: Mention new commands.
f02df580 3984
109f874e
MS
39852002-03-28 Michael Snyder <msnyder@redhat.com>
3986
3987 * symfile.c (symbol_file_add): Move test for null symbols to later.
3988
520f6ade
AC
39892002-03-27 Andrew Cagney <ac131313@redhat.com>
3990
3991 From veksler at il.ibm.com:
3992 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3993 the xstrduped original path.
3994 Fix PR gdb/417.
3995
d4654627
MS
39962002-03-27 Michael Snyder <msnyder@redhat.com>
3997
3998 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3999 * infcmd.c (_initialize_infcmd): Ditto.
4000 * language.c (_initialize_language): Ditto.
4001 * symfile.c (_initialize_symfile): Ditto.
4002 * top.c (_init_main): Ditto.
4003 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4004
6be8bc0c
EZ
40052002-03-27 Elena Zannoni <ezannoni@redhat.com>
4006
4007 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4008 vector registers handling.
4009 (skip_prologue): Handle new AltiVec instructions. Fill in new
4010 fields of frame data.
4011 (frame_get_saved_regs): Fill in information for AltiVec registers.
4012
12af6855
JB
40132002-03-27 Jim Blandy <jimb@redhat.com>
4014
4015 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4016 a function; leave this macro here to invoke that function.
4017 (symbol_init_mangled_name): Declaration for that function.
4018 * symtab.c (symbol_init_mangled_name): New function.
4019
dc672865
AC
40202002-03-27 Andrew Cagney <ac131313@redhat.com>
4021
4022 * valarith.c: Replace strerror with safe_strerror.
4023 * tracepoint.c: Ditto.
4024 * lin-lwp.c: Ditto.
4025 * go32-nat.c: Ditto.
4026 * inflow.c: Ditto.
4027 * gnu-nat.c: Ditto.
4028
d96429cd
AS
40292002-03-27 Andreas Schwab <schwab@suse.de>
4030
4031 * event-top.c (command_line_handler): Remove useless if.
4032
7e336ba1
AJ
40332002-03-27 Andreas Jaeger <aj@suse.de>
4034
4035 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4036 comment.
4037
de220d0f
ML
40382002-03-27 Michal Ludvig <mludvig@suse.cz>
4039
4040 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4041 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4042 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4043 (x86_64_linux_dr_get_status, supply_gregset),
4044 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4045 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4046 (x86_64_register_info_table): Add.
4047 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4048 (x86_64_register_raw_size, x86_64_register_virtual_type),
4049 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4050 general x86_64_register_info_table.
4051 (i386_gdbarch_init): gdbarch_register_bytes is now set
4052 dynamicaly during initialization.
4053 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4054 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 4055
0e98d0a7
DJ
40562002-03-27 Daniel Jacobowitz <drow@mvista.com>
4057
4058 * gdbserver/server.c (main): Call target_signal_to_host_p
4059 and target_signal_to_host on signals received from the remote.
4060 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4061 target_signal_from_host on signals sent to the remote.
4062 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4063 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4064
3130066b
DJ
40652002-03-27 Daniel Jacobowitz <drow@mvista.com>
4066
4067 * signals/signals.c: Include "server.h" in gdbserver build.
4068 (target_signal_from_name): Don't use STREQ.
4069 (_initialize_signals): Likewise. Don't include function in
4070 gdbserver build.
4071
9aedf4f4
DJ
40722002-03-27 Daniel Jacobowitz <drow@mvista.com>
4073
4074 * signals.c: Moved to...
4075 * signals/signals.c: Here.
7e336ba1 4076 * Makefile (signals.o): Update.
9aedf4f4 4077
3fa41cdb
JL
40782002-03-26 Jeff Law (law@redhat.com)
4079
4080 * somread.c (som_symtab_read): Remove some commented out code and
4081 updated related comments. Do not set the minimal symbol table to
4082 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4083 in a dynamic executable.
4084 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4085 where we are unable to find the minimal symbol for the given
4086 PC value.
4087
ee677e8d
MS
40882002-03-25 Jeff Law (law@redhat.com)
4089
4090 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4091
e76e1718
ML
40922002-03-25 Michal Ludvig <mludvig@suse.cz>
4093
4094 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4095
18a642a1
AC
40962002-03-23 Andrew Cagney <ac131313@redhat.com>
4097
4098 * command.h: Update copyright.
4099 (struct cmd_list_element): Replace definition with opaque
4100 declaration.
4101 (enum cmd_types): Document that it will eventually be moved to
4102 cli/cli-decode.h
4103 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4104 (MALLOCED_REPLACEMENT): Delete macro.
4105 * Makefile.in (cli_decode_h): Add $(command_h).
4106 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 4107 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
4108 * completer.c: Include "cli/cli-decode.h".
4109 * maint.c: Include "cli/cli-decode.h".
4110 * cli/cli-decode.h: Include "command.h".
4111 (enum command_class): Delete.
4112 (enum cmd_types): Comment out.
4113 (enum cmd_auto_boolean): Delete.
4114 (enum var_types): Delete.
4115
b2875cc0
AC
41162002-03-23 Andrew Cagney <ac131313@redhat.com>
4117
4118 * cli/cli-decode.c: Include "gdb_assert.h".
4119 (add_set_or_show_cmd): New static function.
4120 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4121 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4122 all fields, such as func, from the set command.
4123
3b45974e
AC
41242002-03-23 Andrew Cagney <ac131313@redhat.com>
4125
4126 * MAINTAINERS (sh-elf): Change warning flag to -w.
4127
823ca731
AC
41282002-03-23 Andrew Cagney <cagney@redhat.com>
4129
4130 * defs.h (error): Add printf format attribute.
4131 * thread-db.c (thread_from_lwp): Fix error format string.
4132 * stack.c (parse_frame_specification): Ditto.
4133 * cli/cli-decode.c (undef_cmd_error): Ditto.
4134 * scm-lang.c (scm_lookup_name): Ditto.
4135 * tracepoint.c (trace_error): Ditto.
4136 * remote-utils.c (usage): Ditto.
4137 * remote.c (compare_sections_command): Ditto.
4138 Fix PR gdb/328.
4139
0e101458
AC
41402002-03-22 Andrew Cagney <ac131313@redhat.com>
4141
4142 * gdbtypes.c (append_composite_type_field): New function.
4143 (init_composite_type): New function.
4144 * gdbtypes.h (append_composite_type_field): Declare.
4145 (init_composite_type): Ditto.
4146
8e0662df
EZ
41472002-03-22 Elena Zannoni <ezannoni@redhat.com>
4148
4149 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 4150 function.
8e0662df
EZ
4151 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4152 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4153 structure returning convention for SYSV ABI case, but not
4154 for GNU/Linux, FreeBSD, or NetBSD.
4155
3121eff0
DJ
41562002-03-22 Daniel Jacobowitz <drow@mvista.com>
4157
4158 * symtab.h (lookup_block_symbol): Add mangled_name argument
4159 to prototype.
4160
4161 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4162 with new mangled_name argument.
4163 * linespec.c (decode_line_1): Likewise.
4164 * valops (value_of_this): Likewise.
4165 * symtab.c (lookup_transparent_type): Likewise.
4166 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4167 (lookup_symbol): If we are given a mangled name, pass it down
4168 to lookup_symbol_aux.
4169 (lookup_block_symbol): If we are given a mangled name to check
4170 against, only return symbols which match it.
4171
349b409f
CF
41722002-03-22 Christopher Faylor <cgf@redhat.com>
4173
4174 * win32-nat.c (child_create_inferior): Check for proper shell to use
4175 here, in case the user changes it on the fly.
4176 (_initialize_inftarg): Remove shell path considerations.
4177
2a873819
EZ
41782002-03-21 Elena Zannoni <ezannoni@redhat.com>
4179
4180 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4181 for gdbarch_max_register_raw_size and max_register_virtual_size.
4182 Adjust copyright year.
4183
a1b9830c
DJ
41842002-03-21 Daniel Jacobowitz <drow@mvista.com>
4185
4186 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4187 in a function to cover the entire beginning of the function
4188 as well if it does not already.
4189
8b5790f2
TR
41902002-03-21 Tom Rix <trix@redhat.com>
4191
4192 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4193 (rs6000_ptrace64): Renamed from ptrace64.
4194
bdbe5747
MH
41952002-03-20 Martin M. Hunt <hunt@redhat.com>
4196
4197 * gdbserver/remote-utils.c (remote_open): Don't call
4198 getprotobyname, we're all using TCP here so just use
4199 IPPROTO_TCP.
7e336ba1 4200 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
4201
42022002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 4203
bdbe5747
MH
4204 * regcache.c (_initialize_regcache): No need to call
4205 build_regcache() at this time; it gets called whenever
4206 the gdbarch changes.
4207
7781cd62
DB
42082002-03-20 David O'Brien <obrien@FreeBSD.org>
4209
4210 * sparc-nat.c: Include sys/param.h where possible.
4211
f65ca430
DJ
42122002-03-20 Daniel Jacobowitz <drow@mvista.com>
4213
4214 Fix PR gdb/422.
4215 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4216 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4217 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4218 complex types.
4219 * stabsread.c (rs6000_builtin_type): Likewise.
4220 (read_sun_floating_type): Likewise.
4221
0c867556
PS
42222002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4223
4224 * stabsread.c (read_member_functions): Remove skip code for duplicate
4225 constructor/destructor methods. Use standard parsing for these
4226 methods and just do not chain them to the list of methods after
4227 parsing.
4228
12b9c64f
AO
42292002-03-19 Alexandre Oliva <aoliva@redhat.com>
4230
4231 * coffread.c: Remove redundant static declarations. Replace
4232 occurrences of `PTR' with `void *'.
4233 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4234 * top.h (quit_cover): Likewise.
4235 * defs.h (catch_errors): Likewise.
4236
349c5d5f
AC
42372002-03-18 Andrew Cagney <ac131313@redhat.com>
4238
4239 * defs.h (XMALLOC): Define.
4240 * gdb-events.sh (XMALLOC): Delete macro.
4241 * gdb-events.c, gdb-events.h: Regenerate.
4242 * gdbarch.sh (XMALLOC): Delete macro.
4243 * gdbarch.c: Regenerate.
4244 * serial.c (XMALLOC): Delete macro.
4245 * ui-file.c (XMALLOC): Ditto.
4246 * ser-unix.h (XMALLOC): Ditto.
4247 * sh-tdep.c (XMALLOC): Ditto.
4248 * ui-out.c (XMALLOC): Ditto.
4249 * utils.c (XMALLOC): Ditto.
4250 * i386-tdep.c (XMALLOC): Ditto.
4251 * gdb-events.c (XMALLOC): Ditto.
4252 * d10v-tdep.c (XMALLOC): Ditto.
4253 * cli-out.c (XMALLOC): Ditto.
4254
4255 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4256 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4257 * ui-file.c, ui-out.c: Ditto.
4258
7d0766f3
AC
42592002-03-18 Andrew Cagney <ac131313@redhat.com>
4260
4261 * command.h (struct cmd_list_element): Add field context.
4262 (set_cmd_context, get_cmd_context): Declare.
4263 * cli/cli-decode.h: Ditto.
4264 * cli/cli-decode.c (get_cmd_context): New function.
4265 (set_cmd_context): New function.
4266 (add_cmd): Initialize context.
4267 Part of fixing PR gdb/145 and PR gdb/146.
4268
5913bcb0
AC
42692002-03-17 Andrew Cagney <ac131313@redhat.com>
4270
1868c04e
AC
4271 * cli/cli-decode.c (cmd_type): New function.
4272 * command.h (cmd_type): Declare.
4273 * infrun.c (set_schedlock_func): Call function cmd_type.
4274 * kod.c (kod_set_os): Call cmd_type.
4275 * cris-tdep.c (cris_version_update): Use function cmd_type.
4276 (cris_mode_update, cris_abi_update): Ditto.
4277
5913bcb0
AC
4278 * command.h: (execute_cmd_post_hook): Declare.
4279 (execute_cmd_pre_hook): Declare.
4280 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4281 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4282 functions. Execute pre/post hook while ensuring that afterwords
4283 hook_in is cleared.
4284 * top.c (execute_command): Use execute_cmd_post_hook, and
4285 execute_cmd_pre_hook to execute pre/post commands.
4286 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4287 hook_stop_stub.
4288 (hook_stop_stub): Call execute_cmd_pre_hook.
4289
b51450c9
AC
42902002-03-17 Andrew Cagney <ac131313@redhat.com>
4291
4292 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4293 set'' and this leads to a core dump. Move xstrdup of
4294 operating_system to after check that it is not NULL.
4295
f66c9f11
AC
42962002-03-17 Andrew Cagney <ac131313@redhat.com>
4297
8e694ecf
AC
4298 * kod.c (kod_set_os): Remove unnecessary check that
4299 ``command->type'' is set_cmd.
4300
f66c9f11
AC
4301 * valprint.c (set_input_radix): Use input_radix.
4302 (set_output_radix): Use output_radix.
4303 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4304 isn't reverted.
4305
9d01611c
AC
43062002-03-16 Andrew Cagney <ac131313@redhat.com>
4307
4308 * value.h (struct value): Delete field ``substring_addr''. Change
4309 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
4310 force_core_addr_align and force_pointer_aligh.
4311
4312 * value.h (struct value): Fix typo in above change.
9d01611c 4313
4156bb53
PS
43142002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4315
4316 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4317 to fix internal_error from ``maintenance print architecture''.
4318
0e5e3ea6
PS
43192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4320
4321 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4322 for gcc versions after gcc-2.8.1.
4323
9b013045
PS
43242002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4325
4326 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4327 for method resolution. Restore adjustment of ``this'' pointer after
4328 calling value_struct_elt, which was accidentally removed during the
4329 HP merge.
4330
376c9600
AC
43312002-03-15 Andrew Cagney <ac131313@redhat.com>
4332
4333 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4334 value_of_register.
4335 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4336 get_saved_register.
4337 * value.h (value_of_register): Update.
4338
a4db0f07
RH
43392002-03-14 Richard Henderson <rth@redhat.com>
4340
4341 * configure.in: Detect declaration for canonicalize_file_name.
4342 * utils.c (canonicalize_file_name): Declare, if needed.
4343 (gdb_realpath): Prefer realpath if available and usable.
4344 * config.in, configure: Rebuild.
4345
96383835
RH
43462002-03-14 Richard Henderson <rth@redhat.com>
4347
4348 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4349 a constant array bound.
4350
4351 * MAINTAINERS: Add myself to write-after-approval.
4352
75245b24
MS
43532002-03-14 Michael Snyder <msnyder@redhat.com>
4354
4355 * symfile.c (syms_from_objfile): Return immediately if no syms.
4356 (symbol_file_add): Return immediately if no syms.
4357 (find_sym_fns): Return immediately if no syms.
4358
e641a1ca
ML
43592002-03-13 Michal Ludvig <mludvig@suse.cz>
4360
4361 * gdbserver/remote-util.c (remote_open): Print remote-side's
4362 IP address when remote debugging over the network.
7e336ba1 4363
df08bfec
DB
43642002-03-12 David O'Brien <obrien@FreeBSD.org>
4365
4366 * config/sparc/fbsd.mh: Fix copyright.
4367 * config/sparc/fbsd.mt: Likewise.
4368
9a57864f
RE
43692002-03-11 Richard Earnshaw <rearnsha@arm.com>
4370
4371 * MAINTAINERS: Fix typo in name of gdb warnings option.
4372 (x86-64): Fix formating so that this can be parsed by awk.
4373
dd7bf85e
DJ
43742002-03-10 Daniel Jacobowitz <drow@mvista.com>
4375
4376 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4377 * defs.h: Include "gdb/signals.h".
4378 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4379
33a0a2ac
ML
43802002-03-10 Michal Ludvig <mludvig@suse.cz>
4381
4382 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 4383 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
4384 from x86-64-tdep.h
4385
dd824b04
DJ
43862002-03-10 Daniel Jacobowitz <drow@mvista.com>
4387 Don Howard <dhoward@redhat.com>
4388
4389 * mips-tdep.c (ST0_FR): Define.
4390 (mips2_fp_compat): New function, temporarily disabled.
4391 (mips_read_fp_register_single): New function.
4392 (mips_read_fp_register_double): New function.
4393 (mips_print_register): Use them.
4394 (do_fp_register_row): Likewise.
4395
6a41ff59
AC
43962002-03-09 Andrew Cagney <ac131313@redhat.com>
4397
4398 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4399 approval''.
4400
4ea09c10
PS
44012002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4402
4403 * stabsread.c (read_member_functions): Fix is_stub test for
4404 static member functions, improve comment.
4405
6ccc741d
RE
44062002-03-07 Richard Earnshaw <rearnsha@arm.com>
4407
4408 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4409 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4410 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4411 commands that set boolean values.
4412 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4413 (arm_rdi_resume): Always initialize PC.
4414 (arm_rdi_open): Don't use rslt as a boolean.
4415 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4416 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4417 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4418 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4419
438013df
AO
44202002-03-06 Alexandre Oliva <aoliva@redhat.com>
4421
4422 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4423 * configure: Rebuilt.
4424
70ed8774
SC
44252002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4426
4427 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4428 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4429
5ba2abeb
AC
44302002-03-06 Andrew Cagney <ac131313@redhat.com>
4431
4432 * cli/cli-decode.c (set_cmd_completer): New function.
4433 * command.h (set_cmd_completer): Declare.
4434 * cli/cli-decode.h (set_cmd_completer): Ditto.
4435
4436 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4437 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4438 * win32-nat.c (_initialize_inftarg): Ditto.
4439 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4440 * proc-api.c (_initialize_proc_api): Ditto.
4441 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4442 * source.c (_initialize_source): Ditto.
4443 * exec.c (_initialize_exec): Ditto.
4444 * solib.c (_initialize_solib): Ditto.
4445 * top.c (init_main): Ditto.
4446 * tracepoint.c (_initialize_tracepoint): Ditto.
4447 * symfile.c (_initialize_symfile): Ditto.
4448 * printcmd.c (_initialize_printcmd): Ditto.
4449 * infcmd.c (_initialize_infcmd): Ditto.
4450 * corefile.c (_initialize_core): Ditto.
4451
f779ca99
AC
44522002-03-05 Andrew Cagney <ac131313@redhat.com>
4453
4454 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4455
01a3934b
AC
44562002-03-05 Andrew Cagney <ac131313@redhat.com>
4457
4458 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4459
37057839
AC
44602002-03-05 Andrew Cagney <ac131313@redhat.com>
4461
4462 * NEWS: Update headings, 5.2 has branched.
4463
c6ecbae5
DJ
44642002-03-04 Daniel Jacobowitz <drow@mvista.com>
4465
4466 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4467 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4468 (register_addr, REGISTER_RAW_SIZE): Likewise.
4469 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4470 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4471
e9f30c21
ML
44722002-03-03 Michal Ludvig <mludvig@suse.cz>
4473
4474 * MAINTAINERS (x86-64): Add myself.
4475 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4476 changed value_ptr -> struct value *
4477
54394ac3
DB
44782002-03-01 David O'Brien <obrien@FreeBSD.org>
4479
4480 * configure.host (sparc64-*-freebsd): Add.
4481 * configure.tgt: Likewise.
4482 * config/sparc/fbsd.mh: New file.
4483 * config/sparc/fbsd.mt: Likewise.
4484 * config/sparc/nm-fbsd.h: Likewise.
4485 * config/sparc/tm-fbsd.h: Likewise.
4486
bfe95955
DJ
44872002-03-01 Daniel Jacobowitz <drow@mvista.com>
4488
4489 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4490 regformats/reg-s390x.dat.
4491
f33c6cbf
AC
44922002-03-01 Andrew Cagney <ac131313@redhat.com>
4493
4494 * utils.c: Add FIXME explaining true/false problem.
4495
5ecaa7dd
AC
44962002-02-28 Andrew Cagney <ac131313@redhat.com>
4497
4498 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4499
2a251cc2
MC
45002002-02-28 Michael Chastain <mec@shout.net>
4501
4502 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4503
6a8031a3 45042002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
4505
4506 * gdbserver/linux-s390-low.c: New file.
4507 * regformats/reg-s390.dat: New file.
4508 * regformats/reg-s390x.dat: New file.
4509 * gdbserver/configure.srv: Add S/390.
4510 * gdbserver/Makefile.in: Add S/390.
4511 * configure.tgt: Enable gdbserver for S/390.
4512
ac469903
EZ
45132002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4514
4515 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4516 first line of the doc string for "info dos", except at the end of
4517 the sentence, since the short help stops at the first period.
4518
985cb1a3
JM
45192002-02-28 Jason Merrill <jason@redhat.com>
4520
4521 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4522
c570663e
FF
45232002-02-27 Fred Fish <fnf@redhat.com>
4524
4525 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4526 comment (dumy -> dummy).
4527
43630227
PS
45282002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4529
4530 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4531
b84911e8
RB
45322002-02-27 Rodney Brown <rbrown64@csc.com.au>
4533
4534 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4535
58caa3dc
DJ
45362002-02-27 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * gdbserver/acconfig.h: New file.
4539 * gdbserver/i387-fp.c: New file.
4540 * gdbserver/i387-fp.h: New file.
4541 * gdbserver/linux-x86-64.c: New file.
4542 * regformats/reg-x86-64.dat: New file.
4543 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4544 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4545 * gdbserver/configure.in: Add support for regsets.
4546 * gdbserver/config.in: Regenerate.
4547 * gdbserver/configure: Regenerate.
4548 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4549 * gdbserver/linux-low.h: New file.
4550 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4551 for regsets.
4552 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4553 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4554 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4555 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4556 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4557 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4558 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4559 "i387-fp.h". Add PTRACE_GETREGS and friends.
4560 * gdbserver/regcache.c (supply_register): New function.
4561 (supply_register_by_name): New function.
4562 (collect_register): New function.
4563 (collect_register_by_name): New function.
4564
93652174
DJ
45652002-02-27 Daniel Jacobowitz <drow@mvista.com>
4566
4567 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4568 (config.status): Add configure.srv dependency.
4569 (server_h): Add config.h dependency.
4570
a02e4a61
DJ
45712002-02-27 Daniel Jacobowitz <drow@mvista.com>
4572
4573 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4574 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4575 * gdbserver/configure.srv: Change i386-*-linux* to use
4576 reg-i386-linux.o.
4577
ce0eebec
AC
45782002-02-26 Andrew Cagney <ac131313@redhat.com>
4579
4580 * x86-64-tdep.c: Re-indent. Update copyright date.
4581
82dbc5f7
AC
45822002-02-26 Andrew Cagney <ac131313@redhat.com>
4583
4584 From Michal Ludvig <mludvig@suse.cz>:
4585 * x86-64-tdep.c (value.h): Delete.
4586 (gdb_assert.h): Include.
4587 (x86_64_register_convert_to_virtual,
4588 x86_64_register_convert_to_raw ): Add check which lets only
4589 floating-point values to be converted.
4590 (value_push): Delete.
4591 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4592 (i386_gdbarch_init): Number of register_bytes fixed.
4593
e4621584
AC
45942002-02-26 Andrew Cagney <ac131313@redhat.com>
4595
4596 * MAINTAINERS: Add x86-64 target.
4597
81a9a963
AC
45982002-02-26 Andrew Cagney <ac131313@redhat.com>
4599
4600 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4601 * osfsolib.c (solib_map_sections): Ditto.
4602 * irix5-nat.c (solib_map_sections): Ditto.
4603 * corelow.c (gdb_check_format): Ditto.
4604 * symfile.c (symfile_bfd_open): Ditto.
4605 * solib.c (solib_map_sections): Ditto.
4606 Fix PR gdb/354.
7e336ba1 4607
0f017ab9
AC
46082002-02-26 Andrew Cagney <ac131313@redhat.com>
4609
4610 * remote.c (_initialize_remote): By default, disable ``e'' and
4611 ``E'' step out-of-range packets.
4612
75738c29
AS
46132002-02-26 Andreas Schwab <schwab@suse.de>
4614
4615 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4616 m68k_linux_frame_saved_pc.
4617 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4618 in_sigtramp.
4619 (SIGCONTEXT_PC_OFFSET): Remove.
4620 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4621 m68k_linux_sigtramp_saved_pc): New functions.
4622 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4623 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4624 (UCONTEXT_PC_OFFSET): Define.
4625 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4626 non-RT and RT signal trampolines.
4627
7e8ed687
RE
46282002-02-26 Richard Earnshaw <rearnsha@arm.com>
4629
4630 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4631 (TARGET_NBPG, STACK_END_ADDR): Delete
4632 (VARIABLES_INSIDE_BLOCK): Delete.
4633
6972bc8b
AC
46342002-02-25 Andrew Cagney <ac131313@redhat.com>
4635
4636 * utils.c (perror_with_name): Make string parameter constant.
4637 (print_sys_errmsg): Ditto.
4638 (query): Ditto.
4639 * defs.h (perror_with_name): Update.
4640 (print_sys_errmsg): Update.
4641 (query): Update.
4642
aa32f823
DJ
46432002-02-25 Daniel Jacobowitz <drow@mvista.com>
4644
4645 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4646 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4647
19caaa45
PS
46482002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4649
4650 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4651 if it already matches the current architecture from the exec file.
4652 Include arch-utils.h for gdbarch_info_init prototype.
4653 * Makefile.in (rs6000-nat.o): Update dependencies.
4654
d951901f
EZ
46552002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4656
4657 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4658 list of exported variables.
4659
7ea81414
DJ
46602002-02-24 Daniel Jacobowitz <drow@mvista.com>
4661
4662 * gdbserver/configure.srv: New file.
4663 * gdbserver/configure.in: Use configure.srv instead
4664 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4665 from it.
4666 * gdbserver/configure: Regenerated.
4667 * gdbserver/terminal.h: New file.
4668 * gdbserver/Makefile.in: Update for configure changes. Remove
4669 more unneeded include paths.
4670
080fe24b
AC
46712002-02-24 Andrew Cagney <ac131313@redhat.com>
4672
4673 From wiz at danbala:
4674 * config/sparc/tm-sp64.h: Fix grammar and typos.
4675 Fix PR gdb/287.
4676
8605d56e
AC
46772002-02-24 Andrew Cagney <ac131313@redhat.com>
4678
4679 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
4680 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4681 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4682 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
4683 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4684 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4685 * s390-tdep.c: Ditto.
92362027
AC
4686 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4687 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4688 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4689 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4690 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4691 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4692 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4693 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4694 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4695 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 4696 Fix PR gdb/378.
7e336ba1 4697
8ed32cc0
AC
46982002-02-23 Andrew Cagney <ac131313@redhat.com>
4699
a3007b6f
AC
4700 * lin-thread.c: Delete file.
4701 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4702 to gdb_proc_service.h.
4703 * configure: Re-generate.
4704
50a9e2f1
AC
4705 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4706 * serial.c (serial_open): Delete check for "ocd".
4707 Fix PR gdb/349.
4708
8b6e7932
AC
4709 * Makefile.in (linux-thread.o): Delete target.
4710 * linux-thread.c: Delete file.
4711
d155c46b
AC
4712 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4713 renamed SH files to be consistent.
4714
8ed32cc0
AC
4715 * symtab.c (sort_search_symbols): Use xfree.
4716
0e18d038
RE
47172002-02-23 Richard Earnshaw <rearnsha@arm.com>
4718
4719 * arm-linux-tdep.c (arm_linux_init_abi): Register
4720 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4721 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4722 definition with undef, since we don't want the sysvr4 definition.
4723 (SKIP_TRAMPOLINE_CODE): Likewise.
4724
27aac7ff
AC
47252002-02-23 Andrew Cagney <ac131313@redhat.com>
4726
4727 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4728
4729 * configure.in: (AC_CHECK_FUNCS) Added test for
4730 canonicalize_file_name Regenerated.
4731 * config.in, configure: Regenerated.
4732 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4733 defined use canonicalize_file_name.
7e336ba1 4734
65a6e0ee
MC
47352002-02-23 Michael Chastain <mec@shout.net>
4736
4737 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4738
47b95330
AC
47392002-02-23 Andrew Cagney <ac131313@redhat.com>
4740
4741 * README: Remove references to cygnus.com.
4742 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4743 dot com'' form. Remove references to cygnus.com and sourceware.
4744
696f451b
AC
47452002-02-23 Andrew Cagney <ac131313@redhat.com>
4746
4747 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4748 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4749 1003.1-2001 no longer allows "head -1".
4750 * gdb/Makefile.in (version.c): Likewise.
4751 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4752 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4753 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4754
bbaca940
AC
47552002-02-23 Andrew Cagney <ac131313@redhat.com>
4756
4757 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4758 * command.h (cmd_cfunc_eq): Declare.
4759 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4760
4761 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4762 ``struct cmd_list_element *''.
4763 * cli/cli-cmds.c (is_complete_command): Update. Use
4764 cmd_cfunc_eq.
4765 * top.c (execute_command): Pass the command to
4766 is_complete_command.
4767 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4768
b8b8b047
AC
47692002-02-23 Andrew Cagney <ac131313@redhat.com>
4770
4771 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4772 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4773 architecture defines.
4774 * s390-tdep.c (s390_gdbarch_init): Likewise.
4775
19d3fc80
RE
47762002-02-23 Richard Earnshaw <rearnsha@arm.com>
4777
4778 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4779 (arm_linux_push_arguments): Likewise.
4780 (arm_linux_init_abi): Register them. Also register linux-specific
4781 call_dummy_words.
4782 (find_minsym_and_objfile): Use strcmp, not STREQ.
4783 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4784 (arm_linux_call_dummy_words): Delete declaration.
4785 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4786 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4787 declarations.
4788 (LOWEST_PC): Delete.
4789
3ab13650
PS
47902002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4791
4792 * maint.c (print_section_info): Do not prepend `0x' to filepos
4793 output, it will be handled by local_hex_string_custom.
4794
19d3fc80 47952002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
4796
4797 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4798 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4799 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4800
d85a5daf
JB
48012002-02-22 Jim Blandy <jimb@redhat.com>
4802
4803 Indicate that the bcache functions don't change the strings
4804 they're passed.
4805 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4806 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4807
eeb25b8a
PM
48082002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4809
4810 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4811
6badb179
CF
48122002-02-21 Christopher Faylor <cgf@redhat.com>
4813
4814 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4815 find the complete path to a loaded DLL.
4816
e8717518
FF
48172002-02-21 Fred Fish <fnf@redhat.com>
4818
4819 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4820 that marks the end of the range of a function, enter a line number
4821 entry that has a line number of zero and a PC offset that matches
4822 the end of the function. This starts a range of PC's for which no
4823 line number information is known.
4824 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4825 PC's for which no line number info is found (line number is zero)
4826 then we didn't find any valid line information.
4827 * symtab.h: Document use of zero line number entry.
4828
9abe5450
EZ
48292002-02-21 Elena Zannoni <ezannoni@redhat.com>
4830
4831 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4832 (have_ptrace_getvrregs): Define for run time checks.
4833 (gdb_vrregset_t): New type for Altivec register handling.
4834 (fetch_register, store_register): Fetch/store altivec register
4835 when needed.
4836 (fetch_altivec_register, store_altivec_register): New functions.
4837 (supply_vrregset, fill_vrregset): New functions.
4838 (fetch_altivec_registers, store_altivec_registers): New functions.
4839 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4840 registers as well.
4841
aaa38bb5
AJ
48422002-02-21 Jiri Smid <smid@suse.cz>
4843
4844 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4845
b34db576
RE
48462002-02-21 Richard Earnshaw <rearnsha@arm.com>
4847
4848 * Makefile.in (armnbsd-nat.o): Update dependencies.
4849 * armnbsd-nat.c (supply_gregset): New function. Common code to
4850 supply the integer register set.
4851 (supply_fparegset): New function. Similar for FPA registers.
4852 (fetch_regs, fetch_fp_regs): Use them.
4853 (fetch_core_registers): Likewise.
4854 (fetch_elfcore_registers): New function.
4855 (arm_netbsd_elfcore_fns): New core-file type specification.
4856 (_initialize_arm_netbsd_nat): Register it.
4857
3e56fc4b
RE
48582002-02-21 Richard Earnshaw <rearnsha@arm.com>
4859
4860 * armnbsd-nat.c: Include gdbcore.h.
4861 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4862 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4863 'void' to declaration, to shut up ARI.
4864 (fetch_core_registers): Make static. Rewrite using supply_register.
4865 (arm_netbsd_core_fns): New core-file type specification.
4866 (_initialize_arm_netbsd_nat): New function.
4867
097f6b0b
CF
48682002-02-21 Christopher Faylor <cgf@redhat.com>
4869
4870 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4871 value.
4872
c914e0cc
CF
48732002-02-20 Christopher Faylor <cgf@redhat.com>
4874
4875 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4876 fails.
4877
385fa495
DJ
48782002-02-20 Daniel Jacobowitz <drow@mvista.com>
4879
4880 * jv-exp.y (parse_number): Change type of implicit longs
4881 to builtin_type_uint64.
4882
e5f1222d
DJ
48832002-02-20 Daniel Jacobowitz <drow@mvista.com>
4884
4885 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4886 to be an integer instead of a `union wait'.
4887
75c9abc6
DJ
48882002-02-20 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * mips-linux-nat.c: Call the operating system GNU/Linux.
4891 * mips-linux-tdep.c: Likewise.
4892 * mips-tdep.c: Likewise.
4893
551792a5
DJ
48942002-02-20 Daniel Jacobowitz <drow@mvista.com>
4895
4896 Fix PR gdb/265.
4897 * jv-exp.y (parse_number): Handle 64-bit integers.
4898
ee6e2b82
DJ
48992002-02-20 Daniel Jacobowitz <drow@mvista.com>
4900
4901 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4902 AC_STDC_HEADERS to AC_HEADER_STDC.
4903 * gdbserver/configure: Regenerated.
4904
a48442a0
RE
49052002-02-20 Richard Earnshaw <rearnsha@arm.com>
4906
4907 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4908 is defined.
4909 * sparc-tdep.c (get_longjmp_target): Likewise.
4910
fe419ffc
RE
49112002-02-20 Richard Earnshaw <rearnsha@arm.com>
4912
4913 * News: Add news about ARM and Multi-arch. Mention the new target
4914 arm*-*-netbsd*.
4915
5832ed7e
JB
49162002-02-19 Jim Blandy <jimb@redhat.com>
4917
4918 * stabsread.c (error_type_complaint): Improve error message.
4919
84563040
DJ
49202002-02-19 Daniel Jacobowitz <drow@mvista.com>
4921
4922 * gdbserver/README: Update documentation.
4923 * gdbserver/configure.in: Update configury to match documentation.
4924 * gdbserver/Makefile.in: Likewise.
4925 * gdbserver/configure: Regenerated.
4926 * gdbserver/aclocal.m4: New file, generated by aclocal.
4927 * gdbserver/config.in: New file, generated by autoheader.
4928
375fd65b
RE
49292002-02-19 Richard Earnshaw <rearnsha@arm.com>
4930
4931 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4932 armnbsd-nat.c.
4933
08216dd7
RE
49342002-02-19 Richard Earnshaw <rearnsha@arm.com>
4935
4936 * arm-tdep.h (enum arm_float_model): New enum.
4937 (struct gdbarch_tdep): Add fp_model.
4938 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4939 up floating-point conversions until we know the floating-point model
4940 in use by the inferior. Don't complain about being unable to
4941 determine the ABI of the inferior when we don't have one.
4942 (arm_extract_return_value): Support different floating-point models.
4943 (arm_store_return_value): Likewise.
aaa38bb5 4944 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
4945 ARM_FLOAT_SOFT.
4946 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4947
65d6d66a
PS
49482002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4949
4950 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4951 of ``current_gdbarch''.
4952
47221191
RE
49532002-02-19 Richard Earnshaw <rearnsha@arm.com>
4954
4955 * armnbsd-nat.c : ANSIfy all function declarations.
4956 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4957 (fetch_inferior_registers): Re-implement in terms of above.
4958 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4959 (store_inferior_registers): Re-implement in terms of above.
4960
fdf39c9a
RE
49612002-02-19 Richard Earnshaw <rearnsha@arm.com>
4962
aaa38bb5 4963 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
4964 kernel.
4965 * arm-linux-tdep.c: Likewise.
4966 * config/arm/tm-linux.h: Likewise.
4967
93247f88
RE
49682002-02-19 Richard Earnshaw <rearnsha@arm.com>
4969
4970 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4971 * config/arm/nbsd.mt (TM_FILE): Delete.
4972 * config/arm/tm-nbsd.h: Delete.
4973
d7b486e7
RE
49742002-02-19 Richard Earnshaw <rearnsha@arm.com>
4975
4976 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4977 Initialize CALL_DUMMY_LENGTH.
4978
41d39a95
RE
49792002-02-19 Richard Earnshaw <rearnsha@arm.com>
4980
4981 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4982 function.
4983 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 4984 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
4985 defines one thing and that is incorrect for this port.
4986 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4987
e1195560
PM
49882002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4989
4990 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4991
c1748f97
PM
49922002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4993
4994 * win32-nat.c (display_selector): New function. Displays information
4995 about the information returned by GetThreadSelectorEntry API function.
4996 (display_selectors): New function. Displays the infomation of
4997 the selector given as argument, or of CS, DS ans FS selectors
4998 if no argument is given.
4999 ( _initialize_inftarg): Add "w32" as info prefix command.
5000 Add "info w32 selector" as command calling display_selectors.
5001
e41e6bbf
PM
50022002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5003
5004 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5005 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5006 if not defined.
5007
0d3a9f48
RE
50082002-02-18 Richard Earnshaw <rearnsha@arm.com>
5009
5010 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5011
3fb4b924
RE
50122002-02-18 Richard Earnshaw <rearnsha@arm.com>
5013
5014 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5015 (arm_fix_call_dummy): Call it.
5016 (arm_call_dummy_breakpoint_offset): Delete.
5017 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5018 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5019
7f55af32
AC
50202002-02-18 Andrew Cagney <ac131313@redhat.com>
5021
5022 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5023 Default to func_frame_chain_valid.
5024 * gdbarch.h, gdbarch.c: Re-generate.
5025 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5026
05f13b9c
EZ
50272002-02-18 Elena Zannoni <ezannoni@redhat.com>
5028
5029 * ppc-linux-nat.c: Update copyright.
5030 (fetch_register, store_register): Add tid parameter, don't compute
5031 tid here.
5032 (fetch_ppc_registers, store_ppc_registers): Add tid
5033 parameter. Pass it along to callees.
5034 (fetch_inferior_registers, store_inferior_registers): Compute tid
5035 here, and pass it to calleed functions.
5036 (fill_gregset, supply_fpregset): Clean up formatting.
5037
d7afb4c9
RE
50382002-02-18 Richard Earnshaw <rearnsha@arm.com>
5039
5040 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5041 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5042
9df628e0
RE
50432002-02-18 Richard Earnshaw <rearnsha@arm.com>
5044
5045 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5046 * gdbarch.c gdbarch.h: Regenerate.
5047 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5048 function.
5049 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5050 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5051 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5052
5053 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5054 * arm-tdep.c (arm_get_longjmp_target): New function.
5055 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5056 this to a positive value register arm_get_longjmp_target as the
5057 longjmp handler.
5058 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5059 (arm_linux_init_abi): Set up longjmp description in tdep.
5060 * armnbsd-nat.c (get_longjmp_target): Delete.
5061 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5062 description in tdep.
5063 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5064 (get_longjmp_target): Delete declaration.
5065 (GET_LONGJMP_TARGET): Delete.
5066 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5067 (GET_LONGJMP_TARGET): Delete.
5068
57bc8964
KB
50692002-02-17 Kevin Buettner <kevinb@redhat.com>
5070
5071 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5072 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5073 of ``current_gdbarch''.
5074
83d31a92
TT
50752002-02-17 Tom Tromey <tromey@redhat.com>
5076
5077 * cli/cli-cmds.c (compare_strings): New function.
5078 (complete_command): Only print each unique item once.
5079 * completer.h (complete_line): Declare.
5080 * completer.c (complete_line): New function.
5081 (line_completion_function): Use it.
5082
17ef5d92
AC
50832002-02-16 Andrew Cagney <ac131313@redhat.com>
5084
5085 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5086 * gdbarch.h, gdbarch.c: Re-generate.
5087
491b8946
DJ
50882002-02-16 Daniel Jacobowitz <drow@mvista.com>
5089
5090 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5091
50922002-02-16 Daniel Jacobowitz <drow@mvista.com>
5093
5094 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5095 * valops.c (value_arg_coerce): Don't take the address of a reference
5096 to convert an argument to a reference.
5097
dfe7f3ac
CF
50982002-02-15 Christopher Faylor <cgf@redhat.com>
5099
5100 * win32-nat.c (get_image_name): New function.
5101 (handle_load_dll): Use get_image_name function.
5102 (get_child_debug_event): Avoid registering debug events until possibly
5103 execed process is started.
5104 (child_create_inferior): Allow invocation via shell so that command
5105 line redirection, etc. works ok.
5106 (_initialize_inftarg): Add new command: "set shell" to control whether
5107 a shell is used to start a process.
5108
1d33e73a
DJ
51092002-02-15 Daniel Jacobowitz <drow@mvista.com>
5110
5111 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5112 instead of find_register_by_number.
5113 (cannot_store_register): Likewise.
5114
48cd0caa
PM
51152002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
5116
aaa38bb5 5117 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
5118 fprintf_unfiltered (gdb_stderr, ...).
5119
8656e7d8
DJ
51202002-02-15 Daniel Jacobowitz <drow@mvista.com>
5121
5122 * gdbserver/gdbserver.1: Document --attach.
5123
66e810cd
RE
51242002-02-15 Richard Earnshaw <rearnsha@arm.com>
5125
5126 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5127 descriptions.
5128 * arm-tdep.c (arm_default_arm_le_breakpoint)
5129 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5130 (arm_default_thumb_be_breakpoint): New. Initialize them from
5131 traditional breakpoint defines.
5132 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5133 (arm_gdbarch_init): Initialize new breakpoint variables.
5134 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5135 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5136 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5137 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5138 code out to ...
5139 (arm_netbsd_init_abi_common): ... here; new function.
5140 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5141 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5142 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5143 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5144
97e03143
RE
51452002-02-15 Richard Earnshaw <rearnsha@arm.com>
5146
5147 * arm-tdep.h (enum arm_abi): New enum.
5148 (struct gdbarch_tdep): New structure.
5149 (LOWEST_PC): Provide a default.
5150 (arm_gdbarch_register_os_abi): Declare new function.
5151 * arm-tdep.c (arm_abi_names): New array.
5152 (process_note_abi_tag_sections): New function.
5153 (get_elfosabi): New function.
5154 (arm_gdbarch_register_os_abi): New function.
5155 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5156 support for that ABI has been built in, then call the appropriate
5157 configuration routine. Use gdbarch_num_regs() to get the number
5158 of registers.
5159 (arm_dump_tdep): New function.
5160 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5161 place-holder functions.
5162 (_initialize_arm_tdep): Register them.
5163 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5164
5165 * armnbsd-tdep.c: New file.
5166 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5167 * config/arm/nbsd.mt (TDEPFILES): Add it.
5168 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5169
5170 * armnbsd-nat.c: Include regcache.h.
5171 * Makefile.in (armnbsd-nat.o): Update dependency list.
5172
5173 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5174
ad68be46
DJ
51752002-02-14 Daniel Jacobowitz <drow@mvista.com>
5176
5177 * gdbserver/Makefile.in: Fix typos in target rules.
5178
003d6d1d
DJ
51792002-02-14 Daniel Jacobowitz <drow@mvista.com>
5180
aaa38bb5 5181 Fix part of PR gdb/267.
003d6d1d
DJ
5182 * linespec.c (find_methods): Handle constructors specially for now.
5183
6b230f1b
CV
51842002-02-14 Corinna Vinschen <vinschen@redhat.com>
5185
5186 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5187 handling.
5188 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5189 standard_coerce_float_to_double().
5190
1ea98d12
CF
51912002-02-14 Christopher Faylor <cgf@redhat.com>
5192
5193 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5194 GDBINIT_FILENAME.
5195
dd47e6fd
EZ
51962002-02-14 Elena Zannoni <ezannoni@redhat.com>
5197
5198 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5199 find_variant_by_name, because it confuses the multiarch
5200 framework. Return NULL if there isn't an architecture with the
5201 user supplied name, instead of forcing a different one without
5202 recording the change with the multiarch machinery.
5203 (find_variant_by_name): Delete.
5204
d7e39b9e
PS
52052002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5206
5207 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5208 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5209
76e42a4f
MH
52102002-02-13 Martin M. Hunt <hunt@redhat.com>
5211
aaa38bb5 5212 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
5213 print_frame_info_listing_hook, set current_source_symtab.
5214
0a30fbc4
DJ
52152002-02-14 Daniel Jacobowitz <drow@mvista.com>
5216
5217 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5218 and remove unused $(INCLUDE_DIR).
5219 Add regcache.c to OBS.
5220 Add generated register protocol files to clean target.
5221 Update dependencies for new objects, obsolete old target code.
5222
5223 * gdbserver/linux-low.c: Remove all platform-specific code to
5224 new files. Remove various dead code. Update to use regcache
5225 functionality.
5226 * gdbserver/remote-utils.c (fromhex): Add return statement
5227 to quiet warning.
5228 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5229 constant.
5230 (input_interrupt): Add integer parameter to match prototype
5231 of a signal handler.
5232 (outreg): Use register_data ().
5233 (prepare_resume_reply): Use gdbserver_expedite_regs.
5234 * gdbserver/server.c (main): Dynamically allocate own_buf because
5235 PBUFSIZ is no longer constant. Use registers_to_string () and
5236 registers_from_string ().
5237 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5238 for error (), fatal (), and warning (). Update definition of
5239 PBUFSIZ to use regcache functionality. Add include guard.
5240 * gdbserver/utils.c (fatal): Add missing ``const''.
5241 (warning): New function.
5242
5243 * regformats/regdat.sh: Include "regcache.h" in generated files.
5244 Provide init_registers () function.
5245 * regformats/regdef.h: Add prototype for set_register_cache ().
5246 Add include guard.
5247
5248 * gdbserver/linux-arm-low.c: New file.
5249 * gdbserver/linux-i386-low.c: New file.
5250 * gdbserver/linux-ia64-low.c: New file.
5251 * gdbserver/linux-m68k-low.c: New file.
5252 * gdbserver/linux-mips-low.c: New file.
5253 * gdbserver/linux-ppc-low.c: New file.
5254 * gdbserver/linux-sh-low.c: New file.
5255
5256 * gdbserver/regcache.c: New file.
5257 * gdbserver/regcache.h: New file.
5258
5259 * gdbserver/low-linux.c: Removed obsolete file.
5260
4cc841d0
DJ
52612002-02-14 Daniel Jacobowitz <drow@mvista.com>
5262
5263 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5264 * config/i386/linux.mt: Likewise.
5265 * config/ia64/linux.mt: Likewise.
5266 * config/m68k/linux.mh: Likewise.
5267 * config/powerpc/linux.mh: Likewise.
5268 * config/mips/linux.mt: Likewise.
5269
5270 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5271
5272 * config/i386/i386lynx.mh: Mark gdbserver variables
5273 as (currently) obsolete for this target.
5274 * config/i386/nbsd.mt: Likewise.
5275 * config/i386/nbsdelf.mt: Likewise.
5276 * config/m32r/m32r.mt: Likewise.
5277 * config/m68k/m68klynx.mh: Likewise.
5278 * config/m68k/nbsd.mt: Likewise.
5279 * config/m68k/sun3os4.mh: Likewise.
5280 * config/mips/vr5000.mt: Likewise.
5281 * config/ns32k/nbsd.mt: Likewise.
5282 * config/pa/hppabsd.mh: Likewise.
5283 * config/pa/hppaosf.mh: Likewise.
5284 * config/powerpc/nbsd.mt: Likewise.
5285 * config/rs6000/rs6000lynx.mh: Likewise.
5286 * config/s390/s390.mt: Likewise.
5287 * config/s390/s390x.mt: Likewise.
5288 * config/sparc/sparclynx.mh: Likewise.
5289 * config/sparc/sun4os4.mh: Likewise.
5290 * config/i386/x86-64linux.mt: Likewise.
5291 * config/sparc/linux.mh: Likewise.
5292
a85f51e7
DJ
52932002-02-14 Daniel Jacobowitz <drow@mvista.com>
5294
5295 * configure.tgt: Configure gdbserver only for known working
5296 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5297 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5298 SUBDIRS if it is configured. Update comment for ${nativefile}.
5299 * configure: Regenerated.
5300
65554fef
MS
53012002-02-13 Michael Snyder <msnyder@redhat.com>
5302
670a52db
MS
5303 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5304
6dbdc4a3
MS
5305 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5306 (default_gcore_mach): Just return 0, work around a problem in bfd.
5307 (default_gcore_target): OK to return NULL if exec_bfd is null.
5308 (make_mem_sec): Use a cast, avoid a warning.
5309
5310 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 5311 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
5312 sizeof (host pointer) != sizeof (target pointer)).
5313 (procfs_make_note_section): Avoid overflow in psargs string.
5314
aaa38bb5 5315 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
5316 implementation return an error.
5317
53182002-02-13 Rodney Brown <rbrown64@csc.com.au>
5319
5320 * procfs.c (procfs_make_note_section): Provide a default definition
5321 (for alpha-dec-osf4.0f). Fix typos.
5322
1e4d76e7
EZ
53232002-02-13 Elena Zannoni <ezannoni@redhat.com>
5324
5325 * linux-proc.c: Add include of regcache.h.
5326 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5327
b6d1a1d5
AC
53282002-02-13 Andrew Cagney <ac131313@redhat.com>
5329
5330 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
5331 * memattr.c (create_mem_region): Disallow useless empty region.
5332 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 5333 non-overlapping.
b6d1a1d5 5334
6c6ea35e
MC
53352002-02-13 Michael Chastain <mec@shout.net>
5336
5337 * defs.h: Kill CONST_PTR.
5338 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5339 * c-lang.c (c_builtin_types): Likewise.
5340 * ch-lang.c (ch_builtin_types): Likewise.
5341 * f-lang.c (f_builtin_types): Likewise.
5342 * language.c (unknown_builtin_types): Likewise.
5343 * m2-lang.c (m2_builtin_types): Likewise.
5344 * p-lang.c (pascal_builtin_types): Likewise.
5345 * scm-lang.c (c_builtin_types): Likewise.
5346
3e0b0f48
KS
53472002-02-13 Keith Seitz <keiths@redhat.com>
5348
5349 * arm-tdep.h (arm_get_next_pc): Add declaration.
5350
67255d04
RE
53512002-02-13 Richard Earnshaw <rearnsha@arm.com>
5352
5353 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5354 with other related struct-returning functions.
5355 (arm_extract_struct_value_address): New function.
5356 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5357 initialize float_format, double_format and long_double_format as
5358 appropriate to the endianness of the target.
5359 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5360 (arm_use_struct_convention): Delete declaration.
5361 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5362
079777f6
KS
53632002-02-13 Keith Seitz <keiths@redhat.com>
5364
5365 * defs.h (core_addr_to_string_nz): New function.
5366
34588f23
MK
53672002-02-13 Mark Kettenis <kettenis@gnu.org>
5368
5369 Apply missing bits of 2002-01-15 patch.
5370 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5371 (fill_fpregset): Use i387_fill_fsave.
5372
49b563f9
KS
53732002-02-12 Keith Seitz <keiths@redhat.com>
5374
49b563f9
KS
5375 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5376 (core_addr_to_string_nz): New function.
5377
aeb98c60
RE
53782002-02-11 Richard Earnshaw <rearnsha@arm.com>
5379
5380 * arm-linux-nat.c: Really include arm-tdep.h.
5381 * config/arm/tm-linux.h (struct type, struct value): Declare.
5382
65554fef
MS
53832002-02-11 Michael Snyder <msnyder@redhat.com>
5384
5385 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5386 (gcore section): Ifdef for Solaris and Unixware only.
5387 (procfs_do_thread_registers): Unixware needs one lwpstatus
5388 per thread (not one prstatus or pstatus).
5389 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5390 not over all gdb threads. For unixware, call elfcore_write_pstatus
5391 once before iterating over threads.
5392
34e8f22d
RE
53932002-02-11 Richard Earnshaw <rearnsha@arm.com>
5394
5395 * arm-tdep.h: New file.
5396 * arm-tdep.c: Include arm-tdep.h.
5397 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5398 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5399 (arm_print_float_info, arm_register_type, convert_to_extended)
5400 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5401 (arm_extract_return_value, arm_register_name): Make static.
5402 (arm_software_single_step): Similarly. Fix types in declaration.
5403 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5404 (arm_store_return_value, arm_store_struct_return): New functions.
5405 (arm_gdbarch_init): Register the above functions. Also register
5406 call_dummy_start_offset, sizeof_call_dummy_words,
5407 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5408 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 5409 max_register_virtual_size, register_size. Set up
34e8f22d
RE
5410 prologue_cache.saved_regs here, rather than ...
5411 (_initialize_arm_tdep): ... here.
5412 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5413 declarations.
5414 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5415 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5416 (arm_print_float_info, arm_register_type, convert_to_extended)
5417 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5418 (arm_extract_return_value, arm_register_name): Delete declarations.
5419 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5420 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5421 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5422 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5423 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5424 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5425 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5426 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5427 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5428 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5429 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5430 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5431 interface.
5432 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5433 * remote-rdi.c remote-rdp.c: Likewise.
5434 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5435 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5436 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5437 definition.
5438
5439 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5440 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5441 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5442 from non-ARM_ prefixed definitions.
5443 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5444 all uses of above.
5445 * remote-rdi.c remote-rdp.c: Likewise.
5446 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5447
148754e5
RE
54482002-02-11 Richard Earnshaw <rearnsha@arm.com>
5449
5450 * arm-tdep.c (arm_frameless_function_invocation)
5451 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5452 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5453 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5454 (arm_pop_frame, arm_get_next_pc): Make static.
5455 (arm_gdbarch_init): Register above in gdbarch structure.
5456 (arm_read_fp): Renamed from arm_target_read_fp.
5457 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5458 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5459 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5460 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5461 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5462 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5463 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
5464 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5465 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5466 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5467 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 5468
434d2d4f
DJ
54692002-02-10 Daniel Jacobowitz <drow@mvista.com>
5470
5471 * symtab.c (compare_search_syms): New function.
5472 (sort_search_symbols): New function.
5473 (search_symbols): Sort symbols after searching rather than
5474 before.
5475
55241689
AC
54762002-02-10 Andrew Cagney <ac131313@redhat.com>
5477
5478 * NEWS: Linux -> GNU/Linux.
5479
028c194b
AC
54802002-02-10 Andrew Cagney <ac131313@redhat.com>
5481
5482 * gdbarch.sh: For for level one methods, disallow a definition
5483 when partially multi-arched. Add comments explaining rationale.
5484 * gdbarch.h: Re-generate.
5485
6acf50cd
AC
54862002-02-10 Andrew Cagney <ac131313@redhat.com>
5487
5488 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5489 multi-arch partial.
aaa38bb5 5490
50248794
AC
54912002-02-10 Andrew Cagney <ac131313@redhat.com>
5492
5493 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5494 field. Use diff -u.
5495 * gdbarch.c: Re-generate.
5496
c30e0066
AC
54972002-02-10 Andrew Cagney <ac131313@redhat.com>
5498
9b56c5f3 5499 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
5500 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5501 partial.
5502
6e6d6484
AC
55032002-02-10 Andrew Cagney <ac131313@redhat.com>
5504
5505 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5506 multi-arch partial.
5507 (PUSH_ARGUMENTS): Switch to using predefault.
5508 * gdbarch.c: Regenerate.
5509
c203844d
AC
55102002-02-10 Andrew Cagney <ac131313@redhat.com>
5511
5512 * valops.c (PUSH_ARGUMENTS): Delete definition.
5513 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5514 partial. Default to default_push_arguments.
5515 * gdbarch.h, gdbarch.c: Regenerate.
5516
b5a2688f
AC
55172002-02-09 Andrew Cagney <ac131313@redhat.com>
5518
5519 * defs.h (throw_exception): Rename return_to_top_level. Update
5520 comments.
5521 * utils.c (error_stream, internal_verror, quit): Ditto.
5522 * top.c (throw_exception, catcher): Ditto.
5523 * sparclet-rom.c (sparclet_load): Ditto.
5524 * remote.c (interrupt_query, minitelnet): Ditto.
5525 * remote-sds.c (interrupt_query): Ditto.
5526 * remote-mips.c (mips_error, mips_kill): Ditto.
5527 * ocd.c (interrupt_query): Ditto.
5528 * monitor.c (monitor_interrupt_query): Ditto.
5529 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5530 * target.h: Update comment.
aaa38bb5 5531
b5a2688f 5532 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 5533
2fa5c1e0
AC
55342002-02-09 Andrew Cagney <ac131313@redhat.com>
5535
5536 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5537 default_double_format.
5538 * gdbarch.h, gdbarch.c: Re-generate.
5539 * findvar.c (floatformat_unknown): Delete variable definition.
5540 * doublest.h (floatformat_unknown): Delete variable declaration.
5541
da966255
JB
55422002-02-09 Jim Blandy <jimb@redhat.com>
5543
5544 * stabsread.c (read_type): Add code to parse Sun's syntax for
5545 prototyped function types.
5546
123a4891
AC
55472002-02-09 Andrew Cagney <ac131313@redhat.com>
5548
5549 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5550 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5551
fb39c8f3
PS
55522002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5553
5554 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5555 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5556 now _initialize_xcoffsolib gets called again and overrides the
5557 commands from solib.c in a native configuration.
5558
0b87a11d
MK
55592002-02-09 Mark Kettenis <kettenis@gnu.org>
5560
5561 * doublest.c (store_typed_floating): Don't try to return a value.
5562 Fixes PR gdb/290.
5563
bdc2fc72
JB
55642002-02-08 Jim Blandy <jimb@redhat.com>
5565
5566 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5567 is prototyped and has no arguments, print its argument list as
5568 `(void)'.
5569
da69bbcf
CD
55702002-02-08 Chris Demetriou <cgd@broadcom.com>
5571
5572 * MAINTAINERS (write-after-approval): Add myself.
5573 (paper-trail): I've escaped!
aaa38bb5 5574
b69571f5
CF
55752002-02-08 Christopher Faylor <cgf@redhat.com>
5576
5577 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5578 changes.
5579 (_initialize_check_for_gdb_ini): Ditto.
5580
f6871398
MH
55812002-02-08 Martin M. Hunt <hunt@redhat.com>
5582
5583 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5584 xaprintf -> xasprintf.
5585
4e52d31c
PM
55862002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5587
5588 * win32-nat.c: Remove use of printf and sprintf functions.
5589
39bbf761
RE
55902002-02-08 Richard Earnshaw <rearnsha@arm.com>
5591
5592 * arm-tdep.c (arm_frame_chain_valid): Make static.
5593 (arm_push_arguments): Likewise.
5594 (arm_gdbarch_init): New function.
5595 (_initialize_arm_tdep): Call it.
5596 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5597 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5598 (FRAME_CHAIN_VALID): Delete.
5599 (arm_frame_chain_valid): Delete declaration.
5600 (PUSH_ARGUMENTS): Delete.
5601 (arm_push_arguments): Delete declaration.
5602 (CALL_DUMMY_P): Delete.
5603
9c9532c9
CV
56042002-02-08 Andrew Cagney <ac131313@redhat.com>
5605 Corinna Vinschen <vinschen@redhat.com>
5606
5607 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5608 on builtin float types.
5609
4e8f7a8b
DJ
56102002-02-08 Daniel Jacobowitz <drow@mvista.com>
5611
5612 * utils.c: Include <curses.h> before "bfd.h".
5613 * tui/tui-hooks.c: Likewise.
5614 * tui/tui.c: Likewise.
5615 * tui/tuiCommand.c: Likewise.
5616 * tui/tuiData.c: Likewise.
5617 * tui/tuiDataWin.c: Likewise.
5618 * tui/tuiDisassem.c: Likewise.
5619 * tui/tuiGeneralWin.c: Likewise.
5620 * tui/tuiIO.c: Likewise.
5621 * tui/tuiLayout.c: Likewise.
5622 * tui/tuiRegs.c: Likewise.
5623 * tui/tuiSource.c: Likewise.
5624 * tui/tuiSourceWin.c: Likewise.
5625 * tui/tuiStack.c: Likewise.
5626 * tui/tuiWin.c: Likewise.
5627
cd4bffcf
EZ
56282002-02-07 Elena Zannoni <ezannoni@redhat.com>
5629
5630 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5631 to include space for pseudoregs as well. Update loops accordingly.
5632 (sh_fp_frame_init_saved_regs): Ditto.
5633 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5634
26806ce2
AC
56352002-02-07 Andrew Cagney <ac131313@redhat.com>
5636
5637 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5638 Add Richard Earnshaw to Arm maintainers.
5639
97fdab62
AC
56402002-02-07 Andrew Cagney <ac131313@redhat.com>
5641
a6b98203
AC
5642 * defs.h (warning_begin): Delete declaration.
5643
97fdab62
AC
5644 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5645 Delete macro.
5646
78b29b40
MS
56472002-02-07 Michael Snyder <msnyder@redhat.com>
5648
aaa38bb5 5649 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
5650 Logic bug, remove misplaced else.
5651
d8849953
KD
56522002-02-07 Klee Dienes <klee@apple.com>
5653
5654 * fork-inferior.c (fork_inferior): Add '!' to the list of
5655 characters that need to be quoted when building a string for the
5656 shell. Quote '!' specifically with a backslash, since CSH chokes
5657 when trying to evaluate "str!str".
aaa38bb5 5658
095778a0
NC
56592002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5660
5661 * rdi-share/host.h: Only provide a typedef for bool if it is not
5662 defined.
5663
1900040c
MS
56642002-02-04 Michael Snyder <msnyder@redhat.com>
5665
5666 * breakpoint.h (enum bptype): Add new overlay event bp type.
5667 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 5668
1900040c
MS
5669 * breakpoint.c (create_internal_breakpoint): New function.
5670 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5671 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5672 (create_thread_event_breakpoint): Ditto.
5673 (create_solib_event_breakpoint): Ditto.
5674 (create_overlay_event_breakpoint): New function.
5675 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5676 (update_breakpoints_after_exec): Delete and re-initialize
5677 overlay event breakpoints after an exec. Add FIXME comment
5678 about longjmp breakpoint.
5679 (print_it_typical): Ignore overlay event breakpoints.
5680 (print_one_breakpoint): Ditto.
5681 (mention): Ditto.
5682 (bpstat_what): Do not stop for overlay event breakpoints.
5683 (delete_breakpoint): Don't delete overlay event breakpoints.
5684 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5685 (breakpoint_re_set): Re-create overlay event breakpoint.
5686
5687 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5688 (overlay_manual_command): Disable overlay breakpoints.
5689 (overlay_off_command): Disable overlay breakpoints.
5690
082fc60d
RE
56912002-02-06 Richard Earnshaw <rearnsha@arm.com>
5692
5693 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5694 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5695 to here from config/tm-arm.h.
5696 (coff_sym_is_thumb): Make static.
5697 (arm_elf_make_msymbol_special): New function.
5698 (arm_coff_make_msymbol_special): New function.
5699 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5700 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5701 (coff_sym_is_thumb): Delete declaration.
5702 (arm_elf_make_msymbol_special): Declare.
5703 (arm_coff_make_msymbol_special): Declare.
5704 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5705 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5706
039c5766
RE
57072002-02-06 Richard Earnshaw <rearnsha@arm.com>
5708
5709 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5710
57112002-02-06 Richard Earnshaw <rearnsha@arm.com>
5712
5713 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5714 * gdbarch.c gdbarch.h: Regenerate.
5715 * arch-utils.c (default_print_float_info): New function.
5716 * arch-utils.h (default_print_float_info): Prototype it.
5717 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5718 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5719 (PRINT_FLOAT_INFO): Document it.
5720
5721 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5722 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5723 (PRINT_FLOAT_INFO): Define.
5724
58fa08f0
PM
57252002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5726
aaa38bb5 5727 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
5728 Add typecast to sprintf argument to suppress a warning.
5729
7393af7c
PM
57302002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5731
58fa08f0 5732 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
5733 to allow easier handling of pass state.
5734 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5735 that gives exception name and address.
5736 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 5737 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 5738 exceptions added.
aaa38bb5
AJ
5739 (child_continue): Correctly report continue_status.
5740 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 5741 TARGET_SIGNAL_0 (new default value).
aaa38bb5 5742 (child_resume): consider sig argument passed to decide if
7393af7c
PM
5743 the exception should be passed to debuggee or not.
5744
6af4589c
MS
57452002-02-05 Michael Snyder <msnyder@redhat.com>
5746
5747 * regcache.c (fetch_register): Call target_fetch_register
5748 only if we don't call FETCH_PSEUDO_REGISTER.
5749 (store_register): Call target_store_register only if we
5750 don't call STORE_PSEUDO_REGISTER.
5751
a2cf933a
EZ
57522002-02-05 Elena Zannoni <ezannoni@redhat.com>
5753
5754 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5755 ELF_MAKE_MSYMBOL_SPECIAL.
5756 * gdbarch.c, gdbarch.h: Regenerate.
5757 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 5758 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
5759 * elfread.c (elf_symtab_read): Compile use of
5760 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5761 multiarched.
5762 * coffread.c (coff_symtab_read): Ditto, for
5763 COFF_MAKE_MSYMBOL_SPECIAL.
5764
6bb7be43
JB
57652002-02-05 Jim Blandy <jimb@redhat.com>
5766
5767 * solib-svr4.c (svr4_truncate_ptr): New function.
5768 (svr4_relocate_section_addresses): Do the address arithmetic with
5769 the appropriate truncation for target addresses, even when
5770 CORE_ADDR is larger than a target address.
5771
e18651ec
DJ
57722002-02-05 Daniel Jacobowitz <drow@mvista.com>
5773
5774 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5775 to (int *).
5776
6b2725be
DJ
57772002-02-05 Daniel Jacobowitz <drow@mvista.com>
5778
5779 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5780 code.
5781
fca9e603
DJ
57822002-02-05 Daniel Jacobowitz <drow@mvista.com>
5783
5784 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5785
6c537a52
DJ
57862002-02-05 Daniel Jacobowitz <drow@mvista.com>
5787
5788 * gdbserver/linux-low.c: Remove unused include files.
5789
d844cde6
DJ
57902002-02-05 Daniel Jacobowitz <drow@mvista.com>
5791
5792 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5793 (read_inferior_memory): Use it.
5794 (write_inferior_memory): Likewise.
5795
d07c63e7
DJ
57962002-02-05 Daniel Jacobowitz <drow@mvista.com>
5797
5798 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5799 grubbing through sys_errlist.
5800
da6d8c04
DJ
58012002-02-05 Daniel Jacobowitz <drow@mvista.com>
5802
5803 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5804
5b421780
PM
58052002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5806 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5807
9f60d481
AC
58082002-02-04 Andrew Cagney <ac131313@redhat.com>
5809
5810 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5811 (do_sfunc, set_cmd_sfunc): New functions.
5812
5813 * command.h (struct cmd_list_element): Add field func.
5814 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5815 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5816 * cli/cli-decode.h: Ditto.
5817
5818 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5819 (help_all, help_cmd_list): Ditto.
5820 (find_cmd, complete_on_cmdlist): Ditto.
5821 * top.c (execute_command): Ditto.
5822
5823 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5824 function.sfunc.
5825
5826 * infcmd.c (notice_args_read): Fix function signature.
5827
5828 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5829 * cli/cli-decode.c (add_set_cmd): Ditto.
5830 * utils.c (initialize_utils): Ditto.
5831 * maint.c (_initialize_maint_cmds): Ditto.
5832 * infrun.c (_initialize_infrun): Ditto.
5833 * demangle.c (_initialize_demangler): Ditto.
5834 * remote.c (add_packet_config_cmd): Ditto.
5835 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5836 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5837 * proc-api.c (_initialize_proc_api): Ditto.
5838 * kod.c (_initialize_kod): Ditto.
5839 * valprint.c (_initialize_valprint): Ditto.
5840 * top.c (init_main): Ditto.
5841 * infcmd.c (_initialize_infcmd): Ditto.
5842 * corefile.c (_initialize_core): Ditto.
5843 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5844 * arch-utils.c (initialize_current_architecture): Ditto.
5845 (_initialize_gdbarch_utils): Ditto.
5846 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5847
5848 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5849 * wince.c (_initialize_inftarg): Ditto.
5850 * symfile.c (_initialize_symfile): Ditto.
5851 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5852 * language.c (_initialize_language): Ditto.
5853 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5854
f9ba0717
MS
58552002-02-04 Michael Snyder <msnyder@redhat.com>
5856
5857 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5858
0c74b2a7
DJ
58592002-02-04 Daniel Jacobowitz <drow@mvista.com>
5860
5861 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5862 Add rules for building the register data files.
5863
c638789f
DJ
58642002-02-04 Daniel Jacobowitz <drow@mvista.com>
5865
5866 * regformats/regdat.sh: Add braces to the definition of
5867 expedite_regs_${arch}.
5868
db253027
DJ
58692002-02-04 Daniel Jacobowitz <drow@mvista.com>
5870
5871 * regformats/regdef.h (struct reg): Add comment describing the
5872 requirements for offset and size fields.
5873
206be19c
AS
58742002-02-04 Andreas Schwab <schwab@suse.de>
5875
5876 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5877 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5878
181c1381
RE
58792002-02-04 Richard Earnshaw <rearnsha@arm.com>
5880
5881 * gdbarch.sh (copyright): Update years in generated header.
5882 (SMASH_TEXT_ADDRESS): Add rule.
db253027 5883 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
5884 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5885 * dbxread.c: Likewise.
5886 * dwarfread.c: Likewise.
5887 * elfread.c: Likewise.
5888 * somread.c: Likewise.
5889
5890 * arm-tdep.c (arm_smash_text_address): New function.
5891 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5892
fa4ba8da
PM
58932002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5894
5895 Add support for hardware watchpoints on win32 native.
aaa38bb5 5896 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 5897 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 5898 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
5899 of debug registers.
5900 (debug_registers_changed): New variable. Reflects when debug registers
5901 are changed and need to be written to inferior.
aaa38bb5 5902 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
5903 was set, used when new threads are created.
5904 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5905 i386-nat code.
5906 (thread_rec): Set dr array if id is the thread of current_event .
5907 (child_continue, child_resume): Change the debug registers for all
5908 threads if debug_registers_changed.
5909 (child_add_thread): Change the debug registers if debug_registers_used.
5910 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5911 Link nm.h to new nm-cygwin.h file.
5912 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5913 of hardware registers.
5914
a73c86fb
AC
59152002-02-03 Andrew Cagney <ac131313@redhat.com>
5916
5917 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5918 Restore behavour broken by 2002-01-20 Andrew Cagney
5919 <ac131313@redhat.com> IEEE_FLOAT removal.
5920
acf5ed49
DJ
59212002-02-03 Daniel Jacobowitz <drow@mvista.com>
5922
5923 * c-valprint.c (c_val_print): Pass a proper valaddr to
5924 cp_print_class_method.
5925 * valops.c (search_struct_method): If there is only one method
5926 and args is NULL, return that method.
5927
493d28d5
DJ
59282002-02-03 Daniel Jacobowitz <drow@mvista.com>
5929
5930 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5931 accessing tag_name directly.
5932
7495dfdb
DJ
59332002-02-03 Daniel Jacobowitz <drow@mvista.com>
5934
5935 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5936 of accessing tag_name directly.
5937
dd6bda65
DJ
59382002-02-03 Daniel Jacobowitz <drow@mvista.com>
5939
5940 PR gdb/280
5941 * gdbtypes.c (replace_type): New function.
5942 * gdbtypes.h (replace_type): Add prototype.
5943 * stabsread.c (read_type): Use replace_type.
5944
88fe217c
RE
59452002-02-03 Richard Earnshaw <rearnsha@arm.com>
5946
5947 * Makefile.in (memattr.o): Add missing dependencies rule.
5948
e5d66720
PS
59492002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5950
5951 * breakpoint.c (break_at_finish_command): Really export.
5952 (break_at_finish_at_depth_command): Ditto.
5953 (tbreak_at_finish_command): Ditto.
5954 * hppa-tdep.c: Include completer.h.
5955 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5956 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5957
fffee0be
AC
59582002-02-01 Andrew Cagney <ac131313@redhat.com>
5959
5960 * utils.c (do_write): New function.
5961 (error_stream): Rewrite combining the code from error_begin and
5962 verror.
5963 (verror): Rewrite using error_stream.
5964 (error_begin): Delete function.
5965
255e7dbf
AC
59662002-02-01 Andrew Cagney <ac131313@redhat.com>
5967
5968 * utils.c (error_begin): Make static.
5969 * defs.h (error_begin): Delete declaration.
5970
5971 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5972 (decode_line_1): Use cplusplus_error instead of error_begin,
5973 cplusplus_hint and return_to_top_level.
5974 * coffread.c (coff_symfile_read): Use error instead of error_begin
5975 and return_to_top_level.
5976 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5977
ddfe3c15
AC
59782002-02-01 Andrew Cagney <ac131313@redhat.com>
5979
5980 * language.h (type_error, range_error): Make string parameter
5981 constant.
5982 * language.c (warning_pre_print): Delete extern declaration.
5983 * dwarfread.c (warning_pre_print): Ditto.
5984 * language.c (type_error, range_error): Rewrite to use verror and
5985 vwarning instead of warning_begin.
5986
03ac34d5
MS
59872002-02-01 Michael Snyder <msnyder@redhat.com>
5988
261c4ca2
MS
5989 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5990 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 5991
e00d1dc8
AC
59922002-02-01 Andrew Cagney <ac131313@redhat.com>
5993
5994 * command.h (NO_FUNCTION): Delete macro.
5995 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5996 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5997 * tracepoint.c (_initialize_tracepoint): Ditto.
5998 * cli/cli-decode.c (add_set_cmd): Ditto.
5999 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 6000
76b79d6e
DJ
60012002-02-01 Daniel Jacobowitz <drow@mvista.com>
6002
6003 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6004 Update ``this'' pointer when calling virtual functions.
6005
799f9e91
MS
60062002-02-01 Michael Snyder <msnyder@redhat.com>
6007
c7bd442c 6008 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
6009 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6010
3cf384d4
DJ
60112002-02-01 Daniel Jacobowitz <drow@mvista.com>
6012
6013 * regformats/reg-arm.dat: New file.
6014 * regformats/reg-i386.dat: New file.
6015 * regformats/reg-ia64.dat: New file.
6016 * regformats/reg-m68k.dat: New file.
6017 * regformats/reg-mips.dat: New file.
6018 * regformats/reg-ppc.dat: New file.
6019 * regformats/reg-sh.dat: New file.
6020 * regformats/regdef.h: New file.
6021 * regformats/regdat.sh: New file.
6022
0defa245
RE
60232002-02-01 Richard Earnshaw <reanrsha@arm.com>
6024
6025 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6026 (arm_frame_args_address, arm_frame_locals_address): New functions.
6027 (arm_frame_num_args): New function.
6028 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6029 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6030 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6031
405f26e6
MS
60322002-01-31 Michael Snyder <msnyder@redhat.com>
6033
502fd408
MS
6034 * breakpoint.c (break_at_finish_command): Export.
6035 (break_at_finish_at_depth_command): Export.
6036 (tbreak_at_finish_command): Export.
6037 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6038 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6039 "tbreak" commands, which are HPPA specific.
6040
7d35e135
MS
6041 * printcmd.c (disassemble_command): Remove an ancient
6042 artifact of an old merge.
6043
aaa38bb5 6044 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
6045 Define enum constant values for overlay mode.
6046 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
6047 (overlay_is_mapped, overlay_auto_command,
6048 overlay_manual_command): Ditto.
d874f1e2 6049
aaa38bb5
AJ
6050 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6051 breakpoint_here_p, breakpoint_inserted_here_p,
6052 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
6053 describe_other_breakpoints, check_duplicates, clear_command):
6054 Coding standard fixes.
6055
8add0441 6056 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 6057 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
6058 code: check bfd SEC_READONLY flag for section.
6059
e351066e
AC
60602002-01-31 Andrew Cagney <ac131313@redhat.com>
6061
7d35e135 6062 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 6063
8a48e967
DJ
60642002-01-30 Daniel Jacobowitz <drow@mvista.com>
6065
6066 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6067 data symbols, since we search based on textlow and texthigh.
6068 (find_pc_sect_symtab): Likewise.
6069
f5a96129
AC
60702002-01-30 Andrew Cagney <ac131313@redhat.com>
6071
6072 * defs.h (vwarning): Declare.
f5a96129
AC
6073 * utils.c (vwarning): New function.
6074 (warning): Call vwarning.
6075 (warning_begin): Delete function.
6076
6077 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6078 the warning message.
6079 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6080 warning_begin.
6081
cefd4ef5
MS
60822002-01-30 Michael Snyder <msnyder@redhat.com>
6083
1a703748
MS
6084 * NEWS: Mention "set trust-readonly-sections" command.
6085 Mention generate-core-file command.
cefd4ef5 6086
3a11626d
MS
60872002-01-15 Michael Snyder <msnyder@redhat.com>
6088
6089 * target.c: New command, "set trust-readonly-sections on".
6090 (do_xfer_memory): Honor the suggestion to trust readonly sections
6091 by reading them from the object file instead of from the target.
6092 (initialize_targets): Register command "set trust-readonly-sections".
6093
d1c7e53b
AC
60942002-01-29 Andrew Cagney <ac131313@redhat.com>
6095
6096 * parse.c (target_map_name_to_register): Simplify, search regs and
6097 pseudo-regs using a single loop.
6098
e2c9a72c
AC
60992002-01-30 Andrew Cagney <ac131313@redhat.com>
6100
6101 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6102
69824b4e
MK
61032002-01-15 Rodney Brown <rbrown64@csc.com.au>
6104
6105 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6106 * config/i386/i386v42mp.mh: Add i387-nat.o .
6107 * i386v4-nat.c: Include i387-nat.h.
6108 (supply_fpregset): Use i387_supply_fsave.
6109 (fill_fpregset): Use i387_fill_fsave.
6110
6eb69eab
RE
61112002-01-30 Richard Earnshaw <rearnsha@arm.com>
6112
6113 * arm-tdep.c (arm_call_dummy_words): Define.
6114 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6115 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6116 (CALL_DUMMY_WORDS): Define.
6117 (arm_call_dummy_words): Declare.
6118 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6119 (arm_linux_call_dummy_words): Declare.
6120
9852326a
AS
61212002-01-30 Andreas Schwab <schwab@suse.de>
6122
6123 * m68klinux-nat.c: Fix last change to use regcache_collect
6124 instead of referencing registers[] directly.
6125
977a3030
AC
61262002-01-29 Andrew Cagney <ac131313@redhat.com>
6127
6128 * parse.c (target_map_name_to_register): Delete code wrapped in
6129 #ifdef REGISTER_NAME_ALIAS_HOOK.
6130
2076c72b
MS
61312002-01-28 Michael Snyder <msnyder@redhat.com>
6132
6133 * regcache.c (legacy_read_register_gen): Need to be able to
6134 read pseudo-register as well as real register.
6135 (legacy_write_register_gen): Ditto.
6136
8fcc723b
AC
61372002-01-28 Andrew Cagney <ac131313@redhat.com>
6138
6139 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6140 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6141 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6142 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6143 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6144 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6145 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6146 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6147 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6148 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6149 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6150 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6151 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6152 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6153 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6154 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6155 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6156 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6157 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6158 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6159
afe64c1a
AC
61602002-01-28 Andrew Cagney <ac131313@redhat.com>
6161
6162 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6163 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6164 (initialize_current_architecture): Update target_byte_order using
6165 information from BFD.
aaa38bb5 6166 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
6167 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6168
75bc7ddf
AC
61692002-01-28 Andrew Cagney <ac131313@redhat.com>
6170
6171 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6172 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6173
6174 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6175 #ifdef INVALID_FLOAT.
6176 * infcmd.c (do_registers_info): Ditto.
6177 * values.c (unpack_double): Ditto. Add comment.
6178
6179 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6180 already commented out.
6181
0280a90a
AS
61822002-01-26 Andreas Schwab <schwab@suse.de>
6183
6184 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6185 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6186 registers and add support for PTRACE_GETREGS.
6187
7072a954
AC
61882002-01-24 Andrew Cagney <ac131313@redhat.com>
6189
6190 GDB 5.1.1 released from 5.1 branch.
6191 * NEWS: Add 5.1.1 news.
6192 * README: Sync with 5.1 branch.
6193
86f902e0
FF
61942002-01-23 Fred Fish <fnf@redhat.com>
6195
6196 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6197 stabstring on initial malloc. Reallocing will copy it for us,
6198 if necessary.
6199
8af51c36
EZ
62002002-01-23 Elena Zannoni <ezannoni@redhat.com>
6201
aaa38bb5 6202 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
6203 (HFILES_NO_SRCDIR): Remove hpread.h.
6204 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6205 (hpread.o): Update dependencies.
6206 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6207
6208 * hp-psymtab-read.c: Remove file.
6209 * hp-symtab-read.c: Remove file.
6210 * hpread.h: Remove file.
6211
6212 * hpread.c: Merge all contents of hp-psymtab-read.c,
6213 hp-symtab-read.c and hpread.h into this file, as it was prior to
6214 January 1999.
6215
6216 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 6217 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
6218 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6219 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6220
dc5cfeb6
EZ
62212002-01-23 Elena Zannoni <ezannoni@redhat.com>
6222
6223 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6224 fill_gregset): Call gdbarch_tdep() just once, assign result to
6225 variable and use that, instead of calling the function several
6226 times.
6227
ea87b71b
AO
62282002-01-24 Alexandre Oliva <aoliva@redhat.com>
6229
6230 * configure.host: Accept sparcv9 as alias for sparc64.
6231 * configure.tgt: Likewise.
6232
13fc0c2f
KB
62332002-01-22 Kevin Buettner <kevinb@redhat.com>
6234
6235 * solib-aix5.c (build_so_list_from_mapfile)
6236 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6237 arguments is not reversed.
6238 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6239 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 6240
7bd872fe
EZ
62412002-01-22 Elena Zannoni <ezannoni@redhat.com>
6242
6243 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6244 modified version of obsolete sh_fetch_pseudo_register.
6245 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6246 (sh4_register_read): New function.
6247 (sh_pseudo_register_write): New function. Renamed and modified
6248 version of obsolete sh_store_pseudo_register.
6249 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6250 (sh4_register_write): New function.
6251 (sh_gdbarch_init): Remove setting of gdbarch function
6252 fetch_pseudo_register and store_pseudo_register. Remove setting of
6253 register_convert_to_raw, register_convert_to_virtual,
6254 register_convertible.
6255 (sh_sh4_register_convertible): Delete. No longer needed. All is
6256 taken care by architecture specific functions
6257 register_read/register_write.
6258 (sh_sh4_register_convert_to_virtual): Make static.
6259 (sh_sh4_register_convert_to_raw): Ditto.
6260
069e84fd
AC
62612002-01-22 Andrew Cagney <ac131313@redhat.com>
6262
6263 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6264 (floatformat_is_nan, floatformat_mantissa): Ditto.
6265
6266 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6267 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6268 builtin_type_ieee_double_little,
6269 builtin_type_ieee_double_littlebyte_bigword,
6270 builtin_type_m68881_ext, builtin_type_i960_ext,
6271 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6272 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6273 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6274 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6275
211a4f69
CV
62762002-01-22 Corinna Vinschen <vinschen@redhat.com>
6277
6278 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6279 parameter. Set frameless flag if it exists and depended of
6280 whether the scanned function is frameless or not.
6281 (xstormy16_skip_prologue): If function is frameless, return
6282 result of xstormy16_scan_prologue().
6283 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6284 call.
6285
f81353e4
EZ
62862002-01-21 Elena Zannoni <ezannoni@redhat.com>
6287
6288 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6289 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6290 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6291 sh_sh4_register_byte, sh_sh4_register_raw_size,
6292 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6293 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6294 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6295 sh_store_pseudo_register, sh_do_pseudo_register): Call
6296 gdbarch_tdep() just once, assign result to variable and use that,
6297 instead of calling the function several times.
6298
63c73a17
MK
62992002-01-20 Mark Kettenis <kettenis@gnu.org>
6300
6301 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6302 macros instead of LAST_FPU_CTRL_REGNUM.
6303 (store_register): Likewise.
6304
39ad761d
JB
63052002-01-21 Jim Blandy <jimb@redhat.com>
6306
6307 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6308 is up-to-date before running the program, not just when a program
6309 exits.
6310
3d74b771
FF
63112002-01-21 Fred Fish <fnf@redhat.com>
6312
6313 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6314 when we have found all instructions we are looking for.
6315
966fbf70
RE
63162002-01-21 Richard Earnshaw <rearnsha@arm.com>
6317
6318 * arm-tdep.c (arm_register_name): New function.
6319 (arm_registers_names): Make static.
6320 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6321 (arm_register_name): Declare.
6322 (REGISTER_NAME): Use it.
6323
c3b4394c
RE
63242002-01-21 Richard Earnshaw <rearnsha@arm.com>
6325 Kevin Buettner <kevinb@redhat.com>
6326
6327 Convert arm targets to new FRAME interface.
6328 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6329 (arm_frame_find_save_regs): Delete.
6330 (arm_frame_init_saved_regs): New.
6331 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6332 Allocate extra_info as required. Convert all uses of fsr.regs
6333 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6334 to use extra_info.
6335 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6336 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6337 (check_prologue_cache, save_prologue_cache): Likewise.
6338 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6339 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6340 (FRAME_FIND_SAVED_REGS): Delete.
6341 (arm_frame_find_saved_regs): Delete prototype.
6342 (arm_frame_init_saved_regs): New prototype.
6343 (FRAME_INIT_SAVED_REGS): Define.
6344
61d99182
AC
63452002-01-20 Andrew Cagney <ac131313@redhat.com>
6346
6347 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6348
6aaea291
AC
63492002-01-20 Andrew Cagney <ac131313@redhat.com>
6350
6351 From Jeff Law <law@redhat.com>:
6352 * infttrace.c: Include <sys/pstat.h>.
6353 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6354 exec file if the ttrace equivalent fails.
6355
15f698d2
AC
63562002-01-20 Andrew Cagney <ac131313@redhat.com>
6357
6358 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6359 (closeLogFile): Ditto.
6360
f86ddd7c
MC
63612002-01-20 Michael Chastain <mec@shout.net>
6362
6363 * top.c (print_gdb_version): Bump copyright year to 2002.
6364
904507ce
AC
63652002-01-20 Andrew Cagney <ac131313@redhat.com>
6366
6367 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6368 Zannoni and Eli Zaretskii.
6369
d7f0b9ce
DJ
63702002-01-20 Daniel Jacobowitz <drow@mvista.com>
6371
6372 * buildsym.c: Update copyright years.
6373 * c-typeprint.c: Likewise.
6374 * dwarf2read.c: Likewise.
6375 * f-typeprint.c: Likewise.
6376 * gdbtypes.c: Likewise.
6377 * gdbtypes.h: Likewise.
6378 * hp-symtab-read.c: Likewise.
6379 * hpread.c: Likewise.
6380 * mdebugread.c: Likewise.
6381 * p-typeprint.c: Likewise.
6382
3fd3d7d2
AC
63832002-01-20 Andrew Cagney <ac131313@redhat.com>
6384
6385 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6386 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6387 byte-order selectable.
6388 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6389 * arch-utils.c: Ditto.
6390 (set_endian): Ditto.
6391 (set_endian_from_file): Ditto.
6392 * gdbserver/low-sim.c (create_inferior): Ditto.
6393 * gdbarch.sh: Ditto.
6394 * gdbarch.h: Re-generate.
aaa38bb5
AJ
6395 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6396 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6397 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6398 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6399 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6400 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6401 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
6402 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6403 macro definition.
6404 * config/mips/tm-wince.h: Remove #undef of macro
6405 TARGET_BYTE_ORDER_SELECTABLE.
6406 * config/sh/tm-wince.h: Ditto.
6407
b02dede2
DJ
64082002-01-20 Daniel Jacobowitz <drow@mvista.com>
6409
6410 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6411 member function fields. Add accessor macro
6412 TYPE_FN_FIELD_ARTIFICIAL.
6413 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6414 * c-typeprint.c (c_type_print_base): Skip artificial member
6415 functions.
6416
c3643761
DJ
64172002-01-20 Daniel Jacobowitz <drow@mvista.com>
6418
6419 * f-typeprint.c: Delete unused function f_type_print_args.
6420 * p-typeprint.c: Delete unused function pascal_type_print_args.
6421
8176bb6d
DJ
64222002-01-20 Daniel Jacobowitz <drow@mvista.com>
6423
6424 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6425 comment. Add ``artificial'' to ``union field_location''.
6426
6427 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6428
6429 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6430 * mdebugread.c (parse_symbol): Likewise.
6431 * stabsread.c (define_symbol): Likewise.
6432 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6433 initializing TYPE_FIELD_BITPOS to n (obsolete).
6434 (hpread_doc_function_type): Likewise.
6435 * hpread.c (hpread_function_type): Likewise.
6436
7fd60527
AC
64372002-01-20 Andrew Cagney <ac131313@redhat.com>
6438
6439 * configure.in (host_makefile_frag): Only require a host makefile
6440 fragment when a native build.
6441 * configure: Re-generate.
6442
c2f05ac9
AC
64432002-01-20 Andrew Cagney <ac131313@redhat.com>
6444
6445 * doublest.h (floatformat_from_type): Declare.
6446 * doublest.c (floatformat_from_type): New function.
6447 (convert_typed_floating): Use.
6448
6449 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6450 call to function floatformat_from_type.
6451
6452 * gdbarch.sh (IEEE_FLOAT): Delete.
6453 * gdbarch.h, gdbarch.c: Re-generate.
6454 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6455 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6456 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6457 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6458 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6459 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6460 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6461 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6462 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6463 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6464 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
6465 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6466
6467 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6468 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6469 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6470 * sh-tdep.c (sh_gdbarch_init): Ditto.
6471 * mips-tdep.c (mips_gdbarch_init): Ditto.
6472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6473 * cris-tdep.c (cris_gdbarch_init): Ditto.
6474
abf22e64
AJ
64752002-01-20 Jiri Smid <smid@suse.cz>
6476
6477 * configure.host, configure.tgt: Support x86-64.
6478 * NEWS: Note new target x86-64.
6479
b7c4cbf8
AJ
6480 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6481 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6482 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6483 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6484 x86-64-linux-nat.o): Fix dependencies.
6485
82600034
AC
64862002-01-19 Andrew Cagney <ac131313@redhat.com>
6487
6488 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6489 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6490 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6491 * config/sparc/xm-sun4os4.h: Delete file.
6492 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 6493
bbe5c628
AC
64942002-01-19 Andrew Cagney <ac131313@redhat.com>
6495
6496 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6497 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6498 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6499 * config/i386/i386lynx.mh (XM_FILE): Delete.
6500 * config/rs6000/xm-rs6000ly.h: Delete file.
6501 * config/sparc/xm-sparclynx.h: Delete file.
6502 * config/m68k/xm-m68klynx.h: Delete file.
6503 * config/i386/xm-i386lynx.h: Delete file.
6504 * config/xm-lynx.h: Delete file.
6505 * config/djgpp/fnchange.lst: Update.
6506
f8453e34
JT
65072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6508
6509 * alpha-tdep.c (alpha_register_byte): New function.
6510 (alpha_register_raw_size): Ditto.
6511 (alpha_register_virtual_size): Ditto.
6512 (alpha_skip_prologue_internal): Renamed from
6513 alpha_skip_prologue.
6514 (alpha_skip_prologue): New version that calls
6515 alpha_skip_prologue_internal.
6516 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6517 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6518 second argument from alpha_skip_prologue.
6519 (REGISTER_BYTE): Use alpha_register_byte.
6520 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6521 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6522 (FRAMELESS_FUNCTION_INVOCATION): Use
6523 generic_frameless_function_invocation_not.
6524 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6525 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6526
52d9e613
AC
65272002-01-19 Andrew Cagney <ac131313@redhat.com>
6528
6529 * config/mips/xm-news-mips.h: Delete file.
6530 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6531
6532 * config/m88k/xm-m88k.h: Delete file.
6533 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6534 * config/m88k/xm-delta88v4.h: Ditto.
6535 * config/m88k/xm-delta88.h: Ditto.
6536
6537 * config/alpha/xm-fbsd.h: Delete file.
6538 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6539
6540 * config/sparc/xm-sparc.h: Delete file.
6541 * Makefile.in (xm-sun4os4.h): Delete dependency.
6542 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6543 * config/sparc/xm-sun4os4.h: Ditto.
6544 * config/sparc/xm-linux.h: Ditto.
6545
6546 * config/i386/xm-windows.h: Delete file.
6547
2d1b2124
AC
65482002-01-19 Andrew Cagney <ac131313@redhat.com>
6549
6550 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6551 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6552
ee1f65f0
JT
65532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6554
6555 * alpha-tdep.c (alpha_call_dummy_words): New.
6556 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6557 (CALL_DUMMY_P): Define.
6558 (CALL_DUMMY_WORDS): Define.
6559 (SIZEOF_CALL_DUMMY_WORDS): Define.
6560
98081e55
PB
65612002-01-19 Per Bothner <per@bothner.com>
6562
6563 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6564 isn't NULL, which can happen with some gcj-3.x-produced code.
6565
0d056799
JT
65662002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6567
6568 * alpha-tdep.c (alpha_register_virtual_type): New function.
6569 (alpha_init_frame_pc_first): Ditto.
6570 (alpha_fix_call_dummy): Ditto.
6571 (alpha_store_struct_return): Ditto.
6572 (alpha_extract_struct_value_address): Ditto.
6573 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6574 alpha_register_virtual_type.
6575 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6576 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6577 alpha_extract_struct_value_address.
6578 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6579 (INIT_FRAME_PC): Use init_frame_pc_noop.
6580 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6581
4604bcad
MK
65822002-01-19 Mark Kettenis <kettenis@gnu.org>
6583
6584 * i386gnu-nat.c: Include "i386-tdep.h".
6585 (fetch_fpregs): Simplify code dealing with uninitialized floating
6586 point states such that it doesn't require FP7_REGNUM.
6587
140f9984
JT
65882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6589
abf22e64
AJ
6590 * alpha-tdep.c (frame_extra_info): New.
6591 (alpha_find_saved_regs): Make static. Use
140f9984
JT
6592 frame->extra_info.
6593 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
6594 (alpha_frame_saved_pc): Use frame->extra_info.
6595 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6596 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
6597 (init_extra_frame_info): Rename to...
6598 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 6599 (alpha_print_extra_frame_info): New function.
140f9984
JT
6600 (alpha_frame_locals_address): Ditto.
6601 (alpha_frame_args_address): Ditto.
abf22e64 6602 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
6603 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6604 alpha_frame_args_address.
abf22e64 6605 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 6606 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
6607 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6608 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
6609 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6610 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6611
d734c450
JT
66122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6613
6614 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6615 (alpha_cannot_fetch_register): Ditto.
6616 (alpha_cannot_store_register): Ditto.
6617 (alpha_register_convertible): Ditto.
6618 (alpha_use_struct_convention): Ditto.
6619 * config/alpha/tm-alpha.h: Update copyright years.
6620 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6621 (INNER_THAN): Use core_addr_lessthan.
6622 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6623 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6624 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6625 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6626 (FRAME_CHAIN): Remove unnecessary cast.
6627
b4ceaee6
AC
66282002-01-18 Andrew Cagney <ac131313@redhat.com>
6629
6630 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6631 obsolete.
6632
0a65a603
AC
66332002-01-18 Andrew Cagney <ac131313@redhat.com>
6634
6635 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6636 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6637 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6638 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6639 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6640 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6641 * x86-64-linux-nat.c: Ditto.
6642
636a6dfc
JT
66432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6644
abf22e64 6645 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
6646 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6647 (REGISTER_NAME): Define.
6648
acceddb6
JT
66492002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6650
6651 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6652
ec32e4be
JT
66532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * alpha-tdep.c: Update copyright years.
6656 (alpha_next_pc): New function.
6657 (alpha_software_single_step): Ditto.
6658 * config/alpha/tm-alpha.h: Add prototype for
6659 alpha_software_single_step.
6660
e771a871
JT
66612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6662
6663 * alphabsd-nat.c: Update copyright years.
6664 (fill_gregset): Use regcache_collect.
6665 (fill_fpregset): Likewise.
6666 (fetch_inferior_registers): Only fetch integer registers
6667 if requested to do so.
6668 (store_inferior_registers): Only store integer registers
6669 if requested to do so.
6670
7708fa01
AC
66712002-01-17 Andrew Cagney <ac131313@redhat.com>
6672
6673 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6674 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6675 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6676 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6677 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6678 * config/arm/linux.mh (XDEPFILES): Delete.
6679 * config/arm/nbsd.mh (XDEPFILES): Delete.
6680 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6681 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6682 * config/i386/i386m3.mh (XDEPFILES): Delete.
6683 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6684 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6685 * config/i386/fbsd.mh (XDEPFILES): Delete.
6686 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6687 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6688 * config/i386/i386v4.mh (XDEPFILES): Delete.
6689 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6690 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6691 * config/i386/i386aix.mh (XDEPFILES): Delete.
6692 * config/i386/go32.mh (XDEPFILES): Delete.
6693 * config/i386/cygwin.mh (XDEPFILES): Delete.
6694 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6695 * config/i386/i386mach.mh (XDEPFILES): Delete.
6696 * config/i386/i386v32.mh (XDEPFILES): Delete.
6697 * config/i386/linux.mh (XDEPFILES): Delete.
6698 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6699 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6700 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6701 * config/i386/i386sco.mh (XDEPFILES): Delete.
6702 * config/i386/i386v.mh (XDEPFILES): Delete.
6703 * config/i386/nbsd.mh (XDEPFILES): Delete.
6704 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6705 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6706 * config/i386/symmetry.mh (XDEPFILES): Delete.
6707 * config/i386/obsd.mh (XDEPFILES): Delete.
6708 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6709 * config/ia64/linux.mh (XDEPFILES): Delete.
6710 * config/ia64/aix.mh (XDEPFILES): Delete.
6711 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6712 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6713 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6714 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6715 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6716 * config/m68k/linux.mh (XDEPFILES): Delete.
6717 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6718 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6719 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6720 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6721 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6722 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6723 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6724 * config/m88k/delta88.mh (XDEPFILES): Delete.
6725 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6726 * config/m88k/m88k.mh (XDEPFILES): Delete.
6727 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6728 * config/mips/linux.mh (XDEPFILES): Delete.
6729 * config/mips/irix6.mh (XDEPFILES): Delete.
6730 * config/mips/irix5.mh (XDEPFILES): Delete.
6731 * config/mips/irix4.mh (XDEPFILES): Delete.
6732 * config/mips/irix3.mh (XDEPFILES): Delete.
6733 * config/mips/decstation.mh (XDEPFILES): Delete.
6734 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6735 (NATDEPFILES): Move core-aout.o to here.
6736 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6737 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6738 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6739 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6740 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6741 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6742 * config/pa/hpux11.mh (XDEPFILES): Delete.
6743 * config/powerpc/aix.mh (XDEPFILES): Delete.
6744 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6745 * config/powerpc/linux.mh (XDEPFILES): Delete.
6746 * config/romp/rtbsd.mh: Rename XDEPFILES.
6747 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6748 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6749 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6750 * config/s390/s390.mh (XDEPFILES): Delete.
6751 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6752 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6753 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6754 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6755 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6756 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6757 * config/sparc/linux.mh (XDEPFILES): Delete.
6758 * config/vax/vaxult.mh (XDEPFILES): Delete.
6759 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6760 * Makefile.in (DEPFILES): Remove XDEPFILES.
6761
375fc983
AC
67622002-01-17 Andrew Cagney <ac131313@redhat.com>
6763
6764 * utils.c (internal_verror): Fix comments, default is yes not no.
6765 Update queries to match. Default to quit and dump core.
6766
8926118c
AC
67672002-01-17 Andrew Cagney <ac131313@redhat.com>
6768
6769 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6770 copyright.
6771 * defs.h, event-top.c, gdbcmd.h: Ditto.
6772 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6773 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6774 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6775 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6776 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6777 * mi/mi-main.c:Ditto.
6778
6779 * stack.c, symfile.c: Update copyright.
6780
45b7b345
DJ
67812002-01-17 Daniel Jacobowitz <drow@mvista.com>
6782
db728ff7
DJ
6783 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6784 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6785 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6786 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 6787
db728ff7
DJ
67882002-01-17 Daniel Jacobowitz <drow@mvista.com>
6789
6790 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6791 * gdbserver/low-lynx.c (myattach): Likewise.
6792 * gdbserver/low-nbsd.c (myattach): Likewise.
6793 * gdbserver/low-sim.c (myattach): Likewise.
6794 * gdbserver/low-sparc.c (myattach): Likewise.
6795 * gdbserver/low-sun3.c (myattach): Likewise.
6796
6797 * gdbserver/low-linux.c (myattach): New function.
45b7b345 6798
db728ff7 6799 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
6800 (main): Handle "--attach".
6801
8de3c354
AC
68022002-01-16 Andrew Cagney <ac131313@redhat.com>
6803
6804 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6805 maintainer.
6806
b0129042
DJ
68072002-01-15 Daniel Jacobowitz <drow@mvista.com>
6808
6809 * c-typeprint.c (is_type_conversion_operator): Add additional
6810 check for non-conversion operators.
6811
ba8679fb 68122002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
6813
6814 * linux-proc.c: Add "info proc" command, a la procfs.c.
6815 (read_mapping): New function, abstract and re-use code.
6816 (linux_find_memory_regions): Use new func read_mapping.
6817 (linux_info_proc_cmd): New function, implement "info proc".
6818 (_initialize_linux_proc): Add new command "info proc".
6819
e4f9b4d5
MS
68202002-01-15 Michael Snyder <msnyder@redhat.com>
6821
6822 * symfile.c (generic_load): Use bfd_map_over_sections method
6823 instead of manipulating bfd structure members directly.
6824 (add_section_size_callback): New function, bfd sections callback
6825 used by generic_load.
6826 (load_sections_callback): New function, bfd sections callback
6827 used by generic_load.
6828
08cf96df
EZ
68292002-01-15 Elena Zannoni <ezannoni@redhat.com>
6830
abf22e64 6831 [Based on work by Jim Blandy]
08cf96df
EZ
6832 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6833 (builtin_type_vec128): Export.
6834 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6835 types.
6836 (builtin_type_vec128): New builtin type for 128 bit vector
6837 registers.
6838 (build_gdbtypes): Initialize builtin_type_v16qi and
6839 builtin_type_v8hi. Create the vec128 register builtin type
6840 structure.
6841 (build_builtin_type_vec128): New function.
abf22e64 6842 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
6843 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6844 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6845 AltiVec register to new builtin type.
6846
d7242108
DJ
68472001-01-15 Daniel Jacobowitz <drow@mvista.com>
6848
6849 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6850 to make_cv_type.
6851
4ee3352d
AC
68522002-01-14 Andrew Cagney <ac131313@redhat.com>
6853
6854 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6855 CLEAN_UP_REGISTER_VALUE.
6856 * regcache.c (supply_register): Update only call.
6857
f015b2e7
AC
68582002-01-14 Andrew Cagney <ac131313@redhat.com>
6859
6860 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6861 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6862 a29k-*-vxworks* targets as obsolete.
6863
356ae49d
MS
68642002-01-14 Michael Snyder <msnyder@redhat.com>
6865
6866 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6867 until we can resolve portability issues.
6868 * gregset.h: Remove references to fpxregs.
6869 * gcore.c (gcore_command): Initialize note_sec to NULL.
6870
ade8f45e
AC
68712002-01-13 Andrew Cagney <ac131313@redhat.com>
6872
6873 * signals.c (target_signal_to_name): Rewrite. Only use
6874 signals[].name when in bounds and non-NULL.
abf22e64 6875
89c49e7a
AC
68762002-01-13 Andrew Cagney <ac131313@redhat.com>
6877
6878 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6879 * signals.c (target_signal_to_name): Verify that SIG is within the
6880 bounds of the signals array.
6881
4daa9f9f
AC
68822002-01-13 Andrew Cagney <ac131313@redhat.com>
6883
6884 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6885
ba4bbdcb
KS
68862002-01-13 Keith Seitz <keiths@redhat.com>
6887
6888 * stack.c (print_frame_info_base): Print the frame's pc
6889 only if when print_frame_info_listing_hook is not defined.
6890
575bbeb6
KS
68912002-01-13 Keith Seitz <keiths@redhat.com>
6892
6893 * varobj.c (varobj_set_value): Make sure that there were no
6894 errors evaluating the object before attempting to set its
6895 value.
6896 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6897 so this offset adjustment is no longer necessary.
6898 (create_child): Don't set the error flag if the child is
6899 a CPLUS_FAKE_CHILD.
6900 (value_of_child): If value_fetch_lazy fails, return NULL
6901 so that callers will be notified that an error occurred.
6902 (c_value_of_variable): Delay check of variable's validity
6903 until later. We actually want all structs and unions to have
6904 the value "{...}".
6905 Do not return "???" for variables which could not be evaluated.
6906 This error condition must be returned to the caller so that it
6907 can get the error condition from gdb.
6908 (cplus_name_of_child): Adjust index for vptr before figuring
6909 out the name of the child.
6910 (cplus_value_of_child): If a child's (real) parent is not valid,
6911 don't even bother trying to give a value for it. Just return
6912 an error. Change all instances in this function.
6913 (cplus_type_of_child): If our parent is one of the "fake"
6914 parents, we need to get at the type of the real parent, and
6915 derive the child's true type using this information.
6916
b76898ab
AC
69172002-01-13 Andrew Cagney <ac131313@redhat.com>
6918
6919 From 2002-01-09 John Marshall <johnm@falch.net>:
6920 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6921 sources.redhat.com, and tweak some related URLs which had
6922 suffered from linkrot.
6923
b6649e88
AC
69242002-01-13 Andrew Cagney <ac131313@redhat.com>
6925
6926 From Jeff law:
6927 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6928 structures passed in registers.
6929
82cc5033
EZ
69302002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6931
6932 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6933 white space which prevented compilation. Reported by DSK
6934 <dsk@student.unsw.edu.au>.
6935
ba5f2f8a
MS
69362002-01-11 Michael Snyder <msnyder@redhat.com>
6937
fbd35540
MS
6938 * symfile.c (build_section_addr_info_from_section_tab):
6939 Use bfd access method instead of manipulating bfd directly.
6940 (syms_from_objfile): Ditto.
6941 (simple_overlay_update_1): Ditto.
6942 (simple_overlay_update): Ditto.
6943 (generic_load): Ditto.
6944 (overlay_unmapped_address): FIXME comment, bfd access methods.
6945 (sections_overlap): FIXME comment, bfd access methods.
6946 (pc_in_mapped_range): FIXME comment, bfd access methods.
6947 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6948 (section_is_mapped): FIXME comment, bfd access methods.
6949 (section_is_overlay): FIXME comment, bfd access methods.
6950
ba5f2f8a
MS
6951 * symfile.c (generic_load): Whitespace and long line cleanups.
6952 Remove duplicate variable, change several local variables to
6953 more appropriate data types.
6954 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6955
17df2af6
AC
69562002-01-12 Andrew Cagney <ac131313@redhat.com>
6957
6958 From Peter Schauer:
6959 * language.c (longest_local_hex_string_custom): Use phex_nz to
6960 convert NUM to a hex string.
6961
ec920329
EZ
69622002-01-12 Elena Zannoni <ezannoni@redhat.com>
6963
6964 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6965 the function.
538a76d6 6966 Update Copyright year.
ec920329 6967
3abd2e01
AC
69682002-01-12 Andrew Cagney <ac131313@redhat.com>
6969
6970 * language.c (longest_raw_hex_string): Delete unused function.
6971
b21b22e0
PS
69722002-01-11 Petr Sorfa <petrs@caldera.com>
6973
6974 * MAINTAINERS (write-after-approval): Add myself.
6975 * dwarf2read.c (read_tag_string_type): Handling of
6976 DW_AT_byte_size.
6977 (read_tag_string_type): FORTRAN fix to prevent propagation of
6978 first string size.
6979 (set_cu_language): Handling of DW_LANG_Fortran95
6980
747fe712
RE
69812002-01-11 Richard Earnshaw <rearnsha@arm.com>
6982
6983 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6984 GETPID(inferior_ptid).
6985 (store_inferior_registers): Likewise.
6986
f1bea926
JM
69872002-01-10 Jason Merrill <jason@redhat.com>
6988
6989 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6990 Fix DW_OP_minus.
6991
ae940673
AC
69922002-01-10 Andrew Cagney <ac131313@redhat.com>
6993
6994 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6995 and bfd/elf32-sh-nbsd.c.
6996
00546b04
MS
69972002-01-10 Michael Snyder <msnyder@redhat.com>
6998
352ed7b4
MS
6999 * NEWS: Mention --pid and corefile/proc-id behavior change.
7000
c18be923
MS
7001 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7002 * gcore.c: Include cli/cli-decode.h instead of command.h.
7003
00546b04
MS
7004 * main.c (captured_main): Add new command line option "--pid".
7005 If the second command line argument (following the symbol-file)
7006 begins with a digit, try to attach to it before trying to open
7007 it as a corefile.
7008 (print_gdb_help): Document the "--pid" argument.
7009
db60ec62
EZ
70102002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7011
7012 * completer.c (command_completer): New function.
7013
7014 * completer.h <command_completer>: Add prototype.
7015
7016 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7017 completer for the "help" command.
7018
39c22d1a
JM
70192002-01-09 Jason Merrill <jason@redhat.com>
7020
7021 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7022
c564377f
MS
70232002-01-09 Michael Snyder <msnyder@redhat.com>
7024
975aec09
MS
7025 * i386-linux-nat.c (fill_fpxregset): Make global.
7026 (store_fpxregset): Ditto.
7027
db4a10fa
MS
7028 * gregset.h (gdb_fpxregset_t): Define.
7029 (supply_fpxregset): Prototype.
7030 (fill_fpxregset): Prototype.
7031
c564377f
MS
7032 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7033
c3d45d70
RE
70342002-01-09 Richard Earnshaw <rearnsha@arm.com>
7035
7036 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7037 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7038 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7039
fcc87af1
AC
70402002-01-09 Andrew Cagney <ac131313@redhat.com>
7041
7042 * MAINTAINERS: Update target maintainer rules so that any
7043 Maintainer can approve a tested patch for a maintenance-only
7044 target.
7045
dd96c05b
RE
70462002-01-09 Richard Earnshaw <rearnsha@arm.com>
7047
d4297db9 7048 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 7049
d4297db9 7050 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
7051 IN_SIGTRAMP.
7052
145fdc6e
MS
70532002-01-08 Michael Snyder <msnyder@redhat.com>
7054
7055 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7056 real name of the executable, rather than the /proc name.
7057
be4d1333
MS
70582002-01-03 Michael Snyder <msnyder@redhat.com>
7059
7060 Implement a "generate-core-file" command in gdb, save target state.
7061 * gcore.c: New file. Implement new command 'generate-core-file'.
7062 Save a corefile image of the current state of the inferior.
7063 * linux-proc.c: Add linux-specific code for saving corefiles.
7064 * target.h (struct target_ops): Add new target vectors for saving
7065 corefiles; to_find_memory_regions and to_make_corefile_notes.
7066 (target_find_memory_regions): New macro.
7067 (target_make_corefile_notes): New macro.
7068 * target.c (update_current_target): Inherit new target methods.
7069 (dummy_find_memory_regions): New place-holder method.
7070 (dummy_make_corefile_notes): New place-holder method.
7071 (init_dummy_target): Initialize new dummy target vectors.
7072 * exec.c (exec_set_find_memory_regions): New function.
7073 Allow the exec_ops vector for memory regions to be taken over.
7074 (exec_make_note_section): New function, target vector method.
7075 * defs.h (exec_set_find_memory_regions): Export prototype.
7076 * procfs.c (proc_find_memory_regions): New function, corefile method.
7077 (procfs_make_note_section): New function, corefile method.
7078 (init_procfs_ops): Set new target vector pointers.
7079 (find_memory_regions_callback): New function.
7080 (procfs_do_thread_registers): New function.
7081 (procfs_corefile_thread_callback): New function.
7082 * sol-thread.c (sol_find_memory_regions): New function.
7083 (sol_make_note_section): New function.
7084 (init_sol_thread_ops): Initialize new target vectors.
7085 * inftarg.c (inftarg_set_find_memory_regions): New function.
7086 Allow to_find_memory_regions vector to be taken over.
7087 (inftarg_set_make_corefile_notes): New function.
7088 Allow to_make_corefile_notes vector to be taken over.
7089 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7090 interface layer if not target_has_execution (may be a corefile).
7091 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7092 * config/sparc/sun4sol2.mh: Ditto.
7093 * config/alpha/alpha-linux.mh: Ditto.
7094 * config/arm/linux.mh: Ditto.
7095 * config/i386/x86-64linux.mh: Ditto.
7096 * config/ia64/linux.mh: Ditto.
7097 * config/m68k/linux.mh: Ditto.
7098 * config/mips/linux.mh: Ditto.
7099 * config/powerpc/linux.mh: Ditto.
7100 * config/sparc/linux.mh: Ditto.
7101
c6b92abd
MS
71022002-01-07 Michael Snyder <msnyder@redhat.com>
7103
7104 * arm-linux-nat.c: Remove references to regcache.c internal data
7105 (registers[] and register_valid[]).
7106
4b09dc8c
MS
71072002-01-07 Michael Snyder <msnyder@redhat.com>
7108
abf22e64
AJ
7109 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7110 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
7111 symbol file and shlibs.
7112 * Makefile.in: Add rule for linux-proc.o.
7113 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7114 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7115 * config/arm/linux.mh: Ditto.
7116 * config/i386/linux.mh: Ditto.
7117 * config/i386/x86-64linux.mh: Ditto.
7118 * config/ia64/linux.mh: Ditto.
7119 * config/m68k/linux.mh: Ditto.
7120 * config/mips/linux.mh: Ditto.
7121 * config/powerpc/linux.mh: Ditto.
7122 * config/sparc/linux.mh: Ditto.
7123
c25b74ac
PM
71242002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
7125
7126 * win32-nat.c: Add i386-tdep.h dependency.
7127
94cd915f
MS
71282002-01-07 Michael Snyder <msnyder@redhat.com>
7129
c7cccb76
MS
7130 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7131 instead of bfd_get_arch_size. Don't bail out just because
7132 there's no exec_bfd.
abf22e64 7133
34c0bd93
MS
7134 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7135 * p-valprint.c (pascal_object_print_value): Ditto.
7136 * somread.c (som_symtab_read): Ditto.
7137 * symfile.c (simple_free_overlay_region_table): Ditto.
7138 * valops.c (value_assign): Ditto.
7139
21c1c920
MS
7140 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7141 use tilde_expand and strerror for opening save-tracepoints file.
7142
5bbd998e
MS
7143 * thread-db.c (thread_db_new_objfile): Indendation fix.
7144
94cd915f
MS
7145 * infptrace.c (GDB_MAX_ALLOCA): New define.
7146 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 7147 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
7148 can be overridden with whatever value is appropriate to the host).
7149 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7150 alloca to allocate potentially large buffer.
7151 * rs6000-nat.c (child_xfer_memory): Ditto.
7152 * symm-nat.c (child_xfer_memory): Ditto.
7153 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7154
494e8a93
JSC
71552002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
7156
7157 From Nick Clifton <nickc@redhat.com>
7158 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7159
d0e1d48e
MS
71602002-01-07 Michael Snyder <msnyder@redhat.com>
7161
abf22e64 7162 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
7163 Don't use exec_bfd if it's NULL.
7164
290b2c7a
MK
71652002-01-06 Mark Kettenis <kettenis@gnu.org>
7166
abf22e64 7167 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 7168
aef21287
AC
71692002-01-06 Andrew Cagney <ac131313@redhat.com>
7170
7171 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7172 * gnu-nat.c: Ditto.
7173
30efa627
AC
71742002-01-06 Andrew Cagney <ac131313@redhat.com>
7175
7176 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7177 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7178 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7179 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7180 z8k-coff have not been multi-arched. Update z8k-coff build
7181 status.
7182
9b4ff276
AC
71832002-01-06 Andrew Cagney <ac131313@redhat.com>
7184
7185 * MAINTAINERS: Mark a29k target as obsolete.
7186 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7187 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7188 comments.
7189 * NEWS: Note that a29k targets are obsolete.
7190 * a29k-tdep.c: Mark as obsolete.
7191 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7192 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7193 a29k-*-vxworks* targets as obsolete.
7194 * remote-adapt.c: Obsolete.
7195 * remote-eb.c: Obsolete.
7196 * remote-mm.c: Obsolete.
7197 * remote-udi.c: Obsolete.
7198 * config/a29k/a29k-udi.mt: Obsolete.
7199 * config/a29k/a29k.mt: Obsolete.
7200 * config/a29k/tm-a29k.h: Obsolete.
7201 * config/a29k/tm-vx29k.h: Obsolete.
7202 * config/a29k/vx29k.mt: Obsolete.
7203
a9011d31
AC
72042002-01-05 Andrew Cagney <ac131313@redhat.com>
7205
7206 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7207 with BFD_ENDIAN_BIG.
7208
9299404e
AC
72092002-01-05 Andrew Cagney <ac131313@redhat.com>
7210
7211 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7212 * configure, config.in: Re-generate.
7213 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7214 * defs.h: Do not include <endian.h>.
7215
7e89e357
JT
72162002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
7217
7218 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7219 * config.in: Regenerate.
7220 * configure.in: Update copyright years.
7221 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7222 * configure: Regenerate.
7223 * i386bsd-nat.c: Update copyright years.
7224 (fill_gregset): Use regcache_collect.
7225 (fetch_inferior_registers): Only fetch integer registers
7226 if requested to do so. Add support for XMM registers
7227 using PT_GETXMMREGS.
7228 (store_inferior_registers): Only store integer registers
7229 if requested to do so. Add support for XMM registers
7230 using PT_SETXMMREGS.
7231 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7232 (store_inferior_registers): Remove.
7233 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7234 (fetch_elfcore_registers): New function.
7235 (i386nbsd_elfcore_fns): New.
7236 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7237 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7238 i386bsd-nat.o.
7239 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7240 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7241 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7242 * config/i386/tm-nbsd.h: Update copyright years.
7243 (HAVE_SSE_REGS): Define.
7244 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7245 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7246 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7247 (SIGCONTEXT_PC_OFFSET): Remove.
7248 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7249
a752853e
AC
72502002-01-05 Andrew Cagney <ac131313@redhat.com>
7251
7252 * configure.tgt: Remove powerpc-*-macos* target.
7253 * config/m68k/xm-mpw.h: Delete file.
7254 * config/xm-mpw.h: Delete file.
7255 * ser-mac.c: Delete file.
7256 * mpw-make.sed: Delete file.
7257 * mpw-config.in: Delete file.
7258 * mac-xdep.c: Delete file.
7259 * mac-gdb.r: Delete file.
7260 * mac-defs.h: Delete file.
7261 * mac-nat.c: Delete file.
7262 * config/powerpc/macos.mh: Delete file.
7263 * config/powerpc/macos.mt: Delete file.
7264 * config/powerpc/nm-macos.h: Delete file.
7265 * config/powerpc/tm-macos.h: Delete file.
7266 * source.c (openp, open_source_file): Remove obsolete code.
7267 * top.c (gdb_readline): Ditto.
7268 * utils.c (query): Ditto.
7269 * event-top.c (display_gdb_prompt): Ditto.
7270 * Makefile.in (ser-mac.o): Delete obsolete target.
7271 * NEWS: Update.
7272
d7449b42
AC
72732002-01-04 Andrew Cagney <ac131313@redhat.com>
7274
7275 * defs.h (BIG_ENDIAN): Delete macro definition.
7276 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7277 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7278 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7279 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7280 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7281 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7282 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7283 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7284 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7285 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7286 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7287 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7288 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7289 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7290 * gdbarch.c: Re-generate.
7291
356374e8
DJ
72922002-01-04 Daniel Jacobowitz <drow@mvista.com>
7293
7294 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7295 for core files.
7296
a2b8f8f8
JT
72972002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7298
7299 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7300
12466af9
AC
73012002-01-04 Andrew Cagney <ac131313@redhat.com>
7302
7303 * value.h (value_ptr): Delete typedef.
7304
3549ab40
JT
73052002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7306
7307 * i386nbsd-nat.c: Update copyright years.
7308 Include i386-tdep.h.
7309
fedbd091
EZ
73102002-01-04 Elena Zannoni <ezannoni@redhat.com>
7311
7312 * stabsread.c: Update copyright years.
7313
7314 From Debashis Mahata <debashis.mahata@wipro.com>:
7315 (read_struct_fields): Deal with Sun C compiler erroneous stab
7316 output for structs and unions.
fec8b34f 7317 Fix PR gdb/269.
fedbd091 7318
eb43544b
DJ
73192002-01-04 Daniel Jacobowitz <drow@mvista.com>
7320
7321 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7322 prototype.
7323
1514d34e
DJ
73242002-01-04 Daniel Jacobowitz <drow@mvista.com>
7325
7326 * cp-abi.c: Fix whitespace.
7327 (baseclass_offset): New wrapper function.
7328 * cp-abi.h (baseclass_offset): Add prototype.
7329 (struct cp_abi_ops): Add baseclass_offset pointer.
7330
7331 * valops.c (vb_match): Move to...
7332 * gnu-v2-abi.c (vb_match): here.
7333 * valops.c (baseclass_offset): Move to...
7334 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7335
7336 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7337
7338 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7339 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7340 * hpacc-abi.c (init_hpacc_ops): Likewise.
7341
7f8c9282
DJ
73422002-01-04 Daniel Jacobowitz <drow@mvista.com>
7343
7344 * valops.c (find_overload_match): Accept obj as a
7345 reference parameter. Update it before returning.
7346 * value.h (find_overload_match): Update prototype.
7347 * eval.c (evaluate_subexp_standard): Pass object to
7348 find_overload_match by reference.
7349
f23631e4
AC
73502002-01-03 Andrew Cagney <ac131313@redhat.com>
7351
7352 * valarith.c: Replace value_ptr with struct value pointer. Remove
7353 register attribute from value declarations.
7354 * valops.c: Ditto.
7355 * value.h: Ditto.
7356 * scm-lang.c (scm_lookup_name): Ditto.
7357
79e10fab 73582002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 7359
79e10fab
AC
7360 Abstract the functionality of iterating over mapped memory
7361 regions into a general purpose iterator function.
abf22e64 7362 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
7363 iterator for memory sections.
7364 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7365 (solib_mappings_callback): New function, callback for above.
7366 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7367 (info_mappings_callback): New function, callback for above.
7368
7369 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7370
c5ad026a
MK
73712002-01-01 Mark Kettenis <kettenis@gnu.org>
7372
d2a7c97a
MK
7373 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7374 * i386-tdep.c: Include "elf-bfd.h".
7375 (process_note_abi_tag_sections): New function.
7376 (i386_gdbarch_init): Add code to recognize various OS/ABI
7377 combinations.
7378
c5ad026a
MK
7379 * maint.c (_initialize_maint_cmds): Add missing \ in
7380 string-literal.
7381
a1a5b71e 7382For older changes see ChangeLog-2001
c906108c
SS
7383\f
7384Local Variables:
7385mode: change-log
7386left-margin: 8
7387fill-column: 74
7388version-control: never
7389End:
This page took 0.646075 seconds and 4 git commands to generate.