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