1 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6 (FP0_REGNUM): Remove define.
7 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
9 (i386_register_virtual_size): Remove protoype.
10 * i386-tdep.c (i386_register_virtual_size): Removed.
11 (i386_extract_return_value, i386_store_return_value): Use
12 FP0_REGNUM instead of NUM_FREGS to determine whether the
13 floating-point registers are available.
14 (i386_gdbarch_init): Tweak FIXME about FPU registers.
15 Adjust for removal of macros mentioned above.
17 2002-06-15 Mark Kettenis <kettenis@gnu.org>
19 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
21 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
23 (supply_gregset, fill_gregset): Remove use of register keyword and
24 remove declaration for regmap. Use I386_NUM_GREGS instead of
25 NUM_REGS and NUM_FREGS.
26 (FPREGSET_FSAVE_OFFSET): Remove.
27 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
28 NUM_FREGS to determine whether the floating-point registers are
31 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
32 gnu_store_registers): Replace usage of NUM_GREGS with
35 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
36 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
37 usage of NUM_GREGS with I386_NUM_GREGS.
39 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
41 * i386bsd-nat.c: Include "i386-tdep.h".
42 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
45 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
46 and associated comment. They no longer make any sense, since we
47 don't use this file anymore on Linux.
49 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
50 * i386-tdep.c (i386_register_offset, i386_register_size): Use
51 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
52 elements in these arrays.
53 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
56 2002-06-15 Mark Kettenis <kettenis@gnu.org>
58 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
59 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
61 2002-06-14 Andrew Cagney <cagney@redhat.com>
63 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
65 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
66 EXTRACT_STRUCT_VALUE_ADDRESS.
67 * gdbarch.h, gdbarch.c: Regenerate.
69 * values.c (value_being_returned): Handle
70 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
71 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
73 * arm-linux-tdep.c (arm_linux_init_abi): Update.
74 * arm-tdep.c (arm_gdbarch_init): Update.
75 * avr-tdep.c (avr_gdbarch_init): Update.
76 * cris-tdep.c (cris_gdbarch_init): Update.
77 * d10v-tdep.c (d10v_gdbarch_init): Update.
78 * ia64-tdep.c (ia64_gdbarch_init): Update.
79 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
80 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
81 * s390-tdep.c (s390_gdbarch_init): Update.
82 * sh-tdep.c (sh_gdbarch_init): Update.
83 * s390-tdep.c (s390_gdbarch_init): Update.
84 * sparc-tdep.c (sparc_gdbarch_init): Update.
85 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
86 * v850-tdep.c (v850_gdbarch_init): Update.
87 * vax-tdep.c (vax_gdbarch_init): Update.
88 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
89 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
91 * config/arc/tm-arc.h: Update.
92 * config/d30v/tm-d30v.h: Update.
93 * config/fr30/tm-fr30.h: Update.
94 * config/h8300/tm-h8300.h: Update.
95 * config/h8500/tm-h8500.h: Update.
96 * config/i386/tm-i386.h: Update.
97 * config/i386/tm-ptx.h: Update.
98 * config/i386/tm-symmetry.h: Update.
99 * config/i960/tm-i960.h: Update.
100 * config/m32r/tm-m32r.h: Update.
101 * config/m68k/tm-delta68.h: Update.
102 * config/m68k/tm-linux.h: Update.
103 * config/m68k/tm-m68k.h: Update.
104 * config/m88k/tm-m88k.h: Update.
105 * config/mcore/tm-mcore.h: Update.
106 * config/mips/tm-mips.h: Update.
107 * config/mn10200/tm-mn10200.h: Update.
108 * config/pa/tm-hppa.h: Update.
109 * config/pa/tm-hppa64.h: Update.
110 * config/sparc/tm-sp64.h: Update.
111 * config/sparc/tm-sparc.h: Update.
112 * config/sparc/tm-sparclet.h: Update.
113 * config/z8k/tm-z8k.h: Update.
115 2002-06-14 Andrew Cagney <cagney@redhat.com>
117 * Makefile.in (i386_linux_tdep_h): Define.
118 (i386_tdep_h, i387_tdep_h): Define.
119 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
120 $(i386_tdep_h) and $(i387_tdep_h).
121 * i386-linux-nat.c: Include "i386-linux-tdep.h".
123 2002-06-14 Mark Kettenis <kettenis@gnu.org>
125 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
126 Already covered by the default.
128 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
129 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
130 (i386_gdbarch_init): Initialize long_double_format and long_double
133 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
134 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
136 * config/i386/i386sol2.mh: ... here.
137 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
138 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
139 (SIGCONTEXT_PC_OFFSET): Remove define.
140 (IN_SIGTRAMP): Remove define.
141 * i386-sol2-tdep.c: New file.
143 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
144 * config/i386/tm-i386nw.h: Removed.
146 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
147 USE_STRUCT_CONVENTION): Remove defines.
148 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
149 (get_longjmp_target): Remove prototype.
150 (IN_SIGTRAMP): Remove define.
151 (i386bsd_in_sigtramp): Remove prototype.
152 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
153 function. Update comment accordingly
154 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
155 (FRAME_SAVED_PC): Remove define.
156 (i386bsd_frame_saved_pc): Remove prototype.
157 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
158 GET_LONGJMP_TARGET): Remove defines.
159 (get_longjmp_target): Remove prototype.
160 (IN_SIGTRAMP): Remove define.
161 (i386bsd_in_sigtramp): Remove prototype.
162 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
163 function. Update comment accordingly
164 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
165 (FRAME_SAVED_PC): Remove define.
166 (i386bsd_frame_saved_pc): Remove prototype.
167 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
169 (USE_STRUCT_CONVENTION): Remove prototype.
170 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
172 (_initialize_i386bsd_nat): Revise logic to determine some
173 constants at compile time when compiling a native GDB. Warn if
174 things don't match up with what we expect.
175 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
177 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
178 to use date stored in `struct gdbarch_tdep'.
179 (i386bsd_sigcontext_offset): Remove varaible.
180 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
181 stored in `struct gdbarch_tdep'.
182 (i386bsd_frame_saved_pc): Make static.
183 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
184 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
185 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
186 i386fbsd4_sc_pc_offset): New variables.
187 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
188 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
190 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
192 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
193 Modify the value of i386fbsd_sigtramp_start and
194 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
195 i386fbsd_sigtramp_end.
196 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
199 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
200 define to i386-linux-tdep.h.
201 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
202 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
204 (i386_linux_register_name, i386_linux_register_byte,
205 i386_linux_register_raw_size): Remove prototypes.
206 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
207 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
208 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
209 TARGET_WRITE_PC): Remove defines.
210 (i386_linux_in_sigtramp, i386_linux_frame_chain,
211 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
212 i386_linux_write_pc): Remove prototypes.
213 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
214 (get_longjmp_target): Remove prototype.
215 * i386-linux-tdep.h: New file.
216 * i386-linux-nat.c: Include "i386-linux-tdep.h".
217 * i386-linux-tdep.c: Include "i386-tdep.h" and
219 (i386_linux_register_name, i386_linux_register_byte,
220 i386_linux_register_raw_size, i386_linux_in_sigtramp,
221 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
223 (i386_linux_init_abi): New function.
224 (_initialize_i386_linux_tdep): New function.
226 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
227 (i386_saved_pc_after_call): Remove prototype.
228 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
229 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
230 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
231 (i386_register_name, i386_stab_reg_to_regnum,
232 i386_dwarf_reg_to_regnum): Remove prototypes.
233 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
234 SIZEOF_SSE_REGS): Remove defines.
235 (REGISTER_BYTES): Remove define.
236 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
237 (i386_register_byte, i386_register_raw_size): Remove prototypes.
238 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
239 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
240 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
241 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
242 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
243 (get_longjmp_target): Remove prototype.
244 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
245 (sigtramp_saved_pc): Remove define.
246 (i386v4_sigtramp_saved_pc): Remove prototype.
247 * config/i386/tm-go32.h (FRAME_CHAIN,
248 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
249 (i386go32_frame_saved_pc): Remove prototype.
250 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
251 (get_longjmp_target): Remove prototype.
252 * i386-tdep.h: Include "osabi.h".
253 (enum i386_abi): Removed.
254 (enum struct_return): New enum.
255 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
256 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
257 sc_pc_offset members.
258 (i386_gdbarch_register_os_abi): Remove prototype.
259 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
260 I386_SSE_NUM_REGS): New defines.
261 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
262 I386_SSE_SIZEOF_REGS): New defines.
263 (i386_register_name, i386_register_byte, i386_register_raw_size):
265 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
266 (i386bsd_sigtramp_saved_pc): New prototype.
267 * i386-tdep.c: Don't include "elf-bfd.h".
268 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
269 i386_frame_chain, i386_saved_pc_after_call): Make static.
270 (i386_frame_saved_pc): Rewrite to call architecture dependent
271 function to deal with signal handlers. Make static.
272 (i386go32_frame_saved_pc): Removed.
273 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
275 (i386_get_longjmp_target): New function.
276 (default_struct_convention, pcc_struct_convention,
277 reg_struct_convention, valid_conventions, struct_convention): New
279 (i386_use_struct_convention): New function.
280 (i386v4_sigtramp_saved_pc): Renamed to
281 i386_svr4_sigtramp_saved_pc. Made static. Moved.
282 (i386_pc_in_sigtramp): New function.
283 (i386_abi_names): Removed.
284 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
285 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
287 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
288 i386_gdbarch_register_os_abi): Removed.
289 (struct i386_abi_handler): Removed.
290 (i386_abi_handler_list): Removed.
291 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
293 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
294 i386_nw_init_abi): New functions.
295 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
296 Use set_gdbarch_xxx() calls instead of relying on macros for a
298 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
299 (_initialize_i386_tdep): Add new 'struct-convcention' command.
300 Register the various architecture variants defined in this file.
302 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
304 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
305 (struct main_type): Remove arg_types member. Update comments for
307 (TYPE_ARG_TYPES): Remove.
308 (TYPE_FN_FIELD_ARGS): Update.
309 (smash_to_method_type): Update prototype.
311 * c-typeprint.c (cp_type_print_method_args): Take method type
312 instead of argument list. Use new argument layout. Simplify.
313 (c_type_print_args): Use new argument layout. Simplify.
314 (c_type_print_base): Update call to cp_type_print_method_args.
315 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
316 argument; use die->type instead. Update call to
317 smash_to_method_type.
318 (read_structure_scope): Update call to dwarf2_add_member_fn.
319 * gdbtypes.c (allocate_stub_method): Update comment.
320 (smash_to_method_type): Take new NARGS and VARARGS arguments.
321 Use new argument layout.
322 (check_stub_method): Use new argument layout. Don't count
324 (print_arg_types): Update comments. Use new argument layout.
325 (recursive_dump_type): Don't print arg_types member.
326 * hpread.c (hpread_read_struct_type): Use new argument layout.
327 (fixup_class_method_type): Likewise.
328 (hpread_type_lookup): Likewise.
329 * stabsread.c (read_type): Update calls to read_args and
330 smash_to_method_type.
331 (read_args): Use new argument layout. Simplify.
332 * valops.c (typecmp): Use new argument layout. Update parameters
333 and comments. Simplify.
334 (hand_function_call): Use new argument layout.
335 (search_struct_method): Update call to typecmp.
336 (find_overload_match): Use new argument layout.
338 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
340 * NEWS: Mention multithreaded debug support for gdbserver.
342 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
344 * MAINTAINERS: Mention NEWS.
346 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
348 * gdbserver/regcache.c: Add comment.
350 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
352 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
353 (struct mips_objfile_private, compare_pdr_entries): New.
354 (non_heuristic_proc_desc): Read the ".pdr" section if it
357 2002-06-12 Andrew Cagney <ac131313@redhat.com>
359 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
360 (arm_debug): New static variable.
361 (_initialize_arm_tdep): Add ``set debug arm'' command.
363 2002-06-12 Andrew Cagney <ac131313@redhat.com>
365 * Makefile.in (sim_arm_h): Define.
366 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
367 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
368 (arm_register_sim_regno): New function, map an internal REGNUM
369 onto a simulator register number.
370 (arm_gdbarch_init): Set register_sim_regno.
372 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
374 * MAINTAINERS: Add self.
376 2002-06-11 Jim Blandy <jimb@redhat.com>
378 * source.c (source_info): Mention whether the symtab has
379 information about preprocessor macros.
381 Call the command `info macro', not `show macro'.
382 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
384 (_initialize_macrocmd): Register `info_macro_command' in
385 `infolist', not `showlist'.
387 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
389 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
390 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
391 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
392 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
393 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
395 (set_mipsfpu_single_command, set_mipsfpu_double_command)
396 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
397 (_initialize_mips_tdep): Remove dead code.
398 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
399 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
400 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
401 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
402 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
403 MIPS_LAST_FP_ARG_REGNUM): Remove.
405 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
407 * gdbserver/thread-db.c: New file.
408 * gdbserver/proc-service.c: New file.
409 * gdbserver/acinclude.m4: New file.
410 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
411 proc-service.o, and thread-db.o.
412 (linux-low.o): Add USE_THREAD_DB.
413 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
414 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
415 * gdbserver/aclocal.m4: Regenerated.
416 * gdbserver/config.in: Regenerated.
417 * gdbserver/configure: Regenerated.
418 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
419 thread_db.h, and linux/elf.h headrs.
420 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
421 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
422 Check for -lthread_db and thread support.
423 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
425 * gdbserver/i387-fp.c: Constify arguments.
426 * gdbserver/i387-fp.h: Likewise.
427 * gdbserver/inferiors.c: (struct thread_info): Renamed from
428 `struct inferior_info'. Remove PID member. Use generic inferior
429 list header. All uses updated.
430 (inferiors, signal_pid): Removed.
431 (all_threads): New variable.
432 (get_thread): Define.
433 (add_inferior_to_list): New function.
434 (for_each_inferior): New function.
435 (change_inferior_id): New function.
436 (add_inferior): Removed.
437 (remove_inferior): New function.
438 (add_thread): New function.
439 (free_one_thread): New function.
440 (remove_thread): New function.
441 (clear_inferiors): Use for_each_inferior and free_one_thread.
442 (find_inferior): New function.
443 (find_inferior_id): New function.
444 (inferior_target_data): Update argument type.
445 (set_inferior_target_data): Likewise.
446 (inferior_regcache_data): Likewise.
447 (set_inferior_regcache_data): Likewise.
448 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
449 (all_processes, stopping_threads, using_thrads)
450 (struct pending_signals, debug_threads, pid_of): New.
451 (inferior_pid): Replace with macro.
452 (struct inferior_linux_data): Remove.
453 (get_stop_pc, add_process): New functions.
454 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
455 Use add_process and add_thread.
456 (linux_attach_lwp): New function, based on old linux_attach. Use
457 add_process and add_thread. Set stop_expected for new threads.
458 (linux_attach): New function.
459 (linux_kill_one_process): New function.
460 (linux_kill): Kill all LWPs.
461 (linux_thread_alive): Use find_inferior_id.
462 (check_removed_breakpoints, status_pending_p): New functions.
463 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
464 Update. Use WNOHANG. Wait for cloned processes also. Update process
465 struct for the found process.
466 (linux_wait_for_event): New function.
467 (linux_wait): Use it. Support LWPs.
468 (send_sigstop, wait_for_sigstop, stop_all_processes)
469 (linux_resume_one_process, linux_continue_one_process): New functions.
470 (linux_resume): Support LWPs.
471 (REGISTER_RAW_SIZE): Remove.
472 (fetch_register): Use register_size instead. Call supply_register.
473 (usr_store_inferior_registers): Likewise. Call collect_register.
475 (regsets_fetch_inferior_registers): Improve error message.
476 (regsets_store_inferior_registers): Add debugging.
477 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
478 (unstopped_p, linux_signal_pid): New functions.
479 (linux_target_ops): Add linux_signal_pid.
480 (linux_init_signals): New function.
481 (initialize_low): Call it. Initialize using_threads.
482 * gdbserver/regcache.c (inferior_regcache_data): Add valid
484 (get_regcache): Fetch registers lazily. Add fetch argument
485 and update all callers.
486 (regcache_invalidate_one, regcache_invalidate): New
488 (new_register_cache): Renamed from create_register_cache.
489 Return the new regcache.
490 (free_register_cache): Change argument to a void *.
491 (registers_to_string, registers_from_string): Call get_regcache
493 (register_data): Make static. Pass fetch flag to get_regcache.
494 (supply_register): Call get_regcache with fetch flag clear.
495 (collect_register): Call get_regcache with fetch flag set.
496 (collect_register_as_string): New function.
497 * gdbserver/regcache.h: Update.
498 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
500 Handle input interrupts while waiting for an ACK.
501 (input_interrupt): Use signal_pid method.
502 (getpkt): Flush after debug output and use stderr.
503 (outreg): Use collect_register_as_string.
504 (new_thread_notify, dead_thread_notify): New functions.
505 (prepare_resume_reply): Check using_threads. Set thread_from_wait
507 (look_up_one_symbol): Flush after debug output.
508 * gdbserver/server.c (step_thread, server_waiting): New variables.
509 (start_inferior): Don't use signal_pid. Update call to mywait.
510 (attach_inferior): Update call to mywait.
511 (handle_query): Handle qfThreadInfo and qsThreadInfo.
512 (main): Don't fetch/store registers explicitly. Use
513 set_desired_inferior. Support proposed ``Hs'' packet. Update
515 * gdbserver/server.h: Update.
516 (struct inferior_list, struct_inferior_list_entry): New.
517 * gdbserver/target.c (set_desired_inferior): New.
518 (write_inferior_memory): Constify.
519 (mywait): New function.
520 * gdbserver/target.h: Update.
521 (struct target_ops): New signal_pid method.
522 (mywait): Removed macro, added prototype.
524 * gdbserver/linux-low.h (regset_func): Removed.
525 (regset_fill_func, regset_store_func): New.
526 (enum regset_type): New.
527 (struct regset_info): Add type field. Use new operation types.
528 (struct linux_target_ops): stop_pc renamed to get_pc.
529 Add decr_pc_after_break and breakpoint_at.
530 (get_process, get_thread_proess, get_process_thread)
531 (strut process_info, all_processes, linux_attach_lwp)
532 (thread_db_init): New.
534 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
535 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
536 (the_low_target): Add new members.
537 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
538 (i386_store_fpxregset): Constify.
539 (target_regsets): Add new kind identifier.
540 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
541 (i386_set_pc): Add debugging.
542 (i386_breakpoint_at): New function.
543 (the_low_target): Add new members.
544 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
545 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
546 (mips_breakpoint_at): New.
547 (the_low_target): Add new members.
548 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
549 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
550 (the_low_target): Add new members.
551 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
552 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
553 (the_low_target): Add new members.
554 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
557 2002-06-11 Michal Ludvig <mludvig@suse.cz>
559 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
560 (unwind_tmp_obstack_free, parse_frame_info)
561 (update_context, cfi_read_fp, cfi_write_fp)
562 (cfi_frame_chain, cfi_init_extra_frame_info)
563 (cfi_virtual_frame_pointer): Use the above function.
564 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
566 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
568 * v850-tdep.c (v850_type_is_scalar): New function.
569 (v850_use_struct_convention): Match current gcc implementation
570 as close as possible.
571 (v850_push_arguments): Fix stack_offset handling. Don't write
572 struct_addr into register. This is done by v850_store_struct_return.
573 (v850_extract_return_value): Care for structs.
574 (v850_store_return_value): Ditto.
575 (v850_store_struct_return): Actually write address.
577 2002-06-11 Michal Ludvig <mludvig@suse.cz>
579 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
580 without debug information too.
582 2002-06-10 Andrew Cagney <ac131313@redhat.com>
584 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
585 Make multi-arch pure.
586 * gdbarch.h, gdbarch.c: Re-generate.
587 * arm-tdep.c (arm_print_float_info): Update.
588 * arch-utils.h (default_print_float_info): Update.
589 * arch-utils.c (default_print_float_info): Update.
590 * infcmd.c (float_info): Update call.
592 2002-06-10 Andrew Cagney <ac131313@redhat.com>
594 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
595 the front of the initialize list.
597 2002-06-10 Andrew Cagney <ac131313@redhat.com>
599 * infrun.c (struct inferior_status): Replace fields
600 selected_frame_address and selected_level with field
602 (save_inferior_status): Update. Use get_frame_id.
603 (struct restore_selected_frame_args): Delete.
604 (restore_selected_frame): Update. Use frame_find_by_id.
605 (restore_inferior_status): Update.
607 * breakpoint.h (struct breakpoint): Change type of
608 watchpoint_frame to frame_id.
609 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
610 call to get_current_frame.
611 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
613 (watchpoint_check): Use frame_find_by_id.
615 * frame.h (record_selected_frame): Delete declaration.
616 * stack.c (record_selected_frame): Delete function.
618 * frame.h (struct frame_id): Define.
619 (get_frame_id): Declare.
620 (frame_find_by_id): Declare.
621 * frame.c (frame_find_by_id): New function.
622 (get_frame_id): New function.
624 2002-06-10 Andrey Volkov <avolkov@transas.com>
626 * ser-e7kpc.c: Fix duplicated define and call of
627 _initialize_ser_e7000pc
629 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
631 * signals/signals.c (target_signal_from_host): Fix #ifdef
633 (do_target_signal_to_host): Likewise.
635 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
637 * mips-tdep.c (mips_find_abi_section): New function.
638 (mips_gdbarch_init): Call it.
640 2002-06-09 Mark Kettenis <kettenis@gnu.org>
642 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
643 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
644 after Andrew's 2002-06-08 gdbarch change.
646 2002-06-09 Mark Kettenis <kettenis@gnu.org>
648 * i386-linux-nat.c (suppy_gregset): Don't supply
649 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
651 (fill_gregset): Don't fetch it under the same circumstances.
653 2002-06-09 Andrew Cagney <cagney@redhat.com>
655 * Makefile.in (callback_h): Define.
656 (remote_sim_h): Update path to remote-sim.h.
657 (remote-rdp.o): Add $(callback_h).
658 (remote-sim.o): Use $(callback_h).
659 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
660 * remote-rdp.c: Include "gdb/callback.h".
662 2002-06-09 Mark Kettenis <kettenis@gnu.org>
664 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
665 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
667 2002-06-08 Andrew Cagney <ac131313@redhat.com>
669 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
670 * rdi-share/serpardr.c: Ditto.
671 * rdi-share/unixcomm.c: Ditto.
672 * rdi-share/serdrv.c: Ditto.
673 * rdi-share/hostchan.h: Ditto.
674 * rdi-share/hostchan.c: Ditto.
675 * rdi-share/host.h: Ditto.
676 * rdi-share/devsw.c: Ditto.
678 * objfiles.h: Change type of obj_private to void pointer.
679 * pa64solib.c: Update copyright. Don't include "assert.h", use
680 strcmp instead of STREQ, use LONGEST, do not use PTR
683 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
684 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
685 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
687 2002-06-08 Andrew Cagney <ac131313@redhat.com>
689 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
690 (default_get_saved_register): Delete function.
691 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
692 generic_unwind_get_saved_register.
693 * gdbarch.h, gdbarch.c: Re-generate.
695 2002-06-08 Andrew Cagney <ac131313@redhat.com>
697 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
698 generic_func_frame_chain_valid.
699 * gdbarch.h, gdbarch.c: Re-generate.
700 * blockframe.c (generic_func_frame_chain_valid): Only check
701 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
702 passing FP to PC_IN_CALL_DUMMY.
705 2002-06-08 Andrew Cagney <ac131313@redhat.com>
707 * gdbarch.sh (struct gdbarch_data): Add field init_p.
708 (register_gdbarch_data): Initialize init_p.
709 (gdbarch_data): Initialize data pointer using the init function.
710 (init_gdbarch_data): Delete function.
711 (gdbarch_update_p): Update.
712 (initialize_non_multiarch): Update.
713 (struct gdbarch): Add field initialized_p.
714 * gdbarch.h, gdbarch.c: Re-generate.
716 2002-06-07 Michal Ludvig <mludvig@suse.cz>
718 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
719 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
720 better do the things actually here.
721 * x86-64-tdep.c (x86_64_register_name2nr): New.
722 (x86_64_register_name): Renamed to x86_64_register_nr2name.
723 (x86_64_gdbarch_init): Respect the above change.
724 * x86-64-tdep.h (x86_64_register_name2nr)
725 (x86_64_register_nr2name): Add prototypes.
726 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
728 2002-06-06 Michael Snyder <msnyder@redhat.com>
730 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
731 Delete extra braces and re-indent.
732 (d10v_store_return_value): Char return values
733 must be shifted over by one byte in R0.
734 (d10v_extract_return_value): Delete extra braces, re-indent.
736 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
738 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
739 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
740 (d10v_integer_to_address): Rewrite.
741 (d10v_frame_init_saved_regs): When reading fp and sp registers use
742 the d10v specific functions which take care of converting to the
745 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
747 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
748 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
750 2002-06-02 Andrew Cagney <ac131313@redhat.com>
752 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
754 * config/tm-linux.h: Ditto.
755 * config/alpha/tm-alphalinux.h: Ditto.
756 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
757 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
758 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
759 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
760 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
761 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
762 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
763 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
764 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
765 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
766 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
767 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
768 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
769 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
770 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
771 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
772 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
773 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
774 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
775 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
776 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
777 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
778 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
779 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
780 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
781 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
782 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
783 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
784 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
785 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
786 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
787 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
788 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
789 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
790 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
791 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
792 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
794 2002-05-04 Aidan Skinner <aidan@velvet.net>
796 * ada-exp.tab.c: New file
797 * ada-exp.y: New file
798 * ada-lang.c: New file
799 * ada-lang.h: New file
800 * ada-lex.c: New file
801 * ada-lex.l: New file
802 * ada-tasks.c: New file
803 * ada-typeprint.c: New file
804 * ada-valprint.c: New file
806 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
808 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
809 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
811 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
813 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
814 insetead of ppc-linux-tdep.o.
815 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
816 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
818 2002-06-02 Andrew Cagney <ac131313@redhat.com>
820 2002-05-07 Christian Groessler <chris@groessler.org>
821 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
822 bit register contents for little endian hosts.
824 2002-06-01 Andrew Cagney <ac131313@redhat.com>
826 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
829 2002-06-01 Andrew Cagney <ac131313@redhat.com>
831 * gdbarch.h: Regenerate.
833 2002-06-01 Andrew Cagney <ac131313@redhat.com>
835 * MAINTAINERS: Add everyone to write-after-approval list.
837 2002-06-01 Andrew Cagney <ac131313@redhat.com>
839 * stack.c (frame_info): Use frame_register_unwind instead of
840 saved_regs. Mention when the SP is on the stack or in a register.
842 * frame.h (frame_register_unwind_ftype): Define. Document.
843 (struct frame_info): Add field register_unwind and
844 register_unwind_cache.
845 (frame_register_unwind): Declare.
846 (generic_unwind_get_saved_register): Declare.
848 * frame.c (frame_register_unwind): New function.
849 (generic_unwind_get_saved_register): New function.
851 * blockframe.c (generic_call_dummy_register_unwind): New function.
852 (frame_saved_regs_register_unwind): New function.
853 (set_unwind_by_pc): New function.
854 (create_new_frame): New function.
855 (get_prev_frame): New function.
857 2002-05-30 Andrew Cagney <ac131313@redhat.com>
859 * a29k-share/: Delete directory.
860 * remote-vx29k.c: Delete file.
862 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
864 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
865 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
867 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
869 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
870 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
873 (sparcnbsd-tdep.o): New dependency lists.
874 * NEWS: Note new UltraSPARC NetBSD native configuration.
875 * configure.host (sparc64-*-netbsd*): New host.
876 * configure.tgt (sparc-*-netbsdelf*)
877 (sparc-*-netbsd*): Set gdb_target to nbsd.
878 (sparc64-*-netbsd*): New target.
879 * sparc64nbsd-nat.c: New file.
880 * sparcnbsd-nat.c: New file.
881 * sparcnbsd-tdep.c: New file.
882 * sparcnbsd-tdep.h: New file.
883 * config/sparc/nbsd.mt: New file.
884 * config/sparc/nbsd64.mh: New file.
885 * config/sparc/nbsd64.mt: New file.
886 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
887 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
889 * config/sparc/nbsdaout.mt: Remove.
890 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
891 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
893 * config/sparc/nbsdelf.mt: Remove.
894 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
895 sparc-nat.c compatiblity defines.
896 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
897 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
898 * config/sparc/tm-nbsd64.h: New file.
899 * config/sparc/tm-nbsdaout.h: Remove.
900 * config/sparc/xm-nbsd.h: Remove.
902 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
904 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
905 * sparc-tdep.c: Include osabi.h.
906 (gdbarch_tdep): Add osabi member.
907 (_initialize_sparc_tdep): Use gdbarch_register.
908 (sparc_gdbarch_init): Use generic OS ABI framework.
909 (sparc_dump_tdep): New function.
911 2002-05-30 Kevin Buettner <kevinb@redhat.com>
913 * corefile.c (do_captured_read_memory_integer): Return non-zero
915 (safe_read_memory_integer): Copy result of memory read when
916 status is non-zero. Also, add comments.
918 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
920 * Makefile.in (ppc_tdep_h): Define.
923 (rs6000-tdep.o): Use $(ppc_tdep_h).
926 (ppcnbsd-tdep.o): New dependency lists.
927 * ppc-tdep.h: Use generic OS ABI framework.
928 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
929 (ppc_linux_init_abi): New functions.
930 (ppc_sysv_abi_broken_use_struct_convention)
931 (ppc_sysv_abi_use_struct_convention)
932 (ppc_sysv_abi_push_arguments): Move to...
933 * ppc-sysv-tdep.c: ...here.
934 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
935 * rs6000-tdep.c (process_note_abi_tag_sections)
936 (get_elfosabi): Remove.
937 (rs6000_gdbarch_init): Use generic OS ABI framework.
938 (rs6000_dump_tdep): New function.
939 (_initialize_rs6000_tdep): Use gdbarch_register.
940 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
941 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
942 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
944 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
945 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
946 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
947 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
948 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
949 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
951 2002-05-29 Jim Blandy <jimb@redhat.com>
953 * macroscope.c (default_macro_scope): Put `void' in empty argument
956 2002-05-29 Andrew Cagney <ac131313@redhat.com>
958 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
959 * arch-utils.c: Include "sim-regno.h".
960 * gdbarch.sh: Don't include "sim-regno.h".
961 * gdbarch.h, gdbarch.c: Regenerate.
962 * sim-regno.h (legacy_register_sim_regno): Move declaration from
964 * arch-utils.h (legacy_register_sim_regno): To here.
965 * remote-sim.c (legacy_register_sim_regno): Move function from
967 * arch-utils.c (legacy_register_sim_regno): To here.
969 2002-05-28 Andrew Cagney <ac131313@redhat.com>
971 * sim-regno.h: New file.
972 * Makefile.in (sim_regno_h): Define.
973 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
974 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
975 (legacy_register_sim_regno): New function.
976 (one2one_register_sim_regno): New function.
977 (gdbsim_fetch_register): Rewrite.
978 (gdbsim_store_register): Only store a register when
979 REGISTER_SIM_REGNO is valid.
980 * d10v-tdep.c: Include "sim-regno.h".
981 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
982 (d10v_ts3_register_sim_regno): Ditto.
983 * gdbarch.sh: Include "sim-regno.h".
984 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
985 * gdbarch.h, gdbarch.c: Regenerate.
986 * arch-utils.h (default_register_sim_regno): Delete declaration.
987 * arch-utils.c (default_register_sim_regno): Delete function.
989 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
991 * ppcnbsd-nat.c: Rewrite.
992 * ppcnbsd-tdep.c: New file.
993 * ppcnbsd-tdep.h: New file.
994 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
995 solib.o, and solib-svr4.o.
996 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
997 nbsd-tdep.o, and corelow.o.
999 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1001 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1002 `tr' and `sed'. Mention that `broken' targets are not expected to
1005 2002-05-27 Michal Ludvig <mludvig@suse.cz>
1007 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1008 Let PC point right after the prologue before looking up symbols.
1010 2002-05-27 Martin M. Hunt <hunt@redhat.com>
1012 * i386-tdep.c (i386_register_virtual_type): Return
1013 builtin_type_vec128i for SSE registers.
1015 * gdbtypes.h (builtin_type_vec128i): Declare.
1017 * gdbtypes.c (build_builtin_type_vec128i): New function.
1018 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1019 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1020 (build_gdbtypes): Initialize new builtin vector types.
1021 (_initialize_gdbtypes): Register new vector types with gdbarch.
1023 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1025 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1026 since it has been multi-arch'd.
1027 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1028 Move Alpha and VAX multi-arch news entries to same section
1029 as other multi-arch news.
1031 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1033 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1034 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1035 static. Rename some register numbers to put them in ns32k-tdep
1037 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1038 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1040 (_initialize_ns32k_tdep): Use gdbarch_register.
1041 * ns32k-tdep.h: New file.
1042 * ns32knbsd-tdep.c: New file.
1043 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1044 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1045 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1046 REGISTER_BYTES, REGISTER_BYTE): Remove.
1047 * config/ns32k/tm-ns32k.h: New file.
1048 * config/ns32k/tm-umax.h: Remove.
1050 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1052 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1053 ns32k_store_struct_return, ns32k_extract_return_value,
1054 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1056 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1057 ns32k_saved_pc_after_call.
1058 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1059 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1060 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1061 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1062 ns32k_extract_struct_value_address.
1064 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1066 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1067 ns32k_fix_call_dummy): New.
1068 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1069 ns32k_call_dummy_words.
1070 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1071 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1072 CALL_DUMMY_NARGS): Remove.
1073 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1075 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1077 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1078 ns32k_frame_saved_pc, ns32k_frame_args_address,
1079 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1080 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1081 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1082 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1083 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1084 (BREAKPOINT): Remove..
1085 (FRAME_CHAIN): Define as ns32k_frame_chain.
1086 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1087 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1088 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1089 (FRAME_FIND_SAVED_REGS): Remove.
1090 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1091 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1092 (POP_FRAME): Define as ns32k_pop_frame.
1094 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1096 * ns32k-tdep.c (ns32k_register_byte_32082,
1097 ns32k_register_byte_32382, ns32k_register_raw_size,
1098 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1100 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1101 ns32k_register_byte_32382.
1102 * config/ns32k/tm-umax.h: Update copyright years.
1103 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1104 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1105 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1106 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1107 (ns32k_get_enter_addr): Fix prototype.
1109 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1111 * ns32k-tdep.c: Update copyright years.
1112 (ns32k_register_name_32082): New function.
1113 (ns32k_register_name_32382): Ditto.
1114 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1115 (REGISTER_NAME): Define as ns32k_register_name_32382.
1116 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1117 (REGISTER_NAME): Define as ns32k_register_name_32082.
1119 2002-05-24 Jim Blandy <jimb@redhat.com>
1121 * dwarf2read.c (free_line_header): Use xfree, not free.
1123 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1125 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1126 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1128 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1130 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1132 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1134 From Ross Alexander at NEC Europe:
1135 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1137 2002-05-23 Michael Snyder <msnyder@redhat.com>
1139 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1140 for input, rather than parse_and_eval_address.
1142 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1144 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1145 * Makefile.in (sim_d10v_h): Update definition.
1147 2002-05-24 Andrew Cagney <cagney@redhat.com>
1149 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1150 change `2002-05-22 Michael Snyder' below.
1151 (d10v_push_arguments): Ditto.
1152 (d10v_extract_return_value): Ditto.
1154 2002-05-23 Jim Blandy <jimb@redhat.com>
1156 * macrotab.c (check_for_redefinition): Don't complain if the new
1157 definition is the same as the previous one. Take more arguments
1158 to allow the comparison.
1159 (macro_define_object, macro_define_function): Pass more arguments
1160 to check_for_redefinition.
1162 2002-05-22 Michael Snyder <msnyder@redhat.com>
1164 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1165 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1166 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1167 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1168 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1169 Add a temp variable to save a call (and a memory read).
1170 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1171 if possible (so that PC_IN_CALL_DUMMY will work).
1173 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
1175 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1177 2002-05-22 Michal Ludvig <mludvig@suse.cz>
1179 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1181 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1182 (dwarf2_build_frame_info): Add offset to fde->initial_location
1183 so that frames of shared libraries are mapped correctly.
1184 (execute_stack_op): Change type of 'result' from ULONGEST to
1187 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1189 * config/alpha/tm-nbsd.h: Include solib.h.
1191 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1193 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1194 assumptions about the host's byte order.
1196 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1198 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1200 * alphanbsd-tdep.c: Include solib-svr4.h.
1201 * shnbsd-tdep.c: Ditto.
1203 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1205 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1206 nbsd-tdep.h to dependency list.
1207 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1208 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1209 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1210 nbsdaout.mh and nbsdelf.mh consistently.
1211 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1212 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1213 nbsdaout.mt and nbsdelf.mh consistently.
1214 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1215 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1216 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1217 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1218 a.out shared library stuff from here...
1219 * config/nm-nbsdaout.h: ...to here.
1220 * config/tm-nbsd.h: Remove.
1221 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1222 * config/arm/nbsd.mh: Remove.
1223 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1225 * config/arm/nbsdaout.mh: New file.
1226 * config/arm/nbsdelf.mh: New file.
1227 * config/arm/nm-nbsdaout.h: New file.
1228 * config/i386/nbsd.mh: Remove.
1229 * config/i386/nbsd.mt: Remove.
1230 * config/i386/nbsdaout.mh: New file.
1231 * config/i386/nbsdaout.mt: New file.
1232 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1233 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1234 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1235 i386_register_u_addr): Remove.
1236 * config/i386/nm-nbsdaout.h: New file.
1237 * config/i386/nm-nbsdelf.h: Remove.
1238 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1239 (USE_STRUCT_CONVENTION): Remove.
1240 * config/i386/tm-nbsdaout.h: New file.
1241 * config/i386/tm-nbsdelf.h: Remove.
1242 * config/m68k/nbsd.mh: Remove.
1243 * config/m68k/nbsd.mt: Remove.
1244 * config/m68k/nbsdaout.mh: New file.
1245 * config/m68k/nbsdaout.mt: New file.
1246 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1247 * config/m68k/nm-nbsdaout.h: New file.
1248 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1249 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1250 * config/ns32k/nbsd.mh: Remove.
1251 * config/ns32k/nbsd.mt: Remove.
1252 * config/ns32k/nbsdaout.mh: New file.
1253 * config/ns32k/nbsdaout.mt: New file.
1254 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1255 * config/ns32k/nm-nbsdaout.h: New file.
1256 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1257 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1258 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1259 (SVR4_SHARED_LIBS): Remove.
1260 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1261 * config/sparc/nbsd.mh: Remove.
1262 * config/sparc/nbsd.mt: Remove.
1263 * config/sparc/nbsdaout.mh: New file.
1264 * config/sparc/nbsdaout.mt: New file.
1265 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1266 * config/sparc/nbsdelf.mt: New file.
1267 * config/sparc/nm-nbsdaout.h: New file.
1268 * config/sparc/nm-nbsdelf.h: Remove.
1269 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1270 * config/sparc/tm-nbsdaout.h: New file.
1272 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1274 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1276 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1278 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1280 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1282 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1284 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1286 * NEWS: Note new MIPS NetBSD native configuration.
1287 * configure.host (mips*-*-netbsd*): New host.
1288 * configure.tgt (mips*-*-netbsd*): New target.
1289 * mipsnbsd-nat.c: New file.
1290 * mipsnbsd-tdep.c: New file.
1291 * mipsnbsd-tdep.h: New file.
1292 * config/mips/nbsd.mh: New file.
1293 * config/mips/nbsd.mt: New file.
1294 * config/mips/nm-nbsd.h: New file.
1295 * config/mips/tm-nbsd.h: New file.
1297 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1299 * Makefile.in (SFILES): Add osabi.c.
1300 (COMMON_OBS): Add osabi.o.
1301 (osabi.o): New dependency list.
1302 * osabi.c: New file.
1303 * osabi.h: New file.
1304 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1306 * Makefile.in (alpha_tdep_h): Define and use instead of
1308 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1309 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1311 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1312 * alpha-tdep.h: Include osabi.h.
1313 (alpha_abi): Remove.
1314 (gdbarch_tdep): Use generic OS ABI framework.
1315 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1316 gdbarch_register_osabi.
1317 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1318 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1319 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1321 * Makefile.in (sh_tdep_h): Add osabi.h.
1322 * sh-tdep.h (sh_osabi): Remove.
1323 (gdbarch_tdep): Use generic OS ABI framework.
1324 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1325 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1326 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1327 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1329 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1330 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1331 gdbarch_register_osabi.
1332 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1333 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1334 (get_elfosabi): Rename to...
1335 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1336 ABI framework support routines.
1337 (arm_gdbarch_init): Use generic OS ABI framework.
1338 (arm_dump_tdep): Likewise.
1339 (_initialize_arm_tdep): Likewise.
1340 * arm-tdep.h: Include osabi.h.
1342 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1344 (arm_gdbarch_register_os_abi): Remove prototype.
1345 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1346 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1348 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1349 * mips-tdep.c: Include osabi.h.
1350 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1353 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1355 * h8300-tdep.c: Fix formatting.
1357 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
1359 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1360 printing vector registers.
1362 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1364 From Fernando Nasser:
1365 * remote.c (remote_async_open_1): Re-throw the exception when the
1367 (remote_cisco_open): Ditto.
1368 (remote_open_1): Ditto.
1370 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1372 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1373 (remote_start_remote): Add uiout parameter. Pass through to
1374 remote_start_remote_dummy.
1375 (remote_open_1): Use catch_exception instead of catch_errors.
1376 (remote_async_open_1): Ditto.
1377 (remote_cisco_open): Ditto.
1379 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1381 * remote.c (remote_start_remote): Replace PTR with void pointer.
1382 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1385 2002-05-18 Andrew Cagney <ac131313@redhat.com>
1387 * gdb_indent.sh: Allow the script to be run in the sim directory.
1389 2002-05-18 Mark Kettenis <kettenis@gnu.org>
1391 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1392 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1394 * corelow.c (core_open): Only call set_gdbarch_from_file if
1397 2002-05-17 Andrey Volkov <avolkov@transas.com>
1399 * h8300-tdep.c: Add support of EXR register
1400 * config/h8300/tm-h8300.h: Ditto.
1402 2002-05-17 Andrey Volkov <avolkov@transas.com>
1404 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1406 2002-05-17 Andrey Volkov <avolkov@transas.com>
1408 * h8300-tdep.c: Change literal regnums to REGNO.
1410 2002-05-17 Jim Blandy <jimb@redhat.com>
1412 * NEWS: Note addition of macro support.
1414 Expand preprocessor macros in C expressions.
1415 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1416 (scan_macro_expansion, scanning_macro_expansion,
1417 finished_macro_expansion): New function declarations.
1418 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1419 variable declarations.
1420 * parser-defs.h (expression_context_pc): New declaration.
1421 * parse.c (expression_context_pc): New variable.
1422 (parse_exp_1): Set expression_context_pc, as well as
1423 expression_context_block.
1424 * c-exp.y (yylex): If we're not already reading the result of a
1425 macro expansion, try to macro-expand the next token. When we're
1426 done scanning a macro expansion, switch back to the mainline text.
1427 Commas and `if's in a macro's expansion don't terminate the input.
1428 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1429 (macro_original_text, macro_expanded_text,
1430 expression_macro_lookup_func, expression_macro_lookup_baton): New
1432 (scan_macro_expansion, scanning_macro_expansion,
1433 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1434 c_preprocess_and_parse): New functions.
1435 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1436 c_preprocess_and_parse, instead of c_parse.
1437 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1438 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1440 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1442 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1443 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1444 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1446 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
1448 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1450 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1452 * Makefile.in (sh_tdep_h): Define and use.
1453 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1454 register enum): Move to...
1455 * * sh-tdep.h: ...here.
1456 * sh-tdep.c: Include sh-tdep.h.
1457 * sh3-rom.c: Likewise.
1458 * shnbsd-tdep.c: Likewise.
1460 2002-05-16 Michael Snyder <msnyder@redhat.com>
1462 * arm-tdep.c: Spelling fix in comment.
1464 2002-05-16 Jim Blandy <jimb@redhat.com>
1466 Add commands for manually expanding macros and showing their
1468 * macrocmd.c, macroscope.c, macroscope.h: New files.
1469 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1470 (macroscope_h): New variable.
1471 (HFILES_NO_SRCDIR): Add macroscope.h.
1472 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1473 (macroscope.o, macrocmd.o): New rules.
1475 Teach the Dwarf 2 reader to read macro information.
1476 * dwarf2read.c: #include "macrotab.h".
1477 (dwarf_macinfo_buffer): New variable.
1478 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1480 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1481 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1482 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1483 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1484 dwarf2_macro_spaces_in_definition): New complaints.
1485 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1486 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1487 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1488 the partial symbol table.
1489 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1490 from what's recorded in the partial symbol table.
1491 (read_file_scope): If the compilation unit has a
1492 `DW_AT_macro_info' attribute, read its macro information.
1493 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1495 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1498 * ser-tcp.c: Don't include <netinet/udp.h>.
1500 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1502 * MAINTAINERS: Update my email address.
1504 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
1506 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1507 include file of the same name.
1509 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1511 * configure.tgt: Mark v850 as multi-arched.
1512 * config/v850/tm-v850.h: Remove file.
1513 * config/v850/v850.mt: Eliminate TM_FILE.
1515 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1517 * v850-tdep.c: Full multi-arch.
1518 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1519 Define GDB_MULTI_ARCH to 2.
1521 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1523 * p-exp.y (current_type): New static variable.
1524 Carries the type of the expression at the position that is parsed.
1525 (push_current_type, pop_current_type): Two new functions. Used
1526 to store/restore current_type in expression on specific tokens.
1527 (search_field): New static variable. Set to one after parsing a point
1528 as at that point only a FIELDNAME token should be searched.
1529 (FIELDNAME): New token. After a point only a token belonging to
1530 current_type type definition is allowed.
1531 (all over token rules): reset and change current_type according
1533 (exp '[' rule): insert implicit array index field if
1534 exp is a pascal string type.
1536 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1538 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1539 frame info. Use frame_info's saved_regs instead of matching member
1540 in extra_frame_info throughout.
1541 (v850_frame_init_saved_regs): New function.
1542 (v850_init_extra_frame_info): Move most functionality into
1543 v850_frame_init_saved_regs().
1544 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1545 (v850_frame_find_saved_regs): Remove declaration.
1546 (FRAME_FIND_SAVED_REGS): Remove definition.
1547 (v850_frame_init_saved_regs): Add declaration.
1548 (FRAME_INIT_SAVED_REGS): Add definition.
1550 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1552 * v850-tdep.c: Begin multi-arch'ing v850.
1553 (v850_target_architecture_hook): Remove function.
1554 (v850_gdbarch_init): New function. Add code previously in
1555 v850_target_architecture_hook().
1556 (_initialize_v850_tdep): Don't set target_architecture_hook.
1557 Call register_gdbarch_init() instead.
1559 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1561 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1562 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1563 (fixup_class_method_type): Likewise.
1565 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1567 From Martin Pool <mbp@samba.org>:
1568 * gdbserver/server.c (gdbserver_usage): New function.
1571 2002-05-15 Jim Blandy <jimb@redhat.com>
1573 Add macro structures to GDB's symbol tables. Nobody puts anything
1575 * symtab.h (struct symtab): New member: `macro_table'.
1576 * buildsym.h (pending_macros): New global variable.
1577 * buildsym.c: #include "macrotab.h".
1578 (buildsym_init): Initialize `pending_macros'.
1579 (end_symtab): If we found macro information while reading a CU's
1580 debugging info, do build a symtab structure for it. Make the
1581 symtab point to the macro information, and clear the
1582 `pending_macros' pointer which held it while we were reading the
1584 (really_free_pendings): Free any pending macro table.
1585 * objfiles.h (struct objfile): New member: `macro_cache'.
1586 * objfiles.c (allocate_objfile): Set allocate and free functions
1587 for the macro cache's objstack.
1588 (free_objfile): Empty the macro cache's obstack.
1589 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1590 set new allocate and free functions for it.
1591 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1592 free functions for the macro cache's objstack. (Why is this
1593 function building its own objfile?)
1594 * symmisc.c (print_objfile_statistics): Print statistics on the
1596 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1598 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1600 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1601 (REGISTER_U_ADDR): Delete definition.
1602 (arm_register_u_addr): Delete declaration.
1604 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1606 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1607 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1609 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1611 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1614 2002-05-14 Andrew Cagney <ac131313@redhat.com>
1616 * regcache.c (register_valid): Revise comments refering to "Not
1617 available" and "unavailable".
1618 * frame.c (frame_register_read): Ditto.
1619 * findvar.c (value_of_register): Ditto.
1621 2002-05-15 Andrew Cagney <cagney@redhat.com>
1623 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1624 (remote-sim.o): Update dependencies.
1625 (d10v-tdep.o): Specify dependencies.
1626 (sim_d10v_h): Define.
1628 2002-05-14 Jim Blandy <jimb@redhat.com>
1630 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1631 * macrotab.c (macro_lookup_inclusion, find_definition,
1632 new_macro_table): Same.
1634 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1635 not `! strcmp ()'. This is a dubious improvement.
1636 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1638 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1639 although it's not necessary, to avoid a warning.
1641 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1643 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1644 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1645 TYPE_INSTANCE_FLAGS.
1646 (struct main_type): New.
1647 (struct type): Move most members to struct main_type. Change
1648 cv_type and as_type to new type_chain member. Add instance_flags.
1649 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1650 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1651 (finish_cv_type): Remove prototype.
1652 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1654 (alloc_type_instance): New function.
1655 (smash_type): New function.
1656 (make_pointer_type, make_reference_type, make_function_type)
1657 (smash_to_member_type, smash_to_method_type): Call smash_type.
1658 (make_qualified_type): New function.
1659 (make_type_with_address_space): Call make_qualified_type.
1660 (make_cv_type): Likewise.
1661 (finish_cv_type): Remove unnecessary function.
1662 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1663 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1664 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1665 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1666 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1667 * hpread.c (hpread_read_struct_type): Likewise.
1668 * stabsread.c (read_struct_type): Likewise.
1670 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
1672 * configure.tgt: Add a catch all sh* target, for cases like
1673 sh[2,3,4]-elf and sh-hms.
1675 2002-05-14 Keith Seitz <keiths@redhat.com>
1677 * event-loop.c (create_file_handler): Don't do anything but
1678 update data when we are given a fd which we are already
1681 2002-05-14 Michal Ludvig <mludvig@suse.cz>
1683 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1684 (update_context): Use __func__ in warnings.
1686 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1688 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1689 and tcp_close to net_open and net_close.
1690 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1691 using UDP if requested. Don't try to disable Nagle on UDP
1693 * remote.c (remote_serial_open): New function. Warn about UDP.
1694 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1696 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1698 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1700 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1702 * configure.tgt: Remove sh-hms target.
1703 * MAINTAINERS: Don't list sh-hms as a separate target.
1705 2002-05-13 Jim Blandy <jimb@redhat.com>
1707 Add first preprocessor macro-expansion files.
1708 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1709 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1710 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1711 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1712 (COMMON_OBS): Add macrotab.o, macroexp.o.
1713 (macroexp.o, macrotab.o): New rules.
1715 2002-05-13 Andrew Cagney <ac131313@redhat.com>
1717 * config/m88k/tm-m88k.h: Update copyright.
1718 (m88k_target_write_pc): Declare
1719 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1720 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1721 (SHIFT_INST_REGS): Update definition.
1722 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1723 using old definition of TARGET_WRITE_PC.
1724 * regcache.c (generic_target_write_pc): Delete code handling
1726 * gdbarch.sh (NNPC_REGNUM): Delete.
1727 * gdbarch.h, gdbarch.c: Regenerate.
1729 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
1731 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1734 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
1736 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1737 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1738 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1740 * c-typeprint.c (cp_type_print_method_args): Likewise.
1741 (c_type_print_args): Likewise.
1742 * d10v-tdep.c (d10v_push_arguments): Likewise.
1743 (d10v_extract_return_value): Likewise.
1744 * expprint.c (print_subexp): Likewise.
1745 * gdbtypes.c (lookup_primitive_typename): Likewise.
1746 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1747 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1748 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1749 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1750 (TYPE_VECTOR): Likewise.
1751 * hpread.c (hpread_read_struct_type)
1752 (fix_static_member_physnames, fixup_class_method_type)
1753 (hpread_type_lookup): Likewise.
1754 * mdebugread.c (parse_symbol, parse_type): Likewise.
1755 * p-lang.c (is_pascal_string_type): Likewise.
1756 * valops.c (hand_function_call): Likewise.
1757 * x86-64-tdep.c (classify_argument): Likewise.
1759 * hpread.c (hpread_read_function_type)
1760 (hpread_read_doc_function_type): Call replace_type.
1761 * dstread.c (create_new_type): Delete.
1762 (decode_dst_structure, process_dst_function): Call alloc_type.
1763 Use type access macros.
1765 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1767 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1768 the're not supported by the current architecture.
1769 (i387_fill_fxsave): Likewise.
1771 2002-05-12 Fred Fish <fnf@redhat.com>
1773 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1774 sect_index_xxx members to index the first slot in section_offsets
1775 if all of the section_offsets are zero.
1777 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1779 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1780 checked in with last change.
1782 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1784 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1785 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1788 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
1790 * Makefile.in: Update dependencies.
1792 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1794 * language.c (local_hex_string_custom): Simplify. Do not depend
1795 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1797 * memattr.c (mem_info_command): Replace calls to
1798 longest_local_hex_string and longest_local_hex_string_custom.
1799 * buildsym.c (make_blockvector): Ditto.
1800 * solib.c (info_sharedlibrary_command): Ditto.
1801 * tracepoint.c (tracepoints_info): Ditto.
1802 * symtab.c (print_msymbol_info): Ditto.
1804 * language.c (local_hex_string): Delete.
1805 (local_hex_string_custom): Delete.
1806 (longest_local_hex_string): Rename to local_hex_string.
1807 (longest_local_hex_string_custom): Rename to
1808 local_hex_string_custom.
1809 * language.h (local_hex_string): Change parameter type to LONGEST.
1810 (local_hex_string_custom): Ditto.
1811 (longest_local_hex_string): Delete declaration.
1812 (longest_local_hex_string_custom): Ditto.
1814 * solib.c: Update copyright.
1815 * memattr.c: Update copyright.
1817 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1819 * arch-utils.h (legacy_register_to_value): Declare.
1820 (legacy_value_to_register): Declare.
1821 (legacy_convert_register_p): Declare.
1822 * arch-utils.c (legacy_register_to_value): New function.
1823 (legacy_value_to_register): New function.
1824 (legacy_convert_register_p): New function.
1826 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1827 (VALUE_TO_REGISTER): Define.
1828 (CONVERT_REGISTER_P): Define.
1829 * gdbarch.h, gdbarch.c: Regenerate.
1831 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1833 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1836 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
1837 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1839 * Makefile.in: Update dependencies for valops.c.
1840 * valops.c: Include "gdb_assert.h".
1841 (typecmp): Skip THIS parameter to methods.
1842 (find_method_list): Remove static_memfuncp argument,
1843 update callers. Check for stub methods.
1844 (find_value_oload_method_list): Don't set *static_memfuncp.
1845 (find_overload_match): Don't check for stub methods. Assert
1846 that methods are not stubbed. Handle static methods.
1847 (value_find_oload_method_list): Remove static_memfuncp argument.
1848 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1849 to the argument list for static stub methods.
1850 * value.h (value_find_oload_method_list): Update prototype.
1852 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1854 * arch-utils.h (generic_register_size): Declare.
1855 (generic_register_raw_size, generic_register_virtual_size): Delete
1857 * arch-utils.c (generic_register_raw_size): Delete.
1858 (generic_register_size): New function.
1859 (generic_register_virtual_size): Delete.
1861 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1862 default generic_register_size.
1863 * gdbarch.h, gdbarch.c: Re-generate.
1865 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1866 register_virtual_size.
1867 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1868 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1870 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1872 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1873 * gdbarch.h, gdbarch.c: Regenerate.
1874 * gnu-v3-abi.c: Update copyright.
1875 (vtable_address_point_offset): Update.
1876 (gnuv3_rtti_type): Update.
1877 (gnuv3_baseclass_offset): Update.
1878 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1879 (init_fetch_link_map_offsets): Update.
1880 * remote.c (get_remote_state): Update.
1882 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1884 * TODO: Remove value_headof/value_from_vtable_info comment.
1885 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1886 * values.c (value_headof, value_from_vtable_info): Delete.
1887 * value.h (value_from_vtable_info): Delete prototype.
1889 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1891 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1892 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1894 (gdb_assert_h): Define.
1895 (gdb_wait_h): Define.
1896 (gdb_regex_h): Define.
1898 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1900 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1901 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1903 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1905 * nbsd-tdep.c: Fix comment.
1907 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1909 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1910 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1911 (nbsd-tdep.o): New dependency list.
1912 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1914 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1915 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1916 * nbsd-tdep.c: New file.
1917 * nbsd-tdep.h: New file.
1918 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1920 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1921 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1922 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1923 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1925 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1927 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1928 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1929 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1930 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1931 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1932 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1934 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1936 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1937 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1938 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1939 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1940 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1941 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1942 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1944 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1946 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1947 fetch_elfcore_registers to...
1948 * i386nbsd-tdep.c: ...here.
1949 (i386nbsd_use_struct_convention): Rename to...
1950 (i386nbsd_aout_use_struct_convention): ...this.
1951 (i386nbsd_supply_reg): New function.
1952 (i386nbsd_fill_reg): New function.
1953 (fetch_core_registers): Use i386nbsd_supply_reg.
1954 (fetch_elfcore_registers): Likewise.
1955 (_initialize_i386nbsd_tdep): New function.
1956 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1957 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1958 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1959 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1960 (i386nbsd_aout_use_struct_convention): ...this.
1962 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1964 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1965 (store_inferior_registers): Use shnbsd_fill_reg.
1966 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1967 sh_nbsd_supply_register): Collapse into...
1968 (shnbsd_supply_reg): ...this.
1969 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1970 (shnbsd_fill_reg): ...this.
1971 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1972 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1973 (fetch_core_registers): Use shnbsd_supply_reg.
1974 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1975 (sh_nbsd_core_fns): Rename to...
1976 (shnbsd_core_fns): ...this.
1977 (sh_nbsd_elfcore_fns): Rename to...
1978 (shnbsd_elfcore_fns): ...this.
1979 (sh_nbsd_init_abi): Rename to...
1980 (shnbsd_init_abi): ...this.
1981 (_initialize_sh_nbsd_tdep): Rename to...
1982 (_initialize_shnbsd_tdep): ...this.
1983 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1984 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1985 sh_nbsd_fill_register): Remove prototypes.
1986 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1988 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1990 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1991 (i387-nat.o): Delete dependency list.
1992 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1993 (x86-64-linux-nat.o): Likewise.
1994 * i387-nat.c: Delete file, moving contents to...
1995 * i387-tdep.c: ...here.
1996 * i387-nat.h: Rename...
1997 * i387-tdep.h: ...to this.
1998 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1999 * i386-linux-nat.c: Likewise.
2000 * i386bsd-nat.c: Likewise.
2001 * i386gnu-nat.c: Likewise.
2002 * i386nbsd-nat.c: Likewise.
2003 * i386v4-nat.c: Likewise.
2004 * x86-64-linux-nat.c: Likewise.
2005 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2006 * config/i386/go32.mh (NATDEPFILES): Likewise.
2007 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2008 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2009 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2010 * config/i386/linux.mh (NATDEPFILES): Likewise.
2011 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2012 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2013 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2014 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2016 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2018 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2019 (alphanbsd-nat.o): Remove dependency list.
2020 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2021 * alphanbsd-nat.c: Delete. Contents moved to...
2022 * alphanbsd-tdep.c: ...here.
2023 (_initialize_alphanbsd_tdep): Register core functions.
2024 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2026 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2028 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2029 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2030 (alphanbsd-nat.o): Likewise.
2031 (alphabsd-tdep.o): New dependency list.
2032 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2033 (fill_gregset): Use alphabsd_fill_reg.
2034 (supply_fpregset): Use alphabsd_supply_fpreg.
2035 (fill_fpregset): Use alphabsd_fill_fpreg.
2036 (fetch_inferior_registers): Use struct reg and struct fpreg
2037 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2038 and alphabsd_supply_fpreg.
2039 (store_inferior_registers): Use struct reg and struct fpreg
2040 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2041 and alphabsd_fill_fpreg.
2042 * alphabsd-tdep.c: New file.
2043 * alphabsd-tdep.h: New file.
2044 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2045 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2046 alphabsd_supply_fpreg.
2047 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2048 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2050 2002-05-11 Eric Christopher <echristo@redhat.com>
2052 * mips-tdep.c (mips_double_register_type): Fix thinko.
2053 (mips_single_register_type): Ditto.
2054 * MAINTAINERS: Add self.
2056 2002-05-11 Mark Kettenis <kettenis@gnu.org>
2058 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2059 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2060 right thing on architectures with different endianness and/or
2063 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
2065 From Christian Limpach <chris@Pin.LU>
2066 * configure.in: Change sed expression which comments out
2067 NATDEPFILES to also comment out continuation lines.
2068 * configure: Regenerate.
2070 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2072 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2075 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2077 * sh-tdep.c: Include correct file.
2079 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2081 New support for sh64-elf (sh5) target.
2083 * configure.tgt: For sh64-elf target, default to sh-elf.
2085 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2086 (struct gdbarch_tdep): Add new fields for new registers and ABI
2089 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2090 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2091 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2092 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2093 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2094 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2095 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2096 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2097 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2098 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2099 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2100 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2101 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2102 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2103 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2104 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2105 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2106 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2107 sign_extend, sh64_nofp_frame_init_saved_regs,
2108 sh64_init_extra_frame_info, sh64_get_saved_register,
2109 sh64_extract_struct_value_address, sh64_pop_frame,
2110 sh64_push_arguments, sh64_extract_return_value,
2111 sh64_store_return_value, sh64_show_media_regs,
2112 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2113 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2114 sh_sh64_register_virtual_type,
2115 sh_sh64_register_convert_to_virtual,
2116 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2117 sh64_register_read, sh64_pseudo_register_write,
2118 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2119 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2120 sh64_do_pseudo_register, sh_compact_do_registers_info,
2121 sh64_do_registers_info, sh_gdbarch_init): New functions.
2123 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2125 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2127 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
2129 * linespec.c (decode_line_1): Check for a double quote after
2130 a filename correctly.
2132 2002-05-10 Jim Blandy <jimb@redhat.com>
2134 Properly track the size of the current objfile's .debug_line section.
2135 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2136 (DWARF_LINE_SIZE): New macro.
2137 (dwarf2_build_psymtabs_hard): Record the line section's size in
2138 the partial symbol table.
2139 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2142 2002-05-10 Petr Sorfa <petrs@caldera.com>
2144 * ia64-tdep.c: Handle breakpoints on L instruction type
2145 in MLX instruction bundle by moving the breakpoint to
2146 the third slot (X instruction type) as L holds only data.
2148 2002-05-10 Kevin Buettner <kevinb@redhat.com>
2150 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2151 (process_one_symbol): Complain about discarding local symbols
2152 due to a misplaced N_LBRAC entry.
2154 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
2156 From Daniel Berlin <dan@cgsoftware.com>
2157 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2158 decrease the depth we are at, in the case of templates.
2160 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2162 * mips-tdep.c (mips_float_register_type): New function.
2163 (mips_double_register_type): New function.
2164 (mips_print_register): Use them.
2165 (do_fp_register_row): Likewise.
2167 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2169 * signals/signals.c (signals): Remove conditional compilation around
2170 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
2171 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2173 2002-05-09 Michael Snyder <msnyder@redhat.com>
2175 * remote-rdp.c (remote_rdp_can_run): Remove.
2177 2002-05-09 Tom Tromey <tromey@redhat.com>
2179 * jv-valprint.c (java_val_print): Handle `char' as a special case
2182 2002-05-09 Michael Snyder <msnyder@redhat.com>
2184 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2185 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2186 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2187 str r(0123),[sp,#nn].
2188 (arm_skip_prologue): Ditto. Also make disassembly
2189 order-independent by placing it in a loop.
2191 2002-05-06 Michael Snyder <msnyder@redhat.com>
2193 * stabsread.c (read_type): Add recognition for new attribute:
2194 "@V;" means that an array type is actually a vector.
2195 This is analogous to the vector flag that's been added to dwarf2.
2197 2002-05-09 Mark Kettenis <kettenis@gnu.org>
2199 * i386-tdep.h (i386_abi): New enum.
2200 (struct gdbarch_tdep): Replace os_ident member with abi.
2201 (i386_gdbarch_register_os_abi): New prototype.
2202 * i386-tdep.c (i386_abi_names): New array.
2203 (process_note_abi_tag_sections): Removed.
2204 (process_note_sections): New function.
2205 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2206 (struct i386_abi_handler): New struct.
2207 (i386_abi_handler_list): New variable.
2208 (i386_gdbarch_register_os_abi): New function.
2209 (i386_gdbarch_init): Adapt for the changes given above.
2211 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
2213 * gregset.h: Say "GNU/Linux".
2215 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
2217 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2218 (build_gdbtypes): Build builtin_type_v2_float.
2219 (_initialize_gdbtypes): Register new builtin type.
2221 2002-05-08 Andrew Cagney <ac131313@redhat.com>
2223 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2224 (clear_gdbarch_swap): New function.
2225 (initialize_non_multiarch): Call.
2226 (gdbarch_update_p): Before calling init(), swap out and clear the
2227 existing architecture.
2228 * gdbarch.c: Regenerate.
2230 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2232 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2235 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2237 * sh-nbsd-nat.c: Rename to...
2238 * shnbsd-nat.c: ...this.
2239 * sh-nbsd-tdep.c: Rename to...
2240 * shnbsd-tdep.c: ...this.
2241 * sh-nbsd-tdep.h: Rename to...
2242 * shnbsd-tdep.h: ...this.
2243 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2244 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2246 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
2248 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2249 concatenation for command help messages.
2251 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2253 * NEWS: Note new sh*-*-netbsdelf* configuration.
2254 * configure.host: Set gdb_host_cpu to sh for all sh*.
2255 (sh*-*-netbsdelf*): New host.
2256 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2257 (sh*-*-netbsdelf*): New target.
2258 * sh-nbsd-nat.c: New file.
2259 * sh-nbsd-tdep.c: New file.
2260 * sh-nbsd-tdep.h: New file.
2261 * config/sh/nbsd.mh: New file.
2262 * config/sh/nbsd.mt: New file.
2263 * config/sh/nm-nbsd.h: New file.
2264 * config/sh/tm-nbsd.h: New file.
2266 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2268 * sh-tdep.c (sh_osabi_names): Declare.
2269 (process_note_abi_tag_sections): New function.
2270 (get_elfosabi): Ditto.
2271 (sh_gdbarch_register_os_abi): Ditto.
2272 (sh_dump_tdep): Ditto.
2273 _initialize_sh_tdep): Use gdbarch_register to register
2274 sh_gdbarch_init and sh_dump_tdep.
2275 * config/sh/tm-sh.h (sh_osabi): Declare.
2276 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2278 2002-05-07 Andrew Cagney <ac131313@redhat.com>
2280 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2281 (thumb_scan_prologue): Ditto.
2282 (arm_find_callers_reg): Ditto.
2283 (arm_frame_chain): Ditto.
2284 (arm_init_extra_frame_info): Ditto.
2285 (arm_frame_saved_pc): Ditto.
2286 (arm_pop_frame): Ditto.
2287 (arm_push_return_address): New function.
2288 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2289 call_dummy_location, call_dummy_breakpoint_offset_p,
2290 call_dummy_breakpoint_offset, call_dummy_p,
2291 call_dummy_stack_adjust_p, call_dummy_words,
2292 sizeof_call_dummy_words, call_dummy_start_offset,
2293 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2294 call_dummy_address, push_return_address and push_dummy_frame for
2295 generic dummy frames.
2297 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2299 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2300 size computation for alloca.
2301 (sh_fp_frame_init_saved_regs): Likewise.
2303 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
2305 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2306 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2307 * arm-tdep.c (arm_store_return_value): Use them.
2308 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2309 * remote-rdp.c (remote_rdp_fetch_register): Use
2310 ARM_MAX_REGISTER_RAW_SIZE.
2311 (remote_rdp_store_register): Likewise.
2313 2002-05-07 Michal Ludvig <mludvig@suse.cz>
2315 * dwarf2cfi.c: Code cleanup, removed unused variables,
2316 added default labels to switch {} statements.
2317 * x86-64-tdep.c: Ditto.
2318 * x86-64-linux-nat.c: Ditto.
2320 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2322 * solib.h: Protect against multiple inclusion.
2324 2002-05-06 Jim Blandy <jimb@redhat.com>
2326 Add first preprocessor macro-expansion files.
2327 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2328 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2329 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2330 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2331 (COMMON_OBS): Add macrotab.o, macroexp.o.
2332 (macroexp.o, macrotab.o): New rules.
2334 Separate the job of reading the line number info statement program
2335 header (...expialidocious) out into its own function.
2336 * dwarf2read.c (struct line_head, struct filenames, struct
2337 directories): Replace with...
2338 (struct line_header): New structure, containing the full
2339 contents of the statement program header, including the
2340 include directory and file name tables.
2341 (read_file_scope): If we have line number info, instead of just
2342 calling dwarf_decode_lines to do all the work, call
2343 dwarf_decode_line_header first to get a `struct line_header'
2344 containing the data in the statement program header, and then
2345 pass that to dwarf_decode_lines, which will pick up where that
2346 left off. Be sure to clean up the `struct line_header' object.
2347 (dwarf_decode_line_header, free_line_header, add_include_dir,
2348 add_file_name): New functions.
2349 (dwarf_decode_lines): Move all the code to read the statement
2350 program header into dwarf_decode_line_header. Take the line
2351 header it built as the first argument, instead of the offset to
2352 the compilation unit's line number info. Use the new `struct
2353 line_header' type instead of the old structures. No need to do
2354 cleanups here now, since we don't allocate anything.
2355 (dwarf2_statement_list_fits_in_line_number_section,
2356 dwarf2_line_header_too_long): New complaints.
2358 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
2360 * gdbtypes.c (init_vector_type): New function.
2361 (build_builtin_type_vec128): Simplify the representation of SIMD
2363 (build_gdbtypes): Initialize new builtin vector types.
2364 (_initialize_gdbtypes): Register new vector types with gdbarch.
2365 (builtin_type_v4_float, builtin_type_v4_int32,
2366 builtin_type_v8_int16, builtin_type_v16_int8,
2367 builtin_type_v2_int32, builtin_type_v4_int16,
2368 builtin_type_v8_int8): New (renamed) SIMD types.
2370 2002-05-06 Mark Kettenis <kettenis@gnu.org>
2372 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2373 (i387_fill_fxsave): Likewise.
2375 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
2377 * alpha-tdep.c (alpha_extract_return_value): Don't use
2378 non-constant array size in prototype.
2380 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2382 From Brian Taylor <briant at model dot com>:
2383 * ui-out.c (ui_out_field_core_addr): Use the function
2384 longest_local_hex_string_custom'to format addresses > 32 bits
2387 * ui-out.c (ui_out_field_core_addr): Update comment.
2389 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2391 * stack.c (select_and_print_frame): Make static. Delete the
2393 (func_command): Update call.
2394 (select_frame_command): Delete code computing the frame level.
2395 * frame.h (select_and_print_frame): Delete declaration.
2397 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2399 * sparc-tdep.c (sparc_get_saved_register): Comment why
2400 get_prev_frame call is safe.
2402 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2404 * frame.h (select_frame): Delete level parameter.
2405 * stack.c (select_frame): Update. Use frame_relative_level to
2406 obtain the frame's level.
2407 (select_and_print_frame): Update call.
2408 (select_frame_command): Ditto.
2409 (up_silently_base): Ditto.
2410 (down_silently_base): Ditto.
2411 * ocd.c (ocd_start_remote): Ditto.
2412 * remote-rdp.c (remote_rdp_open): Ditto.
2413 * remote-mips.c (mips_initialize): Ditto.
2414 (common_open): Ditto.
2415 * remote-e7000.c (e7000_start_remote): Ditto.
2416 * m3-nat.c (select_thread): Ditto.
2417 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2418 (child_get_current_exception_event): Ditto.
2419 * varobj.c (varobj_create): Ditto.
2420 (varobj_update): Ditto.
2421 (c_value_of_root): Ditto.
2422 * tracepoint.c (finish_tfind_command): Ditto.
2423 * corelow.c (core_open): Ditto.
2424 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2425 * thread.c (info_threads_command): Ditto.
2426 (switch_to_thread): Ditto.
2427 * infrun.c (normal_stop): Ditto.
2428 (restore_selected_frame): Ditto.
2429 (restore_inferior_status): Ditto.
2430 * breakpoint.c (insert_breakpoints): Ditto.
2431 (watchpoint_check): Ditto.
2432 (bpstat_stop_status): Ditto.
2433 (do_enable_breakpoint): Ditto.
2434 * blockframe.c (flush_cached_frames): Ditto.
2435 (reinit_frame_cache): Ditto.
2437 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2439 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2442 2002-05-04 Jim Blandy <jimb@redhat.com>
2444 * gdbtypes.c (replace_type): Doc fix.
2446 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2448 * valprint.c (strcat_longest): Delete commented out function.
2451 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2453 * MAINTAINERS: Mark a29k as deleted.
2454 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2455 Move new configurations to the top.
2456 * configure.tgt: Remove a29k.
2457 * config/a29k/tm-vx29k.h: Delete.
2458 * config/a29k/vx29k.mt: Delete.
2459 * config/a29k/tm-a29k.h: Delete.
2460 * config/a29k/a29k-udi.mt: Delete.
2461 * config/a29k/a29k.mt: Delete.
2462 * a29k-tdep.c: Delete.
2463 * remote-udi.c: Delete.
2464 * remote-mm.c: Delete.
2465 * remote-eb.c: Delete.
2466 * remote-adapt.c: Delete.
2467 * Makefile.in: Remove obsolete code.
2468 * gdbserver/Makefile.in: Ditto.
2469 * config/s390/s390x.mt: Ditto.
2470 * config/s390/s390.mt: Ditto.
2471 * config/sparc/sparclynx.mh: Ditto.
2472 * config/sparc/linux.mh: Ditto.
2473 * config/pa/hppaosf.mh: Ditto.
2474 * config/pa/hppabsd.mh: Ditto.
2475 * config/ns32k/nbsd.mt: Ditto.
2476 * config/mips/vr5000.mt: Ditto.
2477 * config/m68k/sun3os4.mh: Ditto.
2478 * config/m68k/nbsd.mt: Ditto.
2479 * config/m68k/m68klynx.mh: Ditto.
2480 * config/m32r/m32r.mt: Ditto.
2481 * config/i386/x86-64linux.mt: Ditto.
2482 * config/i386/nbsdelf.mt: Ditto.
2483 * config/i386/nbsd.mt: Ditto.
2484 * config/i386/i386lynx.mh: Ditto.
2486 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2488 * target.c (debug_print_register): New function. Handle oversize
2490 (debug_to_fetch_registers): Call.
2491 (debug_to_store_registers): Call.
2493 2002-05-03 Jim Blandy <jimb@redhat.com>
2495 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2496 (read_type): Doc fix.
2497 * gdbtypes.c (replace_type): Doc fix.
2499 * stabsread.c (multiply_defined_struct): New complaint.
2500 (read_struct_type): If the type we were passed isn't empty, or
2501 incomplete, don't read the new struct type into it; complain,
2502 and return the original type unchanged. Take a new `type_code'
2503 argument, which is the type code for the new type.
2504 (read_type): Rather than storing the type's type code here, pass
2505 it as an argument to read_struct_type, and let that take care of
2506 storing it. That way, we don't overwrite the original type code,
2507 so read_struct_type can use it to decide whether we're overwriting
2508 something we shouldn't.
2509 (complain_about_struct_wipeout): New function.
2511 2002-05-03 Andrew Cagney <ac131313@redhat.com>
2513 * gdbarch.sh: Assert that gdbarch is non-NULL.
2514 * gdbarch.c: Regenerate.
2516 2002-05-03 Jason Merrill <jason@redhat.com>
2518 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2521 2002-05-03 Michal Ludvig <mludvig@suse.cz>
2523 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2524 (x86_64_dwarf2gdb_regno_map_length),
2525 (x86_64_dwarf2_reg_to_regnum): Added.
2526 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2527 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2528 (_initialize_x86_64_tdep): Synced with the change above.
2529 (x86_64_skip_prologue): Reformulated message.
2531 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2533 * f-exp.y: Also use new prev_lexptr variable
2534 to improve error reporting. Based on Michael Snyder
2535 2002-04-24 dated patch to c-exp.y.
2536 * jv-exp.y: Likewise.
2537 * m2-exp.y: Likewise.
2539 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
2541 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2542 we are dealing with vectors.
2544 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2546 * config/m68k/tm-nbsd.h: Obvious fix,
2547 correct machine name.
2549 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2551 * p-typeprint.c (pascal_type_print_base): Add support
2552 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2554 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2556 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2557 for fondamental pascal 'char' type.
2559 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2561 * p-lang.h (is_pascal_string_type): Declaration changed,
2562 new sixth argument of type char ** added.
2563 * p-lang.c (is_pascal_string_type): Implementation
2564 changed. Args length_pos, length_size, string_pos, char_size
2565 can now be NULL. New argument arrayname set to the field
2566 name of the char array. Return value set to char array
2567 field index plus one.
2568 * p-valprint.c (pascal_val_print): Adapt to new declaration of
2569 is_pascal_string_type function.
2571 2002-05-02 Andrew Cagney <cagney@redhat.com>
2573 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2574 <cagney@redhat.com> change.
2575 * gdbarch.c: Regenerate.
2577 2002-05-02 Andrew Cagney <cagney@redhat.com>
2579 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2580 before probing for a new one. Detect errorenous gdbarch_init
2582 * gdbarch.c: Regenerate.
2584 2002-05-01 Andrew Cagney <cagney@redhat.com>
2586 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2587 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2588 * config/v850/tm-v850.h: Ditto. Update copyright.
2590 2002-04-30 Andrew Cagney <ac131313@redhat.com>
2592 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2595 2002-04-30 Michael Snyder <msnyder@redhat.com>
2597 * arm-tdep.c: Whitespace clean-ups.
2598 (arm_skip_prologue): Fix thinko; two lines
2599 should have been removed as part of 4/24 change.
2601 2002-04-30 Kevin Buettner <kevinb@redhat.com>
2603 * rs6000-tdep.c: Added comment describing how fpscr register
2604 numbers were chosen.
2606 2002-04-30 Michael Snyder <msnyder@redhat.com>
2608 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2610 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2612 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2613 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2614 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2616 2002-04-29 Kevin Buettner <kevinb@redhat.com>
2618 From Louis Hamilton <hamilton@redhat.com>:
2619 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2620 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2621 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2622 not bfd-private xcoff data, to determine wordsize.
2623 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2625 2002-04-29 Andrew Cagney <ac131313@redhat.com>
2627 GDB 5.2 released from 5.2 branch.
2629 2002-04-29 Michal Ludvig <mludvig@suse.cz>
2631 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2632 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2633 (x86_64_register_info_table): Added comments with register numbers.
2635 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2637 * rs6000-tdep.c (rs6000_extract_return_value,
2638 rs6000_store_return_value): Handle returning vectors.
2639 (rs6000_gdbarch_init): Use
2640 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2641 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2643 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2645 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2646 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2648 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2650 * hpread.c (hpread_psymtab_to_symtab_1,
2651 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2652 with fprintf_unfiltered (gdb_stderr,...).
2654 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2656 * remote-array.c (printf_monitor, write_monitor,
2657 array_insert_breakpoint, array_remove_breakpoint ):
2658 Replace fprintf (stderr,...
2659 with fprintf_unfiltered (gdb_stderr,....
2660 * remote-es.c: Likewise.
2661 * remote-os9k.c: Likewise.
2662 * remote-st.c: Likewise.
2664 2002-04-28 Andreas Schwab <schwab@suse.de>
2666 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2667 linux-proc.o and gcore.o.
2669 2002-04-26 Michal Ludvig <mludvig@suse.cz>
2671 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2672 code without frame pointers.
2674 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2676 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2679 2002-04-26 Ben Elliston <bje@redhat.com>
2681 * target.c (do_xfer_memory): Correct reference to the new option
2682 "trust-readonly-sections".
2684 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
2686 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2687 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2688 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2690 (read_array_type): Record the fact that this array type is really a
2691 vector (i.e. are passed in by value).
2693 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2695 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2696 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2697 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2698 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2699 * alpha-linux-tdep.c: Include frame.h.
2700 (alpha_linux_sigcontext_addr): New function.
2701 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2702 alpha_linux_sigcontext_addr.
2703 * alpha-osf1-tdep.c: Include gdbcore.h.
2704 (alpha_osf1_sigcontext_addr): New function.
2705 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2706 alpha_osf1_sigcontext_addr.
2707 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2708 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2710 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2712 * stack.c (selected_frame_level):
2713 (select_frame): Do not set selected_frame_level.
2714 * frame.h (selected_frame_level): Delete declaration.
2716 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2718 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2719 convert_from_func_ptr-addr when AIX / PowerOpen.
2721 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2723 * valops.c (hand_function_call): Call
2724 generic_save_call_dummy_addr.
2725 * frame.h (generic_save_call_dummy_addr): Declare.
2726 * blockframe.c (struct dummy_frame): Add fields call_lo and
2728 (generic_find_dummy_frame): Check for PC in range call_lo to
2729 call_hi instead of entry_point_address.
2730 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2731 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2732 (generic_save_call_dummy_addr): New function.
2734 2002-04-24 David S. Miller <davem@redhat.com>
2736 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2737 sparc_skip_prologue.
2738 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2739 information to find prologue when possible.
2740 (sparc_prologue_frameless_p): Call examine_prologue directly.
2741 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2742 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2744 (SKIP_PROLOGUE): Likewise.
2746 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2748 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2749 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2750 indicate that the condition it was testing is always true.
2751 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2752 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2753 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2755 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2757 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2758 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2759 tdep->jb_pc and tdep->jb_elt_size.
2760 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2761 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2762 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2763 * alpha-nat.c (get_longjmp_target): Remove.
2764 (JB_ELEMENT_SIZE): Ditto.
2766 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2767 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2768 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2769 to alpha_get_longjmp_target.
2770 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2771 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2772 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2774 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2776 * README: Update to GDB 5.2.
2778 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2780 * gdbarch.sh (LC_ALL): Set to `c'.
2782 2002-04-25 Theodore A. Roth <troth@verinet.com>
2784 * avr-tdep.c: Ran through gdb_indent.sh.
2786 2002-04-25 Theodore A. Roth <troth@verinet.com>
2788 * MAINTAINERS: Add myself as AVR maintainer.
2789 * NEWS: Note new target avr.
2791 2002-04-25 Theodore A. Roth <troth@verinet.com>
2793 * Makefile.in: Add support for AVR target.
2794 * configure.tgt: Add support for AVR target.
2795 * avr-tdep.c: New file
2796 * config/avr/avr.mt: New file.
2798 2002-04-25 Theodore A. Roth <troth@verinet.com>
2800 * MAINTAINERS: Add myself to write-after-approval.
2802 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2804 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2805 with fprintf_unfiltered (gdb_stderr,....
2807 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2810 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2812 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2814 * p-exp.y: Also use new prev_lexptr variable
2815 to improve error reporting. Based on Michael Snyder
2816 2002-04-24 dated patch to c-exp.y.
2818 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2820 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2821 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2822 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2824 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2826 (FUNCTION_START_OFFSET): Remove.
2827 (BREAKPOINT): Ditto.
2829 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2831 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2834 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2836 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2837 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2838 alpha_linux_pc_in_sigtramp.
2839 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2840 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2841 alpha_osf1_pc_in_sigtramp.
2842 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2843 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2844 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2845 alphafbsd_pc_in_sigtramp.
2846 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2847 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2848 alphanbsd_pc_in_sigtramp.
2849 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2850 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2852 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2854 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2856 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2858 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2860 (alphanbsd-nat.o): New dependency list.
2861 (alphanbsd-tdep.o): Ditto.
2862 * NEWS: Note new native NetBSD/alpha configuration.
2863 * alphanbsd-nat.c: New file.
2864 * alphanbsd-tdep.c: Ditto.
2865 * configure.host (alpha*-*-netbsd*): New host.
2866 * configure.tgt (alpha*-*-netbsd*): New target.
2867 * config/alpha/nbsd.mh: New file.
2868 * config/alpha/nbsd.mt: Ditto.
2869 * config/alpha/nm-nbsd.h: Ditto.
2870 * config/alpha/tm-nbsd.h: Ditto.
2872 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2874 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2875 (alpha-osf1-tdep.o): New dependency list.
2876 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2877 and skip_sigtramp_frame members.
2878 * alpha-linux-tdep.c: Include gdbcore.h.
2879 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2880 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2881 * alpha-osf1-tdep.c: New file.
2882 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2884 (alpha_frame_past_sigtramp_frame): New function.
2885 (alpha_dynamic_sigtramp_offset): Ditto.
2886 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2887 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2888 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2889 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2890 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2891 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2892 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2893 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2894 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2895 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2896 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2897 to find_solib_trampoline_target.
2898 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2899 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2900 (SKIP_TRAMPOLINE_CODE): Remove.
2901 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2902 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2903 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2904 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2905 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2906 (PROC_SIGTRAMP_MAGIC): Ditto.
2907 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2908 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2909 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2910 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2911 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2913 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2915 * NEWS: Note that Alpha targets are now multi-arch.
2917 2002-04-24 Michael Snyder <msnyder@redhat.com>
2919 * parser-defs.h (prev_lexptr): New external variable.
2920 * parse.c (parse_exp_1): Set prev_lexptr to null before
2921 calling the language-specific parser.
2922 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2923 (yyerror): Use prev_lexptr in error reporting.
2925 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
2927 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2928 * gregset.h: If FILL_FPXREGSET is defined, provide
2929 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2930 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2931 is defined, call fill_fpxregset.
2933 2002-04-24 Roland McGrath <roland@frob.com>
2935 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2936 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2937 (supply_gregset, supply_fpregset): New functions.
2939 * gnu-nat.c (gnu_find_memory_regions): New function.
2940 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2941 (gnu_xfer_memory): Add a cast.
2943 2002-04-24 Michael Snyder <msnyder@redhat.com>
2945 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
2946 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2947 of argument regs ("str r(0123), [r11, #-nn"]).
2948 (arm_skip_prologue): Better handling for frameless functions.
2949 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2950 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2952 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2954 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2955 NUM_PSEUDO_REGS can be used.
2957 2002-04-24 Andrew Cagney <ac131313@redhat.com>
2959 * arch-utils.h: Update copyright.
2961 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2962 * gdbarch.h, gdbarch.c: Re-generate.
2964 * inferior.h (IN_SIGTRAMP): Delete definition.
2965 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2966 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2968 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2969 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2970 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2971 (find_proc_framesize): Ditto.
2972 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2973 (alpha_init_extra_frame_info): Ditto.
2974 * infrun.c (handle_inferior_event): Ditto.
2975 (handle_inferior_event): Ditto.
2976 (check_sigtramp2): Ditto.
2977 * blockframe.c (create_new_frame): Ditto.
2978 (get_prev_frame): Ditto.
2979 * ppc-linux-tdep.c: Update comments.
2980 * i386-linux-tdep.c: Update comments.
2981 * breakpoint.c (bpstat_what): Update comment.
2983 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2985 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
2986 (regsets_store_inferior_registers): Removed cast to int from
2988 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2990 2002-04-24 David S. Miller <davem@redhat.com>
2992 * i960-tdep.c (register_in_window_p): New function.
2993 (i960_find_saved_register): Use it instead of
2994 REGISTER_IN_WINDOW_P.
2995 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2997 * symtab.h (find_stab_function_addr): Kill extern.
2998 * minsyms.c (find_stab_function_addr): Remove from here...
2999 * dbxread.c: ... to here, and mark it static.
3001 2002-04-20 David S. Miller <davem@redhat.com>
3003 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3004 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3006 2002-04-21 David S. Miller <davem@redhat.com>
3008 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3009 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3010 (vx_write_register): Likewise.
3012 2002-04-23 J. Brobecker <brobecker@gnat.com>
3014 * source.c (is_regular_file): New function.
3015 (openp): Check wether file to open is a regular file
3016 to avoid opening directories.
3018 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3020 * findvar.c (extract_signed_integer): Cast printf argument
3021 to suppress format warning.
3022 (extract_unsigned_integer): Likewise.
3023 * infcmd.c (registers_info): Likewise.
3024 * top.c (get_prompt_1): Likewise.
3025 * valops.c (value_assign): Likewise.
3026 * valprint.c (print_decimal): Likewise.
3028 2002-04-22 H.J. Lu (hjl@gnu.org)
3030 * c-exp.y (typebase): Support
3032 [long|long long|short] [signed|unsigned] [int|]
3036 signed [long|long long|short] int
3038 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3040 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3042 * vax-tdep.h: New file.
3043 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3044 Make several routines static.
3045 (vax_get_saved_register): New function.
3046 (vax_gdbarch_init): New function.
3047 (_initialize_vax_tdep): Register vax_gdbarch_init.
3048 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3049 Remove macros now under the control of gdbarch.
3051 2002-04-22 Michael Snyder <msnyder@redhat.com>
3053 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3054 Some whitespace and coding standards tweaks.
3056 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3058 * vax-tdep.c: Include regcache.h.
3059 (vax_call_dummy_words): New.
3060 (sizeof_vax_call_dummy_words): New.
3061 (vax_fix_call_dummy): New function.
3062 (vax_saved_pc_after_call): Ditto.
3063 * config/vax/tm-vax.h: Don't include regcache.h.
3064 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3065 (CALL_DUMMY): Remove.
3066 (CALL_DUMMY_WORDS): Define.
3067 (SIZEOF_CALL_DUMMY_WORDS): Define.
3068 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3070 2002-04-18 Michael Snyder <msnyder@redhat.com>
3072 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3074 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3076 * vax-tdep.c (vax_frame_chain): New function.
3077 (vax_push_dummy_frame): Ditto.
3078 (vax_pop_frame): Ditto.
3079 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3080 (FRAMELESS_FUNCTION_INVOCATION): Use
3081 generic_frameless_function_invocation_not.
3082 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3083 (POP_FRAME): Use vax_pop_frame.
3085 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3087 * vax-tdep.c (vax_store_struct_return): New function.
3088 (vax_extract_return_value): Ditto.
3089 (vax_store_return_value): Ditto.
3090 (vax_extract_struct_value_address): Ditto.
3091 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3092 vax_store_struct_return.
3093 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3094 (STORE_RETURN_VALUE): Use vax_store_return_value.
3095 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3097 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3099 * vax-tdep.c (vax_frame_saved_pc): New function.
3100 (vax_frame_args_address_correct): Ditto.
3101 (vax_frame_args_address): Ditto.
3102 (vax_frame_locals_address): Ditto.
3103 (vax_frame_num_args): Move code to be in proximity to
3104 other frame-related functions.
3105 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3106 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3107 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3108 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3109 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3111 2002-04-22 H.J. Lu (hjl@gnu.org)
3113 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3116 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3118 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3119 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3120 (FRAME_INIT_SAVED_REGS): New macro.
3122 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3124 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3126 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3128 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3130 (fetch_osf_core_registers): Likewise.
3131 (supply_gregset): Likewise.
3133 2002-04-22 J. Brobecker <brobecker@gnat.com>
3135 * symfile.h (get_section_index): Define.
3136 * symfile.c (get_section_index): New function.
3137 * mdebugread.c (SC_IS_SBSS): New macro.
3138 (SC_IS_BSS): Return true for the scBss storage class only, as
3139 the scSBss storage class refers to the .sbss section.
3140 (parse_partial_symbols): Discard the symbols which associated
3141 section does not exist.
3142 Make sure to use the .sbss section index for symbols which
3143 storage class is scBss, rather than using the .bss section index.
3145 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3147 * vax-tdep.c: Update copyright years.
3148 (vax_register_name): New function.
3149 (vax_register_byte): Ditto.
3150 (vax_register_raw_size): Ditto.
3151 (vax_register_virtual_size): Ditto.
3152 (vax_register_virtual_type): Ditto.
3153 * config/vax/tm-vax.h: Update copyright years.
3154 (REGISTER_NAMES): Remove.
3155 (REGISTER_NAME): Define.
3156 (REGISTER_BYTE): Use vax_register_byte.
3157 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3158 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3159 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3161 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3163 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3165 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3167 2002-04-21 David S. Miller <davem@redhat.com>
3169 * arch-utils.c (generic_prologue_frameless_p): Kill
3170 SKIP_PROLOGUE_FRAMELESS_P code.
3171 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3173 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3174 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3175 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3177 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3178 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3179 (sparc_gdbarch_init): Pass it to
3180 set_gdbarch_prologue_frameless_p.
3182 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3184 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3185 (alphabsd-nat.o): New dependency list.
3187 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3189 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3191 (alpha-linux-tdep.o): New dependency list.
3192 (alphafbsd-tdep.o): Likewise.
3194 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3196 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3198 * alpha-tdep.c: ...from here.
3199 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3201 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3203 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3204 prototype from here...
3205 * alpha-tdep.h: ...to here.
3207 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3209 * frame.h (selected_frame_level): Document as deprecated.
3210 (frame_relative_level): Declare.
3211 * stack.c (frame_relative_level): New function.
3212 (selected_frame_level): Document as deprecated.
3213 (select_frame): Do not set the selected_frame_level.
3215 * stack.c (frame_info, record_selected_frame): Update.
3216 (frame_command, current_frame_command): Update.
3217 (up_silently_base, up_command, down_silently_base): Update.
3218 (down_command): Update.
3219 * inflow.c (kill_command): Update.
3220 * tracepoint.c (finish_tfind_command): Update.
3221 * corelow.c (core_open): Update.
3222 * thread.c (info_threads_command): Update.
3223 (do_captured_thread_select): Update.
3224 * infcmd.c (finish_command): Update.
3225 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3227 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3229 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3231 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3233 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3236 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3238 * alphafbsd-tdep.c: Update copyright years. Include
3240 (alphafbsd_use_struct_convention): Make static.
3241 (alphafbsd_init_abi): New function.
3242 (_initialize_alphafbsd_tdep): New function.
3243 * config/alpha/tm-fbsd.h: Update copyright years.
3244 (USE_STRUCT_CONVENTION): Remove.
3246 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3248 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3249 an Alpha ABI variant.
3250 (alpha_abi_handler_list): Declare.
3251 (alpha_gdbarch_register_os_abi): New function.
3252 (alpha_gdbarch_init): Give registered ABI variant handlers a
3253 chance to tweak the gdbarch once we have set up defaults.
3254 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3256 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3258 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3259 to standard_coerce_float_to_double.
3260 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3262 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3264 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3265 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3266 from gdbarch_tdep rather than a constant.
3267 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3268 the default text address for all Alpha Unix ABIs.
3269 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3270 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3272 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3274 * alpha-tdep.h: New file. Includes several Alpha target constants
3276 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3277 let gdbarch deal with.
3278 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3279 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3281 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3282 Alpha target register names.
3283 * alphabsd-nat.c: Likewise.
3284 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3285 Alpha target register names. Make serveral routines static.
3286 (alpha_get_saved_register): New function.
3287 (alpha_abi_names): New.
3288 (process_note_abi_tag_sections): New function.
3289 (get_elfosabi): New function.
3290 (alpha_gdbarch_init): New function.
3291 (alpha_dump_tdep): New function.
3292 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3294 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3296 * frame.c (find_saved_register): Delete #ifdef
3297 HAVE_REGISTER_WINDOWS code.
3298 * config/sparc/tm-sparc.h: Update comments.
3299 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3301 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3303 * i960-tdep.c (i960_find_saved_register): New function.
3304 (i960_get_saved_register): New function.
3305 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3306 (i960_get_saved_register): Declare.
3307 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3309 2002-04-20 David S. Miller <davem@redhat.com>
3311 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3313 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3315 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3316 instead of NUM_PSEUDO_REGS.
3318 2002-04-20 David S. Miller <davem@redhat.com>
3320 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3321 GDB_MULTI_ARCH_PARTIAL
3322 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3323 define, let tm-sp64.h do it.
3325 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
3327 * frame.c (find_saved_register): Avoid a NULL pointer
3328 dereference and actually walk the frame list.
3330 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3332 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3333 sorted in most most-recent-used order. Document.
3334 * gdbarch.h, gdbarch.c: Regenerate.
3336 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3338 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3339 (add_inferior): Call create_register_cache.
3340 (clear_inferiors): Call free_register_cache.
3341 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3342 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3343 (registers): Remove.
3344 (get_regcache): New function.
3345 (create_register_cache, free_register_cache): New functions.
3346 (set_register_cache): Don't initialize the register cache here.
3347 (registers_to_string, registers_from_string, register_data): Call
3349 * gdbserver/regcache.h: Add prototypes.
3350 * gdbserver/server.h: Likewise.
3352 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3354 * gdbserver/mem-break.c: New file.
3355 * gdbserver/mem-break.h: New file.
3356 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3358 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3360 (clear_inferiors): Free target_data member if set.
3361 (inferior_target_data, set_inferior_target_data): New functions.
3362 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3363 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3364 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3365 (struct inferior_linux_data): New.
3366 (linux_create_inferior): Use set_inferior_target_data.
3367 (linux_attach): Likewise. Call add_inferior.
3368 (linux_wait_for_one_inferior): New function.
3369 (linux_wait): Call it.
3370 (linux_write_memory): Add const.
3371 (initialize_low): Call set_breakpoint_data.
3372 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3374 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3376 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3378 * gdbserver/target.c (read_inferior_memory)
3379 (write_inferior_memory): New functions.
3380 * gdbserver/target.h (read_inferior_memory)
3381 (write_inferior_memory): Change macros to prototypes.
3382 (struct target_ops): Update comments. Add const to write_memory
3385 2002-04-19 Andrew Cagney <ac131313@redhat.com>
3387 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3389 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3390 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3391 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3394 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
3397 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3398 (build_builtin_type_vec128): Ditto.
3399 (append_composite_type_field): Fix calculation of type length in
3402 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3404 * config/djgpp/README: Update.
3406 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3409 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3411 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3412 (alpha_setup_arbitrary_frame): ...to this.
3413 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3414 for alpha_setup_arbitrary_frame.
3416 2002-04-18 Andrew Cagney <cagney@redhat.com>
3418 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3419 * gdbarch.h, gdbarch.c: Regenerate.
3421 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3422 * target.h (memory_breakpoint_from_pc): Update declaration.
3423 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3425 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3426 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3427 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3428 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3429 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3430 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3431 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3432 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3433 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3434 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3435 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3436 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3438 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3440 * monitor.c (monitor_insert_breakpoint): Ditto.
3441 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3443 * config/mcore/tm-mcore.h: Update copyright.
3444 * mem-break.c: Ditto.
3445 * xstormy16-tdep.c: Ditto.
3447 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3449 * p-exp.y: Add precedence rule for '^' token.
3450 This removes the shift/reduce conflicts.
3451 Remove the comment concerning these shift/reduce conflicts.
3453 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
3455 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3456 (registers_powerpc_nofp): New register set for processors
3457 without floating point unit.
3459 2002-04-18 David S. Miller <davem@redhat.com>
3461 * MAINTAINERS: Add myself to write-after-approval.
3463 2002-04-17 Michael Snyder <msnyder@redhat.com>
3465 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3467 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3469 * rs6000-tdep.c (frame_initial_stack_address): Use
3470 frame_register_read to read the alloca_reg.
3472 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3474 * frame.c (find_saved_register): Find saved registers in the next
3478 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3480 * gdbarch.sh (LANG): Set to ``c''.
3482 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3484 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3486 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3488 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3491 * hpread.c (hpread_get_lntt): Add declaration.
3492 Also fix PR gdb/391.
3494 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3496 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3497 * aclocal.m4, configure: Re-generate.
3500 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3502 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3503 instead of tm_print_insn.
3505 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3507 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3509 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3511 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3512 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3513 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3515 2002-04-12 Don Howard <dhoward@redhat.com>
3517 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3518 max_user_call_depth.
3519 (init_cmd_lists): Initialize the new value;
3520 * cli/cli-script.c (execute_user_command): Limit the call depth of
3521 user defined commands. This avoids a core-dump when user commands
3522 are infinitly recursive.
3524 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3526 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3527 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3528 from tdep struct instead of DEFAULT_LR_SAVE.
3529 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3530 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3531 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3533 2002-04-12 Michael Snyder <msnyder@redhat.com>
3535 * Remote.c: Spelling fix.
3536 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3537 If no symbol found for "sbrk", try "_sbrk".
3538 (make_output_phdrs): Use bfd_section_name.
3539 (gcore_copy_callback): Use bfd_section_name.
3540 * eval.c: Indentation fix-ups.
3541 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3542 in case it gets applied to an address that is already
3543 in the instruction space.
3544 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3545 * symfile.c: Fix indentation, long lines.
3546 * source.c: White space fix-up.
3548 2002-04-12 Andrew Cagney <cagney@redhat.com>
3550 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3551 * frame.c (frame_register_read): New function. Return non-zero on
3553 (read_relative_register_raw_bytes_for_frame): Delete.
3554 (read_relative_register_raw_bytes): Delete.
3555 * frame.h (frame_register_read): Declare.
3556 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3558 * infcmd.c (do_registers_info): Ditto.
3559 * hppa-tdep.c: Ditto.
3560 * rs6000-tdep.c: Ditto.
3561 * h8500-tdep.c: Ditto.
3562 * mips-tdep.c: Ditto.
3563 * h8300-tdep.c: Ditto.
3564 * z8k-tdep.c: Ditto.
3566 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3568 From Jimi X <jimix@watson.ibm.com>:
3569 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3572 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3574 From Jimi X <jimix@watson.ibm.com>:
3575 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3578 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3580 From Jimi X <jimix@watson.ibm.com>:
3581 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3582 register sets for these processor variants.
3584 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
3586 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3587 registers which are allowed to fail to store.
3588 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3589 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3590 (ppc_cannot_store_register): FPSCR may not be storable.
3591 * regformats/reg-ppc.dat: Support FPSCR.
3593 2002-04-11 Kevin Buettner <kevinb@redhat.com>
3595 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3596 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3597 Add fpscr as an invalid/unfetchable register.
3598 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3599 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3600 (fill_fpregset): Add support for register fpscr.
3601 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3602 (fill_gregset): Account for the fact that register ``mq'' might
3604 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3605 (registers_power): Add fpscr to register set at slot 71.
3606 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3607 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3609 2002-04-11 Michael Snyder <msnyder@redhat.com>
3611 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3612 * configure: Regenerate.
3613 * config.in: Regenerate.
3614 * acconfig.h: Add define for _SYSCALL32.
3615 * core-sol2.c: Remove #define _SYSCALL32.
3616 * solib-legacy.c: Remove #define _SYSCALL32.
3618 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3620 * stack.c (select_frame): Cleanup internal error message, do not
3623 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3625 * stack.c (select_frame): Check that selected_frame and the
3626 specified level are as expected.
3627 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3629 * frame.h (struct frame_info): Add field `level'. Update
3631 Work-in-progress PR gdb/464.
3633 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3635 * maint.c (maint_print_section_info): Rename print_section_info.
3636 (print_bfd_section_info, print_objfile_section_info): Update.
3637 * inferior.h (struct gdbarch): Add opaque declaration.
3638 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3639 * gdbarch.h: Regenerate.
3641 2002-04-10 Michal Ludvig <mludvig@suse.cz>
3643 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3644 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3645 (kernel_u_size): Added.
3646 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3647 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3649 2002-04-04 Jim Ingham <jingham@apple.com>
3651 * valarith.c (find_size_for_pointer_math): New function, either returns
3652 the size for a pointer's target, returns 1 for void *, or errors for
3654 (value_add, value_sub): use find_size_for_pointer_math.
3656 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3658 * linux-low.c (linux_look_up_symbols): New hook.
3659 (linux_target_ops): Add linux_look_up_symbols.
3660 * remote-utils.c (decode_address): New function.
3661 (look_up_one_symbol): New function.
3662 * server.c (handle_query): Call target look_up_symbols hook.
3663 * server.h (look_up_one_symbol): Add prototype.
3664 * target.h (struct target_ops): Add look_up_symbols hook.
3666 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3668 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3669 * ChangeLog: Correct paths in last ChangeLog entry.
3671 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3673 * gdbserver/linux-low.h: Remove obsolete prototypes.
3674 (struct linux_target_ops): New.
3675 (extern the_low_target): New.
3676 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3677 (register_addr): Use the_low_target explicitly.
3678 (fetch_register): Likewise.
3679 (usr_fetch_inferior_registers): Likewise.
3680 (usr_store_inferior_registers): Likewise.
3681 * gdbserver/linux-arm-low.c (num_regs): Remove.
3682 (arm_num_regs): Define.
3683 (arm_regmap): Renamed from regmap, made static.
3684 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3686 (arm_cannot_store_register): Renamed from cannot_store_register,
3688 (the_low_target): New.
3689 * gdbserver/linux-i386-low.c (num_regs): Remove.
3690 (i386_num_regs): Define.
3691 (i386_regmap): Renamed from regmap, made static.
3692 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3694 (i386_cannot_store_register): Renamed from cannot_store_register,
3696 (the_low_target): New.
3697 * gdbserver/linux-ia64-low.c (num_regs): Remove.
3698 (ia64_num_regs): Define.
3699 (ia64_regmap): Renamed from regmap, made static.
3700 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3702 (ia64_cannot_store_register): Renamed from cannot_store_register,
3704 (the_low_target): New.
3705 * gdbserver/linux-m68k-low.c (num_regs): Remove.
3706 (m68k_num_regs): Define.
3707 (m68k_regmap): Renamed from regmap, made static.
3708 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3710 (m68k_cannot_store_register): Renamed from cannot_store_register,
3712 (the_low_target): New.
3713 * gdbserver/linux-mips-low.c (num_regs): Remove.
3714 (mips_num_regs): Define.
3715 (mips_regmap): Renamed from regmap, made static.
3716 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3718 (mips_cannot_store_register): Renamed from cannot_store_register,
3720 (the_low_target): New.
3721 * gdbserver/linux-ppc-low.c (num_regs): Remove.
3722 (ppc_num_regs): Define.
3723 (ppc_regmap): Renamed from regmap, made static.
3724 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3726 (ppc_cannot_store_register): Renamed from cannot_store_register,
3728 (the_low_target): New.
3729 * gdbserver/linux-s390-low.c (num_regs): Remove.
3730 (s390_num_regs): Define.
3731 (s390_regmap): Renamed from regmap, made static.
3732 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3734 (s390_cannot_store_register): Renamed from cannot_store_register,
3736 (the_low_target): New.
3737 * gdbserver/linux-sh-low.c (num_regs): Remove.
3738 (sh_num_regs): Define.
3739 (sh_regmap): Renamed from regmap, made static.
3740 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3742 (sh_cannot_store_register): Renamed from cannot_store_register,
3744 (the_low_target): New.
3745 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3746 (the_low_target): New.
3748 2002-04-09 Andrew Cagney <ac131313@redhat.com>
3750 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3751 override FP_REGNUM with frame->fp. Update copyright.
3752 * parse.c (num_std_regs, std_regs): Delete.
3753 (target_map_name_to_register): Do not search std_regs. Update
3754 function description.
3755 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3756 declarations. Update copyright.
3759 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3761 * gdbserver/Makefile.in: Add stamp-h target.
3762 * gdbserver/configure.in: Create stamp-h.
3763 * gdbserver/configure: Regenerated.
3765 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3767 * gdbserver/inferiors.c: New file.
3768 * gdbserver/target.c: New file.
3769 * gdbserver/target.h: New file.
3770 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3772 * gdbserver/linux-low.c (inferior_pid): New static variable,
3773 moved from server.c.
3774 (linux_create_inferior): Renamed from create_inferior.
3775 Call add_inferior. Return 0 on success instead of a PID.
3776 (linux_attach): Renamed from myattach.
3777 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3778 (linux_thread_alive): Renamed from mythread_alive.
3779 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3781 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3782 (regsets_store_inferior_registers): Correct error message.
3783 Add missing ``return 0''.
3784 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3785 (linux_store_registers): Renamed from store_inferior_registers.
3786 (linux_read_memory): Renamed from read_inferior_memory.
3787 (linux_write_memory): Renamed from write_inferior_memory.
3788 (linux_target_ops): New structure.
3789 (initialize_low): Call set_target_ops ().
3790 * gdbserver/remote-utils.c (unhexify): New function.
3791 (hexify): New function.
3792 (input_interrupt): Send signals to ``signal_pid''.
3793 * gdbserver/server.c (inferior_pid): Remove.
3794 (start_inferior): Update create_inferior call.
3795 (attach_inferior): Call add_inferior.
3796 (handle_query): New function.
3797 (main): Call handle_query for `q' packets.
3798 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3799 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3801 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3803 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3805 * gdbserver/configure.in: Check for <string.h>
3806 * gdbserver/configure: Regenerate.
3807 * gdbserver/config.in: Regenerate.
3808 * gdbserver/gdbreplay.c: Include needed system headers.
3809 (remote_open): Remove strchr prototype.
3810 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3811 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3812 (supply_register_by_name): Likewise.
3813 (collect_register): Change buf argument to void *.
3814 (collect_register_by_name): Likewise.
3815 * gdbserver/regcache.h: Add missing prototypes.
3816 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3817 * gdbserver/server.c (handle_query): New function.
3818 (attached): New static variable, moved out of main.
3819 (main): Quiet longjmp clobber warnings.
3820 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3821 * gdbserver/utils.c (error): Remove NORETURN.
3824 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3826 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3827 after the last symbol in a block.
3829 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3831 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3832 is non zero as a found symbol.
3834 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3836 * findvar.c: Include "builtin-regs.h".
3837 (value_of_register): Call value_of_builtin_reg when applicable.
3838 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3839 (target_map_name_to_register): Call
3840 builtin_reg_map_name_to_regnum.
3841 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3842 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3843 (builtin_regs_h): Define.
3844 (builtin-regs.o): New target.
3845 (findvar.o): Add $(builtin_regs_h).
3846 * builtin-regs.c, builtin-regs.h: New files.
3847 * std-regs.c: New file.
3848 Partial fix for PR gdb/251.
3850 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3852 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3853 it's no longer required.
3855 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3857 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3859 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3861 From Jimi X <jimix@watson.ibm.com>:
3862 * rs6000-tdep.c (rs6000_software_single_step): Use
3863 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3864 and size. Use target_insert_breakpoint() and
3865 target_remove_breakpoint() to insert and remove breakpoints
3866 instead of explicit memory reads and writes.
3868 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3870 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3871 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3872 ELF_OBJECT_FORMAT ifdef.
3874 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3876 From Jimi X <jimix@watson.ibm.com>:
3877 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3879 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3881 From Jimi X <jimix@watson.ibm.com>:
3882 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3883 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3885 2002-04-07 Mark Kettenis <kettenis@gnu.org>
3887 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3888 s/asprintf/xasprintf/.
3889 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3891 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3893 I believe Jeff Law denies responsability for this one:
3894 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3895 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3896 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3897 Work-around for PR gdb/366.
3899 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3901 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3902 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3903 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3905 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3907 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3908 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3911 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3913 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3916 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3918 * README (Reporting Bugs in GDB): Document the bug web page as the
3919 prefered way of submitting bugs.
3922 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3924 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3926 * gdbarch.h, gdbarch.c: Re-generate.
3928 2002-04-07 Andreas Schwab <schwab@suse.de>
3930 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3931 buffer to regcache_collect.
3933 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3935 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3936 * gdbarch.c, gdbarch.h: Re-generate.
3938 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3940 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3941 declaration. Fix -Werror.
3943 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
3945 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3946 * gdbarch.c: Regenerate.
3948 2002-04-05 Michael Snyder <msnyder@redhat.com>
3950 * breakpoint.c (clear_command): Rewrite middle section to
3951 combine two loops with identical control conditions.
3952 Add a cleanup to eliminate a memory leak.
3953 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3955 2002-04-05 H.J. Lu (hjl@gnu.org)
3957 * solib-svr4.c (bkpt_names): Add "__start".
3959 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3961 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3962 as test for 64 bit target.
3964 2002-04-05 Andrew Cagney <ac131313@redhat.com>
3966 * h8500-tdep.c (h8500_write_fp): Delete function.
3967 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3968 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3969 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3971 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3972 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3974 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3975 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3976 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3977 (d10v_write_fp): Delete function.
3978 * inferior.h (write_fp, generic_target_write_fp): Delete
3980 * regcache.c (generic_target_write_fp): Delete function.
3981 (write_fp): Delete function.
3982 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3983 * gdbarch.h, gdbarch.c: Regenerate.
3984 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3985 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3986 (sparc64_write_fp): Delete declaration.
3987 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3988 (h8500_write_fp): Delete declaration.
3990 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3992 * sparc-tdep.c (sparc64_write_fp): Delete.
3993 (sparc_push_dummy_frame): Replace write_fp call with code to store
3995 (sparc_gdbarch_init): Do not initialize write_fp.
3997 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3999 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4002 2002-03-29 Jim Blandy <jimb@redhat.com>
4004 * stack.c (get_selected_block): Add new argument `addr_in_block',
4005 used to return the exact code address we used to select the block,
4007 * blockframe.c (get_frame_block, get_current_block): Same.
4008 * frame.h (get_frame_block, get_current_block,
4009 get_selected_block): Update declarations.
4010 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4011 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4013 2002-04-05 Michael Snyder <msnyder@redhat.com>
4015 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4018 2002-04-05 J. Brobecker <brobecker@gnat.com>
4020 * utils.c (xfullpath): New function.
4021 * defs.h (xfullpath): Add declaration.
4022 * source.c (openp): Use xfullpath in place of gdb_realpath to
4023 avoid resolving the basename part of filenames when the
4024 associated file is a symbolic link. This fixes a potential
4025 inconsistency between the filenames known to GDB and the
4026 filenames it prints in the annotations.
4027 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4028 to be able to match a filename with either the real filename, or
4029 the name of any symbolic link to this file.
4030 (lookup_partial_symtab): Ditto.
4032 2002-04-04 Michael Snyder <msnyder@redhat.com>
4034 * breakpoint.c: Add support for hardware breakpoints in overlays.
4035 (overlay_events_enabled): New state variable.
4036 (insert_breakpoints): Use overlay_events_enabled to decide
4037 whether to attempt to set a breakpoint at the overlay load addr.
4038 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4039 (remove_breakpoint): Use overlay_events_enabled to decide
4040 whether breakpoints need to be removed from overlay load addr.
4041 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4042 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4043 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4044 disable_overlay_breakpoints): Update overlay_events_enabled.
4046 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
4048 * dwarf2read.c (struct function_range): New.
4049 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4050 (check_cu_functions): New.
4051 (read_file_scope): Initialize global function lists.
4052 Call dwarf_decode_line after processing children.
4053 (read_func_scope): Add to global function list.
4054 (dwarf_decode_lines): Call check_cu_functions everywhere
4055 record_line is called. Call record_line with a linenumber
4056 of 0 to mark sequence ends.
4058 2002-04-04 Michal Ludvig <mludvig@suse.cz>
4060 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4061 change sync with glibc.
4063 2002-04-03 Jim Blandy <jimb@redhat.com>
4065 * configure.in: Call AC_C_INLINE.
4066 * configure: Regenerated.
4068 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
4070 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4071 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4073 2002-03-31 Mark Kettenis <kettenis@gnu.org>
4075 * NEWS: Mention gcore support on FreeBSD/i386.
4077 * fbsd-proc.c: New file.
4078 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4079 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4081 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4084 2002-03-29 Jim Blandy <jimb@redhat.com>
4086 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4087 unescaped newlines in string literals, but newer ones don't. So
4090 2002-03-26 Michael Snyder <msnyder@redhat.com>
4091 Andrew Cagney <cagney@redhat.com>
4093 * cli/cli-dump.c: New file. Dump memory to file,
4094 restore file to memory.
4095 * cli/cli-dump.h: New file.
4096 * Makefile.in: Add rules, dependencies for cli-dump.o.
4097 * NEWS: Mention new commands.
4099 2002-03-28 Michael Snyder <msnyder@redhat.com>
4101 * symfile.c (symbol_file_add): Move test for null symbols to later.
4103 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4105 From veksler at il.ibm.com:
4106 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4107 the xstrduped original path.
4110 2002-03-27 Michael Snyder <msnyder@redhat.com>
4112 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4113 * infcmd.c (_initialize_infcmd): Ditto.
4114 * language.c (_initialize_language): Ditto.
4115 * symfile.c (_initialize_symfile): Ditto.
4116 * top.c (_init_main): Ditto.
4117 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4119 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
4121 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4122 vector registers handling.
4123 (skip_prologue): Handle new AltiVec instructions. Fill in new
4124 fields of frame data.
4125 (frame_get_saved_regs): Fill in information for AltiVec registers.
4127 2002-03-27 Jim Blandy <jimb@redhat.com>
4129 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4130 a function; leave this macro here to invoke that function.
4131 (symbol_init_mangled_name): Declaration for that function.
4132 * symtab.c (symbol_init_mangled_name): New function.
4134 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4136 * valarith.c: Replace strerror with safe_strerror.
4137 * tracepoint.c: Ditto.
4139 * go32-nat.c: Ditto.
4143 2002-03-27 Andreas Schwab <schwab@suse.de>
4145 * event-top.c (command_line_handler): Remove useless if.
4147 2002-03-27 Andreas Jaeger <aj@suse.de>
4149 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4152 2002-03-27 Michal Ludvig <mludvig@suse.cz>
4154 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4155 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4156 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4157 (x86_64_linux_dr_get_status, supply_gregset),
4158 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4159 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4160 (x86_64_register_info_table): Add.
4161 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4162 (x86_64_register_raw_size, x86_64_register_virtual_type),
4163 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4164 general x86_64_register_info_table.
4165 (i386_gdbarch_init): gdbarch_register_bytes is now set
4166 dynamicaly during initialization.
4167 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4168 * gdbserver/linux-x86-64-low.c: Ditto.
4170 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4172 * gdbserver/server.c (main): Call target_signal_to_host_p
4173 and target_signal_to_host on signals received from the remote.
4174 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4175 target_signal_from_host on signals sent to the remote.
4176 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4177 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4179 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4181 * signals/signals.c: Include "server.h" in gdbserver build.
4182 (target_signal_from_name): Don't use STREQ.
4183 (_initialize_signals): Likewise. Don't include function in
4186 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4188 * signals.c: Moved to...
4189 * signals/signals.c: Here.
4190 * Makefile (signals.o): Update.
4192 2002-03-26 Jeff Law (law@redhat.com)
4194 * somread.c (som_symtab_read): Remove some commented out code and
4195 updated related comments. Do not set the minimal symbol table to
4196 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4197 in a dynamic executable.
4198 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4199 where we are unable to find the minimal symbol for the given
4202 2002-03-25 Jeff Law (law@redhat.com)
4204 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4206 2002-03-25 Michal Ludvig <mludvig@suse.cz>
4208 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4210 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4212 * command.h: Update copyright.
4213 (struct cmd_list_element): Replace definition with opaque
4215 (enum cmd_types): Document that it will eventually be moved to
4217 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4218 (MALLOCED_REPLACEMENT): Delete macro.
4219 * Makefile.in (cli_decode_h): Add $(command_h).
4220 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4221 * top.c: Include "cli/cli-decode.h".
4222 * completer.c: Include "cli/cli-decode.h".
4223 * maint.c: Include "cli/cli-decode.h".
4224 * cli/cli-decode.h: Include "command.h".
4225 (enum command_class): Delete.
4226 (enum cmd_types): Comment out.
4227 (enum cmd_auto_boolean): Delete.
4228 (enum var_types): Delete.
4230 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4232 * cli/cli-decode.c: Include "gdb_assert.h".
4233 (add_set_or_show_cmd): New static function.
4234 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4235 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4236 all fields, such as func, from the set command.
4238 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4240 * MAINTAINERS (sh-elf): Change warning flag to -w.
4242 2002-03-23 Andrew Cagney <cagney@redhat.com>
4244 * defs.h (error): Add printf format attribute.
4245 * thread-db.c (thread_from_lwp): Fix error format string.
4246 * stack.c (parse_frame_specification): Ditto.
4247 * cli/cli-decode.c (undef_cmd_error): Ditto.
4248 * scm-lang.c (scm_lookup_name): Ditto.
4249 * tracepoint.c (trace_error): Ditto.
4250 * remote-utils.c (usage): Ditto.
4251 * remote.c (compare_sections_command): Ditto.
4254 2002-03-22 Andrew Cagney <ac131313@redhat.com>
4256 * gdbtypes.c (append_composite_type_field): New function.
4257 (init_composite_type): New function.
4258 * gdbtypes.h (append_composite_type_field): Declare.
4259 (init_composite_type): Ditto.
4261 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
4263 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4265 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4266 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4267 structure returning convention for SYSV ABI case, but not
4268 for GNU/Linux, FreeBSD, or NetBSD.
4270 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
4272 * symtab.h (lookup_block_symbol): Add mangled_name argument
4275 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4276 with new mangled_name argument.
4277 * linespec.c (decode_line_1): Likewise.
4278 * valops (value_of_this): Likewise.
4279 * symtab.c (lookup_transparent_type): Likewise.
4280 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4281 (lookup_symbol): If we are given a mangled name, pass it down
4282 to lookup_symbol_aux.
4283 (lookup_block_symbol): If we are given a mangled name to check
4284 against, only return symbols which match it.
4286 2002-03-22 Christopher Faylor <cgf@redhat.com>
4288 * win32-nat.c (child_create_inferior): Check for proper shell to use
4289 here, in case the user changes it on the fly.
4290 (_initialize_inftarg): Remove shell path considerations.
4292 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
4294 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4295 for gdbarch_max_register_raw_size and max_register_virtual_size.
4296 Adjust copyright year.
4298 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
4300 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4301 in a function to cover the entire beginning of the function
4302 as well if it does not already.
4304 2002-03-21 Tom Rix <trix@redhat.com>
4306 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4307 (rs6000_ptrace64): Renamed from ptrace64.
4309 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4311 * gdbserver/remote-utils.c (remote_open): Don't call
4312 getprotobyname, we're all using TCP here so just use
4314 * gdbserver/gdbreplay.c (remote_open): Ditto.
4316 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4318 * regcache.c (_initialize_regcache): No need to call
4319 build_regcache() at this time; it gets called whenever
4320 the gdbarch changes.
4322 2002-03-20 David O'Brien <obrien@FreeBSD.org>
4324 * sparc-nat.c: Include sys/param.h where possible.
4326 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
4329 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4330 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4331 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4333 * stabsread.c (rs6000_builtin_type): Likewise.
4334 (read_sun_floating_type): Likewise.
4336 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4338 * stabsread.c (read_member_functions): Remove skip code for duplicate
4339 constructor/destructor methods. Use standard parsing for these
4340 methods and just do not chain them to the list of methods after
4343 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
4345 * coffread.c: Remove redundant static declarations. Replace
4346 occurrences of `PTR' with `void *'.
4347 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4348 * top.h (quit_cover): Likewise.
4349 * defs.h (catch_errors): Likewise.
4351 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4353 * defs.h (XMALLOC): Define.
4354 * gdb-events.sh (XMALLOC): Delete macro.
4355 * gdb-events.c, gdb-events.h: Regenerate.
4356 * gdbarch.sh (XMALLOC): Delete macro.
4357 * gdbarch.c: Regenerate.
4358 * serial.c (XMALLOC): Delete macro.
4359 * ui-file.c (XMALLOC): Ditto.
4360 * ser-unix.h (XMALLOC): Ditto.
4361 * sh-tdep.c (XMALLOC): Ditto.
4362 * ui-out.c (XMALLOC): Ditto.
4363 * utils.c (XMALLOC): Ditto.
4364 * i386-tdep.c (XMALLOC): Ditto.
4365 * gdb-events.c (XMALLOC): Ditto.
4366 * d10v-tdep.c (XMALLOC): Ditto.
4367 * cli-out.c (XMALLOC): Ditto.
4369 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4370 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4371 * ui-file.c, ui-out.c: Ditto.
4373 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4375 * command.h (struct cmd_list_element): Add field context.
4376 (set_cmd_context, get_cmd_context): Declare.
4377 * cli/cli-decode.h: Ditto.
4378 * cli/cli-decode.c (get_cmd_context): New function.
4379 (set_cmd_context): New function.
4380 (add_cmd): Initialize context.
4381 Part of fixing PR gdb/145 and PR gdb/146.
4383 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4385 * cli/cli-decode.c (cmd_type): New function.
4386 * command.h (cmd_type): Declare.
4387 * infrun.c (set_schedlock_func): Call function cmd_type.
4388 * kod.c (kod_set_os): Call cmd_type.
4389 * cris-tdep.c (cris_version_update): Use function cmd_type.
4390 (cris_mode_update, cris_abi_update): Ditto.
4392 * command.h: (execute_cmd_post_hook): Declare.
4393 (execute_cmd_pre_hook): Declare.
4394 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4395 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4396 functions. Execute pre/post hook while ensuring that afterwords
4398 * top.c (execute_command): Use execute_cmd_post_hook, and
4399 execute_cmd_pre_hook to execute pre/post commands.
4400 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4402 (hook_stop_stub): Call execute_cmd_pre_hook.
4404 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4406 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4407 set'' and this leads to a core dump. Move xstrdup of
4408 operating_system to after check that it is not NULL.
4410 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4412 * kod.c (kod_set_os): Remove unnecessary check that
4413 ``command->type'' is set_cmd.
4415 * valprint.c (set_input_radix): Use input_radix.
4416 (set_output_radix): Use output_radix.
4417 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4420 2002-03-16 Andrew Cagney <ac131313@redhat.com>
4422 * value.h (struct value): Delete field ``substring_addr''. Change
4423 aligner fields to force_doublest_align, force_longest_align,
4424 force_core_addr_align and force_pointer_aligh.
4426 * value.h (struct value): Fix typo in above change.
4428 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4430 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4431 to fix internal_error from ``maintenance print architecture''.
4433 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4435 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4436 for gcc versions after gcc-2.8.1.
4438 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4440 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4441 for method resolution. Restore adjustment of ``this'' pointer after
4442 calling value_struct_elt, which was accidentally removed during the
4445 2002-03-15 Andrew Cagney <ac131313@redhat.com>
4447 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4449 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4451 * value.h (value_of_register): Update.
4453 2002-03-14 Richard Henderson <rth@redhat.com>
4455 * configure.in: Detect declaration for canonicalize_file_name.
4456 * utils.c (canonicalize_file_name): Declare, if needed.
4457 (gdb_realpath): Prefer realpath if available and usable.
4458 * config.in, configure: Rebuild.
4460 2002-03-14 Richard Henderson <rth@redhat.com>
4462 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4463 a constant array bound.
4465 * MAINTAINERS: Add myself to write-after-approval.
4467 2002-03-14 Michael Snyder <msnyder@redhat.com>
4469 * symfile.c (syms_from_objfile): Return immediately if no syms.
4470 (symbol_file_add): Return immediately if no syms.
4471 (find_sym_fns): Return immediately if no syms.
4473 2002-03-13 Michal Ludvig <mludvig@suse.cz>
4475 * gdbserver/remote-util.c (remote_open): Print remote-side's
4476 IP address when remote debugging over the network.
4478 2002-03-12 David O'Brien <obrien@FreeBSD.org>
4480 * config/sparc/fbsd.mh: Fix copyright.
4481 * config/sparc/fbsd.mt: Likewise.
4483 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
4485 * MAINTAINERS: Fix typo in name of gdb warnings option.
4486 (x86-64): Fix formating so that this can be parsed by awk.
4488 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4490 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4491 * defs.h: Include "gdb/signals.h".
4492 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4494 2002-03-10 Michal Ludvig <mludvig@suse.cz>
4496 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4497 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4500 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4501 Don Howard <dhoward@redhat.com>
4503 * mips-tdep.c (ST0_FR): Define.
4504 (mips2_fp_compat): New function, temporarily disabled.
4505 (mips_read_fp_register_single): New function.
4506 (mips_read_fp_register_double): New function.
4507 (mips_print_register): Use them.
4508 (do_fp_register_row): Likewise.
4510 2002-03-09 Andrew Cagney <ac131313@redhat.com>
4512 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4515 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4517 * stabsread.c (read_member_functions): Fix is_stub test for
4518 static member functions, improve comment.
4520 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4522 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4523 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4524 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4525 commands that set boolean values.
4526 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4527 (arm_rdi_resume): Always initialize PC.
4528 (arm_rdi_open): Don't use rslt as a boolean.
4529 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4530 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4531 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4532 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4534 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
4536 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4537 * configure: Rebuilt.
4539 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4541 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4542 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4544 2002-03-06 Andrew Cagney <ac131313@redhat.com>
4546 * cli/cli-decode.c (set_cmd_completer): New function.
4547 * command.h (set_cmd_completer): Declare.
4548 * cli/cli-decode.h (set_cmd_completer): Ditto.
4550 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4551 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4552 * win32-nat.c (_initialize_inftarg): Ditto.
4553 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4554 * proc-api.c (_initialize_proc_api): Ditto.
4555 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4556 * source.c (_initialize_source): Ditto.
4557 * exec.c (_initialize_exec): Ditto.
4558 * solib.c (_initialize_solib): Ditto.
4559 * top.c (init_main): Ditto.
4560 * tracepoint.c (_initialize_tracepoint): Ditto.
4561 * symfile.c (_initialize_symfile): Ditto.
4562 * printcmd.c (_initialize_printcmd): Ditto.
4563 * infcmd.c (_initialize_infcmd): Ditto.
4564 * corefile.c (_initialize_core): Ditto.
4566 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4568 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4570 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4572 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4574 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4576 * NEWS: Update headings, 5.2 has branched.
4578 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
4580 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4581 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4582 (register_addr, REGISTER_RAW_SIZE): Likewise.
4583 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4584 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4586 2002-03-03 Michal Ludvig <mludvig@suse.cz>
4588 * MAINTAINERS (x86-64): Add myself.
4589 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4590 changed value_ptr -> struct value *
4592 2002-03-01 David O'Brien <obrien@FreeBSD.org>
4594 * configure.host (sparc64-*-freebsd): Add.
4595 * configure.tgt: Likewise.
4596 * config/sparc/fbsd.mh: New file.
4597 * config/sparc/fbsd.mt: Likewise.
4598 * config/sparc/nm-fbsd.h: Likewise.
4599 * config/sparc/tm-fbsd.h: Likewise.
4601 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
4603 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4604 regformats/reg-s390x.dat.
4606 2002-03-01 Andrew Cagney <ac131313@redhat.com>
4608 * utils.c: Add FIXME explaining true/false problem.
4610 2002-02-28 Andrew Cagney <ac131313@redhat.com>
4612 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4614 2002-02-28 Michael Chastain <mec@shout.net>
4616 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4618 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
4620 * gdbserver/linux-s390-low.c: New file.
4621 * regformats/reg-s390.dat: New file.
4622 * regformats/reg-s390x.dat: New file.
4623 * gdbserver/configure.srv: Add S/390.
4624 * gdbserver/Makefile.in: Add S/390.
4625 * configure.tgt: Enable gdbserver for S/390.
4627 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4629 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4630 first line of the doc string for "info dos", except at the end of
4631 the sentence, since the short help stops at the first period.
4633 2002-02-28 Jason Merrill <jason@redhat.com>
4635 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4637 2002-02-27 Fred Fish <fnf@redhat.com>
4639 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4640 comment (dumy -> dummy).
4642 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4644 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4646 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
4648 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4650 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4652 * gdbserver/acconfig.h: New file.
4653 * gdbserver/i387-fp.c: New file.
4654 * gdbserver/i387-fp.h: New file.
4655 * gdbserver/linux-x86-64.c: New file.
4656 * regformats/reg-x86-64.dat: New file.
4657 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4658 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4659 * gdbserver/configure.in: Add support for regsets.
4660 * gdbserver/config.in: Regenerate.
4661 * gdbserver/configure: Regenerate.
4662 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4663 * gdbserver/linux-low.h: New file.
4664 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4666 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4667 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4668 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4669 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4670 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4671 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4672 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4673 "i387-fp.h". Add PTRACE_GETREGS and friends.
4674 * gdbserver/regcache.c (supply_register): New function.
4675 (supply_register_by_name): New function.
4676 (collect_register): New function.
4677 (collect_register_by_name): New function.
4679 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4681 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4682 (config.status): Add configure.srv dependency.
4683 (server_h): Add config.h dependency.
4685 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4687 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4688 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4689 * gdbserver/configure.srv: Change i386-*-linux* to use
4692 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4694 * x86-64-tdep.c: Re-indent. Update copyright date.
4696 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4698 From Michal Ludvig <mludvig@suse.cz>:
4699 * x86-64-tdep.c (value.h): Delete.
4700 (gdb_assert.h): Include.
4701 (x86_64_register_convert_to_virtual,
4702 x86_64_register_convert_to_raw ): Add check which lets only
4703 floating-point values to be converted.
4704 (value_push): Delete.
4705 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4706 (i386_gdbarch_init): Number of register_bytes fixed.
4708 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4710 * MAINTAINERS: Add x86-64 target.
4712 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4714 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4715 * osfsolib.c (solib_map_sections): Ditto.
4716 * irix5-nat.c (solib_map_sections): Ditto.
4717 * corelow.c (gdb_check_format): Ditto.
4718 * symfile.c (symfile_bfd_open): Ditto.
4719 * solib.c (solib_map_sections): Ditto.
4722 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4724 * remote.c (_initialize_remote): By default, disable ``e'' and
4725 ``E'' step out-of-range packets.
4727 2002-02-26 Andreas Schwab <schwab@suse.de>
4729 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4730 m68k_linux_frame_saved_pc.
4731 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4733 (SIGCONTEXT_PC_OFFSET): Remove.
4734 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4735 m68k_linux_sigtramp_saved_pc): New functions.
4736 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4737 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4738 (UCONTEXT_PC_OFFSET): Define.
4739 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4740 non-RT and RT signal trampolines.
4742 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
4744 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4745 (TARGET_NBPG, STACK_END_ADDR): Delete
4746 (VARIABLES_INSIDE_BLOCK): Delete.
4748 2002-02-25 Andrew Cagney <ac131313@redhat.com>
4750 * utils.c (perror_with_name): Make string parameter constant.
4751 (print_sys_errmsg): Ditto.
4753 * defs.h (perror_with_name): Update.
4754 (print_sys_errmsg): Update.
4757 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
4759 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4760 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4762 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4764 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4765 if it already matches the current architecture from the exec file.
4766 Include arch-utils.h for gdbarch_info_init prototype.
4767 * Makefile.in (rs6000-nat.o): Update dependencies.
4769 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4771 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4772 list of exported variables.
4774 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
4776 * gdbserver/configure.srv: New file.
4777 * gdbserver/configure.in: Use configure.srv instead
4778 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4780 * gdbserver/configure: Regenerated.
4781 * gdbserver/terminal.h: New file.
4782 * gdbserver/Makefile.in: Update for configure changes. Remove
4783 more unneeded include paths.
4785 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4787 From wiz at danbala:
4788 * config/sparc/tm-sp64.h: Fix grammar and typos.
4791 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4793 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
4794 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4795 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4796 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
4797 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4798 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4799 * s390-tdep.c: Ditto.
4800 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4801 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4802 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4803 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4804 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4805 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4806 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4807 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4808 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4809 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
4812 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4814 * lin-thread.c: Delete file.
4815 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4816 to gdb_proc_service.h.
4817 * configure: Re-generate.
4819 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4820 * serial.c (serial_open): Delete check for "ocd".
4823 * Makefile.in (linux-thread.o): Delete target.
4824 * linux-thread.c: Delete file.
4826 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4827 renamed SH files to be consistent.
4829 * symtab.c (sort_search_symbols): Use xfree.
4831 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4833 * arm-linux-tdep.c (arm_linux_init_abi): Register
4834 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4835 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4836 definition with undef, since we don't want the sysvr4 definition.
4837 (SKIP_TRAMPOLINE_CODE): Likewise.
4839 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4841 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4843 * configure.in: (AC_CHECK_FUNCS) Added test for
4844 canonicalize_file_name Regenerated.
4845 * config.in, configure: Regenerated.
4846 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4847 defined use canonicalize_file_name.
4849 2002-02-23 Michael Chastain <mec@shout.net>
4851 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4853 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4855 * README: Remove references to cygnus.com.
4856 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4857 dot com'' form. Remove references to cygnus.com and sourceware.
4859 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4861 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4862 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4863 1003.1-2001 no longer allows "head -1".
4864 * gdb/Makefile.in (version.c): Likewise.
4865 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4866 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4867 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4869 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4871 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4872 * command.h (cmd_cfunc_eq): Declare.
4873 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4875 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4876 ``struct cmd_list_element *''.
4877 * cli/cli-cmds.c (is_complete_command): Update. Use
4879 * top.c (execute_command): Pass the command to
4880 is_complete_command.
4881 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4883 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4885 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4886 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4887 architecture defines.
4888 * s390-tdep.c (s390_gdbarch_init): Likewise.
4890 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4892 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4893 (arm_linux_push_arguments): Likewise.
4894 (arm_linux_init_abi): Register them. Also register linux-specific
4896 (find_minsym_and_objfile): Use strcmp, not STREQ.
4897 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4898 (arm_linux_call_dummy_words): Delete declaration.
4899 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4900 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4902 (LOWEST_PC): Delete.
4904 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4906 * maint.c (print_section_info): Do not prepend `0x' to filepos
4907 output, it will be handled by local_hex_string_custom.
4909 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4911 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4912 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4913 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4915 2002-02-22 Jim Blandy <jimb@redhat.com>
4917 Indicate that the bcache functions don't change the strings
4919 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4920 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4922 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4924 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4926 2002-02-21 Christopher Faylor <cgf@redhat.com>
4928 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4929 find the complete path to a loaded DLL.
4931 2002-02-21 Fred Fish <fnf@redhat.com>
4933 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4934 that marks the end of the range of a function, enter a line number
4935 entry that has a line number of zero and a PC offset that matches
4936 the end of the function. This starts a range of PC's for which no
4937 line number information is known.
4938 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4939 PC's for which no line number info is found (line number is zero)
4940 then we didn't find any valid line information.
4941 * symtab.h: Document use of zero line number entry.
4943 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
4945 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4946 (have_ptrace_getvrregs): Define for run time checks.
4947 (gdb_vrregset_t): New type for Altivec register handling.
4948 (fetch_register, store_register): Fetch/store altivec register
4950 (fetch_altivec_register, store_altivec_register): New functions.
4951 (supply_vrregset, fill_vrregset): New functions.
4952 (fetch_altivec_registers, store_altivec_registers): New functions.
4953 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4956 2002-02-21 Jiri Smid <smid@suse.cz>
4958 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4960 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4962 * Makefile.in (armnbsd-nat.o): Update dependencies.
4963 * armnbsd-nat.c (supply_gregset): New function. Common code to
4964 supply the integer register set.
4965 (supply_fparegset): New function. Similar for FPA registers.
4966 (fetch_regs, fetch_fp_regs): Use them.
4967 (fetch_core_registers): Likewise.
4968 (fetch_elfcore_registers): New function.
4969 (arm_netbsd_elfcore_fns): New core-file type specification.
4970 (_initialize_arm_netbsd_nat): Register it.
4972 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4974 * armnbsd-nat.c: Include gdbcore.h.
4975 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4976 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4977 'void' to declaration, to shut up ARI.
4978 (fetch_core_registers): Make static. Rewrite using supply_register.
4979 (arm_netbsd_core_fns): New core-file type specification.
4980 (_initialize_arm_netbsd_nat): New function.
4982 2002-02-21 Christopher Faylor <cgf@redhat.com>
4984 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4987 2002-02-20 Christopher Faylor <cgf@redhat.com>
4989 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4992 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4994 * jv-exp.y (parse_number): Change type of implicit longs
4995 to builtin_type_uint64.
4997 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4999 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5000 to be an integer instead of a `union wait'.
5002 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5004 * mips-linux-nat.c: Call the operating system GNU/Linux.
5005 * mips-linux-tdep.c: Likewise.
5006 * mips-tdep.c: Likewise.
5008 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5011 * jv-exp.y (parse_number): Handle 64-bit integers.
5013 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5015 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5016 AC_STDC_HEADERS to AC_HEADER_STDC.
5017 * gdbserver/configure: Regenerated.
5019 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5021 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5023 * sparc-tdep.c (get_longjmp_target): Likewise.
5025 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5027 * News: Add news about ARM and Multi-arch. Mention the new target
5030 2002-02-19 Jim Blandy <jimb@redhat.com>
5032 * stabsread.c (error_type_complaint): Improve error message.
5034 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
5036 * gdbserver/README: Update documentation.
5037 * gdbserver/configure.in: Update configury to match documentation.
5038 * gdbserver/Makefile.in: Likewise.
5039 * gdbserver/configure: Regenerated.
5040 * gdbserver/aclocal.m4: New file, generated by aclocal.
5041 * gdbserver/config.in: New file, generated by autoheader.
5043 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5045 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5048 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5050 * arm-tdep.h (enum arm_float_model): New enum.
5051 (struct gdbarch_tdep): Add fp_model.
5052 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5053 up floating-point conversions until we know the floating-point model
5054 in use by the inferior. Don't complain about being unable to
5055 determine the ABI of the inferior when we don't have one.
5056 (arm_extract_return_value): Support different floating-point models.
5057 (arm_store_return_value): Likewise.
5058 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5060 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5062 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5064 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5065 of ``current_gdbarch''.
5067 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5069 * armnbsd-nat.c : ANSIfy all function declarations.
5070 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5071 (fetch_inferior_registers): Re-implement in terms of above.
5072 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5073 (store_inferior_registers): Re-implement in terms of above.
5075 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5077 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5079 * arm-linux-tdep.c: Likewise.
5080 * config/arm/tm-linux.h: Likewise.
5082 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5084 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5085 * config/arm/nbsd.mt (TM_FILE): Delete.
5086 * config/arm/tm-nbsd.h: Delete.
5088 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5090 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5091 Initialize CALL_DUMMY_LENGTH.
5093 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5095 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5097 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5098 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5099 defines one thing and that is incorrect for this port.
5100 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5102 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5104 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5106 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5108 * win32-nat.c (display_selector): New function. Displays information
5109 about the information returned by GetThreadSelectorEntry API function.
5110 (display_selectors): New function. Displays the infomation of
5111 the selector given as argument, or of CS, DS ans FS selectors
5112 if no argument is given.
5113 ( _initialize_inftarg): Add "w32" as info prefix command.
5114 Add "info w32 selector" as command calling display_selectors.
5116 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5118 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5119 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5122 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5124 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5126 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5128 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5129 (arm_fix_call_dummy): Call it.
5130 (arm_call_dummy_breakpoint_offset): Delete.
5131 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5132 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5134 2002-02-18 Andrew Cagney <ac131313@redhat.com>
5136 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5137 Default to func_frame_chain_valid.
5138 * gdbarch.h, gdbarch.c: Re-generate.
5139 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5141 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
5143 * ppc-linux-nat.c: Update copyright.
5144 (fetch_register, store_register): Add tid parameter, don't compute
5146 (fetch_ppc_registers, store_ppc_registers): Add tid
5147 parameter. Pass it along to callees.
5148 (fetch_inferior_registers, store_inferior_registers): Compute tid
5149 here, and pass it to calleed functions.
5150 (fill_gregset, supply_fpregset): Clean up formatting.
5152 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5154 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5155 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5157 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5159 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5160 * gdbarch.c gdbarch.h: Regenerate.
5161 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5163 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5164 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5165 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5167 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5168 * arm-tdep.c (arm_get_longjmp_target): New function.
5169 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5170 this to a positive value register arm_get_longjmp_target as the
5172 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5173 (arm_linux_init_abi): Set up longjmp description in tdep.
5174 * armnbsd-nat.c (get_longjmp_target): Delete.
5175 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5176 description in tdep.
5177 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5178 (get_longjmp_target): Delete declaration.
5179 (GET_LONGJMP_TARGET): Delete.
5180 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5181 (GET_LONGJMP_TARGET): Delete.
5183 2002-02-17 Kevin Buettner <kevinb@redhat.com>
5185 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5186 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5187 of ``current_gdbarch''.
5189 2002-02-17 Tom Tromey <tromey@redhat.com>
5191 * cli/cli-cmds.c (compare_strings): New function.
5192 (complete_command): Only print each unique item once.
5193 * completer.h (complete_line): Declare.
5194 * completer.c (complete_line): New function.
5195 (line_completion_function): Use it.
5197 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5199 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5200 * gdbarch.h, gdbarch.c: Re-generate.
5202 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5204 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5206 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5208 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5209 * valops.c (value_arg_coerce): Don't take the address of a reference
5210 to convert an argument to a reference.
5212 2002-02-15 Christopher Faylor <cgf@redhat.com>
5214 * win32-nat.c (get_image_name): New function.
5215 (handle_load_dll): Use get_image_name function.
5216 (get_child_debug_event): Avoid registering debug events until possibly
5217 execed process is started.
5218 (child_create_inferior): Allow invocation via shell so that command
5219 line redirection, etc. works ok.
5220 (_initialize_inftarg): Add new command: "set shell" to control whether
5221 a shell is used to start a process.
5223 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5225 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5226 instead of find_register_by_number.
5227 (cannot_store_register): Likewise.
5229 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
5231 * dwarf2read.c: Replace fprintf (stderr, ...) by
5232 fprintf_unfiltered (gdb_stderr, ...).
5234 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5236 * gdbserver/gdbserver.1: Document --attach.
5238 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5240 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5242 * arm-tdep.c (arm_default_arm_le_breakpoint)
5243 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5244 (arm_default_thumb_be_breakpoint): New. Initialize them from
5245 traditional breakpoint defines.
5246 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5247 (arm_gdbarch_init): Initialize new breakpoint variables.
5248 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5249 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5250 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5251 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5253 (arm_netbsd_init_abi_common): ... here; new function.
5254 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5255 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5256 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5257 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5259 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5261 * arm-tdep.h (enum arm_abi): New enum.
5262 (struct gdbarch_tdep): New structure.
5263 (LOWEST_PC): Provide a default.
5264 (arm_gdbarch_register_os_abi): Declare new function.
5265 * arm-tdep.c (arm_abi_names): New array.
5266 (process_note_abi_tag_sections): New function.
5267 (get_elfosabi): New function.
5268 (arm_gdbarch_register_os_abi): New function.
5269 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5270 support for that ABI has been built in, then call the appropriate
5271 configuration routine. Use gdbarch_num_regs() to get the number
5273 (arm_dump_tdep): New function.
5274 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5275 place-holder functions.
5276 (_initialize_arm_tdep): Register them.
5277 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5279 * armnbsd-tdep.c: New file.
5280 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5281 * config/arm/nbsd.mt (TDEPFILES): Add it.
5282 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5284 * armnbsd-nat.c: Include regcache.h.
5285 * Makefile.in (armnbsd-nat.o): Update dependency list.
5287 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5289 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5291 * gdbserver/Makefile.in: Fix typos in target rules.
5293 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5295 Fix part of PR gdb/267.
5296 * linespec.c (find_methods): Handle constructors specially for now.
5298 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
5300 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5302 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5303 standard_coerce_float_to_double().
5305 2002-02-14 Christopher Faylor <cgf@redhat.com>
5307 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5310 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
5312 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5313 find_variant_by_name, because it confuses the multiarch
5314 framework. Return NULL if there isn't an architecture with the
5315 user supplied name, instead of forcing a different one without
5316 recording the change with the multiarch machinery.
5317 (find_variant_by_name): Delete.
5319 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5321 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5322 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5324 2002-02-13 Martin M. Hunt <hunt@redhat.com>
5326 * stack.c (print_frame_info_base): When calling
5327 print_frame_info_listing_hook, set current_source_symtab.
5329 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5331 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5332 and remove unused $(INCLUDE_DIR).
5333 Add regcache.c to OBS.
5334 Add generated register protocol files to clean target.
5335 Update dependencies for new objects, obsolete old target code.
5337 * gdbserver/linux-low.c: Remove all platform-specific code to
5338 new files. Remove various dead code. Update to use regcache
5340 * gdbserver/remote-utils.c (fromhex): Add return statement
5342 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5344 (input_interrupt): Add integer parameter to match prototype
5345 of a signal handler.
5346 (outreg): Use register_data ().
5347 (prepare_resume_reply): Use gdbserver_expedite_regs.
5348 * gdbserver/server.c (main): Dynamically allocate own_buf because
5349 PBUFSIZ is no longer constant. Use registers_to_string () and
5350 registers_from_string ().
5351 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5352 for error (), fatal (), and warning (). Update definition of
5353 PBUFSIZ to use regcache functionality. Add include guard.
5354 * gdbserver/utils.c (fatal): Add missing ``const''.
5355 (warning): New function.
5357 * regformats/regdat.sh: Include "regcache.h" in generated files.
5358 Provide init_registers () function.
5359 * regformats/regdef.h: Add prototype for set_register_cache ().
5362 * gdbserver/linux-arm-low.c: New file.
5363 * gdbserver/linux-i386-low.c: New file.
5364 * gdbserver/linux-ia64-low.c: New file.
5365 * gdbserver/linux-m68k-low.c: New file.
5366 * gdbserver/linux-mips-low.c: New file.
5367 * gdbserver/linux-ppc-low.c: New file.
5368 * gdbserver/linux-sh-low.c: New file.
5370 * gdbserver/regcache.c: New file.
5371 * gdbserver/regcache.h: New file.
5373 * gdbserver/low-linux.c: Removed obsolete file.
5375 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5377 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5378 * config/i386/linux.mt: Likewise.
5379 * config/ia64/linux.mt: Likewise.
5380 * config/m68k/linux.mh: Likewise.
5381 * config/powerpc/linux.mh: Likewise.
5382 * config/mips/linux.mt: Likewise.
5384 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5386 * config/i386/i386lynx.mh: Mark gdbserver variables
5387 as (currently) obsolete for this target.
5388 * config/i386/nbsd.mt: Likewise.
5389 * config/i386/nbsdelf.mt: Likewise.
5390 * config/m32r/m32r.mt: Likewise.
5391 * config/m68k/m68klynx.mh: Likewise.
5392 * config/m68k/nbsd.mt: Likewise.
5393 * config/m68k/sun3os4.mh: Likewise.
5394 * config/mips/vr5000.mt: Likewise.
5395 * config/ns32k/nbsd.mt: Likewise.
5396 * config/pa/hppabsd.mh: Likewise.
5397 * config/pa/hppaosf.mh: Likewise.
5398 * config/powerpc/nbsd.mt: Likewise.
5399 * config/rs6000/rs6000lynx.mh: Likewise.
5400 * config/s390/s390.mt: Likewise.
5401 * config/s390/s390x.mt: Likewise.
5402 * config/sparc/sparclynx.mh: Likewise.
5403 * config/sparc/sun4os4.mh: Likewise.
5404 * config/i386/x86-64linux.mt: Likewise.
5405 * config/sparc/linux.mh: Likewise.
5407 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5409 * configure.tgt: Configure gdbserver only for known working
5410 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5411 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5412 SUBDIRS if it is configured. Update comment for ${nativefile}.
5413 * configure: Regenerated.
5415 2002-02-13 Michael Snyder <msnyder@redhat.com>
5417 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5419 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5420 (default_gcore_mach): Just return 0, work around a problem in bfd.
5421 (default_gcore_target): OK to return NULL if exec_bfd is null.
5422 (make_mem_sec): Use a cast, avoid a warning.
5424 * procfs.c (find_memory_regions_callback): Use a cast instead of
5425 calling host_pointer_to_address (which complains if
5426 sizeof (host pointer) != sizeof (target pointer)).
5427 (procfs_make_note_section): Avoid overflow in psargs string.
5429 * procfs.c (procfs_make_note_section): Make the default
5430 implementation return an error.
5432 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
5434 * procfs.c (procfs_make_note_section): Provide a default definition
5435 (for alpha-dec-osf4.0f). Fix typos.
5437 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
5439 * linux-proc.c: Add include of regcache.h.
5440 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5442 2002-02-13 Andrew Cagney <ac131313@redhat.com>
5444 From 2002-01-18 Greg McGary <greg@mcgary.org>:
5445 * memattr.c (create_mem_region): Disallow useless empty region.
5446 Regions are half-open intervals, so allow [A..B) [B..C) as
5449 2002-02-13 Michael Chastain <mec@shout.net>
5451 * defs.h: Kill CONST_PTR.
5452 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5453 * c-lang.c (c_builtin_types): Likewise.
5454 * ch-lang.c (ch_builtin_types): Likewise.
5455 * f-lang.c (f_builtin_types): Likewise.
5456 * language.c (unknown_builtin_types): Likewise.
5457 * m2-lang.c (m2_builtin_types): Likewise.
5458 * p-lang.c (pascal_builtin_types): Likewise.
5459 * scm-lang.c (c_builtin_types): Likewise.
5461 2002-02-13 Keith Seitz <keiths@redhat.com>
5463 * arm-tdep.h (arm_get_next_pc): Add declaration.
5465 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
5467 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5468 with other related struct-returning functions.
5469 (arm_extract_struct_value_address): New function.
5470 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5471 initialize float_format, double_format and long_double_format as
5472 appropriate to the endianness of the target.
5473 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5474 (arm_use_struct_convention): Delete declaration.
5475 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5477 2002-02-13 Keith Seitz <keiths@redhat.com>
5479 * defs.h (core_addr_to_string_nz): New function.
5481 2002-02-13 Mark Kettenis <kettenis@gnu.org>
5483 Apply missing bits of 2002-01-15 patch.
5484 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5485 (fill_fpregset): Use i387_fill_fsave.
5487 2002-02-12 Keith Seitz <keiths@redhat.com>
5489 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5490 (core_addr_to_string_nz): New function.
5492 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5494 * arm-linux-nat.c: Really include arm-tdep.h.
5495 * config/arm/tm-linux.h (struct type, struct value): Declare.
5497 2002-02-11 Michael Snyder <msnyder@redhat.com>
5499 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5500 (gcore section): Ifdef for Solaris and Unixware only.
5501 (procfs_do_thread_registers): Unixware needs one lwpstatus
5502 per thread (not one prstatus or pstatus).
5503 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5504 not over all gdb threads. For unixware, call elfcore_write_pstatus
5505 once before iterating over threads.
5507 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5509 * arm-tdep.h: New file.
5510 * arm-tdep.c: Include arm-tdep.h.
5511 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5512 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5513 (arm_print_float_info, arm_register_type, convert_to_extended)
5514 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5515 (arm_extract_return_value, arm_register_name): Make static.
5516 (arm_software_single_step): Similarly. Fix types in declaration.
5517 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5518 (arm_store_return_value, arm_store_struct_return): New functions.
5519 (arm_gdbarch_init): Register the above functions. Also register
5520 call_dummy_start_offset, sizeof_call_dummy_words,
5521 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5522 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5523 max_register_virtual_size, register_size. Set up
5524 prologue_cache.saved_regs here, rather than ...
5525 (_initialize_arm_tdep): ... here.
5526 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5528 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5529 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5530 (arm_print_float_info, arm_register_type, convert_to_extended)
5531 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5532 (arm_extract_return_value, arm_register_name): Delete declarations.
5533 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5534 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5535 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5536 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5537 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5538 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5539 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5540 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5541 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5542 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5543 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5544 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5546 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5547 * remote-rdi.c remote-rdp.c: Likewise.
5548 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5549 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5550 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5553 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5554 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5555 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5556 from non-ARM_ prefixed definitions.
5557 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5559 * remote-rdi.c remote-rdp.c: Likewise.
5560 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5562 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5564 * arm-tdep.c (arm_frameless_function_invocation)
5565 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5566 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5567 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5568 (arm_pop_frame, arm_get_next_pc): Make static.
5569 (arm_gdbarch_init): Register above in gdbarch structure.
5570 (arm_read_fp): Renamed from arm_target_read_fp.
5571 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5572 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5573 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5574 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5575 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5576 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5577 (arm_pc_is_thumb_dummy): Delete declarations.
5578 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5579 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5580 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5581 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5583 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
5585 * symtab.c (compare_search_syms): New function.
5586 (sort_search_symbols): New function.
5587 (search_symbols): Sort symbols after searching rather than
5590 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5592 * NEWS: Linux -> GNU/Linux.
5594 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5596 * gdbarch.sh: For for level one methods, disallow a definition
5597 when partially multi-arched. Add comments explaining rationale.
5598 * gdbarch.h: Re-generate.
5600 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5602 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5605 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5607 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5609 * gdbarch.c: Re-generate.
5611 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5613 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5614 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5617 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5619 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5621 (PUSH_ARGUMENTS): Switch to using predefault.
5622 * gdbarch.c: Regenerate.
5624 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5626 * valops.c (PUSH_ARGUMENTS): Delete definition.
5627 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5628 partial. Default to default_push_arguments.
5629 * gdbarch.h, gdbarch.c: Regenerate.
5631 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5633 * defs.h (throw_exception): Rename return_to_top_level. Update
5635 * utils.c (error_stream, internal_verror, quit): Ditto.
5636 * top.c (throw_exception, catcher): Ditto.
5637 * sparclet-rom.c (sparclet_load): Ditto.
5638 * remote.c (interrupt_query, minitelnet): Ditto.
5639 * remote-sds.c (interrupt_query): Ditto.
5640 * remote-mips.c (mips_error, mips_kill): Ditto.
5641 * ocd.c (interrupt_query): Ditto.
5642 * monitor.c (monitor_interrupt_query): Ditto.
5643 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5644 * target.h: Update comment.
5646 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5648 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5650 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5651 default_double_format.
5652 * gdbarch.h, gdbarch.c: Re-generate.
5653 * findvar.c (floatformat_unknown): Delete variable definition.
5654 * doublest.h (floatformat_unknown): Delete variable declaration.
5656 2002-02-09 Jim Blandy <jimb@redhat.com>
5658 * stabsread.c (read_type): Add code to parse Sun's syntax for
5659 prototyped function types.
5661 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5663 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5664 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5666 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5668 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5669 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5670 now _initialize_xcoffsolib gets called again and overrides the
5671 commands from solib.c in a native configuration.
5673 2002-02-09 Mark Kettenis <kettenis@gnu.org>
5675 * doublest.c (store_typed_floating): Don't try to return a value.
5678 2002-02-08 Jim Blandy <jimb@redhat.com>
5680 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5681 is prototyped and has no arguments, print its argument list as
5684 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5686 * MAINTAINERS (write-after-approval): Add myself.
5687 (paper-trail): I've escaped!
5689 2002-02-08 Christopher Faylor <cgf@redhat.com>
5691 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5693 (_initialize_check_for_gdb_ini): Ditto.
5695 2002-02-08 Martin M. Hunt <hunt@redhat.com>
5697 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5698 xaprintf -> xasprintf.
5700 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5702 * win32-nat.c: Remove use of printf and sprintf functions.
5704 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
5706 * arm-tdep.c (arm_frame_chain_valid): Make static.
5707 (arm_push_arguments): Likewise.
5708 (arm_gdbarch_init): New function.
5709 (_initialize_arm_tdep): Call it.
5710 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5711 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5712 (FRAME_CHAIN_VALID): Delete.
5713 (arm_frame_chain_valid): Delete declaration.
5714 (PUSH_ARGUMENTS): Delete.
5715 (arm_push_arguments): Delete declaration.
5716 (CALL_DUMMY_P): Delete.
5718 2002-02-08 Andrew Cagney <ac131313@redhat.com>
5719 Corinna Vinschen <vinschen@redhat.com>
5721 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5722 on builtin float types.
5724 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5726 * utils.c: Include <curses.h> before "bfd.h".
5727 * tui/tui-hooks.c: Likewise.
5728 * tui/tui.c: Likewise.
5729 * tui/tuiCommand.c: Likewise.
5730 * tui/tuiData.c: Likewise.
5731 * tui/tuiDataWin.c: Likewise.
5732 * tui/tuiDisassem.c: Likewise.
5733 * tui/tuiGeneralWin.c: Likewise.
5734 * tui/tuiIO.c: Likewise.
5735 * tui/tuiLayout.c: Likewise.
5736 * tui/tuiRegs.c: Likewise.
5737 * tui/tuiSource.c: Likewise.
5738 * tui/tuiSourceWin.c: Likewise.
5739 * tui/tuiStack.c: Likewise.
5740 * tui/tuiWin.c: Likewise.
5742 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
5744 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5745 to include space for pseudoregs as well. Update loops accordingly.
5746 (sh_fp_frame_init_saved_regs): Ditto.
5747 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5749 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5751 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5752 Add Richard Earnshaw to Arm maintainers.
5754 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5756 * defs.h (warning_begin): Delete declaration.
5758 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5761 2002-02-07 Michael Snyder <msnyder@redhat.com>
5763 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5764 Logic bug, remove misplaced else.
5766 2002-02-07 Klee Dienes <klee@apple.com>
5768 * fork-inferior.c (fork_inferior): Add '!' to the list of
5769 characters that need to be quoted when building a string for the
5770 shell. Quote '!' specifically with a backslash, since CSH chokes
5771 when trying to evaluate "str!str".
5773 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5775 * rdi-share/host.h: Only provide a typedef for bool if it is not
5778 2002-02-04 Michael Snyder <msnyder@redhat.com>
5780 * breakpoint.h (enum bptype): Add new overlay event bp type.
5781 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5783 * breakpoint.c (create_internal_breakpoint): New function.
5784 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5785 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5786 (create_thread_event_breakpoint): Ditto.
5787 (create_solib_event_breakpoint): Ditto.
5788 (create_overlay_event_breakpoint): New function.
5789 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5790 (update_breakpoints_after_exec): Delete and re-initialize
5791 overlay event breakpoints after an exec. Add FIXME comment
5792 about longjmp breakpoint.
5793 (print_it_typical): Ignore overlay event breakpoints.
5794 (print_one_breakpoint): Ditto.
5796 (bpstat_what): Do not stop for overlay event breakpoints.
5797 (delete_breakpoint): Don't delete overlay event breakpoints.
5798 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5799 (breakpoint_re_set): Re-create overlay event breakpoint.
5801 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5802 (overlay_manual_command): Disable overlay breakpoints.
5803 (overlay_off_command): Disable overlay breakpoints.
5805 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5807 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5808 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5809 to here from config/tm-arm.h.
5810 (coff_sym_is_thumb): Make static.
5811 (arm_elf_make_msymbol_special): New function.
5812 (arm_coff_make_msymbol_special): New function.
5813 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5814 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5815 (coff_sym_is_thumb): Delete declaration.
5816 (arm_elf_make_msymbol_special): Declare.
5817 (arm_coff_make_msymbol_special): Declare.
5818 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5819 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5821 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5823 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5825 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5827 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5828 * gdbarch.c gdbarch.h: Regenerate.
5829 * arch-utils.c (default_print_float_info): New function.
5830 * arch-utils.h (default_print_float_info): Prototype it.
5831 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5832 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5833 (PRINT_FLOAT_INFO): Document it.
5835 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5836 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5837 (PRINT_FLOAT_INFO): Define.
5839 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5841 * win32-nat.c (_initialize_check_for_gdb_ini):
5842 Add typecast to sprintf argument to suppress a warning.
5844 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5846 * win32-nat.c (last_sig): Changed type of variable to target_signal,
5847 to allow easier handling of pass state.
5848 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5849 that gives exception name and address.
5850 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
5851 and set last_sig value to ourstatus->value.sig. Some missing
5853 (child_continue): Correctly report continue_status.
5854 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
5855 TARGET_SIGNAL_0 (new default value).
5856 (child_resume): consider sig argument passed to decide if
5857 the exception should be passed to debuggee or not.
5859 2002-02-05 Michael Snyder <msnyder@redhat.com>
5861 * regcache.c (fetch_register): Call target_fetch_register
5862 only if we don't call FETCH_PSEUDO_REGISTER.
5863 (store_register): Call target_store_register only if we
5864 don't call STORE_PSEUDO_REGISTER.
5866 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
5868 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5869 ELF_MAKE_MSYMBOL_SPECIAL.
5870 * gdbarch.c, gdbarch.h: Regenerate.
5871 * arch-utils.c (default_make_msymbol_special): New function.
5872 * arch-utils.h (default_make_msymbol_special): Export.
5873 * elfread.c (elf_symtab_read): Compile use of
5874 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5876 * coffread.c (coff_symtab_read): Ditto, for
5877 COFF_MAKE_MSYMBOL_SPECIAL.
5879 2002-02-05 Jim Blandy <jimb@redhat.com>
5881 * solib-svr4.c (svr4_truncate_ptr): New function.
5882 (svr4_relocate_section_addresses): Do the address arithmetic with
5883 the appropriate truncation for target addresses, even when
5884 CORE_ADDR is larger than a target address.
5886 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5888 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5891 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5893 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5896 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5898 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5900 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5902 * gdbserver/linux-low.c: Remove unused include files.
5904 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5906 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5907 (read_inferior_memory): Use it.
5908 (write_inferior_memory): Likewise.
5910 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5912 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5913 grubbing through sys_errlist.
5915 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5917 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5919 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5920 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5922 2002-02-04 Andrew Cagney <ac131313@redhat.com>
5924 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5925 (do_sfunc, set_cmd_sfunc): New functions.
5927 * command.h (struct cmd_list_element): Add field func.
5928 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5929 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5930 * cli/cli-decode.h: Ditto.
5932 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5933 (help_all, help_cmd_list): Ditto.
5934 (find_cmd, complete_on_cmdlist): Ditto.
5935 * top.c (execute_command): Ditto.
5937 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5940 * infcmd.c (notice_args_read): Fix function signature.
5942 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5943 * cli/cli-decode.c (add_set_cmd): Ditto.
5944 * utils.c (initialize_utils): Ditto.
5945 * maint.c (_initialize_maint_cmds): Ditto.
5946 * infrun.c (_initialize_infrun): Ditto.
5947 * demangle.c (_initialize_demangler): Ditto.
5948 * remote.c (add_packet_config_cmd): Ditto.
5949 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5950 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5951 * proc-api.c (_initialize_proc_api): Ditto.
5952 * kod.c (_initialize_kod): Ditto.
5953 * valprint.c (_initialize_valprint): Ditto.
5954 * top.c (init_main): Ditto.
5955 * infcmd.c (_initialize_infcmd): Ditto.
5956 * corefile.c (_initialize_core): Ditto.
5957 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5958 * arch-utils.c (initialize_current_architecture): Ditto.
5959 (_initialize_gdbarch_utils): Ditto.
5960 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5962 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5963 * wince.c (_initialize_inftarg): Ditto.
5964 * symfile.c (_initialize_symfile): Ditto.
5965 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5966 * language.c (_initialize_language): Ditto.
5967 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5969 2002-02-04 Michael Snyder <msnyder@redhat.com>
5971 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5973 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5975 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5976 Add rules for building the register data files.
5978 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5980 * regformats/regdat.sh: Add braces to the definition of
5981 expedite_regs_${arch}.
5983 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5985 * regformats/regdef.h (struct reg): Add comment describing the
5986 requirements for offset and size fields.
5988 2002-02-04 Andreas Schwab <schwab@suse.de>
5990 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5991 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5993 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5995 * gdbarch.sh (copyright): Update years in generated header.
5996 (SMASH_TEXT_ADDRESS): Add rule.
5997 * gdbarch.h, gdbarch.c: Re-generate.
5998 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5999 * dbxread.c: Likewise.
6000 * dwarfread.c: Likewise.
6001 * elfread.c: Likewise.
6002 * somread.c: Likewise.
6004 * arm-tdep.c (arm_smash_text_address): New function.
6005 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6007 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6009 Add support for hardware watchpoints on win32 native.
6010 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6011 CONTEXT_DEBUG_REGISTERS.
6012 (dr variable): New variable. Static array containing a local copy
6014 (debug_registers_changed): New variable. Reflects when debug registers
6015 are changed and need to be written to inferior.
6016 (debug_registers_used): New variable. Reflects when any debug register
6017 was set, used when new threads are created.
6018 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6020 (thread_rec): Set dr array if id is the thread of current_event .
6021 (child_continue, child_resume): Change the debug registers for all
6022 threads if debug_registers_changed.
6023 (child_add_thread): Change the debug registers if debug_registers_used.
6024 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6025 Link nm.h to new nm-cygwin.h file.
6026 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6027 of hardware registers.
6029 2002-02-03 Andrew Cagney <ac131313@redhat.com>
6031 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6032 Restore behavour broken by 2002-01-20 Andrew Cagney
6033 <ac131313@redhat.com> IEEE_FLOAT removal.
6035 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6037 * c-valprint.c (c_val_print): Pass a proper valaddr to
6038 cp_print_class_method.
6039 * valops.c (search_struct_method): If there is only one method
6040 and args is NULL, return that method.
6042 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6044 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6045 accessing tag_name directly.
6047 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6049 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6050 of accessing tag_name directly.
6052 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6055 * gdbtypes.c (replace_type): New function.
6056 * gdbtypes.h (replace_type): Add prototype.
6057 * stabsread.c (read_type): Use replace_type.
6059 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
6061 * Makefile.in (memattr.o): Add missing dependencies rule.
6063 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6065 * breakpoint.c (break_at_finish_command): Really export.
6066 (break_at_finish_at_depth_command): Ditto.
6067 (tbreak_at_finish_command): Ditto.
6068 * hppa-tdep.c: Include completer.h.
6069 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6070 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6072 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6074 * utils.c (do_write): New function.
6075 (error_stream): Rewrite combining the code from error_begin and
6077 (verror): Rewrite using error_stream.
6078 (error_begin): Delete function.
6080 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6082 * utils.c (error_begin): Make static.
6083 * defs.h (error_begin): Delete declaration.
6085 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6086 (decode_line_1): Use cplusplus_error instead of error_begin,
6087 cplusplus_hint and return_to_top_level.
6088 * coffread.c (coff_symfile_read): Use error instead of error_begin
6089 and return_to_top_level.
6090 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6092 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6094 * language.h (type_error, range_error): Make string parameter
6096 * language.c (warning_pre_print): Delete extern declaration.
6097 * dwarfread.c (warning_pre_print): Ditto.
6098 * language.c (type_error, range_error): Rewrite to use verror and
6099 vwarning instead of warning_begin.
6101 2002-02-01 Michael Snyder <msnyder@redhat.com>
6103 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6104 (set_ignore_count): Move misplaced comment back where it belongs.
6106 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6108 * command.h (NO_FUNCTION): Delete macro.
6109 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6110 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6111 * tracepoint.c (_initialize_tracepoint): Ditto.
6112 * cli/cli-decode.c (add_set_cmd): Ditto.
6113 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6115 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6117 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6118 Update ``this'' pointer when calling virtual functions.
6120 2002-02-01 Michael Snyder <msnyder@redhat.com>
6122 * breakpoint.c (create_temp_exception_breakpoint): Delete.
6123 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6125 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6127 * regformats/reg-arm.dat: New file.
6128 * regformats/reg-i386.dat: New file.
6129 * regformats/reg-ia64.dat: New file.
6130 * regformats/reg-m68k.dat: New file.
6131 * regformats/reg-mips.dat: New file.
6132 * regformats/reg-ppc.dat: New file.
6133 * regformats/reg-sh.dat: New file.
6134 * regformats/regdef.h: New file.
6135 * regformats/regdat.sh: New file.
6137 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
6139 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6140 (arm_frame_args_address, arm_frame_locals_address): New functions.
6141 (arm_frame_num_args): New function.
6142 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6143 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6144 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6146 2002-01-31 Michael Snyder <msnyder@redhat.com>
6148 * breakpoint.c (break_at_finish_command): Export.
6149 (break_at_finish_at_depth_command): Export.
6150 (tbreak_at_finish_command): Export.
6151 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6152 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6153 "tbreak" commands, which are HPPA specific.
6155 * printcmd.c (disassemble_command): Remove an ancient
6156 artifact of an old merge.
6158 * symfile.h (enum overlay_debugging_state):
6159 Define enum constant values for overlay mode.
6160 * symfile.c (overlay_debugging): Use enums instead of literals.
6161 (overlay_is_mapped, overlay_auto_command,
6162 overlay_manual_command): Ditto.
6164 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6165 breakpoint_here_p, breakpoint_inserted_here_p,
6166 breakpoint_thread_match, bpstat_stop_status,
6167 describe_other_breakpoints, check_duplicates, clear_command):
6168 Coding standard fixes.
6170 * target.c (target_xfer_memory): Add spaces, coding standard.
6171 (do_xfer_memory): Add missing line to trust-readonly
6172 code: check bfd SEC_READONLY flag for section.
6174 2002-01-31 Andrew Cagney <ac131313@redhat.com>
6176 * PROBLEMS: Fix typo, 5.1->5.1.1.
6178 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
6180 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6181 data symbols, since we search based on textlow and texthigh.
6182 (find_pc_sect_symtab): Likewise.
6184 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6186 * defs.h (vwarning): Declare.
6187 * utils.c (vwarning): New function.
6188 (warning): Call vwarning.
6189 (warning_begin): Delete function.
6191 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6192 the warning message.
6193 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6196 2002-01-30 Michael Snyder <msnyder@redhat.com>
6198 * NEWS: Mention "set trust-readonly-sections" command.
6199 Mention generate-core-file command.
6201 2002-01-15 Michael Snyder <msnyder@redhat.com>
6203 * target.c: New command, "set trust-readonly-sections on".
6204 (do_xfer_memory): Honor the suggestion to trust readonly sections
6205 by reading them from the object file instead of from the target.
6206 (initialize_targets): Register command "set trust-readonly-sections".
6208 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6210 * parse.c (target_map_name_to_register): Simplify, search regs and
6211 pseudo-regs using a single loop.
6213 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6215 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6217 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
6219 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6220 * config/i386/i386v42mp.mh: Add i387-nat.o .
6221 * i386v4-nat.c: Include i387-nat.h.
6222 (supply_fpregset): Use i387_supply_fsave.
6223 (fill_fpregset): Use i387_fill_fsave.
6225 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
6227 * arm-tdep.c (arm_call_dummy_words): Define.
6228 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6229 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6230 (CALL_DUMMY_WORDS): Define.
6231 (arm_call_dummy_words): Declare.
6232 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6233 (arm_linux_call_dummy_words): Declare.
6235 2002-01-30 Andreas Schwab <schwab@suse.de>
6237 * m68klinux-nat.c: Fix last change to use regcache_collect
6238 instead of referencing registers[] directly.
6240 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6242 * parse.c (target_map_name_to_register): Delete code wrapped in
6243 #ifdef REGISTER_NAME_ALIAS_HOOK.
6245 2002-01-28 Michael Snyder <msnyder@redhat.com>
6247 * regcache.c (legacy_read_register_gen): Need to be able to
6248 read pseudo-register as well as real register.
6249 (legacy_write_register_gen): Ditto.
6251 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6253 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6254 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6255 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6256 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6257 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6258 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6259 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6260 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6261 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6262 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6263 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6264 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6265 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6266 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6267 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6268 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6269 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6270 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6271 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6272 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6274 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6276 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6277 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6278 (initialize_current_architecture): Update target_byte_order using
6279 information from BFD.
6280 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6281 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6283 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6285 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6286 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6288 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6289 #ifdef INVALID_FLOAT.
6290 * infcmd.c (do_registers_info): Ditto.
6291 * values.c (unpack_double): Ditto. Add comment.
6293 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6294 already commented out.
6296 2002-01-26 Andreas Schwab <schwab@suse.de>
6298 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6299 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6300 registers and add support for PTRACE_GETREGS.
6302 2002-01-24 Andrew Cagney <ac131313@redhat.com>
6304 GDB 5.1.1 released from 5.1 branch.
6305 * NEWS: Add 5.1.1 news.
6306 * README: Sync with 5.1 branch.
6308 2002-01-23 Fred Fish <fnf@redhat.com>
6310 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6311 stabstring on initial malloc. Reallocing will copy it for us,
6314 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6316 * Makefile.in (hpread_h): Delete.
6317 (HFILES_NO_SRCDIR): Remove hpread.h.
6318 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6319 (hpread.o): Update dependencies.
6320 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6322 * hp-psymtab-read.c: Remove file.
6323 * hp-symtab-read.c: Remove file.
6324 * hpread.h: Remove file.
6326 * hpread.c: Merge all contents of hp-psymtab-read.c,
6327 hp-symtab-read.c and hpread.h into this file, as it was prior to
6330 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6331 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6332 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6333 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6335 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6337 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6338 fill_gregset): Call gdbarch_tdep() just once, assign result to
6339 variable and use that, instead of calling the function several
6342 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6344 * configure.host: Accept sparcv9 as alias for sparc64.
6345 * configure.tgt: Likewise.
6347 2002-01-22 Kevin Buettner <kevinb@redhat.com>
6349 * solib-aix5.c (build_so_list_from_mapfile)
6350 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6351 arguments is not reversed.
6352 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6353 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6355 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
6357 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6358 modified version of obsolete sh_fetch_pseudo_register.
6359 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6360 (sh4_register_read): New function.
6361 (sh_pseudo_register_write): New function. Renamed and modified
6362 version of obsolete sh_store_pseudo_register.
6363 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6364 (sh4_register_write): New function.
6365 (sh_gdbarch_init): Remove setting of gdbarch function
6366 fetch_pseudo_register and store_pseudo_register. Remove setting of
6367 register_convert_to_raw, register_convert_to_virtual,
6368 register_convertible.
6369 (sh_sh4_register_convertible): Delete. No longer needed. All is
6370 taken care by architecture specific functions
6371 register_read/register_write.
6372 (sh_sh4_register_convert_to_virtual): Make static.
6373 (sh_sh4_register_convert_to_raw): Ditto.
6375 2002-01-22 Andrew Cagney <ac131313@redhat.com>
6377 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6378 (floatformat_is_nan, floatformat_mantissa): Ditto.
6380 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6381 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6382 builtin_type_ieee_double_little,
6383 builtin_type_ieee_double_littlebyte_bigword,
6384 builtin_type_m68881_ext, builtin_type_i960_ext,
6385 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6386 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6387 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6388 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6390 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
6392 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6393 parameter. Set frameless flag if it exists and depended of
6394 whether the scanned function is frameless or not.
6395 (xstormy16_skip_prologue): If function is frameless, return
6396 result of xstormy16_scan_prologue().
6397 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6400 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
6402 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6403 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6404 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6405 sh_sh4_register_byte, sh_sh4_register_raw_size,
6406 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6407 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6408 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6409 sh_store_pseudo_register, sh_do_pseudo_register): Call
6410 gdbarch_tdep() just once, assign result to variable and use that,
6411 instead of calling the function several times.
6413 2002-01-20 Mark Kettenis <kettenis@gnu.org>
6415 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6416 macros instead of LAST_FPU_CTRL_REGNUM.
6417 (store_register): Likewise.
6419 2002-01-21 Jim Blandy <jimb@redhat.com>
6421 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6422 is up-to-date before running the program, not just when a program
6425 2002-01-21 Fred Fish <fnf@redhat.com>
6427 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6428 when we have found all instructions we are looking for.
6430 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6432 * arm-tdep.c (arm_register_name): New function.
6433 (arm_registers_names): Make static.
6434 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6435 (arm_register_name): Declare.
6436 (REGISTER_NAME): Use it.
6438 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6439 Kevin Buettner <kevinb@redhat.com>
6441 Convert arm targets to new FRAME interface.
6442 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6443 (arm_frame_find_save_regs): Delete.
6444 (arm_frame_init_saved_regs): New.
6445 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6446 Allocate extra_info as required. Convert all uses of fsr.regs
6447 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6449 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6450 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6451 (check_prologue_cache, save_prologue_cache): Likewise.
6452 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6453 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6454 (FRAME_FIND_SAVED_REGS): Delete.
6455 (arm_frame_find_saved_regs): Delete prototype.
6456 (arm_frame_init_saved_regs): New prototype.
6457 (FRAME_INIT_SAVED_REGS): Define.
6459 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6461 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6463 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6465 From Jeff Law <law@redhat.com>:
6466 * infttrace.c: Include <sys/pstat.h>.
6467 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6468 exec file if the ttrace equivalent fails.
6470 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6472 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6473 (closeLogFile): Ditto.
6475 2002-01-20 Michael Chastain <mec@shout.net>
6477 * top.c (print_gdb_version): Bump copyright year to 2002.
6479 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6481 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6482 Zannoni and Eli Zaretskii.
6484 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6486 * buildsym.c: Update copyright years.
6487 * c-typeprint.c: Likewise.
6488 * dwarf2read.c: Likewise.
6489 * f-typeprint.c: Likewise.
6490 * gdbtypes.c: Likewise.
6491 * gdbtypes.h: Likewise.
6492 * hp-symtab-read.c: Likewise.
6493 * hpread.c: Likewise.
6494 * mdebugread.c: Likewise.
6495 * p-typeprint.c: Likewise.
6497 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6499 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6500 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6501 byte-order selectable.
6502 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6503 * arch-utils.c: Ditto.
6504 (set_endian): Ditto.
6505 (set_endian_from_file): Ditto.
6506 * gdbserver/low-sim.c (create_inferior): Ditto.
6507 * gdbarch.sh: Ditto.
6508 * gdbarch.h: Re-generate.
6509 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6510 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6511 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6512 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6513 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6514 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6515 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6516 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6518 * config/mips/tm-wince.h: Remove #undef of macro
6519 TARGET_BYTE_ORDER_SELECTABLE.
6520 * config/sh/tm-wince.h: Ditto.
6522 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6524 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6525 member function fields. Add accessor macro
6526 TYPE_FN_FIELD_ARTIFICIAL.
6527 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6528 * c-typeprint.c (c_type_print_base): Skip artificial member
6531 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6533 * f-typeprint.c: Delete unused function f_type_print_args.
6534 * p-typeprint.c: Delete unused function pascal_type_print_args.
6536 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6538 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6539 comment. Add ``artificial'' to ``union field_location''.
6541 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6543 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6544 * mdebugread.c (parse_symbol): Likewise.
6545 * stabsread.c (define_symbol): Likewise.
6546 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6547 initializing TYPE_FIELD_BITPOS to n (obsolete).
6548 (hpread_doc_function_type): Likewise.
6549 * hpread.c (hpread_function_type): Likewise.
6551 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6553 * configure.in (host_makefile_frag): Only require a host makefile
6554 fragment when a native build.
6555 * configure: Re-generate.
6557 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6559 * doublest.h (floatformat_from_type): Declare.
6560 * doublest.c (floatformat_from_type): New function.
6561 (convert_typed_floating): Use.
6563 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6564 call to function floatformat_from_type.
6566 * gdbarch.sh (IEEE_FLOAT): Delete.
6567 * gdbarch.h, gdbarch.c: Re-generate.
6568 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6569 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6570 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6571 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6572 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6573 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6574 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6575 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6576 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6577 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6578 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6579 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6581 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6582 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6583 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6584 * sh-tdep.c (sh_gdbarch_init): Ditto.
6585 * mips-tdep.c (mips_gdbarch_init): Ditto.
6586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6587 * cris-tdep.c (cris_gdbarch_init): Ditto.
6589 2002-01-20 Jiri Smid <smid@suse.cz>
6591 * configure.host, configure.tgt: Support x86-64.
6592 * NEWS: Note new target x86-64.
6594 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6595 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6596 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6597 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6598 x86-64-linux-nat.o): Fix dependencies.
6600 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6602 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6603 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6604 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6605 * config/sparc/xm-sun4os4.h: Delete file.
6606 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6608 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6610 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6611 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6612 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6613 * config/i386/i386lynx.mh (XM_FILE): Delete.
6614 * config/rs6000/xm-rs6000ly.h: Delete file.
6615 * config/sparc/xm-sparclynx.h: Delete file.
6616 * config/m68k/xm-m68klynx.h: Delete file.
6617 * config/i386/xm-i386lynx.h: Delete file.
6618 * config/xm-lynx.h: Delete file.
6619 * config/djgpp/fnchange.lst: Update.
6621 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6623 * alpha-tdep.c (alpha_register_byte): New function.
6624 (alpha_register_raw_size): Ditto.
6625 (alpha_register_virtual_size): Ditto.
6626 (alpha_skip_prologue_internal): Renamed from
6627 alpha_skip_prologue.
6628 (alpha_skip_prologue): New version that calls
6629 alpha_skip_prologue_internal.
6630 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6631 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6632 second argument from alpha_skip_prologue.
6633 (REGISTER_BYTE): Use alpha_register_byte.
6634 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6635 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6636 (FRAMELESS_FUNCTION_INVOCATION): Use
6637 generic_frameless_function_invocation_not.
6638 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6639 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6641 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6643 * config/mips/xm-news-mips.h: Delete file.
6644 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6646 * config/m88k/xm-m88k.h: Delete file.
6647 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6648 * config/m88k/xm-delta88v4.h: Ditto.
6649 * config/m88k/xm-delta88.h: Ditto.
6651 * config/alpha/xm-fbsd.h: Delete file.
6652 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6654 * config/sparc/xm-sparc.h: Delete file.
6655 * Makefile.in (xm-sun4os4.h): Delete dependency.
6656 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6657 * config/sparc/xm-sun4os4.h: Ditto.
6658 * config/sparc/xm-linux.h: Ditto.
6660 * config/i386/xm-windows.h: Delete file.
6662 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6664 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6665 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6667 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6669 * alpha-tdep.c (alpha_call_dummy_words): New.
6670 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6671 (CALL_DUMMY_P): Define.
6672 (CALL_DUMMY_WORDS): Define.
6673 (SIZEOF_CALL_DUMMY_WORDS): Define.
6675 2002-01-19 Per Bothner <per@bothner.com>
6677 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6678 isn't NULL, which can happen with some gcj-3.x-produced code.
6680 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6682 * alpha-tdep.c (alpha_register_virtual_type): New function.
6683 (alpha_init_frame_pc_first): Ditto.
6684 (alpha_fix_call_dummy): Ditto.
6685 (alpha_store_struct_return): Ditto.
6686 (alpha_extract_struct_value_address): Ditto.
6687 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6688 alpha_register_virtual_type.
6689 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6690 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6691 alpha_extract_struct_value_address.
6692 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6693 (INIT_FRAME_PC): Use init_frame_pc_noop.
6694 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6696 2002-01-19 Mark Kettenis <kettenis@gnu.org>
6698 * i386gnu-nat.c: Include "i386-tdep.h".
6699 (fetch_fpregs): Simplify code dealing with uninitialized floating
6700 point states such that it doesn't require FP7_REGNUM.
6702 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6704 * alpha-tdep.c (frame_extra_info): New.
6705 (alpha_find_saved_regs): Make static. Use
6707 (alpha_frame_init_saved_regs): New function.
6708 (alpha_frame_saved_pc): Use frame->extra_info.
6709 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6710 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6711 (init_extra_frame_info): Rename to...
6712 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
6713 (alpha_print_extra_frame_info): New function.
6714 (alpha_frame_locals_address): Ditto.
6715 (alpha_frame_args_address): Ditto.
6716 (alpha_pop_frame): Use frame->extra_info.
6717 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6718 alpha_frame_args_address.
6719 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6720 (alpha_find_saved_regs): Remove prototype.
6721 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6722 (EXTRA_FRAME_INFO): Remove.
6723 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6724 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6726 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6728 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6729 (alpha_cannot_fetch_register): Ditto.
6730 (alpha_cannot_store_register): Ditto.
6731 (alpha_register_convertible): Ditto.
6732 (alpha_use_struct_convention): Ditto.
6733 * config/alpha/tm-alpha.h: Update copyright years.
6734 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6735 (INNER_THAN): Use core_addr_lessthan.
6736 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6737 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6738 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6739 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6740 (FRAME_CHAIN): Remove unnecessary cast.
6742 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6744 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6747 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6749 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6750 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6751 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6752 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6753 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6754 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6755 * x86-64-linux-nat.c: Ditto.
6757 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6759 * alpha-tdep.c (alpha_register_name): New function.
6760 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6761 (REGISTER_NAME): Define.
6763 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6765 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6767 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6769 * alpha-tdep.c: Update copyright years.
6770 (alpha_next_pc): New function.
6771 (alpha_software_single_step): Ditto.
6772 * config/alpha/tm-alpha.h: Add prototype for
6773 alpha_software_single_step.
6775 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6777 * alphabsd-nat.c: Update copyright years.
6778 (fill_gregset): Use regcache_collect.
6779 (fill_fpregset): Likewise.
6780 (fetch_inferior_registers): Only fetch integer registers
6781 if requested to do so.
6782 (store_inferior_registers): Only store integer registers
6783 if requested to do so.
6785 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6787 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6788 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6789 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6790 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6791 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6792 * config/arm/linux.mh (XDEPFILES): Delete.
6793 * config/arm/nbsd.mh (XDEPFILES): Delete.
6794 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6795 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6796 * config/i386/i386m3.mh (XDEPFILES): Delete.
6797 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6798 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6799 * config/i386/fbsd.mh (XDEPFILES): Delete.
6800 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6801 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6802 * config/i386/i386v4.mh (XDEPFILES): Delete.
6803 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6804 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6805 * config/i386/i386aix.mh (XDEPFILES): Delete.
6806 * config/i386/go32.mh (XDEPFILES): Delete.
6807 * config/i386/cygwin.mh (XDEPFILES): Delete.
6808 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6809 * config/i386/i386mach.mh (XDEPFILES): Delete.
6810 * config/i386/i386v32.mh (XDEPFILES): Delete.
6811 * config/i386/linux.mh (XDEPFILES): Delete.
6812 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6813 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6814 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6815 * config/i386/i386sco.mh (XDEPFILES): Delete.
6816 * config/i386/i386v.mh (XDEPFILES): Delete.
6817 * config/i386/nbsd.mh (XDEPFILES): Delete.
6818 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6819 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6820 * config/i386/symmetry.mh (XDEPFILES): Delete.
6821 * config/i386/obsd.mh (XDEPFILES): Delete.
6822 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6823 * config/ia64/linux.mh (XDEPFILES): Delete.
6824 * config/ia64/aix.mh (XDEPFILES): Delete.
6825 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6826 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6827 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6828 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6829 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6830 * config/m68k/linux.mh (XDEPFILES): Delete.
6831 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6832 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6833 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6834 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6835 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6836 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6837 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6838 * config/m88k/delta88.mh (XDEPFILES): Delete.
6839 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6840 * config/m88k/m88k.mh (XDEPFILES): Delete.
6841 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6842 * config/mips/linux.mh (XDEPFILES): Delete.
6843 * config/mips/irix6.mh (XDEPFILES): Delete.
6844 * config/mips/irix5.mh (XDEPFILES): Delete.
6845 * config/mips/irix4.mh (XDEPFILES): Delete.
6846 * config/mips/irix3.mh (XDEPFILES): Delete.
6847 * config/mips/decstation.mh (XDEPFILES): Delete.
6848 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6849 (NATDEPFILES): Move core-aout.o to here.
6850 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6851 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6852 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6853 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6854 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6855 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6856 * config/pa/hpux11.mh (XDEPFILES): Delete.
6857 * config/powerpc/aix.mh (XDEPFILES): Delete.
6858 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6859 * config/powerpc/linux.mh (XDEPFILES): Delete.
6860 * config/romp/rtbsd.mh: Rename XDEPFILES.
6861 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6862 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6863 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6864 * config/s390/s390.mh (XDEPFILES): Delete.
6865 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6866 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6867 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6868 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6869 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6870 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6871 * config/sparc/linux.mh (XDEPFILES): Delete.
6872 * config/vax/vaxult.mh (XDEPFILES): Delete.
6873 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6874 * Makefile.in (DEPFILES): Remove XDEPFILES.
6876 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6878 * utils.c (internal_verror): Fix comments, default is yes not no.
6879 Update queries to match. Default to quit and dump core.
6881 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6883 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6885 * defs.h, event-top.c, gdbcmd.h: Ditto.
6886 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6887 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6888 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6889 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6890 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6891 * mi/mi-main.c:Ditto.
6893 * stack.c, symfile.c: Update copyright.
6895 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6897 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6898 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6899 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6900 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
6902 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6904 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6905 * gdbserver/low-lynx.c (myattach): Likewise.
6906 * gdbserver/low-nbsd.c (myattach): Likewise.
6907 * gdbserver/low-sim.c (myattach): Likewise.
6908 * gdbserver/low-sparc.c (myattach): Likewise.
6909 * gdbserver/low-sun3.c (myattach): Likewise.
6911 * gdbserver/low-linux.c (myattach): New function.
6913 * gdbserver/server.c (attach_inferior): New function.
6914 (main): Handle "--attach".
6916 2002-01-16 Andrew Cagney <ac131313@redhat.com>
6918 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6921 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
6923 * c-typeprint.c (is_type_conversion_operator): Add additional
6924 check for non-conversion operators.
6926 2002-01-15 Michael Snyder <msnyder@redhat.com>
6928 * linux-proc.c: Add "info proc" command, a la procfs.c.
6929 (read_mapping): New function, abstract and re-use code.
6930 (linux_find_memory_regions): Use new func read_mapping.
6931 (linux_info_proc_cmd): New function, implement "info proc".
6932 (_initialize_linux_proc): Add new command "info proc".
6934 2002-01-15 Michael Snyder <msnyder@redhat.com>
6936 * symfile.c (generic_load): Use bfd_map_over_sections method
6937 instead of manipulating bfd structure members directly.
6938 (add_section_size_callback): New function, bfd sections callback
6939 used by generic_load.
6940 (load_sections_callback): New function, bfd sections callback
6941 used by generic_load.
6943 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
6945 [Based on work by Jim Blandy]
6946 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6947 (builtin_type_vec128): Export.
6948 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6950 (builtin_type_vec128): New builtin type for 128 bit vector
6952 (build_gdbtypes): Initialize builtin_type_v16qi and
6953 builtin_type_v8hi. Create the vec128 register builtin type
6955 (build_builtin_type_vec128): New function.
6956 (_initialize_gdbtypes): Register builtin_type_v16qi and
6957 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6958 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6959 AltiVec register to new builtin type.
6961 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
6963 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6966 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6968 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6969 CLEAN_UP_REGISTER_VALUE.
6970 * regcache.c (supply_register): Update only call.
6972 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6974 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6975 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6976 a29k-*-vxworks* targets as obsolete.
6978 2002-01-14 Michael Snyder <msnyder@redhat.com>
6980 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6981 until we can resolve portability issues.
6982 * gregset.h: Remove references to fpxregs.
6983 * gcore.c (gcore_command): Initialize note_sec to NULL.
6985 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6987 * signals.c (target_signal_to_name): Rewrite. Only use
6988 signals[].name when in bounds and non-NULL.
6990 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6992 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6993 * signals.c (target_signal_to_name): Verify that SIG is within the
6994 bounds of the signals array.
6996 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6998 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7000 2002-01-13 Keith Seitz <keiths@redhat.com>
7002 * stack.c (print_frame_info_base): Print the frame's pc
7003 only if when print_frame_info_listing_hook is not defined.
7005 2002-01-13 Keith Seitz <keiths@redhat.com>
7007 * varobj.c (varobj_set_value): Make sure that there were no
7008 errors evaluating the object before attempting to set its
7010 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7011 so this offset adjustment is no longer necessary.
7012 (create_child): Don't set the error flag if the child is
7014 (value_of_child): If value_fetch_lazy fails, return NULL
7015 so that callers will be notified that an error occurred.
7016 (c_value_of_variable): Delay check of variable's validity
7017 until later. We actually want all structs and unions to have
7019 Do not return "???" for variables which could not be evaluated.
7020 This error condition must be returned to the caller so that it
7021 can get the error condition from gdb.
7022 (cplus_name_of_child): Adjust index for vptr before figuring
7023 out the name of the child.
7024 (cplus_value_of_child): If a child's (real) parent is not valid,
7025 don't even bother trying to give a value for it. Just return
7026 an error. Change all instances in this function.
7027 (cplus_type_of_child): If our parent is one of the "fake"
7028 parents, we need to get at the type of the real parent, and
7029 derive the child's true type using this information.
7031 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7033 From 2002-01-09 John Marshall <johnm@falch.net>:
7034 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7035 sources.redhat.com, and tweak some related URLs which had
7036 suffered from linkrot.
7038 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7041 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7042 structures passed in registers.
7044 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7046 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7047 white space which prevented compilation. Reported by DSK
7048 <dsk@student.unsw.edu.au>.
7050 2002-01-11 Michael Snyder <msnyder@redhat.com>
7052 * symfile.c (build_section_addr_info_from_section_tab):
7053 Use bfd access method instead of manipulating bfd directly.
7054 (syms_from_objfile): Ditto.
7055 (simple_overlay_update_1): Ditto.
7056 (simple_overlay_update): Ditto.
7057 (generic_load): Ditto.
7058 (overlay_unmapped_address): FIXME comment, bfd access methods.
7059 (sections_overlap): FIXME comment, bfd access methods.
7060 (pc_in_mapped_range): FIXME comment, bfd access methods.
7061 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7062 (section_is_mapped): FIXME comment, bfd access methods.
7063 (section_is_overlay): FIXME comment, bfd access methods.
7065 * symfile.c (generic_load): Whitespace and long line cleanups.
7066 Remove duplicate variable, change several local variables to
7067 more appropriate data types.
7068 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7070 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7073 * language.c (longest_local_hex_string_custom): Use phex_nz to
7074 convert NUM to a hex string.
7076 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
7078 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7080 Update Copyright year.
7082 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7084 * language.c (longest_raw_hex_string): Delete unused function.
7086 2002-01-11 Petr Sorfa <petrs@caldera.com>
7088 * MAINTAINERS (write-after-approval): Add myself.
7089 * dwarf2read.c (read_tag_string_type): Handling of
7091 (read_tag_string_type): FORTRAN fix to prevent propagation of
7093 (set_cu_language): Handling of DW_LANG_Fortran95
7095 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
7097 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7098 GETPID(inferior_ptid).
7099 (store_inferior_registers): Likewise.
7101 2002-01-10 Jason Merrill <jason@redhat.com>
7103 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7106 2002-01-10 Andrew Cagney <ac131313@redhat.com>
7108 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7109 and bfd/elf32-sh-nbsd.c.
7111 2002-01-10 Michael Snyder <msnyder@redhat.com>
7113 * NEWS: Mention --pid and corefile/proc-id behavior change.
7115 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7116 * gcore.c: Include cli/cli-decode.h instead of command.h.
7118 * main.c (captured_main): Add new command line option "--pid".
7119 If the second command line argument (following the symbol-file)
7120 begins with a digit, try to attach to it before trying to open
7122 (print_gdb_help): Document the "--pid" argument.
7124 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7126 * completer.c (command_completer): New function.
7128 * completer.h <command_completer>: Add prototype.
7130 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7131 completer for the "help" command.
7133 2002-01-09 Jason Merrill <jason@redhat.com>
7135 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7137 2002-01-09 Michael Snyder <msnyder@redhat.com>
7139 * i386-linux-nat.c (fill_fpxregset): Make global.
7140 (store_fpxregset): Ditto.
7142 * gregset.h (gdb_fpxregset_t): Define.
7143 (supply_fpxregset): Prototype.
7144 (fill_fpxregset): Prototype.
7146 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7148 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7150 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7151 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7152 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7154 2002-01-09 Andrew Cagney <ac131313@redhat.com>
7156 * MAINTAINERS: Update target maintainer rules so that any
7157 Maintainer can approve a tested patch for a maintenance-only
7160 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7162 * MAINTAINERS (write-after-approval): Add myself.
7164 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7167 2002-01-08 Michael Snyder <msnyder@redhat.com>
7169 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7170 real name of the executable, rather than the /proc name.
7172 2002-01-03 Michael Snyder <msnyder@redhat.com>
7174 Implement a "generate-core-file" command in gdb, save target state.
7175 * gcore.c: New file. Implement new command 'generate-core-file'.
7176 Save a corefile image of the current state of the inferior.
7177 * linux-proc.c: Add linux-specific code for saving corefiles.
7178 * target.h (struct target_ops): Add new target vectors for saving
7179 corefiles; to_find_memory_regions and to_make_corefile_notes.
7180 (target_find_memory_regions): New macro.
7181 (target_make_corefile_notes): New macro.
7182 * target.c (update_current_target): Inherit new target methods.
7183 (dummy_find_memory_regions): New place-holder method.
7184 (dummy_make_corefile_notes): New place-holder method.
7185 (init_dummy_target): Initialize new dummy target vectors.
7186 * exec.c (exec_set_find_memory_regions): New function.
7187 Allow the exec_ops vector for memory regions to be taken over.
7188 (exec_make_note_section): New function, target vector method.
7189 * defs.h (exec_set_find_memory_regions): Export prototype.
7190 * procfs.c (proc_find_memory_regions): New function, corefile method.
7191 (procfs_make_note_section): New function, corefile method.
7192 (init_procfs_ops): Set new target vector pointers.
7193 (find_memory_regions_callback): New function.
7194 (procfs_do_thread_registers): New function.
7195 (procfs_corefile_thread_callback): New function.
7196 * sol-thread.c (sol_find_memory_regions): New function.
7197 (sol_make_note_section): New function.
7198 (init_sol_thread_ops): Initialize new target vectors.
7199 * inftarg.c (inftarg_set_find_memory_regions): New function.
7200 Allow to_find_memory_regions vector to be taken over.
7201 (inftarg_set_make_corefile_notes): New function.
7202 Allow to_make_corefile_notes vector to be taken over.
7203 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7204 interface layer if not target_has_execution (may be a corefile).
7205 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7206 * config/sparc/sun4sol2.mh: Ditto.
7207 * config/alpha/alpha-linux.mh: Ditto.
7208 * config/arm/linux.mh: Ditto.
7209 * config/i386/x86-64linux.mh: Ditto.
7210 * config/ia64/linux.mh: Ditto.
7211 * config/m68k/linux.mh: Ditto.
7212 * config/mips/linux.mh: Ditto.
7213 * config/powerpc/linux.mh: Ditto.
7214 * config/sparc/linux.mh: Ditto.
7216 2002-01-07 Michael Snyder <msnyder@redhat.com>
7218 * arm-linux-nat.c: Remove references to regcache.c internal data
7219 (registers[] and register_valid[]).
7221 2002-01-07 Michael Snyder <msnyder@redhat.com>
7223 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7224 so that attaching to a pid will automatically read the process's
7225 symbol file and shlibs.
7226 * Makefile.in: Add rule for linux-proc.o.
7227 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7228 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7229 * config/arm/linux.mh: Ditto.
7230 * config/i386/linux.mh: Ditto.
7231 * config/i386/x86-64linux.mh: Ditto.
7232 * config/ia64/linux.mh: Ditto.
7233 * config/m68k/linux.mh: Ditto.
7234 * config/mips/linux.mh: Ditto.
7235 * config/powerpc/linux.mh: Ditto.
7236 * config/sparc/linux.mh: Ditto.
7238 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
7240 * win32-nat.c: Add i386-tdep.h dependency.
7242 2002-01-07 Michael Snyder <msnyder@redhat.com>
7244 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7245 instead of bfd_get_arch_size. Don't bail out just because
7246 there's no exec_bfd.
7248 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7249 * p-valprint.c (pascal_object_print_value): Ditto.
7250 * somread.c (som_symtab_read): Ditto.
7251 * symfile.c (simple_free_overlay_region_table): Ditto.
7252 * valops.c (value_assign): Ditto.
7254 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7255 use tilde_expand and strerror for opening save-tracepoints file.
7257 * thread-db.c (thread_db_new_objfile): Indendation fix.
7259 * infptrace.c (GDB_MAX_ALLOCA): New define.
7260 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7261 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7262 can be overridden with whatever value is appropriate to the host).
7263 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7264 alloca to allocate potentially large buffer.
7265 * rs6000-nat.c (child_xfer_memory): Ditto.
7266 * symm-nat.c (child_xfer_memory): Ditto.
7267 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7269 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
7271 From Nick Clifton <nickc@redhat.com>
7272 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7274 2002-01-07 Michael Snyder <msnyder@redhat.com>
7276 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7277 Don't use exec_bfd if it's NULL.
7279 2002-01-06 Mark Kettenis <kettenis@gnu.org>
7281 * valops.c (value_arg_coerce): Fix formatting.
7283 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7285 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7288 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7290 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7291 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7292 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7293 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7294 z8k-coff have not been multi-arched. Update z8k-coff build
7297 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7299 * MAINTAINERS: Mark a29k target as obsolete.
7300 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7301 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7303 * NEWS: Note that a29k targets are obsolete.
7304 * a29k-tdep.c: Mark as obsolete.
7305 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7306 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7307 a29k-*-vxworks* targets as obsolete.
7308 * remote-adapt.c: Obsolete.
7309 * remote-eb.c: Obsolete.
7310 * remote-mm.c: Obsolete.
7311 * remote-udi.c: Obsolete.
7312 * config/a29k/a29k-udi.mt: Obsolete.
7313 * config/a29k/a29k.mt: Obsolete.
7314 * config/a29k/tm-a29k.h: Obsolete.
7315 * config/a29k/tm-vx29k.h: Obsolete.
7316 * config/a29k/vx29k.mt: Obsolete.
7318 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7320 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7321 with BFD_ENDIAN_BIG.
7323 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7325 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7326 * configure, config.in: Re-generate.
7327 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7328 * defs.h: Do not include <endian.h>.
7330 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
7332 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7333 * config.in: Regenerate.
7334 * configure.in: Update copyright years.
7335 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7336 * configure: Regenerate.
7337 * i386bsd-nat.c: Update copyright years.
7338 (fill_gregset): Use regcache_collect.
7339 (fetch_inferior_registers): Only fetch integer registers
7340 if requested to do so. Add support for XMM registers
7341 using PT_GETXMMREGS.
7342 (store_inferior_registers): Only store integer registers
7343 if requested to do so. Add support for XMM registers
7344 using PT_SETXMMREGS.
7345 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7346 (store_inferior_registers): Remove.
7347 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7348 (fetch_elfcore_registers): New function.
7349 (i386nbsd_elfcore_fns): New.
7350 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7351 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7353 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7354 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7355 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7356 * config/i386/tm-nbsd.h: Update copyright years.
7357 (HAVE_SSE_REGS): Define.
7358 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7359 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7360 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7361 (SIGCONTEXT_PC_OFFSET): Remove.
7362 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7364 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7366 * configure.tgt: Remove powerpc-*-macos* target.
7367 * config/m68k/xm-mpw.h: Delete file.
7368 * config/xm-mpw.h: Delete file.
7369 * ser-mac.c: Delete file.
7370 * mpw-make.sed: Delete file.
7371 * mpw-config.in: Delete file.
7372 * mac-xdep.c: Delete file.
7373 * mac-gdb.r: Delete file.
7374 * mac-defs.h: Delete file.
7375 * mac-nat.c: Delete file.
7376 * config/powerpc/macos.mh: Delete file.
7377 * config/powerpc/macos.mt: Delete file.
7378 * config/powerpc/nm-macos.h: Delete file.
7379 * config/powerpc/tm-macos.h: Delete file.
7380 * source.c (openp, open_source_file): Remove obsolete code.
7381 * top.c (gdb_readline): Ditto.
7382 * utils.c (query): Ditto.
7383 * event-top.c (display_gdb_prompt): Ditto.
7384 * Makefile.in (ser-mac.o): Delete obsolete target.
7387 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7389 * defs.h (BIG_ENDIAN): Delete macro definition.
7390 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7391 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7392 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7393 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7394 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7395 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7396 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7397 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7398 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7399 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7400 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7401 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7402 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7403 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7404 * gdbarch.c: Re-generate.
7406 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7408 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7411 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7413 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7415 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7417 * value.h (value_ptr): Delete typedef.
7419 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7421 * i386nbsd-nat.c: Update copyright years.
7422 Include i386-tdep.h.
7424 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
7426 * stabsread.c: Update copyright years.
7428 From Debashis Mahata <debashis.mahata@wipro.com>:
7429 (read_struct_fields): Deal with Sun C compiler erroneous stab
7430 output for structs and unions.
7433 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7435 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7438 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7440 * cp-abi.c: Fix whitespace.
7441 (baseclass_offset): New wrapper function.
7442 * cp-abi.h (baseclass_offset): Add prototype.
7443 (struct cp_abi_ops): Add baseclass_offset pointer.
7445 * valops.c (vb_match): Move to...
7446 * gnu-v2-abi.c (vb_match): here.
7447 * valops.c (baseclass_offset): Move to...
7448 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7450 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7452 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7453 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7454 * hpacc-abi.c (init_hpacc_ops): Likewise.
7456 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7458 * valops.c (find_overload_match): Accept obj as a
7459 reference parameter. Update it before returning.
7460 * value.h (find_overload_match): Update prototype.
7461 * eval.c (evaluate_subexp_standard): Pass object to
7462 find_overload_match by reference.
7464 2002-01-03 Andrew Cagney <ac131313@redhat.com>
7466 * valarith.c: Replace value_ptr with struct value pointer. Remove
7467 register attribute from value declarations.
7470 * scm-lang.c (scm_lookup_name): Ditto.
7472 2002-01-03 Michael Snyder <msnyder@redhat.com>
7474 Abstract the functionality of iterating over mapped memory
7475 regions into a general purpose iterator function.
7476 * procfs.c (iterate_over_mappings): New function, general purpose
7477 iterator for memory sections.
7478 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7479 (solib_mappings_callback): New function, callback for above.
7480 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7481 (info_mappings_callback): New function, callback for above.
7483 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7485 2002-01-01 Mark Kettenis <kettenis@gnu.org>
7487 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7488 * i386-tdep.c: Include "elf-bfd.h".
7489 (process_note_abi_tag_sections): New function.
7490 (i386_gdbarch_init): Add code to recognize various OS/ABI
7493 * maint.c (_initialize_maint_cmds): Add missing \ in
7496 For older changes see ChangeLog-2001
7502 version-control: never