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