1 2002-06-11 Jim Blandy <jimb@redhat.com>
3 Call the command `info macro', not `show macro'.
4 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6 (_initialize_macrocmd): Register `info_macro_command' in
7 `infolist', not `showlist'.
9 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
11 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
12 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
13 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
14 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
15 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
17 (set_mipsfpu_single_command, set_mipsfpu_double_command)
18 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
19 (_initialize_mips_tdep): Remove dead code.
20 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
21 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
22 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
23 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
24 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
25 MIPS_LAST_FP_ARG_REGNUM): Remove.
27 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
29 * gdbserver/thread-db.c: New file.
30 * gdbserver/proc-service.c: New file.
31 * gdbserver/acinclude.m4: New file.
32 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
33 proc-service.o, and thread-db.o.
34 (linux-low.o): Add USE_THREAD_DB.
35 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
36 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
37 * gdbserver/aclocal.m4: Regenerated.
38 * gdbserver/config.in: Regenerated.
39 * gdbserver/configure: Regenerated.
40 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
41 thread_db.h, and linux/elf.h headrs.
42 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
43 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
44 Check for -lthread_db and thread support.
45 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
47 * gdbserver/i387-fp.c: Constify arguments.
48 * gdbserver/i387-fp.h: Likewise.
49 * gdbserver/inferiors.c: (struct thread_info): Renamed from
50 `struct inferior_info'. Remove PID member. Use generic inferior
51 list header. All uses updated.
52 (inferiors, signal_pid): Removed.
53 (all_threads): New variable.
55 (add_inferior_to_list): New function.
56 (for_each_inferior): New function.
57 (change_inferior_id): New function.
58 (add_inferior): Removed.
59 (remove_inferior): New function.
60 (add_thread): New function.
61 (free_one_thread): New function.
62 (remove_thread): New function.
63 (clear_inferiors): Use for_each_inferior and free_one_thread.
64 (find_inferior): New function.
65 (find_inferior_id): New function.
66 (inferior_target_data): Update argument type.
67 (set_inferior_target_data): Likewise.
68 (inferior_regcache_data): Likewise.
69 (set_inferior_regcache_data): Likewise.
70 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
71 (all_processes, stopping_threads, using_thrads)
72 (struct pending_signals, debug_threads, pid_of): New.
73 (inferior_pid): Replace with macro.
74 (struct inferior_linux_data): Remove.
75 (get_stop_pc, add_process): New functions.
76 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
77 Use add_process and add_thread.
78 (linux_attach_lwp): New function, based on old linux_attach. Use
79 add_process and add_thread. Set stop_expected for new threads.
80 (linux_attach): New function.
81 (linux_kill_one_process): New function.
82 (linux_kill): Kill all LWPs.
83 (linux_thread_alive): Use find_inferior_id.
84 (check_removed_breakpoints, status_pending_p): New functions.
85 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
86 Update. Use WNOHANG. Wait for cloned processes also. Update process
87 struct for the found process.
88 (linux_wait_for_event): New function.
89 (linux_wait): Use it. Support LWPs.
90 (send_sigstop, wait_for_sigstop, stop_all_processes)
91 (linux_resume_one_process, linux_continue_one_process): New functions.
92 (linux_resume): Support LWPs.
93 (REGISTER_RAW_SIZE): Remove.
94 (fetch_register): Use register_size instead. Call supply_register.
95 (usr_store_inferior_registers): Likewise. Call collect_register.
97 (regsets_fetch_inferior_registers): Improve error message.
98 (regsets_store_inferior_registers): Add debugging.
99 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
100 (unstopped_p, linux_signal_pid): New functions.
101 (linux_target_ops): Add linux_signal_pid.
102 (linux_init_signals): New function.
103 (initialize_low): Call it. Initialize using_threads.
104 * gdbserver/regcache.c (inferior_regcache_data): Add valid
106 (get_regcache): Fetch registers lazily. Add fetch argument
107 and update all callers.
108 (regcache_invalidate_one, regcache_invalidate): New
110 (new_register_cache): Renamed from create_register_cache.
111 Return the new regcache.
112 (free_register_cache): Change argument to a void *.
113 (registers_to_string, registers_from_string): Call get_regcache
115 (register_data): Make static. Pass fetch flag to get_regcache.
116 (supply_register): Call get_regcache with fetch flag clear.
117 (collect_register): Call get_regcache with fetch flag set.
118 (collect_register_as_string): New function.
119 * gdbserver/regcache.h: Update.
120 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
122 Handle input interrupts while waiting for an ACK.
123 (input_interrupt): Use signal_pid method.
124 (getpkt): Flush after debug output and use stderr.
125 (outreg): Use collect_register_as_string.
126 (new_thread_notify, dead_thread_notify): New functions.
127 (prepare_resume_reply): Check using_threads. Set thread_from_wait
129 (look_up_one_symbol): Flush after debug output.
130 * gdbserver/server.c (step_thread, server_waiting): New variables.
131 (start_inferior): Don't use signal_pid. Update call to mywait.
132 (attach_inferior): Update call to mywait.
133 (handle_query): Handle qfThreadInfo and qsThreadInfo.
134 (main): Don't fetch/store registers explicitly. Use
135 set_desired_inferior. Support proposed ``Hs'' packet. Update
137 * gdbserver/server.h: Update.
138 (struct inferior_list, struct_inferior_list_entry): New.
139 * gdbserver/target.c (set_desired_inferior): New.
140 (write_inferior_memory): Constify.
141 (mywait): New function.
142 * gdbserver/target.h: Update.
143 (struct target_ops): New signal_pid method.
144 (mywait): Removed macro, added prototype.
146 * gdbserver/linux-low.h (regset_func): Removed.
147 (regset_fill_func, regset_store_func): New.
148 (enum regset_type): New.
149 (struct regset_info): Add type field. Use new operation types.
150 (struct linux_target_ops): stop_pc renamed to get_pc.
151 Add decr_pc_after_break and breakpoint_at.
152 (get_process, get_thread_proess, get_process_thread)
153 (strut process_info, all_processes, linux_attach_lwp)
154 (thread_db_init): New.
156 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
157 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
158 (the_low_target): Add new members.
159 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
160 (i386_store_fpxregset): Constify.
161 (target_regsets): Add new kind identifier.
162 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
163 (i386_set_pc): Add debugging.
164 (i386_breakpoint_at): New function.
165 (the_low_target): Add new members.
166 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
167 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
168 (mips_breakpoint_at): New.
169 (the_low_target): Add new members.
170 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
171 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
172 (the_low_target): Add new members.
173 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
174 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
175 (the_low_target): Add new members.
176 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
179 2002-06-11 Michal Ludvig <mludvig@suse.cz>
181 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
182 (unwind_tmp_obstack_free, parse_frame_info)
183 (update_context, cfi_read_fp, cfi_write_fp)
184 (cfi_frame_chain, cfi_init_extra_frame_info)
185 (cfi_virtual_frame_pointer): Use the above function.
186 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
188 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
190 * v850-tdep.c (v850_type_is_scalar): New function.
191 (v850_use_struct_convention): Match current gcc implementation
192 as close as possible.
193 (v850_push_arguments): Fix stack_offset handling. Don't write
194 struct_addr into register. This is done by v850_store_struct_return.
195 (v850_extract_return_value): Care for structs.
196 (v850_store_return_value): Ditto.
197 (v850_store_struct_return): Actually write address.
199 2002-06-11 Michal Ludvig <mludvig@suse.cz>
201 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
202 without debug information too.
204 2002-06-10 Andrew Cagney <ac131313@redhat.com>
206 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
207 Make multi-arch pure.
208 * gdbarch.h, gdbarch.c: Re-generate.
209 * arm-tdep.c (arm_print_float_info): Update.
210 * arch-utils.h (default_print_float_info): Update.
211 * arch-utils.c (default_print_float_info): Update.
212 * infcmd.c (float_info): Update call.
214 2002-06-10 Andrew Cagney <ac131313@redhat.com>
216 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
217 the front of the initialize list.
219 2002-06-10 Andrew Cagney <ac131313@redhat.com>
221 * infrun.c (struct inferior_status): Replace fields
222 selected_frame_address and selected_level with field
224 (save_inferior_status): Update. Use get_frame_id.
225 (struct restore_selected_frame_args): Delete.
226 (restore_selected_frame): Update. Use frame_find_by_id.
227 (restore_inferior_status): Update.
229 * breakpoint.h (struct breakpoint): Change type of
230 watchpoint_frame to frame_id.
231 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
232 call to get_current_frame.
233 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
235 (watchpoint_check): Use frame_find_by_id.
237 * frame.h (record_selected_frame): Delete declaration.
238 * stack.c (record_selected_frame): Delete function.
240 * frame.h (struct frame_id): Define.
241 (get_frame_id): Declare.
242 (frame_find_by_id): Declare.
243 * frame.c (frame_find_by_id): New function.
244 (get_frame_id): New function.
246 2002-06-10 Andrey Volkov <avolkov@transas.com>
248 * ser-e7kpc.c: Fix duplicated define and call of
249 _initialize_ser_e7000pc
251 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
253 * signals/signals.c (target_signal_from_host): Fix #ifdef
255 (do_target_signal_to_host): Likewise.
257 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
259 * mips-tdep.c (mips_find_abi_section): New function.
260 (mips_gdbarch_init): Call it.
262 2002-06-09 Mark Kettenis <kettenis@gnu.org>
264 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
265 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
266 after Andrew's 2002-06-08 gdbarch change.
268 2002-06-09 Mark Kettenis <kettenis@gnu.org>
270 * i386-linux-nat.c (suppy_gregset): Don't supply
271 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
273 (fill_gregset): Don't fetch it under the same circumstances.
275 2002-06-09 Andrew Cagney <cagney@redhat.com>
277 * Makefile.in (callback_h): Define.
278 (remote_sim_h): Update path to remote-sim.h.
279 (remote-rdp.o): Add $(callback_h).
280 (remote-sim.o): Use $(callback_h).
281 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
282 * remote-rdp.c: Include "gdb/callback.h".
284 2002-06-09 Mark Kettenis <kettenis@gnu.org>
286 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
287 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
289 2002-06-08 Andrew Cagney <ac131313@redhat.com>
291 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
292 * rdi-share/serpardr.c: Ditto.
293 * rdi-share/unixcomm.c: Ditto.
294 * rdi-share/serdrv.c: Ditto.
295 * rdi-share/hostchan.h: Ditto.
296 * rdi-share/hostchan.c: Ditto.
297 * rdi-share/host.h: Ditto.
298 * rdi-share/devsw.c: Ditto.
300 * objfiles.h: Change type of obj_private to void pointer.
301 * pa64solib.c: Update copyright. Don't include "assert.h", use
302 strcmp instead of STREQ, use LONGEST, do not use PTR
305 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
306 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
307 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
309 2002-06-08 Andrew Cagney <ac131313@redhat.com>
311 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
312 (default_get_saved_register): Delete function.
313 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
314 generic_unwind_get_saved_register.
315 * gdbarch.h, gdbarch.c: Re-generate.
317 2002-06-08 Andrew Cagney <ac131313@redhat.com>
319 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
320 generic_func_frame_chain_valid.
321 * gdbarch.h, gdbarch.c: Re-generate.
322 * blockframe.c (generic_func_frame_chain_valid): Only check
323 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
324 passing FP to PC_IN_CALL_DUMMY.
327 2002-06-08 Andrew Cagney <ac131313@redhat.com>
329 * gdbarch.sh (struct gdbarch_data): Add field init_p.
330 (register_gdbarch_data): Initialize init_p.
331 (gdbarch_data): Initialize data pointer using the init function.
332 (init_gdbarch_data): Delete function.
333 (gdbarch_update_p): Update.
334 (initialize_non_multiarch): Update.
335 (struct gdbarch): Add field initialized_p.
336 * gdbarch.h, gdbarch.c: Re-generate.
338 2002-06-07 Michal Ludvig <mludvig@suse.cz>
340 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
341 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
342 better do the things actually here.
343 * x86-64-tdep.c (x86_64_register_name2nr): New.
344 (x86_64_register_name): Renamed to x86_64_register_nr2name.
345 (x86_64_gdbarch_init): Respect the above change.
346 * x86-64-tdep.h (x86_64_register_name2nr)
347 (x86_64_register_nr2name): Add prototypes.
348 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
350 2002-06-06 Michael Snyder <msnyder@redhat.com>
352 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
353 Delete extra braces and re-indent.
354 (d10v_store_return_value): Char return values
355 must be shifted over by one byte in R0.
356 (d10v_extract_return_value): Delete extra braces, re-indent.
358 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
360 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
361 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
362 (d10v_integer_to_address): Rewrite.
363 (d10v_frame_init_saved_regs): When reading fp and sp registers use
364 the d10v specific functions which take care of converting to the
367 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
369 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
370 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
372 2002-06-02 Andrew Cagney <ac131313@redhat.com>
374 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
376 * config/tm-linux.h: Ditto.
377 * config/alpha/tm-alphalinux.h: Ditto.
378 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
379 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
380 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
381 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
382 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
383 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
384 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
385 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
386 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
387 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
388 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
389 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
390 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
391 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
392 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
393 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
394 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
395 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
396 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
397 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
398 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
399 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
400 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
401 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
402 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
403 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
404 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
405 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
406 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
407 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
408 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
409 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
410 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
411 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
412 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
413 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
414 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
416 2002-05-04 Aidan Skinner <aidan@velvet.net>
418 * ada-exp.tab.c: New file
419 * ada-exp.y: New file
420 * ada-lang.c: New file
421 * ada-lang.h: New file
422 * ada-lex.c: New file
423 * ada-lex.l: New file
424 * ada-tasks.c: New file
425 * ada-typeprint.c: New file
426 * ada-valprint.c: New file
428 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
430 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
431 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
433 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
435 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
436 insetead of ppc-linux-tdep.o.
437 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
438 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
440 2002-06-02 Andrew Cagney <ac131313@redhat.com>
442 2002-05-07 Christian Groessler <chris@groessler.org>
443 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
444 bit register contents for little endian hosts.
446 2002-06-01 Andrew Cagney <ac131313@redhat.com>
448 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
451 2002-06-01 Andrew Cagney <ac131313@redhat.com>
453 * gdbarch.h: Regenerate.
455 2002-06-01 Andrew Cagney <ac131313@redhat.com>
457 * MAINTAINERS: Add everyone to write-after-approval list.
459 2002-06-01 Andrew Cagney <ac131313@redhat.com>
461 * stack.c (frame_info): Use frame_register_unwind instead of
462 saved_regs. Mention when the SP is on the stack or in a register.
464 * frame.h (frame_register_unwind_ftype): Define. Document.
465 (struct frame_info): Add field register_unwind and
466 register_unwind_cache.
467 (frame_register_unwind): Declare.
468 (generic_unwind_get_saved_register): Declare.
470 * frame.c (frame_register_unwind): New function.
471 (generic_unwind_get_saved_register): New function.
473 * blockframe.c (generic_call_dummy_register_unwind): New function.
474 (frame_saved_regs_register_unwind): New function.
475 (set_unwind_by_pc): New function.
476 (create_new_frame): New function.
477 (get_prev_frame): New function.
479 2002-05-30 Andrew Cagney <ac131313@redhat.com>
481 * a29k-share/: Delete directory.
482 * remote-vx29k.c: Delete file.
484 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
486 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
487 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
489 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
491 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
492 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
495 (sparcnbsd-tdep.o): New dependency lists.
496 * NEWS: Note new UltraSPARC NetBSD native configuration.
497 * configure.host (sparc64-*-netbsd*): New host.
498 * configure.tgt (sparc-*-netbsdelf*)
499 (sparc-*-netbsd*): Set gdb_target to nbsd.
500 (sparc64-*-netbsd*): New target.
501 * sparc64nbsd-nat.c: New file.
502 * sparcnbsd-nat.c: New file.
503 * sparcnbsd-tdep.c: New file.
504 * sparcnbsd-tdep.h: New file.
505 * config/sparc/nbsd.mt: New file.
506 * config/sparc/nbsd64.mh: New file.
507 * config/sparc/nbsd64.mt: New file.
508 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
509 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
511 * config/sparc/nbsdaout.mt: Remove.
512 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
513 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
515 * config/sparc/nbsdelf.mt: Remove.
516 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
517 sparc-nat.c compatiblity defines.
518 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
519 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
520 * config/sparc/tm-nbsd64.h: New file.
521 * config/sparc/tm-nbsdaout.h: Remove.
522 * config/sparc/xm-nbsd.h: Remove.
524 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
526 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
527 * sparc-tdep.c: Include osabi.h.
528 (gdbarch_tdep): Add osabi member.
529 (_initialize_sparc_tdep): Use gdbarch_register.
530 (sparc_gdbarch_init): Use generic OS ABI framework.
531 (sparc_dump_tdep): New function.
533 2002-05-30 Kevin Buettner <kevinb@redhat.com>
535 * corefile.c (do_captured_read_memory_integer): Return non-zero
537 (safe_read_memory_integer): Copy result of memory read when
538 status is non-zero. Also, add comments.
540 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
542 * Makefile.in (ppc_tdep_h): Define.
545 (rs6000-tdep.o): Use $(ppc_tdep_h).
548 (ppcnbsd-tdep.o): New dependency lists.
549 * ppc-tdep.h: Use generic OS ABI framework.
550 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
551 (ppc_linux_init_abi): New functions.
552 (ppc_sysv_abi_broken_use_struct_convention)
553 (ppc_sysv_abi_use_struct_convention)
554 (ppc_sysv_abi_push_arguments): Move to...
555 * ppc-sysv-tdep.c: ...here.
556 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
557 * rs6000-tdep.c (process_note_abi_tag_sections)
558 (get_elfosabi): Remove.
559 (rs6000_gdbarch_init): Use generic OS ABI framework.
560 (rs6000_dump_tdep): New function.
561 (_initialize_rs6000_tdep): Use gdbarch_register.
562 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
563 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
564 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
566 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
567 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
568 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
569 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
570 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
571 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
573 2002-05-29 Jim Blandy <jimb@redhat.com>
575 * macroscope.c (default_macro_scope): Put `void' in empty argument
578 2002-05-29 Andrew Cagney <ac131313@redhat.com>
580 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
581 * arch-utils.c: Include "sim-regno.h".
582 * gdbarch.sh: Don't include "sim-regno.h".
583 * gdbarch.h, gdbarch.c: Regenerate.
584 * sim-regno.h (legacy_register_sim_regno): Move declaration from
586 * arch-utils.h (legacy_register_sim_regno): To here.
587 * remote-sim.c (legacy_register_sim_regno): Move function from
589 * arch-utils.c (legacy_register_sim_regno): To here.
591 2002-05-28 Andrew Cagney <ac131313@redhat.com>
593 * sim-regno.h: New file.
594 * Makefile.in (sim_regno_h): Define.
595 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
596 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
597 (legacy_register_sim_regno): New function.
598 (one2one_register_sim_regno): New function.
599 (gdbsim_fetch_register): Rewrite.
600 (gdbsim_store_register): Only store a register when
601 REGISTER_SIM_REGNO is valid.
602 * d10v-tdep.c: Include "sim-regno.h".
603 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
604 (d10v_ts3_register_sim_regno): Ditto.
605 * gdbarch.sh: Include "sim-regno.h".
606 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
607 * gdbarch.h, gdbarch.c: Regenerate.
608 * arch-utils.h (default_register_sim_regno): Delete declaration.
609 * arch-utils.c (default_register_sim_regno): Delete function.
611 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
613 * ppcnbsd-nat.c: Rewrite.
614 * ppcnbsd-tdep.c: New file.
615 * ppcnbsd-tdep.h: New file.
616 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
617 solib.o, and solib-svr4.o.
618 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
619 nbsd-tdep.o, and corelow.o.
621 2002-05-28 Andrew Cagney <ac131313@redhat.com>
623 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
624 `tr' and `sed'. Mention that `broken' targets are not expected to
627 2002-05-27 Michal Ludvig <mludvig@suse.cz>
629 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
630 Let PC point right after the prologue before looking up symbols.
632 2002-05-27 Martin M. Hunt <hunt@redhat.com>
634 * i386-tdep.c (i386_register_virtual_type): Return
635 builtin_type_vec128i for SSE registers.
637 * gdbtypes.h (builtin_type_vec128i): Declare.
639 * gdbtypes.c (build_builtin_type_vec128i): New function.
640 (builtin_type_v2_double, builtin_type_v4_int64): New types.
641 (builtin_type_vec128i): New type for SSE2 128-bit registers.
642 (build_gdbtypes): Initialize new builtin vector types.
643 (_initialize_gdbtypes): Register new vector types with gdbarch.
645 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
647 * MAINTAINERS: ns32k is not longer an obsolete candidate,
648 since it has been multi-arch'd.
649 * NEWS: Note that ns32k-*-* is now partial multi-arch.
650 Move Alpha and VAX multi-arch news entries to same section
651 as other multi-arch news.
653 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
655 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
656 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
657 static. Rename some register numbers to put them in ns32k-tdep
659 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
660 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
662 (_initialize_ns32k_tdep): Use gdbarch_register.
663 * ns32k-tdep.h: New file.
664 * ns32knbsd-tdep.c: New file.
665 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
666 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
667 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
668 REGISTER_BYTES, REGISTER_BYTE): Remove.
669 * config/ns32k/tm-ns32k.h: New file.
670 * config/ns32k/tm-umax.h: Remove.
672 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
674 * ns32k-tdep.c (ns32k_saved_pc_after_call,
675 ns32k_store_struct_return, ns32k_extract_return_value,
676 ns32k_store_return_value, ns32k_extract_struct_value_address): New
678 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
679 ns32k_saved_pc_after_call.
680 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
681 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
682 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
683 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
684 ns32k_extract_struct_value_address.
686 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
688 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
689 ns32k_fix_call_dummy): New.
690 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
691 ns32k_call_dummy_words.
692 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
693 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
694 CALL_DUMMY_NARGS): Remove.
695 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
697 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
699 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
700 ns32k_frame_saved_pc, ns32k_frame_args_address,
701 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
702 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
703 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
704 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
705 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
706 (BREAKPOINT): Remove..
707 (FRAME_CHAIN): Define as ns32k_frame_chain.
708 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
709 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
710 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
711 (FRAME_FIND_SAVED_REGS): Remove.
712 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
713 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
714 (POP_FRAME): Define as ns32k_pop_frame.
716 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
718 * ns32k-tdep.c (ns32k_register_byte_32082,
719 ns32k_register_byte_32382, ns32k_register_raw_size,
720 ns32k_register_virtual_size, ns32k_register_virtual_type): New
722 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
723 ns32k_register_byte_32382.
724 * config/ns32k/tm-umax.h: Update copyright years.
725 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
726 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
727 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
728 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
729 (ns32k_get_enter_addr): Fix prototype.
731 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
733 * ns32k-tdep.c: Update copyright years.
734 (ns32k_register_name_32082): New function.
735 (ns32k_register_name_32382): Ditto.
736 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
737 (REGISTER_NAME): Define as ns32k_register_name_32382.
738 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
739 (REGISTER_NAME): Define as ns32k_register_name_32082.
741 2002-05-24 Jim Blandy <jimb@redhat.com>
743 * dwarf2read.c (free_line_header): Use xfree, not free.
745 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
747 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
748 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
750 2002-05-23 Andrew Cagney <ac131313@redhat.com>
752 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
754 2002-05-23 Andrew Cagney <ac131313@redhat.com>
756 From Ross Alexander at NEC Europe:
757 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
759 2002-05-23 Michael Snyder <msnyder@redhat.com>
761 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
762 for input, rather than parse_and_eval_address.
764 2002-05-23 Andrew Cagney <ac131313@redhat.com>
766 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
767 * Makefile.in (sim_d10v_h): Update definition.
769 2002-05-24 Andrew Cagney <cagney@redhat.com>
771 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
772 change `2002-05-22 Michael Snyder' below.
773 (d10v_push_arguments): Ditto.
774 (d10v_extract_return_value): Ditto.
776 2002-05-23 Jim Blandy <jimb@redhat.com>
778 * macrotab.c (check_for_redefinition): Don't complain if the new
779 definition is the same as the previous one. Take more arguments
780 to allow the comparison.
781 (macro_define_object, macro_define_function): Pass more arguments
782 to check_for_redefinition.
784 2002-05-22 Michael Snyder <msnyder@redhat.com>
786 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
787 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
788 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
789 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
790 Don't bail if return_pc is PC_IN_CALL_DUMMY.
791 Add a temp variable to save a call (and a memory read).
792 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
793 if possible (so that PC_IN_CALL_DUMMY will work).
795 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
797 * MAINTAINERS: Remove status `OBSOLETE' from v850.
799 2002-05-22 Michal Ludvig <mludvig@suse.cz>
801 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
803 (dwarf2_build_frame_info): Corrected handling of eh_frame.
804 (dwarf2_build_frame_info): Add offset to fde->initial_location
805 so that frames of shared libraries are mapped correctly.
806 (execute_stack_op): Change type of 'result' from ULONGEST to
809 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
811 * config/alpha/tm-nbsd.h: Include solib.h.
813 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
815 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
816 assumptions about the host's byte order.
818 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
820 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
822 * alphanbsd-tdep.c: Include solib-svr4.h.
823 * shnbsd-tdep.c: Ditto.
825 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
827 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
828 nbsd-tdep.h to dependency list.
829 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
830 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
831 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
832 nbsdaout.mh and nbsdelf.mh consistently.
833 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
834 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
835 nbsdaout.mt and nbsdelf.mh consistently.
836 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
837 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
838 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
839 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
840 a.out shared library stuff from here...
841 * config/nm-nbsdaout.h: ...to here.
842 * config/tm-nbsd.h: Remove.
843 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
844 * config/arm/nbsd.mh: Remove.
845 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
847 * config/arm/nbsdaout.mh: New file.
848 * config/arm/nbsdelf.mh: New file.
849 * config/arm/nm-nbsdaout.h: New file.
850 * config/i386/nbsd.mh: Remove.
851 * config/i386/nbsd.mt: Remove.
852 * config/i386/nbsdaout.mh: New file.
853 * config/i386/nbsdaout.mt: New file.
854 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
855 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
856 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
857 i386_register_u_addr): Remove.
858 * config/i386/nm-nbsdaout.h: New file.
859 * config/i386/nm-nbsdelf.h: Remove.
860 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
861 (USE_STRUCT_CONVENTION): Remove.
862 * config/i386/tm-nbsdaout.h: New file.
863 * config/i386/tm-nbsdelf.h: Remove.
864 * config/m68k/nbsd.mh: Remove.
865 * config/m68k/nbsd.mt: Remove.
866 * config/m68k/nbsdaout.mh: New file.
867 * config/m68k/nbsdaout.mt: New file.
868 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
869 * config/m68k/nm-nbsdaout.h: New file.
870 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
871 (IN_SOLIB_CALL_TRAMPOLINE): Define.
872 * config/ns32k/nbsd.mh: Remove.
873 * config/ns32k/nbsd.mt: Remove.
874 * config/ns32k/nbsdaout.mh: New file.
875 * config/ns32k/nbsdaout.mt: New file.
876 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
877 * config/ns32k/nm-nbsdaout.h: New file.
878 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
879 (IN_SOLIB_CALL_TRAMPOLINE): Define.
880 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
881 (SVR4_SHARED_LIBS): Remove.
882 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
883 * config/sparc/nbsd.mh: Remove.
884 * config/sparc/nbsd.mt: Remove.
885 * config/sparc/nbsdaout.mh: New file.
886 * config/sparc/nbsdaout.mt: New file.
887 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
888 * config/sparc/nbsdelf.mt: New file.
889 * config/sparc/nm-nbsdaout.h: New file.
890 * config/sparc/nm-nbsdelf.h: Remove.
891 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
892 * config/sparc/tm-nbsdaout.h: New file.
894 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
896 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
898 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
900 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
902 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
904 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
906 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
908 * NEWS: Note new MIPS NetBSD native configuration.
909 * configure.host (mips*-*-netbsd*): New host.
910 * configure.tgt (mips*-*-netbsd*): New target.
911 * mipsnbsd-nat.c: New file.
912 * mipsnbsd-tdep.c: New file.
913 * mipsnbsd-tdep.h: New file.
914 * config/mips/nbsd.mh: New file.
915 * config/mips/nbsd.mt: New file.
916 * config/mips/nm-nbsd.h: New file.
917 * config/mips/tm-nbsd.h: New file.
919 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
921 * Makefile.in (SFILES): Add osabi.c.
922 (COMMON_OBS): Add osabi.o.
923 (osabi.o): New dependency list.
926 * doc/gdbint.texinfo: Document new generic OS ABI framework.
928 * Makefile.in (alpha_tdep_h): Define and use instead of
930 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
931 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
933 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
934 * alpha-tdep.h: Include osabi.h.
936 (gdbarch_tdep): Use generic OS ABI framework.
937 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
938 gdbarch_register_osabi.
939 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
940 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
941 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
943 * Makefile.in (sh_tdep_h): Add osabi.h.
944 * sh-tdep.h (sh_osabi): Remove.
945 (gdbarch_tdep): Use generic OS ABI framework.
946 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
947 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
948 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
949 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
951 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
952 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
953 gdbarch_register_osabi.
954 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
955 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
956 (get_elfosabi): Rename to...
957 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
958 ABI framework support routines.
959 (arm_gdbarch_init): Use generic OS ABI framework.
960 (arm_dump_tdep): Likewise.
961 (_initialize_arm_tdep): Likewise.
962 * arm-tdep.h: Include osabi.h.
964 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
966 (arm_gdbarch_register_os_abi): Remove prototype.
967 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
968 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
970 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
971 * mips-tdep.c: Include osabi.h.
972 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
975 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
977 * h8300-tdep.c: Fix formatting.
979 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
981 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
982 printing vector registers.
984 2002-05-19 Andrew Cagney <ac131313@redhat.com>
986 From Fernando Nasser:
987 * remote.c (remote_async_open_1): Re-throw the exception when the
989 (remote_cisco_open): Ditto.
990 (remote_open_1): Ditto.
992 2002-05-19 Andrew Cagney <ac131313@redhat.com>
994 * remote.c (remote_start_remote_dummy): Add uiout parameter.
995 (remote_start_remote): Add uiout parameter. Pass through to
996 remote_start_remote_dummy.
997 (remote_open_1): Use catch_exception instead of catch_errors.
998 (remote_async_open_1): Ditto.
999 (remote_cisco_open): Ditto.
1001 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1003 * remote.c (remote_start_remote): Replace PTR with void pointer.
1004 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1007 2002-05-18 Andrew Cagney <ac131313@redhat.com>
1009 * gdb_indent.sh: Allow the script to be run in the sim directory.
1011 2002-05-18 Mark Kettenis <kettenis@gnu.org>
1013 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1014 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1016 * corelow.c (core_open): Only call set_gdbarch_from_file if
1019 2002-05-17 Andrey Volkov <avolkov@transas.com>
1021 * h8300-tdep.c: Add support of EXR register
1022 * config/h8300/tm-h8300.h: Ditto.
1024 2002-05-17 Andrey Volkov <avolkov@transas.com>
1026 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1028 2002-05-17 Andrey Volkov <avolkov@transas.com>
1030 * h8300-tdep.c: Change literal regnums to REGNO.
1032 2002-05-17 Jim Blandy <jimb@redhat.com>
1034 * NEWS: Note addition of macro support.
1036 Expand preprocessor macros in C expressions.
1037 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1038 (scan_macro_expansion, scanning_macro_expansion,
1039 finished_macro_expansion): New function declarations.
1040 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1041 variable declarations.
1042 * parser-defs.h (expression_context_pc): New declaration.
1043 * parse.c (expression_context_pc): New variable.
1044 (parse_exp_1): Set expression_context_pc, as well as
1045 expression_context_block.
1046 * c-exp.y (yylex): If we're not already reading the result of a
1047 macro expansion, try to macro-expand the next token. When we're
1048 done scanning a macro expansion, switch back to the mainline text.
1049 Commas and `if's in a macro's expansion don't terminate the input.
1050 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1051 (macro_original_text, macro_expanded_text,
1052 expression_macro_lookup_func, expression_macro_lookup_baton): New
1054 (scan_macro_expansion, scanning_macro_expansion,
1055 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1056 c_preprocess_and_parse): New functions.
1057 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1058 c_preprocess_and_parse, instead of c_parse.
1059 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1060 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1062 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1064 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1065 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1066 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1068 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
1070 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1072 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1074 * Makefile.in (sh_tdep_h): Define and use.
1075 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1076 register enum): Move to...
1077 * * sh-tdep.h: ...here.
1078 * sh-tdep.c: Include sh-tdep.h.
1079 * sh3-rom.c: Likewise.
1080 * shnbsd-tdep.c: Likewise.
1082 2002-05-16 Michael Snyder <msnyder@redhat.com>
1084 * arm-tdep.c: Spelling fix in comment.
1086 2002-05-16 Jim Blandy <jimb@redhat.com>
1088 Add commands for manually expanding macros and showing their
1090 * macrocmd.c, macroscope.c, macroscope.h: New files.
1091 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1092 (macroscope_h): New variable.
1093 (HFILES_NO_SRCDIR): Add macroscope.h.
1094 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1095 (macroscope.o, macrocmd.o): New rules.
1097 Teach the Dwarf 2 reader to read macro information.
1098 * dwarf2read.c: #include "macrotab.h".
1099 (dwarf_macinfo_buffer): New variable.
1100 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1102 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1103 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1104 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1105 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1106 dwarf2_macro_spaces_in_definition): New complaints.
1107 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1108 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1109 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1110 the partial symbol table.
1111 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1112 from what's recorded in the partial symbol table.
1113 (read_file_scope): If the compilation unit has a
1114 `DW_AT_macro_info' attribute, read its macro information.
1115 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1117 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1120 * ser-tcp.c: Don't include <netinet/udp.h>.
1122 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1124 * MAINTAINERS: Update my email address.
1126 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
1128 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1129 include file of the same name.
1131 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1133 * configure.tgt: Mark v850 as multi-arched.
1134 * config/v850/tm-v850.h: Remove file.
1135 * config/v850/v850.mt: Eliminate TM_FILE.
1137 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1139 * v850-tdep.c: Full multi-arch.
1140 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1141 Define GDB_MULTI_ARCH to 2.
1143 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1145 * p-exp.y (current_type): New static variable.
1146 Carries the type of the expression at the position that is parsed.
1147 (push_current_type, pop_current_type): Two new functions. Used
1148 to store/restore current_type in expression on specific tokens.
1149 (search_field): New static variable. Set to one after parsing a point
1150 as at that point only a FIELDNAME token should be searched.
1151 (FIELDNAME): New token. After a point only a token belonging to
1152 current_type type definition is allowed.
1153 (all over token rules): reset and change current_type according
1155 (exp '[' rule): insert implicit array index field if
1156 exp is a pascal string type.
1158 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1160 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1161 frame info. Use frame_info's saved_regs instead of matching member
1162 in extra_frame_info throughout.
1163 (v850_frame_init_saved_regs): New function.
1164 (v850_init_extra_frame_info): Move most functionality into
1165 v850_frame_init_saved_regs().
1166 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1167 (v850_frame_find_saved_regs): Remove declaration.
1168 (FRAME_FIND_SAVED_REGS): Remove definition.
1169 (v850_frame_init_saved_regs): Add declaration.
1170 (FRAME_INIT_SAVED_REGS): Add definition.
1172 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1174 * v850-tdep.c: Begin multi-arch'ing v850.
1175 (v850_target_architecture_hook): Remove function.
1176 (v850_gdbarch_init): New function. Add code previously in
1177 v850_target_architecture_hook().
1178 (_initialize_v850_tdep): Don't set target_architecture_hook.
1179 Call register_gdbarch_init() instead.
1181 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1183 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1184 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1185 (fixup_class_method_type): Likewise.
1187 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1189 From Martin Pool <mbp@samba.org>:
1190 * gdbserver/server.c (gdbserver_usage): New function.
1193 2002-05-15 Jim Blandy <jimb@redhat.com>
1195 Add macro structures to GDB's symbol tables. Nobody puts anything
1197 * symtab.h (struct symtab): New member: `macro_table'.
1198 * buildsym.h (pending_macros): New global variable.
1199 * buildsym.c: #include "macrotab.h".
1200 (buildsym_init): Initialize `pending_macros'.
1201 (end_symtab): If we found macro information while reading a CU's
1202 debugging info, do build a symtab structure for it. Make the
1203 symtab point to the macro information, and clear the
1204 `pending_macros' pointer which held it while we were reading the
1206 (really_free_pendings): Free any pending macro table.
1207 * objfiles.h (struct objfile): New member: `macro_cache'.
1208 * objfiles.c (allocate_objfile): Set allocate and free functions
1209 for the macro cache's objstack.
1210 (free_objfile): Empty the macro cache's obstack.
1211 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1212 set new allocate and free functions for it.
1213 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1214 free functions for the macro cache's objstack. (Why is this
1215 function building its own objfile?)
1216 * symmisc.c (print_objfile_statistics): Print statistics on the
1218 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1220 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1222 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1223 (REGISTER_U_ADDR): Delete definition.
1224 (arm_register_u_addr): Delete declaration.
1226 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1228 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1229 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1231 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1233 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1236 2002-05-14 Andrew Cagney <ac131313@redhat.com>
1238 * regcache.c (register_valid): Revise comments refering to "Not
1239 available" and "unavailable".
1240 * frame.c (frame_register_read): Ditto.
1241 * findvar.c (value_of_register): Ditto.
1243 2002-05-15 Andrew Cagney <cagney@redhat.com>
1245 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1246 (remote-sim.o): Update dependencies.
1247 (d10v-tdep.o): Specify dependencies.
1248 (sim_d10v_h): Define.
1250 2002-05-14 Jim Blandy <jimb@redhat.com>
1252 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1253 * macrotab.c (macro_lookup_inclusion, find_definition,
1254 new_macro_table): Same.
1256 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1257 not `! strcmp ()'. This is a dubious improvement.
1258 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1260 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1261 although it's not necessary, to avoid a warning.
1263 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1265 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1266 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1267 TYPE_INSTANCE_FLAGS.
1268 (struct main_type): New.
1269 (struct type): Move most members to struct main_type. Change
1270 cv_type and as_type to new type_chain member. Add instance_flags.
1271 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1272 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1273 (finish_cv_type): Remove prototype.
1274 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1276 (alloc_type_instance): New function.
1277 (smash_type): New function.
1278 (make_pointer_type, make_reference_type, make_function_type)
1279 (smash_to_member_type, smash_to_method_type): Call smash_type.
1280 (make_qualified_type): New function.
1281 (make_type_with_address_space): Call make_qualified_type.
1282 (make_cv_type): Likewise.
1283 (finish_cv_type): Remove unnecessary function.
1284 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1285 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1286 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1287 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1288 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1289 * hpread.c (hpread_read_struct_type): Likewise.
1290 * stabsread.c (read_struct_type): Likewise.
1292 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
1294 * configure.tgt: Add a catch all sh* target, for cases like
1295 sh[2,3,4]-elf and sh-hms.
1297 2002-05-14 Keith Seitz <keiths@redhat.com>
1299 * event-loop.c (create_file_handler): Don't do anything but
1300 update data when we are given a fd which we are already
1303 2002-05-14 Michal Ludvig <mludvig@suse.cz>
1305 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1306 (update_context): Use __func__ in warnings.
1308 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1310 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1311 and tcp_close to net_open and net_close.
1312 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1313 using UDP if requested. Don't try to disable Nagle on UDP
1315 * remote.c (remote_serial_open): New function. Warn about UDP.
1316 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1318 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1320 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1322 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1324 * configure.tgt: Remove sh-hms target.
1325 * MAINTAINERS: Don't list sh-hms as a separate target.
1327 2002-05-13 Jim Blandy <jimb@redhat.com>
1329 Add first preprocessor macro-expansion files.
1330 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1331 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1332 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1333 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1334 (COMMON_OBS): Add macrotab.o, macroexp.o.
1335 (macroexp.o, macrotab.o): New rules.
1337 2002-05-13 Andrew Cagney <ac131313@redhat.com>
1339 * config/m88k/tm-m88k.h: Update copyright.
1340 (m88k_target_write_pc): Declare
1341 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1342 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1343 (SHIFT_INST_REGS): Update definition.
1344 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1345 using old definition of TARGET_WRITE_PC.
1346 * regcache.c (generic_target_write_pc): Delete code handling
1348 * gdbarch.sh (NNPC_REGNUM): Delete.
1349 * gdbarch.h, gdbarch.c: Regenerate.
1351 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
1353 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1356 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
1358 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1359 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1360 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1362 * c-typeprint.c (cp_type_print_method_args): Likewise.
1363 (c_type_print_args): Likewise.
1364 * d10v-tdep.c (d10v_push_arguments): Likewise.
1365 (d10v_extract_return_value): Likewise.
1366 * expprint.c (print_subexp): Likewise.
1367 * gdbtypes.c (lookup_primitive_typename): Likewise.
1368 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1369 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1370 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1371 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1372 (TYPE_VECTOR): Likewise.
1373 * hpread.c (hpread_read_struct_type)
1374 (fix_static_member_physnames, fixup_class_method_type)
1375 (hpread_type_lookup): Likewise.
1376 * mdebugread.c (parse_symbol, parse_type): Likewise.
1377 * p-lang.c (is_pascal_string_type): Likewise.
1378 * valops.c (hand_function_call): Likewise.
1379 * x86-64-tdep.c (classify_argument): Likewise.
1381 * hpread.c (hpread_read_function_type)
1382 (hpread_read_doc_function_type): Call replace_type.
1383 * dstread.c (create_new_type): Delete.
1384 (decode_dst_structure, process_dst_function): Call alloc_type.
1385 Use type access macros.
1387 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1389 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1390 the're not supported by the current architecture.
1391 (i387_fill_fxsave): Likewise.
1393 2002-05-12 Fred Fish <fnf@redhat.com>
1395 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1396 sect_index_xxx members to index the first slot in section_offsets
1397 if all of the section_offsets are zero.
1399 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1401 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1402 checked in with last change.
1404 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1406 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1407 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1410 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
1412 * Makefile.in: Update dependencies.
1414 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1416 * language.c (local_hex_string_custom): Simplify. Do not depend
1417 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1419 * memattr.c (mem_info_command): Replace calls to
1420 longest_local_hex_string and longest_local_hex_string_custom.
1421 * buildsym.c (make_blockvector): Ditto.
1422 * solib.c (info_sharedlibrary_command): Ditto.
1423 * tracepoint.c (tracepoints_info): Ditto.
1424 * symtab.c (print_msymbol_info): Ditto.
1426 * language.c (local_hex_string): Delete.
1427 (local_hex_string_custom): Delete.
1428 (longest_local_hex_string): Rename to local_hex_string.
1429 (longest_local_hex_string_custom): Rename to
1430 local_hex_string_custom.
1431 * language.h (local_hex_string): Change parameter type to LONGEST.
1432 (local_hex_string_custom): Ditto.
1433 (longest_local_hex_string): Delete declaration.
1434 (longest_local_hex_string_custom): Ditto.
1436 * solib.c: Update copyright.
1437 * memattr.c: Update copyright.
1439 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1441 * arch-utils.h (legacy_register_to_value): Declare.
1442 (legacy_value_to_register): Declare.
1443 (legacy_convert_register_p): Declare.
1444 * arch-utils.c (legacy_register_to_value): New function.
1445 (legacy_value_to_register): New function.
1446 (legacy_convert_register_p): New function.
1448 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1449 (VALUE_TO_REGISTER): Define.
1450 (CONVERT_REGISTER_P): Define.
1451 * gdbarch.h, gdbarch.c: Regenerate.
1453 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1455 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1458 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
1459 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1461 * Makefile.in: Update dependencies for valops.c.
1462 * valops.c: Include "gdb_assert.h".
1463 (typecmp): Skip THIS parameter to methods.
1464 (find_method_list): Remove static_memfuncp argument,
1465 update callers. Check for stub methods.
1466 (find_value_oload_method_list): Don't set *static_memfuncp.
1467 (find_overload_match): Don't check for stub methods. Assert
1468 that methods are not stubbed. Handle static methods.
1469 (value_find_oload_method_list): Remove static_memfuncp argument.
1470 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1471 to the argument list for static stub methods.
1472 * value.h (value_find_oload_method_list): Update prototype.
1474 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1476 * arch-utils.h (generic_register_size): Declare.
1477 (generic_register_raw_size, generic_register_virtual_size): Delete
1479 * arch-utils.c (generic_register_raw_size): Delete.
1480 (generic_register_size): New function.
1481 (generic_register_virtual_size): Delete.
1483 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1484 default generic_register_size.
1485 * gdbarch.h, gdbarch.c: Re-generate.
1487 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1488 register_virtual_size.
1489 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1492 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1494 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1495 * gdbarch.h, gdbarch.c: Regenerate.
1496 * gnu-v3-abi.c: Update copyright.
1497 (vtable_address_point_offset): Update.
1498 (gnuv3_rtti_type): Update.
1499 (gnuv3_baseclass_offset): Update.
1500 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1501 (init_fetch_link_map_offsets): Update.
1502 * remote.c (get_remote_state): Update.
1504 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1506 * TODO: Remove value_headof/value_from_vtable_info comment.
1507 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1508 * values.c (value_headof, value_from_vtable_info): Delete.
1509 * value.h (value_from_vtable_info): Delete prototype.
1511 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1513 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1514 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1516 (gdb_assert_h): Define.
1517 (gdb_wait_h): Define.
1518 (gdb_regex_h): Define.
1520 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1522 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1523 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1525 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1527 * nbsd-tdep.c: Fix comment.
1529 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1531 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1532 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1533 (nbsd-tdep.o): New dependency list.
1534 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1536 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1537 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1538 * nbsd-tdep.c: New file.
1539 * nbsd-tdep.h: New file.
1540 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1542 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1543 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1544 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1545 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1547 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1549 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1550 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1551 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1552 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1553 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1554 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1556 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1558 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1559 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1560 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1561 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1562 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1563 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1564 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1566 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1568 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1569 fetch_elfcore_registers to...
1570 * i386nbsd-tdep.c: ...here.
1571 (i386nbsd_use_struct_convention): Rename to...
1572 (i386nbsd_aout_use_struct_convention): ...this.
1573 (i386nbsd_supply_reg): New function.
1574 (i386nbsd_fill_reg): New function.
1575 (fetch_core_registers): Use i386nbsd_supply_reg.
1576 (fetch_elfcore_registers): Likewise.
1577 (_initialize_i386nbsd_tdep): New function.
1578 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1579 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1580 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1581 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1582 (i386nbsd_aout_use_struct_convention): ...this.
1584 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1586 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1587 (store_inferior_registers): Use shnbsd_fill_reg.
1588 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1589 sh_nbsd_supply_register): Collapse into...
1590 (shnbsd_supply_reg): ...this.
1591 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1592 (shnbsd_fill_reg): ...this.
1593 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1594 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1595 (fetch_core_registers): Use shnbsd_supply_reg.
1596 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1597 (sh_nbsd_core_fns): Rename to...
1598 (shnbsd_core_fns): ...this.
1599 (sh_nbsd_elfcore_fns): Rename to...
1600 (shnbsd_elfcore_fns): ...this.
1601 (sh_nbsd_init_abi): Rename to...
1602 (shnbsd_init_abi): ...this.
1603 (_initialize_sh_nbsd_tdep): Rename to...
1604 (_initialize_shnbsd_tdep): ...this.
1605 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1606 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1607 sh_nbsd_fill_register): Remove prototypes.
1608 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1610 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1612 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1613 (i387-nat.o): Delete dependency list.
1614 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1615 (x86-64-linux-nat.o): Likewise.
1616 * i387-nat.c: Delete file, moving contents to...
1617 * i387-tdep.c: ...here.
1618 * i387-nat.h: Rename...
1619 * i387-tdep.h: ...to this.
1620 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1621 * i386-linux-nat.c: Likewise.
1622 * i386bsd-nat.c: Likewise.
1623 * i386gnu-nat.c: Likewise.
1624 * i386nbsd-nat.c: Likewise.
1625 * i386v4-nat.c: Likewise.
1626 * x86-64-linux-nat.c: Likewise.
1627 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1628 * config/i386/go32.mh (NATDEPFILES): Likewise.
1629 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1630 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1631 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1632 * config/i386/linux.mh (NATDEPFILES): Likewise.
1633 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1634 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1635 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1636 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1638 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1640 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1641 (alphanbsd-nat.o): Remove dependency list.
1642 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1643 * alphanbsd-nat.c: Delete. Contents moved to...
1644 * alphanbsd-tdep.c: ...here.
1645 (_initialize_alphanbsd_tdep): Register core functions.
1646 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1648 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1650 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1651 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1652 (alphanbsd-nat.o): Likewise.
1653 (alphabsd-tdep.o): New dependency list.
1654 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1655 (fill_gregset): Use alphabsd_fill_reg.
1656 (supply_fpregset): Use alphabsd_supply_fpreg.
1657 (fill_fpregset): Use alphabsd_fill_fpreg.
1658 (fetch_inferior_registers): Use struct reg and struct fpreg
1659 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1660 and alphabsd_supply_fpreg.
1661 (store_inferior_registers): Use struct reg and struct fpreg
1662 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1663 and alphabsd_fill_fpreg.
1664 * alphabsd-tdep.c: New file.
1665 * alphabsd-tdep.h: New file.
1666 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1667 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1668 alphabsd_supply_fpreg.
1669 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1670 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1672 2002-05-11 Eric Christopher <echristo@redhat.com>
1674 * mips-tdep.c (mips_double_register_type): Fix thinko.
1675 (mips_single_register_type): Ditto.
1676 * MAINTAINERS: Add self.
1678 2002-05-11 Mark Kettenis <kettenis@gnu.org>
1680 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1681 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1682 right thing on architectures with different endianness and/or
1685 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1687 From Christian Limpach <chris@Pin.LU>
1688 * configure.in: Change sed expression which comments out
1689 NATDEPFILES to also comment out continuation lines.
1690 * configure: Regenerate.
1692 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1694 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1697 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1699 * sh-tdep.c: Include correct file.
1701 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1703 New support for sh64-elf (sh5) target.
1705 * configure.tgt: For sh64-elf target, default to sh-elf.
1707 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1708 (struct gdbarch_tdep): Add new fields for new registers and ABI
1711 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1712 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1713 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1714 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1715 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1716 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1717 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1718 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1719 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1720 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1721 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1722 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1723 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1724 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1725 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1726 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1727 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1728 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1729 sign_extend, sh64_nofp_frame_init_saved_regs,
1730 sh64_init_extra_frame_info, sh64_get_saved_register,
1731 sh64_extract_struct_value_address, sh64_pop_frame,
1732 sh64_push_arguments, sh64_extract_return_value,
1733 sh64_store_return_value, sh64_show_media_regs,
1734 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1735 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
1736 sh_sh64_register_virtual_type,
1737 sh_sh64_register_convert_to_virtual,
1738 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
1739 sh64_register_read, sh64_pseudo_register_write,
1740 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1741 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1742 sh64_do_pseudo_register, sh_compact_do_registers_info,
1743 sh64_do_registers_info, sh_gdbarch_init): New functions.
1745 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1747 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
1749 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
1751 * linespec.c (decode_line_1): Check for a double quote after
1752 a filename correctly.
1754 2002-05-10 Jim Blandy <jimb@redhat.com>
1756 Properly track the size of the current objfile's .debug_line section.
1757 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
1758 (DWARF_LINE_SIZE): New macro.
1759 (dwarf2_build_psymtabs_hard): Record the line section's size in
1760 the partial symbol table.
1761 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
1764 2002-05-10 Petr Sorfa <petrs@caldera.com>
1766 * ia64-tdep.c: Handle breakpoints on L instruction type
1767 in MLX instruction bundle by moving the breakpoint to
1768 the third slot (X instruction type) as L holds only data.
1770 2002-05-10 Kevin Buettner <kevinb@redhat.com>
1772 * dbxread.c (discarding_local_symbols_complaint): New complaint.
1773 (process_one_symbol): Complain about discarding local symbols
1774 due to a misplaced N_LBRAC entry.
1776 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
1778 From Daniel Berlin <dan@cgsoftware.com>
1779 * linespec.c (find_toplevel_char): '<' and '>' also increase and
1780 decrease the depth we are at, in the case of templates.
1782 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1784 * mips-tdep.c (mips_float_register_type): New function.
1785 (mips_double_register_type): New function.
1786 (mips_print_register): Use them.
1787 (do_fp_register_row): Likewise.
1789 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1791 * signals/signals.c (signals): Remove conditional compilation around
1792 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
1793 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
1795 2002-05-09 Michael Snyder <msnyder@redhat.com>
1797 * remote-rdp.c (remote_rdp_can_run): Remove.
1799 2002-05-09 Tom Tromey <tromey@redhat.com>
1801 * jv-valprint.c (java_val_print): Handle `char' as a special case
1804 2002-05-09 Michael Snyder <msnyder@redhat.com>
1806 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1807 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
1808 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
1809 str r(0123),[sp,#nn].
1810 (arm_skip_prologue): Ditto. Also make disassembly
1811 order-independent by placing it in a loop.
1813 2002-05-06 Michael Snyder <msnyder@redhat.com>
1815 * stabsread.c (read_type): Add recognition for new attribute:
1816 "@V;" means that an array type is actually a vector.
1817 This is analogous to the vector flag that's been added to dwarf2.
1819 2002-05-09 Mark Kettenis <kettenis@gnu.org>
1821 * i386-tdep.h (i386_abi): New enum.
1822 (struct gdbarch_tdep): Replace os_ident member with abi.
1823 (i386_gdbarch_register_os_abi): New prototype.
1824 * i386-tdep.c (i386_abi_names): New array.
1825 (process_note_abi_tag_sections): Removed.
1826 (process_note_sections): New function.
1827 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1828 (struct i386_abi_handler): New struct.
1829 (i386_abi_handler_list): New variable.
1830 (i386_gdbarch_register_os_abi): New function.
1831 (i386_gdbarch_init): Adapt for the changes given above.
1833 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
1835 * gregset.h: Say "GNU/Linux".
1837 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
1839 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1840 (build_gdbtypes): Build builtin_type_v2_float.
1841 (_initialize_gdbtypes): Register new builtin type.
1843 2002-05-08 Andrew Cagney <ac131313@redhat.com>
1845 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1846 (clear_gdbarch_swap): New function.
1847 (initialize_non_multiarch): Call.
1848 (gdbarch_update_p): Before calling init(), swap out and clear the
1849 existing architecture.
1850 * gdbarch.c: Regenerate.
1852 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1854 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1857 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1859 * sh-nbsd-nat.c: Rename to...
1860 * shnbsd-nat.c: ...this.
1861 * sh-nbsd-tdep.c: Rename to...
1862 * shnbsd-tdep.c: ...this.
1863 * sh-nbsd-tdep.h: Rename to...
1864 * shnbsd-tdep.h: ...this.
1865 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1866 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1868 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
1870 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1871 concatenation for command help messages.
1873 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1875 * NEWS: Note new sh*-*-netbsdelf* configuration.
1876 * configure.host: Set gdb_host_cpu to sh for all sh*.
1877 (sh*-*-netbsdelf*): New host.
1878 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1879 (sh*-*-netbsdelf*): New target.
1880 * sh-nbsd-nat.c: New file.
1881 * sh-nbsd-tdep.c: New file.
1882 * sh-nbsd-tdep.h: New file.
1883 * config/sh/nbsd.mh: New file.
1884 * config/sh/nbsd.mt: New file.
1885 * config/sh/nm-nbsd.h: New file.
1886 * config/sh/tm-nbsd.h: New file.
1888 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1890 * sh-tdep.c (sh_osabi_names): Declare.
1891 (process_note_abi_tag_sections): New function.
1892 (get_elfosabi): Ditto.
1893 (sh_gdbarch_register_os_abi): Ditto.
1894 (sh_dump_tdep): Ditto.
1895 _initialize_sh_tdep): Use gdbarch_register to register
1896 sh_gdbarch_init and sh_dump_tdep.
1897 * config/sh/tm-sh.h (sh_osabi): Declare.
1898 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1900 2002-05-07 Andrew Cagney <ac131313@redhat.com>
1902 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1903 (thumb_scan_prologue): Ditto.
1904 (arm_find_callers_reg): Ditto.
1905 (arm_frame_chain): Ditto.
1906 (arm_init_extra_frame_info): Ditto.
1907 (arm_frame_saved_pc): Ditto.
1908 (arm_pop_frame): Ditto.
1909 (arm_push_return_address): New function.
1910 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1911 call_dummy_location, call_dummy_breakpoint_offset_p,
1912 call_dummy_breakpoint_offset, call_dummy_p,
1913 call_dummy_stack_adjust_p, call_dummy_words,
1914 sizeof_call_dummy_words, call_dummy_start_offset,
1915 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1916 call_dummy_address, push_return_address and push_dummy_frame for
1917 generic dummy frames.
1919 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1921 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1922 size computation for alloca.
1923 (sh_fp_frame_init_saved_regs): Likewise.
1925 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
1927 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1928 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
1929 * arm-tdep.c (arm_store_return_value): Use them.
1930 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1931 * remote-rdp.c (remote_rdp_fetch_register): Use
1932 ARM_MAX_REGISTER_RAW_SIZE.
1933 (remote_rdp_store_register): Likewise.
1935 2002-05-07 Michal Ludvig <mludvig@suse.cz>
1937 * dwarf2cfi.c: Code cleanup, removed unused variables,
1938 added default labels to switch {} statements.
1939 * x86-64-tdep.c: Ditto.
1940 * x86-64-linux-nat.c: Ditto.
1942 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1944 * solib.h: Protect against multiple inclusion.
1946 2002-05-06 Jim Blandy <jimb@redhat.com>
1948 Add first preprocessor macro-expansion files.
1949 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1950 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1951 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1952 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1953 (COMMON_OBS): Add macrotab.o, macroexp.o.
1954 (macroexp.o, macrotab.o): New rules.
1956 Separate the job of reading the line number info statement program
1957 header (...expialidocious) out into its own function.
1958 * dwarf2read.c (struct line_head, struct filenames, struct
1959 directories): Replace with...
1960 (struct line_header): New structure, containing the full
1961 contents of the statement program header, including the
1962 include directory and file name tables.
1963 (read_file_scope): If we have line number info, instead of just
1964 calling dwarf_decode_lines to do all the work, call
1965 dwarf_decode_line_header first to get a `struct line_header'
1966 containing the data in the statement program header, and then
1967 pass that to dwarf_decode_lines, which will pick up where that
1968 left off. Be sure to clean up the `struct line_header' object.
1969 (dwarf_decode_line_header, free_line_header, add_include_dir,
1970 add_file_name): New functions.
1971 (dwarf_decode_lines): Move all the code to read the statement
1972 program header into dwarf_decode_line_header. Take the line
1973 header it built as the first argument, instead of the offset to
1974 the compilation unit's line number info. Use the new `struct
1975 line_header' type instead of the old structures. No need to do
1976 cleanups here now, since we don't allocate anything.
1977 (dwarf2_statement_list_fits_in_line_number_section,
1978 dwarf2_line_header_too_long): New complaints.
1980 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
1982 * gdbtypes.c (init_vector_type): New function.
1983 (build_builtin_type_vec128): Simplify the representation of SIMD
1985 (build_gdbtypes): Initialize new builtin vector types.
1986 (_initialize_gdbtypes): Register new vector types with gdbarch.
1987 (builtin_type_v4_float, builtin_type_v4_int32,
1988 builtin_type_v8_int16, builtin_type_v16_int8,
1989 builtin_type_v2_int32, builtin_type_v4_int16,
1990 builtin_type_v8_int8): New (renamed) SIMD types.
1992 2002-05-06 Mark Kettenis <kettenis@gnu.org>
1994 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1995 (i387_fill_fxsave): Likewise.
1997 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
1999 * alpha-tdep.c (alpha_extract_return_value): Don't use
2000 non-constant array size in prototype.
2002 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2004 From Brian Taylor <briant at model dot com>:
2005 * ui-out.c (ui_out_field_core_addr): Use the function
2006 longest_local_hex_string_custom'to format addresses > 32 bits
2009 * ui-out.c (ui_out_field_core_addr): Update comment.
2011 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2013 * stack.c (select_and_print_frame): Make static. Delete the
2015 (func_command): Update call.
2016 (select_frame_command): Delete code computing the frame level.
2017 * frame.h (select_and_print_frame): Delete declaration.
2019 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2021 * sparc-tdep.c (sparc_get_saved_register): Comment why
2022 get_prev_frame call is safe.
2024 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2026 * frame.h (select_frame): Delete level parameter.
2027 * stack.c (select_frame): Update. Use frame_relative_level to
2028 obtain the frame's level.
2029 (select_and_print_frame): Update call.
2030 (select_frame_command): Ditto.
2031 (up_silently_base): Ditto.
2032 (down_silently_base): Ditto.
2033 * ocd.c (ocd_start_remote): Ditto.
2034 * remote-rdp.c (remote_rdp_open): Ditto.
2035 * remote-mips.c (mips_initialize): Ditto.
2036 (common_open): Ditto.
2037 * remote-e7000.c (e7000_start_remote): Ditto.
2038 * m3-nat.c (select_thread): Ditto.
2039 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2040 (child_get_current_exception_event): Ditto.
2041 * varobj.c (varobj_create): Ditto.
2042 (varobj_update): Ditto.
2043 (c_value_of_root): Ditto.
2044 * tracepoint.c (finish_tfind_command): Ditto.
2045 * corelow.c (core_open): Ditto.
2046 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2047 * thread.c (info_threads_command): Ditto.
2048 (switch_to_thread): Ditto.
2049 * infrun.c (normal_stop): Ditto.
2050 (restore_selected_frame): Ditto.
2051 (restore_inferior_status): Ditto.
2052 * breakpoint.c (insert_breakpoints): Ditto.
2053 (watchpoint_check): Ditto.
2054 (bpstat_stop_status): Ditto.
2055 (do_enable_breakpoint): Ditto.
2056 * blockframe.c (flush_cached_frames): Ditto.
2057 (reinit_frame_cache): Ditto.
2059 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2061 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2064 2002-05-04 Jim Blandy <jimb@redhat.com>
2066 * gdbtypes.c (replace_type): Doc fix.
2068 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2070 * valprint.c (strcat_longest): Delete commented out function.
2073 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2075 * MAINTAINERS: Mark a29k as deleted.
2076 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2077 Move new configurations to the top.
2078 * configure.tgt: Remove a29k.
2079 * config/a29k/tm-vx29k.h: Delete.
2080 * config/a29k/vx29k.mt: Delete.
2081 * config/a29k/tm-a29k.h: Delete.
2082 * config/a29k/a29k-udi.mt: Delete.
2083 * config/a29k/a29k.mt: Delete.
2084 * a29k-tdep.c: Delete.
2085 * remote-udi.c: Delete.
2086 * remote-mm.c: Delete.
2087 * remote-eb.c: Delete.
2088 * remote-adapt.c: Delete.
2089 * Makefile.in: Remove obsolete code.
2090 * gdbserver/Makefile.in: Ditto.
2091 * config/s390/s390x.mt: Ditto.
2092 * config/s390/s390.mt: Ditto.
2093 * config/sparc/sparclynx.mh: Ditto.
2094 * config/sparc/linux.mh: Ditto.
2095 * config/pa/hppaosf.mh: Ditto.
2096 * config/pa/hppabsd.mh: Ditto.
2097 * config/ns32k/nbsd.mt: Ditto.
2098 * config/mips/vr5000.mt: Ditto.
2099 * config/m68k/sun3os4.mh: Ditto.
2100 * config/m68k/nbsd.mt: Ditto.
2101 * config/m68k/m68klynx.mh: Ditto.
2102 * config/m32r/m32r.mt: Ditto.
2103 * config/i386/x86-64linux.mt: Ditto.
2104 * config/i386/nbsdelf.mt: Ditto.
2105 * config/i386/nbsd.mt: Ditto.
2106 * config/i386/i386lynx.mh: Ditto.
2108 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2110 * target.c (debug_print_register): New function. Handle oversize
2112 (debug_to_fetch_registers): Call.
2113 (debug_to_store_registers): Call.
2115 2002-05-03 Jim Blandy <jimb@redhat.com>
2117 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2118 (read_type): Doc fix.
2119 * gdbtypes.c (replace_type): Doc fix.
2121 * stabsread.c (multiply_defined_struct): New complaint.
2122 (read_struct_type): If the type we were passed isn't empty, or
2123 incomplete, don't read the new struct type into it; complain,
2124 and return the original type unchanged. Take a new `type_code'
2125 argument, which is the type code for the new type.
2126 (read_type): Rather than storing the type's type code here, pass
2127 it as an argument to read_struct_type, and let that take care of
2128 storing it. That way, we don't overwrite the original type code,
2129 so read_struct_type can use it to decide whether we're overwriting
2130 something we shouldn't.
2131 (complain_about_struct_wipeout): New function.
2133 2002-05-03 Andrew Cagney <ac131313@redhat.com>
2135 * gdbarch.sh: Assert that gdbarch is non-NULL.
2136 * gdbarch.c: Regenerate.
2138 2002-05-03 Jason Merrill <jason@redhat.com>
2140 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2143 2002-05-03 Michal Ludvig <mludvig@suse.cz>
2145 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2146 (x86_64_dwarf2gdb_regno_map_length),
2147 (x86_64_dwarf2_reg_to_regnum): Added.
2148 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2149 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2150 (_initialize_x86_64_tdep): Synced with the change above.
2151 (x86_64_skip_prologue): Reformulated message.
2153 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2155 * f-exp.y: Also use new prev_lexptr variable
2156 to improve error reporting. Based on Michael Snyder
2157 2002-04-24 dated patch to c-exp.y.
2158 * jv-exp.y: Likewise.
2159 * m2-exp.y: Likewise.
2161 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
2163 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2164 we are dealing with vectors.
2166 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2168 * config/m68k/tm-nbsd.h: Obvious fix,
2169 correct machine name.
2171 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2173 * p-typeprint.c (pascal_type_print_base): Add support
2174 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2176 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2178 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2179 for fondamental pascal 'char' type.
2181 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2183 * p-lang.h (is_pascal_string_type): Declaration changed,
2184 new sixth argument of type char ** added.
2185 * p-lang.c (is_pascal_string_type): Implementation
2186 changed. Args length_pos, length_size, string_pos, char_size
2187 can now be NULL. New argument arrayname set to the field
2188 name of the char array. Return value set to char array
2189 field index plus one.
2190 * p-valprint.c (pascal_val_print): Adapt to new declaration of
2191 is_pascal_string_type function.
2193 2002-05-02 Andrew Cagney <cagney@redhat.com>
2195 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2196 <cagney@redhat.com> change.
2197 * gdbarch.c: Regenerate.
2199 2002-05-02 Andrew Cagney <cagney@redhat.com>
2201 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2202 before probing for a new one. Detect errorenous gdbarch_init
2204 * gdbarch.c: Regenerate.
2206 2002-05-01 Andrew Cagney <cagney@redhat.com>
2208 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2209 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2210 * config/v850/tm-v850.h: Ditto. Update copyright.
2212 2002-04-30 Andrew Cagney <ac131313@redhat.com>
2214 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2217 2002-04-30 Michael Snyder <msnyder@redhat.com>
2219 * arm-tdep.c: Whitespace clean-ups.
2220 (arm_skip_prologue): Fix thinko; two lines
2221 should have been removed as part of 4/24 change.
2223 2002-04-30 Kevin Buettner <kevinb@redhat.com>
2225 * rs6000-tdep.c: Added comment describing how fpscr register
2226 numbers were chosen.
2228 2002-04-30 Michael Snyder <msnyder@redhat.com>
2230 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2232 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2234 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2235 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2236 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2238 2002-04-29 Kevin Buettner <kevinb@redhat.com>
2240 From Louis Hamilton <hamilton@redhat.com>:
2241 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2242 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2243 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2244 not bfd-private xcoff data, to determine wordsize.
2245 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2247 2002-04-29 Andrew Cagney <ac131313@redhat.com>
2249 GDB 5.2 released from 5.2 branch.
2251 2002-04-29 Michal Ludvig <mludvig@suse.cz>
2253 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2254 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2255 (x86_64_register_info_table): Added comments with register numbers.
2257 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2259 * rs6000-tdep.c (rs6000_extract_return_value,
2260 rs6000_store_return_value): Handle returning vectors.
2261 (rs6000_gdbarch_init): Use
2262 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2263 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2265 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2267 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2268 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2270 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2272 * hpread.c (hpread_psymtab_to_symtab_1,
2273 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2274 with fprintf_unfiltered (gdb_stderr,...).
2276 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2278 * remote-array.c (printf_monitor, write_monitor,
2279 array_insert_breakpoint, array_remove_breakpoint ):
2280 Replace fprintf (stderr,...
2281 with fprintf_unfiltered (gdb_stderr,....
2282 * remote-es.c: Likewise.
2283 * remote-os9k.c: Likewise.
2284 * remote-st.c: Likewise.
2286 2002-04-28 Andreas Schwab <schwab@suse.de>
2288 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2289 linux-proc.o and gcore.o.
2291 2002-04-26 Michal Ludvig <mludvig@suse.cz>
2293 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2294 code without frame pointers.
2296 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2298 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2301 2002-04-26 Ben Elliston <bje@redhat.com>
2303 * target.c (do_xfer_memory): Correct reference to the new option
2304 "trust-readonly-sections".
2306 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
2308 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2309 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2310 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2312 (read_array_type): Record the fact that this array type is really a
2313 vector (i.e. are passed in by value).
2315 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2317 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2318 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2319 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2320 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2321 * alpha-linux-tdep.c: Include frame.h.
2322 (alpha_linux_sigcontext_addr): New function.
2323 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2324 alpha_linux_sigcontext_addr.
2325 * alpha-osf1-tdep.c: Include gdbcore.h.
2326 (alpha_osf1_sigcontext_addr): New function.
2327 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2328 alpha_osf1_sigcontext_addr.
2329 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2330 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2332 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2334 * stack.c (selected_frame_level):
2335 (select_frame): Do not set selected_frame_level.
2336 * frame.h (selected_frame_level): Delete declaration.
2338 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2340 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2341 convert_from_func_ptr-addr when AIX / PowerOpen.
2343 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2345 * valops.c (hand_function_call): Call
2346 generic_save_call_dummy_addr.
2347 * frame.h (generic_save_call_dummy_addr): Declare.
2348 * blockframe.c (struct dummy_frame): Add fields call_lo and
2350 (generic_find_dummy_frame): Check for PC in range call_lo to
2351 call_hi instead of entry_point_address.
2352 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2353 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2354 (generic_save_call_dummy_addr): New function.
2356 2002-04-24 David S. Miller <davem@redhat.com>
2358 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2359 sparc_skip_prologue.
2360 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2361 information to find prologue when possible.
2362 (sparc_prologue_frameless_p): Call examine_prologue directly.
2363 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2364 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2366 (SKIP_PROLOGUE): Likewise.
2368 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2370 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2371 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2372 indicate that the condition it was testing is always true.
2373 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2374 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2375 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2377 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2379 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2380 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2381 tdep->jb_pc and tdep->jb_elt_size.
2382 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2383 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2384 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2385 * alpha-nat.c (get_longjmp_target): Remove.
2386 (JB_ELEMENT_SIZE): Ditto.
2388 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2389 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2390 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2391 to alpha_get_longjmp_target.
2392 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2393 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2394 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2396 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2398 * README: Update to GDB 5.2.
2400 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2402 * gdbarch.sh (LC_ALL): Set to `c'.
2404 2002-04-25 Theodore A. Roth <troth@verinet.com>
2406 * avr-tdep.c: Ran through gdb_indent.sh.
2408 2002-04-25 Theodore A. Roth <troth@verinet.com>
2410 * MAINTAINERS: Add myself as AVR maintainer.
2411 * NEWS: Note new target avr.
2413 2002-04-25 Theodore A. Roth <troth@verinet.com>
2415 * Makefile.in: Add support for AVR target.
2416 * configure.tgt: Add support for AVR target.
2417 * avr-tdep.c: New file
2418 * config/avr/avr.mt: New file.
2420 2002-04-25 Theodore A. Roth <troth@verinet.com>
2422 * MAINTAINERS: Add myself to write-after-approval.
2424 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2426 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2427 with fprintf_unfiltered (gdb_stderr,....
2429 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2432 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2434 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2436 * p-exp.y: Also use new prev_lexptr variable
2437 to improve error reporting. Based on Michael Snyder
2438 2002-04-24 dated patch to c-exp.y.
2440 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2442 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2443 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2444 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2446 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2448 (FUNCTION_START_OFFSET): Remove.
2449 (BREAKPOINT): Ditto.
2451 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2453 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2456 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2458 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2459 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2460 alpha_linux_pc_in_sigtramp.
2461 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2462 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2463 alpha_osf1_pc_in_sigtramp.
2464 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2465 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2466 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2467 alphafbsd_pc_in_sigtramp.
2468 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2469 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2470 alphanbsd_pc_in_sigtramp.
2471 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2472 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2474 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2476 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2478 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2480 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2482 (alphanbsd-nat.o): New dependency list.
2483 (alphanbsd-tdep.o): Ditto.
2484 * NEWS: Note new native NetBSD/alpha configuration.
2485 * alphanbsd-nat.c: New file.
2486 * alphanbsd-tdep.c: Ditto.
2487 * configure.host (alpha*-*-netbsd*): New host.
2488 * configure.tgt (alpha*-*-netbsd*): New target.
2489 * config/alpha/nbsd.mh: New file.
2490 * config/alpha/nbsd.mt: Ditto.
2491 * config/alpha/nm-nbsd.h: Ditto.
2492 * config/alpha/tm-nbsd.h: Ditto.
2494 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2496 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2497 (alpha-osf1-tdep.o): New dependency list.
2498 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2499 and skip_sigtramp_frame members.
2500 * alpha-linux-tdep.c: Include gdbcore.h.
2501 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2502 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2503 * alpha-osf1-tdep.c: New file.
2504 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2506 (alpha_frame_past_sigtramp_frame): New function.
2507 (alpha_dynamic_sigtramp_offset): Ditto.
2508 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2509 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2510 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2511 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2512 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2513 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2514 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2515 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2516 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2517 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2518 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2519 to find_solib_trampoline_target.
2520 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2521 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2522 (SKIP_TRAMPOLINE_CODE): Remove.
2523 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2524 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2525 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2526 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2527 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2528 (PROC_SIGTRAMP_MAGIC): Ditto.
2529 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2530 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2531 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2532 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2533 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2535 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2537 * NEWS: Note that Alpha targets are now multi-arch.
2539 2002-04-24 Michael Snyder <msnyder@redhat.com>
2541 * parser-defs.h (prev_lexptr): New external variable.
2542 * parse.c (parse_exp_1): Set prev_lexptr to null before
2543 calling the language-specific parser.
2544 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2545 (yyerror): Use prev_lexptr in error reporting.
2547 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
2549 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2550 * gregset.h: If FILL_FPXREGSET is defined, provide
2551 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2552 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2553 is defined, call fill_fpxregset.
2555 2002-04-24 Roland McGrath <roland@frob.com>
2557 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2558 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2559 (supply_gregset, supply_fpregset): New functions.
2561 * gnu-nat.c (gnu_find_memory_regions): New function.
2562 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2563 (gnu_xfer_memory): Add a cast.
2565 2002-04-24 Michael Snyder <msnyder@redhat.com>
2567 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
2568 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2569 of argument regs ("str r(0123), [r11, #-nn"]).
2570 (arm_skip_prologue): Better handling for frameless functions.
2571 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2572 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2574 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2576 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2577 NUM_PSEUDO_REGS can be used.
2579 2002-04-24 Andrew Cagney <ac131313@redhat.com>
2581 * arch-utils.h: Update copyright.
2583 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2584 * gdbarch.h, gdbarch.c: Re-generate.
2586 * inferior.h (IN_SIGTRAMP): Delete definition.
2587 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2588 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2590 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2591 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2592 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2593 (find_proc_framesize): Ditto.
2594 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2595 (alpha_init_extra_frame_info): Ditto.
2596 * infrun.c (handle_inferior_event): Ditto.
2597 (handle_inferior_event): Ditto.
2598 (check_sigtramp2): Ditto.
2599 * blockframe.c (create_new_frame): Ditto.
2600 (get_prev_frame): Ditto.
2601 * ppc-linux-tdep.c: Update comments.
2602 * i386-linux-tdep.c: Update comments.
2603 * breakpoint.c (bpstat_what): Update comment.
2605 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2607 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
2608 (regsets_store_inferior_registers): Removed cast to int from
2610 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2612 2002-04-24 David S. Miller <davem@redhat.com>
2614 * i960-tdep.c (register_in_window_p): New function.
2615 (i960_find_saved_register): Use it instead of
2616 REGISTER_IN_WINDOW_P.
2617 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2619 * symtab.h (find_stab_function_addr): Kill extern.
2620 * minsyms.c (find_stab_function_addr): Remove from here...
2621 * dbxread.c: ... to here, and mark it static.
2623 2002-04-20 David S. Miller <davem@redhat.com>
2625 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2626 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2628 2002-04-21 David S. Miller <davem@redhat.com>
2630 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2631 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2632 (vx_write_register): Likewise.
2634 2002-04-23 J. Brobecker <brobecker@gnat.com>
2636 * source.c (is_regular_file): New function.
2637 (openp): Check wether file to open is a regular file
2638 to avoid opening directories.
2640 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2642 * findvar.c (extract_signed_integer): Cast printf argument
2643 to suppress format warning.
2644 (extract_unsigned_integer): Likewise.
2645 * infcmd.c (registers_info): Likewise.
2646 * top.c (get_prompt_1): Likewise.
2647 * valops.c (value_assign): Likewise.
2648 * valprint.c (print_decimal): Likewise.
2650 2002-04-22 H.J. Lu (hjl@gnu.org)
2652 * c-exp.y (typebase): Support
2654 [long|long long|short] [signed|unsigned] [int|]
2658 signed [long|long long|short] int
2660 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2662 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2664 * vax-tdep.h: New file.
2665 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2666 Make several routines static.
2667 (vax_get_saved_register): New function.
2668 (vax_gdbarch_init): New function.
2669 (_initialize_vax_tdep): Register vax_gdbarch_init.
2670 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2671 Remove macros now under the control of gdbarch.
2673 2002-04-22 Michael Snyder <msnyder@redhat.com>
2675 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2676 Some whitespace and coding standards tweaks.
2678 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2680 * vax-tdep.c: Include regcache.h.
2681 (vax_call_dummy_words): New.
2682 (sizeof_vax_call_dummy_words): New.
2683 (vax_fix_call_dummy): New function.
2684 (vax_saved_pc_after_call): Ditto.
2685 * config/vax/tm-vax.h: Don't include regcache.h.
2686 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2687 (CALL_DUMMY): Remove.
2688 (CALL_DUMMY_WORDS): Define.
2689 (SIZEOF_CALL_DUMMY_WORDS): Define.
2690 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2692 2002-04-18 Michael Snyder <msnyder@redhat.com>
2694 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2696 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2698 * vax-tdep.c (vax_frame_chain): New function.
2699 (vax_push_dummy_frame): Ditto.
2700 (vax_pop_frame): Ditto.
2701 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2702 (FRAMELESS_FUNCTION_INVOCATION): Use
2703 generic_frameless_function_invocation_not.
2704 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2705 (POP_FRAME): Use vax_pop_frame.
2707 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2709 * vax-tdep.c (vax_store_struct_return): New function.
2710 (vax_extract_return_value): Ditto.
2711 (vax_store_return_value): Ditto.
2712 (vax_extract_struct_value_address): Ditto.
2713 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2714 vax_store_struct_return.
2715 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2716 (STORE_RETURN_VALUE): Use vax_store_return_value.
2717 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2719 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2721 * vax-tdep.c (vax_frame_saved_pc): New function.
2722 (vax_frame_args_address_correct): Ditto.
2723 (vax_frame_args_address): Ditto.
2724 (vax_frame_locals_address): Ditto.
2725 (vax_frame_num_args): Move code to be in proximity to
2726 other frame-related functions.
2727 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2728 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2729 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2730 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2731 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2733 2002-04-22 H.J. Lu (hjl@gnu.org)
2735 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
2738 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2740 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2741 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2742 (FRAME_INIT_SAVED_REGS): New macro.
2744 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2746 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
2748 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2750 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
2752 (fetch_osf_core_registers): Likewise.
2753 (supply_gregset): Likewise.
2755 2002-04-22 J. Brobecker <brobecker@gnat.com>
2757 * symfile.h (get_section_index): Define.
2758 * symfile.c (get_section_index): New function.
2759 * mdebugread.c (SC_IS_SBSS): New macro.
2760 (SC_IS_BSS): Return true for the scBss storage class only, as
2761 the scSBss storage class refers to the .sbss section.
2762 (parse_partial_symbols): Discard the symbols which associated
2763 section does not exist.
2764 Make sure to use the .sbss section index for symbols which
2765 storage class is scBss, rather than using the .bss section index.
2767 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2769 * vax-tdep.c: Update copyright years.
2770 (vax_register_name): New function.
2771 (vax_register_byte): Ditto.
2772 (vax_register_raw_size): Ditto.
2773 (vax_register_virtual_size): Ditto.
2774 (vax_register_virtual_type): Ditto.
2775 * config/vax/tm-vax.h: Update copyright years.
2776 (REGISTER_NAMES): Remove.
2777 (REGISTER_NAME): Define.
2778 (REGISTER_BYTE): Use vax_register_byte.
2779 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
2780 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
2781 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2783 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2785 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
2787 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2789 2002-04-21 David S. Miller <davem@redhat.com>
2791 * arch-utils.c (generic_prologue_frameless_p): Kill
2792 SKIP_PROLOGUE_FRAMELESS_P code.
2793 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2795 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
2796 * arc-tdep.c (arc_prologue_frameless_p): Implement.
2797 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2799 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2800 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2801 (sparc_gdbarch_init): Pass it to
2802 set_gdbarch_prologue_frameless_p.
2804 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2806 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2807 (alphabsd-nat.o): New dependency list.
2809 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2811 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2813 (alpha-linux-tdep.o): New dependency list.
2814 (alphafbsd-tdep.o): Likewise.
2816 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2818 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2820 * alpha-tdep.c: ...from here.
2821 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2823 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2825 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2826 prototype from here...
2827 * alpha-tdep.h: ...to here.
2829 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2831 * frame.h (selected_frame_level): Document as deprecated.
2832 (frame_relative_level): Declare.
2833 * stack.c (frame_relative_level): New function.
2834 (selected_frame_level): Document as deprecated.
2835 (select_frame): Do not set the selected_frame_level.
2837 * stack.c (frame_info, record_selected_frame): Update.
2838 (frame_command, current_frame_command): Update.
2839 (up_silently_base, up_command, down_silently_base): Update.
2840 (down_command): Update.
2841 * inflow.c (kill_command): Update.
2842 * tracepoint.c (finish_tfind_command): Update.
2843 * corelow.c (core_open): Update.
2844 * thread.c (info_threads_command): Update.
2845 (do_captured_thread_select): Update.
2846 * infcmd.c (finish_command): Update.
2847 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2849 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2851 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2853 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2855 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2860 * alphafbsd-tdep.c: Update copyright years. Include
2862 (alphafbsd_use_struct_convention): Make static.
2863 (alphafbsd_init_abi): New function.
2864 (_initialize_alphafbsd_tdep): New function.
2865 * config/alpha/tm-fbsd.h: Update copyright years.
2866 (USE_STRUCT_CONVENTION): Remove.
2868 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2870 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2871 an Alpha ABI variant.
2872 (alpha_abi_handler_list): Declare.
2873 (alpha_gdbarch_register_os_abi): New function.
2874 (alpha_gdbarch_init): Give registered ABI variant handlers a
2875 chance to tweak the gdbarch once we have set up defaults.
2876 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2878 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2880 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2881 to standard_coerce_float_to_double.
2882 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2884 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2886 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2887 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2888 from gdbarch_tdep rather than a constant.
2889 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2890 the default text address for all Alpha Unix ABIs.
2891 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2892 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2894 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2896 * alpha-tdep.h: New file. Includes several Alpha target constants
2898 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2899 let gdbarch deal with.
2900 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2901 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2903 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2904 Alpha target register names.
2905 * alphabsd-nat.c: Likewise.
2906 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2907 Alpha target register names. Make serveral routines static.
2908 (alpha_get_saved_register): New function.
2909 (alpha_abi_names): New.
2910 (process_note_abi_tag_sections): New function.
2911 (get_elfosabi): New function.
2912 (alpha_gdbarch_init): New function.
2913 (alpha_dump_tdep): New function.
2914 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2916 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2918 * frame.c (find_saved_register): Delete #ifdef
2919 HAVE_REGISTER_WINDOWS code.
2920 * config/sparc/tm-sparc.h: Update comments.
2921 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2923 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2925 * i960-tdep.c (i960_find_saved_register): New function.
2926 (i960_get_saved_register): New function.
2927 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2928 (i960_get_saved_register): Declare.
2929 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2931 2002-04-20 David S. Miller <davem@redhat.com>
2933 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2935 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2937 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2938 instead of NUM_PSEUDO_REGS.
2940 2002-04-20 David S. Miller <davem@redhat.com>
2942 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2943 GDB_MULTI_ARCH_PARTIAL
2944 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2945 define, let tm-sp64.h do it.
2947 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2949 * frame.c (find_saved_register): Avoid a NULL pointer
2950 dereference and actually walk the frame list.
2952 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2954 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2955 sorted in most most-recent-used order. Document.
2956 * gdbarch.h, gdbarch.c: Regenerate.
2958 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2960 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2961 (add_inferior): Call create_register_cache.
2962 (clear_inferiors): Call free_register_cache.
2963 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2964 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2965 (registers): Remove.
2966 (get_regcache): New function.
2967 (create_register_cache, free_register_cache): New functions.
2968 (set_register_cache): Don't initialize the register cache here.
2969 (registers_to_string, registers_from_string, register_data): Call
2971 * gdbserver/regcache.h: Add prototypes.
2972 * gdbserver/server.h: Likewise.
2974 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2976 * gdbserver/mem-break.c: New file.
2977 * gdbserver/mem-break.h: New file.
2978 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2980 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2982 (clear_inferiors): Free target_data member if set.
2983 (inferior_target_data, set_inferior_target_data): New functions.
2984 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2985 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2986 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2987 (struct inferior_linux_data): New.
2988 (linux_create_inferior): Use set_inferior_target_data.
2989 (linux_attach): Likewise. Call add_inferior.
2990 (linux_wait_for_one_inferior): New function.
2991 (linux_wait): Call it.
2992 (linux_write_memory): Add const.
2993 (initialize_low): Call set_breakpoint_data.
2994 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2996 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
2998 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3000 * gdbserver/target.c (read_inferior_memory)
3001 (write_inferior_memory): New functions.
3002 * gdbserver/target.h (read_inferior_memory)
3003 (write_inferior_memory): Change macros to prototypes.
3004 (struct target_ops): Update comments. Add const to write_memory
3007 2002-04-19 Andrew Cagney <ac131313@redhat.com>
3009 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3011 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3012 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3013 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3016 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
3019 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3020 (build_builtin_type_vec128): Ditto.
3021 (append_composite_type_field): Fix calculation of type length in
3024 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3026 * config/djgpp/README: Update.
3028 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3031 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3033 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3034 (alpha_setup_arbitrary_frame): ...to this.
3035 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3036 for alpha_setup_arbitrary_frame.
3038 2002-04-18 Andrew Cagney <cagney@redhat.com>
3040 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3041 * gdbarch.h, gdbarch.c: Regenerate.
3043 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3044 * target.h (memory_breakpoint_from_pc): Update declaration.
3045 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3047 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3048 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3049 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3050 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3051 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3052 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3053 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3054 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3055 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3056 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3057 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3058 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3060 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3062 * monitor.c (monitor_insert_breakpoint): Ditto.
3063 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3065 * config/mcore/tm-mcore.h: Update copyright.
3066 * mem-break.c: Ditto.
3067 * xstormy16-tdep.c: Ditto.
3069 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3071 * p-exp.y: Add precedence rule for '^' token.
3072 This removes the shift/reduce conflicts.
3073 Remove the comment concerning these shift/reduce conflicts.
3075 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
3077 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3078 (registers_powerpc_nofp): New register set for processors
3079 without floating point unit.
3081 2002-04-18 David S. Miller <davem@redhat.com>
3083 * MAINTAINERS: Add myself to write-after-approval.
3085 2002-04-17 Michael Snyder <msnyder@redhat.com>
3087 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3089 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3091 * rs6000-tdep.c (frame_initial_stack_address): Use
3092 frame_register_read to read the alloca_reg.
3094 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3096 * frame.c (find_saved_register): Find saved registers in the next
3100 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3102 * gdbarch.sh (LANG): Set to ``c''.
3104 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3106 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3108 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3110 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3113 * hpread.c (hpread_get_lntt): Add declaration.
3114 Also fix PR gdb/391.
3116 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3118 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3119 * aclocal.m4, configure: Re-generate.
3122 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3124 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3125 instead of tm_print_insn.
3127 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3129 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3131 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3133 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3134 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3135 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3137 2002-04-12 Don Howard <dhoward@redhat.com>
3139 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3140 max_user_call_depth.
3141 (init_cmd_lists): Initialize the new value;
3142 * cli/cli-script.c (execute_user_command): Limit the call depth of
3143 user defined commands. This avoids a core-dump when user commands
3144 are infinitly recursive.
3146 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3148 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3149 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3150 from tdep struct instead of DEFAULT_LR_SAVE.
3151 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3152 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3153 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3155 2002-04-12 Michael Snyder <msnyder@redhat.com>
3157 * Remote.c: Spelling fix.
3158 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3159 If no symbol found for "sbrk", try "_sbrk".
3160 (make_output_phdrs): Use bfd_section_name.
3161 (gcore_copy_callback): Use bfd_section_name.
3162 * eval.c: Indentation fix-ups.
3163 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3164 in case it gets applied to an address that is already
3165 in the instruction space.
3166 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3167 * symfile.c: Fix indentation, long lines.
3168 * source.c: White space fix-up.
3170 2002-04-12 Andrew Cagney <cagney@redhat.com>
3172 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3173 * frame.c (frame_register_read): New function. Return non-zero on
3175 (read_relative_register_raw_bytes_for_frame): Delete.
3176 (read_relative_register_raw_bytes): Delete.
3177 * frame.h (frame_register_read): Declare.
3178 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3180 * infcmd.c (do_registers_info): Ditto.
3181 * hppa-tdep.c: Ditto.
3182 * rs6000-tdep.c: Ditto.
3183 * h8500-tdep.c: Ditto.
3184 * mips-tdep.c: Ditto.
3185 * h8300-tdep.c: Ditto.
3186 * z8k-tdep.c: Ditto.
3188 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3190 From Jimi X <jimix@watson.ibm.com>:
3191 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3194 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3196 From Jimi X <jimix@watson.ibm.com>:
3197 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3200 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3202 From Jimi X <jimix@watson.ibm.com>:
3203 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3204 register sets for these processor variants.
3206 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
3208 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3209 registers which are allowed to fail to store.
3210 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3211 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3212 (ppc_cannot_store_register): FPSCR may not be storable.
3213 * regformats/reg-ppc.dat: Support FPSCR.
3215 2002-04-11 Kevin Buettner <kevinb@redhat.com>
3217 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3218 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3219 Add fpscr as an invalid/unfetchable register.
3220 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3221 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3222 (fill_fpregset): Add support for register fpscr.
3223 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3224 (fill_gregset): Account for the fact that register ``mq'' might
3226 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3227 (registers_power): Add fpscr to register set at slot 71.
3228 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3229 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3231 2002-04-11 Michael Snyder <msnyder@redhat.com>
3233 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3234 * configure: Regenerate.
3235 * config.in: Regenerate.
3236 * acconfig.h: Add define for _SYSCALL32.
3237 * core-sol2.c: Remove #define _SYSCALL32.
3238 * solib-legacy.c: Remove #define _SYSCALL32.
3240 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3242 * stack.c (select_frame): Cleanup internal error message, do not
3245 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3247 * stack.c (select_frame): Check that selected_frame and the
3248 specified level are as expected.
3249 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3251 * frame.h (struct frame_info): Add field `level'. Update
3253 Work-in-progress PR gdb/464.
3255 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3257 * maint.c (maint_print_section_info): Rename print_section_info.
3258 (print_bfd_section_info, print_objfile_section_info): Update.
3259 * inferior.h (struct gdbarch): Add opaque declaration.
3260 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3261 * gdbarch.h: Regenerate.
3263 2002-04-10 Michal Ludvig <mludvig@suse.cz>
3265 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3266 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3267 (kernel_u_size): Added.
3268 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3269 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3271 2002-04-04 Jim Ingham <jingham@apple.com>
3273 * valarith.c (find_size_for_pointer_math): New function, either returns
3274 the size for a pointer's target, returns 1 for void *, or errors for
3276 (value_add, value_sub): use find_size_for_pointer_math.
3278 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3280 * linux-low.c (linux_look_up_symbols): New hook.
3281 (linux_target_ops): Add linux_look_up_symbols.
3282 * remote-utils.c (decode_address): New function.
3283 (look_up_one_symbol): New function.
3284 * server.c (handle_query): Call target look_up_symbols hook.
3285 * server.h (look_up_one_symbol): Add prototype.
3286 * target.h (struct target_ops): Add look_up_symbols hook.
3288 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3290 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3291 * ChangeLog: Correct paths in last ChangeLog entry.
3293 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3295 * gdbserver/linux-low.h: Remove obsolete prototypes.
3296 (struct linux_target_ops): New.
3297 (extern the_low_target): New.
3298 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3299 (register_addr): Use the_low_target explicitly.
3300 (fetch_register): Likewise.
3301 (usr_fetch_inferior_registers): Likewise.
3302 (usr_store_inferior_registers): Likewise.
3303 * gdbserver/linux-arm-low.c (num_regs): Remove.
3304 (arm_num_regs): Define.
3305 (arm_regmap): Renamed from regmap, made static.
3306 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3308 (arm_cannot_store_register): Renamed from cannot_store_register,
3310 (the_low_target): New.
3311 * gdbserver/linux-i386-low.c (num_regs): Remove.
3312 (i386_num_regs): Define.
3313 (i386_regmap): Renamed from regmap, made static.
3314 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3316 (i386_cannot_store_register): Renamed from cannot_store_register,
3318 (the_low_target): New.
3319 * gdbserver/linux-ia64-low.c (num_regs): Remove.
3320 (ia64_num_regs): Define.
3321 (ia64_regmap): Renamed from regmap, made static.
3322 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3324 (ia64_cannot_store_register): Renamed from cannot_store_register,
3326 (the_low_target): New.
3327 * gdbserver/linux-m68k-low.c (num_regs): Remove.
3328 (m68k_num_regs): Define.
3329 (m68k_regmap): Renamed from regmap, made static.
3330 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3332 (m68k_cannot_store_register): Renamed from cannot_store_register,
3334 (the_low_target): New.
3335 * gdbserver/linux-mips-low.c (num_regs): Remove.
3336 (mips_num_regs): Define.
3337 (mips_regmap): Renamed from regmap, made static.
3338 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3340 (mips_cannot_store_register): Renamed from cannot_store_register,
3342 (the_low_target): New.
3343 * gdbserver/linux-ppc-low.c (num_regs): Remove.
3344 (ppc_num_regs): Define.
3345 (ppc_regmap): Renamed from regmap, made static.
3346 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3348 (ppc_cannot_store_register): Renamed from cannot_store_register,
3350 (the_low_target): New.
3351 * gdbserver/linux-s390-low.c (num_regs): Remove.
3352 (s390_num_regs): Define.
3353 (s390_regmap): Renamed from regmap, made static.
3354 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3356 (s390_cannot_store_register): Renamed from cannot_store_register,
3358 (the_low_target): New.
3359 * gdbserver/linux-sh-low.c (num_regs): Remove.
3360 (sh_num_regs): Define.
3361 (sh_regmap): Renamed from regmap, made static.
3362 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3364 (sh_cannot_store_register): Renamed from cannot_store_register,
3366 (the_low_target): New.
3367 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3368 (the_low_target): New.
3370 2002-04-09 Andrew Cagney <ac131313@redhat.com>
3372 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3373 override FP_REGNUM with frame->fp. Update copyright.
3374 * parse.c (num_std_regs, std_regs): Delete.
3375 (target_map_name_to_register): Do not search std_regs. Update
3376 function description.
3377 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3378 declarations. Update copyright.
3381 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3383 * gdbserver/Makefile.in: Add stamp-h target.
3384 * gdbserver/configure.in: Create stamp-h.
3385 * gdbserver/configure: Regenerated.
3387 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3389 * gdbserver/inferiors.c: New file.
3390 * gdbserver/target.c: New file.
3391 * gdbserver/target.h: New file.
3392 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3394 * gdbserver/linux-low.c (inferior_pid): New static variable,
3395 moved from server.c.
3396 (linux_create_inferior): Renamed from create_inferior.
3397 Call add_inferior. Return 0 on success instead of a PID.
3398 (linux_attach): Renamed from myattach.
3399 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3400 (linux_thread_alive): Renamed from mythread_alive.
3401 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3403 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3404 (regsets_store_inferior_registers): Correct error message.
3405 Add missing ``return 0''.
3406 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3407 (linux_store_registers): Renamed from store_inferior_registers.
3408 (linux_read_memory): Renamed from read_inferior_memory.
3409 (linux_write_memory): Renamed from write_inferior_memory.
3410 (linux_target_ops): New structure.
3411 (initialize_low): Call set_target_ops ().
3412 * gdbserver/remote-utils.c (unhexify): New function.
3413 (hexify): New function.
3414 (input_interrupt): Send signals to ``signal_pid''.
3415 * gdbserver/server.c (inferior_pid): Remove.
3416 (start_inferior): Update create_inferior call.
3417 (attach_inferior): Call add_inferior.
3418 (handle_query): New function.
3419 (main): Call handle_query for `q' packets.
3420 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3421 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3423 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3425 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3427 * gdbserver/configure.in: Check for <string.h>
3428 * gdbserver/configure: Regenerate.
3429 * gdbserver/config.in: Regenerate.
3430 * gdbserver/gdbreplay.c: Include needed system headers.
3431 (remote_open): Remove strchr prototype.
3432 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3433 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3434 (supply_register_by_name): Likewise.
3435 (collect_register): Change buf argument to void *.
3436 (collect_register_by_name): Likewise.
3437 * gdbserver/regcache.h: Add missing prototypes.
3438 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3439 * gdbserver/server.c (handle_query): New function.
3440 (attached): New static variable, moved out of main.
3441 (main): Quiet longjmp clobber warnings.
3442 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3443 * gdbserver/utils.c (error): Remove NORETURN.
3446 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3448 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3449 after the last symbol in a block.
3451 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3453 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3454 is non zero as a found symbol.
3456 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3458 * findvar.c: Include "builtin-regs.h".
3459 (value_of_register): Call value_of_builtin_reg when applicable.
3460 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3461 (target_map_name_to_register): Call
3462 builtin_reg_map_name_to_regnum.
3463 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3464 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3465 (builtin_regs_h): Define.
3466 (builtin-regs.o): New target.
3467 (findvar.o): Add $(builtin_regs_h).
3468 * builtin-regs.c, builtin-regs.h: New files.
3469 * std-regs.c: New file.
3470 Partial fix for PR gdb/251.
3472 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3474 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3475 it's no longer required.
3477 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3479 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3481 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3483 From Jimi X <jimix@watson.ibm.com>:
3484 * rs6000-tdep.c (rs6000_software_single_step): Use
3485 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3486 and size. Use target_insert_breakpoint() and
3487 target_remove_breakpoint() to insert and remove breakpoints
3488 instead of explicit memory reads and writes.
3490 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3492 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3493 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3494 ELF_OBJECT_FORMAT ifdef.
3496 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3498 From Jimi X <jimix@watson.ibm.com>:
3499 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3501 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3503 From Jimi X <jimix@watson.ibm.com>:
3504 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3505 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3507 2002-04-07 Mark Kettenis <kettenis@gnu.org>
3509 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3510 s/asprintf/xasprintf/.
3511 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3513 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3515 I believe Jeff Law denies responsability for this one:
3516 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3517 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3518 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3519 Work-around for PR gdb/366.
3521 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3523 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3524 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3525 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3527 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3529 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3530 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3533 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3535 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3538 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3540 * README (Reporting Bugs in GDB): Document the bug web page as the
3541 prefered way of submitting bugs.
3544 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3546 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3548 * gdbarch.h, gdbarch.c: Re-generate.
3550 2002-04-07 Andreas Schwab <schwab@suse.de>
3552 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3553 buffer to regcache_collect.
3555 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3557 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3558 * gdbarch.c, gdbarch.h: Re-generate.
3560 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3562 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3563 declaration. Fix -Werror.
3565 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
3567 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3568 * gdbarch.c: Regenerate.
3570 2002-04-05 Michael Snyder <msnyder@redhat.com>
3572 * breakpoint.c (clear_command): Rewrite middle section to
3573 combine two loops with identical control conditions.
3574 Add a cleanup to eliminate a memory leak.
3575 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3577 2002-04-05 H.J. Lu (hjl@gnu.org)
3579 * solib-svr4.c (bkpt_names): Add "__start".
3581 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3583 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3584 as test for 64 bit target.
3586 2002-04-05 Andrew Cagney <ac131313@redhat.com>
3588 * h8500-tdep.c (h8500_write_fp): Delete function.
3589 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3590 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3591 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3593 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3594 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3596 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3597 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3598 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3599 (d10v_write_fp): Delete function.
3600 * inferior.h (write_fp, generic_target_write_fp): Delete
3602 * regcache.c (generic_target_write_fp): Delete function.
3603 (write_fp): Delete function.
3604 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3605 * gdbarch.h, gdbarch.c: Regenerate.
3606 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3607 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3608 (sparc64_write_fp): Delete declaration.
3609 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3610 (h8500_write_fp): Delete declaration.
3612 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3614 * sparc-tdep.c (sparc64_write_fp): Delete.
3615 (sparc_push_dummy_frame): Replace write_fp call with code to store
3617 (sparc_gdbarch_init): Do not initialize write_fp.
3619 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3621 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3624 2002-03-29 Jim Blandy <jimb@redhat.com>
3626 * stack.c (get_selected_block): Add new argument `addr_in_block',
3627 used to return the exact code address we used to select the block,
3629 * blockframe.c (get_frame_block, get_current_block): Same.
3630 * frame.h (get_frame_block, get_current_block,
3631 get_selected_block): Update declarations.
3632 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3633 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3635 2002-04-05 Michael Snyder <msnyder@redhat.com>
3637 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3640 2002-04-05 J. Brobecker <brobecker@gnat.com>
3642 * utils.c (xfullpath): New function.
3643 * defs.h (xfullpath): Add declaration.
3644 * source.c (openp): Use xfullpath in place of gdb_realpath to
3645 avoid resolving the basename part of filenames when the
3646 associated file is a symbolic link. This fixes a potential
3647 inconsistency between the filenames known to GDB and the
3648 filenames it prints in the annotations.
3649 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3650 to be able to match a filename with either the real filename, or
3651 the name of any symbolic link to this file.
3652 (lookup_partial_symtab): Ditto.
3654 2002-04-04 Michael Snyder <msnyder@redhat.com>
3656 * breakpoint.c: Add support for hardware breakpoints in overlays.
3657 (overlay_events_enabled): New state variable.
3658 (insert_breakpoints): Use overlay_events_enabled to decide
3659 whether to attempt to set a breakpoint at the overlay load addr.
3660 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3661 (remove_breakpoint): Use overlay_events_enabled to decide
3662 whether breakpoints need to be removed from overlay load addr.
3663 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3664 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
3665 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
3666 disable_overlay_breakpoints): Update overlay_events_enabled.
3668 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
3670 * dwarf2read.c (struct function_range): New.
3671 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3672 (check_cu_functions): New.
3673 (read_file_scope): Initialize global function lists.
3674 Call dwarf_decode_line after processing children.
3675 (read_func_scope): Add to global function list.
3676 (dwarf_decode_lines): Call check_cu_functions everywhere
3677 record_line is called. Call record_line with a linenumber
3678 of 0 to mark sequence ends.
3680 2002-04-04 Michal Ludvig <mludvig@suse.cz>
3682 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
3683 change sync with glibc.
3685 2002-04-03 Jim Blandy <jimb@redhat.com>
3687 * configure.in: Call AC_C_INLINE.
3688 * configure: Regenerated.
3690 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
3692 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3693 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3695 2002-03-31 Mark Kettenis <kettenis@gnu.org>
3697 * NEWS: Mention gcore support on FreeBSD/i386.
3699 * fbsd-proc.c: New file.
3700 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3701 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3703 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3706 2002-03-29 Jim Blandy <jimb@redhat.com>
3708 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3709 unescaped newlines in string literals, but newer ones don't. So
3712 2002-03-26 Michael Snyder <msnyder@redhat.com>
3713 Andrew Cagney <cagney@redhat.com>
3715 * cli/cli-dump.c: New file. Dump memory to file,
3716 restore file to memory.
3717 * cli/cli-dump.h: New file.
3718 * Makefile.in: Add rules, dependencies for cli-dump.o.
3719 * NEWS: Mention new commands.
3721 2002-03-28 Michael Snyder <msnyder@redhat.com>
3723 * symfile.c (symbol_file_add): Move test for null symbols to later.
3725 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3727 From veksler at il.ibm.com:
3728 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3729 the xstrduped original path.
3732 2002-03-27 Michael Snyder <msnyder@redhat.com>
3734 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3735 * infcmd.c (_initialize_infcmd): Ditto.
3736 * language.c (_initialize_language): Ditto.
3737 * symfile.c (_initialize_symfile): Ditto.
3738 * top.c (_init_main): Ditto.
3739 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3741 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
3743 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
3744 vector registers handling.
3745 (skip_prologue): Handle new AltiVec instructions. Fill in new
3746 fields of frame data.
3747 (frame_get_saved_regs): Fill in information for AltiVec registers.
3749 2002-03-27 Jim Blandy <jimb@redhat.com>
3751 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
3752 a function; leave this macro here to invoke that function.
3753 (symbol_init_mangled_name): Declaration for that function.
3754 * symtab.c (symbol_init_mangled_name): New function.
3756 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3758 * valarith.c: Replace strerror with safe_strerror.
3759 * tracepoint.c: Ditto.
3761 * go32-nat.c: Ditto.
3765 2002-03-27 Andreas Schwab <schwab@suse.de>
3767 * event-top.c (command_line_handler): Remove useless if.
3769 2002-03-27 Andreas Jaeger <aj@suse.de>
3771 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
3774 2002-03-27 Michal Ludvig <mludvig@suse.cz>
3776 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
3777 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
3778 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
3779 (x86_64_linux_dr_get_status, supply_gregset),
3780 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
3781 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
3782 (x86_64_register_info_table): Add.
3783 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
3784 (x86_64_register_raw_size, x86_64_register_virtual_type),
3785 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
3786 general x86_64_register_info_table.
3787 (i386_gdbarch_init): gdbarch_register_bytes is now set
3788 dynamicaly during initialization.
3789 * regformats/reg-x86-64.dat: Synced with changes to registers above.
3790 * gdbserver/linux-x86-64-low.c: Ditto.
3792 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3794 * gdbserver/server.c (main): Call target_signal_to_host_p
3795 and target_signal_to_host on signals received from the remote.
3796 * gdbserver/remote-utils.c (prepare_resume_reply): Call
3797 target_signal_from_host on signals sent to the remote.
3798 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3799 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3801 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3803 * signals/signals.c: Include "server.h" in gdbserver build.
3804 (target_signal_from_name): Don't use STREQ.
3805 (_initialize_signals): Likewise. Don't include function in
3808 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3810 * signals.c: Moved to...
3811 * signals/signals.c: Here.
3812 * Makefile (signals.o): Update.
3814 2002-03-26 Jeff Law (law@redhat.com)
3816 * somread.c (som_symtab_read): Remove some commented out code and
3817 updated related comments. Do not set the minimal symbol table to
3818 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3819 in a dynamic executable.
3820 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3821 where we are unable to find the minimal symbol for the given
3824 2002-03-25 Jeff Law (law@redhat.com)
3826 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3828 2002-03-25 Michal Ludvig <mludvig@suse.cz>
3830 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3832 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3834 * command.h: Update copyright.
3835 (struct cmd_list_element): Replace definition with opaque
3837 (enum cmd_types): Document that it will eventually be moved to
3839 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3840 (MALLOCED_REPLACEMENT): Delete macro.
3841 * Makefile.in (cli_decode_h): Add $(command_h).
3842 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
3843 * top.c: Include "cli/cli-decode.h".
3844 * completer.c: Include "cli/cli-decode.h".
3845 * maint.c: Include "cli/cli-decode.h".
3846 * cli/cli-decode.h: Include "command.h".
3847 (enum command_class): Delete.
3848 (enum cmd_types): Comment out.
3849 (enum cmd_auto_boolean): Delete.
3850 (enum var_types): Delete.
3852 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3854 * cli/cli-decode.c: Include "gdb_assert.h".
3855 (add_set_or_show_cmd): New static function.
3856 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3857 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3858 all fields, such as func, from the set command.
3860 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3862 * MAINTAINERS (sh-elf): Change warning flag to -w.
3864 2002-03-23 Andrew Cagney <cagney@redhat.com>
3866 * defs.h (error): Add printf format attribute.
3867 * thread-db.c (thread_from_lwp): Fix error format string.
3868 * stack.c (parse_frame_specification): Ditto.
3869 * cli/cli-decode.c (undef_cmd_error): Ditto.
3870 * scm-lang.c (scm_lookup_name): Ditto.
3871 * tracepoint.c (trace_error): Ditto.
3872 * remote-utils.c (usage): Ditto.
3873 * remote.c (compare_sections_command): Ditto.
3876 2002-03-22 Andrew Cagney <ac131313@redhat.com>
3878 * gdbtypes.c (append_composite_type_field): New function.
3879 (init_composite_type): New function.
3880 * gdbtypes.h (append_composite_type_field): Declare.
3881 (init_composite_type): Ditto.
3883 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
3885 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
3887 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3888 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3889 structure returning convention for SYSV ABI case, but not
3890 for GNU/Linux, FreeBSD, or NetBSD.
3892 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
3894 * symtab.h (lookup_block_symbol): Add mangled_name argument
3897 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3898 with new mangled_name argument.
3899 * linespec.c (decode_line_1): Likewise.
3900 * valops (value_of_this): Likewise.
3901 * symtab.c (lookup_transparent_type): Likewise.
3902 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3903 (lookup_symbol): If we are given a mangled name, pass it down
3904 to lookup_symbol_aux.
3905 (lookup_block_symbol): If we are given a mangled name to check
3906 against, only return symbols which match it.
3908 2002-03-22 Christopher Faylor <cgf@redhat.com>
3910 * win32-nat.c (child_create_inferior): Check for proper shell to use
3911 here, in case the user changes it on the fly.
3912 (_initialize_inftarg): Remove shell path considerations.
3914 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
3916 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3917 for gdbarch_max_register_raw_size and max_register_virtual_size.
3918 Adjust copyright year.
3920 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
3922 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3923 in a function to cover the entire beginning of the function
3924 as well if it does not already.
3926 2002-03-21 Tom Rix <trix@redhat.com>
3928 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3929 (rs6000_ptrace64): Renamed from ptrace64.
3931 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3933 * gdbserver/remote-utils.c (remote_open): Don't call
3934 getprotobyname, we're all using TCP here so just use
3936 * gdbserver/gdbreplay.c (remote_open): Ditto.
3938 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3940 * regcache.c (_initialize_regcache): No need to call
3941 build_regcache() at this time; it gets called whenever
3942 the gdbarch changes.
3944 2002-03-20 David O'Brien <obrien@FreeBSD.org>
3946 * sparc-nat.c: Include sys/param.h where possible.
3948 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3951 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3952 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3953 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3955 * stabsread.c (rs6000_builtin_type): Likewise.
3956 (read_sun_floating_type): Likewise.
3958 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3960 * stabsread.c (read_member_functions): Remove skip code for duplicate
3961 constructor/destructor methods. Use standard parsing for these
3962 methods and just do not chain them to the list of methods after
3965 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
3967 * coffread.c: Remove redundant static declarations. Replace
3968 occurrences of `PTR' with `void *'.
3969 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3970 * top.h (quit_cover): Likewise.
3971 * defs.h (catch_errors): Likewise.
3973 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3975 * defs.h (XMALLOC): Define.
3976 * gdb-events.sh (XMALLOC): Delete macro.
3977 * gdb-events.c, gdb-events.h: Regenerate.
3978 * gdbarch.sh (XMALLOC): Delete macro.
3979 * gdbarch.c: Regenerate.
3980 * serial.c (XMALLOC): Delete macro.
3981 * ui-file.c (XMALLOC): Ditto.
3982 * ser-unix.h (XMALLOC): Ditto.
3983 * sh-tdep.c (XMALLOC): Ditto.
3984 * ui-out.c (XMALLOC): Ditto.
3985 * utils.c (XMALLOC): Ditto.
3986 * i386-tdep.c (XMALLOC): Ditto.
3987 * gdb-events.c (XMALLOC): Ditto.
3988 * d10v-tdep.c (XMALLOC): Ditto.
3989 * cli-out.c (XMALLOC): Ditto.
3991 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3992 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3993 * ui-file.c, ui-out.c: Ditto.
3995 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3997 * command.h (struct cmd_list_element): Add field context.
3998 (set_cmd_context, get_cmd_context): Declare.
3999 * cli/cli-decode.h: Ditto.
4000 * cli/cli-decode.c (get_cmd_context): New function.
4001 (set_cmd_context): New function.
4002 (add_cmd): Initialize context.
4003 Part of fixing PR gdb/145 and PR gdb/146.
4005 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4007 * cli/cli-decode.c (cmd_type): New function.
4008 * command.h (cmd_type): Declare.
4009 * infrun.c (set_schedlock_func): Call function cmd_type.
4010 * kod.c (kod_set_os): Call cmd_type.
4011 * cris-tdep.c (cris_version_update): Use function cmd_type.
4012 (cris_mode_update, cris_abi_update): Ditto.
4014 * command.h: (execute_cmd_post_hook): Declare.
4015 (execute_cmd_pre_hook): Declare.
4016 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4017 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4018 functions. Execute pre/post hook while ensuring that afterwords
4020 * top.c (execute_command): Use execute_cmd_post_hook, and
4021 execute_cmd_pre_hook to execute pre/post commands.
4022 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4024 (hook_stop_stub): Call execute_cmd_pre_hook.
4026 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4028 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4029 set'' and this leads to a core dump. Move xstrdup of
4030 operating_system to after check that it is not NULL.
4032 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4034 * kod.c (kod_set_os): Remove unnecessary check that
4035 ``command->type'' is set_cmd.
4037 * valprint.c (set_input_radix): Use input_radix.
4038 (set_output_radix): Use output_radix.
4039 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4042 2002-03-16 Andrew Cagney <ac131313@redhat.com>
4044 * value.h (struct value): Delete field ``substring_addr''. Change
4045 aligner fields to force_doublest_align, force_longest_align,
4046 force_core_addr_align and force_pointer_aligh.
4048 * value.h (struct value): Fix typo in above change.
4050 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4052 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4053 to fix internal_error from ``maintenance print architecture''.
4055 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4057 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4058 for gcc versions after gcc-2.8.1.
4060 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4062 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4063 for method resolution. Restore adjustment of ``this'' pointer after
4064 calling value_struct_elt, which was accidentally removed during the
4067 2002-03-15 Andrew Cagney <ac131313@redhat.com>
4069 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4071 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4073 * value.h (value_of_register): Update.
4075 2002-03-14 Richard Henderson <rth@redhat.com>
4077 * configure.in: Detect declaration for canonicalize_file_name.
4078 * utils.c (canonicalize_file_name): Declare, if needed.
4079 (gdb_realpath): Prefer realpath if available and usable.
4080 * config.in, configure: Rebuild.
4082 2002-03-14 Richard Henderson <rth@redhat.com>
4084 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4085 a constant array bound.
4087 * MAINTAINERS: Add myself to write-after-approval.
4089 2002-03-14 Michael Snyder <msnyder@redhat.com>
4091 * symfile.c (syms_from_objfile): Return immediately if no syms.
4092 (symbol_file_add): Return immediately if no syms.
4093 (find_sym_fns): Return immediately if no syms.
4095 2002-03-13 Michal Ludvig <mludvig@suse.cz>
4097 * gdbserver/remote-util.c (remote_open): Print remote-side's
4098 IP address when remote debugging over the network.
4100 2002-03-12 David O'Brien <obrien@FreeBSD.org>
4102 * config/sparc/fbsd.mh: Fix copyright.
4103 * config/sparc/fbsd.mt: Likewise.
4105 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
4107 * MAINTAINERS: Fix typo in name of gdb warnings option.
4108 (x86-64): Fix formating so that this can be parsed by awk.
4110 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4112 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4113 * defs.h: Include "gdb/signals.h".
4114 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4116 2002-03-10 Michal Ludvig <mludvig@suse.cz>
4118 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4119 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4122 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4123 Don Howard <dhoward@redhat.com>
4125 * mips-tdep.c (ST0_FR): Define.
4126 (mips2_fp_compat): New function, temporarily disabled.
4127 (mips_read_fp_register_single): New function.
4128 (mips_read_fp_register_double): New function.
4129 (mips_print_register): Use them.
4130 (do_fp_register_row): Likewise.
4132 2002-03-09 Andrew Cagney <ac131313@redhat.com>
4134 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4137 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4139 * stabsread.c (read_member_functions): Fix is_stub test for
4140 static member functions, improve comment.
4142 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4144 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4145 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4146 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4147 commands that set boolean values.
4148 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4149 (arm_rdi_resume): Always initialize PC.
4150 (arm_rdi_open): Don't use rslt as a boolean.
4151 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4152 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4153 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4154 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4156 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
4158 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4159 * configure: Rebuilt.
4161 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4163 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4164 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4166 2002-03-06 Andrew Cagney <ac131313@redhat.com>
4168 * cli/cli-decode.c (set_cmd_completer): New function.
4169 * command.h (set_cmd_completer): Declare.
4170 * cli/cli-decode.h (set_cmd_completer): Ditto.
4172 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4173 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4174 * win32-nat.c (_initialize_inftarg): Ditto.
4175 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4176 * proc-api.c (_initialize_proc_api): Ditto.
4177 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4178 * source.c (_initialize_source): Ditto.
4179 * exec.c (_initialize_exec): Ditto.
4180 * solib.c (_initialize_solib): Ditto.
4181 * top.c (init_main): Ditto.
4182 * tracepoint.c (_initialize_tracepoint): Ditto.
4183 * symfile.c (_initialize_symfile): Ditto.
4184 * printcmd.c (_initialize_printcmd): Ditto.
4185 * infcmd.c (_initialize_infcmd): Ditto.
4186 * corefile.c (_initialize_core): Ditto.
4188 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4190 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4192 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4194 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4196 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4198 * NEWS: Update headings, 5.2 has branched.
4200 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
4202 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4203 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4204 (register_addr, REGISTER_RAW_SIZE): Likewise.
4205 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4206 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4208 2002-03-03 Michal Ludvig <mludvig@suse.cz>
4210 * MAINTAINERS (x86-64): Add myself.
4211 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4212 changed value_ptr -> struct value *
4214 2002-03-01 David O'Brien <obrien@FreeBSD.org>
4216 * configure.host (sparc64-*-freebsd): Add.
4217 * configure.tgt: Likewise.
4218 * config/sparc/fbsd.mh: New file.
4219 * config/sparc/fbsd.mt: Likewise.
4220 * config/sparc/nm-fbsd.h: Likewise.
4221 * config/sparc/tm-fbsd.h: Likewise.
4223 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
4225 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4226 regformats/reg-s390x.dat.
4228 2002-03-01 Andrew Cagney <ac131313@redhat.com>
4230 * utils.c: Add FIXME explaining true/false problem.
4232 2002-02-28 Andrew Cagney <ac131313@redhat.com>
4234 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4236 2002-02-28 Michael Chastain <mec@shout.net>
4238 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4240 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
4242 * gdbserver/linux-s390-low.c: New file.
4243 * regformats/reg-s390.dat: New file.
4244 * regformats/reg-s390x.dat: New file.
4245 * gdbserver/configure.srv: Add S/390.
4246 * gdbserver/Makefile.in: Add S/390.
4247 * configure.tgt: Enable gdbserver for S/390.
4249 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4251 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4252 first line of the doc string for "info dos", except at the end of
4253 the sentence, since the short help stops at the first period.
4255 2002-02-28 Jason Merrill <jason@redhat.com>
4257 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4259 2002-02-27 Fred Fish <fnf@redhat.com>
4261 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4262 comment (dumy -> dummy).
4264 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4266 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4268 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
4270 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4272 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4274 * gdbserver/acconfig.h: New file.
4275 * gdbserver/i387-fp.c: New file.
4276 * gdbserver/i387-fp.h: New file.
4277 * gdbserver/linux-x86-64.c: New file.
4278 * regformats/reg-x86-64.dat: New file.
4279 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4280 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4281 * gdbserver/configure.in: Add support for regsets.
4282 * gdbserver/config.in: Regenerate.
4283 * gdbserver/configure: Regenerate.
4284 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4285 * gdbserver/linux-low.h: New file.
4286 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4288 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4289 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4290 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4291 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4292 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4293 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4294 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4295 "i387-fp.h". Add PTRACE_GETREGS and friends.
4296 * gdbserver/regcache.c (supply_register): New function.
4297 (supply_register_by_name): New function.
4298 (collect_register): New function.
4299 (collect_register_by_name): New function.
4301 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4303 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4304 (config.status): Add configure.srv dependency.
4305 (server_h): Add config.h dependency.
4307 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4309 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4310 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4311 * gdbserver/configure.srv: Change i386-*-linux* to use
4314 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4316 * x86-64-tdep.c: Re-indent. Update copyright date.
4318 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4320 From Michal Ludvig <mludvig@suse.cz>:
4321 * x86-64-tdep.c (value.h): Delete.
4322 (gdb_assert.h): Include.
4323 (x86_64_register_convert_to_virtual,
4324 x86_64_register_convert_to_raw ): Add check which lets only
4325 floating-point values to be converted.
4326 (value_push): Delete.
4327 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4328 (i386_gdbarch_init): Number of register_bytes fixed.
4330 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4332 * MAINTAINERS: Add x86-64 target.
4334 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4336 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4337 * osfsolib.c (solib_map_sections): Ditto.
4338 * irix5-nat.c (solib_map_sections): Ditto.
4339 * corelow.c (gdb_check_format): Ditto.
4340 * symfile.c (symfile_bfd_open): Ditto.
4341 * solib.c (solib_map_sections): Ditto.
4344 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4346 * remote.c (_initialize_remote): By default, disable ``e'' and
4347 ``E'' step out-of-range packets.
4349 2002-02-26 Andreas Schwab <schwab@suse.de>
4351 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4352 m68k_linux_frame_saved_pc.
4353 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4355 (SIGCONTEXT_PC_OFFSET): Remove.
4356 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4357 m68k_linux_sigtramp_saved_pc): New functions.
4358 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4359 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4360 (UCONTEXT_PC_OFFSET): Define.
4361 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4362 non-RT and RT signal trampolines.
4364 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
4366 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4367 (TARGET_NBPG, STACK_END_ADDR): Delete
4368 (VARIABLES_INSIDE_BLOCK): Delete.
4370 2002-02-25 Andrew Cagney <ac131313@redhat.com>
4372 * utils.c (perror_with_name): Make string parameter constant.
4373 (print_sys_errmsg): Ditto.
4375 * defs.h (perror_with_name): Update.
4376 (print_sys_errmsg): Update.
4379 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
4381 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4382 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4384 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4386 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4387 if it already matches the current architecture from the exec file.
4388 Include arch-utils.h for gdbarch_info_init prototype.
4389 * Makefile.in (rs6000-nat.o): Update dependencies.
4391 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4393 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4394 list of exported variables.
4396 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
4398 * gdbserver/configure.srv: New file.
4399 * gdbserver/configure.in: Use configure.srv instead
4400 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4402 * gdbserver/configure: Regenerated.
4403 * gdbserver/terminal.h: New file.
4404 * gdbserver/Makefile.in: Update for configure changes. Remove
4405 more unneeded include paths.
4407 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4409 From wiz at danbala:
4410 * config/sparc/tm-sp64.h: Fix grammar and typos.
4413 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4415 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
4416 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4417 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4418 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
4419 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4420 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4421 * s390-tdep.c: Ditto.
4422 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4423 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4424 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4425 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4426 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4427 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4428 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4429 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4430 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4431 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
4434 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4436 * lin-thread.c: Delete file.
4437 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4438 to gdb_proc_service.h.
4439 * configure: Re-generate.
4441 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4442 * serial.c (serial_open): Delete check for "ocd".
4445 * Makefile.in (linux-thread.o): Delete target.
4446 * linux-thread.c: Delete file.
4448 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4449 renamed SH files to be consistent.
4451 * symtab.c (sort_search_symbols): Use xfree.
4453 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4455 * arm-linux-tdep.c (arm_linux_init_abi): Register
4456 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4457 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4458 definition with undef, since we don't want the sysvr4 definition.
4459 (SKIP_TRAMPOLINE_CODE): Likewise.
4461 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4463 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4465 * configure.in: (AC_CHECK_FUNCS) Added test for
4466 canonicalize_file_name Regenerated.
4467 * config.in, configure: Regenerated.
4468 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4469 defined use canonicalize_file_name.
4471 2002-02-23 Michael Chastain <mec@shout.net>
4473 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4475 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4477 * README: Remove references to cygnus.com.
4478 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4479 dot com'' form. Remove references to cygnus.com and sourceware.
4481 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4483 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4484 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4485 1003.1-2001 no longer allows "head -1".
4486 * gdb/Makefile.in (version.c): Likewise.
4487 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4488 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4489 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4491 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4493 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4494 * command.h (cmd_cfunc_eq): Declare.
4495 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4497 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4498 ``struct cmd_list_element *''.
4499 * cli/cli-cmds.c (is_complete_command): Update. Use
4501 * top.c (execute_command): Pass the command to
4502 is_complete_command.
4503 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4505 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4507 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4508 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4509 architecture defines.
4510 * s390-tdep.c (s390_gdbarch_init): Likewise.
4512 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4514 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4515 (arm_linux_push_arguments): Likewise.
4516 (arm_linux_init_abi): Register them. Also register linux-specific
4518 (find_minsym_and_objfile): Use strcmp, not STREQ.
4519 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4520 (arm_linux_call_dummy_words): Delete declaration.
4521 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4522 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4524 (LOWEST_PC): Delete.
4526 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4528 * maint.c (print_section_info): Do not prepend `0x' to filepos
4529 output, it will be handled by local_hex_string_custom.
4531 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4533 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4534 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4535 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4537 2002-02-22 Jim Blandy <jimb@redhat.com>
4539 Indicate that the bcache functions don't change the strings
4541 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4542 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4544 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4546 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4548 2002-02-21 Christopher Faylor <cgf@redhat.com>
4550 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4551 find the complete path to a loaded DLL.
4553 2002-02-21 Fred Fish <fnf@redhat.com>
4555 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4556 that marks the end of the range of a function, enter a line number
4557 entry that has a line number of zero and a PC offset that matches
4558 the end of the function. This starts a range of PC's for which no
4559 line number information is known.
4560 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4561 PC's for which no line number info is found (line number is zero)
4562 then we didn't find any valid line information.
4563 * symtab.h: Document use of zero line number entry.
4565 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
4567 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4568 (have_ptrace_getvrregs): Define for run time checks.
4569 (gdb_vrregset_t): New type for Altivec register handling.
4570 (fetch_register, store_register): Fetch/store altivec register
4572 (fetch_altivec_register, store_altivec_register): New functions.
4573 (supply_vrregset, fill_vrregset): New functions.
4574 (fetch_altivec_registers, store_altivec_registers): New functions.
4575 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4578 2002-02-21 Jiri Smid <smid@suse.cz>
4580 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4582 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4584 * Makefile.in (armnbsd-nat.o): Update dependencies.
4585 * armnbsd-nat.c (supply_gregset): New function. Common code to
4586 supply the integer register set.
4587 (supply_fparegset): New function. Similar for FPA registers.
4588 (fetch_regs, fetch_fp_regs): Use them.
4589 (fetch_core_registers): Likewise.
4590 (fetch_elfcore_registers): New function.
4591 (arm_netbsd_elfcore_fns): New core-file type specification.
4592 (_initialize_arm_netbsd_nat): Register it.
4594 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4596 * armnbsd-nat.c: Include gdbcore.h.
4597 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4598 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4599 'void' to declaration, to shut up ARI.
4600 (fetch_core_registers): Make static. Rewrite using supply_register.
4601 (arm_netbsd_core_fns): New core-file type specification.
4602 (_initialize_arm_netbsd_nat): New function.
4604 2002-02-21 Christopher Faylor <cgf@redhat.com>
4606 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4609 2002-02-20 Christopher Faylor <cgf@redhat.com>
4611 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4614 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4616 * jv-exp.y (parse_number): Change type of implicit longs
4617 to builtin_type_uint64.
4619 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4621 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4622 to be an integer instead of a `union wait'.
4624 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4626 * mips-linux-nat.c: Call the operating system GNU/Linux.
4627 * mips-linux-tdep.c: Likewise.
4628 * mips-tdep.c: Likewise.
4630 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4633 * jv-exp.y (parse_number): Handle 64-bit integers.
4635 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4637 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4638 AC_STDC_HEADERS to AC_HEADER_STDC.
4639 * gdbserver/configure: Regenerated.
4641 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4643 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4645 * sparc-tdep.c (get_longjmp_target): Likewise.
4647 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4649 * News: Add news about ARM and Multi-arch. Mention the new target
4652 2002-02-19 Jim Blandy <jimb@redhat.com>
4654 * stabsread.c (error_type_complaint): Improve error message.
4656 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
4658 * gdbserver/README: Update documentation.
4659 * gdbserver/configure.in: Update configury to match documentation.
4660 * gdbserver/Makefile.in: Likewise.
4661 * gdbserver/configure: Regenerated.
4662 * gdbserver/aclocal.m4: New file, generated by aclocal.
4663 * gdbserver/config.in: New file, generated by autoheader.
4665 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4667 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4670 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4672 * arm-tdep.h (enum arm_float_model): New enum.
4673 (struct gdbarch_tdep): Add fp_model.
4674 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4675 up floating-point conversions until we know the floating-point model
4676 in use by the inferior. Don't complain about being unable to
4677 determine the ABI of the inferior when we don't have one.
4678 (arm_extract_return_value): Support different floating-point models.
4679 (arm_store_return_value): Likewise.
4680 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
4682 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4684 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4686 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4687 of ``current_gdbarch''.
4689 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4691 * armnbsd-nat.c : ANSIfy all function declarations.
4692 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4693 (fetch_inferior_registers): Re-implement in terms of above.
4694 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4695 (store_inferior_registers): Re-implement in terms of above.
4697 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4699 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
4701 * arm-linux-tdep.c: Likewise.
4702 * config/arm/tm-linux.h: Likewise.
4704 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4706 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4707 * config/arm/nbsd.mt (TM_FILE): Delete.
4708 * config/arm/tm-nbsd.h: Delete.
4710 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4712 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4713 Initialize CALL_DUMMY_LENGTH.
4715 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
4717 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4719 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
4720 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
4721 defines one thing and that is incorrect for this port.
4722 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4724 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4726 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4728 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4730 * win32-nat.c (display_selector): New function. Displays information
4731 about the information returned by GetThreadSelectorEntry API function.
4732 (display_selectors): New function. Displays the infomation of
4733 the selector given as argument, or of CS, DS ans FS selectors
4734 if no argument is given.
4735 ( _initialize_inftarg): Add "w32" as info prefix command.
4736 Add "info w32 selector" as command calling display_selectors.
4738 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
4740 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4741 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
4744 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4746 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
4748 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4750 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
4751 (arm_fix_call_dummy): Call it.
4752 (arm_call_dummy_breakpoint_offset): Delete.
4753 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
4754 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4756 2002-02-18 Andrew Cagney <ac131313@redhat.com>
4758 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
4759 Default to func_frame_chain_valid.
4760 * gdbarch.h, gdbarch.c: Re-generate.
4761 * frame.h (FRAME_CHAIN_VALID): Delete definition.
4763 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
4765 * ppc-linux-nat.c: Update copyright.
4766 (fetch_register, store_register): Add tid parameter, don't compute
4768 (fetch_ppc_registers, store_ppc_registers): Add tid
4769 parameter. Pass it along to callees.
4770 (fetch_inferior_registers, store_inferior_registers): Compute tid
4771 here, and pass it to calleed functions.
4772 (fill_gregset, supply_fpregset): Clean up formatting.
4774 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4776 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
4777 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
4779 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4781 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
4782 * gdbarch.c gdbarch.h: Regenerate.
4783 * breakpoint.c (create_longjmp_breakpoint): Always compile this
4785 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
4786 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
4787 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
4789 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
4790 * arm-tdep.c (arm_get_longjmp_target): New function.
4791 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
4792 this to a positive value register arm_get_longjmp_target as the
4794 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
4795 (arm_linux_init_abi): Set up longjmp description in tdep.
4796 * armnbsd-nat.c (get_longjmp_target): Delete.
4797 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4798 description in tdep.
4799 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4800 (get_longjmp_target): Delete declaration.
4801 (GET_LONGJMP_TARGET): Delete.
4802 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4803 (GET_LONGJMP_TARGET): Delete.
4805 2002-02-17 Kevin Buettner <kevinb@redhat.com>
4807 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4808 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4809 of ``current_gdbarch''.
4811 2002-02-17 Tom Tromey <tromey@redhat.com>
4813 * cli/cli-cmds.c (compare_strings): New function.
4814 (complete_command): Only print each unique item once.
4815 * completer.h (complete_line): Declare.
4816 * completer.c (complete_line): New function.
4817 (line_completion_function): Use it.
4819 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4821 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4822 * gdbarch.h, gdbarch.c: Re-generate.
4824 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4826 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4828 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4830 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4831 * valops.c (value_arg_coerce): Don't take the address of a reference
4832 to convert an argument to a reference.
4834 2002-02-15 Christopher Faylor <cgf@redhat.com>
4836 * win32-nat.c (get_image_name): New function.
4837 (handle_load_dll): Use get_image_name function.
4838 (get_child_debug_event): Avoid registering debug events until possibly
4839 execed process is started.
4840 (child_create_inferior): Allow invocation via shell so that command
4841 line redirection, etc. works ok.
4842 (_initialize_inftarg): Add new command: "set shell" to control whether
4843 a shell is used to start a process.
4845 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4847 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4848 instead of find_register_by_number.
4849 (cannot_store_register): Likewise.
4851 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4853 * dwarf2read.c: Replace fprintf (stderr, ...) by
4854 fprintf_unfiltered (gdb_stderr, ...).
4856 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4858 * gdbserver/gdbserver.1: Document --attach.
4860 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4862 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4864 * arm-tdep.c (arm_default_arm_le_breakpoint)
4865 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4866 (arm_default_thumb_be_breakpoint): New. Initialize them from
4867 traditional breakpoint defines.
4868 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4869 (arm_gdbarch_init): Initialize new breakpoint variables.
4870 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4871 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4872 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4873 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4875 (arm_netbsd_init_abi_common): ... here; new function.
4876 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4877 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4878 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4879 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4881 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4883 * arm-tdep.h (enum arm_abi): New enum.
4884 (struct gdbarch_tdep): New structure.
4885 (LOWEST_PC): Provide a default.
4886 (arm_gdbarch_register_os_abi): Declare new function.
4887 * arm-tdep.c (arm_abi_names): New array.
4888 (process_note_abi_tag_sections): New function.
4889 (get_elfosabi): New function.
4890 (arm_gdbarch_register_os_abi): New function.
4891 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4892 support for that ABI has been built in, then call the appropriate
4893 configuration routine. Use gdbarch_num_regs() to get the number
4895 (arm_dump_tdep): New function.
4896 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4897 place-holder functions.
4898 (_initialize_arm_tdep): Register them.
4899 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4901 * armnbsd-tdep.c: New file.
4902 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4903 * config/arm/nbsd.mt (TDEPFILES): Add it.
4904 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4906 * armnbsd-nat.c: Include regcache.h.
4907 * Makefile.in (armnbsd-nat.o): Update dependency list.
4909 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4911 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4913 * gdbserver/Makefile.in: Fix typos in target rules.
4915 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4917 Fix part of PR gdb/267.
4918 * linespec.c (find_methods): Handle constructors specially for now.
4920 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
4922 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4924 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4925 standard_coerce_float_to_double().
4927 2002-02-14 Christopher Faylor <cgf@redhat.com>
4929 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4932 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
4934 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4935 find_variant_by_name, because it confuses the multiarch
4936 framework. Return NULL if there isn't an architecture with the
4937 user supplied name, instead of forcing a different one without
4938 recording the change with the multiarch machinery.
4939 (find_variant_by_name): Delete.
4941 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4943 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4944 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4946 2002-02-13 Martin M. Hunt <hunt@redhat.com>
4948 * stack.c (print_frame_info_base): When calling
4949 print_frame_info_listing_hook, set current_source_symtab.
4951 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4953 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4954 and remove unused $(INCLUDE_DIR).
4955 Add regcache.c to OBS.
4956 Add generated register protocol files to clean target.
4957 Update dependencies for new objects, obsolete old target code.
4959 * gdbserver/linux-low.c: Remove all platform-specific code to
4960 new files. Remove various dead code. Update to use regcache
4962 * gdbserver/remote-utils.c (fromhex): Add return statement
4964 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4966 (input_interrupt): Add integer parameter to match prototype
4967 of a signal handler.
4968 (outreg): Use register_data ().
4969 (prepare_resume_reply): Use gdbserver_expedite_regs.
4970 * gdbserver/server.c (main): Dynamically allocate own_buf because
4971 PBUFSIZ is no longer constant. Use registers_to_string () and
4972 registers_from_string ().
4973 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4974 for error (), fatal (), and warning (). Update definition of
4975 PBUFSIZ to use regcache functionality. Add include guard.
4976 * gdbserver/utils.c (fatal): Add missing ``const''.
4977 (warning): New function.
4979 * regformats/regdat.sh: Include "regcache.h" in generated files.
4980 Provide init_registers () function.
4981 * regformats/regdef.h: Add prototype for set_register_cache ().
4984 * gdbserver/linux-arm-low.c: New file.
4985 * gdbserver/linux-i386-low.c: New file.
4986 * gdbserver/linux-ia64-low.c: New file.
4987 * gdbserver/linux-m68k-low.c: New file.
4988 * gdbserver/linux-mips-low.c: New file.
4989 * gdbserver/linux-ppc-low.c: New file.
4990 * gdbserver/linux-sh-low.c: New file.
4992 * gdbserver/regcache.c: New file.
4993 * gdbserver/regcache.h: New file.
4995 * gdbserver/low-linux.c: Removed obsolete file.
4997 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4999 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5000 * config/i386/linux.mt: Likewise.
5001 * config/ia64/linux.mt: Likewise.
5002 * config/m68k/linux.mh: Likewise.
5003 * config/powerpc/linux.mh: Likewise.
5004 * config/mips/linux.mt: Likewise.
5006 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5008 * config/i386/i386lynx.mh: Mark gdbserver variables
5009 as (currently) obsolete for this target.
5010 * config/i386/nbsd.mt: Likewise.
5011 * config/i386/nbsdelf.mt: Likewise.
5012 * config/m32r/m32r.mt: Likewise.
5013 * config/m68k/m68klynx.mh: Likewise.
5014 * config/m68k/nbsd.mt: Likewise.
5015 * config/m68k/sun3os4.mh: Likewise.
5016 * config/mips/vr5000.mt: Likewise.
5017 * config/ns32k/nbsd.mt: Likewise.
5018 * config/pa/hppabsd.mh: Likewise.
5019 * config/pa/hppaosf.mh: Likewise.
5020 * config/powerpc/nbsd.mt: Likewise.
5021 * config/rs6000/rs6000lynx.mh: Likewise.
5022 * config/s390/s390.mt: Likewise.
5023 * config/s390/s390x.mt: Likewise.
5024 * config/sparc/sparclynx.mh: Likewise.
5025 * config/sparc/sun4os4.mh: Likewise.
5026 * config/i386/x86-64linux.mt: Likewise.
5027 * config/sparc/linux.mh: Likewise.
5029 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5031 * configure.tgt: Configure gdbserver only for known working
5032 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5033 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5034 SUBDIRS if it is configured. Update comment for ${nativefile}.
5035 * configure: Regenerated.
5037 2002-02-13 Michael Snyder <msnyder@redhat.com>
5039 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5041 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5042 (default_gcore_mach): Just return 0, work around a problem in bfd.
5043 (default_gcore_target): OK to return NULL if exec_bfd is null.
5044 (make_mem_sec): Use a cast, avoid a warning.
5046 * procfs.c (find_memory_regions_callback): Use a cast instead of
5047 calling host_pointer_to_address (which complains if
5048 sizeof (host pointer) != sizeof (target pointer)).
5049 (procfs_make_note_section): Avoid overflow in psargs string.
5051 * procfs.c (procfs_make_note_section): Make the default
5052 implementation return an error.
5054 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
5056 * procfs.c (procfs_make_note_section): Provide a default definition
5057 (for alpha-dec-osf4.0f). Fix typos.
5059 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
5061 * linux-proc.c: Add include of regcache.h.
5062 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5064 2002-02-13 Andrew Cagney <ac131313@redhat.com>
5066 From 2002-01-18 Greg McGary <greg@mcgary.org>:
5067 * memattr.c (create_mem_region): Disallow useless empty region.
5068 Regions are half-open intervals, so allow [A..B) [B..C) as
5071 2002-02-13 Michael Chastain <mec@shout.net>
5073 * defs.h: Kill CONST_PTR.
5074 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5075 * c-lang.c (c_builtin_types): Likewise.
5076 * ch-lang.c (ch_builtin_types): Likewise.
5077 * f-lang.c (f_builtin_types): Likewise.
5078 * language.c (unknown_builtin_types): Likewise.
5079 * m2-lang.c (m2_builtin_types): Likewise.
5080 * p-lang.c (pascal_builtin_types): Likewise.
5081 * scm-lang.c (c_builtin_types): Likewise.
5083 2002-02-13 Keith Seitz <keiths@redhat.com>
5085 * arm-tdep.h (arm_get_next_pc): Add declaration.
5087 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
5089 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5090 with other related struct-returning functions.
5091 (arm_extract_struct_value_address): New function.
5092 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5093 initialize float_format, double_format and long_double_format as
5094 appropriate to the endianness of the target.
5095 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5096 (arm_use_struct_convention): Delete declaration.
5097 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5099 2002-02-13 Keith Seitz <keiths@redhat.com>
5101 * defs.h (core_addr_to_string_nz): New function.
5103 2002-02-13 Mark Kettenis <kettenis@gnu.org>
5105 Apply missing bits of 2002-01-15 patch.
5106 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5107 (fill_fpregset): Use i387_fill_fsave.
5109 2002-02-12 Keith Seitz <keiths@redhat.com>
5111 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5112 (core_addr_to_string_nz): New function.
5114 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5116 * arm-linux-nat.c: Really include arm-tdep.h.
5117 * config/arm/tm-linux.h (struct type, struct value): Declare.
5119 2002-02-11 Michael Snyder <msnyder@redhat.com>
5121 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5122 (gcore section): Ifdef for Solaris and Unixware only.
5123 (procfs_do_thread_registers): Unixware needs one lwpstatus
5124 per thread (not one prstatus or pstatus).
5125 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5126 not over all gdb threads. For unixware, call elfcore_write_pstatus
5127 once before iterating over threads.
5129 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5131 * arm-tdep.h: New file.
5132 * arm-tdep.c: Include arm-tdep.h.
5133 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5134 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5135 (arm_print_float_info, arm_register_type, convert_to_extended)
5136 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5137 (arm_extract_return_value, arm_register_name): Make static.
5138 (arm_software_single_step): Similarly. Fix types in declaration.
5139 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5140 (arm_store_return_value, arm_store_struct_return): New functions.
5141 (arm_gdbarch_init): Register the above functions. Also register
5142 call_dummy_start_offset, sizeof_call_dummy_words,
5143 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5144 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5145 max_register_virtual_size, register_size. Set up
5146 prologue_cache.saved_regs here, rather than ...
5147 (_initialize_arm_tdep): ... here.
5148 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5150 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5151 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5152 (arm_print_float_info, arm_register_type, convert_to_extended)
5153 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5154 (arm_extract_return_value, arm_register_name): Delete declarations.
5155 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5156 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5157 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5158 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5159 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5160 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5161 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5162 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5163 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5164 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5165 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5166 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5168 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5169 * remote-rdi.c remote-rdp.c: Likewise.
5170 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5171 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5172 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5175 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5176 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5177 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5178 from non-ARM_ prefixed definitions.
5179 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5181 * remote-rdi.c remote-rdp.c: Likewise.
5182 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5184 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5186 * arm-tdep.c (arm_frameless_function_invocation)
5187 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5188 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5189 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5190 (arm_pop_frame, arm_get_next_pc): Make static.
5191 (arm_gdbarch_init): Register above in gdbarch structure.
5192 (arm_read_fp): Renamed from arm_target_read_fp.
5193 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5194 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5195 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5196 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5197 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5198 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5199 (arm_pc_is_thumb_dummy): Delete declarations.
5200 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5201 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5202 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5203 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5205 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
5207 * symtab.c (compare_search_syms): New function.
5208 (sort_search_symbols): New function.
5209 (search_symbols): Sort symbols after searching rather than
5212 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5214 * NEWS: Linux -> GNU/Linux.
5216 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5218 * gdbarch.sh: For for level one methods, disallow a definition
5219 when partially multi-arched. Add comments explaining rationale.
5220 * gdbarch.h: Re-generate.
5222 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5224 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5227 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5229 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5231 * gdbarch.c: Re-generate.
5233 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5235 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5236 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5239 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5241 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5243 (PUSH_ARGUMENTS): Switch to using predefault.
5244 * gdbarch.c: Regenerate.
5246 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5248 * valops.c (PUSH_ARGUMENTS): Delete definition.
5249 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5250 partial. Default to default_push_arguments.
5251 * gdbarch.h, gdbarch.c: Regenerate.
5253 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5255 * defs.h (throw_exception): Rename return_to_top_level. Update
5257 * utils.c (error_stream, internal_verror, quit): Ditto.
5258 * top.c (throw_exception, catcher): Ditto.
5259 * sparclet-rom.c (sparclet_load): Ditto.
5260 * remote.c (interrupt_query, minitelnet): Ditto.
5261 * remote-sds.c (interrupt_query): Ditto.
5262 * remote-mips.c (mips_error, mips_kill): Ditto.
5263 * ocd.c (interrupt_query): Ditto.
5264 * monitor.c (monitor_interrupt_query): Ditto.
5265 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5266 * target.h: Update comment.
5268 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5270 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5272 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5273 default_double_format.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * findvar.c (floatformat_unknown): Delete variable definition.
5276 * doublest.h (floatformat_unknown): Delete variable declaration.
5278 2002-02-09 Jim Blandy <jimb@redhat.com>
5280 * stabsread.c (read_type): Add code to parse Sun's syntax for
5281 prototyped function types.
5283 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5285 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5286 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5288 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5290 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5291 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5292 now _initialize_xcoffsolib gets called again and overrides the
5293 commands from solib.c in a native configuration.
5295 2002-02-09 Mark Kettenis <kettenis@gnu.org>
5297 * doublest.c (store_typed_floating): Don't try to return a value.
5300 2002-02-08 Jim Blandy <jimb@redhat.com>
5302 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5303 is prototyped and has no arguments, print its argument list as
5306 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5308 * MAINTAINERS (write-after-approval): Add myself.
5309 (paper-trail): I've escaped!
5311 2002-02-08 Christopher Faylor <cgf@redhat.com>
5313 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5315 (_initialize_check_for_gdb_ini): Ditto.
5317 2002-02-08 Martin M. Hunt <hunt@redhat.com>
5319 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5320 xaprintf -> xasprintf.
5322 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5324 * win32-nat.c: Remove use of printf and sprintf functions.
5326 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
5328 * arm-tdep.c (arm_frame_chain_valid): Make static.
5329 (arm_push_arguments): Likewise.
5330 (arm_gdbarch_init): New function.
5331 (_initialize_arm_tdep): Call it.
5332 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5333 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5334 (FRAME_CHAIN_VALID): Delete.
5335 (arm_frame_chain_valid): Delete declaration.
5336 (PUSH_ARGUMENTS): Delete.
5337 (arm_push_arguments): Delete declaration.
5338 (CALL_DUMMY_P): Delete.
5340 2002-02-08 Andrew Cagney <ac131313@redhat.com>
5341 Corinna Vinschen <vinschen@redhat.com>
5343 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5344 on builtin float types.
5346 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5348 * utils.c: Include <curses.h> before "bfd.h".
5349 * tui/tui-hooks.c: Likewise.
5350 * tui/tui.c: Likewise.
5351 * tui/tuiCommand.c: Likewise.
5352 * tui/tuiData.c: Likewise.
5353 * tui/tuiDataWin.c: Likewise.
5354 * tui/tuiDisassem.c: Likewise.
5355 * tui/tuiGeneralWin.c: Likewise.
5356 * tui/tuiIO.c: Likewise.
5357 * tui/tuiLayout.c: Likewise.
5358 * tui/tuiRegs.c: Likewise.
5359 * tui/tuiSource.c: Likewise.
5360 * tui/tuiSourceWin.c: Likewise.
5361 * tui/tuiStack.c: Likewise.
5362 * tui/tuiWin.c: Likewise.
5364 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
5366 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5367 to include space for pseudoregs as well. Update loops accordingly.
5368 (sh_fp_frame_init_saved_regs): Ditto.
5369 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5371 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5373 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5374 Add Richard Earnshaw to Arm maintainers.
5376 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5378 * defs.h (warning_begin): Delete declaration.
5380 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5383 2002-02-07 Michael Snyder <msnyder@redhat.com>
5385 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5386 Logic bug, remove misplaced else.
5388 2002-02-07 Klee Dienes <klee@apple.com>
5390 * fork-inferior.c (fork_inferior): Add '!' to the list of
5391 characters that need to be quoted when building a string for the
5392 shell. Quote '!' specifically with a backslash, since CSH chokes
5393 when trying to evaluate "str!str".
5395 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5397 * rdi-share/host.h: Only provide a typedef for bool if it is not
5400 2002-02-04 Michael Snyder <msnyder@redhat.com>
5402 * breakpoint.h (enum bptype): Add new overlay event bp type.
5403 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5405 * breakpoint.c (create_internal_breakpoint): New function.
5406 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5407 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5408 (create_thread_event_breakpoint): Ditto.
5409 (create_solib_event_breakpoint): Ditto.
5410 (create_overlay_event_breakpoint): New function.
5411 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5412 (update_breakpoints_after_exec): Delete and re-initialize
5413 overlay event breakpoints after an exec. Add FIXME comment
5414 about longjmp breakpoint.
5415 (print_it_typical): Ignore overlay event breakpoints.
5416 (print_one_breakpoint): Ditto.
5418 (bpstat_what): Do not stop for overlay event breakpoints.
5419 (delete_breakpoint): Don't delete overlay event breakpoints.
5420 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5421 (breakpoint_re_set): Re-create overlay event breakpoint.
5423 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5424 (overlay_manual_command): Disable overlay breakpoints.
5425 (overlay_off_command): Disable overlay breakpoints.
5427 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5429 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5430 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5431 to here from config/tm-arm.h.
5432 (coff_sym_is_thumb): Make static.
5433 (arm_elf_make_msymbol_special): New function.
5434 (arm_coff_make_msymbol_special): New function.
5435 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5436 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5437 (coff_sym_is_thumb): Delete declaration.
5438 (arm_elf_make_msymbol_special): Declare.
5439 (arm_coff_make_msymbol_special): Declare.
5440 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5441 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5443 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5445 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5447 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5449 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5450 * gdbarch.c gdbarch.h: Regenerate.
5451 * arch-utils.c (default_print_float_info): New function.
5452 * arch-utils.h (default_print_float_info): Prototype it.
5453 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5454 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5455 (PRINT_FLOAT_INFO): Document it.
5457 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5458 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5459 (PRINT_FLOAT_INFO): Define.
5461 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5463 * win32-nat.c (_initialize_check_for_gdb_ini):
5464 Add typecast to sprintf argument to suppress a warning.
5466 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5468 * win32-nat.c (last_sig): Changed type of variable to target_signal,
5469 to allow easier handling of pass state.
5470 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5471 that gives exception name and address.
5472 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
5473 and set last_sig value to ourstatus->value.sig. Some missing
5475 (child_continue): Correctly report continue_status.
5476 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
5477 TARGET_SIGNAL_0 (new default value).
5478 (child_resume): consider sig argument passed to decide if
5479 the exception should be passed to debuggee or not.
5481 2002-02-05 Michael Snyder <msnyder@redhat.com>
5483 * regcache.c (fetch_register): Call target_fetch_register
5484 only if we don't call FETCH_PSEUDO_REGISTER.
5485 (store_register): Call target_store_register only if we
5486 don't call STORE_PSEUDO_REGISTER.
5488 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
5490 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5491 ELF_MAKE_MSYMBOL_SPECIAL.
5492 * gdbarch.c, gdbarch.h: Regenerate.
5493 * arch-utils.c (default_make_msymbol_special): New function.
5494 * arch-utils.h (default_make_msymbol_special): Export.
5495 * elfread.c (elf_symtab_read): Compile use of
5496 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5498 * coffread.c (coff_symtab_read): Ditto, for
5499 COFF_MAKE_MSYMBOL_SPECIAL.
5501 2002-02-05 Jim Blandy <jimb@redhat.com>
5503 * solib-svr4.c (svr4_truncate_ptr): New function.
5504 (svr4_relocate_section_addresses): Do the address arithmetic with
5505 the appropriate truncation for target addresses, even when
5506 CORE_ADDR is larger than a target address.
5508 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5510 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5513 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5515 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5518 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5520 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5522 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5524 * gdbserver/linux-low.c: Remove unused include files.
5526 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5528 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5529 (read_inferior_memory): Use it.
5530 (write_inferior_memory): Likewise.
5532 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5534 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5535 grubbing through sys_errlist.
5537 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5539 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5541 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5542 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5544 2002-02-04 Andrew Cagney <ac131313@redhat.com>
5546 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5547 (do_sfunc, set_cmd_sfunc): New functions.
5549 * command.h (struct cmd_list_element): Add field func.
5550 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5551 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5552 * cli/cli-decode.h: Ditto.
5554 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5555 (help_all, help_cmd_list): Ditto.
5556 (find_cmd, complete_on_cmdlist): Ditto.
5557 * top.c (execute_command): Ditto.
5559 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5562 * infcmd.c (notice_args_read): Fix function signature.
5564 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5565 * cli/cli-decode.c (add_set_cmd): Ditto.
5566 * utils.c (initialize_utils): Ditto.
5567 * maint.c (_initialize_maint_cmds): Ditto.
5568 * infrun.c (_initialize_infrun): Ditto.
5569 * demangle.c (_initialize_demangler): Ditto.
5570 * remote.c (add_packet_config_cmd): Ditto.
5571 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5572 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5573 * proc-api.c (_initialize_proc_api): Ditto.
5574 * kod.c (_initialize_kod): Ditto.
5575 * valprint.c (_initialize_valprint): Ditto.
5576 * top.c (init_main): Ditto.
5577 * infcmd.c (_initialize_infcmd): Ditto.
5578 * corefile.c (_initialize_core): Ditto.
5579 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5580 * arch-utils.c (initialize_current_architecture): Ditto.
5581 (_initialize_gdbarch_utils): Ditto.
5582 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5584 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5585 * wince.c (_initialize_inftarg): Ditto.
5586 * symfile.c (_initialize_symfile): Ditto.
5587 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5588 * language.c (_initialize_language): Ditto.
5589 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5591 2002-02-04 Michael Snyder <msnyder@redhat.com>
5593 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5595 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5597 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5598 Add rules for building the register data files.
5600 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5602 * regformats/regdat.sh: Add braces to the definition of
5603 expedite_regs_${arch}.
5605 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5607 * regformats/regdef.h (struct reg): Add comment describing the
5608 requirements for offset and size fields.
5610 2002-02-04 Andreas Schwab <schwab@suse.de>
5612 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5613 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5615 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5617 * gdbarch.sh (copyright): Update years in generated header.
5618 (SMASH_TEXT_ADDRESS): Add rule.
5619 * gdbarch.h, gdbarch.c: Re-generate.
5620 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5621 * dbxread.c: Likewise.
5622 * dwarfread.c: Likewise.
5623 * elfread.c: Likewise.
5624 * somread.c: Likewise.
5626 * arm-tdep.c (arm_smash_text_address): New function.
5627 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5629 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5631 Add support for hardware watchpoints on win32 native.
5632 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
5633 CONTEXT_DEBUG_REGISTERS.
5634 (dr variable): New variable. Static array containing a local copy
5636 (debug_registers_changed): New variable. Reflects when debug registers
5637 are changed and need to be written to inferior.
5638 (debug_registers_used): New variable. Reflects when any debug register
5639 was set, used when new threads are created.
5640 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5642 (thread_rec): Set dr array if id is the thread of current_event .
5643 (child_continue, child_resume): Change the debug registers for all
5644 threads if debug_registers_changed.
5645 (child_add_thread): Change the debug registers if debug_registers_used.
5646 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5647 Link nm.h to new nm-cygwin.h file.
5648 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5649 of hardware registers.
5651 2002-02-03 Andrew Cagney <ac131313@redhat.com>
5653 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5654 Restore behavour broken by 2002-01-20 Andrew Cagney
5655 <ac131313@redhat.com> IEEE_FLOAT removal.
5657 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5659 * c-valprint.c (c_val_print): Pass a proper valaddr to
5660 cp_print_class_method.
5661 * valops.c (search_struct_method): If there is only one method
5662 and args is NULL, return that method.
5664 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5666 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5667 accessing tag_name directly.
5669 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5671 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5672 of accessing tag_name directly.
5674 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5677 * gdbtypes.c (replace_type): New function.
5678 * gdbtypes.h (replace_type): Add prototype.
5679 * stabsread.c (read_type): Use replace_type.
5681 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
5683 * Makefile.in (memattr.o): Add missing dependencies rule.
5685 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5687 * breakpoint.c (break_at_finish_command): Really export.
5688 (break_at_finish_at_depth_command): Ditto.
5689 (tbreak_at_finish_command): Ditto.
5690 * hppa-tdep.c: Include completer.h.
5691 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5692 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5694 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5696 * utils.c (do_write): New function.
5697 (error_stream): Rewrite combining the code from error_begin and
5699 (verror): Rewrite using error_stream.
5700 (error_begin): Delete function.
5702 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5704 * utils.c (error_begin): Make static.
5705 * defs.h (error_begin): Delete declaration.
5707 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5708 (decode_line_1): Use cplusplus_error instead of error_begin,
5709 cplusplus_hint and return_to_top_level.
5710 * coffread.c (coff_symfile_read): Use error instead of error_begin
5711 and return_to_top_level.
5712 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5714 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5716 * language.h (type_error, range_error): Make string parameter
5718 * language.c (warning_pre_print): Delete extern declaration.
5719 * dwarfread.c (warning_pre_print): Ditto.
5720 * language.c (type_error, range_error): Rewrite to use verror and
5721 vwarning instead of warning_begin.
5723 2002-02-01 Michael Snyder <msnyder@redhat.com>
5725 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5726 (set_ignore_count): Move misplaced comment back where it belongs.
5728 2002-02-01 Andrew Cagney <ac131313@redhat.com>
5730 * command.h (NO_FUNCTION): Delete macro.
5731 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5732 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5733 * tracepoint.c (_initialize_tracepoint): Ditto.
5734 * cli/cli-decode.c (add_set_cmd): Ditto.
5735 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5737 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5739 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5740 Update ``this'' pointer when calling virtual functions.
5742 2002-02-01 Michael Snyder <msnyder@redhat.com>
5744 * breakpoint.c (create_temp_exception_breakpoint): Delete.
5745 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
5747 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5749 * regformats/reg-arm.dat: New file.
5750 * regformats/reg-i386.dat: New file.
5751 * regformats/reg-ia64.dat: New file.
5752 * regformats/reg-m68k.dat: New file.
5753 * regformats/reg-mips.dat: New file.
5754 * regformats/reg-ppc.dat: New file.
5755 * regformats/reg-sh.dat: New file.
5756 * regformats/regdef.h: New file.
5757 * regformats/regdat.sh: New file.
5759 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
5761 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
5762 (arm_frame_args_address, arm_frame_locals_address): New functions.
5763 (arm_frame_num_args): New function.
5764 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
5765 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
5766 (FRMA_NUM_ARGS): Call arm_frame_num_args.
5768 2002-01-31 Michael Snyder <msnyder@redhat.com>
5770 * breakpoint.c (break_at_finish_command): Export.
5771 (break_at_finish_at_depth_command): Export.
5772 (tbreak_at_finish_command): Export.
5773 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
5774 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
5775 "tbreak" commands, which are HPPA specific.
5777 * printcmd.c (disassemble_command): Remove an ancient
5778 artifact of an old merge.
5780 * symfile.h (enum overlay_debugging_state):
5781 Define enum constant values for overlay mode.
5782 * symfile.c (overlay_debugging): Use enums instead of literals.
5783 (overlay_is_mapped, overlay_auto_command,
5784 overlay_manual_command): Ditto.
5786 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5787 breakpoint_here_p, breakpoint_inserted_here_p,
5788 breakpoint_thread_match, bpstat_stop_status,
5789 describe_other_breakpoints, check_duplicates, clear_command):
5790 Coding standard fixes.
5792 * target.c (target_xfer_memory): Add spaces, coding standard.
5793 (do_xfer_memory): Add missing line to trust-readonly
5794 code: check bfd SEC_READONLY flag for section.
5796 2002-01-31 Andrew Cagney <ac131313@redhat.com>
5798 * PROBLEMS: Fix typo, 5.1->5.1.1.
5800 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
5802 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5803 data symbols, since we search based on textlow and texthigh.
5804 (find_pc_sect_symtab): Likewise.
5806 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5808 * defs.h (vwarning): Declare.
5809 * utils.c (vwarning): New function.
5810 (warning): Call vwarning.
5811 (warning_begin): Delete function.
5813 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5814 the warning message.
5815 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5818 2002-01-30 Michael Snyder <msnyder@redhat.com>
5820 * NEWS: Mention "set trust-readonly-sections" command.
5821 Mention generate-core-file command.
5823 2002-01-15 Michael Snyder <msnyder@redhat.com>
5825 * target.c: New command, "set trust-readonly-sections on".
5826 (do_xfer_memory): Honor the suggestion to trust readonly sections
5827 by reading them from the object file instead of from the target.
5828 (initialize_targets): Register command "set trust-readonly-sections".
5830 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5832 * parse.c (target_map_name_to_register): Simplify, search regs and
5833 pseudo-regs using a single loop.
5835 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5837 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5839 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
5841 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5842 * config/i386/i386v42mp.mh: Add i387-nat.o .
5843 * i386v4-nat.c: Include i387-nat.h.
5844 (supply_fpregset): Use i387_supply_fsave.
5845 (fill_fpregset): Use i387_fill_fsave.
5847 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
5849 * arm-tdep.c (arm_call_dummy_words): Define.
5850 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5851 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5852 (CALL_DUMMY_WORDS): Define.
5853 (arm_call_dummy_words): Declare.
5854 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5855 (arm_linux_call_dummy_words): Declare.
5857 2002-01-30 Andreas Schwab <schwab@suse.de>
5859 * m68klinux-nat.c: Fix last change to use regcache_collect
5860 instead of referencing registers[] directly.
5862 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5864 * parse.c (target_map_name_to_register): Delete code wrapped in
5865 #ifdef REGISTER_NAME_ALIAS_HOOK.
5867 2002-01-28 Michael Snyder <msnyder@redhat.com>
5869 * regcache.c (legacy_read_register_gen): Need to be able to
5870 read pseudo-register as well as real register.
5871 (legacy_write_register_gen): Ditto.
5873 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5875 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5876 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5877 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5878 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5879 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5880 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5881 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5882 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5883 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5884 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5885 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5886 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5887 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5888 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5889 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5890 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5891 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5892 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5893 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5894 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5896 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5898 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5899 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5900 (initialize_current_architecture): Update target_byte_order using
5901 information from BFD.
5902 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
5903 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5905 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5907 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5908 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5910 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5911 #ifdef INVALID_FLOAT.
5912 * infcmd.c (do_registers_info): Ditto.
5913 * values.c (unpack_double): Ditto. Add comment.
5915 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5916 already commented out.
5918 2002-01-26 Andreas Schwab <schwab@suse.de>
5920 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5921 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5922 registers and add support for PTRACE_GETREGS.
5924 2002-01-24 Andrew Cagney <ac131313@redhat.com>
5926 GDB 5.1.1 released from 5.1 branch.
5927 * NEWS: Add 5.1.1 news.
5928 * README: Sync with 5.1 branch.
5930 2002-01-23 Fred Fish <fnf@redhat.com>
5932 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5933 stabstring on initial malloc. Reallocing will copy it for us,
5936 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5938 * Makefile.in (hpread_h): Delete.
5939 (HFILES_NO_SRCDIR): Remove hpread.h.
5940 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5941 (hpread.o): Update dependencies.
5942 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5944 * hp-psymtab-read.c: Remove file.
5945 * hp-symtab-read.c: Remove file.
5946 * hpread.h: Remove file.
5948 * hpread.c: Merge all contents of hp-psymtab-read.c,
5949 hp-symtab-read.c and hpread.h into this file, as it was prior to
5952 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
5953 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
5954 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5955 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5957 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5959 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5960 fill_gregset): Call gdbarch_tdep() just once, assign result to
5961 variable and use that, instead of calling the function several
5964 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5966 * configure.host: Accept sparcv9 as alias for sparc64.
5967 * configure.tgt: Likewise.
5969 2002-01-22 Kevin Buettner <kevinb@redhat.com>
5971 * solib-aix5.c (build_so_list_from_mapfile)
5972 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5973 arguments is not reversed.
5974 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5975 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
5977 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
5979 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5980 modified version of obsolete sh_fetch_pseudo_register.
5981 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5982 (sh4_register_read): New function.
5983 (sh_pseudo_register_write): New function. Renamed and modified
5984 version of obsolete sh_store_pseudo_register.
5985 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5986 (sh4_register_write): New function.
5987 (sh_gdbarch_init): Remove setting of gdbarch function
5988 fetch_pseudo_register and store_pseudo_register. Remove setting of
5989 register_convert_to_raw, register_convert_to_virtual,
5990 register_convertible.
5991 (sh_sh4_register_convertible): Delete. No longer needed. All is
5992 taken care by architecture specific functions
5993 register_read/register_write.
5994 (sh_sh4_register_convert_to_virtual): Make static.
5995 (sh_sh4_register_convert_to_raw): Ditto.
5997 2002-01-22 Andrew Cagney <ac131313@redhat.com>
5999 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6000 (floatformat_is_nan, floatformat_mantissa): Ditto.
6002 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6003 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6004 builtin_type_ieee_double_little,
6005 builtin_type_ieee_double_littlebyte_bigword,
6006 builtin_type_m68881_ext, builtin_type_i960_ext,
6007 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6008 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6009 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6010 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6012 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
6014 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6015 parameter. Set frameless flag if it exists and depended of
6016 whether the scanned function is frameless or not.
6017 (xstormy16_skip_prologue): If function is frameless, return
6018 result of xstormy16_scan_prologue().
6019 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6022 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
6024 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6025 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6026 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6027 sh_sh4_register_byte, sh_sh4_register_raw_size,
6028 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6029 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6030 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6031 sh_store_pseudo_register, sh_do_pseudo_register): Call
6032 gdbarch_tdep() just once, assign result to variable and use that,
6033 instead of calling the function several times.
6035 2002-01-20 Mark Kettenis <kettenis@gnu.org>
6037 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6038 macros instead of LAST_FPU_CTRL_REGNUM.
6039 (store_register): Likewise.
6041 2002-01-21 Jim Blandy <jimb@redhat.com>
6043 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6044 is up-to-date before running the program, not just when a program
6047 2002-01-21 Fred Fish <fnf@redhat.com>
6049 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6050 when we have found all instructions we are looking for.
6052 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6054 * arm-tdep.c (arm_register_name): New function.
6055 (arm_registers_names): Make static.
6056 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6057 (arm_register_name): Declare.
6058 (REGISTER_NAME): Use it.
6060 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6061 Kevin Buettner <kevinb@redhat.com>
6063 Convert arm targets to new FRAME interface.
6064 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6065 (arm_frame_find_save_regs): Delete.
6066 (arm_frame_init_saved_regs): New.
6067 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6068 Allocate extra_info as required. Convert all uses of fsr.regs
6069 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6071 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6072 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6073 (check_prologue_cache, save_prologue_cache): Likewise.
6074 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6075 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6076 (FRAME_FIND_SAVED_REGS): Delete.
6077 (arm_frame_find_saved_regs): Delete prototype.
6078 (arm_frame_init_saved_regs): New prototype.
6079 (FRAME_INIT_SAVED_REGS): Define.
6081 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6083 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6085 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6087 From Jeff Law <law@redhat.com>:
6088 * infttrace.c: Include <sys/pstat.h>.
6089 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6090 exec file if the ttrace equivalent fails.
6092 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6094 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6095 (closeLogFile): Ditto.
6097 2002-01-20 Michael Chastain <mec@shout.net>
6099 * top.c (print_gdb_version): Bump copyright year to 2002.
6101 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6103 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6104 Zannoni and Eli Zaretskii.
6106 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6108 * buildsym.c: Update copyright years.
6109 * c-typeprint.c: Likewise.
6110 * dwarf2read.c: Likewise.
6111 * f-typeprint.c: Likewise.
6112 * gdbtypes.c: Likewise.
6113 * gdbtypes.h: Likewise.
6114 * hp-symtab-read.c: Likewise.
6115 * hpread.c: Likewise.
6116 * mdebugread.c: Likewise.
6117 * p-typeprint.c: Likewise.
6119 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6121 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6122 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6123 byte-order selectable.
6124 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6125 * arch-utils.c: Ditto.
6126 (set_endian): Ditto.
6127 (set_endian_from_file): Ditto.
6128 * gdbserver/low-sim.c (create_inferior): Ditto.
6129 * gdbarch.sh: Ditto.
6130 * gdbarch.h: Re-generate.
6131 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6132 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6133 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6134 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6135 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6136 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6137 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6138 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6140 * config/mips/tm-wince.h: Remove #undef of macro
6141 TARGET_BYTE_ORDER_SELECTABLE.
6142 * config/sh/tm-wince.h: Ditto.
6144 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6146 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6147 member function fields. Add accessor macro
6148 TYPE_FN_FIELD_ARTIFICIAL.
6149 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6150 * c-typeprint.c (c_type_print_base): Skip artificial member
6153 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6155 * f-typeprint.c: Delete unused function f_type_print_args.
6156 * p-typeprint.c: Delete unused function pascal_type_print_args.
6158 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6160 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6161 comment. Add ``artificial'' to ``union field_location''.
6163 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6165 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6166 * mdebugread.c (parse_symbol): Likewise.
6167 * stabsread.c (define_symbol): Likewise.
6168 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6169 initializing TYPE_FIELD_BITPOS to n (obsolete).
6170 (hpread_doc_function_type): Likewise.
6171 * hpread.c (hpread_function_type): Likewise.
6173 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6175 * configure.in (host_makefile_frag): Only require a host makefile
6176 fragment when a native build.
6177 * configure: Re-generate.
6179 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6181 * doublest.h (floatformat_from_type): Declare.
6182 * doublest.c (floatformat_from_type): New function.
6183 (convert_typed_floating): Use.
6185 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6186 call to function floatformat_from_type.
6188 * gdbarch.sh (IEEE_FLOAT): Delete.
6189 * gdbarch.h, gdbarch.c: Re-generate.
6190 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6191 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6192 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6193 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6194 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6195 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6196 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6197 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6198 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6199 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6200 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6201 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6203 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6204 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6205 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6206 * sh-tdep.c (sh_gdbarch_init): Ditto.
6207 * mips-tdep.c (mips_gdbarch_init): Ditto.
6208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6209 * cris-tdep.c (cris_gdbarch_init): Ditto.
6211 2002-01-20 Jiri Smid <smid@suse.cz>
6213 * configure.host, configure.tgt: Support x86-64.
6214 * NEWS: Note new target x86-64.
6216 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6217 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6218 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6219 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6220 x86-64-linux-nat.o): Fix dependencies.
6222 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6224 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6225 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6226 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6227 * config/sparc/xm-sun4os4.h: Delete file.
6228 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6230 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6232 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6233 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6234 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6235 * config/i386/i386lynx.mh (XM_FILE): Delete.
6236 * config/rs6000/xm-rs6000ly.h: Delete file.
6237 * config/sparc/xm-sparclynx.h: Delete file.
6238 * config/m68k/xm-m68klynx.h: Delete file.
6239 * config/i386/xm-i386lynx.h: Delete file.
6240 * config/xm-lynx.h: Delete file.
6241 * config/djgpp/fnchange.lst: Update.
6243 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6245 * alpha-tdep.c (alpha_register_byte): New function.
6246 (alpha_register_raw_size): Ditto.
6247 (alpha_register_virtual_size): Ditto.
6248 (alpha_skip_prologue_internal): Renamed from
6249 alpha_skip_prologue.
6250 (alpha_skip_prologue): New version that calls
6251 alpha_skip_prologue_internal.
6252 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6253 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6254 second argument from alpha_skip_prologue.
6255 (REGISTER_BYTE): Use alpha_register_byte.
6256 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6257 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6258 (FRAMELESS_FUNCTION_INVOCATION): Use
6259 generic_frameless_function_invocation_not.
6260 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6261 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6263 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6265 * config/mips/xm-news-mips.h: Delete file.
6266 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6268 * config/m88k/xm-m88k.h: Delete file.
6269 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6270 * config/m88k/xm-delta88v4.h: Ditto.
6271 * config/m88k/xm-delta88.h: Ditto.
6273 * config/alpha/xm-fbsd.h: Delete file.
6274 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6276 * config/sparc/xm-sparc.h: Delete file.
6277 * Makefile.in (xm-sun4os4.h): Delete dependency.
6278 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6279 * config/sparc/xm-sun4os4.h: Ditto.
6280 * config/sparc/xm-linux.h: Ditto.
6282 * config/i386/xm-windows.h: Delete file.
6284 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6286 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6287 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6289 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6291 * alpha-tdep.c (alpha_call_dummy_words): New.
6292 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6293 (CALL_DUMMY_P): Define.
6294 (CALL_DUMMY_WORDS): Define.
6295 (SIZEOF_CALL_DUMMY_WORDS): Define.
6297 2002-01-19 Per Bothner <per@bothner.com>
6299 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6300 isn't NULL, which can happen with some gcj-3.x-produced code.
6302 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6304 * alpha-tdep.c (alpha_register_virtual_type): New function.
6305 (alpha_init_frame_pc_first): Ditto.
6306 (alpha_fix_call_dummy): Ditto.
6307 (alpha_store_struct_return): Ditto.
6308 (alpha_extract_struct_value_address): Ditto.
6309 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6310 alpha_register_virtual_type.
6311 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6312 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6313 alpha_extract_struct_value_address.
6314 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6315 (INIT_FRAME_PC): Use init_frame_pc_noop.
6316 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6318 2002-01-19 Mark Kettenis <kettenis@gnu.org>
6320 * i386gnu-nat.c: Include "i386-tdep.h".
6321 (fetch_fpregs): Simplify code dealing with uninitialized floating
6322 point states such that it doesn't require FP7_REGNUM.
6324 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6326 * alpha-tdep.c (frame_extra_info): New.
6327 (alpha_find_saved_regs): Make static. Use
6329 (alpha_frame_init_saved_regs): New function.
6330 (alpha_frame_saved_pc): Use frame->extra_info.
6331 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6332 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6333 (init_extra_frame_info): Rename to...
6334 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
6335 (alpha_print_extra_frame_info): New function.
6336 (alpha_frame_locals_address): Ditto.
6337 (alpha_frame_args_address): Ditto.
6338 (alpha_pop_frame): Use frame->extra_info.
6339 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6340 alpha_frame_args_address.
6341 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6342 (alpha_find_saved_regs): Remove prototype.
6343 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6344 (EXTRA_FRAME_INFO): Remove.
6345 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6346 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6348 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6350 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6351 (alpha_cannot_fetch_register): Ditto.
6352 (alpha_cannot_store_register): Ditto.
6353 (alpha_register_convertible): Ditto.
6354 (alpha_use_struct_convention): Ditto.
6355 * config/alpha/tm-alpha.h: Update copyright years.
6356 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6357 (INNER_THAN): Use core_addr_lessthan.
6358 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6359 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6360 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6361 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6362 (FRAME_CHAIN): Remove unnecessary cast.
6364 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6366 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6369 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6371 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6372 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6373 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6374 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6375 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6376 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6377 * x86-64-linux-nat.c: Ditto.
6379 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6381 * alpha-tdep.c (alpha_register_name): New function.
6382 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6383 (REGISTER_NAME): Define.
6385 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6387 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6389 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6391 * alpha-tdep.c: Update copyright years.
6392 (alpha_next_pc): New function.
6393 (alpha_software_single_step): Ditto.
6394 * config/alpha/tm-alpha.h: Add prototype for
6395 alpha_software_single_step.
6397 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6399 * alphabsd-nat.c: Update copyright years.
6400 (fill_gregset): Use regcache_collect.
6401 (fill_fpregset): Likewise.
6402 (fetch_inferior_registers): Only fetch integer registers
6403 if requested to do so.
6404 (store_inferior_registers): Only store integer registers
6405 if requested to do so.
6407 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6409 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6410 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6411 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6412 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6413 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6414 * config/arm/linux.mh (XDEPFILES): Delete.
6415 * config/arm/nbsd.mh (XDEPFILES): Delete.
6416 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6417 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6418 * config/i386/i386m3.mh (XDEPFILES): Delete.
6419 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6420 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6421 * config/i386/fbsd.mh (XDEPFILES): Delete.
6422 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6423 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6424 * config/i386/i386v4.mh (XDEPFILES): Delete.
6425 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6426 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6427 * config/i386/i386aix.mh (XDEPFILES): Delete.
6428 * config/i386/go32.mh (XDEPFILES): Delete.
6429 * config/i386/cygwin.mh (XDEPFILES): Delete.
6430 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6431 * config/i386/i386mach.mh (XDEPFILES): Delete.
6432 * config/i386/i386v32.mh (XDEPFILES): Delete.
6433 * config/i386/linux.mh (XDEPFILES): Delete.
6434 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6435 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6436 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6437 * config/i386/i386sco.mh (XDEPFILES): Delete.
6438 * config/i386/i386v.mh (XDEPFILES): Delete.
6439 * config/i386/nbsd.mh (XDEPFILES): Delete.
6440 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6441 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6442 * config/i386/symmetry.mh (XDEPFILES): Delete.
6443 * config/i386/obsd.mh (XDEPFILES): Delete.
6444 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6445 * config/ia64/linux.mh (XDEPFILES): Delete.
6446 * config/ia64/aix.mh (XDEPFILES): Delete.
6447 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6448 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6449 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6450 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6451 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6452 * config/m68k/linux.mh (XDEPFILES): Delete.
6453 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6454 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6455 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6456 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6457 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6458 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6459 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6460 * config/m88k/delta88.mh (XDEPFILES): Delete.
6461 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6462 * config/m88k/m88k.mh (XDEPFILES): Delete.
6463 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6464 * config/mips/linux.mh (XDEPFILES): Delete.
6465 * config/mips/irix6.mh (XDEPFILES): Delete.
6466 * config/mips/irix5.mh (XDEPFILES): Delete.
6467 * config/mips/irix4.mh (XDEPFILES): Delete.
6468 * config/mips/irix3.mh (XDEPFILES): Delete.
6469 * config/mips/decstation.mh (XDEPFILES): Delete.
6470 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6471 (NATDEPFILES): Move core-aout.o to here.
6472 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6473 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6474 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6475 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6476 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6477 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6478 * config/pa/hpux11.mh (XDEPFILES): Delete.
6479 * config/powerpc/aix.mh (XDEPFILES): Delete.
6480 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6481 * config/powerpc/linux.mh (XDEPFILES): Delete.
6482 * config/romp/rtbsd.mh: Rename XDEPFILES.
6483 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6484 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6485 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6486 * config/s390/s390.mh (XDEPFILES): Delete.
6487 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6488 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6489 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6490 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6491 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6492 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6493 * config/sparc/linux.mh (XDEPFILES): Delete.
6494 * config/vax/vaxult.mh (XDEPFILES): Delete.
6495 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6496 * Makefile.in (DEPFILES): Remove XDEPFILES.
6498 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6500 * utils.c (internal_verror): Fix comments, default is yes not no.
6501 Update queries to match. Default to quit and dump core.
6503 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6505 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6507 * defs.h, event-top.c, gdbcmd.h: Ditto.
6508 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6509 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6510 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6511 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6512 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6513 * mi/mi-main.c:Ditto.
6515 * stack.c, symfile.c: Update copyright.
6517 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6519 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6520 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6521 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6522 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
6524 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6526 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6527 * gdbserver/low-lynx.c (myattach): Likewise.
6528 * gdbserver/low-nbsd.c (myattach): Likewise.
6529 * gdbserver/low-sim.c (myattach): Likewise.
6530 * gdbserver/low-sparc.c (myattach): Likewise.
6531 * gdbserver/low-sun3.c (myattach): Likewise.
6533 * gdbserver/low-linux.c (myattach): New function.
6535 * gdbserver/server.c (attach_inferior): New function.
6536 (main): Handle "--attach".
6538 2002-01-16 Andrew Cagney <ac131313@redhat.com>
6540 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6543 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
6545 * c-typeprint.c (is_type_conversion_operator): Add additional
6546 check for non-conversion operators.
6548 2002-01-15 Michael Snyder <msnyder@redhat.com>
6550 * linux-proc.c: Add "info proc" command, a la procfs.c.
6551 (read_mapping): New function, abstract and re-use code.
6552 (linux_find_memory_regions): Use new func read_mapping.
6553 (linux_info_proc_cmd): New function, implement "info proc".
6554 (_initialize_linux_proc): Add new command "info proc".
6556 2002-01-15 Michael Snyder <msnyder@redhat.com>
6558 * symfile.c (generic_load): Use bfd_map_over_sections method
6559 instead of manipulating bfd structure members directly.
6560 (add_section_size_callback): New function, bfd sections callback
6561 used by generic_load.
6562 (load_sections_callback): New function, bfd sections callback
6563 used by generic_load.
6565 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
6567 [Based on work by Jim Blandy]
6568 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6569 (builtin_type_vec128): Export.
6570 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6572 (builtin_type_vec128): New builtin type for 128 bit vector
6574 (build_gdbtypes): Initialize builtin_type_v16qi and
6575 builtin_type_v8hi. Create the vec128 register builtin type
6577 (build_builtin_type_vec128): New function.
6578 (_initialize_gdbtypes): Register builtin_type_v16qi and
6579 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6580 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6581 AltiVec register to new builtin type.
6583 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
6585 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6588 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6590 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6591 CLEAN_UP_REGISTER_VALUE.
6592 * regcache.c (supply_register): Update only call.
6594 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6596 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6597 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6598 a29k-*-vxworks* targets as obsolete.
6600 2002-01-14 Michael Snyder <msnyder@redhat.com>
6602 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6603 until we can resolve portability issues.
6604 * gregset.h: Remove references to fpxregs.
6605 * gcore.c (gcore_command): Initialize note_sec to NULL.
6607 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6609 * signals.c (target_signal_to_name): Rewrite. Only use
6610 signals[].name when in bounds and non-NULL.
6612 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6614 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6615 * signals.c (target_signal_to_name): Verify that SIG is within the
6616 bounds of the signals array.
6618 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6620 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6622 2002-01-13 Keith Seitz <keiths@redhat.com>
6624 * stack.c (print_frame_info_base): Print the frame's pc
6625 only if when print_frame_info_listing_hook is not defined.
6627 2002-01-13 Keith Seitz <keiths@redhat.com>
6629 * varobj.c (varobj_set_value): Make sure that there were no
6630 errors evaluating the object before attempting to set its
6632 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6633 so this offset adjustment is no longer necessary.
6634 (create_child): Don't set the error flag if the child is
6636 (value_of_child): If value_fetch_lazy fails, return NULL
6637 so that callers will be notified that an error occurred.
6638 (c_value_of_variable): Delay check of variable's validity
6639 until later. We actually want all structs and unions to have
6641 Do not return "???" for variables which could not be evaluated.
6642 This error condition must be returned to the caller so that it
6643 can get the error condition from gdb.
6644 (cplus_name_of_child): Adjust index for vptr before figuring
6645 out the name of the child.
6646 (cplus_value_of_child): If a child's (real) parent is not valid,
6647 don't even bother trying to give a value for it. Just return
6648 an error. Change all instances in this function.
6649 (cplus_type_of_child): If our parent is one of the "fake"
6650 parents, we need to get at the type of the real parent, and
6651 derive the child's true type using this information.
6653 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6655 From 2002-01-09 John Marshall <johnm@falch.net>:
6656 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6657 sources.redhat.com, and tweak some related URLs which had
6658 suffered from linkrot.
6660 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6663 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6664 structures passed in registers.
6666 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6668 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6669 white space which prevented compilation. Reported by DSK
6670 <dsk@student.unsw.edu.au>.
6672 2002-01-11 Michael Snyder <msnyder@redhat.com>
6674 * symfile.c (build_section_addr_info_from_section_tab):
6675 Use bfd access method instead of manipulating bfd directly.
6676 (syms_from_objfile): Ditto.
6677 (simple_overlay_update_1): Ditto.
6678 (simple_overlay_update): Ditto.
6679 (generic_load): Ditto.
6680 (overlay_unmapped_address): FIXME comment, bfd access methods.
6681 (sections_overlap): FIXME comment, bfd access methods.
6682 (pc_in_mapped_range): FIXME comment, bfd access methods.
6683 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6684 (section_is_mapped): FIXME comment, bfd access methods.
6685 (section_is_overlay): FIXME comment, bfd access methods.
6687 * symfile.c (generic_load): Whitespace and long line cleanups.
6688 Remove duplicate variable, change several local variables to
6689 more appropriate data types.
6690 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6692 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6695 * language.c (longest_local_hex_string_custom): Use phex_nz to
6696 convert NUM to a hex string.
6698 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
6700 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6702 Update Copyright year.
6704 2002-01-12 Andrew Cagney <ac131313@redhat.com>
6706 * language.c (longest_raw_hex_string): Delete unused function.
6708 2002-01-11 Petr Sorfa <petrs@caldera.com>
6710 * MAINTAINERS (write-after-approval): Add myself.
6711 * dwarf2read.c (read_tag_string_type): Handling of
6713 (read_tag_string_type): FORTRAN fix to prevent propagation of
6715 (set_cu_language): Handling of DW_LANG_Fortran95
6717 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6719 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6720 GETPID(inferior_ptid).
6721 (store_inferior_registers): Likewise.
6723 2002-01-10 Jason Merrill <jason@redhat.com>
6725 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6728 2002-01-10 Andrew Cagney <ac131313@redhat.com>
6730 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6731 and bfd/elf32-sh-nbsd.c.
6733 2002-01-10 Michael Snyder <msnyder@redhat.com>
6735 * NEWS: Mention --pid and corefile/proc-id behavior change.
6737 * Makefile.in: Add rules for gcore.o and linux-proc.o.
6738 * gcore.c: Include cli/cli-decode.h instead of command.h.
6740 * main.c (captured_main): Add new command line option "--pid".
6741 If the second command line argument (following the symbol-file)
6742 begins with a digit, try to attach to it before trying to open
6744 (print_gdb_help): Document the "--pid" argument.
6746 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
6748 * completer.c (command_completer): New function.
6750 * completer.h <command_completer>: Add prototype.
6752 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
6753 completer for the "help" command.
6755 2002-01-09 Jason Merrill <jason@redhat.com>
6757 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
6759 2002-01-09 Michael Snyder <msnyder@redhat.com>
6761 * i386-linux-nat.c (fill_fpxregset): Make global.
6762 (store_fpxregset): Ditto.
6764 * gregset.h (gdb_fpxregset_t): Define.
6765 (supply_fpxregset): Prototype.
6766 (fill_fpxregset): Prototype.
6768 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
6770 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6772 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
6773 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
6774 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
6776 2002-01-09 Andrew Cagney <ac131313@redhat.com>
6778 * MAINTAINERS: Update target maintainer rules so that any
6779 Maintainer can approve a tested patch for a maintenance-only
6782 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6784 * MAINTAINERS (write-after-approval): Add myself.
6786 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
6789 2002-01-08 Michael Snyder <msnyder@redhat.com>
6791 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
6792 real name of the executable, rather than the /proc name.
6794 2002-01-03 Michael Snyder <msnyder@redhat.com>
6796 Implement a "generate-core-file" command in gdb, save target state.
6797 * gcore.c: New file. Implement new command 'generate-core-file'.
6798 Save a corefile image of the current state of the inferior.
6799 * linux-proc.c: Add linux-specific code for saving corefiles.
6800 * target.h (struct target_ops): Add new target vectors for saving
6801 corefiles; to_find_memory_regions and to_make_corefile_notes.
6802 (target_find_memory_regions): New macro.
6803 (target_make_corefile_notes): New macro.
6804 * target.c (update_current_target): Inherit new target methods.
6805 (dummy_find_memory_regions): New place-holder method.
6806 (dummy_make_corefile_notes): New place-holder method.
6807 (init_dummy_target): Initialize new dummy target vectors.
6808 * exec.c (exec_set_find_memory_regions): New function.
6809 Allow the exec_ops vector for memory regions to be taken over.
6810 (exec_make_note_section): New function, target vector method.
6811 * defs.h (exec_set_find_memory_regions): Export prototype.
6812 * procfs.c (proc_find_memory_regions): New function, corefile method.
6813 (procfs_make_note_section): New function, corefile method.
6814 (init_procfs_ops): Set new target vector pointers.
6815 (find_memory_regions_callback): New function.
6816 (procfs_do_thread_registers): New function.
6817 (procfs_corefile_thread_callback): New function.
6818 * sol-thread.c (sol_find_memory_regions): New function.
6819 (sol_make_note_section): New function.
6820 (init_sol_thread_ops): Initialize new target vectors.
6821 * inftarg.c (inftarg_set_find_memory_regions): New function.
6822 Allow to_find_memory_regions vector to be taken over.
6823 (inftarg_set_make_corefile_notes): New function.
6824 Allow to_make_corefile_notes vector to be taken over.
6825 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6826 interface layer if not target_has_execution (may be a corefile).
6827 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6828 * config/sparc/sun4sol2.mh: Ditto.
6829 * config/alpha/alpha-linux.mh: Ditto.
6830 * config/arm/linux.mh: Ditto.
6831 * config/i386/x86-64linux.mh: Ditto.
6832 * config/ia64/linux.mh: Ditto.
6833 * config/m68k/linux.mh: Ditto.
6834 * config/mips/linux.mh: Ditto.
6835 * config/powerpc/linux.mh: Ditto.
6836 * config/sparc/linux.mh: Ditto.
6838 2002-01-07 Michael Snyder <msnyder@redhat.com>
6840 * arm-linux-nat.c: Remove references to regcache.c internal data
6841 (registers[] and register_valid[]).
6843 2002-01-07 Michael Snyder <msnyder@redhat.com>
6845 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6846 so that attaching to a pid will automatically read the process's
6847 symbol file and shlibs.
6848 * Makefile.in: Add rule for linux-proc.o.
6849 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6850 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6851 * config/arm/linux.mh: Ditto.
6852 * config/i386/linux.mh: Ditto.
6853 * config/i386/x86-64linux.mh: Ditto.
6854 * config/ia64/linux.mh: Ditto.
6855 * config/m68k/linux.mh: Ditto.
6856 * config/mips/linux.mh: Ditto.
6857 * config/powerpc/linux.mh: Ditto.
6858 * config/sparc/linux.mh: Ditto.
6860 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6862 * win32-nat.c: Add i386-tdep.h dependency.
6864 2002-01-07 Michael Snyder <msnyder@redhat.com>
6866 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6867 instead of bfd_get_arch_size. Don't bail out just because
6868 there's no exec_bfd.
6870 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6871 * p-valprint.c (pascal_object_print_value): Ditto.
6872 * somread.c (som_symtab_read): Ditto.
6873 * symfile.c (simple_free_overlay_region_table): Ditto.
6874 * valops.c (value_assign): Ditto.
6876 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6877 use tilde_expand and strerror for opening save-tracepoints file.
6879 * thread-db.c (thread_db_new_objfile): Indendation fix.
6881 * infptrace.c (GDB_MAX_ALLOCA): New define.
6882 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
6883 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
6884 can be overridden with whatever value is appropriate to the host).
6885 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6886 alloca to allocate potentially large buffer.
6887 * rs6000-nat.c (child_xfer_memory): Ditto.
6888 * symm-nat.c (child_xfer_memory): Ditto.
6889 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6891 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6893 From Nick Clifton <nickc@redhat.com>
6894 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6896 2002-01-07 Michael Snyder <msnyder@redhat.com>
6898 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6899 Don't use exec_bfd if it's NULL.
6901 2002-01-06 Mark Kettenis <kettenis@gnu.org>
6903 * valops.c (value_arg_coerce): Fix formatting.
6905 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6907 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6910 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6912 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6913 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6914 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6915 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6916 z8k-coff have not been multi-arched. Update z8k-coff build
6919 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6921 * MAINTAINERS: Mark a29k target as obsolete.
6922 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6923 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6925 * NEWS: Note that a29k targets are obsolete.
6926 * a29k-tdep.c: Mark as obsolete.
6927 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6928 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6929 a29k-*-vxworks* targets as obsolete.
6930 * remote-adapt.c: Obsolete.
6931 * remote-eb.c: Obsolete.
6932 * remote-mm.c: Obsolete.
6933 * remote-udi.c: Obsolete.
6934 * config/a29k/a29k-udi.mt: Obsolete.
6935 * config/a29k/a29k.mt: Obsolete.
6936 * config/a29k/tm-a29k.h: Obsolete.
6937 * config/a29k/tm-vx29k.h: Obsolete.
6938 * config/a29k/vx29k.mt: Obsolete.
6940 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6942 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6943 with BFD_ENDIAN_BIG.
6945 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6947 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6948 * configure, config.in: Re-generate.
6949 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6950 * defs.h: Do not include <endian.h>.
6952 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6954 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6955 * config.in: Regenerate.
6956 * configure.in: Update copyright years.
6957 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6958 * configure: Regenerate.
6959 * i386bsd-nat.c: Update copyright years.
6960 (fill_gregset): Use regcache_collect.
6961 (fetch_inferior_registers): Only fetch integer registers
6962 if requested to do so. Add support for XMM registers
6963 using PT_GETXMMREGS.
6964 (store_inferior_registers): Only store integer registers
6965 if requested to do so. Add support for XMM registers
6966 using PT_SETXMMREGS.
6967 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6968 (store_inferior_registers): Remove.
6969 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6970 (fetch_elfcore_registers): New function.
6971 (i386nbsd_elfcore_fns): New.
6972 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6973 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6975 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6976 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6977 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6978 * config/i386/tm-nbsd.h: Update copyright years.
6979 (HAVE_SSE_REGS): Define.
6980 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6981 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6982 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6983 (SIGCONTEXT_PC_OFFSET): Remove.
6984 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6986 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6988 * configure.tgt: Remove powerpc-*-macos* target.
6989 * config/m68k/xm-mpw.h: Delete file.
6990 * config/xm-mpw.h: Delete file.
6991 * ser-mac.c: Delete file.
6992 * mpw-make.sed: Delete file.
6993 * mpw-config.in: Delete file.
6994 * mac-xdep.c: Delete file.
6995 * mac-gdb.r: Delete file.
6996 * mac-defs.h: Delete file.
6997 * mac-nat.c: Delete file.
6998 * config/powerpc/macos.mh: Delete file.
6999 * config/powerpc/macos.mt: Delete file.
7000 * config/powerpc/nm-macos.h: Delete file.
7001 * config/powerpc/tm-macos.h: Delete file.
7002 * source.c (openp, open_source_file): Remove obsolete code.
7003 * top.c (gdb_readline): Ditto.
7004 * utils.c (query): Ditto.
7005 * event-top.c (display_gdb_prompt): Ditto.
7006 * Makefile.in (ser-mac.o): Delete obsolete target.
7009 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7011 * defs.h (BIG_ENDIAN): Delete macro definition.
7012 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7013 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7014 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7015 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7016 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7017 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7018 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7019 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7020 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7021 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7022 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7023 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7024 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7025 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7026 * gdbarch.c: Re-generate.
7028 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7030 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7033 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7035 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7037 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7039 * value.h (value_ptr): Delete typedef.
7041 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7043 * i386nbsd-nat.c: Update copyright years.
7044 Include i386-tdep.h.
7046 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
7048 * stabsread.c: Update copyright years.
7050 From Debashis Mahata <debashis.mahata@wipro.com>:
7051 (read_struct_fields): Deal with Sun C compiler erroneous stab
7052 output for structs and unions.
7055 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7057 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7060 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7062 * cp-abi.c: Fix whitespace.
7063 (baseclass_offset): New wrapper function.
7064 * cp-abi.h (baseclass_offset): Add prototype.
7065 (struct cp_abi_ops): Add baseclass_offset pointer.
7067 * valops.c (vb_match): Move to...
7068 * gnu-v2-abi.c (vb_match): here.
7069 * valops.c (baseclass_offset): Move to...
7070 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7072 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7074 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7075 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7076 * hpacc-abi.c (init_hpacc_ops): Likewise.
7078 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7080 * valops.c (find_overload_match): Accept obj as a
7081 reference parameter. Update it before returning.
7082 * value.h (find_overload_match): Update prototype.
7083 * eval.c (evaluate_subexp_standard): Pass object to
7084 find_overload_match by reference.
7086 2002-01-03 Andrew Cagney <ac131313@redhat.com>
7088 * valarith.c: Replace value_ptr with struct value pointer. Remove
7089 register attribute from value declarations.
7092 * scm-lang.c (scm_lookup_name): Ditto.
7094 2002-01-03 Michael Snyder <msnyder@redhat.com>
7096 Abstract the functionality of iterating over mapped memory
7097 regions into a general purpose iterator function.
7098 * procfs.c (iterate_over_mappings): New function, general purpose
7099 iterator for memory sections.
7100 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7101 (solib_mappings_callback): New function, callback for above.
7102 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7103 (info_mappings_callback): New function, callback for above.
7105 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7107 2002-01-01 Mark Kettenis <kettenis@gnu.org>
7109 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7110 * i386-tdep.c: Include "elf-bfd.h".
7111 (process_note_abi_tag_sections): New function.
7112 (i386_gdbarch_init): Add code to recognize various OS/ABI
7115 * maint.c (_initialize_maint_cmds): Add missing \ in
7118 For older changes see ChangeLog-2001
7124 version-control: never