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