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