1 2002-06-26 Grace Sainsbury <graces@redhat.com>
3 * monitor.h: Add the function regname to monitor_ops
4 structure. This way NUM_REGS does not have to be a constant.
5 * monitor.c (monitor_fetch_register): Added support for regname
6 function. The function is called if the array regnames is NULL.
7 (monitor_store_register): Same.
8 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces regnames array.
9 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
10 cpu32bug_cmds.regname to point to new function.
11 * abug-rom.c (abug_regname): Same as above.
12 (init_abug_cmds): Same.
13 * dbug-rom.c (dbug_regname): Same as above.
14 (init_dbug_cmds): Same.
15 * remote-est.c (est_regname): Same.
16 (init_est_cmds): Same.
17 * rom68k-rom.c (rom68k_regname): Same.
18 (init_rom68k_cmds): Same.
20 2002-06-25 Tom Tromey <tromey@redhat.com>
22 * breakpoint.c (delete_command): Don't repeat `delete' commands.
24 2002-06-25 Andrew Cagney <cagney@redhat.com>
26 * infrun.c (stop_registers): Change variable's type to ``struct
28 (xmalloc_inferior_status): Delete function.
29 (free_inferior_status): Delete function.
30 (normal_stop): Use regcache_cpy.
31 (struct inferior_status): Change type of fields ``stop_registers''
32 and ``registers'' to ``struct regcache''.
33 (write_inferior_status_register): Use regcache_write.
34 (save_inferior_status): Instead of calling
35 xmalloc_inferior_status, allocate the inf_status buffer directly.
36 Use regcache_dup_no_passthrough and regcache_dup to save the
38 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
39 Replace the stop_registers regcache instead of overriding it. Use
40 regcache_xfree. Instead of calling free_inferior_status, xfree
42 (discard_inferior_status): Use regcache_xfree. Instead of calling
43 free_inferior_status, xfree the buffer directly.
44 (build_infrun): Use regcache_xmalloc.
45 (_initialize_infrun): Delete redundant call to build_infrun.
47 * Makefile.in (infcmd.o): Add $(regcache_h).
49 * infcmd.c: Include "regcache.h".
50 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
51 obtain the address of `stop_registers' register buffer.
52 (print_return_value): Ditto.
54 * inferior.h (struct regcache): Add opaque declaration.
55 (stop_registers): Change variable's declared type to ``struct
58 2002-06-24 Tom Tromey <tromey@redhat.com>
60 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
61 * target.c (initialize_targets): Fixed typo in
62 trust-readonly-sections `show' documentation.
64 * main.c: Marked all strings with _().
66 2002-06-24 Don Howard <dhoward@redhat.com>
68 * memattr.c (create_mem_region): Treat hi == 0 as a special case
69 that means max CORE_ADDR+1.
70 (lookup_mem_region): Ditto.
71 (mem_info_command): Ditto.
73 2002-06-24 Grace Sainsbury <graces@redhat.com>
75 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
76 (REGISTER_BYTES_OK): Remove.
77 (REGISTER_BYTES): Remove.
78 (STORE_STRUCT_RETURN): Remove.
79 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
80 (STORE_RETURN_VALUE): Remove.
81 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
82 (FRAME_CHAIN): Remove.
83 (FRAMELESS_FUNCTION_INVOCATION): Remove.
84 (FRAME_SAVED_PC): Remove.
85 * m68k-tdep.c (m68k_register_bytes_ok):Add.
86 (m68k_store_struct_return): Add.
87 (m68k_deprecated_extract_return_value): Add.
88 (m68k_deprecated_extract_struct_value_address): Add.
89 (m68k_store_return_value): Add.
90 (m68k_frame_chain): Add.
91 (m68k_frameless_function_invocation): Add.
92 (m68k_frame_saved_pc): Add.
93 (m68k_gdbarch_init): added set_gdbarch calls for new
94 functions and deleted macros.
96 2002-06-23 Tom Tromey <tromey@redhat.com>
98 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
99 (ALLDEPFILES): Likewise.
100 (udiheaders): Removed.
101 (udip2soc.o): Likewise.
102 (udi2go32.o): Likewise.
104 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
106 2002-06-22 Andrew Cagney <ac131313@redhat.com>
108 * infrun.c (_initialize_infrun): Delete unnecessary call to
111 * regcache.h: Update comments describing the regcache_cpy family
113 (regcache_save, regcache_restore): Delete declaration.
114 (regcache_save_no_passthrough): Delete declaration.
115 (regcache_restore_no_passthrough): Delete declaration.
116 * regcache.c (regcache_save): Delete function.
117 (regcache_save_no_passthrough): Delete function.
118 (regcache_restore): Delete function.
119 (regcache_restore_no_passthrough): Delete function.
121 2002-06-21 Andrew Cagney <ac131313@redhat.com>
123 * config/m68k/tm-m68k.h: Fix typo.
124 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
125 (m68k_frame_init_saved_regs): Declare.
127 2002-06-21 Jim Blandy <jimb@redhat.com>
129 Remove some vestiges of Harris 88k support.
130 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
131 register numbering quirk.
132 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
133 odd symbols occurring in Harris 88k ELF targets.
135 2002-06-21 Tom Tromey <tromey@redhat.com>
137 * gdb_locale.h: New file.
138 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
139 (defs_h): Added gdb_locale.h.
140 * configure, config.in: Rebuilt.
141 * configure.in (PACKAGE): Define.
142 * defs.h: Include gdb_locale.h.
143 * main.c (captured_main): Call setlocale, bindtextdomain,
146 2002-06-21 Dave Brolley <brolley@redhat.com>
148 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
149 * config/frv/frv.mt: New file.
150 * config/frv/tm-frv.h: New file.
151 * configure.tgt: Support frv-*-*.
152 * Makefile.in (frv-tdep.o): New target.
153 * frv-tdep.c: New file.
156 2002-06-21 Dave Brolley <brolley@redhat.com>
158 * MAINTAINERS: Add self to "Write After Approval" list.
160 2002-06-21 Grace Sainsbury <graces@redhat.com>
162 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
163 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
164 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
165 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
166 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
168 * m68k-tdep.c: Include arch-utils.h
169 (m68k_register_raw_size): Add.
170 (m68k_register_virtual_size): Add.
171 (m68k_register_virtual_type): Add.
172 (m68k_register_name): Add.
173 (m68k_stack_align): Add.
174 (m68k_register_byte): Add.
175 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
178 2002-06-21 Grace Sainsbury <graces@redhat.com>
180 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
181 m68k_find_saved_regs.
182 (m68k_pop_frame): Removed saved_regs structure, and replaced
183 references to it with frame->saved_regs.
184 (m68k_gdbarch_init): Added function calls to initialize the
186 (m68k_fix_call_dummy): Add.
187 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
188 (CALL_DUMMY): Remove.
189 (CALL_DUMMY_LENGTH): Remove.
190 (CALL_DUMMY_START_OFFSET): Remove.
191 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
192 (FIX_CALL_DUMMY): Remove.
193 (PUSH_DUMMY_FRAME): Remove.
196 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
198 * parse.c (parse_fprintf): New function used to avoid calls to
199 fprintf in bison parser generated debug code.
200 * parser-defs.h: Declaration of new parse_fprintf function.
201 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
202 Set YYDEBUG to 1 by default.
203 Set YYFPRINTF as parse_fprintf.
205 2002-06-21 Michal Ludvig <mludvig@suse.cz>
207 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
209 (pointer_encoding, enum ptr_encoding): New.
210 (execute_cfa_program): Take care about pointer encoding.
211 (dwarf2_build_frame_info): Only call parse_frame_info for
212 .debug_frame and .eh_frame.
213 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
214 fixed augmentation handling, added relative addressing,
215 ignore duplicate FDEs. Added comments.
216 * dwarf2cfi.c: Reindented.
218 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
220 * event-top.c (command_handler): Don't use space_at_cmd_start
221 unless there is sbrk() on the host. Assign time and space data
222 to union fields of the appropriate length.
224 2002-06-20 Michal Ludvig <mludvig@suse.cz>
226 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
227 x86_64_register_name. Return type changed to 'const char *'.
228 (x86_64_register_name2nr): Rename to x86_64_register_number.
229 (x86_64_gdbarch_init): Update to reflect the change.
230 * x86-64-tdep.h: Ditto.
231 * x86-64-linux-nat.c (x86_64_fxsave_offset)
232 (supply_fpregset): Ditto.
234 2002-06-19 Andrew Cagney <cagney@redhat.com>
236 * regcache.h: Update copyright.
237 (struct regcache, struct gdbarch): Add opaque declarations.
238 (current_regcache): Declare global variable.
239 (regcache_read, regcache_write): Add gdbarch parameter.
240 (regcache_save, regcache_save_no_passthrough)
241 (regcache_restore, regcache_restore_no_passthrough)
242 (regcache_dup, regcache_dup_no_passthrough)
243 (regcache_cpy, regcache_cpy_no_passthrough)
244 (deprecated_grub_regcache_for_registers)
245 (deprecated_grub_regcache_for_register_valid)
246 (regcache_valid_p): Add function declarations.
248 * regcache.c: Update copyright.
249 (regcache_descr_handle): New global variable.
250 (struct regcache_descr): Define.
251 (init_legacy_regcache_descr, init_regcache_descr): New functions.
252 (regcache_descr, xfree_regcache_descr): New functions.
253 (struct regcache): Define.
254 (regcache_xmalloc, regcache_xfree): New functions.
255 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
256 (regcache_dup, regcache_dup_no_passthrough): New functions.
257 (regcache_valid_p, regcache_read_as_address): New functions.
258 (deprecated_grub_regcache_for_registers): New function.
259 (deprecated_grub_regcache_for_register_valid): New function.
260 (current_regcache): New global variable.
261 (register_buffer): Add regcache parameter. Update calls.
262 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
263 (read_register_gen, write_register_gen): Update register_buffer
264 call. Test for legacy_p instead of gdbarch_register_read_p or
265 gdbarch_register_write_p.
266 (regcache_collect): Update register_buffer call.
267 (build_regcache): Rewrite. Use deprecated grub functions.
268 (regcache_save, regcache_save_no_passthrough): New functions.
269 (regcache_restore, regcache_restore_no_passthrough): New
271 (_initialize_regcache): Create the regcache_data_handle. Swap
272 current_regcache global variable.
274 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
275 parameter to regcache_read and regcache_write calls.
276 (sh4_register_read): Ditto.
277 (sh64_pseudo_register_read): Ditto.
278 (sh64_register_read): Ditto.
279 (sh_pseudo_register_write): Ditto.
280 (sh4_register_write): Ditto.
281 (sh64_pseudo_register_write): Ditto.
282 (sh64_register_write): Ditto.
284 * defs.h (XCALLOC): Define.
286 2002-06-19 Grace Sainsbury <graces@redhat.com>
288 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
289 * m68k-tdep.c (m68k_gdbarch_init): Added.
290 (m68k_dump_tdep): Added.
292 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
294 * ada-lang.c (fill_in_ada_prototype): Update comment.
296 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
298 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
300 (mips_abi_string, mips_abi_strings): New.
301 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
302 (mips_gdbarch_init): Set tdep->found_abi. Don't set
303 tdep->mips_abi_string. Honor mips_abi_string. Default to
304 O32 if no ABI is found.
305 (mips_dump_tdep): Use mips_abi_strings.
306 (mips_abi_update): New function.
307 (_initialize_mips_tdep): Initialize mips_abi_string. Add
308 ``set mips abi'' and ``show mips abi''. Check the size of
311 2002-06-19 Andrew Cagney <cagney@redhat.com>
313 * i386-linux-tdep.c (i386_linux_register_name): Make return type
316 2002-06-18 Joel Brobecker <brobecker@gnat.com>
318 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
319 current frame using only the first stack size adjustment. All
320 subsequent size adjustments are not considered to be part of
321 the "static" part of the current frame.
322 Compute the address of the saved registers relative to the
323 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
324 in use in this frame.
326 2002-06-18 Don Howard <dhoward@redhat.com>
328 * valops.c (value_ind): Use value_at_lazy() when dereferencing
329 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
330 suggesting this solution.
332 2002-06-18 Andrew Cagney <ac131313@redhat.com>
334 * config/romp/xm-rtbsd.h: Delete file.
335 * config/romp/rtbsd.mh: Delete file.
337 2002-06-18 Keith Seitz <keiths@redhat.com>
339 * breakpoint.c (condition_command): Post breakpoint_modify
340 when a condition is added to an existing breakpoint.
341 (commands_command): Likewise for commands.
342 (set_ignore_count): Likewise for ignore counts.
343 If no tty, do not simply return, still need to send event
345 (ignore_command): Only print a newline if the command came
347 Don't call breakpoints_changed, since this is now properly
348 handled by set_ignore_count.
350 2002-06-18 Andrew Cagney <cagney@redhat.com>
352 * MAINTAINERS: Note that cris-elf target can be compiled with
354 * cris-tdep.c (cris_register_name): Make return type constant.
355 (cris_breakpoint_from_pc): Ditto.
357 2002-06-18 Michal Ludvig <mludvig@suse.cz>
359 * frame.h (struct frame_info): Change type of context to
362 2002-06-17 Andrew Cagney <cagney@redhat.com>
364 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
366 * gdbarch.h, gdbarch.c: Regenerate.
367 * config/mips/tm-mips.h (mips_register_name): Update.
368 * i386-tdep.h (i386_register_name): Update.
369 * mips-tdep.c (mips_register_name): Update
370 * alpha-tdep.c (alpha_register_name): Update.
371 * arch-utils.c (legacy_register_name): Update.
372 * arch-utils.h (legacy_register_name): Update.
373 * avr-tdep.c (avr_register_name): Update.
374 * ia64-tdep.c (ia64_register_name): Update.
375 * i386-tdep.c (i386_register_name): Update.
376 * sparc-tdep.c (sparc32_register_name): Update.
377 (sparc64_register_name): Update.
378 (sparclite_register_name): Update.
379 (sparclet_register_name): Update.
380 * sh-tdep.c (sh_generic_register_name): Update.
381 (sh_sh_register_name): Update.
382 (sh_sh3_register_name): Update.
383 (sh_sh3e_register_name): Update.
384 (sh_sh_dsp_register_name): Update.
385 (sh_sh3_dsp_register_name): Update.
386 (sh_sh4_register_name): Update.
387 (sh_sh64_register_name): Update.
388 * s390-tdep.c (s390_register_name): Update.
389 * rs6000-tdep.c (rs6000_register_name): Update.
390 * ns32k-tdep.c (ns32k_register_name_32082): Update.
391 (ns32k_register_name_32382): Update.
392 * d10v-tdep.c (d10v_ts2_register_name): Update.
393 (d10v_ts3_register_name): Update.
394 * xstormy16-tdep.c (xstormy16_register_name): Update.
395 * vax-tdep.c (vax_register_name): Update.
396 * v850-tdep.c (v850_register_name): Update.
397 * m68hc11-tdep.c (m68hc11_register_name): Update.
398 * mn10300-tdep.c (mn10300_generic_register_name): Update.
399 (am33_register_name): Update.
401 2002-06-17 Grace Sainsbury <graces@redhat.com>
403 * m68k-tdep.c: Reindented.
405 2002-06-17 Andrew Cagney <ac131313@redhat.com>
407 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
408 list of predefined types.
410 2002-06-16 Mark Kettenis <kettenis@gnu.org>
412 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
413 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
414 REGISTER_CONVERT_TO_RAW): Remove defines.
415 (i386_register_virtual_type, i386_register_convertible,
416 i386_register_convert_to_virtual, i386_register_convert_to_raw):
418 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
419 macros mentioned above.
421 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
422 (i386lynx_saved_pc_after_call): Remove prototype.
423 * i386ly-tdep.c: Include "i386-tdep.h".
424 (i386lynx_saved_pc_after_call): Make static. Use
425 read_memory_nobpt instead of read_memory. Use
426 read_memory_unsigned_integer instead of read_memory_integer.
427 (i386lynx_init_abi): New function.
428 (i386lynx_coff_osabi_sniffer): New function.
429 (_initialize_i386bsd_tdep): New function.
431 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
432 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
433 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
434 (i386_fix_call_dummy): Remove prototype.
435 * i386-tdep.c (i386_call_dummy_words): New variable.
436 (i386_gdbarch_init): Adjust for removal of the
437 macros mentioned above.
439 2002-06-15 Andrew Cagney <ac131313@redhat.com>
441 * command.h (add_setshow_auto_boolean_cmd): Replace
442 add_set_auto_boolean_cmd.
443 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
444 add_set_auto_boolean_cmd.
445 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
446 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
447 mask-address'' command.
448 (show_mask_address): Add cmd parameter.
449 * remote.c (add_packet_config_cmd): Update. Change type of
450 set_func and show_func to cmd_sfunc_ftype.
451 (_initialize_remote): Update `set remote Z-packet'
452 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
453 (show_remote_protocol_e_packet_cmd): Ditto.
454 (show_remote_protocol_E_packet_cmd): Ditto.
455 (show_remote_protocol_P_packet_cmd): Ditto.
456 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
457 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
458 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
459 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
460 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
461 (show_remote_protocol_Z_packet_cmd): Ditto.
462 (show_remote_protocol_binary_download_cmd): Ditto.
463 (show_remote_cmd): Pass NULL to all of above.
465 2002-06-15 Mark Kettenis <kettenis@gnu.org>
467 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
468 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
469 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
470 POP_FRAME): Remove defines.
471 (i386_push_arguments, i386_store_struct_return,
472 i386_extract_return_value, i386_store_return_value,
473 i386_extract_struct_value_address, i386_push_dummy_frame,
474 i386_pop_frame): Renove prototypes.
475 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
476 macros mentioned above.
478 2002-06-15 Andrew Cagney <ac131313@redhat.com>
480 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
482 (add_setshow_cmd): New function.
483 * command.h (add_setshow_boolean_cmd): Replace
485 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
486 and ``set rdiromatzero''.
487 * maint.c (_initialize_maint_cmds): Update commented out code.
488 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
489 * target.c (initialize_targets): Update `set
490 trust-readonly-sections'.
491 * remote.c (_initialize_remote): Update `set remotebreak'.
493 2002-06-15 Mark Kettenis <kettenis@gnu.org>
495 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
496 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
497 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
498 fit into multi-arch framework.
499 (i386_breakpoint_from_pc): New function.
500 (i386_gdbarch_init): Adjust for removal of the macros mentioned
503 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
504 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
505 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
506 (i386_frameless_function_invocation, i386_frame_num_args,
507 i386_frame_init_saved_regs): Remove prototypes.
508 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
509 macros mentioned above.
511 2002-06-15 Andrew Cagney <ac131313@redhat.com>
513 * cli/cli-decode.c (set_cmd_cfunc): Update.
514 (set_cmd_sfunc): Update.
515 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
516 (set_cmd_sfunc, set_cmd_cfunc): Update.
517 * cli/cli-decode.h: Update.
519 2002-06-15 Mark Kettenis <kettenis@gnu.org>
521 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
522 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
524 2002-06-15 Andrew Cagney <ac131313@redhat.com>
526 * defs.h (auto_boolean): Declare enum.
527 * command.h (cmd_auto_boolean): Delete enum.
528 * mips-tdep.c (mask_address_var): Update.
529 (mips_mask_address_p): Update.
530 (show_mask_address): Update.
531 * remote.c (struct packet_config): Update.
532 (update_packet_config): Update.
533 (show_packet_config_cmd): Update.
535 (add_packet_config_cmd): Update.
536 (_initialize_remote):
538 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
539 (do_setshow_command): Update.
540 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
541 * cli/cli-decode.h: Update.
543 2002-06-15 Mark Kettenis <kettenis@gnu.org>
545 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
546 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
547 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
548 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
549 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
550 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
552 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
553 list of DJGPP COFF targets.
555 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
556 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
557 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
558 (FP0_REGNUM): Remove define.
559 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
560 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
561 (i386_register_virtual_size): Remove protoype.
562 * i386-tdep.c (i386_register_virtual_size): Removed.
563 (i386_extract_return_value, i386_store_return_value): Use
564 FP0_REGNUM instead of NUM_FREGS to determine whether the
565 floating-point registers are available.
566 (i386_gdbarch_init): Tweak FIXME about FPU registers.
567 Adjust for removal of macros mentioned above.
569 2002-06-15 Mark Kettenis <kettenis@gnu.org>
571 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
573 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
575 (supply_gregset, fill_gregset): Remove use of register keyword and
576 remove declaration for regmap. Use I386_NUM_GREGS instead of
577 NUM_REGS and NUM_FREGS.
578 (FPREGSET_FSAVE_OFFSET): Remove.
579 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
580 NUM_FREGS to determine whether the floating-point registers are
583 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
584 gnu_store_registers): Replace usage of NUM_GREGS with
587 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
588 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
589 usage of NUM_GREGS with I386_NUM_GREGS.
591 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
593 * i386bsd-nat.c: Include "i386-tdep.h".
594 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
597 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
598 and associated comment. They no longer make any sense, since we
599 don't use this file anymore on Linux.
601 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
602 * i386-tdep.c (i386_register_offset, i386_register_size): Use
603 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
604 elements in these arrays.
605 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
608 2002-06-15 Mark Kettenis <kettenis@gnu.org>
610 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
611 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
613 2002-06-14 Andrew Cagney <cagney@redhat.com>
615 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
616 EXTRACT_RETURN_VALUE.
617 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
618 EXTRACT_STRUCT_VALUE_ADDRESS.
619 * gdbarch.h, gdbarch.c: Regenerate.
621 * values.c (value_being_returned): Handle
622 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
623 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
625 * arm-linux-tdep.c (arm_linux_init_abi): Update.
626 * arm-tdep.c (arm_gdbarch_init): Update.
627 * avr-tdep.c (avr_gdbarch_init): Update.
628 * cris-tdep.c (cris_gdbarch_init): Update.
629 * d10v-tdep.c (d10v_gdbarch_init): Update.
630 * ia64-tdep.c (ia64_gdbarch_init): Update.
631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
633 * s390-tdep.c (s390_gdbarch_init): Update.
634 * sh-tdep.c (sh_gdbarch_init): Update.
635 * s390-tdep.c (s390_gdbarch_init): Update.
636 * sparc-tdep.c (sparc_gdbarch_init): Update.
637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
638 * v850-tdep.c (v850_gdbarch_init): Update.
639 * vax-tdep.c (vax_gdbarch_init): Update.
640 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
643 * config/arc/tm-arc.h: Update.
644 * config/d30v/tm-d30v.h: Update.
645 * config/fr30/tm-fr30.h: Update.
646 * config/h8300/tm-h8300.h: Update.
647 * config/h8500/tm-h8500.h: Update.
648 * config/i386/tm-i386.h: Update.
649 * config/i386/tm-ptx.h: Update.
650 * config/i386/tm-symmetry.h: Update.
651 * config/i960/tm-i960.h: Update.
652 * config/m32r/tm-m32r.h: Update.
653 * config/m68k/tm-delta68.h: Update.
654 * config/m68k/tm-linux.h: Update.
655 * config/m68k/tm-m68k.h: Update.
656 * config/m88k/tm-m88k.h: Update.
657 * config/mcore/tm-mcore.h: Update.
658 * config/mips/tm-mips.h: Update.
659 * config/mn10200/tm-mn10200.h: Update.
660 * config/pa/tm-hppa.h: Update.
661 * config/pa/tm-hppa64.h: Update.
662 * config/sparc/tm-sp64.h: Update.
663 * config/sparc/tm-sparc.h: Update.
664 * config/sparc/tm-sparclet.h: Update.
665 * config/z8k/tm-z8k.h: Update.
667 2002-06-14 Andrew Cagney <cagney@redhat.com>
669 * Makefile.in (i386_linux_tdep_h): Define.
670 (i386_tdep_h, i387_tdep_h): Define.
671 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
672 $(i386_tdep_h) and $(i387_tdep_h).
673 * i386-linux-nat.c: Include "i386-linux-tdep.h".
675 2002-06-14 Mark Kettenis <kettenis@gnu.org>
677 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
678 Already covered by the default.
680 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
681 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
682 (i386_gdbarch_init): Initialize long_double_format and long_double
685 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
686 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
688 * config/i386/i386sol2.mh: ... here.
689 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
690 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
691 (SIGCONTEXT_PC_OFFSET): Remove define.
692 (IN_SIGTRAMP): Remove define.
693 * i386-sol2-tdep.c: New file.
695 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
696 * config/i386/tm-i386nw.h: Removed.
698 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
699 USE_STRUCT_CONVENTION): Remove defines.
700 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
701 (get_longjmp_target): Remove prototype.
702 (IN_SIGTRAMP): Remove define.
703 (i386bsd_in_sigtramp): Remove prototype.
704 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
705 function. Update comment accordingly
706 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
707 (FRAME_SAVED_PC): Remove define.
708 (i386bsd_frame_saved_pc): Remove prototype.
709 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
710 GET_LONGJMP_TARGET): Remove defines.
711 (get_longjmp_target): Remove prototype.
712 (IN_SIGTRAMP): Remove define.
713 (i386bsd_in_sigtramp): Remove prototype.
714 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
715 function. Update comment accordingly
716 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
717 (FRAME_SAVED_PC): Remove define.
718 (i386bsd_frame_saved_pc): Remove prototype.
719 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
721 (USE_STRUCT_CONVENTION): Remove prototype.
722 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
724 (_initialize_i386bsd_nat): Revise logic to determine some
725 constants at compile time when compiling a native GDB. Warn if
726 things don't match up with what we expect.
727 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
729 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
730 to use date stored in `struct gdbarch_tdep'.
731 (i386bsd_sigcontext_offset): Remove varaible.
732 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
733 stored in `struct gdbarch_tdep'.
734 (i386bsd_frame_saved_pc): Make static.
735 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
736 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
737 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
738 i386fbsd4_sc_pc_offset): New variables.
739 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
740 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
742 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
744 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
745 Modify the value of i386fbsd_sigtramp_start and
746 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
747 i386fbsd_sigtramp_end.
748 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
751 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
752 define to i386-linux-tdep.h.
753 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
754 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
756 (i386_linux_register_name, i386_linux_register_byte,
757 i386_linux_register_raw_size): Remove prototypes.
758 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
759 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
760 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
761 TARGET_WRITE_PC): Remove defines.
762 (i386_linux_in_sigtramp, i386_linux_frame_chain,
763 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
764 i386_linux_write_pc): Remove prototypes.
765 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
766 (get_longjmp_target): Remove prototype.
767 * i386-linux-tdep.h: New file.
768 * i386-linux-nat.c: Include "i386-linux-tdep.h".
769 * i386-linux-tdep.c: Include "i386-tdep.h" and
771 (i386_linux_register_name, i386_linux_register_byte,
772 i386_linux_register_raw_size, i386_linux_in_sigtramp,
773 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
775 (i386_linux_init_abi): New function.
776 (_initialize_i386_linux_tdep): New function.
778 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
779 (i386_saved_pc_after_call): Remove prototype.
780 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
781 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
782 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
783 (i386_register_name, i386_stab_reg_to_regnum,
784 i386_dwarf_reg_to_regnum): Remove prototypes.
785 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
786 SIZEOF_SSE_REGS): Remove defines.
787 (REGISTER_BYTES): Remove define.
788 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
789 (i386_register_byte, i386_register_raw_size): Remove prototypes.
790 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
791 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
792 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
793 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
794 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
795 (get_longjmp_target): Remove prototype.
796 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
797 (sigtramp_saved_pc): Remove define.
798 (i386v4_sigtramp_saved_pc): Remove prototype.
799 * config/i386/tm-go32.h (FRAME_CHAIN,
800 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
801 (i386go32_frame_saved_pc): Remove prototype.
802 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
803 (get_longjmp_target): Remove prototype.
804 * i386-tdep.h: Include "osabi.h".
805 (enum i386_abi): Removed.
806 (enum struct_return): New enum.
807 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
808 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
809 sc_pc_offset members.
810 (i386_gdbarch_register_os_abi): Remove prototype.
811 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
812 I386_SSE_NUM_REGS): New defines.
813 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
814 I386_SSE_SIZEOF_REGS): New defines.
815 (i386_register_name, i386_register_byte, i386_register_raw_size):
817 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
818 (i386bsd_sigtramp_saved_pc): New prototype.
819 * i386-tdep.c: Don't include "elf-bfd.h".
820 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
821 i386_frame_chain, i386_saved_pc_after_call): Make static.
822 (i386_frame_saved_pc): Rewrite to call architecture dependent
823 function to deal with signal handlers. Make static.
824 (i386go32_frame_saved_pc): Removed.
825 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
827 (i386_get_longjmp_target): New function.
828 (default_struct_convention, pcc_struct_convention,
829 reg_struct_convention, valid_conventions, struct_convention): New
831 (i386_use_struct_convention): New function.
832 (i386v4_sigtramp_saved_pc): Renamed to
833 i386_svr4_sigtramp_saved_pc. Made static. Moved.
834 (i386_pc_in_sigtramp): New function.
835 (i386_abi_names): Removed.
836 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
837 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
839 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
840 i386_gdbarch_register_os_abi): Removed.
841 (struct i386_abi_handler): Removed.
842 (i386_abi_handler_list): Removed.
843 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
845 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
846 i386_nw_init_abi): New functions.
847 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
848 Use set_gdbarch_xxx() calls instead of relying on macros for a
850 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
851 (_initialize_i386_tdep): Add new 'struct-convcention' command.
852 Register the various architecture variants defined in this file.
854 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
856 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
857 (struct main_type): Remove arg_types member. Update comments for
859 (TYPE_ARG_TYPES): Remove.
860 (TYPE_FN_FIELD_ARGS): Update.
861 (smash_to_method_type): Update prototype.
863 * c-typeprint.c (cp_type_print_method_args): Take method type
864 instead of argument list. Use new argument layout. Simplify.
865 (c_type_print_args): Use new argument layout. Simplify.
866 (c_type_print_base): Update call to cp_type_print_method_args.
867 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
868 argument; use die->type instead. Update call to
869 smash_to_method_type.
870 (read_structure_scope): Update call to dwarf2_add_member_fn.
871 * gdbtypes.c (allocate_stub_method): Update comment.
872 (smash_to_method_type): Take new NARGS and VARARGS arguments.
873 Use new argument layout.
874 (check_stub_method): Use new argument layout. Don't count
876 (print_arg_types): Update comments. Use new argument layout.
877 (recursive_dump_type): Don't print arg_types member.
878 * hpread.c (hpread_read_struct_type): Use new argument layout.
879 (fixup_class_method_type): Likewise.
880 (hpread_type_lookup): Likewise.
881 * stabsread.c (read_type): Update calls to read_args and
882 smash_to_method_type.
883 (read_args): Use new argument layout. Simplify.
884 * valops.c (typecmp): Use new argument layout. Update parameters
885 and comments. Simplify.
886 (hand_function_call): Use new argument layout.
887 (search_struct_method): Update call to typecmp.
888 (find_overload_match): Use new argument layout.
890 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
892 * NEWS: Mention multithreaded debug support for gdbserver.
894 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
896 * MAINTAINERS: Mention NEWS.
898 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
900 * gdbserver/regcache.c: Add comment.
902 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
904 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
905 (struct mips_objfile_private, compare_pdr_entries): New.
906 (non_heuristic_proc_desc): Read the ".pdr" section if it
909 2002-06-12 Andrew Cagney <ac131313@redhat.com>
911 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
912 (arm_debug): New static variable.
913 (_initialize_arm_tdep): Add ``set debug arm'' command.
915 2002-06-12 Andrew Cagney <ac131313@redhat.com>
917 * Makefile.in (sim_arm_h): Define.
918 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
919 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
920 (arm_register_sim_regno): New function, map an internal REGNUM
921 onto a simulator register number.
922 (arm_gdbarch_init): Set register_sim_regno.
924 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
926 * MAINTAINERS: Add self.
928 2002-06-11 Jim Blandy <jimb@redhat.com>
930 * source.c (source_info): Mention whether the symtab has
931 information about preprocessor macros.
933 Call the command `info macro', not `show macro'.
934 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
936 (_initialize_macrocmd): Register `info_macro_command' in
937 `infolist', not `showlist'.
939 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
941 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
942 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
943 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
944 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
945 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
947 (set_mipsfpu_single_command, set_mipsfpu_double_command)
948 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
949 (_initialize_mips_tdep): Remove dead code.
950 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
951 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
952 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
953 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
954 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
955 MIPS_LAST_FP_ARG_REGNUM): Remove.
957 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
959 * gdbserver/thread-db.c: New file.
960 * gdbserver/proc-service.c: New file.
961 * gdbserver/acinclude.m4: New file.
962 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
963 proc-service.o, and thread-db.o.
964 (linux-low.o): Add USE_THREAD_DB.
965 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
966 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
967 * gdbserver/aclocal.m4: Regenerated.
968 * gdbserver/config.in: Regenerated.
969 * gdbserver/configure: Regenerated.
970 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
971 thread_db.h, and linux/elf.h headrs.
972 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
973 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
974 Check for -lthread_db and thread support.
975 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
977 * gdbserver/i387-fp.c: Constify arguments.
978 * gdbserver/i387-fp.h: Likewise.
979 * gdbserver/inferiors.c: (struct thread_info): Renamed from
980 `struct inferior_info'. Remove PID member. Use generic inferior
981 list header. All uses updated.
982 (inferiors, signal_pid): Removed.
983 (all_threads): New variable.
984 (get_thread): Define.
985 (add_inferior_to_list): New function.
986 (for_each_inferior): New function.
987 (change_inferior_id): New function.
988 (add_inferior): Removed.
989 (remove_inferior): New function.
990 (add_thread): New function.
991 (free_one_thread): New function.
992 (remove_thread): New function.
993 (clear_inferiors): Use for_each_inferior and free_one_thread.
994 (find_inferior): New function.
995 (find_inferior_id): New function.
996 (inferior_target_data): Update argument type.
997 (set_inferior_target_data): Likewise.
998 (inferior_regcache_data): Likewise.
999 (set_inferior_regcache_data): Likewise.
1000 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1001 (all_processes, stopping_threads, using_thrads)
1002 (struct pending_signals, debug_threads, pid_of): New.
1003 (inferior_pid): Replace with macro.
1004 (struct inferior_linux_data): Remove.
1005 (get_stop_pc, add_process): New functions.
1006 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1007 Use add_process and add_thread.
1008 (linux_attach_lwp): New function, based on old linux_attach. Use
1009 add_process and add_thread. Set stop_expected for new threads.
1010 (linux_attach): New function.
1011 (linux_kill_one_process): New function.
1012 (linux_kill): Kill all LWPs.
1013 (linux_thread_alive): Use find_inferior_id.
1014 (check_removed_breakpoints, status_pending_p): New functions.
1015 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1016 Update. Use WNOHANG. Wait for cloned processes also. Update process
1017 struct for the found process.
1018 (linux_wait_for_event): New function.
1019 (linux_wait): Use it. Support LWPs.
1020 (send_sigstop, wait_for_sigstop, stop_all_processes)
1021 (linux_resume_one_process, linux_continue_one_process): New functions.
1022 (linux_resume): Support LWPs.
1023 (REGISTER_RAW_SIZE): Remove.
1024 (fetch_register): Use register_size instead. Call supply_register.
1025 (usr_store_inferior_registers): Likewise. Call collect_register.
1027 (regsets_fetch_inferior_registers): Improve error message.
1028 (regsets_store_inferior_registers): Add debugging.
1029 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1030 (unstopped_p, linux_signal_pid): New functions.
1031 (linux_target_ops): Add linux_signal_pid.
1032 (linux_init_signals): New function.
1033 (initialize_low): Call it. Initialize using_threads.
1034 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1036 (get_regcache): Fetch registers lazily. Add fetch argument
1037 and update all callers.
1038 (regcache_invalidate_one, regcache_invalidate): New
1040 (new_register_cache): Renamed from create_register_cache.
1041 Return the new regcache.
1042 (free_register_cache): Change argument to a void *.
1043 (registers_to_string, registers_from_string): Call get_regcache
1044 with fetch flag set.
1045 (register_data): Make static. Pass fetch flag to get_regcache.
1046 (supply_register): Call get_regcache with fetch flag clear.
1047 (collect_register): Call get_regcache with fetch flag set.
1048 (collect_register_as_string): New function.
1049 * gdbserver/regcache.h: Update.
1050 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1052 Handle input interrupts while waiting for an ACK.
1053 (input_interrupt): Use signal_pid method.
1054 (getpkt): Flush after debug output and use stderr.
1055 (outreg): Use collect_register_as_string.
1056 (new_thread_notify, dead_thread_notify): New functions.
1057 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1059 (look_up_one_symbol): Flush after debug output.
1060 * gdbserver/server.c (step_thread, server_waiting): New variables.
1061 (start_inferior): Don't use signal_pid. Update call to mywait.
1062 (attach_inferior): Update call to mywait.
1063 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1064 (main): Don't fetch/store registers explicitly. Use
1065 set_desired_inferior. Support proposed ``Hs'' packet. Update
1067 * gdbserver/server.h: Update.
1068 (struct inferior_list, struct_inferior_list_entry): New.
1069 * gdbserver/target.c (set_desired_inferior): New.
1070 (write_inferior_memory): Constify.
1071 (mywait): New function.
1072 * gdbserver/target.h: Update.
1073 (struct target_ops): New signal_pid method.
1074 (mywait): Removed macro, added prototype.
1076 * gdbserver/linux-low.h (regset_func): Removed.
1077 (regset_fill_func, regset_store_func): New.
1078 (enum regset_type): New.
1079 (struct regset_info): Add type field. Use new operation types.
1080 (struct linux_target_ops): stop_pc renamed to get_pc.
1081 Add decr_pc_after_break and breakpoint_at.
1082 (get_process, get_thread_proess, get_process_thread)
1083 (strut process_info, all_processes, linux_attach_lwp)
1084 (thread_db_init): New.
1086 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1087 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1088 (the_low_target): Add new members.
1089 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1090 (i386_store_fpxregset): Constify.
1091 (target_regsets): Add new kind identifier.
1092 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1093 (i386_set_pc): Add debugging.
1094 (i386_breakpoint_at): New function.
1095 (the_low_target): Add new members.
1096 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1097 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1098 (mips_breakpoint_at): New.
1099 (the_low_target): Add new members.
1100 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1101 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1102 (the_low_target): Add new members.
1103 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1104 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1105 (the_low_target): Add new members.
1106 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1109 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1111 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1112 (unwind_tmp_obstack_free, parse_frame_info)
1113 (update_context, cfi_read_fp, cfi_write_fp)
1114 (cfi_frame_chain, cfi_init_extra_frame_info)
1115 (cfi_virtual_frame_pointer): Use the above function.
1116 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1118 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
1120 * v850-tdep.c (v850_type_is_scalar): New function.
1121 (v850_use_struct_convention): Match current gcc implementation
1122 as close as possible.
1123 (v850_push_arguments): Fix stack_offset handling. Don't write
1124 struct_addr into register. This is done by v850_store_struct_return.
1125 (v850_extract_return_value): Care for structs.
1126 (v850_store_return_value): Ditto.
1127 (v850_store_struct_return): Actually write address.
1129 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1131 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1132 without debug information too.
1134 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1136 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1137 Make multi-arch pure.
1138 * gdbarch.h, gdbarch.c: Re-generate.
1139 * arm-tdep.c (arm_print_float_info): Update.
1140 * arch-utils.h (default_print_float_info): Update.
1141 * arch-utils.c (default_print_float_info): Update.
1142 * infcmd.c (float_info): Update call.
1144 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1146 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1147 the front of the initialize list.
1149 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1151 * infrun.c (struct inferior_status): Replace fields
1152 selected_frame_address and selected_level with field
1154 (save_inferior_status): Update. Use get_frame_id.
1155 (struct restore_selected_frame_args): Delete.
1156 (restore_selected_frame): Update. Use frame_find_by_id.
1157 (restore_inferior_status): Update.
1159 * breakpoint.h (struct breakpoint): Change type of
1160 watchpoint_frame to frame_id.
1161 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1162 call to get_current_frame.
1163 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1165 (watchpoint_check): Use frame_find_by_id.
1167 * frame.h (record_selected_frame): Delete declaration.
1168 * stack.c (record_selected_frame): Delete function.
1170 * frame.h (struct frame_id): Define.
1171 (get_frame_id): Declare.
1172 (frame_find_by_id): Declare.
1173 * frame.c (frame_find_by_id): New function.
1174 (get_frame_id): New function.
1176 2002-06-10 Andrey Volkov <avolkov@transas.com>
1178 * ser-e7kpc.c: Fix duplicated define and call of
1179 _initialize_ser_e7000pc
1181 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1183 * signals/signals.c (target_signal_from_host): Fix #ifdef
1185 (do_target_signal_to_host): Likewise.
1187 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1189 * mips-tdep.c (mips_find_abi_section): New function.
1190 (mips_gdbarch_init): Call it.
1192 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1194 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1195 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1196 after Andrew's 2002-06-08 gdbarch change.
1198 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1200 * i386-linux-nat.c (suppy_gregset): Don't supply
1201 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1203 (fill_gregset): Don't fetch it under the same circumstances.
1205 2002-06-09 Andrew Cagney <cagney@redhat.com>
1207 * Makefile.in (callback_h): Define.
1208 (remote_sim_h): Update path to remote-sim.h.
1209 (remote-rdp.o): Add $(callback_h).
1210 (remote-sim.o): Use $(callback_h).
1211 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1212 * remote-rdp.c: Include "gdb/callback.h".
1214 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1216 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1217 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1219 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1221 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1222 * rdi-share/serpardr.c: Ditto.
1223 * rdi-share/unixcomm.c: Ditto.
1224 * rdi-share/serdrv.c: Ditto.
1225 * rdi-share/hostchan.h: Ditto.
1226 * rdi-share/hostchan.c: Ditto.
1227 * rdi-share/host.h: Ditto.
1228 * rdi-share/devsw.c: Ditto.
1230 * objfiles.h: Change type of obj_private to void pointer.
1231 * pa64solib.c: Update copyright. Don't include "assert.h", use
1232 strcmp instead of STREQ, use LONGEST, do not use PTR
1233 * somsolib.c: Ditto.
1235 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1236 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1237 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1239 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1241 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1242 (default_get_saved_register): Delete function.
1243 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1244 generic_unwind_get_saved_register.
1245 * gdbarch.h, gdbarch.c: Re-generate.
1247 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1249 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1250 generic_func_frame_chain_valid.
1251 * gdbarch.h, gdbarch.c: Re-generate.
1252 * blockframe.c (generic_func_frame_chain_valid): Only check
1253 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1254 passing FP to PC_IN_CALL_DUMMY.
1257 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1259 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1260 (register_gdbarch_data): Initialize init_p.
1261 (gdbarch_data): Initialize data pointer using the init function.
1262 (init_gdbarch_data): Delete function.
1263 (gdbarch_update_p): Update.
1264 (initialize_non_multiarch): Update.
1265 (struct gdbarch): Add field initialized_p.
1266 * gdbarch.h, gdbarch.c: Re-generate.
1268 2002-06-07 Michal Ludvig <mludvig@suse.cz>
1270 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1271 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1272 better do the things actually here.
1273 * x86-64-tdep.c (x86_64_register_name2nr): New.
1274 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1275 (x86_64_gdbarch_init): Respect the above change.
1276 * x86-64-tdep.h (x86_64_register_name2nr)
1277 (x86_64_register_nr2name): Add prototypes.
1278 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1280 2002-06-06 Michael Snyder <msnyder@redhat.com>
1282 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1283 Delete extra braces and re-indent.
1284 (d10v_store_return_value): Char return values
1285 must be shifted over by one byte in R0.
1286 (d10v_extract_return_value): Delete extra braces, re-indent.
1288 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
1290 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1291 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1292 (d10v_integer_to_address): Rewrite.
1293 (d10v_frame_init_saved_regs): When reading fp and sp registers use
1294 the d10v specific functions which take care of converting to the
1297 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
1299 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1300 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1302 2002-06-02 Andrew Cagney <ac131313@redhat.com>
1304 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1306 * config/tm-linux.h: Ditto.
1307 * config/alpha/tm-alphalinux.h: Ditto.
1308 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1309 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1310 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1311 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1312 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1313 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1314 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1315 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1316 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1317 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1318 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1319 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1320 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1321 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1322 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1323 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1324 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1325 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1326 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1327 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1328 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1329 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1330 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1331 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1332 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1333 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1334 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1335 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1336 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1337 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1338 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1339 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1340 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1341 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1342 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1343 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1344 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1346 2002-05-04 Aidan Skinner <aidan@velvet.net>
1348 * ada-exp.tab.c: New file
1349 * ada-exp.y: New file
1350 * ada-lang.c: New file
1351 * ada-lang.h: New file
1352 * ada-lex.c: New file
1353 * ada-lex.l: New file
1354 * ada-tasks.c: New file
1355 * ada-typeprint.c: New file
1356 * ada-valprint.c: New file
1358 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1360 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1361 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1363 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1365 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1366 insetead of ppc-linux-tdep.o.
1367 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1368 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1370 2002-06-02 Andrew Cagney <ac131313@redhat.com>
1372 2002-05-07 Christian Groessler <chris@groessler.org>
1373 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1374 bit register contents for little endian hosts.
1376 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1378 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1381 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1383 * gdbarch.h: Regenerate.
1385 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1387 * MAINTAINERS: Add everyone to write-after-approval list.
1389 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1391 * stack.c (frame_info): Use frame_register_unwind instead of
1392 saved_regs. Mention when the SP is on the stack or in a register.
1394 * frame.h (frame_register_unwind_ftype): Define. Document.
1395 (struct frame_info): Add field register_unwind and
1396 register_unwind_cache.
1397 (frame_register_unwind): Declare.
1398 (generic_unwind_get_saved_register): Declare.
1400 * frame.c (frame_register_unwind): New function.
1401 (generic_unwind_get_saved_register): New function.
1403 * blockframe.c (generic_call_dummy_register_unwind): New function.
1404 (frame_saved_regs_register_unwind): New function.
1405 (set_unwind_by_pc): New function.
1406 (create_new_frame): New function.
1407 (get_prev_frame): New function.
1409 2002-05-30 Andrew Cagney <ac131313@redhat.com>
1411 * a29k-share/: Delete directory.
1412 * remote-vx29k.c: Delete file.
1414 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1416 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1417 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1419 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1421 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1422 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1425 (sparcnbsd-tdep.o): New dependency lists.
1426 * NEWS: Note new UltraSPARC NetBSD native configuration.
1427 * configure.host (sparc64-*-netbsd*): New host.
1428 * configure.tgt (sparc-*-netbsdelf*)
1429 (sparc-*-netbsd*): Set gdb_target to nbsd.
1430 (sparc64-*-netbsd*): New target.
1431 * sparc64nbsd-nat.c: New file.
1432 * sparcnbsd-nat.c: New file.
1433 * sparcnbsd-tdep.c: New file.
1434 * sparcnbsd-tdep.h: New file.
1435 * config/sparc/nbsd.mt: New file.
1436 * config/sparc/nbsd64.mh: New file.
1437 * config/sparc/nbsd64.mt: New file.
1438 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1439 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1441 * config/sparc/nbsdaout.mt: Remove.
1442 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1443 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1445 * config/sparc/nbsdelf.mt: Remove.
1446 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
1447 sparc-nat.c compatiblity defines.
1448 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
1449 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1450 * config/sparc/tm-nbsd64.h: New file.
1451 * config/sparc/tm-nbsdaout.h: Remove.
1452 * config/sparc/xm-nbsd.h: Remove.
1454 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1456 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1457 * sparc-tdep.c: Include osabi.h.
1458 (gdbarch_tdep): Add osabi member.
1459 (_initialize_sparc_tdep): Use gdbarch_register.
1460 (sparc_gdbarch_init): Use generic OS ABI framework.
1461 (sparc_dump_tdep): New function.
1463 2002-05-30 Kevin Buettner <kevinb@redhat.com>
1465 * corefile.c (do_captured_read_memory_integer): Return non-zero
1467 (safe_read_memory_integer): Copy result of memory read when
1468 status is non-zero. Also, add comments.
1470 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
1472 * Makefile.in (ppc_tdep_h): Define.
1475 (rs6000-tdep.o): Use $(ppc_tdep_h).
1478 (ppcnbsd-tdep.o): New dependency lists.
1479 * ppc-tdep.h: Use generic OS ABI framework.
1480 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1481 (ppc_linux_init_abi): New functions.
1482 (ppc_sysv_abi_broken_use_struct_convention)
1483 (ppc_sysv_abi_use_struct_convention)
1484 (ppc_sysv_abi_push_arguments): Move to...
1485 * ppc-sysv-tdep.c: ...here.
1486 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1487 * rs6000-tdep.c (process_note_abi_tag_sections)
1488 (get_elfosabi): Remove.
1489 (rs6000_gdbarch_init): Use generic OS ABI framework.
1490 (rs6000_dump_tdep): New function.
1491 (_initialize_rs6000_tdep): Use gdbarch_register.
1492 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1493 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1494 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1495 of ppc-linux-tdep.o.
1496 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1497 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1498 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1499 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1500 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1501 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1503 2002-05-29 Jim Blandy <jimb@redhat.com>
1505 * macroscope.c (default_macro_scope): Put `void' in empty argument
1508 2002-05-29 Andrew Cagney <ac131313@redhat.com>
1510 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1511 * arch-utils.c: Include "sim-regno.h".
1512 * gdbarch.sh: Don't include "sim-regno.h".
1513 * gdbarch.h, gdbarch.c: Regenerate.
1514 * sim-regno.h (legacy_register_sim_regno): Move declaration from
1516 * arch-utils.h (legacy_register_sim_regno): To here.
1517 * remote-sim.c (legacy_register_sim_regno): Move function from
1519 * arch-utils.c (legacy_register_sim_regno): To here.
1521 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1523 * sim-regno.h: New file.
1524 * Makefile.in (sim_regno_h): Define.
1525 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1526 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1527 (legacy_register_sim_regno): New function.
1528 (one2one_register_sim_regno): New function.
1529 (gdbsim_fetch_register): Rewrite.
1530 (gdbsim_store_register): Only store a register when
1531 REGISTER_SIM_REGNO is valid.
1532 * d10v-tdep.c: Include "sim-regno.h".
1533 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1534 (d10v_ts3_register_sim_regno): Ditto.
1535 * gdbarch.sh: Include "sim-regno.h".
1536 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1537 * gdbarch.h, gdbarch.c: Regenerate.
1538 * arch-utils.h (default_register_sim_regno): Delete declaration.
1539 * arch-utils.c (default_register_sim_regno): Delete function.
1541 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
1543 * ppcnbsd-nat.c: Rewrite.
1544 * ppcnbsd-tdep.c: New file.
1545 * ppcnbsd-tdep.h: New file.
1546 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1547 solib.o, and solib-svr4.o.
1548 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1549 nbsd-tdep.o, and corelow.o.
1551 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1553 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1554 `tr' and `sed'. Mention that `broken' targets are not expected to
1557 2002-05-27 Michal Ludvig <mludvig@suse.cz>
1559 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1560 Let PC point right after the prologue before looking up symbols.
1562 2002-05-27 Martin M. Hunt <hunt@redhat.com>
1564 * i386-tdep.c (i386_register_virtual_type): Return
1565 builtin_type_vec128i for SSE registers.
1567 * gdbtypes.h (builtin_type_vec128i): Declare.
1569 * gdbtypes.c (build_builtin_type_vec128i): New function.
1570 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1571 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1572 (build_gdbtypes): Initialize new builtin vector types.
1573 (_initialize_gdbtypes): Register new vector types with gdbarch.
1575 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1577 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1578 since it has been multi-arch'd.
1579 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1580 Move Alpha and VAX multi-arch news entries to same section
1581 as other multi-arch news.
1583 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1585 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1586 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1587 static. Rename some register numbers to put them in ns32k-tdep
1589 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1590 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1592 (_initialize_ns32k_tdep): Use gdbarch_register.
1593 * ns32k-tdep.h: New file.
1594 * ns32knbsd-tdep.c: New file.
1595 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1596 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1597 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1598 REGISTER_BYTES, REGISTER_BYTE): Remove.
1599 * config/ns32k/tm-ns32k.h: New file.
1600 * config/ns32k/tm-umax.h: Remove.
1602 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1604 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1605 ns32k_store_struct_return, ns32k_extract_return_value,
1606 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1608 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1609 ns32k_saved_pc_after_call.
1610 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1611 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1612 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1613 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1614 ns32k_extract_struct_value_address.
1616 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1618 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1619 ns32k_fix_call_dummy): New.
1620 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1621 ns32k_call_dummy_words.
1622 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1623 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1624 CALL_DUMMY_NARGS): Remove.
1625 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1627 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1629 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1630 ns32k_frame_saved_pc, ns32k_frame_args_address,
1631 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1632 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1633 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1634 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1635 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1636 (BREAKPOINT): Remove..
1637 (FRAME_CHAIN): Define as ns32k_frame_chain.
1638 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1639 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1640 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1641 (FRAME_FIND_SAVED_REGS): Remove.
1642 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1643 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1644 (POP_FRAME): Define as ns32k_pop_frame.
1646 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1648 * ns32k-tdep.c (ns32k_register_byte_32082,
1649 ns32k_register_byte_32382, ns32k_register_raw_size,
1650 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1652 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1653 ns32k_register_byte_32382.
1654 * config/ns32k/tm-umax.h: Update copyright years.
1655 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1656 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1657 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1658 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1659 (ns32k_get_enter_addr): Fix prototype.
1661 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1663 * ns32k-tdep.c: Update copyright years.
1664 (ns32k_register_name_32082): New function.
1665 (ns32k_register_name_32382): Ditto.
1666 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1667 (REGISTER_NAME): Define as ns32k_register_name_32382.
1668 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1669 (REGISTER_NAME): Define as ns32k_register_name_32082.
1671 2002-05-24 Jim Blandy <jimb@redhat.com>
1673 * dwarf2read.c (free_line_header): Use xfree, not free.
1675 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1677 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1678 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1680 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1682 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1684 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1686 From Ross Alexander at NEC Europe:
1687 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1689 2002-05-23 Michael Snyder <msnyder@redhat.com>
1691 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1692 for input, rather than parse_and_eval_address.
1694 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1696 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1697 * Makefile.in (sim_d10v_h): Update definition.
1699 2002-05-24 Andrew Cagney <cagney@redhat.com>
1701 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1702 change `2002-05-22 Michael Snyder' below.
1703 (d10v_push_arguments): Ditto.
1704 (d10v_extract_return_value): Ditto.
1706 2002-05-23 Jim Blandy <jimb@redhat.com>
1708 * macrotab.c (check_for_redefinition): Don't complain if the new
1709 definition is the same as the previous one. Take more arguments
1710 to allow the comparison.
1711 (macro_define_object, macro_define_function): Pass more arguments
1712 to check_for_redefinition.
1714 2002-05-22 Michael Snyder <msnyder@redhat.com>
1716 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1717 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1718 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1719 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1720 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1721 Add a temp variable to save a call (and a memory read).
1722 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1723 if possible (so that PC_IN_CALL_DUMMY will work).
1725 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
1727 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1729 2002-05-22 Michal Ludvig <mludvig@suse.cz>
1731 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1733 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1734 (dwarf2_build_frame_info): Add offset to fde->initial_location
1735 so that frames of shared libraries are mapped correctly.
1736 (execute_stack_op): Change type of 'result' from ULONGEST to
1739 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1741 * config/alpha/tm-nbsd.h: Include solib.h.
1743 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1745 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1746 assumptions about the host's byte order.
1748 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1750 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1752 * alphanbsd-tdep.c: Include solib-svr4.h.
1753 * shnbsd-tdep.c: Ditto.
1755 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1757 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1758 nbsd-tdep.h to dependency list.
1759 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1760 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1761 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1762 nbsdaout.mh and nbsdelf.mh consistently.
1763 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1764 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1765 nbsdaout.mt and nbsdelf.mh consistently.
1766 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1767 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1768 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1769 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1770 a.out shared library stuff from here...
1771 * config/nm-nbsdaout.h: ...to here.
1772 * config/tm-nbsd.h: Remove.
1773 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1774 * config/arm/nbsd.mh: Remove.
1775 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1777 * config/arm/nbsdaout.mh: New file.
1778 * config/arm/nbsdelf.mh: New file.
1779 * config/arm/nm-nbsdaout.h: New file.
1780 * config/i386/nbsd.mh: Remove.
1781 * config/i386/nbsd.mt: Remove.
1782 * config/i386/nbsdaout.mh: New file.
1783 * config/i386/nbsdaout.mt: New file.
1784 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1785 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1786 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1787 i386_register_u_addr): Remove.
1788 * config/i386/nm-nbsdaout.h: New file.
1789 * config/i386/nm-nbsdelf.h: Remove.
1790 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1791 (USE_STRUCT_CONVENTION): Remove.
1792 * config/i386/tm-nbsdaout.h: New file.
1793 * config/i386/tm-nbsdelf.h: Remove.
1794 * config/m68k/nbsd.mh: Remove.
1795 * config/m68k/nbsd.mt: Remove.
1796 * config/m68k/nbsdaout.mh: New file.
1797 * config/m68k/nbsdaout.mt: New file.
1798 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1799 * config/m68k/nm-nbsdaout.h: New file.
1800 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1801 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1802 * config/ns32k/nbsd.mh: Remove.
1803 * config/ns32k/nbsd.mt: Remove.
1804 * config/ns32k/nbsdaout.mh: New file.
1805 * config/ns32k/nbsdaout.mt: New file.
1806 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1807 * config/ns32k/nm-nbsdaout.h: New file.
1808 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1809 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1810 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1811 (SVR4_SHARED_LIBS): Remove.
1812 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1813 * config/sparc/nbsd.mh: Remove.
1814 * config/sparc/nbsd.mt: Remove.
1815 * config/sparc/nbsdaout.mh: New file.
1816 * config/sparc/nbsdaout.mt: New file.
1817 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1818 * config/sparc/nbsdelf.mt: New file.
1819 * config/sparc/nm-nbsdaout.h: New file.
1820 * config/sparc/nm-nbsdelf.h: Remove.
1821 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1822 * config/sparc/tm-nbsdaout.h: New file.
1824 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1826 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1828 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1830 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1832 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1834 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1836 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1838 * NEWS: Note new MIPS NetBSD native configuration.
1839 * configure.host (mips*-*-netbsd*): New host.
1840 * configure.tgt (mips*-*-netbsd*): New target.
1841 * mipsnbsd-nat.c: New file.
1842 * mipsnbsd-tdep.c: New file.
1843 * mipsnbsd-tdep.h: New file.
1844 * config/mips/nbsd.mh: New file.
1845 * config/mips/nbsd.mt: New file.
1846 * config/mips/nm-nbsd.h: New file.
1847 * config/mips/tm-nbsd.h: New file.
1849 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1851 * Makefile.in (SFILES): Add osabi.c.
1852 (COMMON_OBS): Add osabi.o.
1853 (osabi.o): New dependency list.
1854 * osabi.c: New file.
1855 * osabi.h: New file.
1856 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1858 * Makefile.in (alpha_tdep_h): Define and use instead of
1860 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1861 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1863 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1864 * alpha-tdep.h: Include osabi.h.
1865 (alpha_abi): Remove.
1866 (gdbarch_tdep): Use generic OS ABI framework.
1867 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1868 gdbarch_register_osabi.
1869 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1870 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1871 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1873 * Makefile.in (sh_tdep_h): Add osabi.h.
1874 * sh-tdep.h (sh_osabi): Remove.
1875 (gdbarch_tdep): Use generic OS ABI framework.
1876 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1877 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1878 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1879 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1881 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1882 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1883 gdbarch_register_osabi.
1884 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1885 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1886 (get_elfosabi): Rename to...
1887 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1888 ABI framework support routines.
1889 (arm_gdbarch_init): Use generic OS ABI framework.
1890 (arm_dump_tdep): Likewise.
1891 (_initialize_arm_tdep): Likewise.
1892 * arm-tdep.h: Include osabi.h.
1894 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1896 (arm_gdbarch_register_os_abi): Remove prototype.
1897 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1898 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1900 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1901 * mips-tdep.c: Include osabi.h.
1902 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1905 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1907 * h8300-tdep.c: Fix formatting.
1909 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
1911 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1912 printing vector registers.
1914 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1916 From Fernando Nasser:
1917 * remote.c (remote_async_open_1): Re-throw the exception when the
1919 (remote_cisco_open): Ditto.
1920 (remote_open_1): Ditto.
1922 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1924 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1925 (remote_start_remote): Add uiout parameter. Pass through to
1926 remote_start_remote_dummy.
1927 (remote_open_1): Use catch_exception instead of catch_errors.
1928 (remote_async_open_1): Ditto.
1929 (remote_cisco_open): Ditto.
1931 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1933 * remote.c (remote_start_remote): Replace PTR with void pointer.
1934 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1937 2002-05-18 Andrew Cagney <ac131313@redhat.com>
1939 * gdb_indent.sh: Allow the script to be run in the sim directory.
1941 2002-05-18 Mark Kettenis <kettenis@gnu.org>
1943 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1944 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1946 * corelow.c (core_open): Only call set_gdbarch_from_file if
1949 2002-05-17 Andrey Volkov <avolkov@transas.com>
1951 * h8300-tdep.c: Add support of EXR register
1952 * config/h8300/tm-h8300.h: Ditto.
1954 2002-05-17 Andrey Volkov <avolkov@transas.com>
1956 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1958 2002-05-17 Andrey Volkov <avolkov@transas.com>
1960 * h8300-tdep.c: Change literal regnums to REGNO.
1962 2002-05-17 Jim Blandy <jimb@redhat.com>
1964 * NEWS: Note addition of macro support.
1966 Expand preprocessor macros in C expressions.
1967 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1968 (scan_macro_expansion, scanning_macro_expansion,
1969 finished_macro_expansion): New function declarations.
1970 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1971 variable declarations.
1972 * parser-defs.h (expression_context_pc): New declaration.
1973 * parse.c (expression_context_pc): New variable.
1974 (parse_exp_1): Set expression_context_pc, as well as
1975 expression_context_block.
1976 * c-exp.y (yylex): If we're not already reading the result of a
1977 macro expansion, try to macro-expand the next token. When we're
1978 done scanning a macro expansion, switch back to the mainline text.
1979 Commas and `if's in a macro's expansion don't terminate the input.
1980 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1981 (macro_original_text, macro_expanded_text,
1982 expression_macro_lookup_func, expression_macro_lookup_baton): New
1984 (scan_macro_expansion, scanning_macro_expansion,
1985 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1986 c_preprocess_and_parse): New functions.
1987 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1988 c_preprocess_and_parse, instead of c_parse.
1989 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1990 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1992 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1994 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1995 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1996 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1998 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2000 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2002 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2004 * Makefile.in (sh_tdep_h): Define and use.
2005 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2006 register enum): Move to...
2007 * * sh-tdep.h: ...here.
2008 * sh-tdep.c: Include sh-tdep.h.
2009 * sh3-rom.c: Likewise.
2010 * shnbsd-tdep.c: Likewise.
2012 2002-05-16 Michael Snyder <msnyder@redhat.com>
2014 * arm-tdep.c: Spelling fix in comment.
2016 2002-05-16 Jim Blandy <jimb@redhat.com>
2018 Add commands for manually expanding macros and showing their
2020 * macrocmd.c, macroscope.c, macroscope.h: New files.
2021 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2022 (macroscope_h): New variable.
2023 (HFILES_NO_SRCDIR): Add macroscope.h.
2024 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2025 (macroscope.o, macrocmd.o): New rules.
2027 Teach the Dwarf 2 reader to read macro information.
2028 * dwarf2read.c: #include "macrotab.h".
2029 (dwarf_macinfo_buffer): New variable.
2030 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2032 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2033 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2034 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2035 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2036 dwarf2_macro_spaces_in_definition): New complaints.
2037 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2038 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2039 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2040 the partial symbol table.
2041 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2042 from what's recorded in the partial symbol table.
2043 (read_file_scope): If the compilation unit has a
2044 `DW_AT_macro_info' attribute, read its macro information.
2045 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2047 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2050 * ser-tcp.c: Don't include <netinet/udp.h>.
2052 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2054 * MAINTAINERS: Update my email address.
2056 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2058 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2059 include file of the same name.
2061 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2063 * configure.tgt: Mark v850 as multi-arched.
2064 * config/v850/tm-v850.h: Remove file.
2065 * config/v850/v850.mt: Eliminate TM_FILE.
2067 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2069 * v850-tdep.c: Full multi-arch.
2070 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2071 Define GDB_MULTI_ARCH to 2.
2073 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2075 * p-exp.y (current_type): New static variable.
2076 Carries the type of the expression at the position that is parsed.
2077 (push_current_type, pop_current_type): Two new functions. Used
2078 to store/restore current_type in expression on specific tokens.
2079 (search_field): New static variable. Set to one after parsing a point
2080 as at that point only a FIELDNAME token should be searched.
2081 (FIELDNAME): New token. After a point only a token belonging to
2082 current_type type definition is allowed.
2083 (all over token rules): reset and change current_type according
2085 (exp '[' rule): insert implicit array index field if
2086 exp is a pascal string type.
2088 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2090 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2091 frame info. Use frame_info's saved_regs instead of matching member
2092 in extra_frame_info throughout.
2093 (v850_frame_init_saved_regs): New function.
2094 (v850_init_extra_frame_info): Move most functionality into
2095 v850_frame_init_saved_regs().
2096 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2097 (v850_frame_find_saved_regs): Remove declaration.
2098 (FRAME_FIND_SAVED_REGS): Remove definition.
2099 (v850_frame_init_saved_regs): Add declaration.
2100 (FRAME_INIT_SAVED_REGS): Add definition.
2102 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2104 * v850-tdep.c: Begin multi-arch'ing v850.
2105 (v850_target_architecture_hook): Remove function.
2106 (v850_gdbarch_init): New function. Add code previously in
2107 v850_target_architecture_hook().
2108 (_initialize_v850_tdep): Don't set target_architecture_hook.
2109 Call register_gdbarch_init() instead.
2111 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2113 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2114 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2115 (fixup_class_method_type): Likewise.
2117 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2119 From Martin Pool <mbp@samba.org>:
2120 * gdbserver/server.c (gdbserver_usage): New function.
2123 2002-05-15 Jim Blandy <jimb@redhat.com>
2125 Add macro structures to GDB's symbol tables. Nobody puts anything
2127 * symtab.h (struct symtab): New member: `macro_table'.
2128 * buildsym.h (pending_macros): New global variable.
2129 * buildsym.c: #include "macrotab.h".
2130 (buildsym_init): Initialize `pending_macros'.
2131 (end_symtab): If we found macro information while reading a CU's
2132 debugging info, do build a symtab structure for it. Make the
2133 symtab point to the macro information, and clear the
2134 `pending_macros' pointer which held it while we were reading the
2136 (really_free_pendings): Free any pending macro table.
2137 * objfiles.h (struct objfile): New member: `macro_cache'.
2138 * objfiles.c (allocate_objfile): Set allocate and free functions
2139 for the macro cache's objstack.
2140 (free_objfile): Empty the macro cache's obstack.
2141 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2142 set new allocate and free functions for it.
2143 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2144 free functions for the macro cache's objstack. (Why is this
2145 function building its own objfile?)
2146 * symmisc.c (print_objfile_statistics): Print statistics on the
2148 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2150 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2152 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2153 (REGISTER_U_ADDR): Delete definition.
2154 (arm_register_u_addr): Delete declaration.
2156 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2158 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2159 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2161 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2163 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2166 2002-05-14 Andrew Cagney <ac131313@redhat.com>
2168 * regcache.c (register_valid): Revise comments refering to "Not
2169 available" and "unavailable".
2170 * frame.c (frame_register_read): Ditto.
2171 * findvar.c (value_of_register): Ditto.
2173 2002-05-15 Andrew Cagney <cagney@redhat.com>
2175 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2176 (remote-sim.o): Update dependencies.
2177 (d10v-tdep.o): Specify dependencies.
2178 (sim_d10v_h): Define.
2180 2002-05-14 Jim Blandy <jimb@redhat.com>
2182 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2183 * macrotab.c (macro_lookup_inclusion, find_definition,
2184 new_macro_table): Same.
2186 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2187 not `! strcmp ()'. This is a dubious improvement.
2188 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2190 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2191 although it's not necessary, to avoid a warning.
2193 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2195 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2196 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2197 TYPE_INSTANCE_FLAGS.
2198 (struct main_type): New.
2199 (struct type): Move most members to struct main_type. Change
2200 cv_type and as_type to new type_chain member. Add instance_flags.
2201 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2202 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2203 (finish_cv_type): Remove prototype.
2204 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2206 (alloc_type_instance): New function.
2207 (smash_type): New function.
2208 (make_pointer_type, make_reference_type, make_function_type)
2209 (smash_to_member_type, smash_to_method_type): Call smash_type.
2210 (make_qualified_type): New function.
2211 (make_type_with_address_space): Call make_qualified_type.
2212 (make_cv_type): Likewise.
2213 (finish_cv_type): Remove unnecessary function.
2214 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2215 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2216 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2217 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2218 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2219 * hpread.c (hpread_read_struct_type): Likewise.
2220 * stabsread.c (read_struct_type): Likewise.
2222 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
2224 * configure.tgt: Add a catch all sh* target, for cases like
2225 sh[2,3,4]-elf and sh-hms.
2227 2002-05-14 Keith Seitz <keiths@redhat.com>
2229 * event-loop.c (create_file_handler): Don't do anything but
2230 update data when we are given a fd which we are already
2233 2002-05-14 Michal Ludvig <mludvig@suse.cz>
2235 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2236 (update_context): Use __func__ in warnings.
2238 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2240 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2241 and tcp_close to net_open and net_close.
2242 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2243 using UDP if requested. Don't try to disable Nagle on UDP
2245 * remote.c (remote_serial_open): New function. Warn about UDP.
2246 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2248 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2250 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2252 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2254 * configure.tgt: Remove sh-hms target.
2255 * MAINTAINERS: Don't list sh-hms as a separate target.
2257 2002-05-13 Jim Blandy <jimb@redhat.com>
2259 Add first preprocessor macro-expansion files.
2260 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2261 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2262 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2263 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2264 (COMMON_OBS): Add macrotab.o, macroexp.o.
2265 (macroexp.o, macrotab.o): New rules.
2267 2002-05-13 Andrew Cagney <ac131313@redhat.com>
2269 * config/m88k/tm-m88k.h: Update copyright.
2270 (m88k_target_write_pc): Declare
2271 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2272 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2273 (SHIFT_INST_REGS): Update definition.
2274 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2275 using old definition of TARGET_WRITE_PC.
2276 * regcache.c (generic_target_write_pc): Delete code handling
2278 * gdbarch.sh (NNPC_REGNUM): Delete.
2279 * gdbarch.h, gdbarch.c: Regenerate.
2281 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
2283 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2286 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
2288 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2289 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2290 (gen_address_of, gen_struct_ref, gen_repeat): Use type
2292 * c-typeprint.c (cp_type_print_method_args): Likewise.
2293 (c_type_print_args): Likewise.
2294 * d10v-tdep.c (d10v_push_arguments): Likewise.
2295 (d10v_extract_return_value): Likewise.
2296 * expprint.c (print_subexp): Likewise.
2297 * gdbtypes.c (lookup_primitive_typename): Likewise.
2298 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2299 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2300 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2301 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2302 (TYPE_VECTOR): Likewise.
2303 * hpread.c (hpread_read_struct_type)
2304 (fix_static_member_physnames, fixup_class_method_type)
2305 (hpread_type_lookup): Likewise.
2306 * mdebugread.c (parse_symbol, parse_type): Likewise.
2307 * p-lang.c (is_pascal_string_type): Likewise.
2308 * valops.c (hand_function_call): Likewise.
2309 * x86-64-tdep.c (classify_argument): Likewise.
2311 * hpread.c (hpread_read_function_type)
2312 (hpread_read_doc_function_type): Call replace_type.
2313 * dstread.c (create_new_type): Delete.
2314 (decode_dst_structure, process_dst_function): Call alloc_type.
2315 Use type access macros.
2317 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2319 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2320 the're not supported by the current architecture.
2321 (i387_fill_fxsave): Likewise.
2323 2002-05-12 Fred Fish <fnf@redhat.com>
2325 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2326 sect_index_xxx members to index the first slot in section_offsets
2327 if all of the section_offsets are zero.
2329 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2331 * configure.tgt (sparc-*openbsd): Remove entry accidentially
2332 checked in with last change.
2334 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2336 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2337 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2340 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
2342 * Makefile.in: Update dependencies.
2344 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2346 * language.c (local_hex_string_custom): Simplify. Do not depend
2347 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2349 * memattr.c (mem_info_command): Replace calls to
2350 longest_local_hex_string and longest_local_hex_string_custom.
2351 * buildsym.c (make_blockvector): Ditto.
2352 * solib.c (info_sharedlibrary_command): Ditto.
2353 * tracepoint.c (tracepoints_info): Ditto.
2354 * symtab.c (print_msymbol_info): Ditto.
2356 * language.c (local_hex_string): Delete.
2357 (local_hex_string_custom): Delete.
2358 (longest_local_hex_string): Rename to local_hex_string.
2359 (longest_local_hex_string_custom): Rename to
2360 local_hex_string_custom.
2361 * language.h (local_hex_string): Change parameter type to LONGEST.
2362 (local_hex_string_custom): Ditto.
2363 (longest_local_hex_string): Delete declaration.
2364 (longest_local_hex_string_custom): Ditto.
2366 * solib.c: Update copyright.
2367 * memattr.c: Update copyright.
2369 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2371 * arch-utils.h (legacy_register_to_value): Declare.
2372 (legacy_value_to_register): Declare.
2373 (legacy_convert_register_p): Declare.
2374 * arch-utils.c (legacy_register_to_value): New function.
2375 (legacy_value_to_register): New function.
2376 (legacy_convert_register_p): New function.
2378 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2379 (VALUE_TO_REGISTER): Define.
2380 (CONVERT_REGISTER_P): Define.
2381 * gdbarch.h, gdbarch.c: Regenerate.
2383 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2385 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2388 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
2389 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2391 * Makefile.in: Update dependencies for valops.c.
2392 * valops.c: Include "gdb_assert.h".
2393 (typecmp): Skip THIS parameter to methods.
2394 (find_method_list): Remove static_memfuncp argument,
2395 update callers. Check for stub methods.
2396 (find_value_oload_method_list): Don't set *static_memfuncp.
2397 (find_overload_match): Don't check for stub methods. Assert
2398 that methods are not stubbed. Handle static methods.
2399 (value_find_oload_method_list): Remove static_memfuncp argument.
2400 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2401 to the argument list for static stub methods.
2402 * value.h (value_find_oload_method_list): Update prototype.
2404 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2406 * arch-utils.h (generic_register_size): Declare.
2407 (generic_register_raw_size, generic_register_virtual_size): Delete
2409 * arch-utils.c (generic_register_raw_size): Delete.
2410 (generic_register_size): New function.
2411 (generic_register_virtual_size): Delete.
2413 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2414 default generic_register_size.
2415 * gdbarch.h, gdbarch.c: Re-generate.
2417 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2418 register_virtual_size.
2419 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2420 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2422 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2424 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2425 * gdbarch.h, gdbarch.c: Regenerate.
2426 * gnu-v3-abi.c: Update copyright.
2427 (vtable_address_point_offset): Update.
2428 (gnuv3_rtti_type): Update.
2429 (gnuv3_baseclass_offset): Update.
2430 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2431 (init_fetch_link_map_offsets): Update.
2432 * remote.c (get_remote_state): Update.
2434 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
2436 * TODO: Remove value_headof/value_from_vtable_info comment.
2437 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2438 * values.c (value_headof, value_from_vtable_info): Delete.
2439 * value.h (value_from_vtable_info): Delete prototype.
2441 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2443 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2444 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2446 (gdb_assert_h): Define.
2447 (gdb_wait_h): Define.
2448 (gdb_regex_h): Define.
2450 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
2452 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2453 * linespec.c (find_methods): Handle GCC 3.x template constructors.
2455 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2457 * nbsd-tdep.c: Fix comment.
2459 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2461 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2462 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2463 (nbsd-tdep.o): New dependency list.
2464 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
2466 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2467 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2468 * nbsd-tdep.c: New file.
2469 * nbsd-tdep.h: New file.
2470 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
2472 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2473 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2474 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2475 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2477 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2479 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2480 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2481 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2482 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2483 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2484 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2486 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2488 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2489 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2490 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2491 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2492 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2493 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2494 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2496 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2498 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
2499 fetch_elfcore_registers to...
2500 * i386nbsd-tdep.c: ...here.
2501 (i386nbsd_use_struct_convention): Rename to...
2502 (i386nbsd_aout_use_struct_convention): ...this.
2503 (i386nbsd_supply_reg): New function.
2504 (i386nbsd_fill_reg): New function.
2505 (fetch_core_registers): Use i386nbsd_supply_reg.
2506 (fetch_elfcore_registers): Likewise.
2507 (_initialize_i386nbsd_tdep): New function.
2508 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2509 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2510 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2511 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2512 (i386nbsd_aout_use_struct_convention): ...this.
2514 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2516 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2517 (store_inferior_registers): Use shnbsd_fill_reg.
2518 * shnbsd-tdep.c (sh_nbsd_supply_registers,
2519 sh_nbsd_supply_register): Collapse into...
2520 (shnbsd_supply_reg): ...this.
2521 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2522 (shnbsd_fill_reg): ...this.
2523 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2524 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2525 (fetch_core_registers): Use shnbsd_supply_reg.
2526 (fetch_elfcore_registers): Use shnbsd_supply_reg.
2527 (sh_nbsd_core_fns): Rename to...
2528 (shnbsd_core_fns): ...this.
2529 (sh_nbsd_elfcore_fns): Rename to...
2530 (shnbsd_elfcore_fns): ...this.
2531 (sh_nbsd_init_abi): Rename to...
2532 (shnbsd_init_abi): ...this.
2533 (_initialize_sh_nbsd_tdep): Rename to...
2534 (_initialize_shnbsd_tdep): ...this.
2535 * shnbsd-tdep.h (sh_nbsd_supply_registers,
2536 sh_nbsd_supply_register, sh_nbsd_fill_registers,
2537 sh_nbsd_fill_register): Remove prototypes.
2538 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2540 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2542 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2543 (i387-nat.o): Delete dependency list.
2544 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2545 (x86-64-linux-nat.o): Likewise.
2546 * i387-nat.c: Delete file, moving contents to...
2547 * i387-tdep.c: ...here.
2548 * i387-nat.h: Rename...
2549 * i387-tdep.h: ...to this.
2550 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2551 * i386-linux-nat.c: Likewise.
2552 * i386bsd-nat.c: Likewise.
2553 * i386gnu-nat.c: Likewise.
2554 * i386nbsd-nat.c: Likewise.
2555 * i386v4-nat.c: Likewise.
2556 * x86-64-linux-nat.c: Likewise.
2557 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2558 * config/i386/go32.mh (NATDEPFILES): Likewise.
2559 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2560 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2561 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2562 * config/i386/linux.mh (NATDEPFILES): Likewise.
2563 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2564 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2565 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2566 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2568 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2570 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2571 (alphanbsd-nat.o): Remove dependency list.
2572 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2573 * alphanbsd-nat.c: Delete. Contents moved to...
2574 * alphanbsd-tdep.c: ...here.
2575 (_initialize_alphanbsd_tdep): Register core functions.
2576 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2578 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2580 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2581 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2582 (alphanbsd-nat.o): Likewise.
2583 (alphabsd-tdep.o): New dependency list.
2584 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2585 (fill_gregset): Use alphabsd_fill_reg.
2586 (supply_fpregset): Use alphabsd_supply_fpreg.
2587 (fill_fpregset): Use alphabsd_fill_fpreg.
2588 (fetch_inferior_registers): Use struct reg and struct fpreg
2589 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2590 and alphabsd_supply_fpreg.
2591 (store_inferior_registers): Use struct reg and struct fpreg
2592 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2593 and alphabsd_fill_fpreg.
2594 * alphabsd-tdep.c: New file.
2595 * alphabsd-tdep.h: New file.
2596 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2597 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2598 alphabsd_supply_fpreg.
2599 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2600 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2602 2002-05-11 Eric Christopher <echristo@redhat.com>
2604 * mips-tdep.c (mips_double_register_type): Fix thinko.
2605 (mips_single_register_type): Ditto.
2606 * MAINTAINERS: Add self.
2608 2002-05-11 Mark Kettenis <kettenis@gnu.org>
2610 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2611 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2612 right thing on architectures with different endianness and/or
2615 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
2617 From Christian Limpach <chris@Pin.LU>
2618 * configure.in: Change sed expression which comments out
2619 NATDEPFILES to also comment out continuation lines.
2620 * configure: Regenerate.
2622 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2624 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2627 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2629 * sh-tdep.c: Include correct file.
2631 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2633 New support for sh64-elf (sh5) target.
2635 * configure.tgt: For sh64-elf target, default to sh-elf.
2637 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2638 (struct gdbarch_tdep): Add new fields for new registers and ABI
2641 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2642 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2643 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2644 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2645 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2646 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2647 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2648 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2649 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2650 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2651 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2652 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2653 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2654 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2655 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2656 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2657 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2658 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2659 sign_extend, sh64_nofp_frame_init_saved_regs,
2660 sh64_init_extra_frame_info, sh64_get_saved_register,
2661 sh64_extract_struct_value_address, sh64_pop_frame,
2662 sh64_push_arguments, sh64_extract_return_value,
2663 sh64_store_return_value, sh64_show_media_regs,
2664 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2665 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2666 sh_sh64_register_virtual_type,
2667 sh_sh64_register_convert_to_virtual,
2668 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2669 sh64_register_read, sh64_pseudo_register_write,
2670 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2671 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2672 sh64_do_pseudo_register, sh_compact_do_registers_info,
2673 sh64_do_registers_info, sh_gdbarch_init): New functions.
2675 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2677 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2679 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
2681 * linespec.c (decode_line_1): Check for a double quote after
2682 a filename correctly.
2684 2002-05-10 Jim Blandy <jimb@redhat.com>
2686 Properly track the size of the current objfile's .debug_line section.
2687 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2688 (DWARF_LINE_SIZE): New macro.
2689 (dwarf2_build_psymtabs_hard): Record the line section's size in
2690 the partial symbol table.
2691 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2694 2002-05-10 Petr Sorfa <petrs@caldera.com>
2696 * ia64-tdep.c: Handle breakpoints on L instruction type
2697 in MLX instruction bundle by moving the breakpoint to
2698 the third slot (X instruction type) as L holds only data.
2700 2002-05-10 Kevin Buettner <kevinb@redhat.com>
2702 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2703 (process_one_symbol): Complain about discarding local symbols
2704 due to a misplaced N_LBRAC entry.
2706 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
2708 From Daniel Berlin <dan@cgsoftware.com>
2709 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2710 decrease the depth we are at, in the case of templates.
2712 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2714 * mips-tdep.c (mips_float_register_type): New function.
2715 (mips_double_register_type): New function.
2716 (mips_print_register): Use them.
2717 (do_fp_register_row): Likewise.
2719 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2721 * signals/signals.c (signals): Remove conditional compilation around
2722 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
2723 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2725 2002-05-09 Michael Snyder <msnyder@redhat.com>
2727 * remote-rdp.c (remote_rdp_can_run): Remove.
2729 2002-05-09 Tom Tromey <tromey@redhat.com>
2731 * jv-valprint.c (java_val_print): Handle `char' as a special case
2734 2002-05-09 Michael Snyder <msnyder@redhat.com>
2736 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2737 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2738 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2739 str r(0123),[sp,#nn].
2740 (arm_skip_prologue): Ditto. Also make disassembly
2741 order-independent by placing it in a loop.
2743 2002-05-06 Michael Snyder <msnyder@redhat.com>
2745 * stabsread.c (read_type): Add recognition for new attribute:
2746 "@V;" means that an array type is actually a vector.
2747 This is analogous to the vector flag that's been added to dwarf2.
2749 2002-05-09 Mark Kettenis <kettenis@gnu.org>
2751 * i386-tdep.h (i386_abi): New enum.
2752 (struct gdbarch_tdep): Replace os_ident member with abi.
2753 (i386_gdbarch_register_os_abi): New prototype.
2754 * i386-tdep.c (i386_abi_names): New array.
2755 (process_note_abi_tag_sections): Removed.
2756 (process_note_sections): New function.
2757 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2758 (struct i386_abi_handler): New struct.
2759 (i386_abi_handler_list): New variable.
2760 (i386_gdbarch_register_os_abi): New function.
2761 (i386_gdbarch_init): Adapt for the changes given above.
2763 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
2765 * gregset.h: Say "GNU/Linux".
2767 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
2769 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2770 (build_gdbtypes): Build builtin_type_v2_float.
2771 (_initialize_gdbtypes): Register new builtin type.
2773 2002-05-08 Andrew Cagney <ac131313@redhat.com>
2775 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2776 (clear_gdbarch_swap): New function.
2777 (initialize_non_multiarch): Call.
2778 (gdbarch_update_p): Before calling init(), swap out and clear the
2779 existing architecture.
2780 * gdbarch.c: Regenerate.
2782 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2784 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2787 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2789 * sh-nbsd-nat.c: Rename to...
2790 * shnbsd-nat.c: ...this.
2791 * sh-nbsd-tdep.c: Rename to...
2792 * shnbsd-tdep.c: ...this.
2793 * sh-nbsd-tdep.h: Rename to...
2794 * shnbsd-tdep.h: ...this.
2795 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2796 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2798 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
2800 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2801 concatenation for command help messages.
2803 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2805 * NEWS: Note new sh*-*-netbsdelf* configuration.
2806 * configure.host: Set gdb_host_cpu to sh for all sh*.
2807 (sh*-*-netbsdelf*): New host.
2808 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2809 (sh*-*-netbsdelf*): New target.
2810 * sh-nbsd-nat.c: New file.
2811 * sh-nbsd-tdep.c: New file.
2812 * sh-nbsd-tdep.h: New file.
2813 * config/sh/nbsd.mh: New file.
2814 * config/sh/nbsd.mt: New file.
2815 * config/sh/nm-nbsd.h: New file.
2816 * config/sh/tm-nbsd.h: New file.
2818 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2820 * sh-tdep.c (sh_osabi_names): Declare.
2821 (process_note_abi_tag_sections): New function.
2822 (get_elfosabi): Ditto.
2823 (sh_gdbarch_register_os_abi): Ditto.
2824 (sh_dump_tdep): Ditto.
2825 _initialize_sh_tdep): Use gdbarch_register to register
2826 sh_gdbarch_init and sh_dump_tdep.
2827 * config/sh/tm-sh.h (sh_osabi): Declare.
2828 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2830 2002-05-07 Andrew Cagney <ac131313@redhat.com>
2832 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2833 (thumb_scan_prologue): Ditto.
2834 (arm_find_callers_reg): Ditto.
2835 (arm_frame_chain): Ditto.
2836 (arm_init_extra_frame_info): Ditto.
2837 (arm_frame_saved_pc): Ditto.
2838 (arm_pop_frame): Ditto.
2839 (arm_push_return_address): New function.
2840 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2841 call_dummy_location, call_dummy_breakpoint_offset_p,
2842 call_dummy_breakpoint_offset, call_dummy_p,
2843 call_dummy_stack_adjust_p, call_dummy_words,
2844 sizeof_call_dummy_words, call_dummy_start_offset,
2845 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2846 call_dummy_address, push_return_address and push_dummy_frame for
2847 generic dummy frames.
2849 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2851 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2852 size computation for alloca.
2853 (sh_fp_frame_init_saved_regs): Likewise.
2855 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
2857 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2858 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2859 * arm-tdep.c (arm_store_return_value): Use them.
2860 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2861 * remote-rdp.c (remote_rdp_fetch_register): Use
2862 ARM_MAX_REGISTER_RAW_SIZE.
2863 (remote_rdp_store_register): Likewise.
2865 2002-05-07 Michal Ludvig <mludvig@suse.cz>
2867 * dwarf2cfi.c: Code cleanup, removed unused variables,
2868 added default labels to switch {} statements.
2869 * x86-64-tdep.c: Ditto.
2870 * x86-64-linux-nat.c: Ditto.
2872 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2874 * solib.h: Protect against multiple inclusion.
2876 2002-05-06 Jim Blandy <jimb@redhat.com>
2878 Add first preprocessor macro-expansion files.
2879 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2880 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2881 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2882 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2883 (COMMON_OBS): Add macrotab.o, macroexp.o.
2884 (macroexp.o, macrotab.o): New rules.
2886 Separate the job of reading the line number info statement program
2887 header (...expialidocious) out into its own function.
2888 * dwarf2read.c (struct line_head, struct filenames, struct
2889 directories): Replace with...
2890 (struct line_header): New structure, containing the full
2891 contents of the statement program header, including the
2892 include directory and file name tables.
2893 (read_file_scope): If we have line number info, instead of just
2894 calling dwarf_decode_lines to do all the work, call
2895 dwarf_decode_line_header first to get a `struct line_header'
2896 containing the data in the statement program header, and then
2897 pass that to dwarf_decode_lines, which will pick up where that
2898 left off. Be sure to clean up the `struct line_header' object.
2899 (dwarf_decode_line_header, free_line_header, add_include_dir,
2900 add_file_name): New functions.
2901 (dwarf_decode_lines): Move all the code to read the statement
2902 program header into dwarf_decode_line_header. Take the line
2903 header it built as the first argument, instead of the offset to
2904 the compilation unit's line number info. Use the new `struct
2905 line_header' type instead of the old structures. No need to do
2906 cleanups here now, since we don't allocate anything.
2907 (dwarf2_statement_list_fits_in_line_number_section,
2908 dwarf2_line_header_too_long): New complaints.
2910 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
2912 * gdbtypes.c (init_vector_type): New function.
2913 (build_builtin_type_vec128): Simplify the representation of SIMD
2915 (build_gdbtypes): Initialize new builtin vector types.
2916 (_initialize_gdbtypes): Register new vector types with gdbarch.
2917 (builtin_type_v4_float, builtin_type_v4_int32,
2918 builtin_type_v8_int16, builtin_type_v16_int8,
2919 builtin_type_v2_int32, builtin_type_v4_int16,
2920 builtin_type_v8_int8): New (renamed) SIMD types.
2922 2002-05-06 Mark Kettenis <kettenis@gnu.org>
2924 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2925 (i387_fill_fxsave): Likewise.
2927 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
2929 * alpha-tdep.c (alpha_extract_return_value): Don't use
2930 non-constant array size in prototype.
2932 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2934 From Brian Taylor <briant at model dot com>:
2935 * ui-out.c (ui_out_field_core_addr): Use the function
2936 longest_local_hex_string_custom'to format addresses > 32 bits
2939 * ui-out.c (ui_out_field_core_addr): Update comment.
2941 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2943 * stack.c (select_and_print_frame): Make static. Delete the
2945 (func_command): Update call.
2946 (select_frame_command): Delete code computing the frame level.
2947 * frame.h (select_and_print_frame): Delete declaration.
2949 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2951 * sparc-tdep.c (sparc_get_saved_register): Comment why
2952 get_prev_frame call is safe.
2954 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2956 * frame.h (select_frame): Delete level parameter.
2957 * stack.c (select_frame): Update. Use frame_relative_level to
2958 obtain the frame's level.
2959 (select_and_print_frame): Update call.
2960 (select_frame_command): Ditto.
2961 (up_silently_base): Ditto.
2962 (down_silently_base): Ditto.
2963 * ocd.c (ocd_start_remote): Ditto.
2964 * remote-rdp.c (remote_rdp_open): Ditto.
2965 * remote-mips.c (mips_initialize): Ditto.
2966 (common_open): Ditto.
2967 * remote-e7000.c (e7000_start_remote): Ditto.
2968 * m3-nat.c (select_thread): Ditto.
2969 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2970 (child_get_current_exception_event): Ditto.
2971 * varobj.c (varobj_create): Ditto.
2972 (varobj_update): Ditto.
2973 (c_value_of_root): Ditto.
2974 * tracepoint.c (finish_tfind_command): Ditto.
2975 * corelow.c (core_open): Ditto.
2976 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2977 * thread.c (info_threads_command): Ditto.
2978 (switch_to_thread): Ditto.
2979 * infrun.c (normal_stop): Ditto.
2980 (restore_selected_frame): Ditto.
2981 (restore_inferior_status): Ditto.
2982 * breakpoint.c (insert_breakpoints): Ditto.
2983 (watchpoint_check): Ditto.
2984 (bpstat_stop_status): Ditto.
2985 (do_enable_breakpoint): Ditto.
2986 * blockframe.c (flush_cached_frames): Ditto.
2987 (reinit_frame_cache): Ditto.
2989 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2991 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2994 2002-05-04 Jim Blandy <jimb@redhat.com>
2996 * gdbtypes.c (replace_type): Doc fix.
2998 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3000 * valprint.c (strcat_longest): Delete commented out function.
3003 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3005 * MAINTAINERS: Mark a29k as deleted.
3006 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3007 Move new configurations to the top.
3008 * configure.tgt: Remove a29k.
3009 * config/a29k/tm-vx29k.h: Delete.
3010 * config/a29k/vx29k.mt: Delete.
3011 * config/a29k/tm-a29k.h: Delete.
3012 * config/a29k/a29k-udi.mt: Delete.
3013 * config/a29k/a29k.mt: Delete.
3014 * a29k-tdep.c: Delete.
3015 * remote-udi.c: Delete.
3016 * remote-mm.c: Delete.
3017 * remote-eb.c: Delete.
3018 * remote-adapt.c: Delete.
3019 * Makefile.in: Remove obsolete code.
3020 * gdbserver/Makefile.in: Ditto.
3021 * config/s390/s390x.mt: Ditto.
3022 * config/s390/s390.mt: Ditto.
3023 * config/sparc/sparclynx.mh: Ditto.
3024 * config/sparc/linux.mh: Ditto.
3025 * config/pa/hppaosf.mh: Ditto.
3026 * config/pa/hppabsd.mh: Ditto.
3027 * config/ns32k/nbsd.mt: Ditto.
3028 * config/mips/vr5000.mt: Ditto.
3029 * config/m68k/sun3os4.mh: Ditto.
3030 * config/m68k/nbsd.mt: Ditto.
3031 * config/m68k/m68klynx.mh: Ditto.
3032 * config/m32r/m32r.mt: Ditto.
3033 * config/i386/x86-64linux.mt: Ditto.
3034 * config/i386/nbsdelf.mt: Ditto.
3035 * config/i386/nbsd.mt: Ditto.
3036 * config/i386/i386lynx.mh: Ditto.
3038 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3040 * target.c (debug_print_register): New function. Handle oversize
3042 (debug_to_fetch_registers): Call.
3043 (debug_to_store_registers): Call.
3045 2002-05-03 Jim Blandy <jimb@redhat.com>
3047 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3048 (read_type): Doc fix.
3049 * gdbtypes.c (replace_type): Doc fix.
3051 * stabsread.c (multiply_defined_struct): New complaint.
3052 (read_struct_type): If the type we were passed isn't empty, or
3053 incomplete, don't read the new struct type into it; complain,
3054 and return the original type unchanged. Take a new `type_code'
3055 argument, which is the type code for the new type.
3056 (read_type): Rather than storing the type's type code here, pass
3057 it as an argument to read_struct_type, and let that take care of
3058 storing it. That way, we don't overwrite the original type code,
3059 so read_struct_type can use it to decide whether we're overwriting
3060 something we shouldn't.
3061 (complain_about_struct_wipeout): New function.
3063 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3065 * gdbarch.sh: Assert that gdbarch is non-NULL.
3066 * gdbarch.c: Regenerate.
3068 2002-05-03 Jason Merrill <jason@redhat.com>
3070 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3073 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3075 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3076 (x86_64_dwarf2gdb_regno_map_length),
3077 (x86_64_dwarf2_reg_to_regnum): Added.
3078 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3079 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3080 (_initialize_x86_64_tdep): Synced with the change above.
3081 (x86_64_skip_prologue): Reformulated message.
3083 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3085 * f-exp.y: Also use new prev_lexptr variable
3086 to improve error reporting. Based on Michael Snyder
3087 2002-04-24 dated patch to c-exp.y.
3088 * jv-exp.y: Likewise.
3089 * m2-exp.y: Likewise.
3091 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3093 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3094 we are dealing with vectors.
3096 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3098 * config/m68k/tm-nbsd.h: Obvious fix,
3099 correct machine name.
3101 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3103 * p-typeprint.c (pascal_type_print_base): Add support
3104 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3106 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3108 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3109 for fondamental pascal 'char' type.
3111 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3113 * p-lang.h (is_pascal_string_type): Declaration changed,
3114 new sixth argument of type char ** added.
3115 * p-lang.c (is_pascal_string_type): Implementation
3116 changed. Args length_pos, length_size, string_pos, char_size
3117 can now be NULL. New argument arrayname set to the field
3118 name of the char array. Return value set to char array
3119 field index plus one.
3120 * p-valprint.c (pascal_val_print): Adapt to new declaration of
3121 is_pascal_string_type function.
3123 2002-05-02 Andrew Cagney <cagney@redhat.com>
3125 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3126 <cagney@redhat.com> change.
3127 * gdbarch.c: Regenerate.
3129 2002-05-02 Andrew Cagney <cagney@redhat.com>
3131 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3132 before probing for a new one. Detect errorenous gdbarch_init
3134 * gdbarch.c: Regenerate.
3136 2002-05-01 Andrew Cagney <cagney@redhat.com>
3138 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3139 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3140 * config/v850/tm-v850.h: Ditto. Update copyright.
3142 2002-04-30 Andrew Cagney <ac131313@redhat.com>
3144 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3147 2002-04-30 Michael Snyder <msnyder@redhat.com>
3149 * arm-tdep.c: Whitespace clean-ups.
3150 (arm_skip_prologue): Fix thinko; two lines
3151 should have been removed as part of 4/24 change.
3153 2002-04-30 Kevin Buettner <kevinb@redhat.com>
3155 * rs6000-tdep.c: Added comment describing how fpscr register
3156 numbers were chosen.
3158 2002-04-30 Michael Snyder <msnyder@redhat.com>
3160 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3162 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3164 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3165 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3166 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3168 2002-04-29 Kevin Buettner <kevinb@redhat.com>
3170 From Louis Hamilton <hamilton@redhat.com>:
3171 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3172 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3173 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3174 not bfd-private xcoff data, to determine wordsize.
3175 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3177 2002-04-29 Andrew Cagney <ac131313@redhat.com>
3179 GDB 5.2 released from 5.2 branch.
3181 2002-04-29 Michal Ludvig <mludvig@suse.cz>
3183 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3184 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3185 (x86_64_register_info_table): Added comments with register numbers.
3187 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3189 * rs6000-tdep.c (rs6000_extract_return_value,
3190 rs6000_store_return_value): Handle returning vectors.
3191 (rs6000_gdbarch_init): Use
3192 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3193 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3195 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3197 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3198 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
3200 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3202 * hpread.c (hpread_psymtab_to_symtab_1,
3203 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3204 with fprintf_unfiltered (gdb_stderr,...).
3206 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3208 * remote-array.c (printf_monitor, write_monitor,
3209 array_insert_breakpoint, array_remove_breakpoint ):
3210 Replace fprintf (stderr,...
3211 with fprintf_unfiltered (gdb_stderr,....
3212 * remote-es.c: Likewise.
3213 * remote-os9k.c: Likewise.
3214 * remote-st.c: Likewise.
3216 2002-04-28 Andreas Schwab <schwab@suse.de>
3218 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3219 linux-proc.o and gcore.o.
3221 2002-04-26 Michal Ludvig <mludvig@suse.cz>
3223 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3224 code without frame pointers.
3226 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3228 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3231 2002-04-26 Ben Elliston <bje@redhat.com>
3233 * target.c (do_xfer_memory): Correct reference to the new option
3234 "trust-readonly-sections".
3236 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
3238 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3239 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3240 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3242 (read_array_type): Record the fact that this array type is really a
3243 vector (i.e. are passed in by value).
3245 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3247 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3248 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3249 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3250 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3251 * alpha-linux-tdep.c: Include frame.h.
3252 (alpha_linux_sigcontext_addr): New function.
3253 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3254 alpha_linux_sigcontext_addr.
3255 * alpha-osf1-tdep.c: Include gdbcore.h.
3256 (alpha_osf1_sigcontext_addr): New function.
3257 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3258 alpha_osf1_sigcontext_addr.
3259 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3260 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3262 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3264 * stack.c (selected_frame_level):
3265 (select_frame): Do not set selected_frame_level.
3266 * frame.h (selected_frame_level): Delete declaration.
3268 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3270 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3271 convert_from_func_ptr-addr when AIX / PowerOpen.
3273 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3275 * valops.c (hand_function_call): Call
3276 generic_save_call_dummy_addr.
3277 * frame.h (generic_save_call_dummy_addr): Declare.
3278 * blockframe.c (struct dummy_frame): Add fields call_lo and
3280 (generic_find_dummy_frame): Check for PC in range call_lo to
3281 call_hi instead of entry_point_address.
3282 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3283 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3284 (generic_save_call_dummy_addr): New function.
3286 2002-04-24 David S. Miller <davem@redhat.com>
3288 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3289 sparc_skip_prologue.
3290 (sparc_skip_prologue): Kill frameless_p arg, and use line number
3291 information to find prologue when possible.
3292 (sparc_prologue_frameless_p): Call examine_prologue directly.
3293 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3294 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3296 (SKIP_PROLOGUE): Likewise.
3298 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3300 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3301 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3302 indicate that the condition it was testing is always true.
3303 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3304 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3305 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3307 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3309 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3310 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3311 tdep->jb_pc and tdep->jb_elt_size.
3312 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3313 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3314 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3315 * alpha-nat.c (get_longjmp_target): Remove.
3316 (JB_ELEMENT_SIZE): Ditto.
3318 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3319 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3320 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3321 to alpha_get_longjmp_target.
3322 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3323 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3324 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3326 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3328 * README: Update to GDB 5.2.
3330 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3332 * gdbarch.sh (LC_ALL): Set to `c'.
3334 2002-04-25 Theodore A. Roth <troth@verinet.com>
3336 * avr-tdep.c: Ran through gdb_indent.sh.
3338 2002-04-25 Theodore A. Roth <troth@verinet.com>
3340 * MAINTAINERS: Add myself as AVR maintainer.
3341 * NEWS: Note new target avr.
3343 2002-04-25 Theodore A. Roth <troth@verinet.com>
3345 * Makefile.in: Add support for AVR target.
3346 * configure.tgt: Add support for AVR target.
3347 * avr-tdep.c: New file
3348 * config/avr/avr.mt: New file.
3350 2002-04-25 Theodore A. Roth <troth@verinet.com>
3352 * MAINTAINERS: Add myself to write-after-approval.
3354 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3356 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3357 with fprintf_unfiltered (gdb_stderr,....
3359 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3362 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3364 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3366 * p-exp.y: Also use new prev_lexptr variable
3367 to improve error reporting. Based on Michael Snyder
3368 2002-04-24 dated patch to c-exp.y.
3370 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3372 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3373 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3374 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3376 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3378 (FUNCTION_START_OFFSET): Remove.
3379 (BREAKPOINT): Ditto.
3381 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3383 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3386 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3388 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3389 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3390 alpha_linux_pc_in_sigtramp.
3391 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3392 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3393 alpha_osf1_pc_in_sigtramp.
3394 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3395 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3396 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3397 alphafbsd_pc_in_sigtramp.
3398 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3399 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3400 alphanbsd_pc_in_sigtramp.
3401 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3402 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3404 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3406 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3408 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3410 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3412 (alphanbsd-nat.o): New dependency list.
3413 (alphanbsd-tdep.o): Ditto.
3414 * NEWS: Note new native NetBSD/alpha configuration.
3415 * alphanbsd-nat.c: New file.
3416 * alphanbsd-tdep.c: Ditto.
3417 * configure.host (alpha*-*-netbsd*): New host.
3418 * configure.tgt (alpha*-*-netbsd*): New target.
3419 * config/alpha/nbsd.mh: New file.
3420 * config/alpha/nbsd.mt: Ditto.
3421 * config/alpha/nm-nbsd.h: Ditto.
3422 * config/alpha/tm-nbsd.h: Ditto.
3424 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3426 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3427 (alpha-osf1-tdep.o): New dependency list.
3428 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3429 and skip_sigtramp_frame members.
3430 * alpha-linux-tdep.c: Include gdbcore.h.
3431 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3432 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3433 * alpha-osf1-tdep.c: New file.
3434 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3436 (alpha_frame_past_sigtramp_frame): New function.
3437 (alpha_dynamic_sigtramp_offset): Ditto.
3438 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3439 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3440 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3441 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3442 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3443 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3444 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3445 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3446 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3447 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3448 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
3449 to find_solib_trampoline_target.
3450 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3451 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3452 (SKIP_TRAMPOLINE_CODE): Remove.
3453 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3454 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3455 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3456 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3457 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3458 (PROC_SIGTRAMP_MAGIC): Ditto.
3459 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3460 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3461 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3462 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3463 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3465 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3467 * NEWS: Note that Alpha targets are now multi-arch.
3469 2002-04-24 Michael Snyder <msnyder@redhat.com>
3471 * parser-defs.h (prev_lexptr): New external variable.
3472 * parse.c (parse_exp_1): Set prev_lexptr to null before
3473 calling the language-specific parser.
3474 * c-exp.y (yylex): Set prev_lexptr to start of current token.
3475 (yyerror): Use prev_lexptr in error reporting.
3477 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
3479 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3480 * gregset.h: If FILL_FPXREGSET is defined, provide
3481 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3482 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3483 is defined, call fill_fpxregset.
3485 2002-04-24 Roland McGrath <roland@frob.com>
3487 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3488 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3489 (supply_gregset, supply_fpregset): New functions.
3491 * gnu-nat.c (gnu_find_memory_regions): New function.
3492 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3493 (gnu_xfer_memory): Add a cast.
3495 2002-04-24 Michael Snyder <msnyder@redhat.com>
3497 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
3498 loop. Add handling for "str lr, [sp, #-4]!" and for saves
3499 of argument regs ("str r(0123), [r11, #-nn"]).
3500 (arm_skip_prologue): Better handling for frameless functions.
3501 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
3502 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3504 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
3506 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3507 NUM_PSEUDO_REGS can be used.
3509 2002-04-24 Andrew Cagney <ac131313@redhat.com>
3511 * arch-utils.h: Update copyright.
3513 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3514 * gdbarch.h, gdbarch.c: Re-generate.
3516 * inferior.h (IN_SIGTRAMP): Delete definition.
3517 * arch-utils.c (legacy_pc_in_sigtramp): New function.
3518 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3520 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3521 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3522 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
3523 (find_proc_framesize): Ditto.
3524 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3525 (alpha_init_extra_frame_info): Ditto.
3526 * infrun.c (handle_inferior_event): Ditto.
3527 (handle_inferior_event): Ditto.
3528 (check_sigtramp2): Ditto.
3529 * blockframe.c (create_new_frame): Ditto.
3530 (get_prev_frame): Ditto.
3531 * ppc-linux-tdep.c: Update comments.
3532 * i386-linux-tdep.c: Update comments.
3533 * breakpoint.c (bpstat_what): Update comment.
3535 2002-04-24 Michal Ludvig <mludvig@suse.cz>
3537 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
3538 (regsets_store_inferior_registers): Removed cast to int from
3540 * gdbserver/regcache.h: Added declaration of struct inferior_info.
3542 2002-04-24 David S. Miller <davem@redhat.com>
3544 * i960-tdep.c (register_in_window_p): New function.
3545 (i960_find_saved_register): Use it instead of
3546 REGISTER_IN_WINDOW_P.
3547 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3549 * symtab.h (find_stab_function_addr): Kill extern.
3550 * minsyms.c (find_stab_function_addr): Remove from here...
3551 * dbxread.c: ... to here, and mark it static.
3553 2002-04-20 David S. Miller <davem@redhat.com>
3555 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3556 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3558 2002-04-21 David S. Miller <davem@redhat.com>
3560 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3561 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3562 (vx_write_register): Likewise.
3564 2002-04-23 J. Brobecker <brobecker@gnat.com>
3566 * source.c (is_regular_file): New function.
3567 (openp): Check wether file to open is a regular file
3568 to avoid opening directories.
3570 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3572 * findvar.c (extract_signed_integer): Cast printf argument
3573 to suppress format warning.
3574 (extract_unsigned_integer): Likewise.
3575 * infcmd.c (registers_info): Likewise.
3576 * top.c (get_prompt_1): Likewise.
3577 * valops.c (value_assign): Likewise.
3578 * valprint.c (print_decimal): Likewise.
3580 2002-04-22 H.J. Lu (hjl@gnu.org)
3582 * c-exp.y (typebase): Support
3584 [long|long long|short] [signed|unsigned] [int|]
3588 signed [long|long long|short] int
3590 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3592 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3594 * vax-tdep.h: New file.
3595 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3596 Make several routines static.
3597 (vax_get_saved_register): New function.
3598 (vax_gdbarch_init): New function.
3599 (_initialize_vax_tdep): Register vax_gdbarch_init.
3600 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3601 Remove macros now under the control of gdbarch.
3603 2002-04-22 Michael Snyder <msnyder@redhat.com>
3605 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3606 Some whitespace and coding standards tweaks.
3608 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3610 * vax-tdep.c: Include regcache.h.
3611 (vax_call_dummy_words): New.
3612 (sizeof_vax_call_dummy_words): New.
3613 (vax_fix_call_dummy): New function.
3614 (vax_saved_pc_after_call): Ditto.
3615 * config/vax/tm-vax.h: Don't include regcache.h.
3616 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3617 (CALL_DUMMY): Remove.
3618 (CALL_DUMMY_WORDS): Define.
3619 (SIZEOF_CALL_DUMMY_WORDS): Define.
3620 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3622 2002-04-18 Michael Snyder <msnyder@redhat.com>
3624 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3626 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3628 * vax-tdep.c (vax_frame_chain): New function.
3629 (vax_push_dummy_frame): Ditto.
3630 (vax_pop_frame): Ditto.
3631 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3632 (FRAMELESS_FUNCTION_INVOCATION): Use
3633 generic_frameless_function_invocation_not.
3634 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3635 (POP_FRAME): Use vax_pop_frame.
3637 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3639 * vax-tdep.c (vax_store_struct_return): New function.
3640 (vax_extract_return_value): Ditto.
3641 (vax_store_return_value): Ditto.
3642 (vax_extract_struct_value_address): Ditto.
3643 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3644 vax_store_struct_return.
3645 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3646 (STORE_RETURN_VALUE): Use vax_store_return_value.
3647 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3649 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3651 * vax-tdep.c (vax_frame_saved_pc): New function.
3652 (vax_frame_args_address_correct): Ditto.
3653 (vax_frame_args_address): Ditto.
3654 (vax_frame_locals_address): Ditto.
3655 (vax_frame_num_args): Move code to be in proximity to
3656 other frame-related functions.
3657 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3658 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3659 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3660 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3661 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3663 2002-04-22 H.J. Lu (hjl@gnu.org)
3665 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3668 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3670 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3671 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3672 (FRAME_INIT_SAVED_REGS): New macro.
3674 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3676 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3678 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3680 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3682 (fetch_osf_core_registers): Likewise.
3683 (supply_gregset): Likewise.
3685 2002-04-22 J. Brobecker <brobecker@gnat.com>
3687 * symfile.h (get_section_index): Define.
3688 * symfile.c (get_section_index): New function.
3689 * mdebugread.c (SC_IS_SBSS): New macro.
3690 (SC_IS_BSS): Return true for the scBss storage class only, as
3691 the scSBss storage class refers to the .sbss section.
3692 (parse_partial_symbols): Discard the symbols which associated
3693 section does not exist.
3694 Make sure to use the .sbss section index for symbols which
3695 storage class is scBss, rather than using the .bss section index.
3697 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3699 * vax-tdep.c: Update copyright years.
3700 (vax_register_name): New function.
3701 (vax_register_byte): Ditto.
3702 (vax_register_raw_size): Ditto.
3703 (vax_register_virtual_size): Ditto.
3704 (vax_register_virtual_type): Ditto.
3705 * config/vax/tm-vax.h: Update copyright years.
3706 (REGISTER_NAMES): Remove.
3707 (REGISTER_NAME): Define.
3708 (REGISTER_BYTE): Use vax_register_byte.
3709 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3710 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3711 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3713 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3715 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3717 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3719 2002-04-21 David S. Miller <davem@redhat.com>
3721 * arch-utils.c (generic_prologue_frameless_p): Kill
3722 SKIP_PROLOGUE_FRAMELESS_P code.
3723 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3725 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3726 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3727 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3729 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3730 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3731 (sparc_gdbarch_init): Pass it to
3732 set_gdbarch_prologue_frameless_p.
3734 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3736 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3737 (alphabsd-nat.o): New dependency list.
3739 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3741 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3743 (alpha-linux-tdep.o): New dependency list.
3744 (alphafbsd-tdep.o): Likewise.
3746 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3748 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3750 * alpha-tdep.c: ...from here.
3751 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3753 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3755 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3756 prototype from here...
3757 * alpha-tdep.h: ...to here.
3759 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3761 * frame.h (selected_frame_level): Document as deprecated.
3762 (frame_relative_level): Declare.
3763 * stack.c (frame_relative_level): New function.
3764 (selected_frame_level): Document as deprecated.
3765 (select_frame): Do not set the selected_frame_level.
3767 * stack.c (frame_info, record_selected_frame): Update.
3768 (frame_command, current_frame_command): Update.
3769 (up_silently_base, up_command, down_silently_base): Update.
3770 (down_command): Update.
3771 * inflow.c (kill_command): Update.
3772 * tracepoint.c (finish_tfind_command): Update.
3773 * corelow.c (core_open): Update.
3774 * thread.c (info_threads_command): Update.
3775 (do_captured_thread_select): Update.
3776 * infcmd.c (finish_command): Update.
3777 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3779 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3781 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3783 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3785 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3788 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3790 * alphafbsd-tdep.c: Update copyright years. Include
3792 (alphafbsd_use_struct_convention): Make static.
3793 (alphafbsd_init_abi): New function.
3794 (_initialize_alphafbsd_tdep): New function.
3795 * config/alpha/tm-fbsd.h: Update copyright years.
3796 (USE_STRUCT_CONVENTION): Remove.
3798 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3800 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3801 an Alpha ABI variant.
3802 (alpha_abi_handler_list): Declare.
3803 (alpha_gdbarch_register_os_abi): New function.
3804 (alpha_gdbarch_init): Give registered ABI variant handlers a
3805 chance to tweak the gdbarch once we have set up defaults.
3806 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3808 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3810 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3811 to standard_coerce_float_to_double.
3812 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3814 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3816 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3817 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3818 from gdbarch_tdep rather than a constant.
3819 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3820 the default text address for all Alpha Unix ABIs.
3821 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3822 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3824 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3826 * alpha-tdep.h: New file. Includes several Alpha target constants
3828 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3829 let gdbarch deal with.
3830 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3831 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3833 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3834 Alpha target register names.
3835 * alphabsd-nat.c: Likewise.
3836 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3837 Alpha target register names. Make serveral routines static.
3838 (alpha_get_saved_register): New function.
3839 (alpha_abi_names): New.
3840 (process_note_abi_tag_sections): New function.
3841 (get_elfosabi): New function.
3842 (alpha_gdbarch_init): New function.
3843 (alpha_dump_tdep): New function.
3844 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3846 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3848 * frame.c (find_saved_register): Delete #ifdef
3849 HAVE_REGISTER_WINDOWS code.
3850 * config/sparc/tm-sparc.h: Update comments.
3851 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3853 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3855 * i960-tdep.c (i960_find_saved_register): New function.
3856 (i960_get_saved_register): New function.
3857 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3858 (i960_get_saved_register): Declare.
3859 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3861 2002-04-20 David S. Miller <davem@redhat.com>
3863 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3865 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3867 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3868 instead of NUM_PSEUDO_REGS.
3870 2002-04-20 David S. Miller <davem@redhat.com>
3872 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3873 GDB_MULTI_ARCH_PARTIAL
3874 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3875 define, let tm-sp64.h do it.
3877 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
3879 * frame.c (find_saved_register): Avoid a NULL pointer
3880 dereference and actually walk the frame list.
3882 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3884 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3885 sorted in most most-recent-used order. Document.
3886 * gdbarch.h, gdbarch.c: Regenerate.
3888 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3890 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3891 (add_inferior): Call create_register_cache.
3892 (clear_inferiors): Call free_register_cache.
3893 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3894 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3895 (registers): Remove.
3896 (get_regcache): New function.
3897 (create_register_cache, free_register_cache): New functions.
3898 (set_register_cache): Don't initialize the register cache here.
3899 (registers_to_string, registers_from_string, register_data): Call
3901 * gdbserver/regcache.h: Add prototypes.
3902 * gdbserver/server.h: Likewise.
3904 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3906 * gdbserver/mem-break.c: New file.
3907 * gdbserver/mem-break.h: New file.
3908 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3910 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3912 (clear_inferiors): Free target_data member if set.
3913 (inferior_target_data, set_inferior_target_data): New functions.
3914 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3915 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3916 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3917 (struct inferior_linux_data): New.
3918 (linux_create_inferior): Use set_inferior_target_data.
3919 (linux_attach): Likewise. Call add_inferior.
3920 (linux_wait_for_one_inferior): New function.
3921 (linux_wait): Call it.
3922 (linux_write_memory): Add const.
3923 (initialize_low): Call set_breakpoint_data.
3924 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3926 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3928 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3930 * gdbserver/target.c (read_inferior_memory)
3931 (write_inferior_memory): New functions.
3932 * gdbserver/target.h (read_inferior_memory)
3933 (write_inferior_memory): Change macros to prototypes.
3934 (struct target_ops): Update comments. Add const to write_memory
3937 2002-04-19 Andrew Cagney <ac131313@redhat.com>
3939 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3941 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3942 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3943 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3946 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
3949 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3950 (build_builtin_type_vec128): Ditto.
3951 (append_composite_type_field): Fix calculation of type length in
3954 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3956 * config/djgpp/README: Update.
3958 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3961 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3963 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3964 (alpha_setup_arbitrary_frame): ...to this.
3965 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3966 for alpha_setup_arbitrary_frame.
3968 2002-04-18 Andrew Cagney <cagney@redhat.com>
3970 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3971 * gdbarch.h, gdbarch.c: Regenerate.
3973 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3974 * target.h (memory_breakpoint_from_pc): Update declaration.
3975 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3977 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3978 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3979 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3980 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3981 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3982 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3983 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3984 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3985 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3986 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3987 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3988 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3990 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3992 * monitor.c (monitor_insert_breakpoint): Ditto.
3993 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3995 * config/mcore/tm-mcore.h: Update copyright.
3996 * mem-break.c: Ditto.
3997 * xstormy16-tdep.c: Ditto.
3999 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4001 * p-exp.y: Add precedence rule for '^' token.
4002 This removes the shift/reduce conflicts.
4003 Remove the comment concerning these shift/reduce conflicts.
4005 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4007 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4008 (registers_powerpc_nofp): New register set for processors
4009 without floating point unit.
4011 2002-04-18 David S. Miller <davem@redhat.com>
4013 * MAINTAINERS: Add myself to write-after-approval.
4015 2002-04-17 Michael Snyder <msnyder@redhat.com>
4017 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4019 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4021 * rs6000-tdep.c (frame_initial_stack_address): Use
4022 frame_register_read to read the alloca_reg.
4024 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4026 * frame.c (find_saved_register): Find saved registers in the next
4030 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4032 * gdbarch.sh (LANG): Set to ``c''.
4034 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4036 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4038 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4040 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4043 * hpread.c (hpread_get_lntt): Add declaration.
4044 Also fix PR gdb/391.
4046 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4048 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4049 * aclocal.m4, configure: Re-generate.
4052 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4054 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4055 instead of tm_print_insn.
4057 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4059 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4061 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4063 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4064 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4065 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4067 2002-04-12 Don Howard <dhoward@redhat.com>
4069 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4070 max_user_call_depth.
4071 (init_cmd_lists): Initialize the new value;
4072 * cli/cli-script.c (execute_user_command): Limit the call depth of
4073 user defined commands. This avoids a core-dump when user commands
4074 are infinitly recursive.
4076 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4078 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4079 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4080 from tdep struct instead of DEFAULT_LR_SAVE.
4081 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4082 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4083 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4085 2002-04-12 Michael Snyder <msnyder@redhat.com>
4087 * Remote.c: Spelling fix.
4088 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4089 If no symbol found for "sbrk", try "_sbrk".
4090 (make_output_phdrs): Use bfd_section_name.
4091 (gcore_copy_callback): Use bfd_section_name.
4092 * eval.c: Indentation fix-ups.
4093 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4094 in case it gets applied to an address that is already
4095 in the instruction space.
4096 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4097 * symfile.c: Fix indentation, long lines.
4098 * source.c: White space fix-up.
4100 2002-04-12 Andrew Cagney <cagney@redhat.com>
4102 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4103 * frame.c (frame_register_read): New function. Return non-zero on
4105 (read_relative_register_raw_bytes_for_frame): Delete.
4106 (read_relative_register_raw_bytes): Delete.
4107 * frame.h (frame_register_read): Declare.
4108 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4110 * infcmd.c (do_registers_info): Ditto.
4111 * hppa-tdep.c: Ditto.
4112 * rs6000-tdep.c: Ditto.
4113 * h8500-tdep.c: Ditto.
4114 * mips-tdep.c: Ditto.
4115 * h8300-tdep.c: Ditto.
4116 * z8k-tdep.c: Ditto.
4118 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4120 From Jimi X <jimix@watson.ibm.com>:
4121 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4124 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4126 From Jimi X <jimix@watson.ibm.com>:
4127 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4130 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4132 From Jimi X <jimix@watson.ibm.com>:
4133 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4134 register sets for these processor variants.
4136 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
4138 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4139 registers which are allowed to fail to store.
4140 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4141 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4142 (ppc_cannot_store_register): FPSCR may not be storable.
4143 * regformats/reg-ppc.dat: Support FPSCR.
4145 2002-04-11 Kevin Buettner <kevinb@redhat.com>
4147 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4148 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4149 Add fpscr as an invalid/unfetchable register.
4150 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4151 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4152 (fill_fpregset): Add support for register fpscr.
4153 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4154 (fill_gregset): Account for the fact that register ``mq'' might
4156 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4157 (registers_power): Add fpscr to register set at slot 71.
4158 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4159 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4161 2002-04-11 Michael Snyder <msnyder@redhat.com>
4163 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4164 * configure: Regenerate.
4165 * config.in: Regenerate.
4166 * acconfig.h: Add define for _SYSCALL32.
4167 * core-sol2.c: Remove #define _SYSCALL32.
4168 * solib-legacy.c: Remove #define _SYSCALL32.
4170 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4172 * stack.c (select_frame): Cleanup internal error message, do not
4175 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4177 * stack.c (select_frame): Check that selected_frame and the
4178 specified level are as expected.
4179 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4181 * frame.h (struct frame_info): Add field `level'. Update
4183 Work-in-progress PR gdb/464.
4185 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4187 * maint.c (maint_print_section_info): Rename print_section_info.
4188 (print_bfd_section_info, print_objfile_section_info): Update.
4189 * inferior.h (struct gdbarch): Add opaque declaration.
4190 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4191 * gdbarch.h: Regenerate.
4193 2002-04-10 Michal Ludvig <mludvig@suse.cz>
4195 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4196 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4197 (kernel_u_size): Added.
4198 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4199 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4201 2002-04-04 Jim Ingham <jingham@apple.com>
4203 * valarith.c (find_size_for_pointer_math): New function, either returns
4204 the size for a pointer's target, returns 1 for void *, or errors for
4206 (value_add, value_sub): use find_size_for_pointer_math.
4208 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4210 * linux-low.c (linux_look_up_symbols): New hook.
4211 (linux_target_ops): Add linux_look_up_symbols.
4212 * remote-utils.c (decode_address): New function.
4213 (look_up_one_symbol): New function.
4214 * server.c (handle_query): Call target look_up_symbols hook.
4215 * server.h (look_up_one_symbol): Add prototype.
4216 * target.h (struct target_ops): Add look_up_symbols hook.
4218 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4220 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4221 * ChangeLog: Correct paths in last ChangeLog entry.
4223 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4225 * gdbserver/linux-low.h: Remove obsolete prototypes.
4226 (struct linux_target_ops): New.
4227 (extern the_low_target): New.
4228 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
4229 (register_addr): Use the_low_target explicitly.
4230 (fetch_register): Likewise.
4231 (usr_fetch_inferior_registers): Likewise.
4232 (usr_store_inferior_registers): Likewise.
4233 * gdbserver/linux-arm-low.c (num_regs): Remove.
4234 (arm_num_regs): Define.
4235 (arm_regmap): Renamed from regmap, made static.
4236 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4238 (arm_cannot_store_register): Renamed from cannot_store_register,
4240 (the_low_target): New.
4241 * gdbserver/linux-i386-low.c (num_regs): Remove.
4242 (i386_num_regs): Define.
4243 (i386_regmap): Renamed from regmap, made static.
4244 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4246 (i386_cannot_store_register): Renamed from cannot_store_register,
4248 (the_low_target): New.
4249 * gdbserver/linux-ia64-low.c (num_regs): Remove.
4250 (ia64_num_regs): Define.
4251 (ia64_regmap): Renamed from regmap, made static.
4252 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4254 (ia64_cannot_store_register): Renamed from cannot_store_register,
4256 (the_low_target): New.
4257 * gdbserver/linux-m68k-low.c (num_regs): Remove.
4258 (m68k_num_regs): Define.
4259 (m68k_regmap): Renamed from regmap, made static.
4260 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4262 (m68k_cannot_store_register): Renamed from cannot_store_register,
4264 (the_low_target): New.
4265 * gdbserver/linux-mips-low.c (num_regs): Remove.
4266 (mips_num_regs): Define.
4267 (mips_regmap): Renamed from regmap, made static.
4268 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4270 (mips_cannot_store_register): Renamed from cannot_store_register,
4272 (the_low_target): New.
4273 * gdbserver/linux-ppc-low.c (num_regs): Remove.
4274 (ppc_num_regs): Define.
4275 (ppc_regmap): Renamed from regmap, made static.
4276 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4278 (ppc_cannot_store_register): Renamed from cannot_store_register,
4280 (the_low_target): New.
4281 * gdbserver/linux-s390-low.c (num_regs): Remove.
4282 (s390_num_regs): Define.
4283 (s390_regmap): Renamed from regmap, made static.
4284 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4286 (s390_cannot_store_register): Renamed from cannot_store_register,
4288 (the_low_target): New.
4289 * gdbserver/linux-sh-low.c (num_regs): Remove.
4290 (sh_num_regs): Define.
4291 (sh_regmap): Renamed from regmap, made static.
4292 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4294 (sh_cannot_store_register): Renamed from cannot_store_register,
4296 (the_low_target): New.
4297 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
4298 (the_low_target): New.
4300 2002-04-09 Andrew Cagney <ac131313@redhat.com>
4302 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4303 override FP_REGNUM with frame->fp. Update copyright.
4304 * parse.c (num_std_regs, std_regs): Delete.
4305 (target_map_name_to_register): Do not search std_regs. Update
4306 function description.
4307 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4308 declarations. Update copyright.
4311 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4313 * gdbserver/Makefile.in: Add stamp-h target.
4314 * gdbserver/configure.in: Create stamp-h.
4315 * gdbserver/configure: Regenerated.
4317 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4319 * gdbserver/inferiors.c: New file.
4320 * gdbserver/target.c: New file.
4321 * gdbserver/target.h: New file.
4322 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4324 * gdbserver/linux-low.c (inferior_pid): New static variable,
4325 moved from server.c.
4326 (linux_create_inferior): Renamed from create_inferior.
4327 Call add_inferior. Return 0 on success instead of a PID.
4328 (linux_attach): Renamed from myattach.
4329 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
4330 (linux_thread_alive): Renamed from mythread_alive.
4331 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
4333 (linux_resume): Renamed from myresume. Add missing ``return 0''.
4334 (regsets_store_inferior_registers): Correct error message.
4335 Add missing ``return 0''.
4336 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4337 (linux_store_registers): Renamed from store_inferior_registers.
4338 (linux_read_memory): Renamed from read_inferior_memory.
4339 (linux_write_memory): Renamed from write_inferior_memory.
4340 (linux_target_ops): New structure.
4341 (initialize_low): Call set_target_ops ().
4342 * gdbserver/remote-utils.c (unhexify): New function.
4343 (hexify): New function.
4344 (input_interrupt): Send signals to ``signal_pid''.
4345 * gdbserver/server.c (inferior_pid): Remove.
4346 (start_inferior): Update create_inferior call.
4347 (attach_inferior): Call add_inferior.
4348 (handle_query): New function.
4349 (main): Call handle_query for `q' packets.
4350 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4351 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4353 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4355 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4357 * gdbserver/configure.in: Check for <string.h>
4358 * gdbserver/configure: Regenerate.
4359 * gdbserver/config.in: Regenerate.
4360 * gdbserver/gdbreplay.c: Include needed system headers.
4361 (remote_open): Remove strchr prototype.
4362 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4363 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4364 (supply_register_by_name): Likewise.
4365 (collect_register): Change buf argument to void *.
4366 (collect_register_by_name): Likewise.
4367 * gdbserver/regcache.h: Add missing prototypes.
4368 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4369 * gdbserver/server.c (handle_query): New function.
4370 (attached): New static variable, moved out of main.
4371 (main): Quiet longjmp clobber warnings.
4372 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4373 * gdbserver/utils.c (error): Remove NORETURN.
4376 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4378 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4379 after the last symbol in a block.
4381 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
4383 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4384 is non zero as a found symbol.
4386 2002-04-08 Andrew Cagney <ac131313@redhat.com>
4388 * findvar.c: Include "builtin-regs.h".
4389 (value_of_register): Call value_of_builtin_reg when applicable.
4390 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4391 (target_map_name_to_register): Call
4392 builtin_reg_map_name_to_regnum.
4393 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4394 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4395 (builtin_regs_h): Define.
4396 (builtin-regs.o): New target.
4397 (findvar.o): Add $(builtin_regs_h).
4398 * builtin-regs.c, builtin-regs.h: New files.
4399 * std-regs.c: New file.
4400 Partial fix for PR gdb/251.
4402 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4404 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4405 it's no longer required.
4407 2002-04-08 Andrew Cagney <ac131313@redhat.com>
4409 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4411 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4413 From Jimi X <jimix@watson.ibm.com>:
4414 * rs6000-tdep.c (rs6000_software_single_step): Use
4415 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4416 and size. Use target_insert_breakpoint() and
4417 target_remove_breakpoint() to insert and remove breakpoints
4418 instead of explicit memory reads and writes.
4420 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4422 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4423 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4424 ELF_OBJECT_FORMAT ifdef.
4426 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4428 From Jimi X <jimix@watson.ibm.com>:
4429 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4431 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4433 From Jimi X <jimix@watson.ibm.com>:
4434 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4435 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4437 2002-04-07 Mark Kettenis <kettenis@gnu.org>
4439 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4440 s/asprintf/xasprintf/.
4441 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4443 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4445 I believe Jeff Law denies responsability for this one:
4446 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4447 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4448 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4449 Work-around for PR gdb/366.
4451 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
4453 * remote-e7000.c (write_small, e7000_read_inferior_memory,
4454 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4455 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4457 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
4459 * sh-tdep.c (sh_fp_frame_init_saved_regs,
4460 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4463 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4465 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4468 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4470 * README (Reporting Bugs in GDB): Document the bug web page as the
4471 prefered way of submitting bugs.
4474 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4476 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4478 * gdbarch.h, gdbarch.c: Re-generate.
4480 2002-04-07 Andreas Schwab <schwab@suse.de>
4482 * m68klinux-nat.c (fill_fpregset): Properly pass address of
4483 buffer to regcache_collect.
4485 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4487 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
4488 * gdbarch.c, gdbarch.h: Re-generate.
4490 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4492 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4493 declaration. Fix -Werror.
4495 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
4497 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4498 * gdbarch.c: Regenerate.
4500 2002-04-05 Michael Snyder <msnyder@redhat.com>
4502 * breakpoint.c (clear_command): Rewrite middle section to
4503 combine two loops with identical control conditions.
4504 Add a cleanup to eliminate a memory leak.
4505 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4507 2002-04-05 H.J. Lu (hjl@gnu.org)
4509 * solib-svr4.c (bkpt_names): Add "__start".
4511 2002-04-04 Andrew Cagney <ac131313@redhat.com>
4513 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4514 as test for 64 bit target.
4516 2002-04-05 Andrew Cagney <ac131313@redhat.com>
4518 * h8500-tdep.c (h8500_write_fp): Delete function.
4519 * dwarf2cfi.c (cfi_write_fp): Document as not used.
4520 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4521 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4523 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4524 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4526 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4527 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4528 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4529 (d10v_write_fp): Delete function.
4530 * inferior.h (write_fp, generic_target_write_fp): Delete
4532 * regcache.c (generic_target_write_fp): Delete function.
4533 (write_fp): Delete function.
4534 * gdbarch.sh (TARGET_WRITE_FP): Delete.
4535 * gdbarch.h, gdbarch.c: Regenerate.
4536 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4537 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4538 (sparc64_write_fp): Delete declaration.
4539 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4540 (h8500_write_fp): Delete declaration.
4542 2002-04-04 Andrew Cagney <ac131313@redhat.com>
4544 * sparc-tdep.c (sparc64_write_fp): Delete.
4545 (sparc_push_dummy_frame): Replace write_fp call with code to store
4547 (sparc_gdbarch_init): Do not initialize write_fp.
4549 2002-04-05 Kevin Buettner <kevinb@redhat.com>
4551 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4554 2002-03-29 Jim Blandy <jimb@redhat.com>
4556 * stack.c (get_selected_block): Add new argument `addr_in_block',
4557 used to return the exact code address we used to select the block,
4559 * blockframe.c (get_frame_block, get_current_block): Same.
4560 * frame.h (get_frame_block, get_current_block,
4561 get_selected_block): Update declarations.
4562 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4563 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4565 2002-04-05 Michael Snyder <msnyder@redhat.com>
4567 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4570 2002-04-05 J. Brobecker <brobecker@gnat.com>
4572 * utils.c (xfullpath): New function.
4573 * defs.h (xfullpath): Add declaration.
4574 * source.c (openp): Use xfullpath in place of gdb_realpath to
4575 avoid resolving the basename part of filenames when the
4576 associated file is a symbolic link. This fixes a potential
4577 inconsistency between the filenames known to GDB and the
4578 filenames it prints in the annotations.
4579 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4580 to be able to match a filename with either the real filename, or
4581 the name of any symbolic link to this file.
4582 (lookup_partial_symtab): Ditto.
4584 2002-04-04 Michael Snyder <msnyder@redhat.com>
4586 * breakpoint.c: Add support for hardware breakpoints in overlays.
4587 (overlay_events_enabled): New state variable.
4588 (insert_breakpoints): Use overlay_events_enabled to decide
4589 whether to attempt to set a breakpoint at the overlay load addr.
4590 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4591 (remove_breakpoint): Use overlay_events_enabled to decide
4592 whether breakpoints need to be removed from overlay load addr.
4593 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4594 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4595 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4596 disable_overlay_breakpoints): Update overlay_events_enabled.
4598 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
4600 * dwarf2read.c (struct function_range): New.
4601 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4602 (check_cu_functions): New.
4603 (read_file_scope): Initialize global function lists.
4604 Call dwarf_decode_line after processing children.
4605 (read_func_scope): Add to global function list.
4606 (dwarf_decode_lines): Call check_cu_functions everywhere
4607 record_line is called. Call record_line with a linenumber
4608 of 0 to mark sequence ends.
4610 2002-04-04 Michal Ludvig <mludvig@suse.cz>
4612 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4613 change sync with glibc.
4615 2002-04-03 Jim Blandy <jimb@redhat.com>
4617 * configure.in: Call AC_C_INLINE.
4618 * configure: Regenerated.
4620 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
4622 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4623 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4625 2002-03-31 Mark Kettenis <kettenis@gnu.org>
4627 * NEWS: Mention gcore support on FreeBSD/i386.
4629 * fbsd-proc.c: New file.
4630 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4631 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4633 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4636 2002-03-29 Jim Blandy <jimb@redhat.com>
4638 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4639 unescaped newlines in string literals, but newer ones don't. So
4642 2002-03-26 Michael Snyder <msnyder@redhat.com>
4643 Andrew Cagney <cagney@redhat.com>
4645 * cli/cli-dump.c: New file. Dump memory to file,
4646 restore file to memory.
4647 * cli/cli-dump.h: New file.
4648 * Makefile.in: Add rules, dependencies for cli-dump.o.
4649 * NEWS: Mention new commands.
4651 2002-03-28 Michael Snyder <msnyder@redhat.com>
4653 * symfile.c (symbol_file_add): Move test for null symbols to later.
4655 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4657 From veksler at il.ibm.com:
4658 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4659 the xstrduped original path.
4662 2002-03-27 Michael Snyder <msnyder@redhat.com>
4664 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4665 * infcmd.c (_initialize_infcmd): Ditto.
4666 * language.c (_initialize_language): Ditto.
4667 * symfile.c (_initialize_symfile): Ditto.
4668 * top.c (_init_main): Ditto.
4669 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4671 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
4673 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4674 vector registers handling.
4675 (skip_prologue): Handle new AltiVec instructions. Fill in new
4676 fields of frame data.
4677 (frame_get_saved_regs): Fill in information for AltiVec registers.
4679 2002-03-27 Jim Blandy <jimb@redhat.com>
4681 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4682 a function; leave this macro here to invoke that function.
4683 (symbol_init_mangled_name): Declaration for that function.
4684 * symtab.c (symbol_init_mangled_name): New function.
4686 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4688 * valarith.c: Replace strerror with safe_strerror.
4689 * tracepoint.c: Ditto.
4691 * go32-nat.c: Ditto.
4695 2002-03-27 Andreas Schwab <schwab@suse.de>
4697 * event-top.c (command_line_handler): Remove useless if.
4699 2002-03-27 Andreas Jaeger <aj@suse.de>
4701 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4704 2002-03-27 Michal Ludvig <mludvig@suse.cz>
4706 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4707 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4708 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4709 (x86_64_linux_dr_get_status, supply_gregset),
4710 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4711 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4712 (x86_64_register_info_table): Add.
4713 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4714 (x86_64_register_raw_size, x86_64_register_virtual_type),
4715 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4716 general x86_64_register_info_table.
4717 (i386_gdbarch_init): gdbarch_register_bytes is now set
4718 dynamicaly during initialization.
4719 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4720 * gdbserver/linux-x86-64-low.c: Ditto.
4722 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4724 * gdbserver/server.c (main): Call target_signal_to_host_p
4725 and target_signal_to_host on signals received from the remote.
4726 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4727 target_signal_from_host on signals sent to the remote.
4728 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4729 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4731 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4733 * signals/signals.c: Include "server.h" in gdbserver build.
4734 (target_signal_from_name): Don't use STREQ.
4735 (_initialize_signals): Likewise. Don't include function in
4738 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4740 * signals.c: Moved to...
4741 * signals/signals.c: Here.
4742 * Makefile (signals.o): Update.
4744 2002-03-26 Jeff Law (law@redhat.com)
4746 * somread.c (som_symtab_read): Remove some commented out code and
4747 updated related comments. Do not set the minimal symbol table to
4748 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4749 in a dynamic executable.
4750 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4751 where we are unable to find the minimal symbol for the given
4754 2002-03-25 Jeff Law (law@redhat.com)
4756 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4758 2002-03-25 Michal Ludvig <mludvig@suse.cz>
4760 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4762 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4764 * command.h: Update copyright.
4765 (struct cmd_list_element): Replace definition with opaque
4767 (enum cmd_types): Document that it will eventually be moved to
4769 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4770 (MALLOCED_REPLACEMENT): Delete macro.
4771 * Makefile.in (cli_decode_h): Add $(command_h).
4772 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4773 * top.c: Include "cli/cli-decode.h".
4774 * completer.c: Include "cli/cli-decode.h".
4775 * maint.c: Include "cli/cli-decode.h".
4776 * cli/cli-decode.h: Include "command.h".
4777 (enum command_class): Delete.
4778 (enum cmd_types): Comment out.
4779 (enum cmd_auto_boolean): Delete.
4780 (enum var_types): Delete.
4782 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4784 * cli/cli-decode.c: Include "gdb_assert.h".
4785 (add_set_or_show_cmd): New static function.
4786 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4787 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4788 all fields, such as func, from the set command.
4790 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4792 * MAINTAINERS (sh-elf): Change warning flag to -w.
4794 2002-03-23 Andrew Cagney <cagney@redhat.com>
4796 * defs.h (error): Add printf format attribute.
4797 * thread-db.c (thread_from_lwp): Fix error format string.
4798 * stack.c (parse_frame_specification): Ditto.
4799 * cli/cli-decode.c (undef_cmd_error): Ditto.
4800 * scm-lang.c (scm_lookup_name): Ditto.
4801 * tracepoint.c (trace_error): Ditto.
4802 * remote-utils.c (usage): Ditto.
4803 * remote.c (compare_sections_command): Ditto.
4806 2002-03-22 Andrew Cagney <ac131313@redhat.com>
4808 * gdbtypes.c (append_composite_type_field): New function.
4809 (init_composite_type): New function.
4810 * gdbtypes.h (append_composite_type_field): Declare.
4811 (init_composite_type): Ditto.
4813 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
4815 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4817 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4818 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4819 structure returning convention for SYSV ABI case, but not
4820 for GNU/Linux, FreeBSD, or NetBSD.
4822 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
4824 * symtab.h (lookup_block_symbol): Add mangled_name argument
4827 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4828 with new mangled_name argument.
4829 * linespec.c (decode_line_1): Likewise.
4830 * valops (value_of_this): Likewise.
4831 * symtab.c (lookup_transparent_type): Likewise.
4832 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4833 (lookup_symbol): If we are given a mangled name, pass it down
4834 to lookup_symbol_aux.
4835 (lookup_block_symbol): If we are given a mangled name to check
4836 against, only return symbols which match it.
4838 2002-03-22 Christopher Faylor <cgf@redhat.com>
4840 * win32-nat.c (child_create_inferior): Check for proper shell to use
4841 here, in case the user changes it on the fly.
4842 (_initialize_inftarg): Remove shell path considerations.
4844 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
4846 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4847 for gdbarch_max_register_raw_size and max_register_virtual_size.
4848 Adjust copyright year.
4850 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
4852 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4853 in a function to cover the entire beginning of the function
4854 as well if it does not already.
4856 2002-03-21 Tom Rix <trix@redhat.com>
4858 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4859 (rs6000_ptrace64): Renamed from ptrace64.
4861 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4863 * gdbserver/remote-utils.c (remote_open): Don't call
4864 getprotobyname, we're all using TCP here so just use
4866 * gdbserver/gdbreplay.c (remote_open): Ditto.
4868 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4870 * regcache.c (_initialize_regcache): No need to call
4871 build_regcache() at this time; it gets called whenever
4872 the gdbarch changes.
4874 2002-03-20 David O'Brien <obrien@FreeBSD.org>
4876 * sparc-nat.c: Include sys/param.h where possible.
4878 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
4881 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4882 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4883 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4885 * stabsread.c (rs6000_builtin_type): Likewise.
4886 (read_sun_floating_type): Likewise.
4888 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4890 * stabsread.c (read_member_functions): Remove skip code for duplicate
4891 constructor/destructor methods. Use standard parsing for these
4892 methods and just do not chain them to the list of methods after
4895 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
4897 * coffread.c: Remove redundant static declarations. Replace
4898 occurrences of `PTR' with `void *'.
4899 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4900 * top.h (quit_cover): Likewise.
4901 * defs.h (catch_errors): Likewise.
4903 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4905 * defs.h (XMALLOC): Define.
4906 * gdb-events.sh (XMALLOC): Delete macro.
4907 * gdb-events.c, gdb-events.h: Regenerate.
4908 * gdbarch.sh (XMALLOC): Delete macro.
4909 * gdbarch.c: Regenerate.
4910 * serial.c (XMALLOC): Delete macro.
4911 * ui-file.c (XMALLOC): Ditto.
4912 * ser-unix.h (XMALLOC): Ditto.
4913 * sh-tdep.c (XMALLOC): Ditto.
4914 * ui-out.c (XMALLOC): Ditto.
4915 * utils.c (XMALLOC): Ditto.
4916 * i386-tdep.c (XMALLOC): Ditto.
4917 * gdb-events.c (XMALLOC): Ditto.
4918 * d10v-tdep.c (XMALLOC): Ditto.
4919 * cli-out.c (XMALLOC): Ditto.
4921 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4922 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4923 * ui-file.c, ui-out.c: Ditto.
4925 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4927 * command.h (struct cmd_list_element): Add field context.
4928 (set_cmd_context, get_cmd_context): Declare.
4929 * cli/cli-decode.h: Ditto.
4930 * cli/cli-decode.c (get_cmd_context): New function.
4931 (set_cmd_context): New function.
4932 (add_cmd): Initialize context.
4933 Part of fixing PR gdb/145 and PR gdb/146.
4935 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4937 * cli/cli-decode.c (cmd_type): New function.
4938 * command.h (cmd_type): Declare.
4939 * infrun.c (set_schedlock_func): Call function cmd_type.
4940 * kod.c (kod_set_os): Call cmd_type.
4941 * cris-tdep.c (cris_version_update): Use function cmd_type.
4942 (cris_mode_update, cris_abi_update): Ditto.
4944 * command.h: (execute_cmd_post_hook): Declare.
4945 (execute_cmd_pre_hook): Declare.
4946 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4947 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4948 functions. Execute pre/post hook while ensuring that afterwords
4950 * top.c (execute_command): Use execute_cmd_post_hook, and
4951 execute_cmd_pre_hook to execute pre/post commands.
4952 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4954 (hook_stop_stub): Call execute_cmd_pre_hook.
4956 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4958 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4959 set'' and this leads to a core dump. Move xstrdup of
4960 operating_system to after check that it is not NULL.
4962 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4964 * kod.c (kod_set_os): Remove unnecessary check that
4965 ``command->type'' is set_cmd.
4967 * valprint.c (set_input_radix): Use input_radix.
4968 (set_output_radix): Use output_radix.
4969 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4972 2002-03-16 Andrew Cagney <ac131313@redhat.com>
4974 * value.h (struct value): Delete field ``substring_addr''. Change
4975 aligner fields to force_doublest_align, force_longest_align,
4976 force_core_addr_align and force_pointer_aligh.
4978 * value.h (struct value): Fix typo in above change.
4980 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4982 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4983 to fix internal_error from ``maintenance print architecture''.
4985 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4987 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4988 for gcc versions after gcc-2.8.1.
4990 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4992 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4993 for method resolution. Restore adjustment of ``this'' pointer after
4994 calling value_struct_elt, which was accidentally removed during the
4997 2002-03-15 Andrew Cagney <ac131313@redhat.com>
4999 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5001 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5003 * value.h (value_of_register): Update.
5005 2002-03-14 Richard Henderson <rth@redhat.com>
5007 * configure.in: Detect declaration for canonicalize_file_name.
5008 * utils.c (canonicalize_file_name): Declare, if needed.
5009 (gdb_realpath): Prefer realpath if available and usable.
5010 * config.in, configure: Rebuild.
5012 2002-03-14 Richard Henderson <rth@redhat.com>
5014 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5015 a constant array bound.
5017 * MAINTAINERS: Add myself to write-after-approval.
5019 2002-03-14 Michael Snyder <msnyder@redhat.com>
5021 * symfile.c (syms_from_objfile): Return immediately if no syms.
5022 (symbol_file_add): Return immediately if no syms.
5023 (find_sym_fns): Return immediately if no syms.
5025 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5027 * gdbserver/remote-util.c (remote_open): Print remote-side's
5028 IP address when remote debugging over the network.
5030 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5032 * config/sparc/fbsd.mh: Fix copyright.
5033 * config/sparc/fbsd.mt: Likewise.
5035 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5037 * MAINTAINERS: Fix typo in name of gdb warnings option.
5038 (x86-64): Fix formating so that this can be parsed by awk.
5040 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5042 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5043 * defs.h: Include "gdb/signals.h".
5044 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5046 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5048 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5049 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5052 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5053 Don Howard <dhoward@redhat.com>
5055 * mips-tdep.c (ST0_FR): Define.
5056 (mips2_fp_compat): New function, temporarily disabled.
5057 (mips_read_fp_register_single): New function.
5058 (mips_read_fp_register_double): New function.
5059 (mips_print_register): Use them.
5060 (do_fp_register_row): Likewise.
5062 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5064 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5067 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5069 * stabsread.c (read_member_functions): Fix is_stub test for
5070 static member functions, improve comment.
5072 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5074 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5075 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5076 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5077 commands that set boolean values.
5078 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5079 (arm_rdi_resume): Always initialize PC.
5080 (arm_rdi_open): Don't use rslt as a boolean.
5081 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5082 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5083 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5084 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5086 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5088 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5089 * configure: Rebuilt.
5091 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5093 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5094 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5096 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5098 * cli/cli-decode.c (set_cmd_completer): New function.
5099 * command.h (set_cmd_completer): Declare.
5100 * cli/cli-decode.h (set_cmd_completer): Ditto.
5102 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5103 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5104 * win32-nat.c (_initialize_inftarg): Ditto.
5105 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5106 * proc-api.c (_initialize_proc_api): Ditto.
5107 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5108 * source.c (_initialize_source): Ditto.
5109 * exec.c (_initialize_exec): Ditto.
5110 * solib.c (_initialize_solib): Ditto.
5111 * top.c (init_main): Ditto.
5112 * tracepoint.c (_initialize_tracepoint): Ditto.
5113 * symfile.c (_initialize_symfile): Ditto.
5114 * printcmd.c (_initialize_printcmd): Ditto.
5115 * infcmd.c (_initialize_infcmd): Ditto.
5116 * corefile.c (_initialize_core): Ditto.
5118 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5120 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5122 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5124 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5126 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5128 * NEWS: Update headings, 5.2 has branched.
5130 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
5132 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5133 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5134 (register_addr, REGISTER_RAW_SIZE): Likewise.
5135 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5136 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5138 2002-03-03 Michal Ludvig <mludvig@suse.cz>
5140 * MAINTAINERS (x86-64): Add myself.
5141 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5142 changed value_ptr -> struct value *
5144 2002-03-01 David O'Brien <obrien@FreeBSD.org>
5146 * configure.host (sparc64-*-freebsd): Add.
5147 * configure.tgt: Likewise.
5148 * config/sparc/fbsd.mh: New file.
5149 * config/sparc/fbsd.mt: Likewise.
5150 * config/sparc/nm-fbsd.h: Likewise.
5151 * config/sparc/tm-fbsd.h: Likewise.
5153 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
5155 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5156 regformats/reg-s390x.dat.
5158 2002-03-01 Andrew Cagney <ac131313@redhat.com>
5160 * utils.c: Add FIXME explaining true/false problem.
5162 2002-02-28 Andrew Cagney <ac131313@redhat.com>
5164 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5166 2002-02-28 Michael Chastain <mec@shout.net>
5168 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5170 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
5172 * gdbserver/linux-s390-low.c: New file.
5173 * regformats/reg-s390.dat: New file.
5174 * regformats/reg-s390x.dat: New file.
5175 * gdbserver/configure.srv: Add S/390.
5176 * gdbserver/Makefile.in: Add S/390.
5177 * configure.tgt: Enable gdbserver for S/390.
5179 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5181 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5182 first line of the doc string for "info dos", except at the end of
5183 the sentence, since the short help stops at the first period.
5185 2002-02-28 Jason Merrill <jason@redhat.com>
5187 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5189 2002-02-27 Fred Fish <fnf@redhat.com>
5191 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5192 comment (dumy -> dummy).
5194 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5196 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5198 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
5200 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5202 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5204 * gdbserver/acconfig.h: New file.
5205 * gdbserver/i387-fp.c: New file.
5206 * gdbserver/i387-fp.h: New file.
5207 * gdbserver/linux-x86-64.c: New file.
5208 * regformats/reg-x86-64.dat: New file.
5209 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5210 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5211 * gdbserver/configure.in: Add support for regsets.
5212 * gdbserver/config.in: Regenerate.
5213 * gdbserver/configure: Regenerate.
5214 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5215 * gdbserver/linux-low.h: New file.
5216 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5218 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5219 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5220 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5221 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5222 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5223 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5224 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5225 "i387-fp.h". Add PTRACE_GETREGS and friends.
5226 * gdbserver/regcache.c (supply_register): New function.
5227 (supply_register_by_name): New function.
5228 (collect_register): New function.
5229 (collect_register_by_name): New function.
5231 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5233 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5234 (config.status): Add configure.srv dependency.
5235 (server_h): Add config.h dependency.
5237 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5239 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5240 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5241 * gdbserver/configure.srv: Change i386-*-linux* to use
5244 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5246 * x86-64-tdep.c: Re-indent. Update copyright date.
5248 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5250 From Michal Ludvig <mludvig@suse.cz>:
5251 * x86-64-tdep.c (value.h): Delete.
5252 (gdb_assert.h): Include.
5253 (x86_64_register_convert_to_virtual,
5254 x86_64_register_convert_to_raw ): Add check which lets only
5255 floating-point values to be converted.
5256 (value_push): Delete.
5257 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5258 (i386_gdbarch_init): Number of register_bytes fixed.
5260 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5262 * MAINTAINERS: Add x86-64 target.
5264 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5266 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5267 * osfsolib.c (solib_map_sections): Ditto.
5268 * irix5-nat.c (solib_map_sections): Ditto.
5269 * corelow.c (gdb_check_format): Ditto.
5270 * symfile.c (symfile_bfd_open): Ditto.
5271 * solib.c (solib_map_sections): Ditto.
5274 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5276 * remote.c (_initialize_remote): By default, disable ``e'' and
5277 ``E'' step out-of-range packets.
5279 2002-02-26 Andreas Schwab <schwab@suse.de>
5281 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5282 m68k_linux_frame_saved_pc.
5283 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5285 (SIGCONTEXT_PC_OFFSET): Remove.
5286 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5287 m68k_linux_sigtramp_saved_pc): New functions.
5288 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5289 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5290 (UCONTEXT_PC_OFFSET): Define.
5291 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5292 non-RT and RT signal trampolines.
5294 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
5296 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5297 (TARGET_NBPG, STACK_END_ADDR): Delete
5298 (VARIABLES_INSIDE_BLOCK): Delete.
5300 2002-02-25 Andrew Cagney <ac131313@redhat.com>
5302 * utils.c (perror_with_name): Make string parameter constant.
5303 (print_sys_errmsg): Ditto.
5305 * defs.h (perror_with_name): Update.
5306 (print_sys_errmsg): Update.
5309 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
5311 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5312 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5314 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5316 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5317 if it already matches the current architecture from the exec file.
5318 Include arch-utils.h for gdbarch_info_init prototype.
5319 * Makefile.in (rs6000-nat.o): Update dependencies.
5321 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
5323 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5324 list of exported variables.
5326 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
5328 * gdbserver/configure.srv: New file.
5329 * gdbserver/configure.in: Use configure.srv instead
5330 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
5332 * gdbserver/configure: Regenerated.
5333 * gdbserver/terminal.h: New file.
5334 * gdbserver/Makefile.in: Update for configure changes. Remove
5335 more unneeded include paths.
5337 2002-02-24 Andrew Cagney <ac131313@redhat.com>
5339 From wiz at danbala:
5340 * config/sparc/tm-sp64.h: Fix grammar and typos.
5343 2002-02-24 Andrew Cagney <ac131313@redhat.com>
5345 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
5346 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5347 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5348 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
5349 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5350 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5351 * s390-tdep.c: Ditto.
5352 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5353 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5354 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5355 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5356 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5357 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5358 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5359 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5360 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5361 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
5364 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5366 * lin-thread.c: Delete file.
5367 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5368 to gdb_proc_service.h.
5369 * configure: Re-generate.
5371 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5372 * serial.c (serial_open): Delete check for "ocd".
5375 * Makefile.in (linux-thread.o): Delete target.
5376 * linux-thread.c: Delete file.
5378 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5379 renamed SH files to be consistent.
5381 * symtab.c (sort_search_symbols): Use xfree.
5383 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5385 * arm-linux-tdep.c (arm_linux_init_abi): Register
5386 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5387 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5388 definition with undef, since we don't want the sysvr4 definition.
5389 (SKIP_TRAMPOLINE_CODE): Likewise.
5391 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5393 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5395 * configure.in: (AC_CHECK_FUNCS) Added test for
5396 canonicalize_file_name Regenerated.
5397 * config.in, configure: Regenerated.
5398 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5399 defined use canonicalize_file_name.
5401 2002-02-23 Michael Chastain <mec@shout.net>
5403 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5405 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5407 * README: Remove references to cygnus.com.
5408 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5409 dot com'' form. Remove references to cygnus.com and sourceware.
5411 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5413 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5414 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5415 1003.1-2001 no longer allows "head -1".
5416 * gdb/Makefile.in (version.c): Likewise.
5417 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5418 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5419 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5421 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5423 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5424 * command.h (cmd_cfunc_eq): Declare.
5425 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5427 * cli/cli-cmds.h (is_complete_command): Change parameter to a
5428 ``struct cmd_list_element *''.
5429 * cli/cli-cmds.c (is_complete_command): Update. Use
5431 * top.c (execute_command): Pass the command to
5432 is_complete_command.
5433 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5435 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5437 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5438 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5439 architecture defines.
5440 * s390-tdep.c (s390_gdbarch_init): Likewise.
5442 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5444 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5445 (arm_linux_push_arguments): Likewise.
5446 (arm_linux_init_abi): Register them. Also register linux-specific
5448 (find_minsym_and_objfile): Use strcmp, not STREQ.
5449 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5450 (arm_linux_call_dummy_words): Delete declaration.
5451 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5452 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5454 (LOWEST_PC): Delete.
5456 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5458 * maint.c (print_section_info): Do not prepend `0x' to filepos
5459 output, it will be handled by local_hex_string_custom.
5461 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5463 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5464 (store_newfpe_double, store_newfpe_extended, store_fpregister)
5465 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5467 2002-02-22 Jim Blandy <jimb@redhat.com>
5469 Indicate that the bcache functions don't change the strings
5471 * bcache.h (bcache, hash): Add `const' keywords to declarations.
5472 * bcache.c (bcache, hash): Add `const' keywords to definitions.
5474 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
5476 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5478 2002-02-21 Christopher Faylor <cgf@redhat.com>
5480 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5481 find the complete path to a loaded DLL.
5483 2002-02-21 Fred Fish <fnf@redhat.com>
5485 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5486 that marks the end of the range of a function, enter a line number
5487 entry that has a line number of zero and a PC offset that matches
5488 the end of the function. This starts a range of PC's for which no
5489 line number information is known.
5490 * symtab.c (find_pc_sect_line): If our best fit is in a range of
5491 PC's for which no line number info is found (line number is zero)
5492 then we didn't find any valid line information.
5493 * symtab.h: Document use of zero line number entry.
5495 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
5497 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5498 (have_ptrace_getvrregs): Define for run time checks.
5499 (gdb_vrregset_t): New type for Altivec register handling.
5500 (fetch_register, store_register): Fetch/store altivec register
5502 (fetch_altivec_register, store_altivec_register): New functions.
5503 (supply_vrregset, fill_vrregset): New functions.
5504 (fetch_altivec_registers, store_altivec_registers): New functions.
5505 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5508 2002-02-21 Jiri Smid <smid@suse.cz>
5510 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5512 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
5514 * Makefile.in (armnbsd-nat.o): Update dependencies.
5515 * armnbsd-nat.c (supply_gregset): New function. Common code to
5516 supply the integer register set.
5517 (supply_fparegset): New function. Similar for FPA registers.
5518 (fetch_regs, fetch_fp_regs): Use them.
5519 (fetch_core_registers): Likewise.
5520 (fetch_elfcore_registers): New function.
5521 (arm_netbsd_elfcore_fns): New core-file type specification.
5522 (_initialize_arm_netbsd_nat): Register it.
5524 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
5526 * armnbsd-nat.c: Include gdbcore.h.
5527 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5528 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5529 'void' to declaration, to shut up ARI.
5530 (fetch_core_registers): Make static. Rewrite using supply_register.
5531 (arm_netbsd_core_fns): New core-file type specification.
5532 (_initialize_arm_netbsd_nat): New function.
5534 2002-02-21 Christopher Faylor <cgf@redhat.com>
5536 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5539 2002-02-20 Christopher Faylor <cgf@redhat.com>
5541 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5544 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5546 * jv-exp.y (parse_number): Change type of implicit longs
5547 to builtin_type_uint64.
5549 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5551 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5552 to be an integer instead of a `union wait'.
5554 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5556 * mips-linux-nat.c: Call the operating system GNU/Linux.
5557 * mips-linux-tdep.c: Likewise.
5558 * mips-tdep.c: Likewise.
5560 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5563 * jv-exp.y (parse_number): Handle 64-bit integers.
5565 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5567 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5568 AC_STDC_HEADERS to AC_HEADER_STDC.
5569 * gdbserver/configure: Regenerated.
5571 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5573 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5575 * sparc-tdep.c (get_longjmp_target): Likewise.
5577 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5579 * News: Add news about ARM and Multi-arch. Mention the new target
5582 2002-02-19 Jim Blandy <jimb@redhat.com>
5584 * stabsread.c (error_type_complaint): Improve error message.
5586 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
5588 * gdbserver/README: Update documentation.
5589 * gdbserver/configure.in: Update configury to match documentation.
5590 * gdbserver/Makefile.in: Likewise.
5591 * gdbserver/configure: Regenerated.
5592 * gdbserver/aclocal.m4: New file, generated by aclocal.
5593 * gdbserver/config.in: New file, generated by autoheader.
5595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5597 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5600 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5602 * arm-tdep.h (enum arm_float_model): New enum.
5603 (struct gdbarch_tdep): Add fp_model.
5604 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5605 up floating-point conversions until we know the floating-point model
5606 in use by the inferior. Don't complain about being unable to
5607 determine the ABI of the inferior when we don't have one.
5608 (arm_extract_return_value): Support different floating-point models.
5609 (arm_store_return_value): Likewise.
5610 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5612 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5614 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5616 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5617 of ``current_gdbarch''.
5619 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5621 * armnbsd-nat.c : ANSIfy all function declarations.
5622 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5623 (fetch_inferior_registers): Re-implement in terms of above.
5624 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5625 (store_inferior_registers): Re-implement in terms of above.
5627 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5629 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5631 * arm-linux-tdep.c: Likewise.
5632 * config/arm/tm-linux.h: Likewise.
5634 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5636 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5637 * config/arm/nbsd.mt (TM_FILE): Delete.
5638 * config/arm/tm-nbsd.h: Delete.
5640 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5642 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5643 Initialize CALL_DUMMY_LENGTH.
5645 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5647 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5649 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5650 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5651 defines one thing and that is incorrect for this port.
5652 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5654 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5656 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5658 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5660 * win32-nat.c (display_selector): New function. Displays information
5661 about the information returned by GetThreadSelectorEntry API function.
5662 (display_selectors): New function. Displays the infomation of
5663 the selector given as argument, or of CS, DS ans FS selectors
5664 if no argument is given.
5665 ( _initialize_inftarg): Add "w32" as info prefix command.
5666 Add "info w32 selector" as command calling display_selectors.
5668 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5670 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5671 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5674 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5676 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5678 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5680 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5681 (arm_fix_call_dummy): Call it.
5682 (arm_call_dummy_breakpoint_offset): Delete.
5683 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5684 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5686 2002-02-18 Andrew Cagney <ac131313@redhat.com>
5688 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5689 Default to func_frame_chain_valid.
5690 * gdbarch.h, gdbarch.c: Re-generate.
5691 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5693 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
5695 * ppc-linux-nat.c: Update copyright.
5696 (fetch_register, store_register): Add tid parameter, don't compute
5698 (fetch_ppc_registers, store_ppc_registers): Add tid
5699 parameter. Pass it along to callees.
5700 (fetch_inferior_registers, store_inferior_registers): Compute tid
5701 here, and pass it to calleed functions.
5702 (fill_gregset, supply_fpregset): Clean up formatting.
5704 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5706 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5707 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5709 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5711 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5712 * gdbarch.c gdbarch.h: Regenerate.
5713 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5715 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5716 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5717 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5719 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5720 * arm-tdep.c (arm_get_longjmp_target): New function.
5721 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5722 this to a positive value register arm_get_longjmp_target as the
5724 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5725 (arm_linux_init_abi): Set up longjmp description in tdep.
5726 * armnbsd-nat.c (get_longjmp_target): Delete.
5727 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5728 description in tdep.
5729 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5730 (get_longjmp_target): Delete declaration.
5731 (GET_LONGJMP_TARGET): Delete.
5732 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5733 (GET_LONGJMP_TARGET): Delete.
5735 2002-02-17 Kevin Buettner <kevinb@redhat.com>
5737 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5738 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5739 of ``current_gdbarch''.
5741 2002-02-17 Tom Tromey <tromey@redhat.com>
5743 * cli/cli-cmds.c (compare_strings): New function.
5744 (complete_command): Only print each unique item once.
5745 * completer.h (complete_line): Declare.
5746 * completer.c (complete_line): New function.
5747 (line_completion_function): Use it.
5749 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5751 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5752 * gdbarch.h, gdbarch.c: Re-generate.
5754 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5756 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5758 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5760 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5761 * valops.c (value_arg_coerce): Don't take the address of a reference
5762 to convert an argument to a reference.
5764 2002-02-15 Christopher Faylor <cgf@redhat.com>
5766 * win32-nat.c (get_image_name): New function.
5767 (handle_load_dll): Use get_image_name function.
5768 (get_child_debug_event): Avoid registering debug events until possibly
5769 execed process is started.
5770 (child_create_inferior): Allow invocation via shell so that command
5771 line redirection, etc. works ok.
5772 (_initialize_inftarg): Add new command: "set shell" to control whether
5773 a shell is used to start a process.
5775 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5777 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5778 instead of find_register_by_number.
5779 (cannot_store_register): Likewise.
5781 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
5783 * dwarf2read.c: Replace fprintf (stderr, ...) by
5784 fprintf_unfiltered (gdb_stderr, ...).
5786 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5788 * gdbserver/gdbserver.1: Document --attach.
5790 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5792 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5794 * arm-tdep.c (arm_default_arm_le_breakpoint)
5795 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5796 (arm_default_thumb_be_breakpoint): New. Initialize them from
5797 traditional breakpoint defines.
5798 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5799 (arm_gdbarch_init): Initialize new breakpoint variables.
5800 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5801 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5802 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5803 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5805 (arm_netbsd_init_abi_common): ... here; new function.
5806 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5807 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5808 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5809 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5811 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5813 * arm-tdep.h (enum arm_abi): New enum.
5814 (struct gdbarch_tdep): New structure.
5815 (LOWEST_PC): Provide a default.
5816 (arm_gdbarch_register_os_abi): Declare new function.
5817 * arm-tdep.c (arm_abi_names): New array.
5818 (process_note_abi_tag_sections): New function.
5819 (get_elfosabi): New function.
5820 (arm_gdbarch_register_os_abi): New function.
5821 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5822 support for that ABI has been built in, then call the appropriate
5823 configuration routine. Use gdbarch_num_regs() to get the number
5825 (arm_dump_tdep): New function.
5826 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5827 place-holder functions.
5828 (_initialize_arm_tdep): Register them.
5829 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5831 * armnbsd-tdep.c: New file.
5832 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5833 * config/arm/nbsd.mt (TDEPFILES): Add it.
5834 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5836 * armnbsd-nat.c: Include regcache.h.
5837 * Makefile.in (armnbsd-nat.o): Update dependency list.
5839 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5841 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5843 * gdbserver/Makefile.in: Fix typos in target rules.
5845 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5847 Fix part of PR gdb/267.
5848 * linespec.c (find_methods): Handle constructors specially for now.
5850 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
5852 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5854 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5855 standard_coerce_float_to_double().
5857 2002-02-14 Christopher Faylor <cgf@redhat.com>
5859 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5862 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
5864 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5865 find_variant_by_name, because it confuses the multiarch
5866 framework. Return NULL if there isn't an architecture with the
5867 user supplied name, instead of forcing a different one without
5868 recording the change with the multiarch machinery.
5869 (find_variant_by_name): Delete.
5871 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5873 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5874 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5876 2002-02-13 Martin M. Hunt <hunt@redhat.com>
5878 * stack.c (print_frame_info_base): When calling
5879 print_frame_info_listing_hook, set current_source_symtab.
5881 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5883 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5884 and remove unused $(INCLUDE_DIR).
5885 Add regcache.c to OBS.
5886 Add generated register protocol files to clean target.
5887 Update dependencies for new objects, obsolete old target code.
5889 * gdbserver/linux-low.c: Remove all platform-specific code to
5890 new files. Remove various dead code. Update to use regcache
5892 * gdbserver/remote-utils.c (fromhex): Add return statement
5894 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5896 (input_interrupt): Add integer parameter to match prototype
5897 of a signal handler.
5898 (outreg): Use register_data ().
5899 (prepare_resume_reply): Use gdbserver_expedite_regs.
5900 * gdbserver/server.c (main): Dynamically allocate own_buf because
5901 PBUFSIZ is no longer constant. Use registers_to_string () and
5902 registers_from_string ().
5903 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5904 for error (), fatal (), and warning (). Update definition of
5905 PBUFSIZ to use regcache functionality. Add include guard.
5906 * gdbserver/utils.c (fatal): Add missing ``const''.
5907 (warning): New function.
5909 * regformats/regdat.sh: Include "regcache.h" in generated files.
5910 Provide init_registers () function.
5911 * regformats/regdef.h: Add prototype for set_register_cache ().
5914 * gdbserver/linux-arm-low.c: New file.
5915 * gdbserver/linux-i386-low.c: New file.
5916 * gdbserver/linux-ia64-low.c: New file.
5917 * gdbserver/linux-m68k-low.c: New file.
5918 * gdbserver/linux-mips-low.c: New file.
5919 * gdbserver/linux-ppc-low.c: New file.
5920 * gdbserver/linux-sh-low.c: New file.
5922 * gdbserver/regcache.c: New file.
5923 * gdbserver/regcache.h: New file.
5925 * gdbserver/low-linux.c: Removed obsolete file.
5927 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5929 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5930 * config/i386/linux.mt: Likewise.
5931 * config/ia64/linux.mt: Likewise.
5932 * config/m68k/linux.mh: Likewise.
5933 * config/powerpc/linux.mh: Likewise.
5934 * config/mips/linux.mt: Likewise.
5936 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5938 * config/i386/i386lynx.mh: Mark gdbserver variables
5939 as (currently) obsolete for this target.
5940 * config/i386/nbsd.mt: Likewise.
5941 * config/i386/nbsdelf.mt: Likewise.
5942 * config/m32r/m32r.mt: Likewise.
5943 * config/m68k/m68klynx.mh: Likewise.
5944 * config/m68k/nbsd.mt: Likewise.
5945 * config/m68k/sun3os4.mh: Likewise.
5946 * config/mips/vr5000.mt: Likewise.
5947 * config/ns32k/nbsd.mt: Likewise.
5948 * config/pa/hppabsd.mh: Likewise.
5949 * config/pa/hppaosf.mh: Likewise.
5950 * config/powerpc/nbsd.mt: Likewise.
5951 * config/rs6000/rs6000lynx.mh: Likewise.
5952 * config/s390/s390.mt: Likewise.
5953 * config/s390/s390x.mt: Likewise.
5954 * config/sparc/sparclynx.mh: Likewise.
5955 * config/sparc/sun4os4.mh: Likewise.
5956 * config/i386/x86-64linux.mt: Likewise.
5957 * config/sparc/linux.mh: Likewise.
5959 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5961 * configure.tgt: Configure gdbserver only for known working
5962 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5963 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5964 SUBDIRS if it is configured. Update comment for ${nativefile}.
5965 * configure: Regenerated.
5967 2002-02-13 Michael Snyder <msnyder@redhat.com>
5969 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5971 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5972 (default_gcore_mach): Just return 0, work around a problem in bfd.
5973 (default_gcore_target): OK to return NULL if exec_bfd is null.
5974 (make_mem_sec): Use a cast, avoid a warning.
5976 * procfs.c (find_memory_regions_callback): Use a cast instead of
5977 calling host_pointer_to_address (which complains if
5978 sizeof (host pointer) != sizeof (target pointer)).
5979 (procfs_make_note_section): Avoid overflow in psargs string.
5981 * procfs.c (procfs_make_note_section): Make the default
5982 implementation return an error.
5984 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
5986 * procfs.c (procfs_make_note_section): Provide a default definition
5987 (for alpha-dec-osf4.0f). Fix typos.
5989 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
5991 * linux-proc.c: Add include of regcache.h.
5992 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5994 2002-02-13 Andrew Cagney <ac131313@redhat.com>
5996 From 2002-01-18 Greg McGary <greg@mcgary.org>:
5997 * memattr.c (create_mem_region): Disallow useless empty region.
5998 Regions are half-open intervals, so allow [A..B) [B..C) as
6001 2002-02-13 Michael Chastain <mec@shout.net>
6003 * defs.h: Kill CONST_PTR.
6004 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6005 * c-lang.c (c_builtin_types): Likewise.
6006 * ch-lang.c (ch_builtin_types): Likewise.
6007 * f-lang.c (f_builtin_types): Likewise.
6008 * language.c (unknown_builtin_types): Likewise.
6009 * m2-lang.c (m2_builtin_types): Likewise.
6010 * p-lang.c (pascal_builtin_types): Likewise.
6011 * scm-lang.c (c_builtin_types): Likewise.
6013 2002-02-13 Keith Seitz <keiths@redhat.com>
6015 * arm-tdep.h (arm_get_next_pc): Add declaration.
6017 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6019 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6020 with other related struct-returning functions.
6021 (arm_extract_struct_value_address): New function.
6022 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6023 initialize float_format, double_format and long_double_format as
6024 appropriate to the endianness of the target.
6025 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6026 (arm_use_struct_convention): Delete declaration.
6027 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6029 2002-02-13 Keith Seitz <keiths@redhat.com>
6031 * defs.h (core_addr_to_string_nz): New function.
6033 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6035 Apply missing bits of 2002-01-15 patch.
6036 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6037 (fill_fpregset): Use i387_fill_fsave.
6039 2002-02-12 Keith Seitz <keiths@redhat.com>
6041 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6042 (core_addr_to_string_nz): New function.
6044 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6046 * arm-linux-nat.c: Really include arm-tdep.h.
6047 * config/arm/tm-linux.h (struct type, struct value): Declare.
6049 2002-02-11 Michael Snyder <msnyder@redhat.com>
6051 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6052 (gcore section): Ifdef for Solaris and Unixware only.
6053 (procfs_do_thread_registers): Unixware needs one lwpstatus
6054 per thread (not one prstatus or pstatus).
6055 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6056 not over all gdb threads. For unixware, call elfcore_write_pstatus
6057 once before iterating over threads.
6059 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6061 * arm-tdep.h: New file.
6062 * arm-tdep.c: Include arm-tdep.h.
6063 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6064 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6065 (arm_print_float_info, arm_register_type, convert_to_extended)
6066 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6067 (arm_extract_return_value, arm_register_name): Make static.
6068 (arm_software_single_step): Similarly. Fix types in declaration.
6069 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6070 (arm_store_return_value, arm_store_struct_return): New functions.
6071 (arm_gdbarch_init): Register the above functions. Also register
6072 call_dummy_start_offset, sizeof_call_dummy_words,
6073 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6074 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6075 max_register_virtual_size, register_size. Set up
6076 prologue_cache.saved_regs here, rather than ...
6077 (_initialize_arm_tdep): ... here.
6078 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6080 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6081 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6082 (arm_print_float_info, arm_register_type, convert_to_extended)
6083 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6084 (arm_extract_return_value, arm_register_name): Delete declarations.
6085 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6086 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6087 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6088 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6089 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6090 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6091 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6092 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6093 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6094 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6095 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6096 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6098 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6099 * remote-rdi.c remote-rdp.c: Likewise.
6100 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6101 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6102 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6105 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6106 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6107 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6108 from non-ARM_ prefixed definitions.
6109 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6111 * remote-rdi.c remote-rdp.c: Likewise.
6112 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6114 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6116 * arm-tdep.c (arm_frameless_function_invocation)
6117 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6118 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6119 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6120 (arm_pop_frame, arm_get_next_pc): Make static.
6121 (arm_gdbarch_init): Register above in gdbarch structure.
6122 (arm_read_fp): Renamed from arm_target_read_fp.
6123 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6124 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6125 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6126 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6127 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6128 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6129 (arm_pc_is_thumb_dummy): Delete declarations.
6130 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6131 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6132 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6133 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
6135 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
6137 * symtab.c (compare_search_syms): New function.
6138 (sort_search_symbols): New function.
6139 (search_symbols): Sort symbols after searching rather than
6142 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6144 * NEWS: Linux -> GNU/Linux.
6146 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6148 * gdbarch.sh: For for level one methods, disallow a definition
6149 when partially multi-arched. Add comments explaining rationale.
6150 * gdbarch.h: Re-generate.
6152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6154 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6157 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6159 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6161 * gdbarch.c: Re-generate.
6163 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6165 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
6166 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6169 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6171 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6173 (PUSH_ARGUMENTS): Switch to using predefault.
6174 * gdbarch.c: Regenerate.
6176 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6178 * valops.c (PUSH_ARGUMENTS): Delete definition.
6179 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6180 partial. Default to default_push_arguments.
6181 * gdbarch.h, gdbarch.c: Regenerate.
6183 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6185 * defs.h (throw_exception): Rename return_to_top_level. Update
6187 * utils.c (error_stream, internal_verror, quit): Ditto.
6188 * top.c (throw_exception, catcher): Ditto.
6189 * sparclet-rom.c (sparclet_load): Ditto.
6190 * remote.c (interrupt_query, minitelnet): Ditto.
6191 * remote-sds.c (interrupt_query): Ditto.
6192 * remote-mips.c (mips_error, mips_kill): Ditto.
6193 * ocd.c (interrupt_query): Ditto.
6194 * monitor.c (monitor_interrupt_query): Ditto.
6195 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6196 * target.h: Update comment.
6198 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
6200 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6202 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6203 default_double_format.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205 * findvar.c (floatformat_unknown): Delete variable definition.
6206 * doublest.h (floatformat_unknown): Delete variable declaration.
6208 2002-02-09 Jim Blandy <jimb@redhat.com>
6210 * stabsread.c (read_type): Add code to parse Sun's syntax for
6211 prototyped function types.
6213 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6215 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6216 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6218 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6220 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6221 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6222 now _initialize_xcoffsolib gets called again and overrides the
6223 commands from solib.c in a native configuration.
6225 2002-02-09 Mark Kettenis <kettenis@gnu.org>
6227 * doublest.c (store_typed_floating): Don't try to return a value.
6230 2002-02-08 Jim Blandy <jimb@redhat.com>
6232 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6233 is prototyped and has no arguments, print its argument list as
6236 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6238 * MAINTAINERS (write-after-approval): Add myself.
6239 (paper-trail): I've escaped!
6241 2002-02-08 Christopher Faylor <cgf@redhat.com>
6243 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6245 (_initialize_check_for_gdb_ini): Ditto.
6247 2002-02-08 Martin M. Hunt <hunt@redhat.com>
6249 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6250 xaprintf -> xasprintf.
6252 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6254 * win32-nat.c: Remove use of printf and sprintf functions.
6256 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
6258 * arm-tdep.c (arm_frame_chain_valid): Make static.
6259 (arm_push_arguments): Likewise.
6260 (arm_gdbarch_init): New function.
6261 (_initialize_arm_tdep): Call it.
6262 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6263 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6264 (FRAME_CHAIN_VALID): Delete.
6265 (arm_frame_chain_valid): Delete declaration.
6266 (PUSH_ARGUMENTS): Delete.
6267 (arm_push_arguments): Delete declaration.
6268 (CALL_DUMMY_P): Delete.
6270 2002-02-08 Andrew Cagney <ac131313@redhat.com>
6271 Corinna Vinschen <vinschen@redhat.com>
6273 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6274 on builtin float types.
6276 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
6278 * utils.c: Include <curses.h> before "bfd.h".
6279 * tui/tui-hooks.c: Likewise.
6280 * tui/tui.c: Likewise.
6281 * tui/tuiCommand.c: Likewise.
6282 * tui/tuiData.c: Likewise.
6283 * tui/tuiDataWin.c: Likewise.
6284 * tui/tuiDisassem.c: Likewise.
6285 * tui/tuiGeneralWin.c: Likewise.
6286 * tui/tuiIO.c: Likewise.
6287 * tui/tuiLayout.c: Likewise.
6288 * tui/tuiRegs.c: Likewise.
6289 * tui/tuiSource.c: Likewise.
6290 * tui/tuiSourceWin.c: Likewise.
6291 * tui/tuiStack.c: Likewise.
6292 * tui/tuiWin.c: Likewise.
6294 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
6296 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6297 to include space for pseudoregs as well. Update loops accordingly.
6298 (sh_fp_frame_init_saved_regs): Ditto.
6299 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6301 2002-02-07 Andrew Cagney <ac131313@redhat.com>
6303 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6304 Add Richard Earnshaw to Arm maintainers.
6306 2002-02-07 Andrew Cagney <ac131313@redhat.com>
6308 * defs.h (warning_begin): Delete declaration.
6310 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6313 2002-02-07 Michael Snyder <msnyder@redhat.com>
6315 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6316 Logic bug, remove misplaced else.
6318 2002-02-07 Klee Dienes <klee@apple.com>
6320 * fork-inferior.c (fork_inferior): Add '!' to the list of
6321 characters that need to be quoted when building a string for the
6322 shell. Quote '!' specifically with a backslash, since CSH chokes
6323 when trying to evaluate "str!str".
6325 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6327 * rdi-share/host.h: Only provide a typedef for bool if it is not
6330 2002-02-04 Michael Snyder <msnyder@redhat.com>
6332 * breakpoint.h (enum bptype): Add new overlay event bp type.
6333 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
6335 * breakpoint.c (create_internal_breakpoint): New function.
6336 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6337 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6338 (create_thread_event_breakpoint): Ditto.
6339 (create_solib_event_breakpoint): Ditto.
6340 (create_overlay_event_breakpoint): New function.
6341 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6342 (update_breakpoints_after_exec): Delete and re-initialize
6343 overlay event breakpoints after an exec. Add FIXME comment
6344 about longjmp breakpoint.
6345 (print_it_typical): Ignore overlay event breakpoints.
6346 (print_one_breakpoint): Ditto.
6348 (bpstat_what): Do not stop for overlay event breakpoints.
6349 (delete_breakpoint): Don't delete overlay event breakpoints.
6350 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6351 (breakpoint_re_set): Re-create overlay event breakpoint.
6353 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6354 (overlay_manual_command): Disable overlay breakpoints.
6355 (overlay_off_command): Disable overlay breakpoints.
6357 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6359 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6360 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6361 to here from config/tm-arm.h.
6362 (coff_sym_is_thumb): Make static.
6363 (arm_elf_make_msymbol_special): New function.
6364 (arm_coff_make_msymbol_special): New function.
6365 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6366 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6367 (coff_sym_is_thumb): Delete declaration.
6368 (arm_elf_make_msymbol_special): Declare.
6369 (arm_coff_make_msymbol_special): Declare.
6370 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6371 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6373 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6375 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6377 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6379 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6380 * gdbarch.c gdbarch.h: Regenerate.
6381 * arch-utils.c (default_print_float_info): New function.
6382 * arch-utils.h (default_print_float_info): Prototype it.
6383 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6384 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6385 (PRINT_FLOAT_INFO): Document it.
6387 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6388 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6389 (PRINT_FLOAT_INFO): Define.
6391 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6393 * win32-nat.c (_initialize_check_for_gdb_ini):
6394 Add typecast to sprintf argument to suppress a warning.
6396 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
6398 * win32-nat.c (last_sig): Changed type of variable to target_signal,
6399 to allow easier handling of pass state.
6400 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6401 that gives exception name and address.
6402 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
6403 and set last_sig value to ourstatus->value.sig. Some missing
6405 (child_continue): Correctly report continue_status.
6406 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
6407 TARGET_SIGNAL_0 (new default value).
6408 (child_resume): consider sig argument passed to decide if
6409 the exception should be passed to debuggee or not.
6411 2002-02-05 Michael Snyder <msnyder@redhat.com>
6413 * regcache.c (fetch_register): Call target_fetch_register
6414 only if we don't call FETCH_PSEUDO_REGISTER.
6415 (store_register): Call target_store_register only if we
6416 don't call STORE_PSEUDO_REGISTER.
6418 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
6420 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6421 ELF_MAKE_MSYMBOL_SPECIAL.
6422 * gdbarch.c, gdbarch.h: Regenerate.
6423 * arch-utils.c (default_make_msymbol_special): New function.
6424 * arch-utils.h (default_make_msymbol_special): Export.
6425 * elfread.c (elf_symtab_read): Compile use of
6426 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6428 * coffread.c (coff_symtab_read): Ditto, for
6429 COFF_MAKE_MSYMBOL_SPECIAL.
6431 2002-02-05 Jim Blandy <jimb@redhat.com>
6433 * solib-svr4.c (svr4_truncate_ptr): New function.
6434 (svr4_relocate_section_addresses): Do the address arithmetic with
6435 the appropriate truncation for target addresses, even when
6436 CORE_ADDR is larger than a target address.
6438 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6440 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6443 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6445 * gdbserver/linux-low.c (kill_inferior): Remove commented out
6448 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6450 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6452 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6454 * gdbserver/linux-low.c: Remove unused include files.
6456 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6458 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6459 (read_inferior_memory): Use it.
6460 (write_inferior_memory): Likewise.
6462 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6464 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6465 grubbing through sys_errlist.
6467 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6469 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6471 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6472 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6474 2002-02-04 Andrew Cagney <ac131313@redhat.com>
6476 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6477 (do_sfunc, set_cmd_sfunc): New functions.
6479 * command.h (struct cmd_list_element): Add field func.
6480 * cli/cli-decode.h (struct cmd_list_element): Ditto.
6481 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6482 * cli/cli-decode.h: Ditto.
6484 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6485 (help_all, help_cmd_list): Ditto.
6486 (find_cmd, complete_on_cmdlist): Ditto.
6487 * top.c (execute_command): Ditto.
6489 * cli/cli-setshow.c (do_setshow_command): Call func instead of
6492 * infcmd.c (notice_args_read): Fix function signature.
6494 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6495 * cli/cli-decode.c (add_set_cmd): Ditto.
6496 * utils.c (initialize_utils): Ditto.
6497 * maint.c (_initialize_maint_cmds): Ditto.
6498 * infrun.c (_initialize_infrun): Ditto.
6499 * demangle.c (_initialize_demangler): Ditto.
6500 * remote.c (add_packet_config_cmd): Ditto.
6501 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6502 * cris-tdep.c (_initialize_cris_tdep): Ditto.
6503 * proc-api.c (_initialize_proc_api): Ditto.
6504 * kod.c (_initialize_kod): Ditto.
6505 * valprint.c (_initialize_valprint): Ditto.
6506 * top.c (init_main): Ditto.
6507 * infcmd.c (_initialize_infcmd): Ditto.
6508 * corefile.c (_initialize_core): Ditto.
6509 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6510 * arch-utils.c (initialize_current_architecture): Ditto.
6511 (_initialize_gdbarch_utils): Ditto.
6512 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6514 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6515 * wince.c (_initialize_inftarg): Ditto.
6516 * symfile.c (_initialize_symfile): Ditto.
6517 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6518 * language.c (_initialize_language): Ditto.
6519 * arc-tdep.c (_initialize_arc_tdep): Ditto.
6521 2002-02-04 Michael Snyder <msnyder@redhat.com>
6523 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6525 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6527 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6528 Add rules for building the register data files.
6530 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6532 * regformats/regdat.sh: Add braces to the definition of
6533 expedite_regs_${arch}.
6535 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6537 * regformats/regdef.h (struct reg): Add comment describing the
6538 requirements for offset and size fields.
6540 2002-02-04 Andreas Schwab <schwab@suse.de>
6542 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6543 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6545 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
6547 * gdbarch.sh (copyright): Update years in generated header.
6548 (SMASH_TEXT_ADDRESS): Add rule.
6549 * gdbarch.h, gdbarch.c: Re-generate.
6550 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6551 * dbxread.c: Likewise.
6552 * dwarfread.c: Likewise.
6553 * elfread.c: Likewise.
6554 * somread.c: Likewise.
6556 * arm-tdep.c (arm_smash_text_address): New function.
6557 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6559 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6561 Add support for hardware watchpoints on win32 native.
6562 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6563 CONTEXT_DEBUG_REGISTERS.
6564 (dr variable): New variable. Static array containing a local copy
6566 (debug_registers_changed): New variable. Reflects when debug registers
6567 are changed and need to be written to inferior.
6568 (debug_registers_used): New variable. Reflects when any debug register
6569 was set, used when new threads are created.
6570 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6572 (thread_rec): Set dr array if id is the thread of current_event .
6573 (child_continue, child_resume): Change the debug registers for all
6574 threads if debug_registers_changed.
6575 (child_add_thread): Change the debug registers if debug_registers_used.
6576 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6577 Link nm.h to new nm-cygwin.h file.
6578 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6579 of hardware registers.
6581 2002-02-03 Andrew Cagney <ac131313@redhat.com>
6583 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6584 Restore behavour broken by 2002-01-20 Andrew Cagney
6585 <ac131313@redhat.com> IEEE_FLOAT removal.
6587 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6589 * c-valprint.c (c_val_print): Pass a proper valaddr to
6590 cp_print_class_method.
6591 * valops.c (search_struct_method): If there is only one method
6592 and args is NULL, return that method.
6594 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6596 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6597 accessing tag_name directly.
6599 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6601 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6602 of accessing tag_name directly.
6604 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6607 * gdbtypes.c (replace_type): New function.
6608 * gdbtypes.h (replace_type): Add prototype.
6609 * stabsread.c (read_type): Use replace_type.
6611 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
6613 * Makefile.in (memattr.o): Add missing dependencies rule.
6615 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6617 * breakpoint.c (break_at_finish_command): Really export.
6618 (break_at_finish_at_depth_command): Ditto.
6619 (tbreak_at_finish_command): Ditto.
6620 * hppa-tdep.c: Include completer.h.
6621 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6622 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6624 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6626 * utils.c (do_write): New function.
6627 (error_stream): Rewrite combining the code from error_begin and
6629 (verror): Rewrite using error_stream.
6630 (error_begin): Delete function.
6632 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6634 * utils.c (error_begin): Make static.
6635 * defs.h (error_begin): Delete declaration.
6637 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6638 (decode_line_1): Use cplusplus_error instead of error_begin,
6639 cplusplus_hint and return_to_top_level.
6640 * coffread.c (coff_symfile_read): Use error instead of error_begin
6641 and return_to_top_level.
6642 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6644 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6646 * language.h (type_error, range_error): Make string parameter
6648 * language.c (warning_pre_print): Delete extern declaration.
6649 * dwarfread.c (warning_pre_print): Ditto.
6650 * language.c (type_error, range_error): Rewrite to use verror and
6651 vwarning instead of warning_begin.
6653 2002-02-01 Michael Snyder <msnyder@redhat.com>
6655 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6656 (set_ignore_count): Move misplaced comment back where it belongs.
6658 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6660 * command.h (NO_FUNCTION): Delete macro.
6661 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6662 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6663 * tracepoint.c (_initialize_tracepoint): Ditto.
6664 * cli/cli-decode.c (add_set_cmd): Ditto.
6665 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6667 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6669 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6670 Update ``this'' pointer when calling virtual functions.
6672 2002-02-01 Michael Snyder <msnyder@redhat.com>
6674 * breakpoint.c (create_temp_exception_breakpoint): Delete.
6675 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6677 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6679 * regformats/reg-arm.dat: New file.
6680 * regformats/reg-i386.dat: New file.
6681 * regformats/reg-ia64.dat: New file.
6682 * regformats/reg-m68k.dat: New file.
6683 * regformats/reg-mips.dat: New file.
6684 * regformats/reg-ppc.dat: New file.
6685 * regformats/reg-sh.dat: New file.
6686 * regformats/regdef.h: New file.
6687 * regformats/regdat.sh: New file.
6689 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
6691 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6692 (arm_frame_args_address, arm_frame_locals_address): New functions.
6693 (arm_frame_num_args): New function.
6694 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6695 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6696 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6698 2002-01-31 Michael Snyder <msnyder@redhat.com>
6700 * breakpoint.c (break_at_finish_command): Export.
6701 (break_at_finish_at_depth_command): Export.
6702 (tbreak_at_finish_command): Export.
6703 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6704 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6705 "tbreak" commands, which are HPPA specific.
6707 * printcmd.c (disassemble_command): Remove an ancient
6708 artifact of an old merge.
6710 * symfile.h (enum overlay_debugging_state):
6711 Define enum constant values for overlay mode.
6712 * symfile.c (overlay_debugging): Use enums instead of literals.
6713 (overlay_is_mapped, overlay_auto_command,
6714 overlay_manual_command): Ditto.
6716 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6717 breakpoint_here_p, breakpoint_inserted_here_p,
6718 breakpoint_thread_match, bpstat_stop_status,
6719 describe_other_breakpoints, check_duplicates, clear_command):
6720 Coding standard fixes.
6722 * target.c (target_xfer_memory): Add spaces, coding standard.
6723 (do_xfer_memory): Add missing line to trust-readonly
6724 code: check bfd SEC_READONLY flag for section.
6726 2002-01-31 Andrew Cagney <ac131313@redhat.com>
6728 * PROBLEMS: Fix typo, 5.1->5.1.1.
6730 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
6732 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6733 data symbols, since we search based on textlow and texthigh.
6734 (find_pc_sect_symtab): Likewise.
6736 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6738 * defs.h (vwarning): Declare.
6739 * utils.c (vwarning): New function.
6740 (warning): Call vwarning.
6741 (warning_begin): Delete function.
6743 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6744 the warning message.
6745 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6748 2002-01-30 Michael Snyder <msnyder@redhat.com>
6750 * NEWS: Mention "set trust-readonly-sections" command.
6751 Mention generate-core-file command.
6753 2002-01-15 Michael Snyder <msnyder@redhat.com>
6755 * target.c: New command, "set trust-readonly-sections on".
6756 (do_xfer_memory): Honor the suggestion to trust readonly sections
6757 by reading them from the object file instead of from the target.
6758 (initialize_targets): Register command "set trust-readonly-sections".
6760 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6762 * parse.c (target_map_name_to_register): Simplify, search regs and
6763 pseudo-regs using a single loop.
6765 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6767 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6769 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
6771 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6772 * config/i386/i386v42mp.mh: Add i387-nat.o .
6773 * i386v4-nat.c: Include i387-nat.h.
6774 (supply_fpregset): Use i387_supply_fsave.
6775 (fill_fpregset): Use i387_fill_fsave.
6777 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
6779 * arm-tdep.c (arm_call_dummy_words): Define.
6780 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6781 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6782 (CALL_DUMMY_WORDS): Define.
6783 (arm_call_dummy_words): Declare.
6784 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6785 (arm_linux_call_dummy_words): Declare.
6787 2002-01-30 Andreas Schwab <schwab@suse.de>
6789 * m68klinux-nat.c: Fix last change to use regcache_collect
6790 instead of referencing registers[] directly.
6792 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6794 * parse.c (target_map_name_to_register): Delete code wrapped in
6795 #ifdef REGISTER_NAME_ALIAS_HOOK.
6797 2002-01-28 Michael Snyder <msnyder@redhat.com>
6799 * regcache.c (legacy_read_register_gen): Need to be able to
6800 read pseudo-register as well as real register.
6801 (legacy_write_register_gen): Ditto.
6803 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6805 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6806 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6807 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6808 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6809 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6810 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6811 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6812 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6813 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6814 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6815 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6816 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6817 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6818 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6819 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6820 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6821 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6822 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6823 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6824 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6826 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6828 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6829 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6830 (initialize_current_architecture): Update target_byte_order using
6831 information from BFD.
6832 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6833 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6835 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6837 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6838 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6840 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6841 #ifdef INVALID_FLOAT.
6842 * infcmd.c (do_registers_info): Ditto.
6843 * values.c (unpack_double): Ditto. Add comment.
6845 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6846 already commented out.
6848 2002-01-26 Andreas Schwab <schwab@suse.de>
6850 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6851 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6852 registers and add support for PTRACE_GETREGS.
6854 2002-01-24 Andrew Cagney <ac131313@redhat.com>
6856 GDB 5.1.1 released from 5.1 branch.
6857 * NEWS: Add 5.1.1 news.
6858 * README: Sync with 5.1 branch.
6860 2002-01-23 Fred Fish <fnf@redhat.com>
6862 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6863 stabstring on initial malloc. Reallocing will copy it for us,
6866 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6868 * Makefile.in (hpread_h): Delete.
6869 (HFILES_NO_SRCDIR): Remove hpread.h.
6870 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6871 (hpread.o): Update dependencies.
6872 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6874 * hp-psymtab-read.c: Remove file.
6875 * hp-symtab-read.c: Remove file.
6876 * hpread.h: Remove file.
6878 * hpread.c: Merge all contents of hp-psymtab-read.c,
6879 hp-symtab-read.c and hpread.h into this file, as it was prior to
6882 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6883 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6884 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6885 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6887 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6889 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6890 fill_gregset): Call gdbarch_tdep() just once, assign result to
6891 variable and use that, instead of calling the function several
6894 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6896 * configure.host: Accept sparcv9 as alias for sparc64.
6897 * configure.tgt: Likewise.
6899 2002-01-22 Kevin Buettner <kevinb@redhat.com>
6901 * solib-aix5.c (build_so_list_from_mapfile)
6902 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6903 arguments is not reversed.
6904 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6905 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6907 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
6909 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6910 modified version of obsolete sh_fetch_pseudo_register.
6911 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6912 (sh4_register_read): New function.
6913 (sh_pseudo_register_write): New function. Renamed and modified
6914 version of obsolete sh_store_pseudo_register.
6915 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6916 (sh4_register_write): New function.
6917 (sh_gdbarch_init): Remove setting of gdbarch function
6918 fetch_pseudo_register and store_pseudo_register. Remove setting of
6919 register_convert_to_raw, register_convert_to_virtual,
6920 register_convertible.
6921 (sh_sh4_register_convertible): Delete. No longer needed. All is
6922 taken care by architecture specific functions
6923 register_read/register_write.
6924 (sh_sh4_register_convert_to_virtual): Make static.
6925 (sh_sh4_register_convert_to_raw): Ditto.
6927 2002-01-22 Andrew Cagney <ac131313@redhat.com>
6929 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6930 (floatformat_is_nan, floatformat_mantissa): Ditto.
6932 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6933 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6934 builtin_type_ieee_double_little,
6935 builtin_type_ieee_double_littlebyte_bigword,
6936 builtin_type_m68881_ext, builtin_type_i960_ext,
6937 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6938 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6939 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6940 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6942 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
6944 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6945 parameter. Set frameless flag if it exists and depended of
6946 whether the scanned function is frameless or not.
6947 (xstormy16_skip_prologue): If function is frameless, return
6948 result of xstormy16_scan_prologue().
6949 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6952 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
6954 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6955 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6956 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6957 sh_sh4_register_byte, sh_sh4_register_raw_size,
6958 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6959 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6960 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6961 sh_store_pseudo_register, sh_do_pseudo_register): Call
6962 gdbarch_tdep() just once, assign result to variable and use that,
6963 instead of calling the function several times.
6965 2002-01-20 Mark Kettenis <kettenis@gnu.org>
6967 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6968 macros instead of LAST_FPU_CTRL_REGNUM.
6969 (store_register): Likewise.
6971 2002-01-21 Jim Blandy <jimb@redhat.com>
6973 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6974 is up-to-date before running the program, not just when a program
6977 2002-01-21 Fred Fish <fnf@redhat.com>
6979 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6980 when we have found all instructions we are looking for.
6982 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6984 * arm-tdep.c (arm_register_name): New function.
6985 (arm_registers_names): Make static.
6986 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6987 (arm_register_name): Declare.
6988 (REGISTER_NAME): Use it.
6990 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6991 Kevin Buettner <kevinb@redhat.com>
6993 Convert arm targets to new FRAME interface.
6994 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6995 (arm_frame_find_save_regs): Delete.
6996 (arm_frame_init_saved_regs): New.
6997 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6998 Allocate extra_info as required. Convert all uses of fsr.regs
6999 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7001 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7002 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7003 (check_prologue_cache, save_prologue_cache): Likewise.
7004 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7005 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7006 (FRAME_FIND_SAVED_REGS): Delete.
7007 (arm_frame_find_saved_regs): Delete prototype.
7008 (arm_frame_init_saved_regs): New prototype.
7009 (FRAME_INIT_SAVED_REGS): Define.
7011 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7013 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7015 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7017 From Jeff Law <law@redhat.com>:
7018 * infttrace.c: Include <sys/pstat.h>.
7019 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7020 exec file if the ttrace equivalent fails.
7022 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7024 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7025 (closeLogFile): Ditto.
7027 2002-01-20 Michael Chastain <mec@shout.net>
7029 * top.c (print_gdb_version): Bump copyright year to 2002.
7031 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7033 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7034 Zannoni and Eli Zaretskii.
7036 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7038 * buildsym.c: Update copyright years.
7039 * c-typeprint.c: Likewise.
7040 * dwarf2read.c: Likewise.
7041 * f-typeprint.c: Likewise.
7042 * gdbtypes.c: Likewise.
7043 * gdbtypes.h: Likewise.
7044 * hp-symtab-read.c: Likewise.
7045 * hpread.c: Likewise.
7046 * mdebugread.c: Likewise.
7047 * p-typeprint.c: Likewise.
7049 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7051 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7052 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7053 byte-order selectable.
7054 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7055 * arch-utils.c: Ditto.
7056 (set_endian): Ditto.
7057 (set_endian_from_file): Ditto.
7058 * gdbserver/low-sim.c (create_inferior): Ditto.
7059 * gdbarch.sh: Ditto.
7060 * gdbarch.h: Re-generate.
7061 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7062 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7063 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7064 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7065 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7066 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7067 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7068 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7070 * config/mips/tm-wince.h: Remove #undef of macro
7071 TARGET_BYTE_ORDER_SELECTABLE.
7072 * config/sh/tm-wince.h: Ditto.
7074 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7076 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7077 member function fields. Add accessor macro
7078 TYPE_FN_FIELD_ARTIFICIAL.
7079 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7080 * c-typeprint.c (c_type_print_base): Skip artificial member
7083 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7085 * f-typeprint.c: Delete unused function f_type_print_args.
7086 * p-typeprint.c: Delete unused function pascal_type_print_args.
7088 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7090 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7091 comment. Add ``artificial'' to ``union field_location''.
7093 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7095 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7096 * mdebugread.c (parse_symbol): Likewise.
7097 * stabsread.c (define_symbol): Likewise.
7098 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7099 initializing TYPE_FIELD_BITPOS to n (obsolete).
7100 (hpread_doc_function_type): Likewise.
7101 * hpread.c (hpread_function_type): Likewise.
7103 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7105 * configure.in (host_makefile_frag): Only require a host makefile
7106 fragment when a native build.
7107 * configure: Re-generate.
7109 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7111 * doublest.h (floatformat_from_type): Declare.
7112 * doublest.c (floatformat_from_type): New function.
7113 (convert_typed_floating): Use.
7115 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7116 call to function floatformat_from_type.
7118 * gdbarch.sh (IEEE_FLOAT): Delete.
7119 * gdbarch.h, gdbarch.c: Re-generate.
7120 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7121 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7122 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7123 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7124 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7125 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7126 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7127 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7128 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7129 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7130 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
7131 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7133 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7134 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7135 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7136 * sh-tdep.c (sh_gdbarch_init): Ditto.
7137 * mips-tdep.c (mips_gdbarch_init): Ditto.
7138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7139 * cris-tdep.c (cris_gdbarch_init): Ditto.
7141 2002-01-20 Jiri Smid <smid@suse.cz>
7143 * configure.host, configure.tgt: Support x86-64.
7144 * NEWS: Note new target x86-64.
7146 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7147 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7148 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7149 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7150 x86-64-linux-nat.o): Fix dependencies.
7152 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7154 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7155 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7156 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7157 * config/sparc/xm-sun4os4.h: Delete file.
7158 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
7160 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7162 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7163 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7164 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7165 * config/i386/i386lynx.mh (XM_FILE): Delete.
7166 * config/rs6000/xm-rs6000ly.h: Delete file.
7167 * config/sparc/xm-sparclynx.h: Delete file.
7168 * config/m68k/xm-m68klynx.h: Delete file.
7169 * config/i386/xm-i386lynx.h: Delete file.
7170 * config/xm-lynx.h: Delete file.
7171 * config/djgpp/fnchange.lst: Update.
7173 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7175 * alpha-tdep.c (alpha_register_byte): New function.
7176 (alpha_register_raw_size): Ditto.
7177 (alpha_register_virtual_size): Ditto.
7178 (alpha_skip_prologue_internal): Renamed from
7179 alpha_skip_prologue.
7180 (alpha_skip_prologue): New version that calls
7181 alpha_skip_prologue_internal.
7182 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7183 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7184 second argument from alpha_skip_prologue.
7185 (REGISTER_BYTE): Use alpha_register_byte.
7186 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7187 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7188 (FRAMELESS_FUNCTION_INVOCATION): Use
7189 generic_frameless_function_invocation_not.
7190 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7191 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7193 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7195 * config/mips/xm-news-mips.h: Delete file.
7196 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7198 * config/m88k/xm-m88k.h: Delete file.
7199 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7200 * config/m88k/xm-delta88v4.h: Ditto.
7201 * config/m88k/xm-delta88.h: Ditto.
7203 * config/alpha/xm-fbsd.h: Delete file.
7204 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7206 * config/sparc/xm-sparc.h: Delete file.
7207 * Makefile.in (xm-sun4os4.h): Delete dependency.
7208 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7209 * config/sparc/xm-sun4os4.h: Ditto.
7210 * config/sparc/xm-linux.h: Ditto.
7212 * config/i386/xm-windows.h: Delete file.
7214 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7216 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7217 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7219 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7221 * alpha-tdep.c (alpha_call_dummy_words): New.
7222 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7223 (CALL_DUMMY_P): Define.
7224 (CALL_DUMMY_WORDS): Define.
7225 (SIZEOF_CALL_DUMMY_WORDS): Define.
7227 2002-01-19 Per Bothner <per@bothner.com>
7229 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7230 isn't NULL, which can happen with some gcj-3.x-produced code.
7232 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7234 * alpha-tdep.c (alpha_register_virtual_type): New function.
7235 (alpha_init_frame_pc_first): Ditto.
7236 (alpha_fix_call_dummy): Ditto.
7237 (alpha_store_struct_return): Ditto.
7238 (alpha_extract_struct_value_address): Ditto.
7239 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7240 alpha_register_virtual_type.
7241 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7242 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7243 alpha_extract_struct_value_address.
7244 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7245 (INIT_FRAME_PC): Use init_frame_pc_noop.
7246 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7248 2002-01-19 Mark Kettenis <kettenis@gnu.org>
7250 * i386gnu-nat.c: Include "i386-tdep.h".
7251 (fetch_fpregs): Simplify code dealing with uninitialized floating
7252 point states such that it doesn't require FP7_REGNUM.
7254 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7256 * alpha-tdep.c (frame_extra_info): New.
7257 (alpha_find_saved_regs): Make static. Use
7259 (alpha_frame_init_saved_regs): New function.
7260 (alpha_frame_saved_pc): Use frame->extra_info.
7261 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7262 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
7263 (init_extra_frame_info): Rename to...
7264 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
7265 (alpha_print_extra_frame_info): New function.
7266 (alpha_frame_locals_address): Ditto.
7267 (alpha_frame_args_address): Ditto.
7268 (alpha_pop_frame): Use frame->extra_info.
7269 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7270 alpha_frame_args_address.
7271 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
7272 (alpha_find_saved_regs): Remove prototype.
7273 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7274 (EXTRA_FRAME_INFO): Remove.
7275 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7276 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7278 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7280 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7281 (alpha_cannot_fetch_register): Ditto.
7282 (alpha_cannot_store_register): Ditto.
7283 (alpha_register_convertible): Ditto.
7284 (alpha_use_struct_convention): Ditto.
7285 * config/alpha/tm-alpha.h: Update copyright years.
7286 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7287 (INNER_THAN): Use core_addr_lessthan.
7288 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7289 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7290 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7291 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7292 (FRAME_CHAIN): Remove unnecessary cast.
7294 2002-01-18 Andrew Cagney <ac131313@redhat.com>
7296 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7299 2002-01-18 Andrew Cagney <ac131313@redhat.com>
7301 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7302 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7303 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7304 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7305 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7306 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7307 * x86-64-linux-nat.c: Ditto.
7309 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7311 * alpha-tdep.c (alpha_register_name): New function.
7312 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7313 (REGISTER_NAME): Define.
7315 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7317 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7319 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7321 * alpha-tdep.c: Update copyright years.
7322 (alpha_next_pc): New function.
7323 (alpha_software_single_step): Ditto.
7324 * config/alpha/tm-alpha.h: Add prototype for
7325 alpha_software_single_step.
7327 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7329 * alphabsd-nat.c: Update copyright years.
7330 (fill_gregset): Use regcache_collect.
7331 (fill_fpregset): Likewise.
7332 (fetch_inferior_registers): Only fetch integer registers
7333 if requested to do so.
7334 (store_inferior_registers): Only store integer registers
7335 if requested to do so.
7337 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7339 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7340 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7341 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7342 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7343 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7344 * config/arm/linux.mh (XDEPFILES): Delete.
7345 * config/arm/nbsd.mh (XDEPFILES): Delete.
7346 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7347 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7348 * config/i386/i386m3.mh (XDEPFILES): Delete.
7349 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7350 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7351 * config/i386/fbsd.mh (XDEPFILES): Delete.
7352 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7353 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7354 * config/i386/i386v4.mh (XDEPFILES): Delete.
7355 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7356 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7357 * config/i386/i386aix.mh (XDEPFILES): Delete.
7358 * config/i386/go32.mh (XDEPFILES): Delete.
7359 * config/i386/cygwin.mh (XDEPFILES): Delete.
7360 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7361 * config/i386/i386mach.mh (XDEPFILES): Delete.
7362 * config/i386/i386v32.mh (XDEPFILES): Delete.
7363 * config/i386/linux.mh (XDEPFILES): Delete.
7364 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7365 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7366 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7367 * config/i386/i386sco.mh (XDEPFILES): Delete.
7368 * config/i386/i386v.mh (XDEPFILES): Delete.
7369 * config/i386/nbsd.mh (XDEPFILES): Delete.
7370 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7371 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7372 * config/i386/symmetry.mh (XDEPFILES): Delete.
7373 * config/i386/obsd.mh (XDEPFILES): Delete.
7374 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7375 * config/ia64/linux.mh (XDEPFILES): Delete.
7376 * config/ia64/aix.mh (XDEPFILES): Delete.
7377 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7378 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7379 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7380 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7381 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7382 * config/m68k/linux.mh (XDEPFILES): Delete.
7383 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7384 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7385 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7386 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7387 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7388 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7389 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7390 * config/m88k/delta88.mh (XDEPFILES): Delete.
7391 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7392 * config/m88k/m88k.mh (XDEPFILES): Delete.
7393 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7394 * config/mips/linux.mh (XDEPFILES): Delete.
7395 * config/mips/irix6.mh (XDEPFILES): Delete.
7396 * config/mips/irix5.mh (XDEPFILES): Delete.
7397 * config/mips/irix4.mh (XDEPFILES): Delete.
7398 * config/mips/irix3.mh (XDEPFILES): Delete.
7399 * config/mips/decstation.mh (XDEPFILES): Delete.
7400 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7401 (NATDEPFILES): Move core-aout.o to here.
7402 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7403 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7404 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7405 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7406 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7407 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7408 * config/pa/hpux11.mh (XDEPFILES): Delete.
7409 * config/powerpc/aix.mh (XDEPFILES): Delete.
7410 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7411 * config/powerpc/linux.mh (XDEPFILES): Delete.
7412 * config/romp/rtbsd.mh: Rename XDEPFILES.
7413 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7414 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7415 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7416 * config/s390/s390.mh (XDEPFILES): Delete.
7417 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7418 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7419 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7420 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7421 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7422 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7423 * config/sparc/linux.mh (XDEPFILES): Delete.
7424 * config/vax/vaxult.mh (XDEPFILES): Delete.
7425 * config/vax/vaxult2.mh (XDEPFILES): Delete.
7426 * Makefile.in (DEPFILES): Remove XDEPFILES.
7428 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7430 * utils.c (internal_verror): Fix comments, default is yes not no.
7431 Update queries to match. Default to quit and dump core.
7433 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7435 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
7437 * defs.h, event-top.c, gdbcmd.h: Ditto.
7438 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7439 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7440 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7441 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7442 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7443 * mi/mi-main.c:Ditto.
7445 * stack.c, symfile.c: Update copyright.
7447 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
7449 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7450 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7451 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7452 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
7454 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
7456 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7457 * gdbserver/low-lynx.c (myattach): Likewise.
7458 * gdbserver/low-nbsd.c (myattach): Likewise.
7459 * gdbserver/low-sim.c (myattach): Likewise.
7460 * gdbserver/low-sparc.c (myattach): Likewise.
7461 * gdbserver/low-sun3.c (myattach): Likewise.
7463 * gdbserver/low-linux.c (myattach): New function.
7465 * gdbserver/server.c (attach_inferior): New function.
7466 (main): Handle "--attach".
7468 2002-01-16 Andrew Cagney <ac131313@redhat.com>
7470 * MAINTAINERS (language support): Daniel Jacobwitz is C++
7473 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
7475 * c-typeprint.c (is_type_conversion_operator): Add additional
7476 check for non-conversion operators.
7478 2002-01-15 Michael Snyder <msnyder@redhat.com>
7480 * linux-proc.c: Add "info proc" command, a la procfs.c.
7481 (read_mapping): New function, abstract and re-use code.
7482 (linux_find_memory_regions): Use new func read_mapping.
7483 (linux_info_proc_cmd): New function, implement "info proc".
7484 (_initialize_linux_proc): Add new command "info proc".
7486 2002-01-15 Michael Snyder <msnyder@redhat.com>
7488 * symfile.c (generic_load): Use bfd_map_over_sections method
7489 instead of manipulating bfd structure members directly.
7490 (add_section_size_callback): New function, bfd sections callback
7491 used by generic_load.
7492 (load_sections_callback): New function, bfd sections callback
7493 used by generic_load.
7495 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
7497 [Based on work by Jim Blandy]
7498 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7499 (builtin_type_vec128): Export.
7500 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7502 (builtin_type_vec128): New builtin type for 128 bit vector
7504 (build_gdbtypes): Initialize builtin_type_v16qi and
7505 builtin_type_v8hi. Create the vec128 register builtin type
7507 (build_builtin_type_vec128): New function.
7508 (_initialize_gdbtypes): Register builtin_type_v16qi and
7509 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7510 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7511 AltiVec register to new builtin type.
7513 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
7515 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7518 2002-01-14 Andrew Cagney <ac131313@redhat.com>
7520 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7521 CLEAN_UP_REGISTER_VALUE.
7522 * regcache.c (supply_register): Update only call.
7524 2002-01-14 Andrew Cagney <ac131313@redhat.com>
7526 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7527 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7528 a29k-*-vxworks* targets as obsolete.
7530 2002-01-14 Michael Snyder <msnyder@redhat.com>
7532 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7533 until we can resolve portability issues.
7534 * gregset.h: Remove references to fpxregs.
7535 * gcore.c (gcore_command): Initialize note_sec to NULL.
7537 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7539 * signals.c (target_signal_to_name): Rewrite. Only use
7540 signals[].name when in bounds and non-NULL.
7542 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7544 From Petr Ledvina <ledvinap@kae.zcu.cz>:
7545 * signals.c (target_signal_to_name): Verify that SIG is within the
7546 bounds of the signals array.
7548 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7550 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7552 2002-01-13 Keith Seitz <keiths@redhat.com>
7554 * stack.c (print_frame_info_base): Print the frame's pc
7555 only if when print_frame_info_listing_hook is not defined.
7557 2002-01-13 Keith Seitz <keiths@redhat.com>
7559 * varobj.c (varobj_set_value): Make sure that there were no
7560 errors evaluating the object before attempting to set its
7562 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7563 so this offset adjustment is no longer necessary.
7564 (create_child): Don't set the error flag if the child is
7566 (value_of_child): If value_fetch_lazy fails, return NULL
7567 so that callers will be notified that an error occurred.
7568 (c_value_of_variable): Delay check of variable's validity
7569 until later. We actually want all structs and unions to have
7571 Do not return "???" for variables which could not be evaluated.
7572 This error condition must be returned to the caller so that it
7573 can get the error condition from gdb.
7574 (cplus_name_of_child): Adjust index for vptr before figuring
7575 out the name of the child.
7576 (cplus_value_of_child): If a child's (real) parent is not valid,
7577 don't even bother trying to give a value for it. Just return
7578 an error. Change all instances in this function.
7579 (cplus_type_of_child): If our parent is one of the "fake"
7580 parents, we need to get at the type of the real parent, and
7581 derive the child's true type using this information.
7583 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7585 From 2002-01-09 John Marshall <johnm@falch.net>:
7586 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7587 sources.redhat.com, and tweak some related URLs which had
7588 suffered from linkrot.
7590 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7593 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7594 structures passed in registers.
7596 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7598 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7599 white space which prevented compilation. Reported by DSK
7600 <dsk@student.unsw.edu.au>.
7602 2002-01-11 Michael Snyder <msnyder@redhat.com>
7604 * symfile.c (build_section_addr_info_from_section_tab):
7605 Use bfd access method instead of manipulating bfd directly.
7606 (syms_from_objfile): Ditto.
7607 (simple_overlay_update_1): Ditto.
7608 (simple_overlay_update): Ditto.
7609 (generic_load): Ditto.
7610 (overlay_unmapped_address): FIXME comment, bfd access methods.
7611 (sections_overlap): FIXME comment, bfd access methods.
7612 (pc_in_mapped_range): FIXME comment, bfd access methods.
7613 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7614 (section_is_mapped): FIXME comment, bfd access methods.
7615 (section_is_overlay): FIXME comment, bfd access methods.
7617 * symfile.c (generic_load): Whitespace and long line cleanups.
7618 Remove duplicate variable, change several local variables to
7619 more appropriate data types.
7620 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7622 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7625 * language.c (longest_local_hex_string_custom): Use phex_nz to
7626 convert NUM to a hex string.
7628 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
7630 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7632 Update Copyright year.
7634 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7636 * language.c (longest_raw_hex_string): Delete unused function.
7638 2002-01-11 Petr Sorfa <petrs@caldera.com>
7640 * MAINTAINERS (write-after-approval): Add myself.
7641 * dwarf2read.c (read_tag_string_type): Handling of
7643 (read_tag_string_type): FORTRAN fix to prevent propagation of
7645 (set_cu_language): Handling of DW_LANG_Fortran95
7647 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
7649 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7650 GETPID(inferior_ptid).
7651 (store_inferior_registers): Likewise.
7653 2002-01-10 Jason Merrill <jason@redhat.com>
7655 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7658 2002-01-10 Andrew Cagney <ac131313@redhat.com>
7660 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7661 and bfd/elf32-sh-nbsd.c.
7663 2002-01-10 Michael Snyder <msnyder@redhat.com>
7665 * NEWS: Mention --pid and corefile/proc-id behavior change.
7667 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7668 * gcore.c: Include cli/cli-decode.h instead of command.h.
7670 * main.c (captured_main): Add new command line option "--pid".
7671 If the second command line argument (following the symbol-file)
7672 begins with a digit, try to attach to it before trying to open
7674 (print_gdb_help): Document the "--pid" argument.
7676 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7678 * completer.c (command_completer): New function.
7680 * completer.h <command_completer>: Add prototype.
7682 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7683 completer for the "help" command.
7685 2002-01-09 Jason Merrill <jason@redhat.com>
7687 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7689 2002-01-09 Michael Snyder <msnyder@redhat.com>
7691 * i386-linux-nat.c (fill_fpxregset): Make global.
7692 (store_fpxregset): Ditto.
7694 * gregset.h (gdb_fpxregset_t): Define.
7695 (supply_fpxregset): Prototype.
7696 (fill_fpxregset): Prototype.
7698 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7700 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7702 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7703 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7704 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7706 2002-01-09 Andrew Cagney <ac131313@redhat.com>
7708 * MAINTAINERS: Update target maintainer rules so that any
7709 Maintainer can approve a tested patch for a maintenance-only
7712 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7714 * MAINTAINERS (write-after-approval): Add myself.
7716 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7719 2002-01-08 Michael Snyder <msnyder@redhat.com>
7721 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7722 real name of the executable, rather than the /proc name.
7724 2002-01-03 Michael Snyder <msnyder@redhat.com>
7726 Implement a "generate-core-file" command in gdb, save target state.
7727 * gcore.c: New file. Implement new command 'generate-core-file'.
7728 Save a corefile image of the current state of the inferior.
7729 * linux-proc.c: Add linux-specific code for saving corefiles.
7730 * target.h (struct target_ops): Add new target vectors for saving
7731 corefiles; to_find_memory_regions and to_make_corefile_notes.
7732 (target_find_memory_regions): New macro.
7733 (target_make_corefile_notes): New macro.
7734 * target.c (update_current_target): Inherit new target methods.
7735 (dummy_find_memory_regions): New place-holder method.
7736 (dummy_make_corefile_notes): New place-holder method.
7737 (init_dummy_target): Initialize new dummy target vectors.
7738 * exec.c (exec_set_find_memory_regions): New function.
7739 Allow the exec_ops vector for memory regions to be taken over.
7740 (exec_make_note_section): New function, target vector method.
7741 * defs.h (exec_set_find_memory_regions): Export prototype.
7742 * procfs.c (proc_find_memory_regions): New function, corefile method.
7743 (procfs_make_note_section): New function, corefile method.
7744 (init_procfs_ops): Set new target vector pointers.
7745 (find_memory_regions_callback): New function.
7746 (procfs_do_thread_registers): New function.
7747 (procfs_corefile_thread_callback): New function.
7748 * sol-thread.c (sol_find_memory_regions): New function.
7749 (sol_make_note_section): New function.
7750 (init_sol_thread_ops): Initialize new target vectors.
7751 * inftarg.c (inftarg_set_find_memory_regions): New function.
7752 Allow to_find_memory_regions vector to be taken over.
7753 (inftarg_set_make_corefile_notes): New function.
7754 Allow to_make_corefile_notes vector to be taken over.
7755 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7756 interface layer if not target_has_execution (may be a corefile).
7757 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7758 * config/sparc/sun4sol2.mh: Ditto.
7759 * config/alpha/alpha-linux.mh: Ditto.
7760 * config/arm/linux.mh: Ditto.
7761 * config/i386/x86-64linux.mh: Ditto.
7762 * config/ia64/linux.mh: Ditto.
7763 * config/m68k/linux.mh: Ditto.
7764 * config/mips/linux.mh: Ditto.
7765 * config/powerpc/linux.mh: Ditto.
7766 * config/sparc/linux.mh: Ditto.
7768 2002-01-07 Michael Snyder <msnyder@redhat.com>
7770 * arm-linux-nat.c: Remove references to regcache.c internal data
7771 (registers[] and register_valid[]).
7773 2002-01-07 Michael Snyder <msnyder@redhat.com>
7775 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7776 so that attaching to a pid will automatically read the process's
7777 symbol file and shlibs.
7778 * Makefile.in: Add rule for linux-proc.o.
7779 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7780 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7781 * config/arm/linux.mh: Ditto.
7782 * config/i386/linux.mh: Ditto.
7783 * config/i386/x86-64linux.mh: Ditto.
7784 * config/ia64/linux.mh: Ditto.
7785 * config/m68k/linux.mh: Ditto.
7786 * config/mips/linux.mh: Ditto.
7787 * config/powerpc/linux.mh: Ditto.
7788 * config/sparc/linux.mh: Ditto.
7790 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
7792 * win32-nat.c: Add i386-tdep.h dependency.
7794 2002-01-07 Michael Snyder <msnyder@redhat.com>
7796 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7797 instead of bfd_get_arch_size. Don't bail out just because
7798 there's no exec_bfd.
7800 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7801 * p-valprint.c (pascal_object_print_value): Ditto.
7802 * somread.c (som_symtab_read): Ditto.
7803 * symfile.c (simple_free_overlay_region_table): Ditto.
7804 * valops.c (value_assign): Ditto.
7806 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7807 use tilde_expand and strerror for opening save-tracepoints file.
7809 * thread-db.c (thread_db_new_objfile): Indendation fix.
7811 * infptrace.c (GDB_MAX_ALLOCA): New define.
7812 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7813 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7814 can be overridden with whatever value is appropriate to the host).
7815 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7816 alloca to allocate potentially large buffer.
7817 * rs6000-nat.c (child_xfer_memory): Ditto.
7818 * symm-nat.c (child_xfer_memory): Ditto.
7819 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7821 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
7823 From Nick Clifton <nickc@redhat.com>
7824 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7826 2002-01-07 Michael Snyder <msnyder@redhat.com>
7828 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7829 Don't use exec_bfd if it's NULL.
7831 2002-01-06 Mark Kettenis <kettenis@gnu.org>
7833 * valops.c (value_arg_coerce): Fix formatting.
7835 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7837 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7840 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7842 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7843 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7844 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7845 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7846 z8k-coff have not been multi-arched. Update z8k-coff build
7849 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7851 * MAINTAINERS: Mark a29k target as obsolete.
7852 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7853 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7855 * NEWS: Note that a29k targets are obsolete.
7856 * a29k-tdep.c: Mark as obsolete.
7857 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7858 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7859 a29k-*-vxworks* targets as obsolete.
7860 * remote-adapt.c: Obsolete.
7861 * remote-eb.c: Obsolete.
7862 * remote-mm.c: Obsolete.
7863 * remote-udi.c: Obsolete.
7864 * config/a29k/a29k-udi.mt: Obsolete.
7865 * config/a29k/a29k.mt: Obsolete.
7866 * config/a29k/tm-a29k.h: Obsolete.
7867 * config/a29k/tm-vx29k.h: Obsolete.
7868 * config/a29k/vx29k.mt: Obsolete.
7870 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7872 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7873 with BFD_ENDIAN_BIG.
7875 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7877 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7878 * configure, config.in: Re-generate.
7879 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7880 * defs.h: Do not include <endian.h>.
7882 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
7884 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7885 * config.in: Regenerate.
7886 * configure.in: Update copyright years.
7887 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7888 * configure: Regenerate.
7889 * i386bsd-nat.c: Update copyright years.
7890 (fill_gregset): Use regcache_collect.
7891 (fetch_inferior_registers): Only fetch integer registers
7892 if requested to do so. Add support for XMM registers
7893 using PT_GETXMMREGS.
7894 (store_inferior_registers): Only store integer registers
7895 if requested to do so. Add support for XMM registers
7896 using PT_SETXMMREGS.
7897 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7898 (store_inferior_registers): Remove.
7899 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7900 (fetch_elfcore_registers): New function.
7901 (i386nbsd_elfcore_fns): New.
7902 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7903 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7905 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7906 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7907 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7908 * config/i386/tm-nbsd.h: Update copyright years.
7909 (HAVE_SSE_REGS): Define.
7910 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7911 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7912 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7913 (SIGCONTEXT_PC_OFFSET): Remove.
7914 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7916 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7918 * configure.tgt: Remove powerpc-*-macos* target.
7919 * config/m68k/xm-mpw.h: Delete file.
7920 * config/xm-mpw.h: Delete file.
7921 * ser-mac.c: Delete file.
7922 * mpw-make.sed: Delete file.
7923 * mpw-config.in: Delete file.
7924 * mac-xdep.c: Delete file.
7925 * mac-gdb.r: Delete file.
7926 * mac-defs.h: Delete file.
7927 * mac-nat.c: Delete file.
7928 * config/powerpc/macos.mh: Delete file.
7929 * config/powerpc/macos.mt: Delete file.
7930 * config/powerpc/nm-macos.h: Delete file.
7931 * config/powerpc/tm-macos.h: Delete file.
7932 * source.c (openp, open_source_file): Remove obsolete code.
7933 * top.c (gdb_readline): Ditto.
7934 * utils.c (query): Ditto.
7935 * event-top.c (display_gdb_prompt): Ditto.
7936 * Makefile.in (ser-mac.o): Delete obsolete target.
7939 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7941 * defs.h (BIG_ENDIAN): Delete macro definition.
7942 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7943 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7944 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7945 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7946 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7947 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7948 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7949 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7950 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7951 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7952 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7953 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7954 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7955 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7956 * gdbarch.c: Re-generate.
7958 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7960 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7963 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7965 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7967 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7969 * value.h (value_ptr): Delete typedef.
7971 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7973 * i386nbsd-nat.c: Update copyright years.
7974 Include i386-tdep.h.
7976 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
7978 * stabsread.c: Update copyright years.
7980 From Debashis Mahata <debashis.mahata@wipro.com>:
7981 (read_struct_fields): Deal with Sun C compiler erroneous stab
7982 output for structs and unions.
7985 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7987 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7990 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7992 * cp-abi.c: Fix whitespace.
7993 (baseclass_offset): New wrapper function.
7994 * cp-abi.h (baseclass_offset): Add prototype.
7995 (struct cp_abi_ops): Add baseclass_offset pointer.
7997 * valops.c (vb_match): Move to...
7998 * gnu-v2-abi.c (vb_match): here.
7999 * valops.c (baseclass_offset): Move to...
8000 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8002 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8004 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8005 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8006 * hpacc-abi.c (init_hpacc_ops): Likewise.
8008 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8010 * valops.c (find_overload_match): Accept obj as a
8011 reference parameter. Update it before returning.
8012 * value.h (find_overload_match): Update prototype.
8013 * eval.c (evaluate_subexp_standard): Pass object to
8014 find_overload_match by reference.
8016 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8018 * valarith.c: Replace value_ptr with struct value pointer. Remove
8019 register attribute from value declarations.
8022 * scm-lang.c (scm_lookup_name): Ditto.
8024 2002-01-03 Michael Snyder <msnyder@redhat.com>
8026 Abstract the functionality of iterating over mapped memory
8027 regions into a general purpose iterator function.
8028 * procfs.c (iterate_over_mappings): New function, general purpose
8029 iterator for memory sections.
8030 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8031 (solib_mappings_callback): New function, callback for above.
8032 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8033 (info_mappings_callback): New function, callback for above.
8035 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8037 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8039 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8040 * i386-tdep.c: Include "elf-bfd.h".
8041 (process_note_abi_tag_sections): New function.
8042 (i386_gdbarch_init): Add code to recognize various OS/ABI
8045 * maint.c (_initialize_maint_cmds): Add missing \ in
8048 For older changes see ChangeLog-2001
8054 version-control: never