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