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