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