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