1 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4 Already covered by the default.
6 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8 (i386_gdbarch_init): Initialize long_double_format and long_double
11 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
12 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
14 * config/i386/i386sol2.mh: ... here.
15 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
16 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
17 (SIGCONTEXT_PC_OFFSET): Remove define.
18 (IN_SIGTRAMP): Remove define.
19 * i386-sol2-tdep.c: New file.
21 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
22 * config/i386/tm-i386nw.h: Removed.
24 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
25 USE_STRUCT_CONVENTION): Remove defines.
26 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
27 (get_longjmp_target): Remove prototype.
28 (IN_SIGTRAMP): Remove define.
29 (i386bsd_in_sigtramp): Remove prototype.
30 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
31 function. Update comment accordingly
32 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
33 (FRAME_SAVED_PC): Remove define.
34 (i386bsd_frame_saved_pc): Remove prototype.
35 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
36 GET_LONGJMP_TARGET): Remove defines.
37 (get_longjmp_target): Remove prototype.
38 (IN_SIGTRAMP): Remove define.
39 (i386bsd_in_sigtramp): Remove prototype.
40 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
41 function. Update comment accordingly
42 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
43 (FRAME_SAVED_PC): Remove define.
44 (i386bsd_frame_saved_pc): Remove prototype.
45 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
47 (USE_STRUCT_CONVENTION): Remove prototype.
48 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
50 (_initialize_i386bsd_nat): Revise logic to determine some
51 constants at compile time when compiling a native GDB. Warn if
52 things don't match up with what we expect.
53 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
55 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
56 to use date stored in `struct gdbarch_tdep'.
57 (i386bsd_sigcontext_offset): Remove varaible.
58 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
59 stored in `struct gdbarch_tdep'.
60 (i386bsd_frame_saved_pc): Make static.
61 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
62 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
63 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
64 i386fbsd4_sc_pc_offset): New variables.
65 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
66 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
68 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
70 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
71 Modify the value of i386fbsd_sigtramp_start and
72 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
73 i386fbsd_sigtramp_end.
74 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
77 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
78 define to i386-linux-tdep.h.
79 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
80 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
82 (i386_linux_register_name, i386_linux_register_byte,
83 i386_linux_register_raw_size): Remove prototypes.
84 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
85 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
86 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
87 TARGET_WRITE_PC): Remove defines.
88 (i386_linux_in_sigtramp, i386_linux_frame_chain,
89 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
90 i386_linux_write_pc): Remove prototypes.
91 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
92 (get_longjmp_target): Remove prototype.
93 * i386-linux-tdep.h: New file.
94 * i386-linux-nat.c: Include "i386-linux-tdep.h".
95 * i386-linux-tdep.c: Include "i386-tdep.h" and
97 (i386_linux_register_name, i386_linux_register_byte,
98 i386_linux_register_raw_size, i386_linux_in_sigtramp,
99 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
101 (i386_linux_init_abi): New function.
102 (_initialize_i386_linux_tdep): New function.
104 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
105 (i386_saved_pc_after_call): Remove prototype.
106 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
107 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
108 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
109 (i386_register_name, i386_stab_reg_to_regnum,
110 i386_dwarf_reg_to_regnum): Remove prototypes.
111 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
112 SIZEOF_SSE_REGS): Remove defines.
113 (REGISTER_BYTES): Remove define.
114 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
115 (i386_register_byte, i386_register_raw_size): Remove prototypes.
116 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
117 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
118 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
119 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
120 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
121 (get_longjmp_target): Remove prototype.
122 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
123 (sigtramp_saved_pc): Remove define.
124 (i386v4_sigtramp_saved_pc): Remove prototype.
125 * config/i386/tm-go32.h (FRAME_CHAIN,
126 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
127 (i386go32_frame_saved_pc): Remove prototype.
128 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
129 (get_longjmp_target): Remove prototype.
130 * i386-tdep.h: Include "osabi.h".
131 (enum i386_abi): Removed.
132 (enum struct_return): New enum.
133 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
134 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
135 sc_pc_offset members.
136 (i386_gdbarch_register_os_abi): Remove prototype.
137 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
138 I386_SSE_NUM_REGS): New defines.
139 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
140 I386_SSE_SIZEOF_REGS): New defines.
141 (i386_register_name, i386_register_byte, i386_register_raw_size):
143 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
144 (i386bsd_sigtramp_saved_pc): New prototype.
145 * i386-tdep.c: Don't include "elf-bfd.h".
146 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
147 i386_frame_chain, i386_saved_pc_after_call): Make static.
148 (i386_frame_saved_pc): Rewrite to call architecture dependent
149 function to deal with signal handlers. Make static.
150 (i386go32_frame_saved_pc): Removed.
151 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
153 (i386_get_longjmp_target): New function.
154 (default_struct_convention, pcc_struct_convention,
155 reg_struct_convention, valid_conventions, struct_convention): New
157 (i386_use_struct_convention): New function.
158 (i386v4_sigtramp_saved_pc): Renamed to
159 i386_svr4_sigtramp_saved_pc. Made static. Moved.
160 (i386_pc_in_sigtramp): New function.
161 (i386_abi_names): Removed.
162 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
163 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
165 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
166 i386_gdbarch_register_os_abi): Removed.
167 (struct i386_abi_handler): Removed.
168 (i386_abi_handler_list): Removed.
169 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
171 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
172 i386_nw_init_abi): New functions.
173 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
174 Use set_gdbarch_xxx() calls instead of relying on macros for a
176 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
177 (_initialize_i386_tdep): Add new 'struct-convcention' command.
178 Register the various architecture variants defined in this file.
180 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
182 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
183 (struct main_type): Remove arg_types member. Update comments for
185 (TYPE_ARG_TYPES): Remove.
186 (TYPE_FN_FIELD_ARGS): Update.
187 (smash_to_method_type): Update prototype.
189 * c-typeprint.c (cp_type_print_method_args): Take method type
190 instead of argument list. Use new argument layout. Simplify.
191 (c_type_print_args): Use new argument layout. Simplify.
192 (c_type_print_base): Update call to cp_type_print_method_args.
193 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
194 argument; use die->type instead. Update call to
195 smash_to_method_type.
196 (read_structure_scope): Update call to dwarf2_add_member_fn.
197 * gdbtypes.c (allocate_stub_method): Update comment.
198 (smash_to_method_type): Take new NARGS and VARARGS arguments.
199 Use new argument layout.
200 (check_stub_method): Use new argument layout. Don't count
202 (print_arg_types): Update comments. Use new argument layout.
203 (recursive_dump_type): Don't print arg_types member.
204 * hpread.c (hpread_read_struct_type): Use new argument layout.
205 (fixup_class_method_type): Likewise.
206 (hpread_type_lookup): Likewise.
207 * stabsread.c (read_type): Update calls to read_args and
208 smash_to_method_type.
209 (read_args): Use new argument layout. Simplify.
210 * valops.c (typecmp): Use new argument layout. Update parameters
211 and comments. Simplify.
212 (hand_function_call): Use new argument layout.
213 (search_struct_method): Update call to typecmp.
214 (find_overload_match): Use new argument layout.
216 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
218 * NEWS: Mention multithreaded debug support for gdbserver.
220 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
222 * MAINTAINERS: Mention NEWS.
224 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
226 * gdbserver/regcache.c: Add comment.
228 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
230 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
231 (struct mips_objfile_private, compare_pdr_entries): New.
232 (non_heuristic_proc_desc): Read the ".pdr" section if it
235 2002-06-12 Andrew Cagney <ac131313@redhat.com>
237 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
238 (arm_debug): New static variable.
239 (_initialize_arm_tdep): Add ``set debug arm'' command.
241 2002-06-12 Andrew Cagney <ac131313@redhat.com>
243 * Makefile.in (sim_arm_h): Define.
244 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
245 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
246 (arm_register_sim_regno): New function, map an internal REGNUM
247 onto a simulator register number.
248 (arm_gdbarch_init): Set register_sim_regno.
250 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
252 * MAINTAINERS: Add self.
254 2002-06-11 Jim Blandy <jimb@redhat.com>
256 * source.c (source_info): Mention whether the symtab has
257 information about preprocessor macros.
259 Call the command `info macro', not `show macro'.
260 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
262 (_initialize_macrocmd): Register `info_macro_command' in
263 `infolist', not `showlist'.
265 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
267 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
268 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
269 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
270 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
271 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
273 (set_mipsfpu_single_command, set_mipsfpu_double_command)
274 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
275 (_initialize_mips_tdep): Remove dead code.
276 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
277 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
278 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
279 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
280 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
281 MIPS_LAST_FP_ARG_REGNUM): Remove.
283 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
285 * gdbserver/thread-db.c: New file.
286 * gdbserver/proc-service.c: New file.
287 * gdbserver/acinclude.m4: New file.
288 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
289 proc-service.o, and thread-db.o.
290 (linux-low.o): Add USE_THREAD_DB.
291 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
292 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
293 * gdbserver/aclocal.m4: Regenerated.
294 * gdbserver/config.in: Regenerated.
295 * gdbserver/configure: Regenerated.
296 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
297 thread_db.h, and linux/elf.h headrs.
298 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
299 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
300 Check for -lthread_db and thread support.
301 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
303 * gdbserver/i387-fp.c: Constify arguments.
304 * gdbserver/i387-fp.h: Likewise.
305 * gdbserver/inferiors.c: (struct thread_info): Renamed from
306 `struct inferior_info'. Remove PID member. Use generic inferior
307 list header. All uses updated.
308 (inferiors, signal_pid): Removed.
309 (all_threads): New variable.
310 (get_thread): Define.
311 (add_inferior_to_list): New function.
312 (for_each_inferior): New function.
313 (change_inferior_id): New function.
314 (add_inferior): Removed.
315 (remove_inferior): New function.
316 (add_thread): New function.
317 (free_one_thread): New function.
318 (remove_thread): New function.
319 (clear_inferiors): Use for_each_inferior and free_one_thread.
320 (find_inferior): New function.
321 (find_inferior_id): New function.
322 (inferior_target_data): Update argument type.
323 (set_inferior_target_data): Likewise.
324 (inferior_regcache_data): Likewise.
325 (set_inferior_regcache_data): Likewise.
326 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
327 (all_processes, stopping_threads, using_thrads)
328 (struct pending_signals, debug_threads, pid_of): New.
329 (inferior_pid): Replace with macro.
330 (struct inferior_linux_data): Remove.
331 (get_stop_pc, add_process): New functions.
332 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
333 Use add_process and add_thread.
334 (linux_attach_lwp): New function, based on old linux_attach. Use
335 add_process and add_thread. Set stop_expected for new threads.
336 (linux_attach): New function.
337 (linux_kill_one_process): New function.
338 (linux_kill): Kill all LWPs.
339 (linux_thread_alive): Use find_inferior_id.
340 (check_removed_breakpoints, status_pending_p): New functions.
341 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
342 Update. Use WNOHANG. Wait for cloned processes also. Update process
343 struct for the found process.
344 (linux_wait_for_event): New function.
345 (linux_wait): Use it. Support LWPs.
346 (send_sigstop, wait_for_sigstop, stop_all_processes)
347 (linux_resume_one_process, linux_continue_one_process): New functions.
348 (linux_resume): Support LWPs.
349 (REGISTER_RAW_SIZE): Remove.
350 (fetch_register): Use register_size instead. Call supply_register.
351 (usr_store_inferior_registers): Likewise. Call collect_register.
353 (regsets_fetch_inferior_registers): Improve error message.
354 (regsets_store_inferior_registers): Add debugging.
355 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
356 (unstopped_p, linux_signal_pid): New functions.
357 (linux_target_ops): Add linux_signal_pid.
358 (linux_init_signals): New function.
359 (initialize_low): Call it. Initialize using_threads.
360 * gdbserver/regcache.c (inferior_regcache_data): Add valid
362 (get_regcache): Fetch registers lazily. Add fetch argument
363 and update all callers.
364 (regcache_invalidate_one, regcache_invalidate): New
366 (new_register_cache): Renamed from create_register_cache.
367 Return the new regcache.
368 (free_register_cache): Change argument to a void *.
369 (registers_to_string, registers_from_string): Call get_regcache
371 (register_data): Make static. Pass fetch flag to get_regcache.
372 (supply_register): Call get_regcache with fetch flag clear.
373 (collect_register): Call get_regcache with fetch flag set.
374 (collect_register_as_string): New function.
375 * gdbserver/regcache.h: Update.
376 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
378 Handle input interrupts while waiting for an ACK.
379 (input_interrupt): Use signal_pid method.
380 (getpkt): Flush after debug output and use stderr.
381 (outreg): Use collect_register_as_string.
382 (new_thread_notify, dead_thread_notify): New functions.
383 (prepare_resume_reply): Check using_threads. Set thread_from_wait
385 (look_up_one_symbol): Flush after debug output.
386 * gdbserver/server.c (step_thread, server_waiting): New variables.
387 (start_inferior): Don't use signal_pid. Update call to mywait.
388 (attach_inferior): Update call to mywait.
389 (handle_query): Handle qfThreadInfo and qsThreadInfo.
390 (main): Don't fetch/store registers explicitly. Use
391 set_desired_inferior. Support proposed ``Hs'' packet. Update
393 * gdbserver/server.h: Update.
394 (struct inferior_list, struct_inferior_list_entry): New.
395 * gdbserver/target.c (set_desired_inferior): New.
396 (write_inferior_memory): Constify.
397 (mywait): New function.
398 * gdbserver/target.h: Update.
399 (struct target_ops): New signal_pid method.
400 (mywait): Removed macro, added prototype.
402 * gdbserver/linux-low.h (regset_func): Removed.
403 (regset_fill_func, regset_store_func): New.
404 (enum regset_type): New.
405 (struct regset_info): Add type field. Use new operation types.
406 (struct linux_target_ops): stop_pc renamed to get_pc.
407 Add decr_pc_after_break and breakpoint_at.
408 (get_process, get_thread_proess, get_process_thread)
409 (strut process_info, all_processes, linux_attach_lwp)
410 (thread_db_init): New.
412 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
413 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
414 (the_low_target): Add new members.
415 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
416 (i386_store_fpxregset): Constify.
417 (target_regsets): Add new kind identifier.
418 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
419 (i386_set_pc): Add debugging.
420 (i386_breakpoint_at): New function.
421 (the_low_target): Add new members.
422 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
423 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
424 (mips_breakpoint_at): New.
425 (the_low_target): Add new members.
426 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
427 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
428 (the_low_target): Add new members.
429 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
430 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
431 (the_low_target): Add new members.
432 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
435 2002-06-11 Michal Ludvig <mludvig@suse.cz>
437 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
438 (unwind_tmp_obstack_free, parse_frame_info)
439 (update_context, cfi_read_fp, cfi_write_fp)
440 (cfi_frame_chain, cfi_init_extra_frame_info)
441 (cfi_virtual_frame_pointer): Use the above function.
442 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
444 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
446 * v850-tdep.c (v850_type_is_scalar): New function.
447 (v850_use_struct_convention): Match current gcc implementation
448 as close as possible.
449 (v850_push_arguments): Fix stack_offset handling. Don't write
450 struct_addr into register. This is done by v850_store_struct_return.
451 (v850_extract_return_value): Care for structs.
452 (v850_store_return_value): Ditto.
453 (v850_store_struct_return): Actually write address.
455 2002-06-11 Michal Ludvig <mludvig@suse.cz>
457 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
458 without debug information too.
460 2002-06-10 Andrew Cagney <ac131313@redhat.com>
462 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
463 Make multi-arch pure.
464 * gdbarch.h, gdbarch.c: Re-generate.
465 * arm-tdep.c (arm_print_float_info): Update.
466 * arch-utils.h (default_print_float_info): Update.
467 * arch-utils.c (default_print_float_info): Update.
468 * infcmd.c (float_info): Update call.
470 2002-06-10 Andrew Cagney <ac131313@redhat.com>
472 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
473 the front of the initialize list.
475 2002-06-10 Andrew Cagney <ac131313@redhat.com>
477 * infrun.c (struct inferior_status): Replace fields
478 selected_frame_address and selected_level with field
480 (save_inferior_status): Update. Use get_frame_id.
481 (struct restore_selected_frame_args): Delete.
482 (restore_selected_frame): Update. Use frame_find_by_id.
483 (restore_inferior_status): Update.
485 * breakpoint.h (struct breakpoint): Change type of
486 watchpoint_frame to frame_id.
487 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
488 call to get_current_frame.
489 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
491 (watchpoint_check): Use frame_find_by_id.
493 * frame.h (record_selected_frame): Delete declaration.
494 * stack.c (record_selected_frame): Delete function.
496 * frame.h (struct frame_id): Define.
497 (get_frame_id): Declare.
498 (frame_find_by_id): Declare.
499 * frame.c (frame_find_by_id): New function.
500 (get_frame_id): New function.
502 2002-06-10 Andrey Volkov <avolkov@transas.com>
504 * ser-e7kpc.c: Fix duplicated define and call of
505 _initialize_ser_e7000pc
507 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
509 * signals/signals.c (target_signal_from_host): Fix #ifdef
511 (do_target_signal_to_host): Likewise.
513 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
515 * mips-tdep.c (mips_find_abi_section): New function.
516 (mips_gdbarch_init): Call it.
518 2002-06-09 Mark Kettenis <kettenis@gnu.org>
520 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
521 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
522 after Andrew's 2002-06-08 gdbarch change.
524 2002-06-09 Mark Kettenis <kettenis@gnu.org>
526 * i386-linux-nat.c (suppy_gregset): Don't supply
527 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
529 (fill_gregset): Don't fetch it under the same circumstances.
531 2002-06-09 Andrew Cagney <cagney@redhat.com>
533 * Makefile.in (callback_h): Define.
534 (remote_sim_h): Update path to remote-sim.h.
535 (remote-rdp.o): Add $(callback_h).
536 (remote-sim.o): Use $(callback_h).
537 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
538 * remote-rdp.c: Include "gdb/callback.h".
540 2002-06-09 Mark Kettenis <kettenis@gnu.org>
542 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
543 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
545 2002-06-08 Andrew Cagney <ac131313@redhat.com>
547 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
548 * rdi-share/serpardr.c: Ditto.
549 * rdi-share/unixcomm.c: Ditto.
550 * rdi-share/serdrv.c: Ditto.
551 * rdi-share/hostchan.h: Ditto.
552 * rdi-share/hostchan.c: Ditto.
553 * rdi-share/host.h: Ditto.
554 * rdi-share/devsw.c: Ditto.
556 * objfiles.h: Change type of obj_private to void pointer.
557 * pa64solib.c: Update copyright. Don't include "assert.h", use
558 strcmp instead of STREQ, use LONGEST, do not use PTR
561 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
562 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
563 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
565 2002-06-08 Andrew Cagney <ac131313@redhat.com>
567 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
568 (default_get_saved_register): Delete function.
569 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
570 generic_unwind_get_saved_register.
571 * gdbarch.h, gdbarch.c: Re-generate.
573 2002-06-08 Andrew Cagney <ac131313@redhat.com>
575 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
576 generic_func_frame_chain_valid.
577 * gdbarch.h, gdbarch.c: Re-generate.
578 * blockframe.c (generic_func_frame_chain_valid): Only check
579 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
580 passing FP to PC_IN_CALL_DUMMY.
583 2002-06-08 Andrew Cagney <ac131313@redhat.com>
585 * gdbarch.sh (struct gdbarch_data): Add field init_p.
586 (register_gdbarch_data): Initialize init_p.
587 (gdbarch_data): Initialize data pointer using the init function.
588 (init_gdbarch_data): Delete function.
589 (gdbarch_update_p): Update.
590 (initialize_non_multiarch): Update.
591 (struct gdbarch): Add field initialized_p.
592 * gdbarch.h, gdbarch.c: Re-generate.
594 2002-06-07 Michal Ludvig <mludvig@suse.cz>
596 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
597 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
598 better do the things actually here.
599 * x86-64-tdep.c (x86_64_register_name2nr): New.
600 (x86_64_register_name): Renamed to x86_64_register_nr2name.
601 (x86_64_gdbarch_init): Respect the above change.
602 * x86-64-tdep.h (x86_64_register_name2nr)
603 (x86_64_register_nr2name): Add prototypes.
604 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
606 2002-06-06 Michael Snyder <msnyder@redhat.com>
608 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
609 Delete extra braces and re-indent.
610 (d10v_store_return_value): Char return values
611 must be shifted over by one byte in R0.
612 (d10v_extract_return_value): Delete extra braces, re-indent.
614 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
616 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
617 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
618 (d10v_integer_to_address): Rewrite.
619 (d10v_frame_init_saved_regs): When reading fp and sp registers use
620 the d10v specific functions which take care of converting to the
623 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
625 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
626 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
628 2002-06-02 Andrew Cagney <ac131313@redhat.com>
630 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
632 * config/tm-linux.h: Ditto.
633 * config/alpha/tm-alphalinux.h: Ditto.
634 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
635 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
636 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
637 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
638 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
639 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
640 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
641 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
642 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
643 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
644 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
645 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
646 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
647 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
648 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
649 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
650 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
651 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
652 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
653 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
654 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
655 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
656 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
657 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
658 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
659 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
660 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
661 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
662 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
663 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
664 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
665 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
666 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
667 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
668 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
669 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
670 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
672 2002-05-04 Aidan Skinner <aidan@velvet.net>
674 * ada-exp.tab.c: New file
675 * ada-exp.y: New file
676 * ada-lang.c: New file
677 * ada-lang.h: New file
678 * ada-lex.c: New file
679 * ada-lex.l: New file
680 * ada-tasks.c: New file
681 * ada-typeprint.c: New file
682 * ada-valprint.c: New file
684 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
686 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
687 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
689 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
691 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
692 insetead of ppc-linux-tdep.o.
693 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
694 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
696 2002-06-02 Andrew Cagney <ac131313@redhat.com>
698 2002-05-07 Christian Groessler <chris@groessler.org>
699 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
700 bit register contents for little endian hosts.
702 2002-06-01 Andrew Cagney <ac131313@redhat.com>
704 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
707 2002-06-01 Andrew Cagney <ac131313@redhat.com>
709 * gdbarch.h: Regenerate.
711 2002-06-01 Andrew Cagney <ac131313@redhat.com>
713 * MAINTAINERS: Add everyone to write-after-approval list.
715 2002-06-01 Andrew Cagney <ac131313@redhat.com>
717 * stack.c (frame_info): Use frame_register_unwind instead of
718 saved_regs. Mention when the SP is on the stack or in a register.
720 * frame.h (frame_register_unwind_ftype): Define. Document.
721 (struct frame_info): Add field register_unwind and
722 register_unwind_cache.
723 (frame_register_unwind): Declare.
724 (generic_unwind_get_saved_register): Declare.
726 * frame.c (frame_register_unwind): New function.
727 (generic_unwind_get_saved_register): New function.
729 * blockframe.c (generic_call_dummy_register_unwind): New function.
730 (frame_saved_regs_register_unwind): New function.
731 (set_unwind_by_pc): New function.
732 (create_new_frame): New function.
733 (get_prev_frame): New function.
735 2002-05-30 Andrew Cagney <ac131313@redhat.com>
737 * a29k-share/: Delete directory.
738 * remote-vx29k.c: Delete file.
740 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
742 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
743 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
745 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
747 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
748 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
751 (sparcnbsd-tdep.o): New dependency lists.
752 * NEWS: Note new UltraSPARC NetBSD native configuration.
753 * configure.host (sparc64-*-netbsd*): New host.
754 * configure.tgt (sparc-*-netbsdelf*)
755 (sparc-*-netbsd*): Set gdb_target to nbsd.
756 (sparc64-*-netbsd*): New target.
757 * sparc64nbsd-nat.c: New file.
758 * sparcnbsd-nat.c: New file.
759 * sparcnbsd-tdep.c: New file.
760 * sparcnbsd-tdep.h: New file.
761 * config/sparc/nbsd.mt: New file.
762 * config/sparc/nbsd64.mh: New file.
763 * config/sparc/nbsd64.mt: New file.
764 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
765 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
767 * config/sparc/nbsdaout.mt: Remove.
768 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
769 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
771 * config/sparc/nbsdelf.mt: Remove.
772 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
773 sparc-nat.c compatiblity defines.
774 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
775 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
776 * config/sparc/tm-nbsd64.h: New file.
777 * config/sparc/tm-nbsdaout.h: Remove.
778 * config/sparc/xm-nbsd.h: Remove.
780 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
782 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
783 * sparc-tdep.c: Include osabi.h.
784 (gdbarch_tdep): Add osabi member.
785 (_initialize_sparc_tdep): Use gdbarch_register.
786 (sparc_gdbarch_init): Use generic OS ABI framework.
787 (sparc_dump_tdep): New function.
789 2002-05-30 Kevin Buettner <kevinb@redhat.com>
791 * corefile.c (do_captured_read_memory_integer): Return non-zero
793 (safe_read_memory_integer): Copy result of memory read when
794 status is non-zero. Also, add comments.
796 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
798 * Makefile.in (ppc_tdep_h): Define.
801 (rs6000-tdep.o): Use $(ppc_tdep_h).
804 (ppcnbsd-tdep.o): New dependency lists.
805 * ppc-tdep.h: Use generic OS ABI framework.
806 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
807 (ppc_linux_init_abi): New functions.
808 (ppc_sysv_abi_broken_use_struct_convention)
809 (ppc_sysv_abi_use_struct_convention)
810 (ppc_sysv_abi_push_arguments): Move to...
811 * ppc-sysv-tdep.c: ...here.
812 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
813 * rs6000-tdep.c (process_note_abi_tag_sections)
814 (get_elfosabi): Remove.
815 (rs6000_gdbarch_init): Use generic OS ABI framework.
816 (rs6000_dump_tdep): New function.
817 (_initialize_rs6000_tdep): Use gdbarch_register.
818 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
819 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
820 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
822 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
823 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
824 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
825 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
826 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
827 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
829 2002-05-29 Jim Blandy <jimb@redhat.com>
831 * macroscope.c (default_macro_scope): Put `void' in empty argument
834 2002-05-29 Andrew Cagney <ac131313@redhat.com>
836 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
837 * arch-utils.c: Include "sim-regno.h".
838 * gdbarch.sh: Don't include "sim-regno.h".
839 * gdbarch.h, gdbarch.c: Regenerate.
840 * sim-regno.h (legacy_register_sim_regno): Move declaration from
842 * arch-utils.h (legacy_register_sim_regno): To here.
843 * remote-sim.c (legacy_register_sim_regno): Move function from
845 * arch-utils.c (legacy_register_sim_regno): To here.
847 2002-05-28 Andrew Cagney <ac131313@redhat.com>
849 * sim-regno.h: New file.
850 * Makefile.in (sim_regno_h): Define.
851 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
852 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
853 (legacy_register_sim_regno): New function.
854 (one2one_register_sim_regno): New function.
855 (gdbsim_fetch_register): Rewrite.
856 (gdbsim_store_register): Only store a register when
857 REGISTER_SIM_REGNO is valid.
858 * d10v-tdep.c: Include "sim-regno.h".
859 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
860 (d10v_ts3_register_sim_regno): Ditto.
861 * gdbarch.sh: Include "sim-regno.h".
862 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
863 * gdbarch.h, gdbarch.c: Regenerate.
864 * arch-utils.h (default_register_sim_regno): Delete declaration.
865 * arch-utils.c (default_register_sim_regno): Delete function.
867 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
869 * ppcnbsd-nat.c: Rewrite.
870 * ppcnbsd-tdep.c: New file.
871 * ppcnbsd-tdep.h: New file.
872 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
873 solib.o, and solib-svr4.o.
874 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
875 nbsd-tdep.o, and corelow.o.
877 2002-05-28 Andrew Cagney <ac131313@redhat.com>
879 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
880 `tr' and `sed'. Mention that `broken' targets are not expected to
883 2002-05-27 Michal Ludvig <mludvig@suse.cz>
885 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
886 Let PC point right after the prologue before looking up symbols.
888 2002-05-27 Martin M. Hunt <hunt@redhat.com>
890 * i386-tdep.c (i386_register_virtual_type): Return
891 builtin_type_vec128i for SSE registers.
893 * gdbtypes.h (builtin_type_vec128i): Declare.
895 * gdbtypes.c (build_builtin_type_vec128i): New function.
896 (builtin_type_v2_double, builtin_type_v4_int64): New types.
897 (builtin_type_vec128i): New type for SSE2 128-bit registers.
898 (build_gdbtypes): Initialize new builtin vector types.
899 (_initialize_gdbtypes): Register new vector types with gdbarch.
901 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
903 * MAINTAINERS: ns32k is not longer an obsolete candidate,
904 since it has been multi-arch'd.
905 * NEWS: Note that ns32k-*-* is now partial multi-arch.
906 Move Alpha and VAX multi-arch news entries to same section
907 as other multi-arch news.
909 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
911 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
912 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
913 static. Rename some register numbers to put them in ns32k-tdep
915 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
916 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
918 (_initialize_ns32k_tdep): Use gdbarch_register.
919 * ns32k-tdep.h: New file.
920 * ns32knbsd-tdep.c: New file.
921 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
922 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
923 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
924 REGISTER_BYTES, REGISTER_BYTE): Remove.
925 * config/ns32k/tm-ns32k.h: New file.
926 * config/ns32k/tm-umax.h: Remove.
928 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
930 * ns32k-tdep.c (ns32k_saved_pc_after_call,
931 ns32k_store_struct_return, ns32k_extract_return_value,
932 ns32k_store_return_value, ns32k_extract_struct_value_address): New
934 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
935 ns32k_saved_pc_after_call.
936 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
937 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
938 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
939 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
940 ns32k_extract_struct_value_address.
942 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
944 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
945 ns32k_fix_call_dummy): New.
946 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
947 ns32k_call_dummy_words.
948 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
949 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
950 CALL_DUMMY_NARGS): Remove.
951 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
953 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
955 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
956 ns32k_frame_saved_pc, ns32k_frame_args_address,
957 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
958 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
959 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
960 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
961 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
962 (BREAKPOINT): Remove..
963 (FRAME_CHAIN): Define as ns32k_frame_chain.
964 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
965 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
966 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
967 (FRAME_FIND_SAVED_REGS): Remove.
968 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
969 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
970 (POP_FRAME): Define as ns32k_pop_frame.
972 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
974 * ns32k-tdep.c (ns32k_register_byte_32082,
975 ns32k_register_byte_32382, ns32k_register_raw_size,
976 ns32k_register_virtual_size, ns32k_register_virtual_type): New
978 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
979 ns32k_register_byte_32382.
980 * config/ns32k/tm-umax.h: Update copyright years.
981 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
982 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
983 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
984 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
985 (ns32k_get_enter_addr): Fix prototype.
987 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
989 * ns32k-tdep.c: Update copyright years.
990 (ns32k_register_name_32082): New function.
991 (ns32k_register_name_32382): Ditto.
992 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
993 (REGISTER_NAME): Define as ns32k_register_name_32382.
994 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
995 (REGISTER_NAME): Define as ns32k_register_name_32082.
997 2002-05-24 Jim Blandy <jimb@redhat.com>
999 * dwarf2read.c (free_line_header): Use xfree, not free.
1001 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1003 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1004 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1006 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1008 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1010 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1012 From Ross Alexander at NEC Europe:
1013 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1015 2002-05-23 Michael Snyder <msnyder@redhat.com>
1017 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1018 for input, rather than parse_and_eval_address.
1020 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1022 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1023 * Makefile.in (sim_d10v_h): Update definition.
1025 2002-05-24 Andrew Cagney <cagney@redhat.com>
1027 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1028 change `2002-05-22 Michael Snyder' below.
1029 (d10v_push_arguments): Ditto.
1030 (d10v_extract_return_value): Ditto.
1032 2002-05-23 Jim Blandy <jimb@redhat.com>
1034 * macrotab.c (check_for_redefinition): Don't complain if the new
1035 definition is the same as the previous one. Take more arguments
1036 to allow the comparison.
1037 (macro_define_object, macro_define_function): Pass more arguments
1038 to check_for_redefinition.
1040 2002-05-22 Michael Snyder <msnyder@redhat.com>
1042 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1043 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1044 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1045 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1046 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1047 Add a temp variable to save a call (and a memory read).
1048 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1049 if possible (so that PC_IN_CALL_DUMMY will work).
1051 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
1053 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1055 2002-05-22 Michal Ludvig <mludvig@suse.cz>
1057 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1059 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1060 (dwarf2_build_frame_info): Add offset to fde->initial_location
1061 so that frames of shared libraries are mapped correctly.
1062 (execute_stack_op): Change type of 'result' from ULONGEST to
1065 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1067 * config/alpha/tm-nbsd.h: Include solib.h.
1069 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1071 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1072 assumptions about the host's byte order.
1074 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1076 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1078 * alphanbsd-tdep.c: Include solib-svr4.h.
1079 * shnbsd-tdep.c: Ditto.
1081 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1083 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1084 nbsd-tdep.h to dependency list.
1085 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1086 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1087 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1088 nbsdaout.mh and nbsdelf.mh consistently.
1089 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1090 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1091 nbsdaout.mt and nbsdelf.mh consistently.
1092 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1093 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1094 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1095 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1096 a.out shared library stuff from here...
1097 * config/nm-nbsdaout.h: ...to here.
1098 * config/tm-nbsd.h: Remove.
1099 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1100 * config/arm/nbsd.mh: Remove.
1101 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1103 * config/arm/nbsdaout.mh: New file.
1104 * config/arm/nbsdelf.mh: New file.
1105 * config/arm/nm-nbsdaout.h: New file.
1106 * config/i386/nbsd.mh: Remove.
1107 * config/i386/nbsd.mt: Remove.
1108 * config/i386/nbsdaout.mh: New file.
1109 * config/i386/nbsdaout.mt: New file.
1110 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1111 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1112 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1113 i386_register_u_addr): Remove.
1114 * config/i386/nm-nbsdaout.h: New file.
1115 * config/i386/nm-nbsdelf.h: Remove.
1116 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1117 (USE_STRUCT_CONVENTION): Remove.
1118 * config/i386/tm-nbsdaout.h: New file.
1119 * config/i386/tm-nbsdelf.h: Remove.
1120 * config/m68k/nbsd.mh: Remove.
1121 * config/m68k/nbsd.mt: Remove.
1122 * config/m68k/nbsdaout.mh: New file.
1123 * config/m68k/nbsdaout.mt: New file.
1124 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1125 * config/m68k/nm-nbsdaout.h: New file.
1126 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1127 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1128 * config/ns32k/nbsd.mh: Remove.
1129 * config/ns32k/nbsd.mt: Remove.
1130 * config/ns32k/nbsdaout.mh: New file.
1131 * config/ns32k/nbsdaout.mt: New file.
1132 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1133 * config/ns32k/nm-nbsdaout.h: New file.
1134 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1135 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1136 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1137 (SVR4_SHARED_LIBS): Remove.
1138 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1139 * config/sparc/nbsd.mh: Remove.
1140 * config/sparc/nbsd.mt: Remove.
1141 * config/sparc/nbsdaout.mh: New file.
1142 * config/sparc/nbsdaout.mt: New file.
1143 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1144 * config/sparc/nbsdelf.mt: New file.
1145 * config/sparc/nm-nbsdaout.h: New file.
1146 * config/sparc/nm-nbsdelf.h: Remove.
1147 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1148 * config/sparc/tm-nbsdaout.h: New file.
1150 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1152 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1154 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1156 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1158 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1160 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1162 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1164 * NEWS: Note new MIPS NetBSD native configuration.
1165 * configure.host (mips*-*-netbsd*): New host.
1166 * configure.tgt (mips*-*-netbsd*): New target.
1167 * mipsnbsd-nat.c: New file.
1168 * mipsnbsd-tdep.c: New file.
1169 * mipsnbsd-tdep.h: New file.
1170 * config/mips/nbsd.mh: New file.
1171 * config/mips/nbsd.mt: New file.
1172 * config/mips/nm-nbsd.h: New file.
1173 * config/mips/tm-nbsd.h: New file.
1175 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1177 * Makefile.in (SFILES): Add osabi.c.
1178 (COMMON_OBS): Add osabi.o.
1179 (osabi.o): New dependency list.
1180 * osabi.c: New file.
1181 * osabi.h: New file.
1182 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1184 * Makefile.in (alpha_tdep_h): Define and use instead of
1186 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1187 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1189 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1190 * alpha-tdep.h: Include osabi.h.
1191 (alpha_abi): Remove.
1192 (gdbarch_tdep): Use generic OS ABI framework.
1193 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1194 gdbarch_register_osabi.
1195 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1196 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1197 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1199 * Makefile.in (sh_tdep_h): Add osabi.h.
1200 * sh-tdep.h (sh_osabi): Remove.
1201 (gdbarch_tdep): Use generic OS ABI framework.
1202 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1203 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1204 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1205 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1207 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1208 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1209 gdbarch_register_osabi.
1210 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1211 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1212 (get_elfosabi): Rename to...
1213 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1214 ABI framework support routines.
1215 (arm_gdbarch_init): Use generic OS ABI framework.
1216 (arm_dump_tdep): Likewise.
1217 (_initialize_arm_tdep): Likewise.
1218 * arm-tdep.h: Include osabi.h.
1220 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1222 (arm_gdbarch_register_os_abi): Remove prototype.
1223 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1224 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1226 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1227 * mips-tdep.c: Include osabi.h.
1228 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1231 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1233 * h8300-tdep.c: Fix formatting.
1235 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
1237 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1238 printing vector registers.
1240 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1242 From Fernando Nasser:
1243 * remote.c (remote_async_open_1): Re-throw the exception when the
1245 (remote_cisco_open): Ditto.
1246 (remote_open_1): Ditto.
1248 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1250 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1251 (remote_start_remote): Add uiout parameter. Pass through to
1252 remote_start_remote_dummy.
1253 (remote_open_1): Use catch_exception instead of catch_errors.
1254 (remote_async_open_1): Ditto.
1255 (remote_cisco_open): Ditto.
1257 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1259 * remote.c (remote_start_remote): Replace PTR with void pointer.
1260 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1263 2002-05-18 Andrew Cagney <ac131313@redhat.com>
1265 * gdb_indent.sh: Allow the script to be run in the sim directory.
1267 2002-05-18 Mark Kettenis <kettenis@gnu.org>
1269 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1270 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1272 * corelow.c (core_open): Only call set_gdbarch_from_file if
1275 2002-05-17 Andrey Volkov <avolkov@transas.com>
1277 * h8300-tdep.c: Add support of EXR register
1278 * config/h8300/tm-h8300.h: Ditto.
1280 2002-05-17 Andrey Volkov <avolkov@transas.com>
1282 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1284 2002-05-17 Andrey Volkov <avolkov@transas.com>
1286 * h8300-tdep.c: Change literal regnums to REGNO.
1288 2002-05-17 Jim Blandy <jimb@redhat.com>
1290 * NEWS: Note addition of macro support.
1292 Expand preprocessor macros in C expressions.
1293 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1294 (scan_macro_expansion, scanning_macro_expansion,
1295 finished_macro_expansion): New function declarations.
1296 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1297 variable declarations.
1298 * parser-defs.h (expression_context_pc): New declaration.
1299 * parse.c (expression_context_pc): New variable.
1300 (parse_exp_1): Set expression_context_pc, as well as
1301 expression_context_block.
1302 * c-exp.y (yylex): If we're not already reading the result of a
1303 macro expansion, try to macro-expand the next token. When we're
1304 done scanning a macro expansion, switch back to the mainline text.
1305 Commas and `if's in a macro's expansion don't terminate the input.
1306 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1307 (macro_original_text, macro_expanded_text,
1308 expression_macro_lookup_func, expression_macro_lookup_baton): New
1310 (scan_macro_expansion, scanning_macro_expansion,
1311 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1312 c_preprocess_and_parse): New functions.
1313 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1314 c_preprocess_and_parse, instead of c_parse.
1315 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1316 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1318 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1320 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1321 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1322 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1324 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
1326 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1328 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1330 * Makefile.in (sh_tdep_h): Define and use.
1331 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1332 register enum): Move to...
1333 * * sh-tdep.h: ...here.
1334 * sh-tdep.c: Include sh-tdep.h.
1335 * sh3-rom.c: Likewise.
1336 * shnbsd-tdep.c: Likewise.
1338 2002-05-16 Michael Snyder <msnyder@redhat.com>
1340 * arm-tdep.c: Spelling fix in comment.
1342 2002-05-16 Jim Blandy <jimb@redhat.com>
1344 Add commands for manually expanding macros and showing their
1346 * macrocmd.c, macroscope.c, macroscope.h: New files.
1347 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1348 (macroscope_h): New variable.
1349 (HFILES_NO_SRCDIR): Add macroscope.h.
1350 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1351 (macroscope.o, macrocmd.o): New rules.
1353 Teach the Dwarf 2 reader to read macro information.
1354 * dwarf2read.c: #include "macrotab.h".
1355 (dwarf_macinfo_buffer): New variable.
1356 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1358 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1359 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1360 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1361 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1362 dwarf2_macro_spaces_in_definition): New complaints.
1363 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1364 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1365 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1366 the partial symbol table.
1367 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1368 from what's recorded in the partial symbol table.
1369 (read_file_scope): If the compilation unit has a
1370 `DW_AT_macro_info' attribute, read its macro information.
1371 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1373 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1376 * ser-tcp.c: Don't include <netinet/udp.h>.
1378 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1380 * MAINTAINERS: Update my email address.
1382 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
1384 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1385 include file of the same name.
1387 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1389 * configure.tgt: Mark v850 as multi-arched.
1390 * config/v850/tm-v850.h: Remove file.
1391 * config/v850/v850.mt: Eliminate TM_FILE.
1393 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1395 * v850-tdep.c: Full multi-arch.
1396 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1397 Define GDB_MULTI_ARCH to 2.
1399 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1401 * p-exp.y (current_type): New static variable.
1402 Carries the type of the expression at the position that is parsed.
1403 (push_current_type, pop_current_type): Two new functions. Used
1404 to store/restore current_type in expression on specific tokens.
1405 (search_field): New static variable. Set to one after parsing a point
1406 as at that point only a FIELDNAME token should be searched.
1407 (FIELDNAME): New token. After a point only a token belonging to
1408 current_type type definition is allowed.
1409 (all over token rules): reset and change current_type according
1411 (exp '[' rule): insert implicit array index field if
1412 exp is a pascal string type.
1414 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1416 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1417 frame info. Use frame_info's saved_regs instead of matching member
1418 in extra_frame_info throughout.
1419 (v850_frame_init_saved_regs): New function.
1420 (v850_init_extra_frame_info): Move most functionality into
1421 v850_frame_init_saved_regs().
1422 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1423 (v850_frame_find_saved_regs): Remove declaration.
1424 (FRAME_FIND_SAVED_REGS): Remove definition.
1425 (v850_frame_init_saved_regs): Add declaration.
1426 (FRAME_INIT_SAVED_REGS): Add definition.
1428 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1430 * v850-tdep.c: Begin multi-arch'ing v850.
1431 (v850_target_architecture_hook): Remove function.
1432 (v850_gdbarch_init): New function. Add code previously in
1433 v850_target_architecture_hook().
1434 (_initialize_v850_tdep): Don't set target_architecture_hook.
1435 Call register_gdbarch_init() instead.
1437 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1439 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1440 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1441 (fixup_class_method_type): Likewise.
1443 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1445 From Martin Pool <mbp@samba.org>:
1446 * gdbserver/server.c (gdbserver_usage): New function.
1449 2002-05-15 Jim Blandy <jimb@redhat.com>
1451 Add macro structures to GDB's symbol tables. Nobody puts anything
1453 * symtab.h (struct symtab): New member: `macro_table'.
1454 * buildsym.h (pending_macros): New global variable.
1455 * buildsym.c: #include "macrotab.h".
1456 (buildsym_init): Initialize `pending_macros'.
1457 (end_symtab): If we found macro information while reading a CU's
1458 debugging info, do build a symtab structure for it. Make the
1459 symtab point to the macro information, and clear the
1460 `pending_macros' pointer which held it while we were reading the
1462 (really_free_pendings): Free any pending macro table.
1463 * objfiles.h (struct objfile): New member: `macro_cache'.
1464 * objfiles.c (allocate_objfile): Set allocate and free functions
1465 for the macro cache's objstack.
1466 (free_objfile): Empty the macro cache's obstack.
1467 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1468 set new allocate and free functions for it.
1469 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1470 free functions for the macro cache's objstack. (Why is this
1471 function building its own objfile?)
1472 * symmisc.c (print_objfile_statistics): Print statistics on the
1474 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1476 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1478 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1479 (REGISTER_U_ADDR): Delete definition.
1480 (arm_register_u_addr): Delete declaration.
1482 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1484 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1485 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1487 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1489 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1492 2002-05-14 Andrew Cagney <ac131313@redhat.com>
1494 * regcache.c (register_valid): Revise comments refering to "Not
1495 available" and "unavailable".
1496 * frame.c (frame_register_read): Ditto.
1497 * findvar.c (value_of_register): Ditto.
1499 2002-05-15 Andrew Cagney <cagney@redhat.com>
1501 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1502 (remote-sim.o): Update dependencies.
1503 (d10v-tdep.o): Specify dependencies.
1504 (sim_d10v_h): Define.
1506 2002-05-14 Jim Blandy <jimb@redhat.com>
1508 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1509 * macrotab.c (macro_lookup_inclusion, find_definition,
1510 new_macro_table): Same.
1512 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1513 not `! strcmp ()'. This is a dubious improvement.
1514 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1516 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1517 although it's not necessary, to avoid a warning.
1519 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1521 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1522 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1523 TYPE_INSTANCE_FLAGS.
1524 (struct main_type): New.
1525 (struct type): Move most members to struct main_type. Change
1526 cv_type and as_type to new type_chain member. Add instance_flags.
1527 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1528 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1529 (finish_cv_type): Remove prototype.
1530 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1532 (alloc_type_instance): New function.
1533 (smash_type): New function.
1534 (make_pointer_type, make_reference_type, make_function_type)
1535 (smash_to_member_type, smash_to_method_type): Call smash_type.
1536 (make_qualified_type): New function.
1537 (make_type_with_address_space): Call make_qualified_type.
1538 (make_cv_type): Likewise.
1539 (finish_cv_type): Remove unnecessary function.
1540 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1541 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1542 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1543 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1544 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1545 * hpread.c (hpread_read_struct_type): Likewise.
1546 * stabsread.c (read_struct_type): Likewise.
1548 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
1550 * configure.tgt: Add a catch all sh* target, for cases like
1551 sh[2,3,4]-elf and sh-hms.
1553 2002-05-14 Keith Seitz <keiths@redhat.com>
1555 * event-loop.c (create_file_handler): Don't do anything but
1556 update data when we are given a fd which we are already
1559 2002-05-14 Michal Ludvig <mludvig@suse.cz>
1561 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1562 (update_context): Use __func__ in warnings.
1564 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1566 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1567 and tcp_close to net_open and net_close.
1568 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1569 using UDP if requested. Don't try to disable Nagle on UDP
1571 * remote.c (remote_serial_open): New function. Warn about UDP.
1572 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1574 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1576 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1578 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1580 * configure.tgt: Remove sh-hms target.
1581 * MAINTAINERS: Don't list sh-hms as a separate target.
1583 2002-05-13 Jim Blandy <jimb@redhat.com>
1585 Add first preprocessor macro-expansion files.
1586 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1587 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1588 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1589 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1590 (COMMON_OBS): Add macrotab.o, macroexp.o.
1591 (macroexp.o, macrotab.o): New rules.
1593 2002-05-13 Andrew Cagney <ac131313@redhat.com>
1595 * config/m88k/tm-m88k.h: Update copyright.
1596 (m88k_target_write_pc): Declare
1597 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1598 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1599 (SHIFT_INST_REGS): Update definition.
1600 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1601 using old definition of TARGET_WRITE_PC.
1602 * regcache.c (generic_target_write_pc): Delete code handling
1604 * gdbarch.sh (NNPC_REGNUM): Delete.
1605 * gdbarch.h, gdbarch.c: Regenerate.
1607 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
1609 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1612 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
1614 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1615 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1616 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1618 * c-typeprint.c (cp_type_print_method_args): Likewise.
1619 (c_type_print_args): Likewise.
1620 * d10v-tdep.c (d10v_push_arguments): Likewise.
1621 (d10v_extract_return_value): Likewise.
1622 * expprint.c (print_subexp): Likewise.
1623 * gdbtypes.c (lookup_primitive_typename): Likewise.
1624 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1625 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1626 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1627 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1628 (TYPE_VECTOR): Likewise.
1629 * hpread.c (hpread_read_struct_type)
1630 (fix_static_member_physnames, fixup_class_method_type)
1631 (hpread_type_lookup): Likewise.
1632 * mdebugread.c (parse_symbol, parse_type): Likewise.
1633 * p-lang.c (is_pascal_string_type): Likewise.
1634 * valops.c (hand_function_call): Likewise.
1635 * x86-64-tdep.c (classify_argument): Likewise.
1637 * hpread.c (hpread_read_function_type)
1638 (hpread_read_doc_function_type): Call replace_type.
1639 * dstread.c (create_new_type): Delete.
1640 (decode_dst_structure, process_dst_function): Call alloc_type.
1641 Use type access macros.
1643 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1645 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1646 the're not supported by the current architecture.
1647 (i387_fill_fxsave): Likewise.
1649 2002-05-12 Fred Fish <fnf@redhat.com>
1651 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1652 sect_index_xxx members to index the first slot in section_offsets
1653 if all of the section_offsets are zero.
1655 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1657 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1658 checked in with last change.
1660 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1662 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1663 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1666 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
1668 * Makefile.in: Update dependencies.
1670 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1672 * language.c (local_hex_string_custom): Simplify. Do not depend
1673 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1675 * memattr.c (mem_info_command): Replace calls to
1676 longest_local_hex_string and longest_local_hex_string_custom.
1677 * buildsym.c (make_blockvector): Ditto.
1678 * solib.c (info_sharedlibrary_command): Ditto.
1679 * tracepoint.c (tracepoints_info): Ditto.
1680 * symtab.c (print_msymbol_info): Ditto.
1682 * language.c (local_hex_string): Delete.
1683 (local_hex_string_custom): Delete.
1684 (longest_local_hex_string): Rename to local_hex_string.
1685 (longest_local_hex_string_custom): Rename to
1686 local_hex_string_custom.
1687 * language.h (local_hex_string): Change parameter type to LONGEST.
1688 (local_hex_string_custom): Ditto.
1689 (longest_local_hex_string): Delete declaration.
1690 (longest_local_hex_string_custom): Ditto.
1692 * solib.c: Update copyright.
1693 * memattr.c: Update copyright.
1695 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1697 * arch-utils.h (legacy_register_to_value): Declare.
1698 (legacy_value_to_register): Declare.
1699 (legacy_convert_register_p): Declare.
1700 * arch-utils.c (legacy_register_to_value): New function.
1701 (legacy_value_to_register): New function.
1702 (legacy_convert_register_p): New function.
1704 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1705 (VALUE_TO_REGISTER): Define.
1706 (CONVERT_REGISTER_P): Define.
1707 * gdbarch.h, gdbarch.c: Regenerate.
1709 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1711 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1714 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
1715 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1717 * Makefile.in: Update dependencies for valops.c.
1718 * valops.c: Include "gdb_assert.h".
1719 (typecmp): Skip THIS parameter to methods.
1720 (find_method_list): Remove static_memfuncp argument,
1721 update callers. Check for stub methods.
1722 (find_value_oload_method_list): Don't set *static_memfuncp.
1723 (find_overload_match): Don't check for stub methods. Assert
1724 that methods are not stubbed. Handle static methods.
1725 (value_find_oload_method_list): Remove static_memfuncp argument.
1726 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1727 to the argument list for static stub methods.
1728 * value.h (value_find_oload_method_list): Update prototype.
1730 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1732 * arch-utils.h (generic_register_size): Declare.
1733 (generic_register_raw_size, generic_register_virtual_size): Delete
1735 * arch-utils.c (generic_register_raw_size): Delete.
1736 (generic_register_size): New function.
1737 (generic_register_virtual_size): Delete.
1739 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1740 default generic_register_size.
1741 * gdbarch.h, gdbarch.c: Re-generate.
1743 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1744 register_virtual_size.
1745 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1746 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1748 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1750 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1751 * gdbarch.h, gdbarch.c: Regenerate.
1752 * gnu-v3-abi.c: Update copyright.
1753 (vtable_address_point_offset): Update.
1754 (gnuv3_rtti_type): Update.
1755 (gnuv3_baseclass_offset): Update.
1756 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1757 (init_fetch_link_map_offsets): Update.
1758 * remote.c (get_remote_state): Update.
1760 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1762 * TODO: Remove value_headof/value_from_vtable_info comment.
1763 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1764 * values.c (value_headof, value_from_vtable_info): Delete.
1765 * value.h (value_from_vtable_info): Delete prototype.
1767 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1769 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1770 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1772 (gdb_assert_h): Define.
1773 (gdb_wait_h): Define.
1774 (gdb_regex_h): Define.
1776 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1778 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1779 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1781 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1783 * nbsd-tdep.c: Fix comment.
1785 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1787 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1788 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1789 (nbsd-tdep.o): New dependency list.
1790 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1792 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1793 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1794 * nbsd-tdep.c: New file.
1795 * nbsd-tdep.h: New file.
1796 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1798 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1799 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1800 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1801 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1803 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1805 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1806 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1807 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1808 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1809 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1810 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1812 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1814 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1815 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1816 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1817 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1818 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1819 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1820 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1822 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1824 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1825 fetch_elfcore_registers to...
1826 * i386nbsd-tdep.c: ...here.
1827 (i386nbsd_use_struct_convention): Rename to...
1828 (i386nbsd_aout_use_struct_convention): ...this.
1829 (i386nbsd_supply_reg): New function.
1830 (i386nbsd_fill_reg): New function.
1831 (fetch_core_registers): Use i386nbsd_supply_reg.
1832 (fetch_elfcore_registers): Likewise.
1833 (_initialize_i386nbsd_tdep): New function.
1834 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1835 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1836 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1837 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1838 (i386nbsd_aout_use_struct_convention): ...this.
1840 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1842 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1843 (store_inferior_registers): Use shnbsd_fill_reg.
1844 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1845 sh_nbsd_supply_register): Collapse into...
1846 (shnbsd_supply_reg): ...this.
1847 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1848 (shnbsd_fill_reg): ...this.
1849 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1850 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1851 (fetch_core_registers): Use shnbsd_supply_reg.
1852 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1853 (sh_nbsd_core_fns): Rename to...
1854 (shnbsd_core_fns): ...this.
1855 (sh_nbsd_elfcore_fns): Rename to...
1856 (shnbsd_elfcore_fns): ...this.
1857 (sh_nbsd_init_abi): Rename to...
1858 (shnbsd_init_abi): ...this.
1859 (_initialize_sh_nbsd_tdep): Rename to...
1860 (_initialize_shnbsd_tdep): ...this.
1861 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1862 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1863 sh_nbsd_fill_register): Remove prototypes.
1864 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1866 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1868 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1869 (i387-nat.o): Delete dependency list.
1870 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1871 (x86-64-linux-nat.o): Likewise.
1872 * i387-nat.c: Delete file, moving contents to...
1873 * i387-tdep.c: ...here.
1874 * i387-nat.h: Rename...
1875 * i387-tdep.h: ...to this.
1876 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1877 * i386-linux-nat.c: Likewise.
1878 * i386bsd-nat.c: Likewise.
1879 * i386gnu-nat.c: Likewise.
1880 * i386nbsd-nat.c: Likewise.
1881 * i386v4-nat.c: Likewise.
1882 * x86-64-linux-nat.c: Likewise.
1883 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1884 * config/i386/go32.mh (NATDEPFILES): Likewise.
1885 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1886 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1887 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1888 * config/i386/linux.mh (NATDEPFILES): Likewise.
1889 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1890 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1891 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1892 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1894 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1896 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1897 (alphanbsd-nat.o): Remove dependency list.
1898 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1899 * alphanbsd-nat.c: Delete. Contents moved to...
1900 * alphanbsd-tdep.c: ...here.
1901 (_initialize_alphanbsd_tdep): Register core functions.
1902 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1904 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1906 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1907 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1908 (alphanbsd-nat.o): Likewise.
1909 (alphabsd-tdep.o): New dependency list.
1910 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1911 (fill_gregset): Use alphabsd_fill_reg.
1912 (supply_fpregset): Use alphabsd_supply_fpreg.
1913 (fill_fpregset): Use alphabsd_fill_fpreg.
1914 (fetch_inferior_registers): Use struct reg and struct fpreg
1915 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1916 and alphabsd_supply_fpreg.
1917 (store_inferior_registers): Use struct reg and struct fpreg
1918 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1919 and alphabsd_fill_fpreg.
1920 * alphabsd-tdep.c: New file.
1921 * alphabsd-tdep.h: New file.
1922 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1923 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1924 alphabsd_supply_fpreg.
1925 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1926 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1928 2002-05-11 Eric Christopher <echristo@redhat.com>
1930 * mips-tdep.c (mips_double_register_type): Fix thinko.
1931 (mips_single_register_type): Ditto.
1932 * MAINTAINERS: Add self.
1934 2002-05-11 Mark Kettenis <kettenis@gnu.org>
1936 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1937 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1938 right thing on architectures with different endianness and/or
1941 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1943 From Christian Limpach <chris@Pin.LU>
1944 * configure.in: Change sed expression which comments out
1945 NATDEPFILES to also comment out continuation lines.
1946 * configure: Regenerate.
1948 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1950 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1953 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1955 * sh-tdep.c: Include correct file.
1957 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1959 New support for sh64-elf (sh5) target.
1961 * configure.tgt: For sh64-elf target, default to sh-elf.
1963 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1964 (struct gdbarch_tdep): Add new fields for new registers and ABI
1967 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1968 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1969 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1970 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1971 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1972 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1973 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1974 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1975 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1976 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1977 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1978 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1979 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1980 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1981 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1982 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1983 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1984 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1985 sign_extend, sh64_nofp_frame_init_saved_regs,
1986 sh64_init_extra_frame_info, sh64_get_saved_register,
1987 sh64_extract_struct_value_address, sh64_pop_frame,
1988 sh64_push_arguments, sh64_extract_return_value,
1989 sh64_store_return_value, sh64_show_media_regs,
1990 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1991 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
1992 sh_sh64_register_virtual_type,
1993 sh_sh64_register_convert_to_virtual,
1994 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
1995 sh64_register_read, sh64_pseudo_register_write,
1996 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1997 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1998 sh64_do_pseudo_register, sh_compact_do_registers_info,
1999 sh64_do_registers_info, sh_gdbarch_init): New functions.
2001 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2003 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2005 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
2007 * linespec.c (decode_line_1): Check for a double quote after
2008 a filename correctly.
2010 2002-05-10 Jim Blandy <jimb@redhat.com>
2012 Properly track the size of the current objfile's .debug_line section.
2013 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2014 (DWARF_LINE_SIZE): New macro.
2015 (dwarf2_build_psymtabs_hard): Record the line section's size in
2016 the partial symbol table.
2017 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2020 2002-05-10 Petr Sorfa <petrs@caldera.com>
2022 * ia64-tdep.c: Handle breakpoints on L instruction type
2023 in MLX instruction bundle by moving the breakpoint to
2024 the third slot (X instruction type) as L holds only data.
2026 2002-05-10 Kevin Buettner <kevinb@redhat.com>
2028 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2029 (process_one_symbol): Complain about discarding local symbols
2030 due to a misplaced N_LBRAC entry.
2032 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
2034 From Daniel Berlin <dan@cgsoftware.com>
2035 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2036 decrease the depth we are at, in the case of templates.
2038 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2040 * mips-tdep.c (mips_float_register_type): New function.
2041 (mips_double_register_type): New function.
2042 (mips_print_register): Use them.
2043 (do_fp_register_row): Likewise.
2045 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2047 * signals/signals.c (signals): Remove conditional compilation around
2048 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
2049 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2051 2002-05-09 Michael Snyder <msnyder@redhat.com>
2053 * remote-rdp.c (remote_rdp_can_run): Remove.
2055 2002-05-09 Tom Tromey <tromey@redhat.com>
2057 * jv-valprint.c (java_val_print): Handle `char' as a special case
2060 2002-05-09 Michael Snyder <msnyder@redhat.com>
2062 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2063 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2064 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2065 str r(0123),[sp,#nn].
2066 (arm_skip_prologue): Ditto. Also make disassembly
2067 order-independent by placing it in a loop.
2069 2002-05-06 Michael Snyder <msnyder@redhat.com>
2071 * stabsread.c (read_type): Add recognition for new attribute:
2072 "@V;" means that an array type is actually a vector.
2073 This is analogous to the vector flag that's been added to dwarf2.
2075 2002-05-09 Mark Kettenis <kettenis@gnu.org>
2077 * i386-tdep.h (i386_abi): New enum.
2078 (struct gdbarch_tdep): Replace os_ident member with abi.
2079 (i386_gdbarch_register_os_abi): New prototype.
2080 * i386-tdep.c (i386_abi_names): New array.
2081 (process_note_abi_tag_sections): Removed.
2082 (process_note_sections): New function.
2083 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2084 (struct i386_abi_handler): New struct.
2085 (i386_abi_handler_list): New variable.
2086 (i386_gdbarch_register_os_abi): New function.
2087 (i386_gdbarch_init): Adapt for the changes given above.
2089 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
2091 * gregset.h: Say "GNU/Linux".
2093 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
2095 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2096 (build_gdbtypes): Build builtin_type_v2_float.
2097 (_initialize_gdbtypes): Register new builtin type.
2099 2002-05-08 Andrew Cagney <ac131313@redhat.com>
2101 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2102 (clear_gdbarch_swap): New function.
2103 (initialize_non_multiarch): Call.
2104 (gdbarch_update_p): Before calling init(), swap out and clear the
2105 existing architecture.
2106 * gdbarch.c: Regenerate.
2108 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2110 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2113 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2115 * sh-nbsd-nat.c: Rename to...
2116 * shnbsd-nat.c: ...this.
2117 * sh-nbsd-tdep.c: Rename to...
2118 * shnbsd-tdep.c: ...this.
2119 * sh-nbsd-tdep.h: Rename to...
2120 * shnbsd-tdep.h: ...this.
2121 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2122 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2124 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
2126 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2127 concatenation for command help messages.
2129 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2131 * NEWS: Note new sh*-*-netbsdelf* configuration.
2132 * configure.host: Set gdb_host_cpu to sh for all sh*.
2133 (sh*-*-netbsdelf*): New host.
2134 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2135 (sh*-*-netbsdelf*): New target.
2136 * sh-nbsd-nat.c: New file.
2137 * sh-nbsd-tdep.c: New file.
2138 * sh-nbsd-tdep.h: New file.
2139 * config/sh/nbsd.mh: New file.
2140 * config/sh/nbsd.mt: New file.
2141 * config/sh/nm-nbsd.h: New file.
2142 * config/sh/tm-nbsd.h: New file.
2144 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2146 * sh-tdep.c (sh_osabi_names): Declare.
2147 (process_note_abi_tag_sections): New function.
2148 (get_elfosabi): Ditto.
2149 (sh_gdbarch_register_os_abi): Ditto.
2150 (sh_dump_tdep): Ditto.
2151 _initialize_sh_tdep): Use gdbarch_register to register
2152 sh_gdbarch_init and sh_dump_tdep.
2153 * config/sh/tm-sh.h (sh_osabi): Declare.
2154 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2156 2002-05-07 Andrew Cagney <ac131313@redhat.com>
2158 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2159 (thumb_scan_prologue): Ditto.
2160 (arm_find_callers_reg): Ditto.
2161 (arm_frame_chain): Ditto.
2162 (arm_init_extra_frame_info): Ditto.
2163 (arm_frame_saved_pc): Ditto.
2164 (arm_pop_frame): Ditto.
2165 (arm_push_return_address): New function.
2166 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2167 call_dummy_location, call_dummy_breakpoint_offset_p,
2168 call_dummy_breakpoint_offset, call_dummy_p,
2169 call_dummy_stack_adjust_p, call_dummy_words,
2170 sizeof_call_dummy_words, call_dummy_start_offset,
2171 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2172 call_dummy_address, push_return_address and push_dummy_frame for
2173 generic dummy frames.
2175 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2177 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2178 size computation for alloca.
2179 (sh_fp_frame_init_saved_regs): Likewise.
2181 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
2183 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2184 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2185 * arm-tdep.c (arm_store_return_value): Use them.
2186 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2187 * remote-rdp.c (remote_rdp_fetch_register): Use
2188 ARM_MAX_REGISTER_RAW_SIZE.
2189 (remote_rdp_store_register): Likewise.
2191 2002-05-07 Michal Ludvig <mludvig@suse.cz>
2193 * dwarf2cfi.c: Code cleanup, removed unused variables,
2194 added default labels to switch {} statements.
2195 * x86-64-tdep.c: Ditto.
2196 * x86-64-linux-nat.c: Ditto.
2198 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2200 * solib.h: Protect against multiple inclusion.
2202 2002-05-06 Jim Blandy <jimb@redhat.com>
2204 Add first preprocessor macro-expansion files.
2205 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2206 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2207 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2208 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2209 (COMMON_OBS): Add macrotab.o, macroexp.o.
2210 (macroexp.o, macrotab.o): New rules.
2212 Separate the job of reading the line number info statement program
2213 header (...expialidocious) out into its own function.
2214 * dwarf2read.c (struct line_head, struct filenames, struct
2215 directories): Replace with...
2216 (struct line_header): New structure, containing the full
2217 contents of the statement program header, including the
2218 include directory and file name tables.
2219 (read_file_scope): If we have line number info, instead of just
2220 calling dwarf_decode_lines to do all the work, call
2221 dwarf_decode_line_header first to get a `struct line_header'
2222 containing the data in the statement program header, and then
2223 pass that to dwarf_decode_lines, which will pick up where that
2224 left off. Be sure to clean up the `struct line_header' object.
2225 (dwarf_decode_line_header, free_line_header, add_include_dir,
2226 add_file_name): New functions.
2227 (dwarf_decode_lines): Move all the code to read the statement
2228 program header into dwarf_decode_line_header. Take the line
2229 header it built as the first argument, instead of the offset to
2230 the compilation unit's line number info. Use the new `struct
2231 line_header' type instead of the old structures. No need to do
2232 cleanups here now, since we don't allocate anything.
2233 (dwarf2_statement_list_fits_in_line_number_section,
2234 dwarf2_line_header_too_long): New complaints.
2236 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
2238 * gdbtypes.c (init_vector_type): New function.
2239 (build_builtin_type_vec128): Simplify the representation of SIMD
2241 (build_gdbtypes): Initialize new builtin vector types.
2242 (_initialize_gdbtypes): Register new vector types with gdbarch.
2243 (builtin_type_v4_float, builtin_type_v4_int32,
2244 builtin_type_v8_int16, builtin_type_v16_int8,
2245 builtin_type_v2_int32, builtin_type_v4_int16,
2246 builtin_type_v8_int8): New (renamed) SIMD types.
2248 2002-05-06 Mark Kettenis <kettenis@gnu.org>
2250 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2251 (i387_fill_fxsave): Likewise.
2253 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
2255 * alpha-tdep.c (alpha_extract_return_value): Don't use
2256 non-constant array size in prototype.
2258 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2260 From Brian Taylor <briant at model dot com>:
2261 * ui-out.c (ui_out_field_core_addr): Use the function
2262 longest_local_hex_string_custom'to format addresses > 32 bits
2265 * ui-out.c (ui_out_field_core_addr): Update comment.
2267 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2269 * stack.c (select_and_print_frame): Make static. Delete the
2271 (func_command): Update call.
2272 (select_frame_command): Delete code computing the frame level.
2273 * frame.h (select_and_print_frame): Delete declaration.
2275 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2277 * sparc-tdep.c (sparc_get_saved_register): Comment why
2278 get_prev_frame call is safe.
2280 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2282 * frame.h (select_frame): Delete level parameter.
2283 * stack.c (select_frame): Update. Use frame_relative_level to
2284 obtain the frame's level.
2285 (select_and_print_frame): Update call.
2286 (select_frame_command): Ditto.
2287 (up_silently_base): Ditto.
2288 (down_silently_base): Ditto.
2289 * ocd.c (ocd_start_remote): Ditto.
2290 * remote-rdp.c (remote_rdp_open): Ditto.
2291 * remote-mips.c (mips_initialize): Ditto.
2292 (common_open): Ditto.
2293 * remote-e7000.c (e7000_start_remote): Ditto.
2294 * m3-nat.c (select_thread): Ditto.
2295 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2296 (child_get_current_exception_event): Ditto.
2297 * varobj.c (varobj_create): Ditto.
2298 (varobj_update): Ditto.
2299 (c_value_of_root): Ditto.
2300 * tracepoint.c (finish_tfind_command): Ditto.
2301 * corelow.c (core_open): Ditto.
2302 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2303 * thread.c (info_threads_command): Ditto.
2304 (switch_to_thread): Ditto.
2305 * infrun.c (normal_stop): Ditto.
2306 (restore_selected_frame): Ditto.
2307 (restore_inferior_status): Ditto.
2308 * breakpoint.c (insert_breakpoints): Ditto.
2309 (watchpoint_check): Ditto.
2310 (bpstat_stop_status): Ditto.
2311 (do_enable_breakpoint): Ditto.
2312 * blockframe.c (flush_cached_frames): Ditto.
2313 (reinit_frame_cache): Ditto.
2315 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2317 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2320 2002-05-04 Jim Blandy <jimb@redhat.com>
2322 * gdbtypes.c (replace_type): Doc fix.
2324 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2326 * valprint.c (strcat_longest): Delete commented out function.
2329 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2331 * MAINTAINERS: Mark a29k as deleted.
2332 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2333 Move new configurations to the top.
2334 * configure.tgt: Remove a29k.
2335 * config/a29k/tm-vx29k.h: Delete.
2336 * config/a29k/vx29k.mt: Delete.
2337 * config/a29k/tm-a29k.h: Delete.
2338 * config/a29k/a29k-udi.mt: Delete.
2339 * config/a29k/a29k.mt: Delete.
2340 * a29k-tdep.c: Delete.
2341 * remote-udi.c: Delete.
2342 * remote-mm.c: Delete.
2343 * remote-eb.c: Delete.
2344 * remote-adapt.c: Delete.
2345 * Makefile.in: Remove obsolete code.
2346 * gdbserver/Makefile.in: Ditto.
2347 * config/s390/s390x.mt: Ditto.
2348 * config/s390/s390.mt: Ditto.
2349 * config/sparc/sparclynx.mh: Ditto.
2350 * config/sparc/linux.mh: Ditto.
2351 * config/pa/hppaosf.mh: Ditto.
2352 * config/pa/hppabsd.mh: Ditto.
2353 * config/ns32k/nbsd.mt: Ditto.
2354 * config/mips/vr5000.mt: Ditto.
2355 * config/m68k/sun3os4.mh: Ditto.
2356 * config/m68k/nbsd.mt: Ditto.
2357 * config/m68k/m68klynx.mh: Ditto.
2358 * config/m32r/m32r.mt: Ditto.
2359 * config/i386/x86-64linux.mt: Ditto.
2360 * config/i386/nbsdelf.mt: Ditto.
2361 * config/i386/nbsd.mt: Ditto.
2362 * config/i386/i386lynx.mh: Ditto.
2364 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2366 * target.c (debug_print_register): New function. Handle oversize
2368 (debug_to_fetch_registers): Call.
2369 (debug_to_store_registers): Call.
2371 2002-05-03 Jim Blandy <jimb@redhat.com>
2373 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2374 (read_type): Doc fix.
2375 * gdbtypes.c (replace_type): Doc fix.
2377 * stabsread.c (multiply_defined_struct): New complaint.
2378 (read_struct_type): If the type we were passed isn't empty, or
2379 incomplete, don't read the new struct type into it; complain,
2380 and return the original type unchanged. Take a new `type_code'
2381 argument, which is the type code for the new type.
2382 (read_type): Rather than storing the type's type code here, pass
2383 it as an argument to read_struct_type, and let that take care of
2384 storing it. That way, we don't overwrite the original type code,
2385 so read_struct_type can use it to decide whether we're overwriting
2386 something we shouldn't.
2387 (complain_about_struct_wipeout): New function.
2389 2002-05-03 Andrew Cagney <ac131313@redhat.com>
2391 * gdbarch.sh: Assert that gdbarch is non-NULL.
2392 * gdbarch.c: Regenerate.
2394 2002-05-03 Jason Merrill <jason@redhat.com>
2396 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2399 2002-05-03 Michal Ludvig <mludvig@suse.cz>
2401 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2402 (x86_64_dwarf2gdb_regno_map_length),
2403 (x86_64_dwarf2_reg_to_regnum): Added.
2404 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2405 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2406 (_initialize_x86_64_tdep): Synced with the change above.
2407 (x86_64_skip_prologue): Reformulated message.
2409 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2411 * f-exp.y: Also use new prev_lexptr variable
2412 to improve error reporting. Based on Michael Snyder
2413 2002-04-24 dated patch to c-exp.y.
2414 * jv-exp.y: Likewise.
2415 * m2-exp.y: Likewise.
2417 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
2419 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2420 we are dealing with vectors.
2422 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2424 * config/m68k/tm-nbsd.h: Obvious fix,
2425 correct machine name.
2427 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2429 * p-typeprint.c (pascal_type_print_base): Add support
2430 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2432 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2434 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2435 for fondamental pascal 'char' type.
2437 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2439 * p-lang.h (is_pascal_string_type): Declaration changed,
2440 new sixth argument of type char ** added.
2441 * p-lang.c (is_pascal_string_type): Implementation
2442 changed. Args length_pos, length_size, string_pos, char_size
2443 can now be NULL. New argument arrayname set to the field
2444 name of the char array. Return value set to char array
2445 field index plus one.
2446 * p-valprint.c (pascal_val_print): Adapt to new declaration of
2447 is_pascal_string_type function.
2449 2002-05-02 Andrew Cagney <cagney@redhat.com>
2451 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2452 <cagney@redhat.com> change.
2453 * gdbarch.c: Regenerate.
2455 2002-05-02 Andrew Cagney <cagney@redhat.com>
2457 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2458 before probing for a new one. Detect errorenous gdbarch_init
2460 * gdbarch.c: Regenerate.
2462 2002-05-01 Andrew Cagney <cagney@redhat.com>
2464 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2465 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2466 * config/v850/tm-v850.h: Ditto. Update copyright.
2468 2002-04-30 Andrew Cagney <ac131313@redhat.com>
2470 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2473 2002-04-30 Michael Snyder <msnyder@redhat.com>
2475 * arm-tdep.c: Whitespace clean-ups.
2476 (arm_skip_prologue): Fix thinko; two lines
2477 should have been removed as part of 4/24 change.
2479 2002-04-30 Kevin Buettner <kevinb@redhat.com>
2481 * rs6000-tdep.c: Added comment describing how fpscr register
2482 numbers were chosen.
2484 2002-04-30 Michael Snyder <msnyder@redhat.com>
2486 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2488 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2490 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2491 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2492 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2494 2002-04-29 Kevin Buettner <kevinb@redhat.com>
2496 From Louis Hamilton <hamilton@redhat.com>:
2497 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2498 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2499 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2500 not bfd-private xcoff data, to determine wordsize.
2501 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2503 2002-04-29 Andrew Cagney <ac131313@redhat.com>
2505 GDB 5.2 released from 5.2 branch.
2507 2002-04-29 Michal Ludvig <mludvig@suse.cz>
2509 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2510 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2511 (x86_64_register_info_table): Added comments with register numbers.
2513 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2515 * rs6000-tdep.c (rs6000_extract_return_value,
2516 rs6000_store_return_value): Handle returning vectors.
2517 (rs6000_gdbarch_init): Use
2518 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2519 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2521 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2523 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2524 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2526 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2528 * hpread.c (hpread_psymtab_to_symtab_1,
2529 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2530 with fprintf_unfiltered (gdb_stderr,...).
2532 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2534 * remote-array.c (printf_monitor, write_monitor,
2535 array_insert_breakpoint, array_remove_breakpoint ):
2536 Replace fprintf (stderr,...
2537 with fprintf_unfiltered (gdb_stderr,....
2538 * remote-es.c: Likewise.
2539 * remote-os9k.c: Likewise.
2540 * remote-st.c: Likewise.
2542 2002-04-28 Andreas Schwab <schwab@suse.de>
2544 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2545 linux-proc.o and gcore.o.
2547 2002-04-26 Michal Ludvig <mludvig@suse.cz>
2549 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2550 code without frame pointers.
2552 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2554 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2557 2002-04-26 Ben Elliston <bje@redhat.com>
2559 * target.c (do_xfer_memory): Correct reference to the new option
2560 "trust-readonly-sections".
2562 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
2564 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2565 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2566 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2568 (read_array_type): Record the fact that this array type is really a
2569 vector (i.e. are passed in by value).
2571 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2573 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2574 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2575 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2576 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2577 * alpha-linux-tdep.c: Include frame.h.
2578 (alpha_linux_sigcontext_addr): New function.
2579 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2580 alpha_linux_sigcontext_addr.
2581 * alpha-osf1-tdep.c: Include gdbcore.h.
2582 (alpha_osf1_sigcontext_addr): New function.
2583 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2584 alpha_osf1_sigcontext_addr.
2585 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2586 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2588 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2590 * stack.c (selected_frame_level):
2591 (select_frame): Do not set selected_frame_level.
2592 * frame.h (selected_frame_level): Delete declaration.
2594 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2596 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2597 convert_from_func_ptr-addr when AIX / PowerOpen.
2599 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2601 * valops.c (hand_function_call): Call
2602 generic_save_call_dummy_addr.
2603 * frame.h (generic_save_call_dummy_addr): Declare.
2604 * blockframe.c (struct dummy_frame): Add fields call_lo and
2606 (generic_find_dummy_frame): Check for PC in range call_lo to
2607 call_hi instead of entry_point_address.
2608 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2609 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2610 (generic_save_call_dummy_addr): New function.
2612 2002-04-24 David S. Miller <davem@redhat.com>
2614 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2615 sparc_skip_prologue.
2616 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2617 information to find prologue when possible.
2618 (sparc_prologue_frameless_p): Call examine_prologue directly.
2619 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2620 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2622 (SKIP_PROLOGUE): Likewise.
2624 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2626 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2627 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2628 indicate that the condition it was testing is always true.
2629 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2630 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2631 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2633 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2635 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2636 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2637 tdep->jb_pc and tdep->jb_elt_size.
2638 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2639 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2640 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2641 * alpha-nat.c (get_longjmp_target): Remove.
2642 (JB_ELEMENT_SIZE): Ditto.
2644 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2645 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2646 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2647 to alpha_get_longjmp_target.
2648 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2649 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2650 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2652 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2654 * README: Update to GDB 5.2.
2656 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2658 * gdbarch.sh (LC_ALL): Set to `c'.
2660 2002-04-25 Theodore A. Roth <troth@verinet.com>
2662 * avr-tdep.c: Ran through gdb_indent.sh.
2664 2002-04-25 Theodore A. Roth <troth@verinet.com>
2666 * MAINTAINERS: Add myself as AVR maintainer.
2667 * NEWS: Note new target avr.
2669 2002-04-25 Theodore A. Roth <troth@verinet.com>
2671 * Makefile.in: Add support for AVR target.
2672 * configure.tgt: Add support for AVR target.
2673 * avr-tdep.c: New file
2674 * config/avr/avr.mt: New file.
2676 2002-04-25 Theodore A. Roth <troth@verinet.com>
2678 * MAINTAINERS: Add myself to write-after-approval.
2680 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2682 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2683 with fprintf_unfiltered (gdb_stderr,....
2685 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2688 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2690 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2692 * p-exp.y: Also use new prev_lexptr variable
2693 to improve error reporting. Based on Michael Snyder
2694 2002-04-24 dated patch to c-exp.y.
2696 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2698 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2699 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2700 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2702 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2704 (FUNCTION_START_OFFSET): Remove.
2705 (BREAKPOINT): Ditto.
2707 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2709 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2712 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2714 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2715 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2716 alpha_linux_pc_in_sigtramp.
2717 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2718 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2719 alpha_osf1_pc_in_sigtramp.
2720 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2721 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2722 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2723 alphafbsd_pc_in_sigtramp.
2724 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2725 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2726 alphanbsd_pc_in_sigtramp.
2727 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2728 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2730 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2732 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2734 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2736 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2738 (alphanbsd-nat.o): New dependency list.
2739 (alphanbsd-tdep.o): Ditto.
2740 * NEWS: Note new native NetBSD/alpha configuration.
2741 * alphanbsd-nat.c: New file.
2742 * alphanbsd-tdep.c: Ditto.
2743 * configure.host (alpha*-*-netbsd*): New host.
2744 * configure.tgt (alpha*-*-netbsd*): New target.
2745 * config/alpha/nbsd.mh: New file.
2746 * config/alpha/nbsd.mt: Ditto.
2747 * config/alpha/nm-nbsd.h: Ditto.
2748 * config/alpha/tm-nbsd.h: Ditto.
2750 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2752 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2753 (alpha-osf1-tdep.o): New dependency list.
2754 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2755 and skip_sigtramp_frame members.
2756 * alpha-linux-tdep.c: Include gdbcore.h.
2757 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2758 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2759 * alpha-osf1-tdep.c: New file.
2760 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2762 (alpha_frame_past_sigtramp_frame): New function.
2763 (alpha_dynamic_sigtramp_offset): Ditto.
2764 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2765 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2766 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2767 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2768 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2769 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2770 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2771 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2772 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2773 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2774 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2775 to find_solib_trampoline_target.
2776 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2777 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2778 (SKIP_TRAMPOLINE_CODE): Remove.
2779 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2780 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2781 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2782 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2783 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2784 (PROC_SIGTRAMP_MAGIC): Ditto.
2785 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2786 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2787 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2788 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2789 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2791 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2793 * NEWS: Note that Alpha targets are now multi-arch.
2795 2002-04-24 Michael Snyder <msnyder@redhat.com>
2797 * parser-defs.h (prev_lexptr): New external variable.
2798 * parse.c (parse_exp_1): Set prev_lexptr to null before
2799 calling the language-specific parser.
2800 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2801 (yyerror): Use prev_lexptr in error reporting.
2803 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
2805 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2806 * gregset.h: If FILL_FPXREGSET is defined, provide
2807 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2808 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2809 is defined, call fill_fpxregset.
2811 2002-04-24 Roland McGrath <roland@frob.com>
2813 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2814 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2815 (supply_gregset, supply_fpregset): New functions.
2817 * gnu-nat.c (gnu_find_memory_regions): New function.
2818 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2819 (gnu_xfer_memory): Add a cast.
2821 2002-04-24 Michael Snyder <msnyder@redhat.com>
2823 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
2824 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2825 of argument regs ("str r(0123), [r11, #-nn"]).
2826 (arm_skip_prologue): Better handling for frameless functions.
2827 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2828 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2830 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2832 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2833 NUM_PSEUDO_REGS can be used.
2835 2002-04-24 Andrew Cagney <ac131313@redhat.com>
2837 * arch-utils.h: Update copyright.
2839 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2840 * gdbarch.h, gdbarch.c: Re-generate.
2842 * inferior.h (IN_SIGTRAMP): Delete definition.
2843 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2844 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2846 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2847 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2848 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2849 (find_proc_framesize): Ditto.
2850 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2851 (alpha_init_extra_frame_info): Ditto.
2852 * infrun.c (handle_inferior_event): Ditto.
2853 (handle_inferior_event): Ditto.
2854 (check_sigtramp2): Ditto.
2855 * blockframe.c (create_new_frame): Ditto.
2856 (get_prev_frame): Ditto.
2857 * ppc-linux-tdep.c: Update comments.
2858 * i386-linux-tdep.c: Update comments.
2859 * breakpoint.c (bpstat_what): Update comment.
2861 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2863 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
2864 (regsets_store_inferior_registers): Removed cast to int from
2866 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2868 2002-04-24 David S. Miller <davem@redhat.com>
2870 * i960-tdep.c (register_in_window_p): New function.
2871 (i960_find_saved_register): Use it instead of
2872 REGISTER_IN_WINDOW_P.
2873 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2875 * symtab.h (find_stab_function_addr): Kill extern.
2876 * minsyms.c (find_stab_function_addr): Remove from here...
2877 * dbxread.c: ... to here, and mark it static.
2879 2002-04-20 David S. Miller <davem@redhat.com>
2881 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2882 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2884 2002-04-21 David S. Miller <davem@redhat.com>
2886 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2887 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2888 (vx_write_register): Likewise.
2890 2002-04-23 J. Brobecker <brobecker@gnat.com>
2892 * source.c (is_regular_file): New function.
2893 (openp): Check wether file to open is a regular file
2894 to avoid opening directories.
2896 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2898 * findvar.c (extract_signed_integer): Cast printf argument
2899 to suppress format warning.
2900 (extract_unsigned_integer): Likewise.
2901 * infcmd.c (registers_info): Likewise.
2902 * top.c (get_prompt_1): Likewise.
2903 * valops.c (value_assign): Likewise.
2904 * valprint.c (print_decimal): Likewise.
2906 2002-04-22 H.J. Lu (hjl@gnu.org)
2908 * c-exp.y (typebase): Support
2910 [long|long long|short] [signed|unsigned] [int|]
2914 signed [long|long long|short] int
2916 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2918 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2920 * vax-tdep.h: New file.
2921 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2922 Make several routines static.
2923 (vax_get_saved_register): New function.
2924 (vax_gdbarch_init): New function.
2925 (_initialize_vax_tdep): Register vax_gdbarch_init.
2926 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2927 Remove macros now under the control of gdbarch.
2929 2002-04-22 Michael Snyder <msnyder@redhat.com>
2931 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2932 Some whitespace and coding standards tweaks.
2934 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2936 * vax-tdep.c: Include regcache.h.
2937 (vax_call_dummy_words): New.
2938 (sizeof_vax_call_dummy_words): New.
2939 (vax_fix_call_dummy): New function.
2940 (vax_saved_pc_after_call): Ditto.
2941 * config/vax/tm-vax.h: Don't include regcache.h.
2942 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2943 (CALL_DUMMY): Remove.
2944 (CALL_DUMMY_WORDS): Define.
2945 (SIZEOF_CALL_DUMMY_WORDS): Define.
2946 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2948 2002-04-18 Michael Snyder <msnyder@redhat.com>
2950 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2952 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2954 * vax-tdep.c (vax_frame_chain): New function.
2955 (vax_push_dummy_frame): Ditto.
2956 (vax_pop_frame): Ditto.
2957 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2958 (FRAMELESS_FUNCTION_INVOCATION): Use
2959 generic_frameless_function_invocation_not.
2960 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2961 (POP_FRAME): Use vax_pop_frame.
2963 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2965 * vax-tdep.c (vax_store_struct_return): New function.
2966 (vax_extract_return_value): Ditto.
2967 (vax_store_return_value): Ditto.
2968 (vax_extract_struct_value_address): Ditto.
2969 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2970 vax_store_struct_return.
2971 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2972 (STORE_RETURN_VALUE): Use vax_store_return_value.
2973 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2975 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2977 * vax-tdep.c (vax_frame_saved_pc): New function.
2978 (vax_frame_args_address_correct): Ditto.
2979 (vax_frame_args_address): Ditto.
2980 (vax_frame_locals_address): Ditto.
2981 (vax_frame_num_args): Move code to be in proximity to
2982 other frame-related functions.
2983 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2984 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2985 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2986 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2987 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2989 2002-04-22 H.J. Lu (hjl@gnu.org)
2991 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
2994 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2996 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2997 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2998 (FRAME_INIT_SAVED_REGS): New macro.
3000 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3002 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3004 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3006 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3008 (fetch_osf_core_registers): Likewise.
3009 (supply_gregset): Likewise.
3011 2002-04-22 J. Brobecker <brobecker@gnat.com>
3013 * symfile.h (get_section_index): Define.
3014 * symfile.c (get_section_index): New function.
3015 * mdebugread.c (SC_IS_SBSS): New macro.
3016 (SC_IS_BSS): Return true for the scBss storage class only, as
3017 the scSBss storage class refers to the .sbss section.
3018 (parse_partial_symbols): Discard the symbols which associated
3019 section does not exist.
3020 Make sure to use the .sbss section index for symbols which
3021 storage class is scBss, rather than using the .bss section index.
3023 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3025 * vax-tdep.c: Update copyright years.
3026 (vax_register_name): New function.
3027 (vax_register_byte): Ditto.
3028 (vax_register_raw_size): Ditto.
3029 (vax_register_virtual_size): Ditto.
3030 (vax_register_virtual_type): Ditto.
3031 * config/vax/tm-vax.h: Update copyright years.
3032 (REGISTER_NAMES): Remove.
3033 (REGISTER_NAME): Define.
3034 (REGISTER_BYTE): Use vax_register_byte.
3035 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3036 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3037 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3039 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3041 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3043 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3045 2002-04-21 David S. Miller <davem@redhat.com>
3047 * arch-utils.c (generic_prologue_frameless_p): Kill
3048 SKIP_PROLOGUE_FRAMELESS_P code.
3049 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3051 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3052 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3053 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3055 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3056 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3057 (sparc_gdbarch_init): Pass it to
3058 set_gdbarch_prologue_frameless_p.
3060 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3062 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3063 (alphabsd-nat.o): New dependency list.
3065 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3067 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3069 (alpha-linux-tdep.o): New dependency list.
3070 (alphafbsd-tdep.o): Likewise.
3072 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3074 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3076 * alpha-tdep.c: ...from here.
3077 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3079 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3081 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3082 prototype from here...
3083 * alpha-tdep.h: ...to here.
3085 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3087 * frame.h (selected_frame_level): Document as deprecated.
3088 (frame_relative_level): Declare.
3089 * stack.c (frame_relative_level): New function.
3090 (selected_frame_level): Document as deprecated.
3091 (select_frame): Do not set the selected_frame_level.
3093 * stack.c (frame_info, record_selected_frame): Update.
3094 (frame_command, current_frame_command): Update.
3095 (up_silently_base, up_command, down_silently_base): Update.
3096 (down_command): Update.
3097 * inflow.c (kill_command): Update.
3098 * tracepoint.c (finish_tfind_command): Update.
3099 * corelow.c (core_open): Update.
3100 * thread.c (info_threads_command): Update.
3101 (do_captured_thread_select): Update.
3102 * infcmd.c (finish_command): Update.
3103 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3105 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3107 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3109 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3111 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3114 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3116 * alphafbsd-tdep.c: Update copyright years. Include
3118 (alphafbsd_use_struct_convention): Make static.
3119 (alphafbsd_init_abi): New function.
3120 (_initialize_alphafbsd_tdep): New function.
3121 * config/alpha/tm-fbsd.h: Update copyright years.
3122 (USE_STRUCT_CONVENTION): Remove.
3124 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3126 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3127 an Alpha ABI variant.
3128 (alpha_abi_handler_list): Declare.
3129 (alpha_gdbarch_register_os_abi): New function.
3130 (alpha_gdbarch_init): Give registered ABI variant handlers a
3131 chance to tweak the gdbarch once we have set up defaults.
3132 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3134 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3136 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3137 to standard_coerce_float_to_double.
3138 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3140 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3142 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3143 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3144 from gdbarch_tdep rather than a constant.
3145 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3146 the default text address for all Alpha Unix ABIs.
3147 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3148 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3150 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3152 * alpha-tdep.h: New file. Includes several Alpha target constants
3154 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3155 let gdbarch deal with.
3156 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3157 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3159 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3160 Alpha target register names.
3161 * alphabsd-nat.c: Likewise.
3162 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3163 Alpha target register names. Make serveral routines static.
3164 (alpha_get_saved_register): New function.
3165 (alpha_abi_names): New.
3166 (process_note_abi_tag_sections): New function.
3167 (get_elfosabi): New function.
3168 (alpha_gdbarch_init): New function.
3169 (alpha_dump_tdep): New function.
3170 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3172 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3174 * frame.c (find_saved_register): Delete #ifdef
3175 HAVE_REGISTER_WINDOWS code.
3176 * config/sparc/tm-sparc.h: Update comments.
3177 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3179 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3181 * i960-tdep.c (i960_find_saved_register): New function.
3182 (i960_get_saved_register): New function.
3183 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3184 (i960_get_saved_register): Declare.
3185 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3187 2002-04-20 David S. Miller <davem@redhat.com>
3189 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3191 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3193 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3194 instead of NUM_PSEUDO_REGS.
3196 2002-04-20 David S. Miller <davem@redhat.com>
3198 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3199 GDB_MULTI_ARCH_PARTIAL
3200 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3201 define, let tm-sp64.h do it.
3203 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
3205 * frame.c (find_saved_register): Avoid a NULL pointer
3206 dereference and actually walk the frame list.
3208 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3210 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3211 sorted in most most-recent-used order. Document.
3212 * gdbarch.h, gdbarch.c: Regenerate.
3214 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3216 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3217 (add_inferior): Call create_register_cache.
3218 (clear_inferiors): Call free_register_cache.
3219 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3220 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3221 (registers): Remove.
3222 (get_regcache): New function.
3223 (create_register_cache, free_register_cache): New functions.
3224 (set_register_cache): Don't initialize the register cache here.
3225 (registers_to_string, registers_from_string, register_data): Call
3227 * gdbserver/regcache.h: Add prototypes.
3228 * gdbserver/server.h: Likewise.
3230 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3232 * gdbserver/mem-break.c: New file.
3233 * gdbserver/mem-break.h: New file.
3234 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3236 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3238 (clear_inferiors): Free target_data member if set.
3239 (inferior_target_data, set_inferior_target_data): New functions.
3240 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3241 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3242 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3243 (struct inferior_linux_data): New.
3244 (linux_create_inferior): Use set_inferior_target_data.
3245 (linux_attach): Likewise. Call add_inferior.
3246 (linux_wait_for_one_inferior): New function.
3247 (linux_wait): Call it.
3248 (linux_write_memory): Add const.
3249 (initialize_low): Call set_breakpoint_data.
3250 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3252 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3254 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3256 * gdbserver/target.c (read_inferior_memory)
3257 (write_inferior_memory): New functions.
3258 * gdbserver/target.h (read_inferior_memory)
3259 (write_inferior_memory): Change macros to prototypes.
3260 (struct target_ops): Update comments. Add const to write_memory
3263 2002-04-19 Andrew Cagney <ac131313@redhat.com>
3265 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3267 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3268 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3269 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3272 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
3275 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3276 (build_builtin_type_vec128): Ditto.
3277 (append_composite_type_field): Fix calculation of type length in
3280 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3282 * config/djgpp/README: Update.
3284 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3287 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3289 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3290 (alpha_setup_arbitrary_frame): ...to this.
3291 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3292 for alpha_setup_arbitrary_frame.
3294 2002-04-18 Andrew Cagney <cagney@redhat.com>
3296 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3297 * gdbarch.h, gdbarch.c: Regenerate.
3299 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3300 * target.h (memory_breakpoint_from_pc): Update declaration.
3301 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3303 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3304 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3305 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3306 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3307 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3308 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3309 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3310 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3311 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3312 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3313 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3314 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3316 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3318 * monitor.c (monitor_insert_breakpoint): Ditto.
3319 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3321 * config/mcore/tm-mcore.h: Update copyright.
3322 * mem-break.c: Ditto.
3323 * xstormy16-tdep.c: Ditto.
3325 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3327 * p-exp.y: Add precedence rule for '^' token.
3328 This removes the shift/reduce conflicts.
3329 Remove the comment concerning these shift/reduce conflicts.
3331 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
3333 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3334 (registers_powerpc_nofp): New register set for processors
3335 without floating point unit.
3337 2002-04-18 David S. Miller <davem@redhat.com>
3339 * MAINTAINERS: Add myself to write-after-approval.
3341 2002-04-17 Michael Snyder <msnyder@redhat.com>
3343 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3345 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3347 * rs6000-tdep.c (frame_initial_stack_address): Use
3348 frame_register_read to read the alloca_reg.
3350 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3352 * frame.c (find_saved_register): Find saved registers in the next
3356 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3358 * gdbarch.sh (LANG): Set to ``c''.
3360 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3362 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3364 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3366 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3369 * hpread.c (hpread_get_lntt): Add declaration.
3370 Also fix PR gdb/391.
3372 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3374 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3375 * aclocal.m4, configure: Re-generate.
3378 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3380 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3381 instead of tm_print_insn.
3383 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3385 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3387 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3389 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3390 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3391 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3393 2002-04-12 Don Howard <dhoward@redhat.com>
3395 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3396 max_user_call_depth.
3397 (init_cmd_lists): Initialize the new value;
3398 * cli/cli-script.c (execute_user_command): Limit the call depth of
3399 user defined commands. This avoids a core-dump when user commands
3400 are infinitly recursive.
3402 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3404 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3405 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3406 from tdep struct instead of DEFAULT_LR_SAVE.
3407 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3408 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3409 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3411 2002-04-12 Michael Snyder <msnyder@redhat.com>
3413 * Remote.c: Spelling fix.
3414 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3415 If no symbol found for "sbrk", try "_sbrk".
3416 (make_output_phdrs): Use bfd_section_name.
3417 (gcore_copy_callback): Use bfd_section_name.
3418 * eval.c: Indentation fix-ups.
3419 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3420 in case it gets applied to an address that is already
3421 in the instruction space.
3422 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3423 * symfile.c: Fix indentation, long lines.
3424 * source.c: White space fix-up.
3426 2002-04-12 Andrew Cagney <cagney@redhat.com>
3428 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3429 * frame.c (frame_register_read): New function. Return non-zero on
3431 (read_relative_register_raw_bytes_for_frame): Delete.
3432 (read_relative_register_raw_bytes): Delete.
3433 * frame.h (frame_register_read): Declare.
3434 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3436 * infcmd.c (do_registers_info): Ditto.
3437 * hppa-tdep.c: Ditto.
3438 * rs6000-tdep.c: Ditto.
3439 * h8500-tdep.c: Ditto.
3440 * mips-tdep.c: Ditto.
3441 * h8300-tdep.c: Ditto.
3442 * z8k-tdep.c: Ditto.
3444 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3446 From Jimi X <jimix@watson.ibm.com>:
3447 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3450 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3452 From Jimi X <jimix@watson.ibm.com>:
3453 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3456 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3458 From Jimi X <jimix@watson.ibm.com>:
3459 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3460 register sets for these processor variants.
3462 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
3464 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3465 registers which are allowed to fail to store.
3466 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3467 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3468 (ppc_cannot_store_register): FPSCR may not be storable.
3469 * regformats/reg-ppc.dat: Support FPSCR.
3471 2002-04-11 Kevin Buettner <kevinb@redhat.com>
3473 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3474 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3475 Add fpscr as an invalid/unfetchable register.
3476 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3477 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3478 (fill_fpregset): Add support for register fpscr.
3479 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3480 (fill_gregset): Account for the fact that register ``mq'' might
3482 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3483 (registers_power): Add fpscr to register set at slot 71.
3484 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3485 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3487 2002-04-11 Michael Snyder <msnyder@redhat.com>
3489 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3490 * configure: Regenerate.
3491 * config.in: Regenerate.
3492 * acconfig.h: Add define for _SYSCALL32.
3493 * core-sol2.c: Remove #define _SYSCALL32.
3494 * solib-legacy.c: Remove #define _SYSCALL32.
3496 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3498 * stack.c (select_frame): Cleanup internal error message, do not
3501 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3503 * stack.c (select_frame): Check that selected_frame and the
3504 specified level are as expected.
3505 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3507 * frame.h (struct frame_info): Add field `level'. Update
3509 Work-in-progress PR gdb/464.
3511 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3513 * maint.c (maint_print_section_info): Rename print_section_info.
3514 (print_bfd_section_info, print_objfile_section_info): Update.
3515 * inferior.h (struct gdbarch): Add opaque declaration.
3516 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3517 * gdbarch.h: Regenerate.
3519 2002-04-10 Michal Ludvig <mludvig@suse.cz>
3521 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3522 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3523 (kernel_u_size): Added.
3524 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3525 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3527 2002-04-04 Jim Ingham <jingham@apple.com>
3529 * valarith.c (find_size_for_pointer_math): New function, either returns
3530 the size for a pointer's target, returns 1 for void *, or errors for
3532 (value_add, value_sub): use find_size_for_pointer_math.
3534 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3536 * linux-low.c (linux_look_up_symbols): New hook.
3537 (linux_target_ops): Add linux_look_up_symbols.
3538 * remote-utils.c (decode_address): New function.
3539 (look_up_one_symbol): New function.
3540 * server.c (handle_query): Call target look_up_symbols hook.
3541 * server.h (look_up_one_symbol): Add prototype.
3542 * target.h (struct target_ops): Add look_up_symbols hook.
3544 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3546 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3547 * ChangeLog: Correct paths in last ChangeLog entry.
3549 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3551 * gdbserver/linux-low.h: Remove obsolete prototypes.
3552 (struct linux_target_ops): New.
3553 (extern the_low_target): New.
3554 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3555 (register_addr): Use the_low_target explicitly.
3556 (fetch_register): Likewise.
3557 (usr_fetch_inferior_registers): Likewise.
3558 (usr_store_inferior_registers): Likewise.
3559 * gdbserver/linux-arm-low.c (num_regs): Remove.
3560 (arm_num_regs): Define.
3561 (arm_regmap): Renamed from regmap, made static.
3562 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3564 (arm_cannot_store_register): Renamed from cannot_store_register,
3566 (the_low_target): New.
3567 * gdbserver/linux-i386-low.c (num_regs): Remove.
3568 (i386_num_regs): Define.
3569 (i386_regmap): Renamed from regmap, made static.
3570 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3572 (i386_cannot_store_register): Renamed from cannot_store_register,
3574 (the_low_target): New.
3575 * gdbserver/linux-ia64-low.c (num_regs): Remove.
3576 (ia64_num_regs): Define.
3577 (ia64_regmap): Renamed from regmap, made static.
3578 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3580 (ia64_cannot_store_register): Renamed from cannot_store_register,
3582 (the_low_target): New.
3583 * gdbserver/linux-m68k-low.c (num_regs): Remove.
3584 (m68k_num_regs): Define.
3585 (m68k_regmap): Renamed from regmap, made static.
3586 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3588 (m68k_cannot_store_register): Renamed from cannot_store_register,
3590 (the_low_target): New.
3591 * gdbserver/linux-mips-low.c (num_regs): Remove.
3592 (mips_num_regs): Define.
3593 (mips_regmap): Renamed from regmap, made static.
3594 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3596 (mips_cannot_store_register): Renamed from cannot_store_register,
3598 (the_low_target): New.
3599 * gdbserver/linux-ppc-low.c (num_regs): Remove.
3600 (ppc_num_regs): Define.
3601 (ppc_regmap): Renamed from regmap, made static.
3602 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3604 (ppc_cannot_store_register): Renamed from cannot_store_register,
3606 (the_low_target): New.
3607 * gdbserver/linux-s390-low.c (num_regs): Remove.
3608 (s390_num_regs): Define.
3609 (s390_regmap): Renamed from regmap, made static.
3610 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3612 (s390_cannot_store_register): Renamed from cannot_store_register,
3614 (the_low_target): New.
3615 * gdbserver/linux-sh-low.c (num_regs): Remove.
3616 (sh_num_regs): Define.
3617 (sh_regmap): Renamed from regmap, made static.
3618 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3620 (sh_cannot_store_register): Renamed from cannot_store_register,
3622 (the_low_target): New.
3623 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3624 (the_low_target): New.
3626 2002-04-09 Andrew Cagney <ac131313@redhat.com>
3628 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3629 override FP_REGNUM with frame->fp. Update copyright.
3630 * parse.c (num_std_regs, std_regs): Delete.
3631 (target_map_name_to_register): Do not search std_regs. Update
3632 function description.
3633 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3634 declarations. Update copyright.
3637 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3639 * gdbserver/Makefile.in: Add stamp-h target.
3640 * gdbserver/configure.in: Create stamp-h.
3641 * gdbserver/configure: Regenerated.
3643 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3645 * gdbserver/inferiors.c: New file.
3646 * gdbserver/target.c: New file.
3647 * gdbserver/target.h: New file.
3648 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3650 * gdbserver/linux-low.c (inferior_pid): New static variable,
3651 moved from server.c.
3652 (linux_create_inferior): Renamed from create_inferior.
3653 Call add_inferior. Return 0 on success instead of a PID.
3654 (linux_attach): Renamed from myattach.
3655 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3656 (linux_thread_alive): Renamed from mythread_alive.
3657 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3659 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3660 (regsets_store_inferior_registers): Correct error message.
3661 Add missing ``return 0''.
3662 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3663 (linux_store_registers): Renamed from store_inferior_registers.
3664 (linux_read_memory): Renamed from read_inferior_memory.
3665 (linux_write_memory): Renamed from write_inferior_memory.
3666 (linux_target_ops): New structure.
3667 (initialize_low): Call set_target_ops ().
3668 * gdbserver/remote-utils.c (unhexify): New function.
3669 (hexify): New function.
3670 (input_interrupt): Send signals to ``signal_pid''.
3671 * gdbserver/server.c (inferior_pid): Remove.
3672 (start_inferior): Update create_inferior call.
3673 (attach_inferior): Call add_inferior.
3674 (handle_query): New function.
3675 (main): Call handle_query for `q' packets.
3676 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3677 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3679 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3681 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3683 * gdbserver/configure.in: Check for <string.h>
3684 * gdbserver/configure: Regenerate.
3685 * gdbserver/config.in: Regenerate.
3686 * gdbserver/gdbreplay.c: Include needed system headers.
3687 (remote_open): Remove strchr prototype.
3688 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3689 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3690 (supply_register_by_name): Likewise.
3691 (collect_register): Change buf argument to void *.
3692 (collect_register_by_name): Likewise.
3693 * gdbserver/regcache.h: Add missing prototypes.
3694 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3695 * gdbserver/server.c (handle_query): New function.
3696 (attached): New static variable, moved out of main.
3697 (main): Quiet longjmp clobber warnings.
3698 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3699 * gdbserver/utils.c (error): Remove NORETURN.
3702 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3704 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3705 after the last symbol in a block.
3707 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3709 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3710 is non zero as a found symbol.
3712 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3714 * findvar.c: Include "builtin-regs.h".
3715 (value_of_register): Call value_of_builtin_reg when applicable.
3716 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3717 (target_map_name_to_register): Call
3718 builtin_reg_map_name_to_regnum.
3719 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3720 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3721 (builtin_regs_h): Define.
3722 (builtin-regs.o): New target.
3723 (findvar.o): Add $(builtin_regs_h).
3724 * builtin-regs.c, builtin-regs.h: New files.
3725 * std-regs.c: New file.
3726 Partial fix for PR gdb/251.
3728 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3730 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3731 it's no longer required.
3733 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3735 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3737 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3739 From Jimi X <jimix@watson.ibm.com>:
3740 * rs6000-tdep.c (rs6000_software_single_step): Use
3741 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3742 and size. Use target_insert_breakpoint() and
3743 target_remove_breakpoint() to insert and remove breakpoints
3744 instead of explicit memory reads and writes.
3746 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3748 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3749 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3750 ELF_OBJECT_FORMAT ifdef.
3752 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3754 From Jimi X <jimix@watson.ibm.com>:
3755 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3757 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3759 From Jimi X <jimix@watson.ibm.com>:
3760 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3761 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3763 2002-04-07 Mark Kettenis <kettenis@gnu.org>
3765 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3766 s/asprintf/xasprintf/.
3767 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3769 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3771 I believe Jeff Law denies responsability for this one:
3772 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3773 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3774 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3775 Work-around for PR gdb/366.
3777 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3779 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3780 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3781 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3783 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3785 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3786 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3789 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3791 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3794 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3796 * README (Reporting Bugs in GDB): Document the bug web page as the
3797 prefered way of submitting bugs.
3800 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3802 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3804 * gdbarch.h, gdbarch.c: Re-generate.
3806 2002-04-07 Andreas Schwab <schwab@suse.de>
3808 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3809 buffer to regcache_collect.
3811 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3813 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3814 * gdbarch.c, gdbarch.h: Re-generate.
3816 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3818 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3819 declaration. Fix -Werror.
3821 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
3823 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3824 * gdbarch.c: Regenerate.
3826 2002-04-05 Michael Snyder <msnyder@redhat.com>
3828 * breakpoint.c (clear_command): Rewrite middle section to
3829 combine two loops with identical control conditions.
3830 Add a cleanup to eliminate a memory leak.
3831 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3833 2002-04-05 H.J. Lu (hjl@gnu.org)
3835 * solib-svr4.c (bkpt_names): Add "__start".
3837 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3839 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3840 as test for 64 bit target.
3842 2002-04-05 Andrew Cagney <ac131313@redhat.com>
3844 * h8500-tdep.c (h8500_write_fp): Delete function.
3845 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3846 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3847 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3849 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3850 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3852 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3853 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3854 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3855 (d10v_write_fp): Delete function.
3856 * inferior.h (write_fp, generic_target_write_fp): Delete
3858 * regcache.c (generic_target_write_fp): Delete function.
3859 (write_fp): Delete function.
3860 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3861 * gdbarch.h, gdbarch.c: Regenerate.
3862 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3863 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3864 (sparc64_write_fp): Delete declaration.
3865 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3866 (h8500_write_fp): Delete declaration.
3868 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3870 * sparc-tdep.c (sparc64_write_fp): Delete.
3871 (sparc_push_dummy_frame): Replace write_fp call with code to store
3873 (sparc_gdbarch_init): Do not initialize write_fp.
3875 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3877 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3880 2002-03-29 Jim Blandy <jimb@redhat.com>
3882 * stack.c (get_selected_block): Add new argument `addr_in_block',
3883 used to return the exact code address we used to select the block,
3885 * blockframe.c (get_frame_block, get_current_block): Same.
3886 * frame.h (get_frame_block, get_current_block,
3887 get_selected_block): Update declarations.
3888 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3889 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3891 2002-04-05 Michael Snyder <msnyder@redhat.com>
3893 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3896 2002-04-05 J. Brobecker <brobecker@gnat.com>
3898 * utils.c (xfullpath): New function.
3899 * defs.h (xfullpath): Add declaration.
3900 * source.c (openp): Use xfullpath in place of gdb_realpath to
3901 avoid resolving the basename part of filenames when the
3902 associated file is a symbolic link. This fixes a potential
3903 inconsistency between the filenames known to GDB and the
3904 filenames it prints in the annotations.
3905 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3906 to be able to match a filename with either the real filename, or
3907 the name of any symbolic link to this file.
3908 (lookup_partial_symtab): Ditto.
3910 2002-04-04 Michael Snyder <msnyder@redhat.com>
3912 * breakpoint.c: Add support for hardware breakpoints in overlays.
3913 (overlay_events_enabled): New state variable.
3914 (insert_breakpoints): Use overlay_events_enabled to decide
3915 whether to attempt to set a breakpoint at the overlay load addr.
3916 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3917 (remove_breakpoint): Use overlay_events_enabled to decide
3918 whether breakpoints need to be removed from overlay load addr.
3919 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3920 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
3921 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
3922 disable_overlay_breakpoints): Update overlay_events_enabled.
3924 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
3926 * dwarf2read.c (struct function_range): New.
3927 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3928 (check_cu_functions): New.
3929 (read_file_scope): Initialize global function lists.
3930 Call dwarf_decode_line after processing children.
3931 (read_func_scope): Add to global function list.
3932 (dwarf_decode_lines): Call check_cu_functions everywhere
3933 record_line is called. Call record_line with a linenumber
3934 of 0 to mark sequence ends.
3936 2002-04-04 Michal Ludvig <mludvig@suse.cz>
3938 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
3939 change sync with glibc.
3941 2002-04-03 Jim Blandy <jimb@redhat.com>
3943 * configure.in: Call AC_C_INLINE.
3944 * configure: Regenerated.
3946 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
3948 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3949 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3951 2002-03-31 Mark Kettenis <kettenis@gnu.org>
3953 * NEWS: Mention gcore support on FreeBSD/i386.
3955 * fbsd-proc.c: New file.
3956 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3957 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3959 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3962 2002-03-29 Jim Blandy <jimb@redhat.com>
3964 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3965 unescaped newlines in string literals, but newer ones don't. So
3968 2002-03-26 Michael Snyder <msnyder@redhat.com>
3969 Andrew Cagney <cagney@redhat.com>
3971 * cli/cli-dump.c: New file. Dump memory to file,
3972 restore file to memory.
3973 * cli/cli-dump.h: New file.
3974 * Makefile.in: Add rules, dependencies for cli-dump.o.
3975 * NEWS: Mention new commands.
3977 2002-03-28 Michael Snyder <msnyder@redhat.com>
3979 * symfile.c (symbol_file_add): Move test for null symbols to later.
3981 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3983 From veksler at il.ibm.com:
3984 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3985 the xstrduped original path.
3988 2002-03-27 Michael Snyder <msnyder@redhat.com>
3990 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3991 * infcmd.c (_initialize_infcmd): Ditto.
3992 * language.c (_initialize_language): Ditto.
3993 * symfile.c (_initialize_symfile): Ditto.
3994 * top.c (_init_main): Ditto.
3995 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3997 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
3999 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4000 vector registers handling.
4001 (skip_prologue): Handle new AltiVec instructions. Fill in new
4002 fields of frame data.
4003 (frame_get_saved_regs): Fill in information for AltiVec registers.
4005 2002-03-27 Jim Blandy <jimb@redhat.com>
4007 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4008 a function; leave this macro here to invoke that function.
4009 (symbol_init_mangled_name): Declaration for that function.
4010 * symtab.c (symbol_init_mangled_name): New function.
4012 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4014 * valarith.c: Replace strerror with safe_strerror.
4015 * tracepoint.c: Ditto.
4017 * go32-nat.c: Ditto.
4021 2002-03-27 Andreas Schwab <schwab@suse.de>
4023 * event-top.c (command_line_handler): Remove useless if.
4025 2002-03-27 Andreas Jaeger <aj@suse.de>
4027 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4030 2002-03-27 Michal Ludvig <mludvig@suse.cz>
4032 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4033 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4034 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4035 (x86_64_linux_dr_get_status, supply_gregset),
4036 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4037 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4038 (x86_64_register_info_table): Add.
4039 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4040 (x86_64_register_raw_size, x86_64_register_virtual_type),
4041 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4042 general x86_64_register_info_table.
4043 (i386_gdbarch_init): gdbarch_register_bytes is now set
4044 dynamicaly during initialization.
4045 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4046 * gdbserver/linux-x86-64-low.c: Ditto.
4048 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4050 * gdbserver/server.c (main): Call target_signal_to_host_p
4051 and target_signal_to_host on signals received from the remote.
4052 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4053 target_signal_from_host on signals sent to the remote.
4054 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4055 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4057 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4059 * signals/signals.c: Include "server.h" in gdbserver build.
4060 (target_signal_from_name): Don't use STREQ.
4061 (_initialize_signals): Likewise. Don't include function in
4064 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4066 * signals.c: Moved to...
4067 * signals/signals.c: Here.
4068 * Makefile (signals.o): Update.
4070 2002-03-26 Jeff Law (law@redhat.com)
4072 * somread.c (som_symtab_read): Remove some commented out code and
4073 updated related comments. Do not set the minimal symbol table to
4074 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4075 in a dynamic executable.
4076 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4077 where we are unable to find the minimal symbol for the given
4080 2002-03-25 Jeff Law (law@redhat.com)
4082 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4084 2002-03-25 Michal Ludvig <mludvig@suse.cz>
4086 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4088 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4090 * command.h: Update copyright.
4091 (struct cmd_list_element): Replace definition with opaque
4093 (enum cmd_types): Document that it will eventually be moved to
4095 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4096 (MALLOCED_REPLACEMENT): Delete macro.
4097 * Makefile.in (cli_decode_h): Add $(command_h).
4098 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4099 * top.c: Include "cli/cli-decode.h".
4100 * completer.c: Include "cli/cli-decode.h".
4101 * maint.c: Include "cli/cli-decode.h".
4102 * cli/cli-decode.h: Include "command.h".
4103 (enum command_class): Delete.
4104 (enum cmd_types): Comment out.
4105 (enum cmd_auto_boolean): Delete.
4106 (enum var_types): Delete.
4108 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4110 * cli/cli-decode.c: Include "gdb_assert.h".
4111 (add_set_or_show_cmd): New static function.
4112 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4113 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4114 all fields, such as func, from the set command.
4116 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4118 * MAINTAINERS (sh-elf): Change warning flag to -w.
4120 2002-03-23 Andrew Cagney <cagney@redhat.com>
4122 * defs.h (error): Add printf format attribute.
4123 * thread-db.c (thread_from_lwp): Fix error format string.
4124 * stack.c (parse_frame_specification): Ditto.
4125 * cli/cli-decode.c (undef_cmd_error): Ditto.
4126 * scm-lang.c (scm_lookup_name): Ditto.
4127 * tracepoint.c (trace_error): Ditto.
4128 * remote-utils.c (usage): Ditto.
4129 * remote.c (compare_sections_command): Ditto.
4132 2002-03-22 Andrew Cagney <ac131313@redhat.com>
4134 * gdbtypes.c (append_composite_type_field): New function.
4135 (init_composite_type): New function.
4136 * gdbtypes.h (append_composite_type_field): Declare.
4137 (init_composite_type): Ditto.
4139 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
4141 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4143 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4144 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4145 structure returning convention for SYSV ABI case, but not
4146 for GNU/Linux, FreeBSD, or NetBSD.
4148 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
4150 * symtab.h (lookup_block_symbol): Add mangled_name argument
4153 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4154 with new mangled_name argument.
4155 * linespec.c (decode_line_1): Likewise.
4156 * valops (value_of_this): Likewise.
4157 * symtab.c (lookup_transparent_type): Likewise.
4158 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4159 (lookup_symbol): If we are given a mangled name, pass it down
4160 to lookup_symbol_aux.
4161 (lookup_block_symbol): If we are given a mangled name to check
4162 against, only return symbols which match it.
4164 2002-03-22 Christopher Faylor <cgf@redhat.com>
4166 * win32-nat.c (child_create_inferior): Check for proper shell to use
4167 here, in case the user changes it on the fly.
4168 (_initialize_inftarg): Remove shell path considerations.
4170 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
4172 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4173 for gdbarch_max_register_raw_size and max_register_virtual_size.
4174 Adjust copyright year.
4176 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
4178 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4179 in a function to cover the entire beginning of the function
4180 as well if it does not already.
4182 2002-03-21 Tom Rix <trix@redhat.com>
4184 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4185 (rs6000_ptrace64): Renamed from ptrace64.
4187 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4189 * gdbserver/remote-utils.c (remote_open): Don't call
4190 getprotobyname, we're all using TCP here so just use
4192 * gdbserver/gdbreplay.c (remote_open): Ditto.
4194 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4196 * regcache.c (_initialize_regcache): No need to call
4197 build_regcache() at this time; it gets called whenever
4198 the gdbarch changes.
4200 2002-03-20 David O'Brien <obrien@FreeBSD.org>
4202 * sparc-nat.c: Include sys/param.h where possible.
4204 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
4207 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4208 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4209 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4211 * stabsread.c (rs6000_builtin_type): Likewise.
4212 (read_sun_floating_type): Likewise.
4214 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4216 * stabsread.c (read_member_functions): Remove skip code for duplicate
4217 constructor/destructor methods. Use standard parsing for these
4218 methods and just do not chain them to the list of methods after
4221 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
4223 * coffread.c: Remove redundant static declarations. Replace
4224 occurrences of `PTR' with `void *'.
4225 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4226 * top.h (quit_cover): Likewise.
4227 * defs.h (catch_errors): Likewise.
4229 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4231 * defs.h (XMALLOC): Define.
4232 * gdb-events.sh (XMALLOC): Delete macro.
4233 * gdb-events.c, gdb-events.h: Regenerate.
4234 * gdbarch.sh (XMALLOC): Delete macro.
4235 * gdbarch.c: Regenerate.
4236 * serial.c (XMALLOC): Delete macro.
4237 * ui-file.c (XMALLOC): Ditto.
4238 * ser-unix.h (XMALLOC): Ditto.
4239 * sh-tdep.c (XMALLOC): Ditto.
4240 * ui-out.c (XMALLOC): Ditto.
4241 * utils.c (XMALLOC): Ditto.
4242 * i386-tdep.c (XMALLOC): Ditto.
4243 * gdb-events.c (XMALLOC): Ditto.
4244 * d10v-tdep.c (XMALLOC): Ditto.
4245 * cli-out.c (XMALLOC): Ditto.
4247 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4248 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4249 * ui-file.c, ui-out.c: Ditto.
4251 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4253 * command.h (struct cmd_list_element): Add field context.
4254 (set_cmd_context, get_cmd_context): Declare.
4255 * cli/cli-decode.h: Ditto.
4256 * cli/cli-decode.c (get_cmd_context): New function.
4257 (set_cmd_context): New function.
4258 (add_cmd): Initialize context.
4259 Part of fixing PR gdb/145 and PR gdb/146.
4261 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4263 * cli/cli-decode.c (cmd_type): New function.
4264 * command.h (cmd_type): Declare.
4265 * infrun.c (set_schedlock_func): Call function cmd_type.
4266 * kod.c (kod_set_os): Call cmd_type.
4267 * cris-tdep.c (cris_version_update): Use function cmd_type.
4268 (cris_mode_update, cris_abi_update): Ditto.
4270 * command.h: (execute_cmd_post_hook): Declare.
4271 (execute_cmd_pre_hook): Declare.
4272 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4273 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4274 functions. Execute pre/post hook while ensuring that afterwords
4276 * top.c (execute_command): Use execute_cmd_post_hook, and
4277 execute_cmd_pre_hook to execute pre/post commands.
4278 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4280 (hook_stop_stub): Call execute_cmd_pre_hook.
4282 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4284 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4285 set'' and this leads to a core dump. Move xstrdup of
4286 operating_system to after check that it is not NULL.
4288 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4290 * kod.c (kod_set_os): Remove unnecessary check that
4291 ``command->type'' is set_cmd.
4293 * valprint.c (set_input_radix): Use input_radix.
4294 (set_output_radix): Use output_radix.
4295 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4298 2002-03-16 Andrew Cagney <ac131313@redhat.com>
4300 * value.h (struct value): Delete field ``substring_addr''. Change
4301 aligner fields to force_doublest_align, force_longest_align,
4302 force_core_addr_align and force_pointer_aligh.
4304 * value.h (struct value): Fix typo in above change.
4306 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4308 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4309 to fix internal_error from ``maintenance print architecture''.
4311 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4313 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4314 for gcc versions after gcc-2.8.1.
4316 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4318 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4319 for method resolution. Restore adjustment of ``this'' pointer after
4320 calling value_struct_elt, which was accidentally removed during the
4323 2002-03-15 Andrew Cagney <ac131313@redhat.com>
4325 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4327 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4329 * value.h (value_of_register): Update.
4331 2002-03-14 Richard Henderson <rth@redhat.com>
4333 * configure.in: Detect declaration for canonicalize_file_name.
4334 * utils.c (canonicalize_file_name): Declare, if needed.
4335 (gdb_realpath): Prefer realpath if available and usable.
4336 * config.in, configure: Rebuild.
4338 2002-03-14 Richard Henderson <rth@redhat.com>
4340 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4341 a constant array bound.
4343 * MAINTAINERS: Add myself to write-after-approval.
4345 2002-03-14 Michael Snyder <msnyder@redhat.com>
4347 * symfile.c (syms_from_objfile): Return immediately if no syms.
4348 (symbol_file_add): Return immediately if no syms.
4349 (find_sym_fns): Return immediately if no syms.
4351 2002-03-13 Michal Ludvig <mludvig@suse.cz>
4353 * gdbserver/remote-util.c (remote_open): Print remote-side's
4354 IP address when remote debugging over the network.
4356 2002-03-12 David O'Brien <obrien@FreeBSD.org>
4358 * config/sparc/fbsd.mh: Fix copyright.
4359 * config/sparc/fbsd.mt: Likewise.
4361 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
4363 * MAINTAINERS: Fix typo in name of gdb warnings option.
4364 (x86-64): Fix formating so that this can be parsed by awk.
4366 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4368 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4369 * defs.h: Include "gdb/signals.h".
4370 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4372 2002-03-10 Michal Ludvig <mludvig@suse.cz>
4374 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4375 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4378 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4379 Don Howard <dhoward@redhat.com>
4381 * mips-tdep.c (ST0_FR): Define.
4382 (mips2_fp_compat): New function, temporarily disabled.
4383 (mips_read_fp_register_single): New function.
4384 (mips_read_fp_register_double): New function.
4385 (mips_print_register): Use them.
4386 (do_fp_register_row): Likewise.
4388 2002-03-09 Andrew Cagney <ac131313@redhat.com>
4390 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4393 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4395 * stabsread.c (read_member_functions): Fix is_stub test for
4396 static member functions, improve comment.
4398 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4400 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4401 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4402 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4403 commands that set boolean values.
4404 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4405 (arm_rdi_resume): Always initialize PC.
4406 (arm_rdi_open): Don't use rslt as a boolean.
4407 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4408 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4409 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4410 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4412 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
4414 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4415 * configure: Rebuilt.
4417 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4419 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4420 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4422 2002-03-06 Andrew Cagney <ac131313@redhat.com>
4424 * cli/cli-decode.c (set_cmd_completer): New function.
4425 * command.h (set_cmd_completer): Declare.
4426 * cli/cli-decode.h (set_cmd_completer): Ditto.
4428 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4429 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4430 * win32-nat.c (_initialize_inftarg): Ditto.
4431 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4432 * proc-api.c (_initialize_proc_api): Ditto.
4433 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4434 * source.c (_initialize_source): Ditto.
4435 * exec.c (_initialize_exec): Ditto.
4436 * solib.c (_initialize_solib): Ditto.
4437 * top.c (init_main): Ditto.
4438 * tracepoint.c (_initialize_tracepoint): Ditto.
4439 * symfile.c (_initialize_symfile): Ditto.
4440 * printcmd.c (_initialize_printcmd): Ditto.
4441 * infcmd.c (_initialize_infcmd): Ditto.
4442 * corefile.c (_initialize_core): Ditto.
4444 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4446 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4448 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4450 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4452 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4454 * NEWS: Update headings, 5.2 has branched.
4456 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
4458 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4459 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4460 (register_addr, REGISTER_RAW_SIZE): Likewise.
4461 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4462 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4464 2002-03-03 Michal Ludvig <mludvig@suse.cz>
4466 * MAINTAINERS (x86-64): Add myself.
4467 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4468 changed value_ptr -> struct value *
4470 2002-03-01 David O'Brien <obrien@FreeBSD.org>
4472 * configure.host (sparc64-*-freebsd): Add.
4473 * configure.tgt: Likewise.
4474 * config/sparc/fbsd.mh: New file.
4475 * config/sparc/fbsd.mt: Likewise.
4476 * config/sparc/nm-fbsd.h: Likewise.
4477 * config/sparc/tm-fbsd.h: Likewise.
4479 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
4481 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4482 regformats/reg-s390x.dat.
4484 2002-03-01 Andrew Cagney <ac131313@redhat.com>
4486 * utils.c: Add FIXME explaining true/false problem.
4488 2002-02-28 Andrew Cagney <ac131313@redhat.com>
4490 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4492 2002-02-28 Michael Chastain <mec@shout.net>
4494 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4496 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
4498 * gdbserver/linux-s390-low.c: New file.
4499 * regformats/reg-s390.dat: New file.
4500 * regformats/reg-s390x.dat: New file.
4501 * gdbserver/configure.srv: Add S/390.
4502 * gdbserver/Makefile.in: Add S/390.
4503 * configure.tgt: Enable gdbserver for S/390.
4505 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4507 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4508 first line of the doc string for "info dos", except at the end of
4509 the sentence, since the short help stops at the first period.
4511 2002-02-28 Jason Merrill <jason@redhat.com>
4513 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4515 2002-02-27 Fred Fish <fnf@redhat.com>
4517 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4518 comment (dumy -> dummy).
4520 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4522 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4524 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
4526 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4528 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4530 * gdbserver/acconfig.h: New file.
4531 * gdbserver/i387-fp.c: New file.
4532 * gdbserver/i387-fp.h: New file.
4533 * gdbserver/linux-x86-64.c: New file.
4534 * regformats/reg-x86-64.dat: New file.
4535 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4536 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4537 * gdbserver/configure.in: Add support for regsets.
4538 * gdbserver/config.in: Regenerate.
4539 * gdbserver/configure: Regenerate.
4540 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4541 * gdbserver/linux-low.h: New file.
4542 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4544 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4545 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4546 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4547 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4548 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4549 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4550 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4551 "i387-fp.h". Add PTRACE_GETREGS and friends.
4552 * gdbserver/regcache.c (supply_register): New function.
4553 (supply_register_by_name): New function.
4554 (collect_register): New function.
4555 (collect_register_by_name): New function.
4557 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4559 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4560 (config.status): Add configure.srv dependency.
4561 (server_h): Add config.h dependency.
4563 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4565 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4566 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4567 * gdbserver/configure.srv: Change i386-*-linux* to use
4570 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4572 * x86-64-tdep.c: Re-indent. Update copyright date.
4574 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4576 From Michal Ludvig <mludvig@suse.cz>:
4577 * x86-64-tdep.c (value.h): Delete.
4578 (gdb_assert.h): Include.
4579 (x86_64_register_convert_to_virtual,
4580 x86_64_register_convert_to_raw ): Add check which lets only
4581 floating-point values to be converted.
4582 (value_push): Delete.
4583 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4584 (i386_gdbarch_init): Number of register_bytes fixed.
4586 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4588 * MAINTAINERS: Add x86-64 target.
4590 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4592 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4593 * osfsolib.c (solib_map_sections): Ditto.
4594 * irix5-nat.c (solib_map_sections): Ditto.
4595 * corelow.c (gdb_check_format): Ditto.
4596 * symfile.c (symfile_bfd_open): Ditto.
4597 * solib.c (solib_map_sections): Ditto.
4600 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4602 * remote.c (_initialize_remote): By default, disable ``e'' and
4603 ``E'' step out-of-range packets.
4605 2002-02-26 Andreas Schwab <schwab@suse.de>
4607 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4608 m68k_linux_frame_saved_pc.
4609 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4611 (SIGCONTEXT_PC_OFFSET): Remove.
4612 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4613 m68k_linux_sigtramp_saved_pc): New functions.
4614 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4615 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4616 (UCONTEXT_PC_OFFSET): Define.
4617 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4618 non-RT and RT signal trampolines.
4620 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
4622 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4623 (TARGET_NBPG, STACK_END_ADDR): Delete
4624 (VARIABLES_INSIDE_BLOCK): Delete.
4626 2002-02-25 Andrew Cagney <ac131313@redhat.com>
4628 * utils.c (perror_with_name): Make string parameter constant.
4629 (print_sys_errmsg): Ditto.
4631 * defs.h (perror_with_name): Update.
4632 (print_sys_errmsg): Update.
4635 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
4637 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4638 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4640 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4642 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4643 if it already matches the current architecture from the exec file.
4644 Include arch-utils.h for gdbarch_info_init prototype.
4645 * Makefile.in (rs6000-nat.o): Update dependencies.
4647 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4649 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4650 list of exported variables.
4652 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
4654 * gdbserver/configure.srv: New file.
4655 * gdbserver/configure.in: Use configure.srv instead
4656 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4658 * gdbserver/configure: Regenerated.
4659 * gdbserver/terminal.h: New file.
4660 * gdbserver/Makefile.in: Update for configure changes. Remove
4661 more unneeded include paths.
4663 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4665 From wiz at danbala:
4666 * config/sparc/tm-sp64.h: Fix grammar and typos.
4669 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4671 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
4672 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4673 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4674 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
4675 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4676 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4677 * s390-tdep.c: Ditto.
4678 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4679 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4680 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4681 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4682 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4683 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4684 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4685 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4686 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4687 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
4690 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4692 * lin-thread.c: Delete file.
4693 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4694 to gdb_proc_service.h.
4695 * configure: Re-generate.
4697 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4698 * serial.c (serial_open): Delete check for "ocd".
4701 * Makefile.in (linux-thread.o): Delete target.
4702 * linux-thread.c: Delete file.
4704 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4705 renamed SH files to be consistent.
4707 * symtab.c (sort_search_symbols): Use xfree.
4709 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4711 * arm-linux-tdep.c (arm_linux_init_abi): Register
4712 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4713 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4714 definition with undef, since we don't want the sysvr4 definition.
4715 (SKIP_TRAMPOLINE_CODE): Likewise.
4717 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4719 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4721 * configure.in: (AC_CHECK_FUNCS) Added test for
4722 canonicalize_file_name Regenerated.
4723 * config.in, configure: Regenerated.
4724 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4725 defined use canonicalize_file_name.
4727 2002-02-23 Michael Chastain <mec@shout.net>
4729 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4731 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4733 * README: Remove references to cygnus.com.
4734 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4735 dot com'' form. Remove references to cygnus.com and sourceware.
4737 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4739 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4740 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4741 1003.1-2001 no longer allows "head -1".
4742 * gdb/Makefile.in (version.c): Likewise.
4743 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4744 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4745 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4747 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4749 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4750 * command.h (cmd_cfunc_eq): Declare.
4751 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4753 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4754 ``struct cmd_list_element *''.
4755 * cli/cli-cmds.c (is_complete_command): Update. Use
4757 * top.c (execute_command): Pass the command to
4758 is_complete_command.
4759 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4761 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4763 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4764 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4765 architecture defines.
4766 * s390-tdep.c (s390_gdbarch_init): Likewise.
4768 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4770 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4771 (arm_linux_push_arguments): Likewise.
4772 (arm_linux_init_abi): Register them. Also register linux-specific
4774 (find_minsym_and_objfile): Use strcmp, not STREQ.
4775 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4776 (arm_linux_call_dummy_words): Delete declaration.
4777 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4778 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4780 (LOWEST_PC): Delete.
4782 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4784 * maint.c (print_section_info): Do not prepend `0x' to filepos
4785 output, it will be handled by local_hex_string_custom.
4787 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4789 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4790 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4791 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4793 2002-02-22 Jim Blandy <jimb@redhat.com>
4795 Indicate that the bcache functions don't change the strings
4797 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4798 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4800 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4802 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4804 2002-02-21 Christopher Faylor <cgf@redhat.com>
4806 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4807 find the complete path to a loaded DLL.
4809 2002-02-21 Fred Fish <fnf@redhat.com>
4811 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4812 that marks the end of the range of a function, enter a line number
4813 entry that has a line number of zero and a PC offset that matches
4814 the end of the function. This starts a range of PC's for which no
4815 line number information is known.
4816 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4817 PC's for which no line number info is found (line number is zero)
4818 then we didn't find any valid line information.
4819 * symtab.h: Document use of zero line number entry.
4821 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
4823 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4824 (have_ptrace_getvrregs): Define for run time checks.
4825 (gdb_vrregset_t): New type for Altivec register handling.
4826 (fetch_register, store_register): Fetch/store altivec register
4828 (fetch_altivec_register, store_altivec_register): New functions.
4829 (supply_vrregset, fill_vrregset): New functions.
4830 (fetch_altivec_registers, store_altivec_registers): New functions.
4831 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4834 2002-02-21 Jiri Smid <smid@suse.cz>
4836 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4838 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4840 * Makefile.in (armnbsd-nat.o): Update dependencies.
4841 * armnbsd-nat.c (supply_gregset): New function. Common code to
4842 supply the integer register set.
4843 (supply_fparegset): New function. Similar for FPA registers.
4844 (fetch_regs, fetch_fp_regs): Use them.
4845 (fetch_core_registers): Likewise.
4846 (fetch_elfcore_registers): New function.
4847 (arm_netbsd_elfcore_fns): New core-file type specification.
4848 (_initialize_arm_netbsd_nat): Register it.
4850 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4852 * armnbsd-nat.c: Include gdbcore.h.
4853 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4854 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4855 'void' to declaration, to shut up ARI.
4856 (fetch_core_registers): Make static. Rewrite using supply_register.
4857 (arm_netbsd_core_fns): New core-file type specification.
4858 (_initialize_arm_netbsd_nat): New function.
4860 2002-02-21 Christopher Faylor <cgf@redhat.com>
4862 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4865 2002-02-20 Christopher Faylor <cgf@redhat.com>
4867 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4870 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4872 * jv-exp.y (parse_number): Change type of implicit longs
4873 to builtin_type_uint64.
4875 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4877 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4878 to be an integer instead of a `union wait'.
4880 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4882 * mips-linux-nat.c: Call the operating system GNU/Linux.
4883 * mips-linux-tdep.c: Likewise.
4884 * mips-tdep.c: Likewise.
4886 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4889 * jv-exp.y (parse_number): Handle 64-bit integers.
4891 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4893 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4894 AC_STDC_HEADERS to AC_HEADER_STDC.
4895 * gdbserver/configure: Regenerated.
4897 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4899 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4901 * sparc-tdep.c (get_longjmp_target): Likewise.
4903 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4905 * News: Add news about ARM and Multi-arch. Mention the new target
4908 2002-02-19 Jim Blandy <jimb@redhat.com>
4910 * stabsread.c (error_type_complaint): Improve error message.
4912 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
4914 * gdbserver/README: Update documentation.
4915 * gdbserver/configure.in: Update configury to match documentation.
4916 * gdbserver/Makefile.in: Likewise.
4917 * gdbserver/configure: Regenerated.
4918 * gdbserver/aclocal.m4: New file, generated by aclocal.
4919 * gdbserver/config.in: New file, generated by autoheader.
4921 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4923 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4926 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4928 * arm-tdep.h (enum arm_float_model): New enum.
4929 (struct gdbarch_tdep): Add fp_model.
4930 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4931 up floating-point conversions until we know the floating-point model
4932 in use by the inferior. Don't complain about being unable to
4933 determine the ABI of the inferior when we don't have one.
4934 (arm_extract_return_value): Support different floating-point models.
4935 (arm_store_return_value): Likewise.
4936 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
4938 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4940 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4942 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4943 of ``current_gdbarch''.
4945 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4947 * armnbsd-nat.c : ANSIfy all function declarations.
4948 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4949 (fetch_inferior_registers): Re-implement in terms of above.
4950 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4951 (store_inferior_registers): Re-implement in terms of above.
4953 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4955 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
4957 * arm-linux-tdep.c: Likewise.
4958 * config/arm/tm-linux.h: Likewise.
4960 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4962 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4963 * config/arm/nbsd.mt (TM_FILE): Delete.
4964 * config/arm/tm-nbsd.h: Delete.
4966 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4968 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4969 Initialize CALL_DUMMY_LENGTH.
4971 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4973 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4975 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
4976 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
4977 defines one thing and that is incorrect for this port.
4978 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4980 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4982 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4984 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4986 * win32-nat.c (display_selector): New function. Displays information
4987 about the information returned by GetThreadSelectorEntry API function.
4988 (display_selectors): New function. Displays the infomation of
4989 the selector given as argument, or of CS, DS ans FS selectors
4990 if no argument is given.
4991 ( _initialize_inftarg): Add "w32" as info prefix command.
4992 Add "info w32 selector" as command calling display_selectors.
4994 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
4996 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4997 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5000 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5002 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5004 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5006 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5007 (arm_fix_call_dummy): Call it.
5008 (arm_call_dummy_breakpoint_offset): Delete.
5009 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5010 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5012 2002-02-18 Andrew Cagney <ac131313@redhat.com>
5014 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5015 Default to func_frame_chain_valid.
5016 * gdbarch.h, gdbarch.c: Re-generate.
5017 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5019 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
5021 * ppc-linux-nat.c: Update copyright.
5022 (fetch_register, store_register): Add tid parameter, don't compute
5024 (fetch_ppc_registers, store_ppc_registers): Add tid
5025 parameter. Pass it along to callees.
5026 (fetch_inferior_registers, store_inferior_registers): Compute tid
5027 here, and pass it to calleed functions.
5028 (fill_gregset, supply_fpregset): Clean up formatting.
5030 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5032 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5033 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5035 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5037 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5038 * gdbarch.c gdbarch.h: Regenerate.
5039 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5041 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5042 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5043 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5045 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5046 * arm-tdep.c (arm_get_longjmp_target): New function.
5047 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5048 this to a positive value register arm_get_longjmp_target as the
5050 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5051 (arm_linux_init_abi): Set up longjmp description in tdep.
5052 * armnbsd-nat.c (get_longjmp_target): Delete.
5053 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5054 description in tdep.
5055 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5056 (get_longjmp_target): Delete declaration.
5057 (GET_LONGJMP_TARGET): Delete.
5058 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5059 (GET_LONGJMP_TARGET): Delete.
5061 2002-02-17 Kevin Buettner <kevinb@redhat.com>
5063 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5064 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5065 of ``current_gdbarch''.
5067 2002-02-17 Tom Tromey <tromey@redhat.com>
5069 * cli/cli-cmds.c (compare_strings): New function.
5070 (complete_command): Only print each unique item once.
5071 * completer.h (complete_line): Declare.
5072 * completer.c (complete_line): New function.
5073 (line_completion_function): Use it.
5075 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5077 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5078 * gdbarch.h, gdbarch.c: Re-generate.
5080 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5082 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5084 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5086 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5087 * valops.c (value_arg_coerce): Don't take the address of a reference
5088 to convert an argument to a reference.
5090 2002-02-15 Christopher Faylor <cgf@redhat.com>
5092 * win32-nat.c (get_image_name): New function.
5093 (handle_load_dll): Use get_image_name function.
5094 (get_child_debug_event): Avoid registering debug events until possibly
5095 execed process is started.
5096 (child_create_inferior): Allow invocation via shell so that command
5097 line redirection, etc. works ok.
5098 (_initialize_inftarg): Add new command: "set shell" to control whether
5099 a shell is used to start a process.
5101 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5103 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5104 instead of find_register_by_number.
5105 (cannot_store_register): Likewise.
5107 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
5109 * dwarf2read.c: Replace fprintf (stderr, ...) by
5110 fprintf_unfiltered (gdb_stderr, ...).
5112 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5114 * gdbserver/gdbserver.1: Document --attach.
5116 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5118 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5120 * arm-tdep.c (arm_default_arm_le_breakpoint)
5121 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5122 (arm_default_thumb_be_breakpoint): New. Initialize them from
5123 traditional breakpoint defines.
5124 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5125 (arm_gdbarch_init): Initialize new breakpoint variables.
5126 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5127 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5128 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5129 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5131 (arm_netbsd_init_abi_common): ... here; new function.
5132 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5133 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5134 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5135 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5137 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5139 * arm-tdep.h (enum arm_abi): New enum.
5140 (struct gdbarch_tdep): New structure.
5141 (LOWEST_PC): Provide a default.
5142 (arm_gdbarch_register_os_abi): Declare new function.
5143 * arm-tdep.c (arm_abi_names): New array.
5144 (process_note_abi_tag_sections): New function.
5145 (get_elfosabi): New function.
5146 (arm_gdbarch_register_os_abi): New function.
5147 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5148 support for that ABI has been built in, then call the appropriate
5149 configuration routine. Use gdbarch_num_regs() to get the number
5151 (arm_dump_tdep): New function.
5152 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5153 place-holder functions.
5154 (_initialize_arm_tdep): Register them.
5155 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5157 * armnbsd-tdep.c: New file.
5158 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5159 * config/arm/nbsd.mt (TDEPFILES): Add it.
5160 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5162 * armnbsd-nat.c: Include regcache.h.
5163 * Makefile.in (armnbsd-nat.o): Update dependency list.
5165 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5167 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5169 * gdbserver/Makefile.in: Fix typos in target rules.
5171 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5173 Fix part of PR gdb/267.
5174 * linespec.c (find_methods): Handle constructors specially for now.
5176 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
5178 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5180 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5181 standard_coerce_float_to_double().
5183 2002-02-14 Christopher Faylor <cgf@redhat.com>
5185 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5188 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
5190 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5191 find_variant_by_name, because it confuses the multiarch
5192 framework. Return NULL if there isn't an architecture with the
5193 user supplied name, instead of forcing a different one without
5194 recording the change with the multiarch machinery.
5195 (find_variant_by_name): Delete.
5197 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5199 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5200 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5202 2002-02-13 Martin M. Hunt <hunt@redhat.com>
5204 * stack.c (print_frame_info_base): When calling
5205 print_frame_info_listing_hook, set current_source_symtab.
5207 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5209 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5210 and remove unused $(INCLUDE_DIR).
5211 Add regcache.c to OBS.
5212 Add generated register protocol files to clean target.
5213 Update dependencies for new objects, obsolete old target code.
5215 * gdbserver/linux-low.c: Remove all platform-specific code to
5216 new files. Remove various dead code. Update to use regcache
5218 * gdbserver/remote-utils.c (fromhex): Add return statement
5220 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5222 (input_interrupt): Add integer parameter to match prototype
5223 of a signal handler.
5224 (outreg): Use register_data ().
5225 (prepare_resume_reply): Use gdbserver_expedite_regs.
5226 * gdbserver/server.c (main): Dynamically allocate own_buf because
5227 PBUFSIZ is no longer constant. Use registers_to_string () and
5228 registers_from_string ().
5229 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5230 for error (), fatal (), and warning (). Update definition of
5231 PBUFSIZ to use regcache functionality. Add include guard.
5232 * gdbserver/utils.c (fatal): Add missing ``const''.
5233 (warning): New function.
5235 * regformats/regdat.sh: Include "regcache.h" in generated files.
5236 Provide init_registers () function.
5237 * regformats/regdef.h: Add prototype for set_register_cache ().
5240 * gdbserver/linux-arm-low.c: New file.
5241 * gdbserver/linux-i386-low.c: New file.
5242 * gdbserver/linux-ia64-low.c: New file.
5243 * gdbserver/linux-m68k-low.c: New file.
5244 * gdbserver/linux-mips-low.c: New file.
5245 * gdbserver/linux-ppc-low.c: New file.
5246 * gdbserver/linux-sh-low.c: New file.
5248 * gdbserver/regcache.c: New file.
5249 * gdbserver/regcache.h: New file.
5251 * gdbserver/low-linux.c: Removed obsolete file.
5253 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5255 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5256 * config/i386/linux.mt: Likewise.
5257 * config/ia64/linux.mt: Likewise.
5258 * config/m68k/linux.mh: Likewise.
5259 * config/powerpc/linux.mh: Likewise.
5260 * config/mips/linux.mt: Likewise.
5262 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5264 * config/i386/i386lynx.mh: Mark gdbserver variables
5265 as (currently) obsolete for this target.
5266 * config/i386/nbsd.mt: Likewise.
5267 * config/i386/nbsdelf.mt: Likewise.
5268 * config/m32r/m32r.mt: Likewise.
5269 * config/m68k/m68klynx.mh: Likewise.
5270 * config/m68k/nbsd.mt: Likewise.
5271 * config/m68k/sun3os4.mh: Likewise.
5272 * config/mips/vr5000.mt: Likewise.
5273 * config/ns32k/nbsd.mt: Likewise.
5274 * config/pa/hppabsd.mh: Likewise.
5275 * config/pa/hppaosf.mh: Likewise.
5276 * config/powerpc/nbsd.mt: Likewise.
5277 * config/rs6000/rs6000lynx.mh: Likewise.
5278 * config/s390/s390.mt: Likewise.
5279 * config/s390/s390x.mt: Likewise.
5280 * config/sparc/sparclynx.mh: Likewise.
5281 * config/sparc/sun4os4.mh: Likewise.
5282 * config/i386/x86-64linux.mt: Likewise.
5283 * config/sparc/linux.mh: Likewise.
5285 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5287 * configure.tgt: Configure gdbserver only for known working
5288 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5289 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5290 SUBDIRS if it is configured. Update comment for ${nativefile}.
5291 * configure: Regenerated.
5293 2002-02-13 Michael Snyder <msnyder@redhat.com>
5295 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5297 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5298 (default_gcore_mach): Just return 0, work around a problem in bfd.
5299 (default_gcore_target): OK to return NULL if exec_bfd is null.
5300 (make_mem_sec): Use a cast, avoid a warning.
5302 * procfs.c (find_memory_regions_callback): Use a cast instead of
5303 calling host_pointer_to_address (which complains if
5304 sizeof (host pointer) != sizeof (target pointer)).
5305 (procfs_make_note_section): Avoid overflow in psargs string.
5307 * procfs.c (procfs_make_note_section): Make the default
5308 implementation return an error.
5310 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
5312 * procfs.c (procfs_make_note_section): Provide a default definition
5313 (for alpha-dec-osf4.0f). Fix typos.
5315 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
5317 * linux-proc.c: Add include of regcache.h.
5318 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5320 2002-02-13 Andrew Cagney <ac131313@redhat.com>
5322 From 2002-01-18 Greg McGary <greg@mcgary.org>:
5323 * memattr.c (create_mem_region): Disallow useless empty region.
5324 Regions are half-open intervals, so allow [A..B) [B..C) as
5327 2002-02-13 Michael Chastain <mec@shout.net>
5329 * defs.h: Kill CONST_PTR.
5330 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5331 * c-lang.c (c_builtin_types): Likewise.
5332 * ch-lang.c (ch_builtin_types): Likewise.
5333 * f-lang.c (f_builtin_types): Likewise.
5334 * language.c (unknown_builtin_types): Likewise.
5335 * m2-lang.c (m2_builtin_types): Likewise.
5336 * p-lang.c (pascal_builtin_types): Likewise.
5337 * scm-lang.c (c_builtin_types): Likewise.
5339 2002-02-13 Keith Seitz <keiths@redhat.com>
5341 * arm-tdep.h (arm_get_next_pc): Add declaration.
5343 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
5345 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5346 with other related struct-returning functions.
5347 (arm_extract_struct_value_address): New function.
5348 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5349 initialize float_format, double_format and long_double_format as
5350 appropriate to the endianness of the target.
5351 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5352 (arm_use_struct_convention): Delete declaration.
5353 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5355 2002-02-13 Keith Seitz <keiths@redhat.com>
5357 * defs.h (core_addr_to_string_nz): New function.
5359 2002-02-13 Mark Kettenis <kettenis@gnu.org>
5361 Apply missing bits of 2002-01-15 patch.
5362 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5363 (fill_fpregset): Use i387_fill_fsave.
5365 2002-02-12 Keith Seitz <keiths@redhat.com>
5367 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5368 (core_addr_to_string_nz): New function.
5370 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5372 * arm-linux-nat.c: Really include arm-tdep.h.
5373 * config/arm/tm-linux.h (struct type, struct value): Declare.
5375 2002-02-11 Michael Snyder <msnyder@redhat.com>
5377 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5378 (gcore section): Ifdef for Solaris and Unixware only.
5379 (procfs_do_thread_registers): Unixware needs one lwpstatus
5380 per thread (not one prstatus or pstatus).
5381 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5382 not over all gdb threads. For unixware, call elfcore_write_pstatus
5383 once before iterating over threads.
5385 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5387 * arm-tdep.h: New file.
5388 * arm-tdep.c: Include arm-tdep.h.
5389 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5390 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5391 (arm_print_float_info, arm_register_type, convert_to_extended)
5392 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5393 (arm_extract_return_value, arm_register_name): Make static.
5394 (arm_software_single_step): Similarly. Fix types in declaration.
5395 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5396 (arm_store_return_value, arm_store_struct_return): New functions.
5397 (arm_gdbarch_init): Register the above functions. Also register
5398 call_dummy_start_offset, sizeof_call_dummy_words,
5399 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5400 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5401 max_register_virtual_size, register_size. Set up
5402 prologue_cache.saved_regs here, rather than ...
5403 (_initialize_arm_tdep): ... here.
5404 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5406 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5407 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5408 (arm_print_float_info, arm_register_type, convert_to_extended)
5409 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5410 (arm_extract_return_value, arm_register_name): Delete declarations.
5411 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5412 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5413 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5414 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5415 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5416 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5417 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5418 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5419 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5420 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5421 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5422 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5424 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5425 * remote-rdi.c remote-rdp.c: Likewise.
5426 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5427 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5428 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5431 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5432 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5433 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5434 from non-ARM_ prefixed definitions.
5435 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5437 * remote-rdi.c remote-rdp.c: Likewise.
5438 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5440 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5442 * arm-tdep.c (arm_frameless_function_invocation)
5443 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5444 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5445 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5446 (arm_pop_frame, arm_get_next_pc): Make static.
5447 (arm_gdbarch_init): Register above in gdbarch structure.
5448 (arm_read_fp): Renamed from arm_target_read_fp.
5449 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5450 * config/arm/tm-arm.h (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_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5454 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5455 (arm_pc_is_thumb_dummy): Delete declarations.
5456 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5457 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5458 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5459 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5461 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
5463 * symtab.c (compare_search_syms): New function.
5464 (sort_search_symbols): New function.
5465 (search_symbols): Sort symbols after searching rather than
5468 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5470 * NEWS: Linux -> GNU/Linux.
5472 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5474 * gdbarch.sh: For for level one methods, disallow a definition
5475 when partially multi-arched. Add comments explaining rationale.
5476 * gdbarch.h: Re-generate.
5478 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5480 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5483 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5485 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5487 * gdbarch.c: Re-generate.
5489 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5491 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5492 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5495 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5497 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5499 (PUSH_ARGUMENTS): Switch to using predefault.
5500 * gdbarch.c: Regenerate.
5502 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5504 * valops.c (PUSH_ARGUMENTS): Delete definition.
5505 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5506 partial. Default to default_push_arguments.
5507 * gdbarch.h, gdbarch.c: Regenerate.
5509 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5511 * defs.h (throw_exception): Rename return_to_top_level. Update
5513 * utils.c (error_stream, internal_verror, quit): Ditto.
5514 * top.c (throw_exception, catcher): Ditto.
5515 * sparclet-rom.c (sparclet_load): Ditto.
5516 * remote.c (interrupt_query, minitelnet): Ditto.
5517 * remote-sds.c (interrupt_query): Ditto.
5518 * remote-mips.c (mips_error, mips_kill): Ditto.
5519 * ocd.c (interrupt_query): Ditto.
5520 * monitor.c (monitor_interrupt_query): Ditto.
5521 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5522 * target.h: Update comment.
5524 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5526 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5528 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5529 default_double_format.
5530 * gdbarch.h, gdbarch.c: Re-generate.
5531 * findvar.c (floatformat_unknown): Delete variable definition.
5532 * doublest.h (floatformat_unknown): Delete variable declaration.
5534 2002-02-09 Jim Blandy <jimb@redhat.com>
5536 * stabsread.c (read_type): Add code to parse Sun's syntax for
5537 prototyped function types.
5539 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5541 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5542 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5544 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5546 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5547 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5548 now _initialize_xcoffsolib gets called again and overrides the
5549 commands from solib.c in a native configuration.
5551 2002-02-09 Mark Kettenis <kettenis@gnu.org>
5553 * doublest.c (store_typed_floating): Don't try to return a value.
5556 2002-02-08 Jim Blandy <jimb@redhat.com>
5558 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5559 is prototyped and has no arguments, print its argument list as
5562 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5564 * MAINTAINERS (write-after-approval): Add myself.
5565 (paper-trail): I've escaped!
5567 2002-02-08 Christopher Faylor <cgf@redhat.com>
5569 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5571 (_initialize_check_for_gdb_ini): Ditto.
5573 2002-02-08 Martin M. Hunt <hunt@redhat.com>
5575 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5576 xaprintf -> xasprintf.
5578 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5580 * win32-nat.c: Remove use of printf and sprintf functions.
5582 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
5584 * arm-tdep.c (arm_frame_chain_valid): Make static.
5585 (arm_push_arguments): Likewise.
5586 (arm_gdbarch_init): New function.
5587 (_initialize_arm_tdep): Call it.
5588 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5589 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5590 (FRAME_CHAIN_VALID): Delete.
5591 (arm_frame_chain_valid): Delete declaration.
5592 (PUSH_ARGUMENTS): Delete.
5593 (arm_push_arguments): Delete declaration.
5594 (CALL_DUMMY_P): Delete.
5596 2002-02-08 Andrew Cagney <ac131313@redhat.com>
5597 Corinna Vinschen <vinschen@redhat.com>
5599 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5600 on builtin float types.
5602 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5604 * utils.c: Include <curses.h> before "bfd.h".
5605 * tui/tui-hooks.c: Likewise.
5606 * tui/tui.c: Likewise.
5607 * tui/tuiCommand.c: Likewise.
5608 * tui/tuiData.c: Likewise.
5609 * tui/tuiDataWin.c: Likewise.
5610 * tui/tuiDisassem.c: Likewise.
5611 * tui/tuiGeneralWin.c: Likewise.
5612 * tui/tuiIO.c: Likewise.
5613 * tui/tuiLayout.c: Likewise.
5614 * tui/tuiRegs.c: Likewise.
5615 * tui/tuiSource.c: Likewise.
5616 * tui/tuiSourceWin.c: Likewise.
5617 * tui/tuiStack.c: Likewise.
5618 * tui/tuiWin.c: Likewise.
5620 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
5622 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5623 to include space for pseudoregs as well. Update loops accordingly.
5624 (sh_fp_frame_init_saved_regs): Ditto.
5625 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5627 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5629 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5630 Add Richard Earnshaw to Arm maintainers.
5632 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5634 * defs.h (warning_begin): Delete declaration.
5636 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5639 2002-02-07 Michael Snyder <msnyder@redhat.com>
5641 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5642 Logic bug, remove misplaced else.
5644 2002-02-07 Klee Dienes <klee@apple.com>
5646 * fork-inferior.c (fork_inferior): Add '!' to the list of
5647 characters that need to be quoted when building a string for the
5648 shell. Quote '!' specifically with a backslash, since CSH chokes
5649 when trying to evaluate "str!str".
5651 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5653 * rdi-share/host.h: Only provide a typedef for bool if it is not
5656 2002-02-04 Michael Snyder <msnyder@redhat.com>
5658 * breakpoint.h (enum bptype): Add new overlay event bp type.
5659 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5661 * breakpoint.c (create_internal_breakpoint): New function.
5662 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5663 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5664 (create_thread_event_breakpoint): Ditto.
5665 (create_solib_event_breakpoint): Ditto.
5666 (create_overlay_event_breakpoint): New function.
5667 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5668 (update_breakpoints_after_exec): Delete and re-initialize
5669 overlay event breakpoints after an exec. Add FIXME comment
5670 about longjmp breakpoint.
5671 (print_it_typical): Ignore overlay event breakpoints.
5672 (print_one_breakpoint): Ditto.
5674 (bpstat_what): Do not stop for overlay event breakpoints.
5675 (delete_breakpoint): Don't delete overlay event breakpoints.
5676 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5677 (breakpoint_re_set): Re-create overlay event breakpoint.
5679 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5680 (overlay_manual_command): Disable overlay breakpoints.
5681 (overlay_off_command): Disable overlay breakpoints.
5683 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5685 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5686 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5687 to here from config/tm-arm.h.
5688 (coff_sym_is_thumb): Make static.
5689 (arm_elf_make_msymbol_special): New function.
5690 (arm_coff_make_msymbol_special): New function.
5691 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5692 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5693 (coff_sym_is_thumb): Delete declaration.
5694 (arm_elf_make_msymbol_special): Declare.
5695 (arm_coff_make_msymbol_special): Declare.
5696 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5697 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5699 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5701 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5703 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5705 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5706 * gdbarch.c gdbarch.h: Regenerate.
5707 * arch-utils.c (default_print_float_info): New function.
5708 * arch-utils.h (default_print_float_info): Prototype it.
5709 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5710 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5711 (PRINT_FLOAT_INFO): Document it.
5713 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5714 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5715 (PRINT_FLOAT_INFO): Define.
5717 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5719 * win32-nat.c (_initialize_check_for_gdb_ini):
5720 Add typecast to sprintf argument to suppress a warning.
5722 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5724 * win32-nat.c (last_sig): Changed type of variable to target_signal,
5725 to allow easier handling of pass state.
5726 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5727 that gives exception name and address.
5728 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
5729 and set last_sig value to ourstatus->value.sig. Some missing
5731 (child_continue): Correctly report continue_status.
5732 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
5733 TARGET_SIGNAL_0 (new default value).
5734 (child_resume): consider sig argument passed to decide if
5735 the exception should be passed to debuggee or not.
5737 2002-02-05 Michael Snyder <msnyder@redhat.com>
5739 * regcache.c (fetch_register): Call target_fetch_register
5740 only if we don't call FETCH_PSEUDO_REGISTER.
5741 (store_register): Call target_store_register only if we
5742 don't call STORE_PSEUDO_REGISTER.
5744 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
5746 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5747 ELF_MAKE_MSYMBOL_SPECIAL.
5748 * gdbarch.c, gdbarch.h: Regenerate.
5749 * arch-utils.c (default_make_msymbol_special): New function.
5750 * arch-utils.h (default_make_msymbol_special): Export.
5751 * elfread.c (elf_symtab_read): Compile use of
5752 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5754 * coffread.c (coff_symtab_read): Ditto, for
5755 COFF_MAKE_MSYMBOL_SPECIAL.
5757 2002-02-05 Jim Blandy <jimb@redhat.com>
5759 * solib-svr4.c (svr4_truncate_ptr): New function.
5760 (svr4_relocate_section_addresses): Do the address arithmetic with
5761 the appropriate truncation for target addresses, even when
5762 CORE_ADDR is larger than a target address.
5764 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5766 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5769 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5771 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5774 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5776 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5778 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5780 * gdbserver/linux-low.c: Remove unused include files.
5782 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5784 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5785 (read_inferior_memory): Use it.
5786 (write_inferior_memory): Likewise.
5788 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5790 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5791 grubbing through sys_errlist.
5793 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5795 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5797 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5798 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5800 2002-02-04 Andrew Cagney <ac131313@redhat.com>
5802 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5803 (do_sfunc, set_cmd_sfunc): New functions.
5805 * command.h (struct cmd_list_element): Add field func.
5806 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5807 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5808 * cli/cli-decode.h: Ditto.
5810 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5811 (help_all, help_cmd_list): Ditto.
5812 (find_cmd, complete_on_cmdlist): Ditto.
5813 * top.c (execute_command): Ditto.
5815 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5818 * infcmd.c (notice_args_read): Fix function signature.
5820 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5821 * cli/cli-decode.c (add_set_cmd): Ditto.
5822 * utils.c (initialize_utils): Ditto.
5823 * maint.c (_initialize_maint_cmds): Ditto.
5824 * infrun.c (_initialize_infrun): Ditto.
5825 * demangle.c (_initialize_demangler): Ditto.
5826 * remote.c (add_packet_config_cmd): Ditto.
5827 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5828 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5829 * proc-api.c (_initialize_proc_api): Ditto.
5830 * kod.c (_initialize_kod): Ditto.
5831 * valprint.c (_initialize_valprint): Ditto.
5832 * top.c (init_main): Ditto.
5833 * infcmd.c (_initialize_infcmd): Ditto.
5834 * corefile.c (_initialize_core): Ditto.
5835 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5836 * arch-utils.c (initialize_current_architecture): Ditto.
5837 (_initialize_gdbarch_utils): Ditto.
5838 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5840 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5841 * wince.c (_initialize_inftarg): Ditto.
5842 * symfile.c (_initialize_symfile): Ditto.
5843 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5844 * language.c (_initialize_language): Ditto.
5845 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5847 2002-02-04 Michael Snyder <msnyder@redhat.com>
5849 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5851 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5853 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5854 Add rules for building the register data files.
5856 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5858 * regformats/regdat.sh: Add braces to the definition of
5859 expedite_regs_${arch}.
5861 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5863 * regformats/regdef.h (struct reg): Add comment describing the
5864 requirements for offset and size fields.
5866 2002-02-04 Andreas Schwab <schwab@suse.de>
5868 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5869 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5871 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5873 * gdbarch.sh (copyright): Update years in generated header.
5874 (SMASH_TEXT_ADDRESS): Add rule.
5875 * gdbarch.h, gdbarch.c: Re-generate.
5876 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5877 * dbxread.c: Likewise.
5878 * dwarfread.c: Likewise.
5879 * elfread.c: Likewise.
5880 * somread.c: Likewise.
5882 * arm-tdep.c (arm_smash_text_address): New function.
5883 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5885 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5887 Add support for hardware watchpoints on win32 native.
5888 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
5889 CONTEXT_DEBUG_REGISTERS.
5890 (dr variable): New variable. Static array containing a local copy
5892 (debug_registers_changed): New variable. Reflects when debug registers
5893 are changed and need to be written to inferior.
5894 (debug_registers_used): New variable. Reflects when any debug register
5895 was set, used when new threads are created.
5896 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5898 (thread_rec): Set dr array if id is the thread of current_event .
5899 (child_continue, child_resume): Change the debug registers for all
5900 threads if debug_registers_changed.
5901 (child_add_thread): Change the debug registers if debug_registers_used.
5902 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5903 Link nm.h to new nm-cygwin.h file.
5904 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5905 of hardware registers.
5907 2002-02-03 Andrew Cagney <ac131313@redhat.com>
5909 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5910 Restore behavour broken by 2002-01-20 Andrew Cagney
5911 <ac131313@redhat.com> IEEE_FLOAT removal.
5913 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5915 * c-valprint.c (c_val_print): Pass a proper valaddr to
5916 cp_print_class_method.
5917 * valops.c (search_struct_method): If there is only one method
5918 and args is NULL, return that method.
5920 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5922 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5923 accessing tag_name directly.
5925 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5927 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5928 of accessing tag_name directly.
5930 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5933 * gdbtypes.c (replace_type): New function.
5934 * gdbtypes.h (replace_type): Add prototype.
5935 * stabsread.c (read_type): Use replace_type.
5937 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
5939 * Makefile.in (memattr.o): Add missing dependencies rule.
5941 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5943 * breakpoint.c (break_at_finish_command): Really export.
5944 (break_at_finish_at_depth_command): Ditto.
5945 (tbreak_at_finish_command): Ditto.
5946 * hppa-tdep.c: Include completer.h.
5947 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5948 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5950 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5952 * utils.c (do_write): New function.
5953 (error_stream): Rewrite combining the code from error_begin and
5955 (verror): Rewrite using error_stream.
5956 (error_begin): Delete function.
5958 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5960 * utils.c (error_begin): Make static.
5961 * defs.h (error_begin): Delete declaration.
5963 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5964 (decode_line_1): Use cplusplus_error instead of error_begin,
5965 cplusplus_hint and return_to_top_level.
5966 * coffread.c (coff_symfile_read): Use error instead of error_begin
5967 and return_to_top_level.
5968 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5970 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5972 * language.h (type_error, range_error): Make string parameter
5974 * language.c (warning_pre_print): Delete extern declaration.
5975 * dwarfread.c (warning_pre_print): Ditto.
5976 * language.c (type_error, range_error): Rewrite to use verror and
5977 vwarning instead of warning_begin.
5979 2002-02-01 Michael Snyder <msnyder@redhat.com>
5981 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5982 (set_ignore_count): Move misplaced comment back where it belongs.
5984 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5986 * command.h (NO_FUNCTION): Delete macro.
5987 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5988 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5989 * tracepoint.c (_initialize_tracepoint): Ditto.
5990 * cli/cli-decode.c (add_set_cmd): Ditto.
5991 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5993 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5995 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5996 Update ``this'' pointer when calling virtual functions.
5998 2002-02-01 Michael Snyder <msnyder@redhat.com>
6000 * breakpoint.c (create_temp_exception_breakpoint): Delete.
6001 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6003 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6005 * regformats/reg-arm.dat: New file.
6006 * regformats/reg-i386.dat: New file.
6007 * regformats/reg-ia64.dat: New file.
6008 * regformats/reg-m68k.dat: New file.
6009 * regformats/reg-mips.dat: New file.
6010 * regformats/reg-ppc.dat: New file.
6011 * regformats/reg-sh.dat: New file.
6012 * regformats/regdef.h: New file.
6013 * regformats/regdat.sh: New file.
6015 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
6017 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6018 (arm_frame_args_address, arm_frame_locals_address): New functions.
6019 (arm_frame_num_args): New function.
6020 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6021 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6022 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6024 2002-01-31 Michael Snyder <msnyder@redhat.com>
6026 * breakpoint.c (break_at_finish_command): Export.
6027 (break_at_finish_at_depth_command): Export.
6028 (tbreak_at_finish_command): Export.
6029 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6030 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6031 "tbreak" commands, which are HPPA specific.
6033 * printcmd.c (disassemble_command): Remove an ancient
6034 artifact of an old merge.
6036 * symfile.h (enum overlay_debugging_state):
6037 Define enum constant values for overlay mode.
6038 * symfile.c (overlay_debugging): Use enums instead of literals.
6039 (overlay_is_mapped, overlay_auto_command,
6040 overlay_manual_command): Ditto.
6042 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6043 breakpoint_here_p, breakpoint_inserted_here_p,
6044 breakpoint_thread_match, bpstat_stop_status,
6045 describe_other_breakpoints, check_duplicates, clear_command):
6046 Coding standard fixes.
6048 * target.c (target_xfer_memory): Add spaces, coding standard.
6049 (do_xfer_memory): Add missing line to trust-readonly
6050 code: check bfd SEC_READONLY flag for section.
6052 2002-01-31 Andrew Cagney <ac131313@redhat.com>
6054 * PROBLEMS: Fix typo, 5.1->5.1.1.
6056 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
6058 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6059 data symbols, since we search based on textlow and texthigh.
6060 (find_pc_sect_symtab): Likewise.
6062 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6064 * defs.h (vwarning): Declare.
6065 * utils.c (vwarning): New function.
6066 (warning): Call vwarning.
6067 (warning_begin): Delete function.
6069 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6070 the warning message.
6071 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6074 2002-01-30 Michael Snyder <msnyder@redhat.com>
6076 * NEWS: Mention "set trust-readonly-sections" command.
6077 Mention generate-core-file command.
6079 2002-01-15 Michael Snyder <msnyder@redhat.com>
6081 * target.c: New command, "set trust-readonly-sections on".
6082 (do_xfer_memory): Honor the suggestion to trust readonly sections
6083 by reading them from the object file instead of from the target.
6084 (initialize_targets): Register command "set trust-readonly-sections".
6086 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6088 * parse.c (target_map_name_to_register): Simplify, search regs and
6089 pseudo-regs using a single loop.
6091 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6093 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6095 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
6097 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6098 * config/i386/i386v42mp.mh: Add i387-nat.o .
6099 * i386v4-nat.c: Include i387-nat.h.
6100 (supply_fpregset): Use i387_supply_fsave.
6101 (fill_fpregset): Use i387_fill_fsave.
6103 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
6105 * arm-tdep.c (arm_call_dummy_words): Define.
6106 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6107 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6108 (CALL_DUMMY_WORDS): Define.
6109 (arm_call_dummy_words): Declare.
6110 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6111 (arm_linux_call_dummy_words): Declare.
6113 2002-01-30 Andreas Schwab <schwab@suse.de>
6115 * m68klinux-nat.c: Fix last change to use regcache_collect
6116 instead of referencing registers[] directly.
6118 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6120 * parse.c (target_map_name_to_register): Delete code wrapped in
6121 #ifdef REGISTER_NAME_ALIAS_HOOK.
6123 2002-01-28 Michael Snyder <msnyder@redhat.com>
6125 * regcache.c (legacy_read_register_gen): Need to be able to
6126 read pseudo-register as well as real register.
6127 (legacy_write_register_gen): Ditto.
6129 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6131 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6132 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6133 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6134 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6135 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6136 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6137 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6138 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6139 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6140 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6141 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6142 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6143 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6144 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6145 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6146 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6147 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6148 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6149 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6150 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6152 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6154 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6155 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6156 (initialize_current_architecture): Update target_byte_order using
6157 information from BFD.
6158 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6159 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6161 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6163 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6164 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6166 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6167 #ifdef INVALID_FLOAT.
6168 * infcmd.c (do_registers_info): Ditto.
6169 * values.c (unpack_double): Ditto. Add comment.
6171 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6172 already commented out.
6174 2002-01-26 Andreas Schwab <schwab@suse.de>
6176 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6177 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6178 registers and add support for PTRACE_GETREGS.
6180 2002-01-24 Andrew Cagney <ac131313@redhat.com>
6182 GDB 5.1.1 released from 5.1 branch.
6183 * NEWS: Add 5.1.1 news.
6184 * README: Sync with 5.1 branch.
6186 2002-01-23 Fred Fish <fnf@redhat.com>
6188 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6189 stabstring on initial malloc. Reallocing will copy it for us,
6192 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6194 * Makefile.in (hpread_h): Delete.
6195 (HFILES_NO_SRCDIR): Remove hpread.h.
6196 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6197 (hpread.o): Update dependencies.
6198 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6200 * hp-psymtab-read.c: Remove file.
6201 * hp-symtab-read.c: Remove file.
6202 * hpread.h: Remove file.
6204 * hpread.c: Merge all contents of hp-psymtab-read.c,
6205 hp-symtab-read.c and hpread.h into this file, as it was prior to
6208 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6209 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6210 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6211 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6213 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6215 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6216 fill_gregset): Call gdbarch_tdep() just once, assign result to
6217 variable and use that, instead of calling the function several
6220 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6222 * configure.host: Accept sparcv9 as alias for sparc64.
6223 * configure.tgt: Likewise.
6225 2002-01-22 Kevin Buettner <kevinb@redhat.com>
6227 * solib-aix5.c (build_so_list_from_mapfile)
6228 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6229 arguments is not reversed.
6230 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6231 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6233 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
6235 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6236 modified version of obsolete sh_fetch_pseudo_register.
6237 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6238 (sh4_register_read): New function.
6239 (sh_pseudo_register_write): New function. Renamed and modified
6240 version of obsolete sh_store_pseudo_register.
6241 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6242 (sh4_register_write): New function.
6243 (sh_gdbarch_init): Remove setting of gdbarch function
6244 fetch_pseudo_register and store_pseudo_register. Remove setting of
6245 register_convert_to_raw, register_convert_to_virtual,
6246 register_convertible.
6247 (sh_sh4_register_convertible): Delete. No longer needed. All is
6248 taken care by architecture specific functions
6249 register_read/register_write.
6250 (sh_sh4_register_convert_to_virtual): Make static.
6251 (sh_sh4_register_convert_to_raw): Ditto.
6253 2002-01-22 Andrew Cagney <ac131313@redhat.com>
6255 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6256 (floatformat_is_nan, floatformat_mantissa): Ditto.
6258 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6259 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6260 builtin_type_ieee_double_little,
6261 builtin_type_ieee_double_littlebyte_bigword,
6262 builtin_type_m68881_ext, builtin_type_i960_ext,
6263 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6264 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6265 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6266 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6268 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
6270 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6271 parameter. Set frameless flag if it exists and depended of
6272 whether the scanned function is frameless or not.
6273 (xstormy16_skip_prologue): If function is frameless, return
6274 result of xstormy16_scan_prologue().
6275 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6278 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
6280 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6281 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6282 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6283 sh_sh4_register_byte, sh_sh4_register_raw_size,
6284 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6285 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6286 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6287 sh_store_pseudo_register, sh_do_pseudo_register): Call
6288 gdbarch_tdep() just once, assign result to variable and use that,
6289 instead of calling the function several times.
6291 2002-01-20 Mark Kettenis <kettenis@gnu.org>
6293 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6294 macros instead of LAST_FPU_CTRL_REGNUM.
6295 (store_register): Likewise.
6297 2002-01-21 Jim Blandy <jimb@redhat.com>
6299 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6300 is up-to-date before running the program, not just when a program
6303 2002-01-21 Fred Fish <fnf@redhat.com>
6305 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6306 when we have found all instructions we are looking for.
6308 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6310 * arm-tdep.c (arm_register_name): New function.
6311 (arm_registers_names): Make static.
6312 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6313 (arm_register_name): Declare.
6314 (REGISTER_NAME): Use it.
6316 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6317 Kevin Buettner <kevinb@redhat.com>
6319 Convert arm targets to new FRAME interface.
6320 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6321 (arm_frame_find_save_regs): Delete.
6322 (arm_frame_init_saved_regs): New.
6323 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6324 Allocate extra_info as required. Convert all uses of fsr.regs
6325 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6327 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6328 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6329 (check_prologue_cache, save_prologue_cache): Likewise.
6330 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6331 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6332 (FRAME_FIND_SAVED_REGS): Delete.
6333 (arm_frame_find_saved_regs): Delete prototype.
6334 (arm_frame_init_saved_regs): New prototype.
6335 (FRAME_INIT_SAVED_REGS): Define.
6337 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6339 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6341 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6343 From Jeff Law <law@redhat.com>:
6344 * infttrace.c: Include <sys/pstat.h>.
6345 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6346 exec file if the ttrace equivalent fails.
6348 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6350 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6351 (closeLogFile): Ditto.
6353 2002-01-20 Michael Chastain <mec@shout.net>
6355 * top.c (print_gdb_version): Bump copyright year to 2002.
6357 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6359 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6360 Zannoni and Eli Zaretskii.
6362 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6364 * buildsym.c: Update copyright years.
6365 * c-typeprint.c: Likewise.
6366 * dwarf2read.c: Likewise.
6367 * f-typeprint.c: Likewise.
6368 * gdbtypes.c: Likewise.
6369 * gdbtypes.h: Likewise.
6370 * hp-symtab-read.c: Likewise.
6371 * hpread.c: Likewise.
6372 * mdebugread.c: Likewise.
6373 * p-typeprint.c: Likewise.
6375 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6377 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6378 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6379 byte-order selectable.
6380 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6381 * arch-utils.c: Ditto.
6382 (set_endian): Ditto.
6383 (set_endian_from_file): Ditto.
6384 * gdbserver/low-sim.c (create_inferior): Ditto.
6385 * gdbarch.sh: Ditto.
6386 * gdbarch.h: Re-generate.
6387 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6388 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6389 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6390 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6391 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6392 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6393 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6394 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6396 * config/mips/tm-wince.h: Remove #undef of macro
6397 TARGET_BYTE_ORDER_SELECTABLE.
6398 * config/sh/tm-wince.h: Ditto.
6400 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6402 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6403 member function fields. Add accessor macro
6404 TYPE_FN_FIELD_ARTIFICIAL.
6405 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6406 * c-typeprint.c (c_type_print_base): Skip artificial member
6409 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6411 * f-typeprint.c: Delete unused function f_type_print_args.
6412 * p-typeprint.c: Delete unused function pascal_type_print_args.
6414 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6416 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6417 comment. Add ``artificial'' to ``union field_location''.
6419 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6421 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6422 * mdebugread.c (parse_symbol): Likewise.
6423 * stabsread.c (define_symbol): Likewise.
6424 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6425 initializing TYPE_FIELD_BITPOS to n (obsolete).
6426 (hpread_doc_function_type): Likewise.
6427 * hpread.c (hpread_function_type): Likewise.
6429 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6431 * configure.in (host_makefile_frag): Only require a host makefile
6432 fragment when a native build.
6433 * configure: Re-generate.
6435 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6437 * doublest.h (floatformat_from_type): Declare.
6438 * doublest.c (floatformat_from_type): New function.
6439 (convert_typed_floating): Use.
6441 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6442 call to function floatformat_from_type.
6444 * gdbarch.sh (IEEE_FLOAT): Delete.
6445 * gdbarch.h, gdbarch.c: Re-generate.
6446 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6447 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6448 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6449 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6450 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6451 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6452 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6453 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6454 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6455 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6456 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6457 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6459 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6460 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6461 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6462 * sh-tdep.c (sh_gdbarch_init): Ditto.
6463 * mips-tdep.c (mips_gdbarch_init): Ditto.
6464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6465 * cris-tdep.c (cris_gdbarch_init): Ditto.
6467 2002-01-20 Jiri Smid <smid@suse.cz>
6469 * configure.host, configure.tgt: Support x86-64.
6470 * NEWS: Note new target x86-64.
6472 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6473 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6474 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6475 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6476 x86-64-linux-nat.o): Fix dependencies.
6478 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6480 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6481 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6482 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6483 * config/sparc/xm-sun4os4.h: Delete file.
6484 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6486 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6488 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6489 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6490 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6491 * config/i386/i386lynx.mh (XM_FILE): Delete.
6492 * config/rs6000/xm-rs6000ly.h: Delete file.
6493 * config/sparc/xm-sparclynx.h: Delete file.
6494 * config/m68k/xm-m68klynx.h: Delete file.
6495 * config/i386/xm-i386lynx.h: Delete file.
6496 * config/xm-lynx.h: Delete file.
6497 * config/djgpp/fnchange.lst: Update.
6499 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6501 * alpha-tdep.c (alpha_register_byte): New function.
6502 (alpha_register_raw_size): Ditto.
6503 (alpha_register_virtual_size): Ditto.
6504 (alpha_skip_prologue_internal): Renamed from
6505 alpha_skip_prologue.
6506 (alpha_skip_prologue): New version that calls
6507 alpha_skip_prologue_internal.
6508 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6509 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6510 second argument from alpha_skip_prologue.
6511 (REGISTER_BYTE): Use alpha_register_byte.
6512 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6513 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6514 (FRAMELESS_FUNCTION_INVOCATION): Use
6515 generic_frameless_function_invocation_not.
6516 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6517 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6519 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6521 * config/mips/xm-news-mips.h: Delete file.
6522 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6524 * config/m88k/xm-m88k.h: Delete file.
6525 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6526 * config/m88k/xm-delta88v4.h: Ditto.
6527 * config/m88k/xm-delta88.h: Ditto.
6529 * config/alpha/xm-fbsd.h: Delete file.
6530 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6532 * config/sparc/xm-sparc.h: Delete file.
6533 * Makefile.in (xm-sun4os4.h): Delete dependency.
6534 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6535 * config/sparc/xm-sun4os4.h: Ditto.
6536 * config/sparc/xm-linux.h: Ditto.
6538 * config/i386/xm-windows.h: Delete file.
6540 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6542 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6543 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6545 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6547 * alpha-tdep.c (alpha_call_dummy_words): New.
6548 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6549 (CALL_DUMMY_P): Define.
6550 (CALL_DUMMY_WORDS): Define.
6551 (SIZEOF_CALL_DUMMY_WORDS): Define.
6553 2002-01-19 Per Bothner <per@bothner.com>
6555 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6556 isn't NULL, which can happen with some gcj-3.x-produced code.
6558 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6560 * alpha-tdep.c (alpha_register_virtual_type): New function.
6561 (alpha_init_frame_pc_first): Ditto.
6562 (alpha_fix_call_dummy): Ditto.
6563 (alpha_store_struct_return): Ditto.
6564 (alpha_extract_struct_value_address): Ditto.
6565 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6566 alpha_register_virtual_type.
6567 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6568 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6569 alpha_extract_struct_value_address.
6570 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6571 (INIT_FRAME_PC): Use init_frame_pc_noop.
6572 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6574 2002-01-19 Mark Kettenis <kettenis@gnu.org>
6576 * i386gnu-nat.c: Include "i386-tdep.h".
6577 (fetch_fpregs): Simplify code dealing with uninitialized floating
6578 point states such that it doesn't require FP7_REGNUM.
6580 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6582 * alpha-tdep.c (frame_extra_info): New.
6583 (alpha_find_saved_regs): Make static. Use
6585 (alpha_frame_init_saved_regs): New function.
6586 (alpha_frame_saved_pc): Use frame->extra_info.
6587 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6588 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6589 (init_extra_frame_info): Rename to...
6590 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
6591 (alpha_print_extra_frame_info): New function.
6592 (alpha_frame_locals_address): Ditto.
6593 (alpha_frame_args_address): Ditto.
6594 (alpha_pop_frame): Use frame->extra_info.
6595 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6596 alpha_frame_args_address.
6597 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6598 (alpha_find_saved_regs): Remove prototype.
6599 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6600 (EXTRA_FRAME_INFO): Remove.
6601 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6602 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6604 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6606 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6607 (alpha_cannot_fetch_register): Ditto.
6608 (alpha_cannot_store_register): Ditto.
6609 (alpha_register_convertible): Ditto.
6610 (alpha_use_struct_convention): Ditto.
6611 * config/alpha/tm-alpha.h: Update copyright years.
6612 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6613 (INNER_THAN): Use core_addr_lessthan.
6614 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6615 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6616 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6617 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6618 (FRAME_CHAIN): Remove unnecessary cast.
6620 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6622 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6625 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6627 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6628 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6629 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6630 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6631 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6632 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6633 * x86-64-linux-nat.c: Ditto.
6635 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6637 * alpha-tdep.c (alpha_register_name): New function.
6638 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6639 (REGISTER_NAME): Define.
6641 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6643 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6645 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6647 * alpha-tdep.c: Update copyright years.
6648 (alpha_next_pc): New function.
6649 (alpha_software_single_step): Ditto.
6650 * config/alpha/tm-alpha.h: Add prototype for
6651 alpha_software_single_step.
6653 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6655 * alphabsd-nat.c: Update copyright years.
6656 (fill_gregset): Use regcache_collect.
6657 (fill_fpregset): Likewise.
6658 (fetch_inferior_registers): Only fetch integer registers
6659 if requested to do so.
6660 (store_inferior_registers): Only store integer registers
6661 if requested to do so.
6663 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6665 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6666 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6667 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6668 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6669 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6670 * config/arm/linux.mh (XDEPFILES): Delete.
6671 * config/arm/nbsd.mh (XDEPFILES): Delete.
6672 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6673 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6674 * config/i386/i386m3.mh (XDEPFILES): Delete.
6675 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6676 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6677 * config/i386/fbsd.mh (XDEPFILES): Delete.
6678 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6679 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6680 * config/i386/i386v4.mh (XDEPFILES): Delete.
6681 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6682 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6683 * config/i386/i386aix.mh (XDEPFILES): Delete.
6684 * config/i386/go32.mh (XDEPFILES): Delete.
6685 * config/i386/cygwin.mh (XDEPFILES): Delete.
6686 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6687 * config/i386/i386mach.mh (XDEPFILES): Delete.
6688 * config/i386/i386v32.mh (XDEPFILES): Delete.
6689 * config/i386/linux.mh (XDEPFILES): Delete.
6690 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6691 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6692 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6693 * config/i386/i386sco.mh (XDEPFILES): Delete.
6694 * config/i386/i386v.mh (XDEPFILES): Delete.
6695 * config/i386/nbsd.mh (XDEPFILES): Delete.
6696 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6697 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6698 * config/i386/symmetry.mh (XDEPFILES): Delete.
6699 * config/i386/obsd.mh (XDEPFILES): Delete.
6700 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6701 * config/ia64/linux.mh (XDEPFILES): Delete.
6702 * config/ia64/aix.mh (XDEPFILES): Delete.
6703 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6704 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6705 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6706 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6707 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6708 * config/m68k/linux.mh (XDEPFILES): Delete.
6709 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6710 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6711 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6712 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6713 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6714 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6715 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6716 * config/m88k/delta88.mh (XDEPFILES): Delete.
6717 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6718 * config/m88k/m88k.mh (XDEPFILES): Delete.
6719 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6720 * config/mips/linux.mh (XDEPFILES): Delete.
6721 * config/mips/irix6.mh (XDEPFILES): Delete.
6722 * config/mips/irix5.mh (XDEPFILES): Delete.
6723 * config/mips/irix4.mh (XDEPFILES): Delete.
6724 * config/mips/irix3.mh (XDEPFILES): Delete.
6725 * config/mips/decstation.mh (XDEPFILES): Delete.
6726 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6727 (NATDEPFILES): Move core-aout.o to here.
6728 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6729 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6730 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6731 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6732 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6733 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6734 * config/pa/hpux11.mh (XDEPFILES): Delete.
6735 * config/powerpc/aix.mh (XDEPFILES): Delete.
6736 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6737 * config/powerpc/linux.mh (XDEPFILES): Delete.
6738 * config/romp/rtbsd.mh: Rename XDEPFILES.
6739 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6740 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6741 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6742 * config/s390/s390.mh (XDEPFILES): Delete.
6743 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6744 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6745 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6746 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6747 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6748 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6749 * config/sparc/linux.mh (XDEPFILES): Delete.
6750 * config/vax/vaxult.mh (XDEPFILES): Delete.
6751 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6752 * Makefile.in (DEPFILES): Remove XDEPFILES.
6754 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6756 * utils.c (internal_verror): Fix comments, default is yes not no.
6757 Update queries to match. Default to quit and dump core.
6759 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6761 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6763 * defs.h, event-top.c, gdbcmd.h: Ditto.
6764 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6765 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6766 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6767 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6768 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6769 * mi/mi-main.c:Ditto.
6771 * stack.c, symfile.c: Update copyright.
6773 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6775 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6776 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6777 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6778 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
6780 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6782 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6783 * gdbserver/low-lynx.c (myattach): Likewise.
6784 * gdbserver/low-nbsd.c (myattach): Likewise.
6785 * gdbserver/low-sim.c (myattach): Likewise.
6786 * gdbserver/low-sparc.c (myattach): Likewise.
6787 * gdbserver/low-sun3.c (myattach): Likewise.
6789 * gdbserver/low-linux.c (myattach): New function.
6791 * gdbserver/server.c (attach_inferior): New function.
6792 (main): Handle "--attach".
6794 2002-01-16 Andrew Cagney <ac131313@redhat.com>
6796 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6799 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
6801 * c-typeprint.c (is_type_conversion_operator): Add additional
6802 check for non-conversion operators.
6804 2002-01-15 Michael Snyder <msnyder@redhat.com>
6806 * linux-proc.c: Add "info proc" command, a la procfs.c.
6807 (read_mapping): New function, abstract and re-use code.
6808 (linux_find_memory_regions): Use new func read_mapping.
6809 (linux_info_proc_cmd): New function, implement "info proc".
6810 (_initialize_linux_proc): Add new command "info proc".
6812 2002-01-15 Michael Snyder <msnyder@redhat.com>
6814 * symfile.c (generic_load): Use bfd_map_over_sections method
6815 instead of manipulating bfd structure members directly.
6816 (add_section_size_callback): New function, bfd sections callback
6817 used by generic_load.
6818 (load_sections_callback): New function, bfd sections callback
6819 used by generic_load.
6821 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
6823 [Based on work by Jim Blandy]
6824 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6825 (builtin_type_vec128): Export.
6826 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6828 (builtin_type_vec128): New builtin type for 128 bit vector
6830 (build_gdbtypes): Initialize builtin_type_v16qi and
6831 builtin_type_v8hi. Create the vec128 register builtin type
6833 (build_builtin_type_vec128): New function.
6834 (_initialize_gdbtypes): Register builtin_type_v16qi and
6835 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6836 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6837 AltiVec register to new builtin type.
6839 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
6841 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6844 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6846 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6847 CLEAN_UP_REGISTER_VALUE.
6848 * regcache.c (supply_register): Update only call.
6850 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6852 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6853 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6854 a29k-*-vxworks* targets as obsolete.
6856 2002-01-14 Michael Snyder <msnyder@redhat.com>
6858 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6859 until we can resolve portability issues.
6860 * gregset.h: Remove references to fpxregs.
6861 * gcore.c (gcore_command): Initialize note_sec to NULL.
6863 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6865 * signals.c (target_signal_to_name): Rewrite. Only use
6866 signals[].name when in bounds and non-NULL.
6868 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6870 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6871 * signals.c (target_signal_to_name): Verify that SIG is within the
6872 bounds of the signals array.
6874 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6876 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6878 2002-01-13 Keith Seitz <keiths@redhat.com>
6880 * stack.c (print_frame_info_base): Print the frame's pc
6881 only if when print_frame_info_listing_hook is not defined.
6883 2002-01-13 Keith Seitz <keiths@redhat.com>
6885 * varobj.c (varobj_set_value): Make sure that there were no
6886 errors evaluating the object before attempting to set its
6888 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6889 so this offset adjustment is no longer necessary.
6890 (create_child): Don't set the error flag if the child is
6892 (value_of_child): If value_fetch_lazy fails, return NULL
6893 so that callers will be notified that an error occurred.
6894 (c_value_of_variable): Delay check of variable's validity
6895 until later. We actually want all structs and unions to have
6897 Do not return "???" for variables which could not be evaluated.
6898 This error condition must be returned to the caller so that it
6899 can get the error condition from gdb.
6900 (cplus_name_of_child): Adjust index for vptr before figuring
6901 out the name of the child.
6902 (cplus_value_of_child): If a child's (real) parent is not valid,
6903 don't even bother trying to give a value for it. Just return
6904 an error. Change all instances in this function.
6905 (cplus_type_of_child): If our parent is one of the "fake"
6906 parents, we need to get at the type of the real parent, and
6907 derive the child's true type using this information.
6909 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6911 From 2002-01-09 John Marshall <johnm@falch.net>:
6912 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6913 sources.redhat.com, and tweak some related URLs which had
6914 suffered from linkrot.
6916 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6919 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6920 structures passed in registers.
6922 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6924 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6925 white space which prevented compilation. Reported by DSK
6926 <dsk@student.unsw.edu.au>.
6928 2002-01-11 Michael Snyder <msnyder@redhat.com>
6930 * symfile.c (build_section_addr_info_from_section_tab):
6931 Use bfd access method instead of manipulating bfd directly.
6932 (syms_from_objfile): Ditto.
6933 (simple_overlay_update_1): Ditto.
6934 (simple_overlay_update): Ditto.
6935 (generic_load): Ditto.
6936 (overlay_unmapped_address): FIXME comment, bfd access methods.
6937 (sections_overlap): FIXME comment, bfd access methods.
6938 (pc_in_mapped_range): FIXME comment, bfd access methods.
6939 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6940 (section_is_mapped): FIXME comment, bfd access methods.
6941 (section_is_overlay): FIXME comment, bfd access methods.
6943 * symfile.c (generic_load): Whitespace and long line cleanups.
6944 Remove duplicate variable, change several local variables to
6945 more appropriate data types.
6946 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6948 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6951 * language.c (longest_local_hex_string_custom): Use phex_nz to
6952 convert NUM to a hex string.
6954 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
6956 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6958 Update Copyright year.
6960 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6962 * language.c (longest_raw_hex_string): Delete unused function.
6964 2002-01-11 Petr Sorfa <petrs@caldera.com>
6966 * MAINTAINERS (write-after-approval): Add myself.
6967 * dwarf2read.c (read_tag_string_type): Handling of
6969 (read_tag_string_type): FORTRAN fix to prevent propagation of
6971 (set_cu_language): Handling of DW_LANG_Fortran95
6973 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6975 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6976 GETPID(inferior_ptid).
6977 (store_inferior_registers): Likewise.
6979 2002-01-10 Jason Merrill <jason@redhat.com>
6981 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6984 2002-01-10 Andrew Cagney <ac131313@redhat.com>
6986 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6987 and bfd/elf32-sh-nbsd.c.
6989 2002-01-10 Michael Snyder <msnyder@redhat.com>
6991 * NEWS: Mention --pid and corefile/proc-id behavior change.
6993 * Makefile.in: Add rules for gcore.o and linux-proc.o.
6994 * gcore.c: Include cli/cli-decode.h instead of command.h.
6996 * main.c (captured_main): Add new command line option "--pid".
6997 If the second command line argument (following the symbol-file)
6998 begins with a digit, try to attach to it before trying to open
7000 (print_gdb_help): Document the "--pid" argument.
7002 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7004 * completer.c (command_completer): New function.
7006 * completer.h <command_completer>: Add prototype.
7008 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7009 completer for the "help" command.
7011 2002-01-09 Jason Merrill <jason@redhat.com>
7013 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7015 2002-01-09 Michael Snyder <msnyder@redhat.com>
7017 * i386-linux-nat.c (fill_fpxregset): Make global.
7018 (store_fpxregset): Ditto.
7020 * gregset.h (gdb_fpxregset_t): Define.
7021 (supply_fpxregset): Prototype.
7022 (fill_fpxregset): Prototype.
7024 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7026 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7028 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7029 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7030 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7032 2002-01-09 Andrew Cagney <ac131313@redhat.com>
7034 * MAINTAINERS: Update target maintainer rules so that any
7035 Maintainer can approve a tested patch for a maintenance-only
7038 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7040 * MAINTAINERS (write-after-approval): Add myself.
7042 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7045 2002-01-08 Michael Snyder <msnyder@redhat.com>
7047 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7048 real name of the executable, rather than the /proc name.
7050 2002-01-03 Michael Snyder <msnyder@redhat.com>
7052 Implement a "generate-core-file" command in gdb, save target state.
7053 * gcore.c: New file. Implement new command 'generate-core-file'.
7054 Save a corefile image of the current state of the inferior.
7055 * linux-proc.c: Add linux-specific code for saving corefiles.
7056 * target.h (struct target_ops): Add new target vectors for saving
7057 corefiles; to_find_memory_regions and to_make_corefile_notes.
7058 (target_find_memory_regions): New macro.
7059 (target_make_corefile_notes): New macro.
7060 * target.c (update_current_target): Inherit new target methods.
7061 (dummy_find_memory_regions): New place-holder method.
7062 (dummy_make_corefile_notes): New place-holder method.
7063 (init_dummy_target): Initialize new dummy target vectors.
7064 * exec.c (exec_set_find_memory_regions): New function.
7065 Allow the exec_ops vector for memory regions to be taken over.
7066 (exec_make_note_section): New function, target vector method.
7067 * defs.h (exec_set_find_memory_regions): Export prototype.
7068 * procfs.c (proc_find_memory_regions): New function, corefile method.
7069 (procfs_make_note_section): New function, corefile method.
7070 (init_procfs_ops): Set new target vector pointers.
7071 (find_memory_regions_callback): New function.
7072 (procfs_do_thread_registers): New function.
7073 (procfs_corefile_thread_callback): New function.
7074 * sol-thread.c (sol_find_memory_regions): New function.
7075 (sol_make_note_section): New function.
7076 (init_sol_thread_ops): Initialize new target vectors.
7077 * inftarg.c (inftarg_set_find_memory_regions): New function.
7078 Allow to_find_memory_regions vector to be taken over.
7079 (inftarg_set_make_corefile_notes): New function.
7080 Allow to_make_corefile_notes vector to be taken over.
7081 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7082 interface layer if not target_has_execution (may be a corefile).
7083 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7084 * config/sparc/sun4sol2.mh: Ditto.
7085 * config/alpha/alpha-linux.mh: Ditto.
7086 * config/arm/linux.mh: Ditto.
7087 * config/i386/x86-64linux.mh: Ditto.
7088 * config/ia64/linux.mh: Ditto.
7089 * config/m68k/linux.mh: Ditto.
7090 * config/mips/linux.mh: Ditto.
7091 * config/powerpc/linux.mh: Ditto.
7092 * config/sparc/linux.mh: Ditto.
7094 2002-01-07 Michael Snyder <msnyder@redhat.com>
7096 * arm-linux-nat.c: Remove references to regcache.c internal data
7097 (registers[] and register_valid[]).
7099 2002-01-07 Michael Snyder <msnyder@redhat.com>
7101 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7102 so that attaching to a pid will automatically read the process's
7103 symbol file and shlibs.
7104 * Makefile.in: Add rule for linux-proc.o.
7105 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7106 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7107 * config/arm/linux.mh: Ditto.
7108 * config/i386/linux.mh: Ditto.
7109 * config/i386/x86-64linux.mh: Ditto.
7110 * config/ia64/linux.mh: Ditto.
7111 * config/m68k/linux.mh: Ditto.
7112 * config/mips/linux.mh: Ditto.
7113 * config/powerpc/linux.mh: Ditto.
7114 * config/sparc/linux.mh: Ditto.
7116 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
7118 * win32-nat.c: Add i386-tdep.h dependency.
7120 2002-01-07 Michael Snyder <msnyder@redhat.com>
7122 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7123 instead of bfd_get_arch_size. Don't bail out just because
7124 there's no exec_bfd.
7126 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7127 * p-valprint.c (pascal_object_print_value): Ditto.
7128 * somread.c (som_symtab_read): Ditto.
7129 * symfile.c (simple_free_overlay_region_table): Ditto.
7130 * valops.c (value_assign): Ditto.
7132 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7133 use tilde_expand and strerror for opening save-tracepoints file.
7135 * thread-db.c (thread_db_new_objfile): Indendation fix.
7137 * infptrace.c (GDB_MAX_ALLOCA): New define.
7138 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7139 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7140 can be overridden with whatever value is appropriate to the host).
7141 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7142 alloca to allocate potentially large buffer.
7143 * rs6000-nat.c (child_xfer_memory): Ditto.
7144 * symm-nat.c (child_xfer_memory): Ditto.
7145 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7147 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
7149 From Nick Clifton <nickc@redhat.com>
7150 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7152 2002-01-07 Michael Snyder <msnyder@redhat.com>
7154 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7155 Don't use exec_bfd if it's NULL.
7157 2002-01-06 Mark Kettenis <kettenis@gnu.org>
7159 * valops.c (value_arg_coerce): Fix formatting.
7161 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7163 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7166 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7168 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7169 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7170 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7171 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7172 z8k-coff have not been multi-arched. Update z8k-coff build
7175 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7177 * MAINTAINERS: Mark a29k target as obsolete.
7178 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7179 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7181 * NEWS: Note that a29k targets are obsolete.
7182 * a29k-tdep.c: Mark as obsolete.
7183 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7184 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7185 a29k-*-vxworks* targets as obsolete.
7186 * remote-adapt.c: Obsolete.
7187 * remote-eb.c: Obsolete.
7188 * remote-mm.c: Obsolete.
7189 * remote-udi.c: Obsolete.
7190 * config/a29k/a29k-udi.mt: Obsolete.
7191 * config/a29k/a29k.mt: Obsolete.
7192 * config/a29k/tm-a29k.h: Obsolete.
7193 * config/a29k/tm-vx29k.h: Obsolete.
7194 * config/a29k/vx29k.mt: Obsolete.
7196 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7198 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7199 with BFD_ENDIAN_BIG.
7201 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7203 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7204 * configure, config.in: Re-generate.
7205 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7206 * defs.h: Do not include <endian.h>.
7208 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
7210 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7211 * config.in: Regenerate.
7212 * configure.in: Update copyright years.
7213 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7214 * configure: Regenerate.
7215 * i386bsd-nat.c: Update copyright years.
7216 (fill_gregset): Use regcache_collect.
7217 (fetch_inferior_registers): Only fetch integer registers
7218 if requested to do so. Add support for XMM registers
7219 using PT_GETXMMREGS.
7220 (store_inferior_registers): Only store integer registers
7221 if requested to do so. Add support for XMM registers
7222 using PT_SETXMMREGS.
7223 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7224 (store_inferior_registers): Remove.
7225 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7226 (fetch_elfcore_registers): New function.
7227 (i386nbsd_elfcore_fns): New.
7228 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7229 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7231 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7232 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7233 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7234 * config/i386/tm-nbsd.h: Update copyright years.
7235 (HAVE_SSE_REGS): Define.
7236 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7237 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7238 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7239 (SIGCONTEXT_PC_OFFSET): Remove.
7240 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7242 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7244 * configure.tgt: Remove powerpc-*-macos* target.
7245 * config/m68k/xm-mpw.h: Delete file.
7246 * config/xm-mpw.h: Delete file.
7247 * ser-mac.c: Delete file.
7248 * mpw-make.sed: Delete file.
7249 * mpw-config.in: Delete file.
7250 * mac-xdep.c: Delete file.
7251 * mac-gdb.r: Delete file.
7252 * mac-defs.h: Delete file.
7253 * mac-nat.c: Delete file.
7254 * config/powerpc/macos.mh: Delete file.
7255 * config/powerpc/macos.mt: Delete file.
7256 * config/powerpc/nm-macos.h: Delete file.
7257 * config/powerpc/tm-macos.h: Delete file.
7258 * source.c (openp, open_source_file): Remove obsolete code.
7259 * top.c (gdb_readline): Ditto.
7260 * utils.c (query): Ditto.
7261 * event-top.c (display_gdb_prompt): Ditto.
7262 * Makefile.in (ser-mac.o): Delete obsolete target.
7265 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7267 * defs.h (BIG_ENDIAN): Delete macro definition.
7268 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7269 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7270 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7271 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7272 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7273 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7274 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7275 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7276 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7277 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7278 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7279 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7280 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7281 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7282 * gdbarch.c: Re-generate.
7284 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7286 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7289 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7291 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7293 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7295 * value.h (value_ptr): Delete typedef.
7297 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7299 * i386nbsd-nat.c: Update copyright years.
7300 Include i386-tdep.h.
7302 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
7304 * stabsread.c: Update copyright years.
7306 From Debashis Mahata <debashis.mahata@wipro.com>:
7307 (read_struct_fields): Deal with Sun C compiler erroneous stab
7308 output for structs and unions.
7311 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7313 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7316 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7318 * cp-abi.c: Fix whitespace.
7319 (baseclass_offset): New wrapper function.
7320 * cp-abi.h (baseclass_offset): Add prototype.
7321 (struct cp_abi_ops): Add baseclass_offset pointer.
7323 * valops.c (vb_match): Move to...
7324 * gnu-v2-abi.c (vb_match): here.
7325 * valops.c (baseclass_offset): Move to...
7326 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7328 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7330 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7331 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7332 * hpacc-abi.c (init_hpacc_ops): Likewise.
7334 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7336 * valops.c (find_overload_match): Accept obj as a
7337 reference parameter. Update it before returning.
7338 * value.h (find_overload_match): Update prototype.
7339 * eval.c (evaluate_subexp_standard): Pass object to
7340 find_overload_match by reference.
7342 2002-01-03 Andrew Cagney <ac131313@redhat.com>
7344 * valarith.c: Replace value_ptr with struct value pointer. Remove
7345 register attribute from value declarations.
7348 * scm-lang.c (scm_lookup_name): Ditto.
7350 2002-01-03 Michael Snyder <msnyder@redhat.com>
7352 Abstract the functionality of iterating over mapped memory
7353 regions into a general purpose iterator function.
7354 * procfs.c (iterate_over_mappings): New function, general purpose
7355 iterator for memory sections.
7356 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7357 (solib_mappings_callback): New function, callback for above.
7358 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7359 (info_mappings_callback): New function, callback for above.
7361 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7363 2002-01-01 Mark Kettenis <kettenis@gnu.org>
7365 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7366 * i386-tdep.c: Include "elf-bfd.h".
7367 (process_note_abi_tag_sections): New function.
7368 (i386_gdbarch_init): Add code to recognize various OS/ABI
7371 * maint.c (_initialize_maint_cmds): Add missing \ in
7374 For older changes see ChangeLog-2001
7380 version-control: never