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