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