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