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