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