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