* gdb/source.c (source_info): Mention whether the symtab has
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
475b0867
JB
12002-06-11 Jim Blandy <jimb@redhat.com>
2
919d772c
JB
3 * source.c (source_info): Mention whether the symtab has
4 information about preprocessor macros.
5
475b0867
JB
6 Call the command `info macro', not `show macro'.
7 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8 Fix error message.
9 (_initialize_macrocmd): Register `info_macro_command' in
10 `infolist', not `showlist'.
11
9e364162
DJ
122002-06-11 Daniel Jacobowitz <drow@mvista.com>
13
14 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
15 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
16 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
17 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
18 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
19 unconditionally.
20 (set_mipsfpu_single_command, set_mipsfpu_double_command)
21 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
22 (_initialize_mips_tdep): Remove dead code.
23 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
24 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
25 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
26 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
27 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
28 MIPS_LAST_FP_ARG_REGNUM): Remove.
29
302002-06-11 Daniel Jacobowitz <drow@mvista.com>
31
32 * gdbserver/thread-db.c: New file.
33 * gdbserver/proc-service.c: New file.
34 * gdbserver/acinclude.m4: New file.
35 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
36 proc-service.o, and thread-db.o.
37 (linux-low.o): Add USE_THREAD_DB.
38 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
39 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
40 * gdbserver/aclocal.m4: Regenerated.
41 * gdbserver/config.in: Regenerated.
42 * gdbserver/configure: Regenerated.
43 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
44 thread_db.h, and linux/elf.h headrs.
45 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
46 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
47 Check for -lthread_db and thread support.
48 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
49 PowerPC, and SuperH.
50 * gdbserver/i387-fp.c: Constify arguments.
51 * gdbserver/i387-fp.h: Likewise.
52 * gdbserver/inferiors.c: (struct thread_info): Renamed from
53 `struct inferior_info'. Remove PID member. Use generic inferior
54 list header. All uses updated.
55 (inferiors, signal_pid): Removed.
56 (all_threads): New variable.
57 (get_thread): Define.
58 (add_inferior_to_list): New function.
59 (for_each_inferior): New function.
60 (change_inferior_id): New function.
61 (add_inferior): Removed.
62 (remove_inferior): New function.
63 (add_thread): New function.
64 (free_one_thread): New function.
65 (remove_thread): New function.
66 (clear_inferiors): Use for_each_inferior and free_one_thread.
67 (find_inferior): New function.
68 (find_inferior_id): New function.
69 (inferior_target_data): Update argument type.
70 (set_inferior_target_data): Likewise.
71 (inferior_regcache_data): Likewise.
72 (set_inferior_regcache_data): Likewise.
73 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
74 (all_processes, stopping_threads, using_thrads)
75 (struct pending_signals, debug_threads, pid_of): New.
76 (inferior_pid): Replace with macro.
77 (struct inferior_linux_data): Remove.
78 (get_stop_pc, add_process): New functions.
79 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
80 Use add_process and add_thread.
81 (linux_attach_lwp): New function, based on old linux_attach. Use
82 add_process and add_thread. Set stop_expected for new threads.
83 (linux_attach): New function.
84 (linux_kill_one_process): New function.
85 (linux_kill): Kill all LWPs.
86 (linux_thread_alive): Use find_inferior_id.
87 (check_removed_breakpoints, status_pending_p): New functions.
88 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
89 Update. Use WNOHANG. Wait for cloned processes also. Update process
90 struct for the found process.
91 (linux_wait_for_event): New function.
92 (linux_wait): Use it. Support LWPs.
93 (send_sigstop, wait_for_sigstop, stop_all_processes)
94 (linux_resume_one_process, linux_continue_one_process): New functions.
95 (linux_resume): Support LWPs.
96 (REGISTER_RAW_SIZE): Remove.
97 (fetch_register): Use register_size instead. Call supply_register.
98 (usr_store_inferior_registers): Likewise. Call collect_register.
99 Fix recursive case.
100 (regsets_fetch_inferior_registers): Improve error message.
101 (regsets_store_inferior_registers): Add debugging.
102 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
103 (unstopped_p, linux_signal_pid): New functions.
104 (linux_target_ops): Add linux_signal_pid.
105 (linux_init_signals): New function.
106 (initialize_low): Call it. Initialize using_threads.
107 * gdbserver/regcache.c (inferior_regcache_data): Add valid
108 flag.
109 (get_regcache): Fetch registers lazily. Add fetch argument
110 and update all callers.
111 (regcache_invalidate_one, regcache_invalidate): New
112 functions.
113 (new_register_cache): Renamed from create_register_cache.
114 Return the new regcache.
115 (free_register_cache): Change argument to a void *.
116 (registers_to_string, registers_from_string): Call get_regcache
117 with fetch flag set.
118 (register_data): Make static. Pass fetch flag to get_regcache.
119 (supply_register): Call get_regcache with fetch flag clear.
120 (collect_register): Call get_regcache with fetch flag set.
121 (collect_register_as_string): New function.
122 * gdbserver/regcache.h: Update.
123 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
124 stderr.
125 Handle input interrupts while waiting for an ACK.
126 (input_interrupt): Use signal_pid method.
127 (getpkt): Flush after debug output and use stderr.
128 (outreg): Use collect_register_as_string.
129 (new_thread_notify, dead_thread_notify): New functions.
130 (prepare_resume_reply): Check using_threads. Set thread_from_wait
131 and general_thread.
132 (look_up_one_symbol): Flush after debug output.
133 * gdbserver/server.c (step_thread, server_waiting): New variables.
134 (start_inferior): Don't use signal_pid. Update call to mywait.
135 (attach_inferior): Update call to mywait.
136 (handle_query): Handle qfThreadInfo and qsThreadInfo.
137 (main): Don't fetch/store registers explicitly. Use
138 set_desired_inferior. Support proposed ``Hs'' packet. Update
139 calls to mywait.
140 * gdbserver/server.h: Update.
141 (struct inferior_list, struct_inferior_list_entry): New.
142 * gdbserver/target.c (set_desired_inferior): New.
143 (write_inferior_memory): Constify.
144 (mywait): New function.
145 * gdbserver/target.h: Update.
146 (struct target_ops): New signal_pid method.
147 (mywait): Removed macro, added prototype.
148
149 * gdbserver/linux-low.h (regset_func): Removed.
150 (regset_fill_func, regset_store_func): New.
151 (enum regset_type): New.
152 (struct regset_info): Add type field. Use new operation types.
153 (struct linux_target_ops): stop_pc renamed to get_pc.
154 Add decr_pc_after_break and breakpoint_at.
155 (get_process, get_thread_proess, get_process_thread)
156 (strut process_info, all_processes, linux_attach_lwp)
157 (thread_db_init): New.
158
159 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
160 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
161 (the_low_target): Add new members.
162 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
163 (i386_store_fpxregset): Constify.
164 (target_regsets): Add new kind identifier.
165 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
166 (i386_set_pc): Add debugging.
167 (i386_breakpoint_at): New function.
168 (the_low_target): Add new members.
169 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
170 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
171 (mips_breakpoint_at): New.
172 (the_low_target): Add new members.
173 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
174 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
175 (the_low_target): Add new members.
176 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
177 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
178 (the_low_target): Add new members.
179 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
180 identifier.
181
23aa4c72
ML
1822002-06-11 Michal Ludvig <mludvig@suse.cz>
183
184 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
185 (unwind_tmp_obstack_free, parse_frame_info)
186 (update_context, cfi_read_fp, cfi_write_fp)
187 (cfi_frame_chain, cfi_init_extra_frame_info)
188 (cfi_virtual_frame_pointer): Use the above function.
264d1763 189 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 190
70eb15a4
CV
1912002-06-11 Corinna Vinschen <vinschen@redhat.com>
192
193 * v850-tdep.c (v850_type_is_scalar): New function.
194 (v850_use_struct_convention): Match current gcc implementation
195 as close as possible.
196 (v850_push_arguments): Fix stack_offset handling. Don't write
197 struct_addr into register. This is done by v850_store_struct_return.
198 (v850_extract_return_value): Care for structs.
199 (v850_store_return_value): Ditto.
200 (v850_store_struct_return): Actually write address.
201
482a4d06
ML
2022002-06-11 Michal Ludvig <mludvig@suse.cz>
203
204 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
205 without debug information too.
206
d855c300
AC
2072002-06-10 Andrew Cagney <ac131313@redhat.com>
208
209 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
210 Make multi-arch pure.
211 * gdbarch.h, gdbarch.c: Re-generate.
212 * arm-tdep.c (arm_print_float_info): Update.
213 * arch-utils.h (default_print_float_info): Update.
214 * arch-utils.c (default_print_float_info): Update.
215 * infcmd.c (float_info): Update call.
216
dd12a101
AC
2172002-06-10 Andrew Cagney <ac131313@redhat.com>
218
219 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
220 the front of the initialize list.
221
101dcfbe
AC
2222002-06-10 Andrew Cagney <ac131313@redhat.com>
223
224 * infrun.c (struct inferior_status): Replace fields
225 selected_frame_address and selected_level with field
226 selected_frame_id.
227 (save_inferior_status): Update. Use get_frame_id.
228 (struct restore_selected_frame_args): Delete.
229 (restore_selected_frame): Update. Use frame_find_by_id.
230 (restore_inferior_status): Update.
231
232 * breakpoint.h (struct breakpoint): Change type of
233 watchpoint_frame to frame_id.
234 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
235 call to get_current_frame.
236 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
237 get_current_frame.
238 (watchpoint_check): Use frame_find_by_id.
239
240 * frame.h (record_selected_frame): Delete declaration.
241 * stack.c (record_selected_frame): Delete function.
242
243 * frame.h (struct frame_id): Define.
244 (get_frame_id): Declare.
245 (frame_find_by_id): Declare.
246 * frame.c (frame_find_by_id): New function.
247 (get_frame_id): New function.
248
304270b6
AV
2492002-06-10 Andrey Volkov <avolkov@transas.com>
250
251 * ser-e7kpc.c: Fix duplicated define and call of
252 _initialize_ser_e7000pc
253
2f2cf184
DJ
2542002-06-09 Daniel Jacobowitz <drow@mvista.com>
255
256 * signals/signals.c (target_signal_from_host): Fix #ifdef
257 SIGRTMIN case.
258 (do_target_signal_to_host): Likewise.
259
caaa3122
DJ
2602002-06-09 Daniel Jacobowitz <drow@mvista.com>
261
262 * mips-tdep.c (mips_find_abi_section): New function.
263 (mips_gdbarch_init): Call it.
264
6ac5df3a
MK
2652002-06-09 Mark Kettenis <kettenis@gnu.org>
266
267 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
268 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
269 after Andrew's 2002-06-08 gdbarch change.
270
82ea117a
MK
2712002-06-09 Mark Kettenis <kettenis@gnu.org>
272
273 * i386-linux-nat.c (suppy_gregset): Don't supply
274 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
275 register cache.
276 (fill_gregset): Don't fetch it under the same circumstances.
277
3c25f8c7
AC
2782002-06-09 Andrew Cagney <cagney@redhat.com>
279
280 * Makefile.in (callback_h): Define.
281 (remote_sim_h): Update path to remote-sim.h.
282 (remote-rdp.o): Add $(callback_h).
283 (remote-sim.o): Use $(callback_h).
284 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
285 * remote-rdp.c: Include "gdb/callback.h".
286
1029b7fa
MK
2872002-06-09 Mark Kettenis <kettenis@gnu.org>
288
289 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
290 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
291
616675d3
AC
2922002-06-08 Andrew Cagney <ac131313@redhat.com>
293
a3efda28
AC
294 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
295 * rdi-share/serpardr.c: Ditto.
296 * rdi-share/unixcomm.c: Ditto.
297 * rdi-share/serdrv.c: Ditto.
298 * rdi-share/hostchan.h: Ditto.
299 * rdi-share/hostchan.c: Ditto.
300 * rdi-share/host.h: Ditto.
301 * rdi-share/devsw.c: Ditto.
302
c5f10366
AC
303 * objfiles.h: Change type of obj_private to void pointer.
304 * pa64solib.c: Update copyright. Don't include "assert.h", use
305 strcmp instead of STREQ, use LONGEST, do not use PTR
306 * somsolib.c: Ditto.
307
616675d3
AC
308 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
309 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
310 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
311
e4b415d9
AC
3122002-06-08 Andrew Cagney <ac131313@redhat.com>
313
314 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
315 (default_get_saved_register): Delete function.
316 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
317 generic_unwind_get_saved_register.
318 * gdbarch.h, gdbarch.c: Re-generate.
319
ca0d0b52
AC
3202002-06-08 Andrew Cagney <ac131313@redhat.com>
321
322 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
323 generic_func_frame_chain_valid.
324 * gdbarch.h, gdbarch.c: Re-generate.
325 * blockframe.c (generic_func_frame_chain_valid): Only check
326 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
327 passing FP to PC_IN_CALL_DUMMY.
328 Fix PR gdb/360.
329
76860b5f
AC
3302002-06-08 Andrew Cagney <ac131313@redhat.com>
331
332 * gdbarch.sh (struct gdbarch_data): Add field init_p.
333 (register_gdbarch_data): Initialize init_p.
334 (gdbarch_data): Initialize data pointer using the init function.
335 (init_gdbarch_data): Delete function.
336 (gdbarch_update_p): Update.
337 (initialize_non_multiarch): Update.
338 (struct gdbarch): Add field initialized_p.
339 * gdbarch.h, gdbarch.c: Re-generate.
340
8dda9770
ML
3412002-06-07 Michal Ludvig <mludvig@suse.cz>
342
343 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
344 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
345 better do the things actually here.
346 * x86-64-tdep.c (x86_64_register_name2nr): New.
347 (x86_64_register_name): Renamed to x86_64_register_nr2name.
348 (x86_64_gdbarch_init): Respect the above change.
349 * x86-64-tdep.h (x86_64_register_name2nr)
350 (x86_64_register_nr2name): Add prototypes.
351 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
352
3d79a47c
MS
3532002-06-06 Michael Snyder <msnyder@redhat.com>
354
7bd91a28
MS
355 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
356 Delete extra braces and re-indent.
357 (d10v_store_return_value): Char return values
3d79a47c
MS
358 must be shifted over by one byte in R0.
359 (d10v_extract_return_value): Delete extra braces, re-indent.
360
095a4c96
EZ
3612002-06-06 Elena Zannoni <ezannoni@redhat.com>
362
363 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
364 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
365 (d10v_integer_to_address): Rewrite.
366 (d10v_frame_init_saved_regs): When reading fp and sp registers use
367 the d10v specific functions which take care of converting to the
368 correct space.
369
e8a77ca4
EZ
3702002-06-06 Elena Zannoni <ezannoni@redhat.com>
371
372 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
373 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
374
4f2e4a4f
AC
3752002-06-02 Andrew Cagney <ac131313@redhat.com>
376
377 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
378 includes.
379 * config/tm-linux.h: Ditto.
380 * config/alpha/tm-alphalinux.h: Ditto.
381 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
382 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
383 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
384 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
385 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
386 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
387 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
388 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
389 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
390 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
391 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
392 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
393 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
394 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
395 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
396 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
397 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
398 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
399 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
400 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
401 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
402 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
403 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
404 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
405 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
406 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
407 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
408 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
409 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
410 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
411 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
412 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
413 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
414 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
415 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
416 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
417 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
418
ae2ab2ce
AS
4192002-05-04 Aidan Skinner <aidan@velvet.net>
420
421 * ada-exp.tab.c: New file
422 * ada-exp.y: New file
423 * ada-lang.c: New file
424 * ada-lang.h: New file
425 * ada-lex.c: New file
426 * ada-lex.l: New file
427 * ada-tasks.c: New file
428 * ada-typeprint.c: New file
429 * ada-valprint.c: New file
430
0ddd0135
JT
4312002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
432
433 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
434 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
435
750fbacc
JT
4362002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
437
438 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
439 insetead of ppc-linux-tdep.o.
440 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
441 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
442
df94e18a
AC
4432002-06-02 Andrew Cagney <ac131313@redhat.com>
444
445 2002-05-07 Christian Groessler <chris@groessler.org>
446 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
447 bit register contents for little endian hosts.
448
1a38ab75
AC
4492002-06-01 Andrew Cagney <ac131313@redhat.com>
450
451 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
452 any maintainer.
453
8b1632ac
AC
4542002-06-01 Andrew Cagney <ac131313@redhat.com>
455
456 * gdbarch.h: Regenerate.
457
627054c8
AC
4582002-06-01 Andrew Cagney <ac131313@redhat.com>
459
460 * MAINTAINERS: Add everyone to write-after-approval list.
461
4f460812
AC
4622002-06-01 Andrew Cagney <ac131313@redhat.com>
463
464 * stack.c (frame_info): Use frame_register_unwind instead of
465 saved_regs. Mention when the SP is on the stack or in a register.
466
467 * frame.h (frame_register_unwind_ftype): Define. Document.
468 (struct frame_info): Add field register_unwind and
469 register_unwind_cache.
470 (frame_register_unwind): Declare.
471 (generic_unwind_get_saved_register): Declare.
472
473 * frame.c (frame_register_unwind): New function.
474 (generic_unwind_get_saved_register): New function.
475
476 * blockframe.c (generic_call_dummy_register_unwind): New function.
477 (frame_saved_regs_register_unwind): New function.
478 (set_unwind_by_pc): New function.
479 (create_new_frame): New function.
480 (get_prev_frame): New function.
481
de888f76
AC
4822002-05-30 Andrew Cagney <ac131313@redhat.com>
483
484 * a29k-share/: Delete directory.
485 * remote-vx29k.c: Delete file.
486
2f2c3626
JT
4872002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
488
489 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
490 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
491
9ce5c36a
JT
4922002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
493
494 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
495 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
496 (sparc64nbsd-nat.o)
497 (sparcnbsd-nat.o)
498 (sparcnbsd-tdep.o): New dependency lists.
499 * NEWS: Note new UltraSPARC NetBSD native configuration.
500 * configure.host (sparc64-*-netbsd*): New host.
501 * configure.tgt (sparc-*-netbsdelf*)
502 (sparc-*-netbsd*): Set gdb_target to nbsd.
503 (sparc64-*-netbsd*): New target.
504 * sparc64nbsd-nat.c: New file.
505 * sparcnbsd-nat.c: New file.
506 * sparcnbsd-tdep.c: New file.
507 * sparcnbsd-tdep.h: New file.
508 * config/sparc/nbsd.mt: New file.
509 * config/sparc/nbsd64.mh: New file.
510 * config/sparc/nbsd64.mt: New file.
511 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
512 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
513 (HOST_IPC): Remove.
514 * config/sparc/nbsdaout.mt: Remove.
515 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
516 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
517 (HOST_IPC): Remove.
518 * config/sparc/nbsdelf.mt: Remove.
519 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
520 sparc-nat.c compatiblity defines.
521 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
522 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
523 * config/sparc/tm-nbsd64.h: New file.
524 * config/sparc/tm-nbsdaout.h: Remove.
525 * config/sparc/xm-nbsd.h: Remove.
526
ef3cf062
JT
5272002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
528
529 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
530 * sparc-tdep.c: Include osabi.h.
531 (gdbarch_tdep): Add osabi member.
532 (_initialize_sparc_tdep): Use gdbarch_register.
533 (sparc_gdbarch_init): Use generic OS ABI framework.
534 (sparc_dump_tdep): New function.
535
ee8ff470
KB
5362002-05-30 Kevin Buettner <kevinb@redhat.com>
537
538 * corefile.c (do_captured_read_memory_integer): Return non-zero
539 result.
540 (safe_read_memory_integer): Copy result of memory read when
541 status is non-zero. Also, add comments.
542
7b112f9c
JT
5432002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
544
545 * Makefile.in (ppc_tdep_h): Define.
546 (ppc-linux-nat.o)
547 (ppc-linux-tdep.o)
548 (rs6000-tdep.o): Use $(ppc_tdep_h).
549 (ppc-sysv-tdep.o)
550 (ppcnbsd-nat.o)
551 (ppcnbsd-tdep.o): New dependency lists.
552 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
553 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
554 (ppc_linux_init_abi): New functions.
7b112f9c
JT
555 (ppc_sysv_abi_broken_use_struct_convention)
556 (ppc_sysv_abi_use_struct_convention)
557 (ppc_sysv_abi_push_arguments): Move to...
558 * ppc-sysv-tdep.c: ...here.
559 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
560 * rs6000-tdep.c (process_note_abi_tag_sections)
561 (get_elfosabi): Remove.
562 (rs6000_gdbarch_init): Use generic OS ABI framework.
563 (rs6000_dump_tdep): New function.
564 (_initialize_rs6000_tdep): Use gdbarch_register.
565 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
566 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
567 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
568 of ppc-linux-tdep.o.
569 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
570 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
571 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
572 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
573 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
574 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
575
480dd42a
JB
5762002-05-29 Jim Blandy <jimb@redhat.com>
577
578 * macroscope.c (default_macro_scope): Put `void' in empty argument
579 list.
580
4182591f
AC
5812002-05-29 Andrew Cagney <ac131313@redhat.com>
582
583 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
584 * arch-utils.c: Include "sim-regno.h".
585 * gdbarch.sh: Don't include "sim-regno.h".
586 * gdbarch.h, gdbarch.c: Regenerate.
587 * sim-regno.h (legacy_register_sim_regno): Move declaration from
588 here.
589 * arch-utils.h (legacy_register_sim_regno): To here.
590 * remote-sim.c (legacy_register_sim_regno): Move function from
591 here.
592 * arch-utils.c (legacy_register_sim_regno): To here.
593
8238d0bf
AC
5942002-05-28 Andrew Cagney <ac131313@redhat.com>
595
596 * sim-regno.h: New file.
597 * Makefile.in (sim_regno_h): Define.
598 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
599 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
600 (legacy_register_sim_regno): New function.
601 (one2one_register_sim_regno): New function.
602 (gdbsim_fetch_register): Rewrite.
603 (gdbsim_store_register): Only store a register when
604 REGISTER_SIM_REGNO is valid.
605 * d10v-tdep.c: Include "sim-regno.h".
606 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
607 (d10v_ts3_register_sim_regno): Ditto.
608 * gdbarch.sh: Include "sim-regno.h".
609 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
610 * gdbarch.h, gdbarch.c: Regenerate.
611 * arch-utils.h (default_register_sim_regno): Delete declaration.
612 * arch-utils.c (default_register_sim_regno): Delete function.
613
485721b1
JT
6142002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
615
616 * ppcnbsd-nat.c: Rewrite.
617 * ppcnbsd-tdep.c: New file.
618 * ppcnbsd-tdep.h: New file.
619 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
620 solib.o, and solib-svr4.o.
621 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
622 nbsd-tdep.o, and corelow.o.
623
697f244d
AC
6242002-05-28 Andrew Cagney <ac131313@redhat.com>
625
626 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
627 `tr' and `sed'. Mention that `broken' targets are not expected to
628 build.
629
f08caad1 6302002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
631
632 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
633 Let PC point right after the prologue before looking up symbols.
634
3139facc
MH
6352002-05-27 Martin M. Hunt <hunt@redhat.com>
636
637 * i386-tdep.c (i386_register_virtual_type): Return
638 builtin_type_vec128i for SSE registers.
639
640 * gdbtypes.h (builtin_type_vec128i): Declare.
641
642 * gdbtypes.c (build_builtin_type_vec128i): New function.
643 (builtin_type_v2_double, builtin_type_v4_int64): New types.
644 (builtin_type_vec128i): New type for SSE2 128-bit registers.
645 (build_gdbtypes): Initialize new builtin vector types.
646 (_initialize_gdbtypes): Register new vector types with gdbarch.
647
6e3ba3b8
JT
6482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
649
650 * MAINTAINERS: ns32k is not longer an obsolete candidate,
651 since it has been multi-arch'd.
652 * NEWS: Note that ns32k-*-* is now partial multi-arch.
653 Move Alpha and VAX multi-arch news entries to same section
654 as other multi-arch news.
655
93d5585d
JT
6562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
657
658 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
659 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
660 static. Rename some register numbers to put them in ns32k-tdep
661 private namespace.
662 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
663 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
664 functions.
665 (_initialize_ns32k_tdep): Use gdbarch_register.
666 * ns32k-tdep.h: New file.
667 * ns32knbsd-tdep.c: New file.
668 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
669 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
670 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
671 REGISTER_BYTES, REGISTER_BYTE): Remove.
672 * config/ns32k/tm-ns32k.h: New file.
673 * config/ns32k/tm-umax.h: Remove.
674
efb2c70e
JT
6752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
676
677 * ns32k-tdep.c (ns32k_saved_pc_after_call,
678 ns32k_store_struct_return, ns32k_extract_return_value,
679 ns32k_store_return_value, ns32k_extract_struct_value_address): New
680 functions.
681 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
682 ns32k_saved_pc_after_call.
683 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
684 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
685 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
686 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
687 ns32k_extract_struct_value_address.
688
7bcc927b
JT
6892002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
690
691 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
692 ns32k_fix_call_dummy): New.
693 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
694 ns32k_call_dummy_words.
695 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
696 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
697 CALL_DUMMY_NARGS): Remove.
698 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
699
78f9d765
JT
7002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
701
702 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
703 ns32k_frame_saved_pc, ns32k_frame_args_address,
704 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
705 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
706 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
707 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
708 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
709 (BREAKPOINT): Remove..
710 (FRAME_CHAIN): Define as ns32k_frame_chain.
711 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
712 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
713 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
714 (FRAME_FIND_SAVED_REGS): Remove.
715 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
716 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
717 (POP_FRAME): Define as ns32k_pop_frame.
718
f2c762e0
JT
7192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
720
721 * ns32k-tdep.c (ns32k_register_byte_32082,
722 ns32k_register_byte_32382, ns32k_register_raw_size,
723 ns32k_register_virtual_size, ns32k_register_virtual_type): New
724 functions.
725 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
726 ns32k_register_byte_32382.
727 * config/ns32k/tm-umax.h: Update copyright years.
728 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
729 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
730 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
731 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
732 (ns32k_get_enter_addr): Fix prototype.
733
af137673
JT
7342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
735
736 * ns32k-tdep.c: Update copyright years.
737 (ns32k_register_name_32082): New function.
738 (ns32k_register_name_32382): Ditto.
739 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
740 (REGISTER_NAME): Define as ns32k_register_name_32382.
741 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
742 (REGISTER_NAME): Define as ns32k_register_name_32082.
743
a8bc7b56
JB
7442002-05-24 Jim Blandy <jimb@redhat.com>
745
746 * dwarf2read.c (free_line_header): Use xfree, not free.
747
83a45910
JT
7482002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
749
750 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
751 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
752
0db71247
AC
7532002-05-23 Andrew Cagney <ac131313@redhat.com>
754
755 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
756
b9e5e4dd
AC
7572002-05-23 Andrew Cagney <ac131313@redhat.com>
758
759 From Ross Alexander at NEC Europe:
760 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
761
de530e84
MS
7622002-05-23 Michael Snyder <msnyder@redhat.com>
763
764 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
765 for input, rather than parse_and_eval_address.
766
b91b96f4
AC
7672002-05-23 Andrew Cagney <ac131313@redhat.com>
768
769 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
770 * Makefile.in (sim_d10v_h): Update definition.
771
8b279e7a
AC
7722002-05-24 Andrew Cagney <cagney@redhat.com>
773
774 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
775 change `2002-05-22 Michael Snyder' below.
776 (d10v_push_arguments): Ditto.
777 (d10v_extract_return_value): Ditto.
778
0a3d0425
JB
7792002-05-23 Jim Blandy <jimb@redhat.com>
780
781 * macrotab.c (check_for_redefinition): Don't complain if the new
782 definition is the same as the previous one. Take more arguments
783 to allow the comparison.
784 (macro_define_object, macro_define_function): Pass more arguments
785 to check_for_redefinition.
786
78eac43e
MS
7872002-05-22 Michael Snyder <msnyder@redhat.com>
788
789 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
790 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
791 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
792 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
793 Don't bail if return_pc is PC_IN_CALL_DUMMY.
794 Add a temp variable to save a call (and a memory read).
795 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
796 if possible (so that PC_IN_CALL_DUMMY will work).
797
9bc1edb8
CV
7982002-05-22 Corinna Vinschen <vinschen@redhat.com>
799
800 * MAINTAINERS: Remove status `OBSOLETE' from v850.
801
005ef3d2
ML
8022002-05-22 Michal Ludvig <mludvig@suse.cz>
803
804 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
805 fde->cie_ptr.
806 (dwarf2_build_frame_info): Corrected handling of eh_frame.
807 (dwarf2_build_frame_info): Add offset to fde->initial_location
808 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
809 (execute_stack_op): Change type of 'result' from ULONGEST to
810 CORE_ADDR.
005ef3d2 811
fcf4f891
JT
8122002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
813
814 * config/alpha/tm-nbsd.h: Include solib.h.
815
cfef91e4
JT
8162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
817
818 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
819 assumptions about the host's byte order.
820
9964235a
JT
8212002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
822
823 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
824 to dependency list.
825 * alphanbsd-tdep.c: Include solib-svr4.h.
826 * shnbsd-tdep.c: Ditto.
827
9eeef8ef
JT
8282002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
829
830 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
831 nbsd-tdep.h to dependency list.
832 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
833 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
834 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
835 nbsdaout.mh and nbsdelf.mh consistently.
836 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
837 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
838 nbsdaout.mt and nbsdelf.mh consistently.
839 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
840 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
841 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
842 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
843 a.out shared library stuff from here...
844 * config/nm-nbsdaout.h: ...to here.
845 * config/tm-nbsd.h: Remove.
846 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
847 * config/arm/nbsd.mh: Remove.
848 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
849 nbsd-tdep.o.
850 * config/arm/nbsdaout.mh: New file.
851 * config/arm/nbsdelf.mh: New file.
852 * config/arm/nm-nbsdaout.h: New file.
853 * config/i386/nbsd.mh: Remove.
854 * config/i386/nbsd.mt: Remove.
855 * config/i386/nbsdaout.mh: New file.
856 * config/i386/nbsdaout.mt: New file.
857 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
858 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
859 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
860 i386_register_u_addr): Remove.
861 * config/i386/nm-nbsdaout.h: New file.
862 * config/i386/nm-nbsdelf.h: Remove.
863 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
864 (USE_STRUCT_CONVENTION): Remove.
865 * config/i386/tm-nbsdaout.h: New file.
866 * config/i386/tm-nbsdelf.h: Remove.
867 * config/m68k/nbsd.mh: Remove.
868 * config/m68k/nbsd.mt: Remove.
869 * config/m68k/nbsdaout.mh: New file.
870 * config/m68k/nbsdaout.mt: New file.
871 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
872 * config/m68k/nm-nbsdaout.h: New file.
873 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
874 (IN_SOLIB_CALL_TRAMPOLINE): Define.
875 * config/ns32k/nbsd.mh: Remove.
876 * config/ns32k/nbsd.mt: Remove.
877 * config/ns32k/nbsdaout.mh: New file.
878 * config/ns32k/nbsdaout.mt: New file.
879 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
880 * config/ns32k/nm-nbsdaout.h: New file.
881 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
882 (IN_SOLIB_CALL_TRAMPOLINE): Define.
883 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
884 (SVR4_SHARED_LIBS): Remove.
885 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
886 * config/sparc/nbsd.mh: Remove.
887 * config/sparc/nbsd.mt: Remove.
888 * config/sparc/nbsdaout.mh: New file.
889 * config/sparc/nbsdaout.mt: New file.
890 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
891 * config/sparc/nbsdelf.mt: New file.
892 * config/sparc/nm-nbsdaout.h: New file.
893 * config/sparc/nm-nbsdelf.h: Remove.
894 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
895 * config/sparc/tm-nbsdaout.h: New file.
896
257ce470
JT
8972002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
898
899 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
900 mipsnbsd-tdep.c
901 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
902
76a6d5fe
JT
9032002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
904
905 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
906 shnbsd-nat.c.
907 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
908
45888261
JT
9092002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
910
911 * NEWS: Note new MIPS NetBSD native configuration.
912 * configure.host (mips*-*-netbsd*): New host.
913 * configure.tgt (mips*-*-netbsd*): New target.
914 * mipsnbsd-nat.c: New file.
915 * mipsnbsd-tdep.c: New file.
916 * mipsnbsd-tdep.h: New file.
917 * config/mips/nbsd.mh: New file.
918 * config/mips/nbsd.mt: New file.
919 * config/mips/nm-nbsd.h: New file.
920 * config/mips/tm-nbsd.h: New file.
921
70f80edf
JT
9222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
923
924 * Makefile.in (SFILES): Add osabi.c.
925 (COMMON_OBS): Add osabi.o.
926 (osabi.o): New dependency list.
927 * osabi.c: New file.
928 * osabi.h: New file.
929 * doc/gdbint.texinfo: Document new generic OS ABI framework.
930
931 * Makefile.in (alpha_tdep_h): Define and use instead of
932 alpha-tdep.h.
933 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
934 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
935 Remove.
936 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
937 * alpha-tdep.h: Include osabi.h.
938 (alpha_abi): Remove.
939 (gdbarch_tdep): Use generic OS ABI framework.
940 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
941 gdbarch_register_osabi.
942 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
943 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
944 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
945
946 * Makefile.in (sh_tdep_h): Add osabi.h.
947 * sh-tdep.h (sh_osabi): Remove.
948 (gdbarch_tdep): Use generic OS ABI framework.
949 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
950 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
951 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
952 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
953
954 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
955 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
956 gdbarch_register_osabi.
957 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
958 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
959 (get_elfosabi): Rename to...
960 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
961 ABI framework support routines.
962 (arm_gdbarch_init): Use generic OS ABI framework.
963 (arm_dump_tdep): Likewise.
964 (_initialize_arm_tdep): Likewise.
965 * arm-tdep.h: Include osabi.h.
966 (arm_abi): Remove.
967 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
968 osabi member.
969 (arm_gdbarch_register_os_abi): Remove prototype.
970 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
971 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
972
973 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
974 * mips-tdep.c: Include osabi.h.
975 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
976 OS ABI framework.
977
d194345b
KH
9782002-05-20 Kazu Hirata <kazu@cs.umass.edu>
979
980 * h8300-tdep.c: Fix formatting.
981
70c6b0d1
EZ
9822002-05-20 Elena Zannoni <ezannoni@redhat.com>
983
984 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
985 printing vector registers.
986
165b8e33
AC
9872002-05-19 Andrew Cagney <ac131313@redhat.com>
988
989 From Fernando Nasser:
990 * remote.c (remote_async_open_1): Re-throw the exception when the
991 connection fails.
992 (remote_cisco_open): Ditto.
993 (remote_open_1): Ditto.
994
36918e70
AC
9952002-05-19 Andrew Cagney <ac131313@redhat.com>
996
997 * remote.c (remote_start_remote_dummy): Add uiout parameter.
998 (remote_start_remote): Add uiout parameter. Pass through to
999 remote_start_remote_dummy.
1000 (remote_open_1): Use catch_exception instead of catch_errors.
1001 (remote_async_open_1): Ditto.
1002 (remote_cisco_open): Ditto.
1003
ae44c0c4
AC
10042002-05-19 Andrew Cagney <ac131313@redhat.com>
1005
1006 * remote.c (remote_start_remote): Replace PTR with void pointer.
1007 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1008 static.
1009
8efe637d
AC
10102002-05-18 Andrew Cagney <ac131313@redhat.com>
1011
1012 * gdb_indent.sh: Allow the script to be run in the sim directory.
1013
2f1b5984
MK
10142002-05-18 Mark Kettenis <kettenis@gnu.org>
1015
f0f625e2
MK
1016 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1017 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1018
2f1b5984
MK
1019 * corelow.c (core_open): Only call set_gdbarch_from_file if
1020 exec_bfd is NULL.
1021
fc974602
AV
10222002-05-17 Andrey Volkov <avolkov@transas.com>
1023
1024 * h8300-tdep.c: Add support of EXR register
1025 * config/h8300/tm-h8300.h: Ditto.
1026
906709f4
AV
10272002-05-17 Andrey Volkov <avolkov@transas.com>
1028
1029 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1030
6e591d68
AV
10312002-05-17 Andrey Volkov <avolkov@transas.com>
1032
1033 * h8300-tdep.c: Change literal regnums to REGNO.
1034
84f0252a
JB
10352002-05-17 Jim Blandy <jimb@redhat.com>
1036
e0e9281e
JB
1037 * NEWS: Note addition of macro support.
1038
84f0252a
JB
1039 Expand preprocessor macros in C expressions.
1040 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1041 (scan_macro_expansion, scanning_macro_expansion,
1042 finished_macro_expansion): New function declarations.
1043 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1044 variable declarations.
1045 * parser-defs.h (expression_context_pc): New declaration.
1046 * parse.c (expression_context_pc): New variable.
1047 (parse_exp_1): Set expression_context_pc, as well as
1048 expression_context_block.
1049 * c-exp.y (yylex): If we're not already reading the result of a
1050 macro expansion, try to macro-expand the next token. When we're
1051 done scanning a macro expansion, switch back to the mainline text.
1052 Commas and `if's in a macro's expansion don't terminate the input.
1053 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1054 (macro_original_text, macro_expanded_text,
1055 expression_macro_lookup_func, expression_macro_lookup_baton): New
1056 variables.
1057 (scan_macro_expansion, scanning_macro_expansion,
1058 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1059 c_preprocess_and_parse): New functions.
1060 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1061 c_preprocess_and_parse, instead of c_parse.
1062 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1063 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1064
1c509ca8
JR
1065Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1066
1067 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1068 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1069 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1070
2250ee0c
CV
10712002-05-17 Corinna Vinschen <vinschen@redhat.com>
1072
1073 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1074
ab3b8126
JT
10752002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1076
1077 * Makefile.in (sh_tdep_h): Define and use.
1078 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1079 register enum): Move to...
1080 * * sh-tdep.h: ...here.
1081 * sh-tdep.c: Include sh-tdep.h.
1082 * sh3-rom.c: Likewise.
1083 * shnbsd-tdep.c: Likewise.
1084
ed9d4749
MS
10852002-05-16 Michael Snyder <msnyder@redhat.com>
1086
1087 * arm-tdep.c: Spelling fix in comment.
1088
2e276125
JB
10892002-05-16 Jim Blandy <jimb@redhat.com>
1090
6821892e
JB
1091 Add commands for manually expanding macros and showing their
1092 definitions.
1093 * macrocmd.c, macroscope.c, macroscope.h: New files.
1094 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1095 (macroscope_h): New variable.
1096 (HFILES_NO_SRCDIR): Add macroscope.h.
1097 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1098 (macroscope.o, macrocmd.o): New rules.
1099
2e276125
JB
1100 Teach the Dwarf 2 reader to read macro information.
1101 * dwarf2read.c: #include "macrotab.h".
1102 (dwarf_macinfo_buffer): New variable.
1103 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1104 dwarf_macinfo_size.
1105 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1106 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1107 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1108 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1109 dwarf2_macro_spaces_in_definition): New complaints.
1110 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1111 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1112 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1113 the partial symbol table.
1114 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1115 from what's recorded in the partial symbol table.
1116 (read_file_scope): If the compilation unit has a
1117 `DW_AT_macro_info' attribute, read its macro information.
1118 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1119
2f53fe6c
DJ
11202002-05-16 Daniel Jacobowitz <drow@mvista.com>
1121
1122 Fix PR gdb/546
1123 * ser-tcp.c: Don't include <netinet/udp.h>.
1124
2be99286
SC
11252002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1126
1127 * MAINTAINERS: Update my email address.
1128
c9af212b 11292002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
1130
1131 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1132 include file of the same name.
1133
bf5f1a52
CV
11342002-05-16 Corinna Vinschen <vinschen@redhat.com>
1135
1136 * configure.tgt: Mark v850 as multi-arched.
1137 * config/v850/tm-v850.h: Remove file.
1138 * config/v850/v850.mt: Eliminate TM_FILE.
1139
435e042a
CV
11402002-05-16 Corinna Vinschen <vinschen@redhat.com>
1141
1142 * v850-tdep.c: Full multi-arch.
1143 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1144 Define GDB_MULTI_ARCH to 2.
1145
9819c6c8
PM
11462002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1147
1148 * p-exp.y (current_type): New static variable.
1149 Carries the type of the expression at the position that is parsed.
1150 (push_current_type, pop_current_type): Two new functions. Used
1151 to store/restore current_type in expression on specific tokens.
c9af212b
RE
1152 (search_field): New static variable. Set to one after parsing a point
1153 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
1154 (FIELDNAME): New token. After a point only a token belonging to
1155 current_type type definition is allowed.
1156 (all over token rules): reset and change current_type according
1157 to rules.
1158 (exp '[' rule): insert implicit array index field if
1159 exp is a pascal string type.
1160
3a06899a
CV
11612002-05-16 Corinna Vinschen <vinschen@redhat.com>
1162
1163 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1164 frame info. Use frame_info's saved_regs instead of matching member
1165 in extra_frame_info throughout.
1166 (v850_frame_init_saved_regs): New function.
1167 (v850_init_extra_frame_info): Move most functionality into
1168 v850_frame_init_saved_regs().
1169 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1170 (v850_frame_find_saved_regs): Remove declaration.
1171 (FRAME_FIND_SAVED_REGS): Remove definition.
1172 (v850_frame_init_saved_regs): Add declaration.
1173 (FRAME_INIT_SAVED_REGS): Add definition.
1174
6ed14b0e
CV
11752002-05-16 Corinna Vinschen <vinschen@redhat.com>
1176
1177 * v850-tdep.c: Begin multi-arch'ing v850.
1178 (v850_target_architecture_hook): Remove function.
1179 (v850_gdbarch_init): New function. Add code previously in
1180 v850_target_architecture_hook().
1181 (_initialize_v850_tdep): Don't set target_architecture_hook.
1182 Call register_gdbarch_init() instead.
1183
42725910
DJ
11842002-05-16 Daniel Jacobowitz <drow@mvista.com>
1185
1186 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1187 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1188 (fixup_class_method_type): Likewise.
1189
0bc68c49
DJ
11902002-05-15 Daniel Jacobowitz <drow@mvista.com>
1191
1192 From Martin Pool <mbp@samba.org>:
1193 * gdbserver/server.c (gdbserver_usage): New function.
1194 (main): Call it.
1195
99d9066e
JB
11962002-05-15 Jim Blandy <jimb@redhat.com>
1197
1198 Add macro structures to GDB's symbol tables. Nobody puts anything
1199 in them yet.
1200 * symtab.h (struct symtab): New member: `macro_table'.
1201 * buildsym.h (pending_macros): New global variable.
1202 * buildsym.c: #include "macrotab.h".
1203 (buildsym_init): Initialize `pending_macros'.
1204 (end_symtab): If we found macro information while reading a CU's
1205 debugging info, do build a symtab structure for it. Make the
1206 symtab point to the macro information, and clear the
1207 `pending_macros' pointer which held it while we were reading the
1208 debug info.
1209 (really_free_pendings): Free any pending macro table.
1210 * objfiles.h (struct objfile): New member: `macro_cache'.
1211 * objfiles.c (allocate_objfile): Set allocate and free functions
1212 for the macro cache's objstack.
1213 (free_objfile): Empty the macro cache's obstack.
1214 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1215 set new allocate and free functions for it.
1216 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1217 free functions for the macro cache's objstack. (Why is this
1218 function building its own objfile?)
1219 * symmisc.c (print_objfile_statistics): Print statistics on the
1220 macro bcache.
1221 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1222
c899585b
RE
12232002-05-15 Richard Earnshaw <rearnsha@arm.com>
1224
1225 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1226 (REGISTER_U_ADDR): Delete definition.
1227 (arm_register_u_addr): Delete declaration.
1228
a6cdd8c5
RE
12292002-05-15 Richard Earnshaw <rearnsha@arm.com>
1230
1231 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1232 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1233
fd3a5ca1
DJ
12342002-05-14 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1237 stop_at -> stop_pc.
1238
c97dcfc7
AC
12392002-05-14 Andrew Cagney <ac131313@redhat.com>
1240
1241 * regcache.c (register_valid): Revise comments refering to "Not
1242 available" and "unavailable".
1243 * frame.c (frame_register_read): Ditto.
1244 * findvar.c (value_of_register): Ditto.
1245
93021b7d
AC
12462002-05-15 Andrew Cagney <cagney@redhat.com>
1247
1248 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1249 (remote-sim.o): Update dependencies.
1250 (d10v-tdep.o): Specify dependencies.
1251 (sim_d10v_h): Define.
1252
a86bc61c
JB
12532002-05-14 Jim Blandy <jimb@redhat.com>
1254
1255 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1256 * macrotab.c (macro_lookup_inclusion, find_definition,
1257 new_macro_table): Same.
1258
1259 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1260 not `! strcmp ()'. This is a dubious improvement.
1261 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1262
1263 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1264 although it's not necessary, to avoid a warning.
1265
2fdde8f8
DJ
12662002-05-14 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1269 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1270 TYPE_INSTANCE_FLAGS.
1271 (struct main_type): New.
1272 (struct type): Move most members to struct main_type. Change
1273 cv_type and as_type to new type_chain member. Add instance_flags.
1274 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1275 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1276 (finish_cv_type): Remove prototype.
1277 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1278 Set TYPE_CHAIN.
1279 (alloc_type_instance): New function.
1280 (smash_type): New function.
1281 (make_pointer_type, make_reference_type, make_function_type)
1282 (smash_to_member_type, smash_to_method_type): Call smash_type.
1283 (make_qualified_type): New function.
1284 (make_type_with_address_space): Call make_qualified_type.
1285 (make_cv_type): Likewise.
1286 (finish_cv_type): Remove unnecessary function.
1287 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1288 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1289 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1290 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1291 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1292 * hpread.c (hpread_read_struct_type): Likewise.
1293 * stabsread.c (read_struct_type): Likewise.
1294
843fedf4
EZ
12952002-05-14 Elena Zannoni <ezannoni@redhat.com>
1296
1297 * configure.tgt: Add a catch all sh* target, for cases like
1298 sh[2,3,4]-elf and sh-hms.
1299
05a6c72c
KS
13002002-05-14 Keith Seitz <keiths@redhat.com>
1301
1302 * event-loop.c (create_file_handler): Don't do anything but
1303 update data when we are given a fd which we are already
1304 monitoring.
1305
5d085aaf
ML
13062002-05-14 Michal Ludvig <mludvig@suse.cz>
1307
1308 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1309 (update_context): Use __func__ in warnings.
1310
9db8d71f
DJ
13112002-05-14 Daniel Jacobowitz <drow@mvista.com>
1312
1313 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1314 and tcp_close to net_open and net_close.
1315 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1316 using UDP if requested. Don't try to disable Nagle on UDP
1317 sockets.
1318 * remote.c (remote_serial_open): New function. Warn about UDP.
1319 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1320
5dbc6baa
EZ
13212002-05-13 Elena Zannoni <ezannoni@redhat.com>
1322
1323 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1324
cc3023f7
EZ
13252002-05-13 Elena Zannoni <ezannoni@redhat.com>
1326
1327 * configure.tgt: Remove sh-hms target.
1328 * MAINTAINERS: Don't list sh-hms as a separate target.
1329
ec2bcbe7
JB
13302002-05-13 Jim Blandy <jimb@redhat.com>
1331
1332 Add first preprocessor macro-expansion files.
1333 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1334 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1335 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1336 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1337 (COMMON_OBS): Add macrotab.o, macroexp.o.
1338 (macroexp.o, macrotab.o): New rules.
1339
6d531722
AC
13402002-05-13 Andrew Cagney <ac131313@redhat.com>
1341
1342 * config/m88k/tm-m88k.h: Update copyright.
1343 (m88k_target_write_pc): Declare
1344 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1345 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1346 (SHIFT_INST_REGS): Update definition.
1347 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1348 using old definition of TARGET_WRITE_PC.
1349 * regcache.c (generic_target_write_pc): Delete code handling
1350 NNPC_REGNUM.
1351 * gdbarch.sh (NNPC_REGNUM): Delete.
1352 * gdbarch.h, gdbarch.c: Regenerate.
1353
3e3f2739
RE
13542002-05-13 Richard Earnshaw <rearnsha@arm.com>
1355
1356 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1357 builtin reg number.
1358
0004e5a2
DJ
13592002-05-13 Daniel Jacobowitz <drow@mvista.com>
1360
1361 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1362 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1363 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1364 access macros.
1365 * c-typeprint.c (cp_type_print_method_args): Likewise.
1366 (c_type_print_args): Likewise.
1367 * d10v-tdep.c (d10v_push_arguments): Likewise.
1368 (d10v_extract_return_value): Likewise.
1369 * expprint.c (print_subexp): Likewise.
1370 * gdbtypes.c (lookup_primitive_typename): Likewise.
1371 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1372 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1373 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1374 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1375 (TYPE_VECTOR): Likewise.
1376 * hpread.c (hpread_read_struct_type)
1377 (fix_static_member_physnames, fixup_class_method_type)
1378 (hpread_type_lookup): Likewise.
1379 * mdebugread.c (parse_symbol, parse_type): Likewise.
1380 * p-lang.c (is_pascal_string_type): Likewise.
1381 * valops.c (hand_function_call): Likewise.
1382 * x86-64-tdep.c (classify_argument): Likewise.
1383
1384 * hpread.c (hpread_read_function_type)
1385 (hpread_read_doc_function_type): Call replace_type.
1386 * dstread.c (create_new_type): Delete.
1387 (decode_dst_structure, process_dst_function): Call alloc_type.
1388 Use type access macros.
1389
dff95cc7
MK
13902002-05-12 Mark Kettenis <kettenis@gnu.org>
1391
1392 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1393 the're not supported by the current architecture.
1394 (i387_fill_fxsave): Likewise.
1395
bbcd32ad
FF
13962002-05-12 Fred Fish <fnf@redhat.com>
1397
1398 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1399 sect_index_xxx members to index the first slot in section_offsets
1400 if all of the section_offsets are zero.
1401
89cf4787
MK
14022002-05-12 Mark Kettenis <kettenis@gnu.org>
1403
1404 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1405 checked in with last change.
1406
1f77ffc5
MK
14072002-05-12 Mark Kettenis <kettenis@gnu.org>
1408
1409 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1410 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1411 config.sub.
1412
89b8b4a9
DJ
14132002-05-12 Daniel Jacobowitz <drow@mvista.com>
1414
1415 * Makefile.in: Update dependencies.
1416
14a5e767
AC
14172002-05-11 Andrew Cagney <ac131313@redhat.com>
1418
1419 * language.c (local_hex_string_custom): Simplify. Do not depend
1420 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1421
1422 * memattr.c (mem_info_command): Replace calls to
1423 longest_local_hex_string and longest_local_hex_string_custom.
1424 * buildsym.c (make_blockvector): Ditto.
1425 * solib.c (info_sharedlibrary_command): Ditto.
1426 * tracepoint.c (tracepoints_info): Ditto.
1427 * symtab.c (print_msymbol_info): Ditto.
1428
1429 * language.c (local_hex_string): Delete.
1430 (local_hex_string_custom): Delete.
1431 (longest_local_hex_string): Rename to local_hex_string.
1432 (longest_local_hex_string_custom): Rename to
1433 local_hex_string_custom.
1434 * language.h (local_hex_string): Change parameter type to LONGEST.
1435 (local_hex_string_custom): Ditto.
1436 (longest_local_hex_string): Delete declaration.
1437 (longest_local_hex_string_custom): Ditto.
1438
1439 * solib.c: Update copyright.
1440 * memattr.c: Update copyright.
1441
13d01224
AC
14422002-05-11 Andrew Cagney <ac131313@redhat.com>
1443
1444 * arch-utils.h (legacy_register_to_value): Declare.
1445 (legacy_value_to_register): Declare.
1446 (legacy_convert_register_p): Declare.
1447 * arch-utils.c (legacy_register_to_value): New function.
1448 (legacy_value_to_register): New function.
1449 (legacy_convert_register_p): New function.
1450
1451 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1452 (VALUE_TO_REGISTER): Define.
1453 (CONVERT_REGISTER_P): Define.
1454 * gdbarch.h, gdbarch.c: Regenerate.
1455
1456 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1457 VALUE_TO_REGISTER.
1458 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1459 CONVERT_REGISTER_P.
1460
4a1970e4
DJ
14612005-05-11 Daniel Jacobowitz <drow@mvista.com>
1462 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1463
1464 * Makefile.in: Update dependencies for valops.c.
1465 * valops.c: Include "gdb_assert.h".
1466 (typecmp): Skip THIS parameter to methods.
1467 (find_method_list): Remove static_memfuncp argument,
1468 update callers. Check for stub methods.
1469 (find_value_oload_method_list): Don't set *static_memfuncp.
1470 (find_overload_match): Don't check for stub methods. Assert
1471 that methods are not stubbed. Handle static methods.
1472 (value_find_oload_method_list): Remove static_memfuncp argument.
1473 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1474 to the argument list for static stub methods.
1475 * value.h (value_find_oload_method_list): Update prototype.
1476
b2e75d78
AC
14772002-05-11 Andrew Cagney <ac131313@redhat.com>
1478
1479 * arch-utils.h (generic_register_size): Declare.
1480 (generic_register_raw_size, generic_register_virtual_size): Delete
1481 declarations.
1482 * arch-utils.c (generic_register_raw_size): Delete.
1483 (generic_register_size): New function.
1484 (generic_register_virtual_size): Delete.
1485
1486 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1487 default generic_register_size.
1488 * gdbarch.h, gdbarch.c: Re-generate.
1489
1490 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1491 register_virtual_size.
1492 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1493 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1494
451fbdda
AC
14952002-05-11 Andrew Cagney <ac131313@redhat.com>
1496
1497 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1498 * gdbarch.h, gdbarch.c: Regenerate.
1499 * gnu-v3-abi.c: Update copyright.
1500 (vtable_address_point_offset): Update.
1501 (gnuv3_rtti_type): Update.
1502 (gnuv3_baseclass_offset): Update.
1503 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1504 (init_fetch_link_map_offsets): Update.
1505 * remote.c (get_remote_state): Update.
1506
6d2f5cea
DJ
15072002-05-11 Daniel Jacobowitz <drow@mvista.com>
1508
1509 * TODO: Remove value_headof/value_from_vtable_info comment.
1510 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1511 * values.c (value_headof, value_from_vtable_info): Delete.
1512 * value.h (value_from_vtable_info): Delete prototype.
1513
d2324da4
AC
15142002-05-11 Andrew Cagney <ac131313@redhat.com>
1515
1516 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1517 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1518 $(gdb_regex_h).
1519 (gdb_assert_h): Define.
1520 (gdb_wait_h): Define.
1521 (gdb_regex_h): Define.
1522
5c717440
DJ
15232002-05-11 Daniel Jacobowitz <drow@mvista.com>
1524
1525 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1526 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1527
6c7861b3
JT
15282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1529
1530 * nbsd-tdep.c: Fix comment.
1531
ea5bc2a6
JT
15322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1533
1534 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1535 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1536 (nbsd-tdep.o): New dependency list.
1537 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1538 nbsd-tdep.h.
1539 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1540 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1541 * nbsd-tdep.c: New file.
1542 * nbsd-tdep.h: New file.
1543 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1544 nbsd-tdep.h.
1545 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1546 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1547 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1548 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1549
b28da865
JT
15502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1551
1552 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1553 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1554 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1555 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1556 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1557 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1558
4b8ff1fa
JT
15592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1560
1561 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1562 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1563 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1564 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1565 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1566 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1567 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1568
dfe6eb1f
JT
15692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1570
1571 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1572 fetch_elfcore_registers to...
1573 * i386nbsd-tdep.c: ...here.
1574 (i386nbsd_use_struct_convention): Rename to...
1575 (i386nbsd_aout_use_struct_convention): ...this.
1576 (i386nbsd_supply_reg): New function.
1577 (i386nbsd_fill_reg): New function.
1578 (fetch_core_registers): Use i386nbsd_supply_reg.
1579 (fetch_elfcore_registers): Likewise.
1580 (_initialize_i386nbsd_tdep): New function.
1581 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1582 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1583 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1584 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1585 (i386nbsd_aout_use_struct_convention): ...this.
1586
20cb8cda
JT
15872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1588
1589 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1590 (store_inferior_registers): Use shnbsd_fill_reg.
1591 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1592 sh_nbsd_supply_register): Collapse into...
1593 (shnbsd_supply_reg): ...this.
1594 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1595 (shnbsd_fill_reg): ...this.
1596 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1597 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1598 (fetch_core_registers): Use shnbsd_supply_reg.
1599 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1600 (sh_nbsd_core_fns): Rename to...
1601 (shnbsd_core_fns): ...this.
1602 (sh_nbsd_elfcore_fns): Rename to...
1603 (shnbsd_elfcore_fns): ...this.
1604 (sh_nbsd_init_abi): Rename to...
1605 (shnbsd_init_abi): ...this.
1606 (_initialize_sh_nbsd_tdep): Rename to...
1607 (_initialize_shnbsd_tdep): ...this.
1608 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1609 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1610 sh_nbsd_fill_register): Remove prototypes.
1611 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1612
e750d25e
JT
16132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1614
1615 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1616 (i387-nat.o): Delete dependency list.
1617 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1618 (x86-64-linux-nat.o): Likewise.
1619 * i387-nat.c: Delete file, moving contents to...
1620 * i387-tdep.c: ...here.
1621 * i387-nat.h: Rename...
1622 * i387-tdep.h: ...to this.
1623 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1624 * i386-linux-nat.c: Likewise.
1625 * i386bsd-nat.c: Likewise.
1626 * i386gnu-nat.c: Likewise.
1627 * i386nbsd-nat.c: Likewise.
1628 * i386v4-nat.c: Likewise.
1629 * x86-64-linux-nat.c: Likewise.
1630 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1631 * config/i386/go32.mh (NATDEPFILES): Likewise.
1632 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1633 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1634 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1635 * config/i386/linux.mh (NATDEPFILES): Likewise.
1636 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1637 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1638 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1639 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1640
1aee598a
JT
16412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1642
1643 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1644 (alphanbsd-nat.o): Remove dependency list.
1645 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1646 * alphanbsd-nat.c: Delete. Contents moved to...
1647 * alphanbsd-tdep.c: ...here.
1648 (_initialize_alphanbsd_tdep): Register core functions.
1649 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1650
12bcb0fe
JT
16512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1652
1653 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1654 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1655 (alphanbsd-nat.o): Likewise.
1656 (alphabsd-tdep.o): New dependency list.
1657 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1658 (fill_gregset): Use alphabsd_fill_reg.
1659 (supply_fpregset): Use alphabsd_supply_fpreg.
1660 (fill_fpregset): Use alphabsd_fill_fpreg.
1661 (fetch_inferior_registers): Use struct reg and struct fpreg
1662 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1663 and alphabsd_supply_fpreg.
1664 (store_inferior_registers): Use struct reg and struct fpreg
1665 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1666 and alphabsd_fill_fpreg.
1667 * alphabsd-tdep.c: New file.
1668 * alphabsd-tdep.h: New file.
1669 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
1670 (fetch_elfcore_registers): Use alphabsd_supply_reg and
1671 alphabsd_supply_fpreg.
1672 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
1673 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1674
361d1df0
EC
16752002-05-11 Eric Christopher <echristo@redhat.com>
1676
1677 * mips-tdep.c (mips_double_register_type): Fix thinko.
1678 (mips_single_register_type): Ditto.
1679 * MAINTAINERS: Add self.
1680
92dd7cee
MK
16812002-05-11 Mark Kettenis <kettenis@gnu.org>
1682
1683 * i387-nat.c (i387_supply_register, i387_fill_fsave,
1684 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
1685 right thing on architectures with different endianness and/or
1686 integer sizes.
1687
e27da16d
JT
16882002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
1689
1690 From Christian Limpach <chris@Pin.LU>
1691 * configure.in: Change sed expression which comments out
1692 NATDEPFILES to also comment out continuation lines.
1693 * configure: Regenerate.
1694
ddde02bd
EZ
16952002-05-10 Elena Zannoni <ezannoni@redhat.com>
1696
1697 * sh-tdep.c: Clean up code erroneously reintroduced by previous
1698 big patch.
1699
1c922164
EZ
17002002-05-10 Elena Zannoni <ezannoni@redhat.com>
1701
1702 * sh-tdep.c: Include correct file.
1703
283150cd
EZ
17042002-05-10 Elena Zannoni <ezannoni@redhat.com>
1705
1706 New support for sh64-elf (sh5) target.
1707
1708 * configure.tgt: For sh64-elf target, default to sh-elf.
1709
1710 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
1711 (struct gdbarch_tdep): Add new fields for new registers and ABI
1712 info.
361d1df0 1713
283150cd
EZ
1714 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
1715 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
1716 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
1717 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
1718 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
1719 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
1720 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
1721 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
1722 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
1723 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
1724 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
1725 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
1726 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
1727 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
1728 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
1729 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
1730 sh64_get_gdb_regnum, sh64_media_reg_base_num,
1731 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
1732 sign_extend, sh64_nofp_frame_init_saved_regs,
1733 sh64_init_extra_frame_info, sh64_get_saved_register,
1734 sh64_extract_struct_value_address, sh64_pop_frame,
1735 sh64_push_arguments, sh64_extract_return_value,
1736 sh64_store_return_value, sh64_show_media_regs,
1737 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
1738 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
1739 sh_sh64_register_virtual_type,
1740 sh_sh64_register_convert_to_virtual,
1741 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
1742 sh64_register_read, sh64_pseudo_register_write,
1743 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1744 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1745 sh64_do_pseudo_register, sh_compact_do_registers_info,
1746 sh64_do_registers_info, sh_gdbarch_init): New functions.
1747
3117ed25
EZ
17482002-05-10 Elena Zannoni <ezannoni@redhat.com>
1749
1750 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
1751
2654e6d4
DJ
17522002-05-10 Daniel Jacobowitz <drow@mvista.com>
1753
1754 * linespec.c (decode_line_1): Check for a double quote after
1755 a filename correctly.
1756
9ab3e532
JB
17572002-05-10 Jim Blandy <jimb@redhat.com>
1758
1759 Properly track the size of the current objfile's .debug_line section.
1760 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
1761 (DWARF_LINE_SIZE): New macro.
1762 (dwarf2_build_psymtabs_hard): Record the line section's size in
1763 the partial symbol table.
1764 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
1765 symbol table.
1766
126fa72d
PS
17672002-05-10 Petr Sorfa <petrs@caldera.com>
1768
1769 * ia64-tdep.c: Handle breakpoints on L instruction type
1770 in MLX instruction bundle by moving the breakpoint to
1771 the third slot (X instruction type) as L holds only data.
1772
1f077a3e
KB
17732002-05-10 Kevin Buettner <kevinb@redhat.com>
1774
1775 * dbxread.c (discarding_local_symbols_complaint): New complaint.
1776 (process_one_symbol): Complain about discarding local symbols
1777 due to a misplaced N_LBRAC entry.
1778
8120c9d5 17792002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
1780
1781 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
1782 * linespec.c (find_toplevel_char): '<' and '>' also increase and
1783 decrease the depth we are at, in the case of templates.
361d1df0 1784
67b2c998
DJ
17852002-05-09 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * mips-tdep.c (mips_float_register_type): New function.
1788 (mips_double_register_type): New function.
1789 (mips_print_register): Use them.
1790 (do_fp_register_row): Likewise.
1791
fd326606
DJ
17922002-05-09 Daniel Jacobowitz <drow@mvista.com>
1793
6609d9af 1794 * signals/signals.c (signals): Remove conditional compilation around
fd326606 1795 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 1796 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 1797
bef35864
MS
17982002-05-09 Michael Snyder <msnyder@redhat.com>
1799
1800 * remote-rdp.c (remote_rdp_can_run): Remove.
1801
c55a3f73
TT
18022002-05-09 Tom Tromey <tromey@redhat.com>
1803
1804 * jv-valprint.c (java_val_print): Handle `char' as a special case
1805 of TYPE_CODE_INT.
1806
b8d5e71d
MS
18072002-05-09 Michael Snyder <msnyder@redhat.com>
1808
1809 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1810 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 1811 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 1812 str r(0123),[sp,#nn].
361d1df0 1813 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
1814 order-independent by placing it in a loop.
1815
e2cd42dd
MS
18162002-05-06 Michael Snyder <msnyder@redhat.com>
1817
1818 * stabsread.c (read_type): Add recognition for new attribute:
1819 "@V;" means that an array type is actually a vector.
1820 This is analogous to the vector flag that's been added to dwarf2.
1821
3ce1502b
MK
18222002-05-09 Mark Kettenis <kettenis@gnu.org>
1823
1824 * i386-tdep.h (i386_abi): New enum.
1825 (struct gdbarch_tdep): Replace os_ident member with abi.
1826 (i386_gdbarch_register_os_abi): New prototype.
1827 * i386-tdep.c (i386_abi_names): New array.
1828 (process_note_abi_tag_sections): Removed.
1829 (process_note_sections): New function.
1830 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1831 (struct i386_abi_handler): New struct.
1832 (i386_abi_handler_list): New variable.
1833 (i386_gdbarch_register_os_abi): New function.
1834 (i386_gdbarch_init): Adapt for the changes given above.
1835
084c156a
DJ
18362002-05-08 Daniel Jacobowitz <drow@mvista.com>
1837
1838 * gregset.h: Say "GNU/Linux".
1839
6599f021
EZ
18402002-05-08 Elena Zannoni <ezannoni@redhat.com>
1841
1842 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1843 (build_gdbtypes): Build builtin_type_v2_float.
1844 (_initialize_gdbtypes): Register new builtin type.
1845
40af4b0c
AC
18462002-05-08 Andrew Cagney <ac131313@redhat.com>
1847
1848 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1849 (clear_gdbarch_swap): New function.
1850 (initialize_non_multiarch): Call.
1851 (gdbarch_update_p): Before calling init(), swap out and clear the
1852 existing architecture.
1853 * gdbarch.c: Regenerate.
1854
4fe84f46
JT
18552002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1856
1857 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1858 alphanbsd-tdep.c.
1859
4015edd1
JT
18602002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1861
1862 * sh-nbsd-nat.c: Rename to...
1863 * shnbsd-nat.c: ...this.
1864 * sh-nbsd-tdep.c: Rename to...
1865 * shnbsd-tdep.c: ...this.
1866 * sh-nbsd-tdep.h: Rename to...
1867 * shnbsd-tdep.h: ...this.
1868 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1869 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1870
0e2bd219
RE
18712002-05-08 Richard Earnshaw <rearnsha@arm.com>
1872
1873 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1874 concatenation for command help messages.
1875
13a38d45
JT
18762002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1877
1878 * NEWS: Note new sh*-*-netbsdelf* configuration.
1879 * configure.host: Set gdb_host_cpu to sh for all sh*.
1880 (sh*-*-netbsdelf*): New host.
1881 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1882 (sh*-*-netbsdelf*): New target.
1883 * sh-nbsd-nat.c: New file.
1884 * sh-nbsd-tdep.c: New file.
1885 * sh-nbsd-tdep.h: New file.
1886 * config/sh/nbsd.mh: New file.
1887 * config/sh/nbsd.mt: New file.
1888 * config/sh/nm-nbsd.h: New file.
1889 * config/sh/tm-nbsd.h: New file.
1890
d658f924
JT
18912002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1892
1893 * sh-tdep.c (sh_osabi_names): Declare.
1894 (process_note_abi_tag_sections): New function.
1895 (get_elfosabi): Ditto.
1896 (sh_gdbarch_register_os_abi): Ditto.
1897 (sh_dump_tdep): Ditto.
1898 _initialize_sh_tdep): Use gdbarch_register to register
1899 sh_gdbarch_init and sh_dump_tdep.
1900 * config/sh/tm-sh.h (sh_osabi): Declare.
1901 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1902
848cfffb
AC
19032002-05-07 Andrew Cagney <ac131313@redhat.com>
1904
1905 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1906 (thumb_scan_prologue): Ditto.
1907 (arm_find_callers_reg): Ditto.
1908 (arm_frame_chain): Ditto.
1909 (arm_init_extra_frame_info): Ditto.
1910 (arm_frame_saved_pc): Ditto.
1911 (arm_pop_frame): Ditto.
1912 (arm_push_return_address): New function.
1913 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1914 call_dummy_location, call_dummy_breakpoint_offset_p,
1915 call_dummy_breakpoint_offset, call_dummy_p,
1916 call_dummy_stack_adjust_p, call_dummy_words,
1917 sizeof_call_dummy_words, call_dummy_start_offset,
1918 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1919 call_dummy_address, push_return_address and push_dummy_frame for
1920 generic dummy frames.
1921
e7d717c0
JT
19222002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1923
1924 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1925 size computation for alloca.
1926 (sh_fp_frame_init_saved_regs): Likewise.
1927
7bbcf283
RE
19282002-05-07 Richard Earnshaw <rearnsha@arm.com>
1929
1930 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1931 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 1932 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
1933 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1934 * remote-rdp.c (remote_rdp_fetch_register): Use
1935 ARM_MAX_REGISTER_RAW_SIZE.
1936 (remote_rdp_store_register): Likewise.
1937
4657573b
ML
19382002-05-07 Michal Ludvig <mludvig@suse.cz>
1939
361d1df0 1940 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
1941 added default labels to switch {} statements.
1942 * x86-64-tdep.c: Ditto.
1943 * x86-64-linux-nat.c: Ditto.
1944
010f3b2f
JT
19452002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1946
1947 * solib.h: Protect against multiple inclusion.
1948
debd256d
JB
19492002-05-06 Jim Blandy <jimb@redhat.com>
1950
9ab3e532
JB
1951 Add first preprocessor macro-expansion files.
1952 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1953 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1954 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1955 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1956 (COMMON_OBS): Add macrotab.o, macroexp.o.
1957 (macroexp.o, macrotab.o): New rules.
1958
debd256d
JB
1959 Separate the job of reading the line number info statement program
1960 header (...expialidocious) out into its own function.
1961 * dwarf2read.c (struct line_head, struct filenames, struct
1962 directories): Replace with...
1963 (struct line_header): New structure, containing the full
1964 contents of the statement program header, including the
1965 include directory and file name tables.
1966 (read_file_scope): If we have line number info, instead of just
1967 calling dwarf_decode_lines to do all the work, call
1968 dwarf_decode_line_header first to get a `struct line_header'
1969 containing the data in the statement program header, and then
1970 pass that to dwarf_decode_lines, which will pick up where that
1971 left off. Be sure to clean up the `struct line_header' object.
1972 (dwarf_decode_line_header, free_line_header, add_include_dir,
1973 add_file_name): New functions.
1974 (dwarf_decode_lines): Move all the code to read the statement
1975 program header into dwarf_decode_line_header. Take the line
1976 header it built as the first argument, instead of the offset to
1977 the compilation unit's line number info. Use the new `struct
1978 line_header' type instead of the old structures. No need to do
1979 cleanups here now, since we don't allocate anything.
1980 (dwarf2_statement_list_fits_in_line_number_section,
1981 dwarf2_line_header_too_long): New complaints.
1982
ac3aafc7
EZ
19832002-05-06 Elena Zannoni <ezannoni@redhat.com>
1984
1985 * gdbtypes.c (init_vector_type): New function.
1986 (build_builtin_type_vec128): Simplify the representation of SIMD
1987 registers.
1988 (build_gdbtypes): Initialize new builtin vector types.
1989 (_initialize_gdbtypes): Register new vector types with gdbarch.
1990 (builtin_type_v4_float, builtin_type_v4_int32,
1991 builtin_type_v8_int16, builtin_type_v16_int8,
1992 builtin_type_v2_int32, builtin_type_v4_int16,
1993 builtin_type_v8_int8): New (renamed) SIMD types.
1994
13e49980
MK
19952002-05-06 Mark Kettenis <kettenis@gnu.org>
1996
1997 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1998 (i387_fill_fxsave): Likewise.
1999
997b20b8
AO
20002002-05-05 Alexandre Oliva <aoliva@redhat.com>
2001
2002 * alpha-tdep.c (alpha_extract_return_value): Don't use
2003 non-constant array size in prototype.
2004
535c96ce
AC
20052002-05-04 Andrew Cagney <ac131313@redhat.com>
2006
2007 From Brian Taylor <briant at model dot com>:
2008 * ui-out.c (ui_out_field_core_addr): Use the function
2009 longest_local_hex_string_custom'to format addresses > 32 bits
2010 wide.
2011
2012 * ui-out.c (ui_out_field_core_addr): Update comment.
2013
bedfa57b
AC
20142002-05-04 Andrew Cagney <ac131313@redhat.com>
2015
2016 * stack.c (select_and_print_frame): Make static. Delete the
2017 parameter `level'.
2018 (func_command): Update call.
2019 (select_frame_command): Delete code computing the frame level.
2020 * frame.h (select_and_print_frame): Delete declaration.
2021
f621c63e
AC
20222002-05-04 Andrew Cagney <ac131313@redhat.com>
2023
2024 * sparc-tdep.c (sparc_get_saved_register): Comment why
2025 get_prev_frame call is safe.
2026
0f7d239c
AC
20272002-05-04 Andrew Cagney <ac131313@redhat.com>
2028
2029 * frame.h (select_frame): Delete level parameter.
2030 * stack.c (select_frame): Update. Use frame_relative_level to
2031 obtain the frame's level.
2032 (select_and_print_frame): Update call.
2033 (select_frame_command): Ditto.
2034 (up_silently_base): Ditto.
2035 (down_silently_base): Ditto.
2036 * ocd.c (ocd_start_remote): Ditto.
2037 * remote-rdp.c (remote_rdp_open): Ditto.
2038 * remote-mips.c (mips_initialize): Ditto.
2039 (common_open): Ditto.
2040 * remote-e7000.c (e7000_start_remote): Ditto.
2041 * m3-nat.c (select_thread): Ditto.
2042 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2043 (child_get_current_exception_event): Ditto.
2044 * varobj.c (varobj_create): Ditto.
2045 (varobj_update): Ditto.
2046 (c_value_of_root): Ditto.
2047 * tracepoint.c (finish_tfind_command): Ditto.
2048 * corelow.c (core_open): Ditto.
2049 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2050 * thread.c (info_threads_command): Ditto.
2051 (switch_to_thread): Ditto.
2052 * infrun.c (normal_stop): Ditto.
2053 (restore_selected_frame): Ditto.
2054 (restore_inferior_status): Ditto.
2055 * breakpoint.c (insert_breakpoints): Ditto.
2056 (watchpoint_check): Ditto.
2057 (bpstat_stop_status): Ditto.
2058 (do_enable_breakpoint): Ditto.
2059 * blockframe.c (flush_cached_frames): Ditto.
2060 (reinit_frame_cache): Ditto.
2061
71d6c7b1
AC
20622002-05-04 Andrew Cagney <ac131313@redhat.com>
2063
2064 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2065 maintainer.
2066
cda6c68a
JB
20672002-05-04 Jim Blandy <jimb@redhat.com>
2068
2069 * gdbtypes.c (replace_type): Doc fix.
2070
5c1c87f0
AC
20712002-05-04 Andrew Cagney <ac131313@redhat.com>
2072
2073 * valprint.c (strcat_longest): Delete commented out function.
2074 Update copyright.
2075
cd9bfe15
AC
20762002-05-04 Andrew Cagney <ac131313@redhat.com>
2077
2078 * MAINTAINERS: Mark a29k as deleted.
2079 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2080 Move new configurations to the top.
2081 * configure.tgt: Remove a29k.
2082 * config/a29k/tm-vx29k.h: Delete.
2083 * config/a29k/vx29k.mt: Delete.
2084 * config/a29k/tm-a29k.h: Delete.
2085 * config/a29k/a29k-udi.mt: Delete.
2086 * config/a29k/a29k.mt: Delete.
2087 * a29k-tdep.c: Delete.
2088 * remote-udi.c: Delete.
2089 * remote-mm.c: Delete.
2090 * remote-eb.c: Delete.
2091 * remote-adapt.c: Delete.
2092 * Makefile.in: Remove obsolete code.
2093 * gdbserver/Makefile.in: Ditto.
2094 * config/s390/s390x.mt: Ditto.
2095 * config/s390/s390.mt: Ditto.
2096 * config/sparc/sparclynx.mh: Ditto.
2097 * config/sparc/linux.mh: Ditto.
2098 * config/pa/hppaosf.mh: Ditto.
2099 * config/pa/hppabsd.mh: Ditto.
2100 * config/ns32k/nbsd.mt: Ditto.
2101 * config/mips/vr5000.mt: Ditto.
2102 * config/m68k/sun3os4.mh: Ditto.
2103 * config/m68k/nbsd.mt: Ditto.
2104 * config/m68k/m68klynx.mh: Ditto.
2105 * config/m32r/m32r.mt: Ditto.
2106 * config/i386/x86-64linux.mt: Ditto.
2107 * config/i386/nbsdelf.mt: Ditto.
2108 * config/i386/nbsd.mt: Ditto.
2109 * config/i386/i386lynx.mh: Ditto.
2110
bf0c5130
AC
21112002-05-04 Andrew Cagney <ac131313@redhat.com>
2112
2113 * target.c (debug_print_register): New function. Handle oversize
2114 registers.
2115 (debug_to_fetch_registers): Call.
2116 (debug_to_store_registers): Call.
2117
2ae1c2d2
JB
21182002-05-03 Jim Blandy <jimb@redhat.com>
2119
13a393b0
JB
2120 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2121 (read_type): Doc fix.
2122 * gdbtypes.c (replace_type): Doc fix.
2123
2ae1c2d2
JB
2124 * stabsread.c (multiply_defined_struct): New complaint.
2125 (read_struct_type): If the type we were passed isn't empty, or
2126 incomplete, don't read the new struct type into it; complain,
2127 and return the original type unchanged. Take a new `type_code'
2128 argument, which is the type code for the new type.
2129 (read_type): Rather than storing the type's type code here, pass
2130 it as an argument to read_struct_type, and let that take care of
2131 storing it. That way, we don't overwrite the original type code,
2132 so read_struct_type can use it to decide whether we're overwriting
2133 something we shouldn't.
2134 (complain_about_struct_wipeout): New function.
2135
8de9bdc4
AC
21362002-05-03 Andrew Cagney <ac131313@redhat.com>
2137
2138 * gdbarch.sh: Assert that gdbarch is non-NULL.
2139 * gdbarch.c: Regenerate.
2140
f773fdbb
JM
21412002-05-03 Jason Merrill <jason@redhat.com>
2142
2143 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2144 and return NULL.
2145
0e04a514
ML
21462002-05-03 Michal Ludvig <mludvig@suse.cz>
2147
2148 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2149 (x86_64_dwarf2gdb_regno_map_length),
2150 (x86_64_dwarf2_reg_to_regnum): Added.
2151 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2152 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2153 (_initialize_x86_64_tdep): Synced with the change above.
2154 (x86_64_skip_prologue): Reformulated message.
2155
065432a8
PM
21562002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2157
2158 * f-exp.y: Also use new prev_lexptr variable
2159 to improve error reporting. Based on Michael Snyder
2160 2002-04-24 dated patch to c-exp.y.
2161 * jv-exp.y: Likewise.
2162 * m2-exp.y: Likewise.
2163
a3162708
EZ
21642002-05-02 Elena Zannoni <ezannoni@redhat.com>
2165
2166 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2167 we are dealing with vectors.
2168
03620c38
PM
21692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2170
2171 * config/m68k/tm-nbsd.h: Obvious fix,
2172 correct machine name.
2173
6604db2e
PM
21742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2175
2176 * p-typeprint.c (pascal_type_print_base): Add support
2177 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2178
0906b739
PM
21792002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2180
2181 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2182 for fondamental pascal 'char' type.
2183
e2625b33
PM
21842002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2185
2186 * p-lang.h (is_pascal_string_type): Declaration changed,
2187 new sixth argument of type char ** added.
361d1df0 2188 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
2189 changed. Args length_pos, length_size, string_pos, char_size
2190 can now be NULL. New argument arrayname set to the field
2191 name of the char array. Return value set to char array
2192 field index plus one.
361d1df0 2193 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
2194 is_pascal_string_type function.
2195
cf17c188
AC
21962002-05-02 Andrew Cagney <cagney@redhat.com>
2197
2198 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2199 <cagney@redhat.com> change.
2200 * gdbarch.c: Regenerate.
2201
52bca491
AC
22022002-05-02 Andrew Cagney <cagney@redhat.com>
2203
2204 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2205 before probing for a new one. Detect errorenous gdbarch_init
2206 functions.
2207 * gdbarch.c: Regenerate.
2208
d5e72505
AC
22092002-05-01 Andrew Cagney <cagney@redhat.com>
2210
2211 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2212 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2213 * config/v850/tm-v850.h: Ditto. Update copyright.
2214
af566d9f
AC
22152002-04-30 Andrew Cagney <ac131313@redhat.com>
2216
2217 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2218 current_gdbarch.
2219
880d85fa
MS
22202002-04-30 Michael Snyder <msnyder@redhat.com>
2221
94c30b78
MS
2222 * arm-tdep.c: Whitespace clean-ups.
2223 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
2224 should have been removed as part of 4/24 change.
2225
6f5987a6
KB
22262002-04-30 Kevin Buettner <kevinb@redhat.com>
2227
2228 * rs6000-tdep.c: Added comment describing how fpscr register
2229 numbers were chosen.
2230
1a113c93
MS
22312002-04-30 Michael Snyder <msnyder@redhat.com>
2232
2233 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2234
9a6f53fe
EZ
22352002-04-29 Elena Zannoni <ezannoni@redhat.com>
2236
2237 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2238 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2239 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2240
11ed25ac
KB
22412002-04-29 Kevin Buettner <kevinb@redhat.com>
2242
2243 From Louis Hamilton <hamilton@redhat.com>:
2244 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2245 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2246 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2247 not bfd-private xcoff data, to determine wordsize.
2248 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2249
ae232405
AC
22502002-04-29 Andrew Cagney <ac131313@redhat.com>
2251
2252 GDB 5.2 released from 5.2 branch.
2253
91fd20f7
ML
22542002-04-29 Michal Ludvig <mludvig@suse.cz>
2255
2256 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2257 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2258 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 2259
2dc5091b
EZ
22602002-04-29 Elena Zannoni <ezannoni@redhat.com>
2261
2262 * rs6000-tdep.c (rs6000_extract_return_value,
2263 rs6000_store_return_value): Handle returning vectors.
2264 (rs6000_gdbarch_init): Use
2265 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2266 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2267 New function.
2268 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2269 vectors.
2270 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2271 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 2272
2b9848d8
PM
22732002-04-24 Pierre Muller <ics.u-strasbg.fr>
2274
2275 * hpread.c (hpread_psymtab_to_symtab_1,
2276 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2277 with fprintf_unfiltered (gdb_stderr,...).
2278
f8d17dc5
PM
22792002-04-24 Pierre Muller <ics.u-strasbg.fr>
2280
2281 * remote-array.c (printf_monitor, write_monitor,
361d1df0 2282 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
2283 Replace fprintf (stderr,...
2284 with fprintf_unfiltered (gdb_stderr,....
2285 * remote-es.c: Likewise.
2286 * remote-os9k.c: Likewise.
2287 * remote-st.c: Likewise.
2288
2f2f1ad1
AS
22892002-04-28 Andreas Schwab <schwab@suse.de>
2290
2291 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2292 linux-proc.o and gcore.o.
2293
b6779aa2
AC
22942002-04-26 Michal Ludvig <mludvig@suse.cz>
2295
2296 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2297 code without frame pointers.
2298
7e57f5f4
AC
22992002-04-26 Andrew Cagney <ac131313@redhat.com>
2300
2301 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2302 ON_STACK is needed.
2303
2ceb85d0
BE
23042002-04-26 Ben Elliston <bje@redhat.com>
2305
2306 * target.c (do_xfer_memory): Correct reference to the new option
2307 "trust-readonly-sections".
2308
f5f8a009
EZ
23092002-04-26 Elena Zannoni <ezannoni@redhat.com>
2310
2311 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2312 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2313 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2314 vectors.
2315 (read_array_type): Record the fact that this array type is really a
2316 vector (i.e. are passed in by value).
2317
5868c862
JT
23182002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2319
2320 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2321 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2322 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2323 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2324 * alpha-linux-tdep.c: Include frame.h.
2325 (alpha_linux_sigcontext_addr): New function.
2326 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2327 alpha_linux_sigcontext_addr.
2328 * alpha-osf1-tdep.c: Include gdbcore.h.
2329 (alpha_osf1_sigcontext_addr): New function.
2330 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2331 alpha_osf1_sigcontext_addr.
2332 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2333 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2334
bfb01f37
AC
23352002-04-26 Andrew Cagney <ac131313@redhat.com>
2336
361d1df0 2337 * stack.c (selected_frame_level):
bfb01f37
AC
2338 (select_frame): Do not set selected_frame_level.
2339 * frame.h (selected_frame_level): Delete declaration.
2340
15813d3f
AC
23412002-04-26 Andrew Cagney <ac131313@redhat.com>
2342
2343 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2344 convert_from_func_ptr-addr when AIX / PowerOpen.
2345
6096c27a
AC
23462002-04-25 Andrew Cagney <ac131313@redhat.com>
2347
2348 * valops.c (hand_function_call): Call
2349 generic_save_call_dummy_addr.
2350 * frame.h (generic_save_call_dummy_addr): Declare.
2351 * blockframe.c (struct dummy_frame): Add fields call_lo and
2352 call_hi.
2353 (generic_find_dummy_frame): Check for PC in range call_lo to
2354 call_hi instead of entry_point_address.
2355 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2356 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2357 (generic_save_call_dummy_addr): New function.
2358
f510d44e
DM
23592002-04-24 David S. Miller <davem@redhat.com>
2360
2361 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2362 sparc_skip_prologue.
2363 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2364 information to find prologue when possible.
2365 (sparc_prologue_frameless_p): Call examine_prologue directly.
2366 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2367 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2368 second argument.
2369 (SKIP_PROLOGUE): Likewise.
2370
15d72a92
JT
23712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2372
2373 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2374 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2375 indicate that the condition it was testing is always true.
2376 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2377 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2378 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2379
accc6d1f
JT
23802002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2381
2382 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2383 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2384 tdep->jb_pc and tdep->jb_elt_size.
2385 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2386 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2387 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2388 * alpha-nat.c (get_longjmp_target): Remove.
2389 (JB_ELEMENT_SIZE): Ditto.
2390 (JB_PC): Ditto.
2391 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2392 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2393 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2394 to alpha_get_longjmp_target.
2395 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2396 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2397 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2398
1bfdc549
AC
23992002-04-25 Andrew Cagney <ac131313@redhat.com>
2400
2401 * README: Update to GDB 5.2.
2402
1bd316f0
AC
24032002-04-25 Andrew Cagney <ac131313@redhat.com>
2404
2405 * gdbarch.sh (LC_ALL): Set to `c'.
2406
2e5ff58c
TR
24072002-04-25 Theodore A. Roth <troth@verinet.com>
2408
2409 * avr-tdep.c: Ran through gdb_indent.sh.
2410
e33ce519
TR
24112002-04-25 Theodore A. Roth <troth@verinet.com>
2412
2413 * MAINTAINERS: Add myself as AVR maintainer.
2414 * NEWS: Note new target avr.
2415
8818c391
TR
24162002-04-25 Theodore A. Roth <troth@verinet.com>
2417
2418 * Makefile.in: Add support for AVR target.
2419 * configure.tgt: Add support for AVR target.
2420 * avr-tdep.c: New file
2421 * config/avr/avr.mt: New file.
2422
79509c2d
TR
24232002-04-25 Theodore A. Roth <troth@verinet.com>
2424
2425 * MAINTAINERS: Add myself to write-after-approval.
2426
dac8068e
PM
24272002-04-24 Pierre Muller <ics.u-strasbg.fr>
2428
2429 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2430 with fprintf_unfiltered (gdb_stderr,....
2431
25bf3106
PM
24322002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2433
2434 Fix PR gdb/508.
2435 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2436
24467a86
PM
24372002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2438
2439 * p-exp.y: Also use new prev_lexptr variable
2440 to improve error reporting. Based on Michael Snyder
2441 2002-04-24 dated patch to c-exp.y.
2442
95b80706
JT
24432002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2444
2445 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2446 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2447 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2448 to 0.
2449 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2450 and struct value.
2451 (FUNCTION_START_OFFSET): Remove.
2452 (BREAKPOINT): Ditto.
2453
e90cc612
JT
24542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2455
2456 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2457 * NEWS: Ditto.
2458
6c72f9f9
JT
24592002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2460
2461 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2462 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2463 alpha_linux_pc_in_sigtramp.
2464 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2465 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2466 alpha_osf1_pc_in_sigtramp.
2467 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2468 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2469 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2470 alphafbsd_pc_in_sigtramp.
2471 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2472 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2473 alphanbsd_pc_in_sigtramp.
2474 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2475 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2476
5e4f3379
JT
24772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2478
2479 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2480
da8ca43d
JT
24812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2482
2483 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2484 alphanbsd-tdep.c.
2485 (alphanbsd-nat.o): New dependency list.
2486 (alphanbsd-tdep.o): Ditto.
2487 * NEWS: Note new native NetBSD/alpha configuration.
2488 * alphanbsd-nat.c: New file.
2489 * alphanbsd-tdep.c: Ditto.
2490 * configure.host (alpha*-*-netbsd*): New host.
2491 * configure.tgt (alpha*-*-netbsd*): New target.
2492 * config/alpha/nbsd.mh: New file.
2493 * config/alpha/nbsd.mt: Ditto.
2494 * config/alpha/nm-nbsd.h: Ditto.
2495 * config/alpha/tm-nbsd.h: Ditto.
2496
36a6271d
JT
24972002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2498
2499 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2500 (alpha-osf1-tdep.o): New dependency list.
2501 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2502 and skip_sigtramp_frame members.
2503 * alpha-linux-tdep.c: Include gdbcore.h.
2504 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2505 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2506 * alpha-osf1-tdep.c: New file.
2507 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2508 alpha-osf1-dep.c.
2509 (alpha_frame_past_sigtramp_frame): New function.
2510 (alpha_dynamic_sigtramp_offset): Ditto.
2511 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2512 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2513 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2514 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2515 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2516 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2517 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2518 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2519 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2520 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2521 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2522 to find_solib_trampoline_target.
2523 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2524 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2525 (SKIP_TRAMPOLINE_CODE): Remove.
2526 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2527 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2528 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2529 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2530 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2531 (PROC_SIGTRAMP_MAGIC): Ditto.
2532 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2533 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2534 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2535 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2536 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2537
2f4bc57b
JT
25382002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2539
2540 * NEWS: Note that Alpha targets are now multi-arch.
2541
665132f9
MS
25422002-04-24 Michael Snyder <msnyder@redhat.com>
2543
2544 * parser-defs.h (prev_lexptr): New external variable.
2545 * parse.c (parse_exp_1): Set prev_lexptr to null before
2546 calling the language-specific parser.
2547 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2548 (yyerror): Use prev_lexptr in error reporting.
2549
32872fa7
DJ
25502002-04-24 Daniel Jacobowitz <drow@mvista.com>
2551
2552 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2553 * gregset.h: If FILL_FPXREGSET is defined, provide
2554 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2555 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2556 is defined, call fill_fpxregset.
2557
57e76fac
MS
25582002-04-24 Roland McGrath <roland@frob.com>
2559
2560 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2561 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2562 (supply_gregset, supply_fpregset): New functions.
2563
2564 * gnu-nat.c (gnu_find_memory_regions): New function.
2565 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2566 (gnu_xfer_memory): Add a cast.
2567
f43845b3
MS
25682002-04-24 Michael Snyder <msnyder@redhat.com>
2569
361d1df0 2570 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
2571 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2572 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 2573 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
2574 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2575 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2576
a0abec03
AC
2577Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2578
2579 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2580 NUM_PSEUDO_REGS can be used.
2581
d7bd68ca
AC
25822002-04-24 Andrew Cagney <ac131313@redhat.com>
2583
2584 * arch-utils.h: Update copyright.
2585
2586 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2587 * gdbarch.h, gdbarch.c: Re-generate.
2588
2589 * inferior.h (IN_SIGTRAMP): Delete definition.
2590 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2591 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2592
2593 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2594 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2595 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2596 (find_proc_framesize): Ditto.
2597 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2598 (alpha_init_extra_frame_info): Ditto.
2599 * infrun.c (handle_inferior_event): Ditto.
2600 (handle_inferior_event): Ditto.
2601 (check_sigtramp2): Ditto.
2602 * blockframe.c (create_new_frame): Ditto.
2603 (get_prev_frame): Ditto.
2604 * ppc-linux-tdep.c: Update comments.
2605 * i386-linux-tdep.c: Update comments.
2606 * breakpoint.c (bpstat_what): Update comment.
2607
d06f167a
ML
26082002-04-24 Michal Ludvig <mludvig@suse.cz>
2609
2610 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 2611 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
2612 ptrace() calls.
2613 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2614
4867e41e
DM
26152002-04-24 David S. Miller <davem@redhat.com>
2616
21d83aa5
DM
2617 * i960-tdep.c (register_in_window_p): New function.
2618 (i960_find_saved_register): Use it instead of
2619 REGISTER_IN_WINDOW_P.
2620 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2621
4867e41e
DM
2622 * symtab.h (find_stab_function_addr): Kill extern.
2623 * minsyms.c (find_stab_function_addr): Remove from here...
2624 * dbxread.c: ... to here, and mark it static.
2625
69cdf6a2
DM
26262002-04-20 David S. Miller <davem@redhat.com>
2627
2628 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2629 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2630
5a595886
DM
26312002-04-21 David S. Miller <davem@redhat.com>
2632
2633 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2634 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2635 (vx_write_register): Likewise.
2636
1da1a192
JB
26372002-04-23 J. Brobecker <brobecker@gnat.com>
2638
2639 * source.c (is_regular_file): New function.
2640 (openp): Check wether file to open is a regular file
2641 to avoid opening directories.
2642
baa6f10b
JT
26432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2644
2645 * findvar.c (extract_signed_integer): Cast printf argument
2646 to suppress format warning.
2647 (extract_unsigned_integer): Likewise.
2648 * infcmd.c (registers_info): Likewise.
2649 * top.c (get_prompt_1): Likewise.
2650 * valops.c (value_assign): Likewise.
2651 * valprint.c (print_decimal): Likewise.
2652
b2c4da81
L
26532002-04-22 H.J. Lu (hjl@gnu.org)
2654
2655 * c-exp.y (typebase): Support
361d1df0 2656
b2c4da81
L
2657 [long|long long|short] [signed|unsigned] [int|]
2658
2659 and
2660
2661 signed [long|long long|short] int
2662
f267bd6a
JT
26632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2664
2665 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
2666 and vax-tdep.h.
2667 * vax-tdep.h: New file.
2668 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
2669 Make several routines static.
2670 (vax_get_saved_register): New function.
2671 (vax_gdbarch_init): New function.
2672 (_initialize_vax_tdep): Register vax_gdbarch_init.
2673 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
2674 Remove macros now under the control of gdbarch.
2675
da3c6d4a
MS
26762002-04-22 Michael Snyder <msnyder@redhat.com>
2677
11d3b27d
MS
2678 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
2679 Some whitespace and coding standards tweaks.
da3c6d4a 2680
a33f7558
JT
26812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2682
2683 * vax-tdep.c: Include regcache.h.
2684 (vax_call_dummy_words): New.
2685 (sizeof_vax_call_dummy_words): New.
2686 (vax_fix_call_dummy): New function.
2687 (vax_saved_pc_after_call): Ditto.
2688 * config/vax/tm-vax.h: Don't include regcache.h.
2689 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
2690 (CALL_DUMMY): Remove.
2691 (CALL_DUMMY_WORDS): Define.
2692 (SIZEOF_CALL_DUMMY_WORDS): Define.
2693 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
2694
47a73475
MS
26952002-04-18 Michael Snyder <msnyder@redhat.com>
2696
2697 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
2698
52efde73
JT
26992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2700
2701 * vax-tdep.c (vax_frame_chain): New function.
2702 (vax_push_dummy_frame): Ditto.
2703 (vax_pop_frame): Ditto.
2704 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
2705 (FRAMELESS_FUNCTION_INVOCATION): Use
2706 generic_frameless_function_invocation_not.
2707 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
2708 (POP_FRAME): Use vax_pop_frame.
2709
ea74468c
JT
27102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2711
2712 * vax-tdep.c (vax_store_struct_return): New function.
2713 (vax_extract_return_value): Ditto.
2714 (vax_store_return_value): Ditto.
2715 (vax_extract_struct_value_address): Ditto.
2716 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
2717 vax_store_struct_return.
2718 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
2719 (STORE_RETURN_VALUE): Use vax_store_return_value.
2720 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
2721
5516aa92
JT
27222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2723
2724 * vax-tdep.c (vax_frame_saved_pc): New function.
2725 (vax_frame_args_address_correct): Ditto.
2726 (vax_frame_args_address): Ditto.
2727 (vax_frame_locals_address): Ditto.
2728 (vax_frame_num_args): Move code to be in proximity to
2729 other frame-related functions.
2730 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
2731 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
2732 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
2733 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
2734 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
2735
36af0b35
L
27362002-04-22 H.J. Lu (hjl@gnu.org)
2737
2738 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
2739 includedir.
2740
ab62c900
JT
27412002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2742
2743 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2744 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2745 (FRAME_INIT_SAVED_REGS): New macro.
2746
7232b100
JT
27472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2748
2749 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
2750
b70d2aee
JT
27512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2752
2753 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
2754 where needed.
2755 (fetch_osf_core_registers): Likewise.
2756 (supply_gregset): Likewise.
2757
a0e8a2d1 27582002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 2759
a0e8a2d1
JB
2760 * symfile.h (get_section_index): Define.
2761 * symfile.c (get_section_index): New function.
2762 * mdebugread.c (SC_IS_SBSS): New macro.
2763 (SC_IS_BSS): Return true for the scBss storage class only, as
2764 the scSBss storage class refers to the .sbss section.
2765 (parse_partial_symbols): Discard the symbols which associated
2766 section does not exist.
2767 Make sure to use the .sbss section index for symbols which
2768 storage class is scBss, rather than using the .bss section index.
2769
51eb8b08
JT
27702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2771
2772 * vax-tdep.c: Update copyright years.
2773 (vax_register_name): New function.
2774 (vax_register_byte): Ditto.
2775 (vax_register_raw_size): Ditto.
2776 (vax_register_virtual_size): Ditto.
2777 (vax_register_virtual_type): Ditto.
2778 * config/vax/tm-vax.h: Update copyright years.
2779 (REGISTER_NAMES): Remove.
2780 (REGISTER_NAME): Define.
2781 (REGISTER_BYTE): Use vax_register_byte.
2782 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
2783 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
2784 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2785
6cc1c0a8
AC
27862002-04-21 Andrew Cagney <ac131313@redhat.com>
2787
2788 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
2789 declaration
2790 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2791
9319a2fe
DM
27922002-04-21 David S. Miller <davem@redhat.com>
2793
2794 * arch-utils.c (generic_prologue_frameless_p): Kill
2795 SKIP_PROLOGUE_FRAMELESS_P code.
2796 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2797 references.
2798 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
2799 * arc-tdep.c (arc_prologue_frameless_p): Implement.
2800 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2801 references.
2802 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2803 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2804 (sparc_gdbarch_init): Pass it to
2805 set_gdbarch_prologue_frameless_p.
a0e8a2d1 2806
e9ed6d01
JT
28072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2808
2809 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2810 (alphabsd-nat.o): New dependency list.
2811
36012033
JT
28122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2813
2814 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2815 alphafbsd-tdep.c.
2816 (alpha-linux-tdep.o): New dependency list.
2817 (alphafbsd-tdep.o): Likewise.
2818
3379287a
JT
28192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2820
2821 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2822 to here...
2823 * alpha-tdep.c: ...from here.
2824 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2825
4bcbd6cb
JT
28262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2827
2828 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2829 prototype from here...
2830 * alpha-tdep.h: ...to here.
2831
b31da25e
AC
28322002-04-21 Andrew Cagney <ac131313@redhat.com>
2833
2834 * frame.h (selected_frame_level): Document as deprecated.
2835 (frame_relative_level): Declare.
2836 * stack.c (frame_relative_level): New function.
2837 (selected_frame_level): Document as deprecated.
2838 (select_frame): Do not set the selected_frame_level.
2839
2840 * stack.c (frame_info, record_selected_frame): Update.
2841 (frame_command, current_frame_command): Update.
2842 (up_silently_base, up_command, down_silently_base): Update.
2843 (down_command): Update.
2844 * inflow.c (kill_command): Update.
2845 * tracepoint.c (finish_tfind_command): Update.
2846 * corelow.c (core_open): Update.
2847 * thread.c (info_threads_command): Update.
2848 (do_captured_thread_select): Update.
2849 * infcmd.c (finish_command): Update.
2850 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2851
9c1d6fe5
JT
28522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2853
2854 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2855
ab89facf
AC
28562002-04-21 Andrew Cagney <ac131313@redhat.com>
2857
2858 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2859 type const.
2860
82a4efa1
JT
28612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2862
2863 * alphafbsd-tdep.c: Update copyright years. Include
2864 alpha-tdep.h.
2865 (alphafbsd_use_struct_convention): Make static.
2866 (alphafbsd_init_abi): New function.
2867 (_initialize_alphafbsd_tdep): New function.
2868 * config/alpha/tm-fbsd.h: Update copyright years.
2869 (USE_STRUCT_CONVENTION): Remove.
2870
44dffaac
JT
28712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2872
2873 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2874 an Alpha ABI variant.
2875 (alpha_abi_handler_list): Declare.
2876 (alpha_gdbarch_register_os_abi): New function.
2877 (alpha_gdbarch_init): Give registered ABI variant handlers a
2878 chance to tweak the gdbarch once we have set up defaults.
2879 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2880
65585be4
JT
28812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2882
2883 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2884 to standard_coerce_float_to_double.
2885 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2886
d9b023cc
JT
28872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2888
2889 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2890 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2891 from gdbarch_tdep rather than a constant.
2892 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2893 the default text address for all Alpha Unix ABIs.
2894 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2895 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2896
dc129d82
JT
28972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2898
2899 * alpha-tdep.h: New file. Includes several Alpha target constants
2900 taken from...
2901 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2902 let gdbarch deal with.
2903 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2904 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2905 to dependency list.
2906 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2907 Alpha target register names.
2908 * alphabsd-nat.c: Likewise.
2909 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2910 Alpha target register names. Make serveral routines static.
2911 (alpha_get_saved_register): New function.
2912 (alpha_abi_names): New.
2913 (process_note_abi_tag_sections): New function.
2914 (get_elfosabi): New function.
2915 (alpha_gdbarch_init): New function.
2916 (alpha_dump_tdep): New function.
2917 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2918
d49d1e0a
AC
29192002-04-21 Andrew Cagney <ac131313@redhat.com>
2920
2921 * frame.c (find_saved_register): Delete #ifdef
2922 HAVE_REGISTER_WINDOWS code.
2923 * config/sparc/tm-sparc.h: Update comments.
2924 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2925
92e8c9ed
AC
29262002-04-21 Andrew Cagney <ac131313@redhat.com>
2927
2928 * i960-tdep.c (i960_find_saved_register): New function.
2929 (i960_get_saved_register): New function.
2930 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2931 (i960_get_saved_register): Declare.
2932 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2933
e1925118
DM
29342002-04-20 David S. Miller <davem@redhat.com>
2935
2936 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2937
29673b29
AC
29382002-04-20 Andrew Cagney <ac131313@redhat.com>
2939
2940 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2941 instead of NUM_PSEUDO_REGS.
2942
6c86dcd5
DM
29432002-04-20 David S. Miller <davem@redhat.com>
2944
2945 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2946 GDB_MULTI_ARCH_PARTIAL
2947 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2948 define, let tm-sp64.h do it.
2949
aa40ec90
JT
29502002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2951
2952 * frame.c (find_saved_register): Avoid a NULL pointer
2953 dereference and actually walk the frame list.
2954
0f79675b
AC
29552002-04-20 Andrew Cagney <ac131313@redhat.com>
2956
2957 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2958 sorted in most most-recent-used order. Document.
2959 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 2960
c04a1aa8
DJ
29612002-04-20 Daniel Jacobowitz <drow@mvista.com>
2962
2963 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2964 (add_inferior): Call create_register_cache.
2965 (clear_inferiors): Call free_register_cache.
2966 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2967 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2968 (registers): Remove.
2969 (get_regcache): New function.
2970 (create_register_cache, free_register_cache): New functions.
2971 (set_register_cache): Don't initialize the register cache here.
2972 (registers_to_string, registers_from_string, register_data): Call
2973 get_regcache.
2974 * gdbserver/regcache.h: Add prototypes.
2975 * gdbserver/server.h: Likewise.
2976
611cb4a5
DJ
29772002-04-20 Daniel Jacobowitz <drow@mvista.com>
2978
2979 * gdbserver/mem-break.c: New file.
2980 * gdbserver/mem-break.h: New file.
2981 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2982 dependencies.
2983 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2984 member.
2985 (clear_inferiors): Free target_data member if set.
2986 (inferior_target_data, set_inferior_target_data): New functions.
2987 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2988 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2989 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2990 (struct inferior_linux_data): New.
2991 (linux_create_inferior): Use set_inferior_target_data.
2992 (linux_attach): Likewise. Call add_inferior.
2993 (linux_wait_for_one_inferior): New function.
2994 (linux_wait): Call it.
2995 (linux_write_memory): Add const.
2996 (initialize_low): Call set_breakpoint_data.
2997 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2998 handling members.
2999 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3000 call.
3001 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3002 prototypes.
3003 * gdbserver/target.c (read_inferior_memory)
3004 (write_inferior_memory): New functions.
3005 * gdbserver/target.h (read_inferior_memory)
3006 (write_inferior_memory): Change macros to prototypes.
3007 (struct target_ops): Update comments. Add const to write_memory
3008 definition.
3009
f91305dd 30102002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
3011
3012 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3013 instead of ->prev.
3014 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3015 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3016 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3017 instead of ->prev.
3018
73d322b1
EZ
30192002-04-19 Elena Zannoni <ezannoni@redhat.com>
3020
3021 Fix PR gdb/471.
3022 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3023 (build_builtin_type_vec128): Ditto.
3024 (append_composite_type_field): Fix calculation of type length in
3025 union case.
3026
ccd9a834
EZ
30272002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3028
3029 * config/djgpp/README: Update.
3030
3031 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3032 compiler warnings.
3033
a57f9e49
JT
30342002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3035
3036 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3037 (alpha_setup_arbitrary_frame): ...to this.
3038 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3039 for alpha_setup_arbitrary_frame.
3040
f4f9705a
AC
30412002-04-18 Andrew Cagney <cagney@redhat.com>
3042
3043 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3044 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 3045
f4f9705a
AC
3046 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3047 * target.h (memory_breakpoint_from_pc): Update declaration.
3048 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3049
3050 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3051 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3052 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3053 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3054 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3055 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3056 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3057 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3058 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3059 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3060 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3061 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3062
3063 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3064 const pointer.
3065 * monitor.c (monitor_insert_breakpoint): Ditto.
3066 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3067
3068 * config/mcore/tm-mcore.h: Update copyright.
3069 * mem-break.c: Ditto.
3070 * xstormy16-tdep.c: Ditto.
3071
29f319b8
PM
30722002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3073
3074 * p-exp.y: Add precedence rule for '^' token.
3075 This removes the shift/reduce conflicts.
3076 Remove the comment concerning these shift/reduce conflicts.
3077
ebeac11a
EZ
30782002-04-18 Elena Zannoni <ezannoni@redhat.com>
3079
3080 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3081 (registers_powerpc_nofp): New register set for processors
3082 without floating point unit.
3083
27c31547
DM
30842002-04-18 David S. Miller <davem@redhat.com>
3085
3086 * MAINTAINERS: Add myself to write-after-approval.
3087
47a73475
MS
30882002-04-17 Michael Snyder <msnyder@redhat.com>
3089
3090 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3091
953836b2
AC
30922002-04-17 Andrew Cagney <ac131313@redhat.com>
3093
3094 * rs6000-tdep.c (frame_initial_stack_address): Use
3095 frame_register_read to read the alloca_reg.
3096
8b0d4340
AC
30972002-04-17 Andrew Cagney <ac131313@redhat.com>
3098
3099 * frame.c (find_saved_register): Find saved registers in the next
3100 not prev frame.
3101 Fix PR gdb/365.
3102
d8864532
AC
31032002-04-17 Andrew Cagney <ac131313@redhat.com>
3104
3105 * gdbarch.sh (LANG): Set to ``c''.
3106
36cc83a3 31072002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 3108
36cc83a3 3109 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 3110
2f4150cc 31112002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
3112
3113 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3114 Update copyright.
3115
628703c6 3116 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 3117 Also fix PR gdb/391.
361d1df0 3118
56157b4a
AC
31192002-04-14 Andrew Cagney <ac131313@redhat.com>
3120
3121 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3122 * aclocal.m4, configure: Re-generate.
3123 Fix PR gdb/391.
361d1df0 3124
6d1e3329
EZ
31252002-04-14 Elena Zannoni <ezannoni@redhat.com>
3126
3127 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3128 instead of tm_print_insn.
3129
cb06fa07
EZ
31302002-04-14 Elena Zannoni <ezannoni@redhat.com>
3131
3132 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3133
f208ba17
AC
31342002-04-14 Andrew Cagney <ac131313@redhat.com>
3135
3136 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3137 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3138 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3139
20f01a46
DH
31402002-04-12 Don Howard <dhoward@redhat.com>
3141
3142 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3143 max_user_call_depth.
3144 (init_cmd_lists): Initialize the new value;
3145 * cli/cli-script.c (execute_user_command): Limit the call depth of
3146 user defined commands. This avoids a core-dump when user commands
3147 are infinitly recursive.
3148
a88376a3
KB
31492002-04-12 Kevin Buettner <kevinb@redhat.com>
3150
3151 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3152 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3153 from tdep struct instead of DEFAULT_LR_SAVE.
3154 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3155 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3156 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3157
f2172603
MS
31582002-04-12 Michael Snyder <msnyder@redhat.com>
3159
694f61fb 3160 * Remote.c: Spelling fix.
20fe79c8
MS
3161 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3162 If no symbol found for "sbrk", try "_sbrk".
3163 (make_output_phdrs): Use bfd_section_name.
3164 (gcore_copy_callback): Use bfd_section_name.
62995fc4 3165 * eval.c: Indentation fix-ups.
169a7369
MS
3166 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3167 in case it gets applied to an address that is already
3168 in the instruction space.
de74f71f
MS
3169 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3170 * symfile.c: Fix indentation, long lines.
f2172603
MS
3171 * source.c: White space fix-up.
3172
cda5a58a
AC
31732002-04-12 Andrew Cagney <cagney@redhat.com>
3174
3175 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3176 * frame.c (frame_register_read): New function. Return non-zero on
3177 success.
3178 (read_relative_register_raw_bytes_for_frame): Delete.
3179 (read_relative_register_raw_bytes): Delete.
3180 * frame.h (frame_register_read): Declare.
3181 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3182 * sh-tdep.c: Ditto.
3183 * infcmd.c (do_registers_info): Ditto.
3184 * hppa-tdep.c: Ditto.
3185 * rs6000-tdep.c: Ditto.
3186 * h8500-tdep.c: Ditto.
3187 * mips-tdep.c: Ditto.
3188 * h8300-tdep.c: Ditto.
3189 * z8k-tdep.c: Ditto.
3190
2ea5f656
KB
31912002-04-12 Kevin Buettner <kevinb@redhat.com>
3192
3193 From Jimi X <jimix@watson.ibm.com>:
3194 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3195 64-bit SysV ABI.
3196
27b15785
KB
31972002-04-12 Kevin Buettner <kevinb@redhat.com>
3198
3199 From Jimi X <jimix@watson.ibm.com>:
3200 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3201 bfd info.
3202
5d57ee30
KB
32032002-04-12 Kevin Buettner <kevinb@redhat.com>
3204
3205 From Jimi X <jimix@watson.ibm.com>:
3206 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3207 register sets for these processor variants.
3208
bc1e36ca
DJ
32092002-04-11 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3212 registers which are allowed to fail to store.
3213 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3214 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3215 (ppc_cannot_store_register): FPSCR may not be storable.
3216 * regformats/reg-ppc.dat: Support FPSCR.
3217
e3f36dbd
KB
32182002-04-11 Kevin Buettner <kevinb@redhat.com>
3219
3220 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3221 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3222 Add fpscr as an invalid/unfetchable register.
3223 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3224 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3225 (fill_fpregset): Add support for register fpscr.
3226 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3227 (fill_gregset): Account for the fact that register ``mq'' might
3228 not exist.
3229 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3230 (registers_power): Add fpscr to register set at slot 71.
3231 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3232 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3233
943c9c25
MS
32342002-04-11 Michael Snyder <msnyder@redhat.com>
3235
3236 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3237 * configure: Regenerate.
3238 * config.in: Regenerate.
3239 * acconfig.h: Add define for _SYSCALL32.
3240 * core-sol2.c: Remove #define _SYSCALL32.
3241 * solib-legacy.c: Remove #define _SYSCALL32.
3242
d8c0a2e7
AC
32432002-04-10 Andrew Cagney <ac131313@redhat.com>
3244
3245 * stack.c (select_frame): Cleanup internal error message, do not
3246 use %p.
3247
7cc19214
AC
32482002-04-10 Andrew Cagney <ac131313@redhat.com>
3249
3250 * stack.c (select_frame): Check that selected_frame and the
3251 specified level are as expected.
3252 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3253 Update copyright.
3254 * frame.h (struct frame_info): Add field `level'. Update
3255 copyright.
3256 Work-in-progress PR gdb/464.
3257
67a2b77e
AC
32582002-04-10 Andrew Cagney <ac131313@redhat.com>
3259
3260 * maint.c (maint_print_section_info): Rename print_section_info.
3261 (print_bfd_section_info, print_objfile_section_info): Update.
3262 * inferior.h (struct gdbarch): Add opaque declaration.
3263 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3264 * gdbarch.h: Regenerate.
3265
8cfda98c
ML
32662002-04-10 Michal Ludvig <mludvig@suse.cz>
3267
3268 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3269 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3270 (kernel_u_size): Added.
3271 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3272 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3273
ca439ad2 32742002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 3275
ca439ad2
JI
3276 * valarith.c (find_size_for_pointer_math): New function, either returns
3277 the size for a pointer's target, returns 1 for void *, or errors for
3278 incomplete types.
3279 (value_add, value_sub): use find_size_for_pointer_math.
3280
2f2893d9
DJ
32812002-04-09 Daniel Jacobowitz <drow@mvista.com>
3282
3283 * linux-low.c (linux_look_up_symbols): New hook.
3284 (linux_target_ops): Add linux_look_up_symbols.
3285 * remote-utils.c (decode_address): New function.
3286 (look_up_one_symbol): New function.
3287 * server.c (handle_query): Call target look_up_symbols hook.
3288 * server.h (look_up_one_symbol): Add prototype.
3289 * target.h (struct target_ops): Add look_up_symbols hook.
3290
2ec06d2e
DJ
32912002-04-09 Daniel Jacobowitz <drow@mvista.com>
3292
d64b8841
DJ
3293 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3294 * ChangeLog: Correct paths in last ChangeLog entry.
3295
32962002-04-09 Daniel Jacobowitz <drow@mvista.com>
3297
3298 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
3299 (struct linux_target_ops): New.
3300 (extern the_low_target): New.
d64b8841 3301 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
3302 (register_addr): Use the_low_target explicitly.
3303 (fetch_register): Likewise.
3304 (usr_fetch_inferior_registers): Likewise.
3305 (usr_store_inferior_registers): Likewise.
d64b8841 3306 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
3307 (arm_num_regs): Define.
3308 (arm_regmap): Renamed from regmap, made static.
3309 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3310 made static.
3311 (arm_cannot_store_register): Renamed from cannot_store_register,
3312 made static.
3313 (the_low_target): New.
d64b8841 3314 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
3315 (i386_num_regs): Define.
3316 (i386_regmap): Renamed from regmap, made static.
3317 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3318 made static.
3319 (i386_cannot_store_register): Renamed from cannot_store_register,
3320 made static.
3321 (the_low_target): New.
d64b8841 3322 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
3323 (ia64_num_regs): Define.
3324 (ia64_regmap): Renamed from regmap, made static.
3325 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3326 made static.
3327 (ia64_cannot_store_register): Renamed from cannot_store_register,
3328 made static.
3329 (the_low_target): New.
d64b8841 3330 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
3331 (m68k_num_regs): Define.
3332 (m68k_regmap): Renamed from regmap, made static.
3333 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3334 made static.
3335 (m68k_cannot_store_register): Renamed from cannot_store_register,
3336 made static.
3337 (the_low_target): New.
d64b8841 3338 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
3339 (mips_num_regs): Define.
3340 (mips_regmap): Renamed from regmap, made static.
3341 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3342 made static.
3343 (mips_cannot_store_register): Renamed from cannot_store_register,
3344 made static.
3345 (the_low_target): New.
d64b8841 3346 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
3347 (ppc_num_regs): Define.
3348 (ppc_regmap): Renamed from regmap, made static.
3349 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3350 made static.
3351 (ppc_cannot_store_register): Renamed from cannot_store_register,
3352 made static.
3353 (the_low_target): New.
d64b8841 3354 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
3355 (s390_num_regs): Define.
3356 (s390_regmap): Renamed from regmap, made static.
3357 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3358 made static.
3359 (s390_cannot_store_register): Renamed from cannot_store_register,
3360 made static.
3361 (the_low_target): New.
d64b8841 3362 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
3363 (sh_num_regs): Define.
3364 (sh_regmap): Renamed from regmap, made static.
3365 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3366 made static.
3367 (sh_cannot_store_register): Renamed from cannot_store_register,
3368 made static.
3369 (the_low_target): New.
d64b8841 3370 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
3371 (the_low_target): New.
3372
96cb11df
AC
33732002-04-09 Andrew Cagney <ac131313@redhat.com>
3374
3375 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3376 override FP_REGNUM with frame->fp. Update copyright.
3377 * parse.c (num_std_regs, std_regs): Delete.
3378 (target_map_name_to_register): Do not search std_regs. Update
3379 function description.
3380 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3381 declarations. Update copyright.
3382 Fix PR gdb/251.
361d1df0 3383
c3a3ccc7
DJ
33842002-04-09 Daniel Jacobowitz <drow@mvista.com>
3385
3386 * gdbserver/Makefile.in: Add stamp-h target.
3387 * gdbserver/configure.in: Create stamp-h.
3388 * gdbserver/configure: Regenerated.
3389
ce3a066d
DJ
33902002-04-09 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * gdbserver/inferiors.c: New file.
3393 * gdbserver/target.c: New file.
3394 * gdbserver/target.h: New file.
3395 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3396 dependencies.
3397 * gdbserver/linux-low.c (inferior_pid): New static variable,
3398 moved from server.c.
3399 (linux_create_inferior): Renamed from create_inferior.
3400 Call add_inferior. Return 0 on success instead of a PID.
3401 (linux_attach): Renamed from myattach.
3402 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3403 (linux_thread_alive): Renamed from mythread_alive.
3404 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3405 child dies.
3406 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3407 (regsets_store_inferior_registers): Correct error message.
3408 Add missing ``return 0''.
3409 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3410 (linux_store_registers): Renamed from store_inferior_registers.
3411 (linux_read_memory): Renamed from read_inferior_memory.
3412 (linux_write_memory): Renamed from write_inferior_memory.
3413 (linux_target_ops): New structure.
3414 (initialize_low): Call set_target_ops ().
3415 * gdbserver/remote-utils.c (unhexify): New function.
3416 (hexify): New function.
3417 (input_interrupt): Send signals to ``signal_pid''.
3418 * gdbserver/server.c (inferior_pid): Remove.
3419 (start_inferior): Update create_inferior call.
3420 (attach_inferior): Call add_inferior.
3421 (handle_query): New function.
3422 (main): Call handle_query for `q' packets.
3423 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3424 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3425
0729219d
DJ
34262002-04-09 Daniel Jacobowitz <drow@mvista.com>
3427
3428 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3429 dependencies.
3430 * gdbserver/configure.in: Check for <string.h>
3431 * gdbserver/configure: Regenerate.
3432 * gdbserver/config.in: Regenerate.
3433 * gdbserver/gdbreplay.c: Include needed system headers.
3434 (remote_open): Remove strchr prototype.
3435 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3436 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3437 (supply_register_by_name): Likewise.
3438 (collect_register): Change buf argument to void *.
3439 (collect_register_by_name): Likewise.
3440 * gdbserver/regcache.h: Add missing prototypes.
3441 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3442 * gdbserver/server.c (handle_query): New function.
3443 (attached): New static variable, moved out of main.
3444 (main): Quiet longjmp clobber warnings.
3445 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3446 * gdbserver/utils.c (error): Remove NORETURN.
3447 (fatal): Likewise.
3448
97658e92
DJ
34492002-04-09 Daniel Jacobowitz <drow@mvista.com>
3450
3451 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3452 after the last symbol in a block.
3453
6044e3eb
PM
34542002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3455
3456 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3457 is non zero as a found symbol.
3458
0406ec40
AC
34592002-04-08 Andrew Cagney <ac131313@redhat.com>
3460
3461 * findvar.c: Include "builtin-regs.h".
3462 (value_of_register): Call value_of_builtin_reg when applicable.
3463 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3464 (target_map_name_to_register): Call
3465 builtin_reg_map_name_to_regnum.
3466 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3467 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3468 (builtin_regs_h): Define.
3469 (builtin-regs.o): New target.
3470 (findvar.o): Add $(builtin_regs_h).
3471 * builtin-regs.c, builtin-regs.h: New files.
3472 * std-regs.c: New file.
3473 Partial fix for PR gdb/251.
3474
56a6dfb9
KB
34752002-04-08 Kevin Buettner <kevinb@redhat.com>
3476
3477 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3478 it's no longer required.
3479
3a808432
AC
34802002-04-08 Andrew Cagney <ac131313@redhat.com>
3481
3482 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3483
7c40d541
KB
34842002-04-08 Kevin Buettner <kevinb@redhat.com>
3485
3486 From Jimi X <jimix@watson.ibm.com>:
3487 * rs6000-tdep.c (rs6000_software_single_step): Use
3488 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3489 and size. Use target_insert_breakpoint() and
3490 target_remove_breakpoint() to insert and remove breakpoints
3491 instead of explicit memory reads and writes.
3492
cc9836a8
KB
34932002-04-08 Kevin Buettner <kevinb@redhat.com>
3494
3495 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3496 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3497 ELF_OBJECT_FORMAT ifdef.
3498
7495d1dc
KB
34992002-04-08 Kevin Buettner <kevinb@redhat.com>
3500
3501 From Jimi X <jimix@watson.ibm.com>:
3502 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3503
4288e836
KB
35042002-04-08 Kevin Buettner <kevinb@redhat.com>
3505
3506 From Jimi X <jimix@watson.ibm.com>:
3507 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3508 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3509
a4e4e501
MK
35102002-04-07 Mark Kettenis <kettenis@gnu.org>
3511
3512 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3513 s/asprintf/xasprintf/.
3514 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3515
006defba
AC
35162002-04-07 Andrew Cagney <ac131313@redhat.com>
3517
3518 I believe Jeff Law denies responsability for this one:
3519 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3520 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3521 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3522 Work-around for PR gdb/366.
3523
7aa83cac
EZ
35242002-04-07 Elena Zannoni <ezannoni@redhat.com>
3525
3526 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3527 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3528 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3529
cf1fcca1
EZ
35302002-04-07 Elena Zannoni <ezannoni@redhat.com>
3531
3532 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3533 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3534 information.
3535
3f289e6f
AC
35362002-04-07 Andrew Cagney <ac131313@redhat.com>
3537
3538 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3539 maintainer.
3540
129188f6
AC
35412002-04-07 Andrew Cagney <ac131313@redhat.com>
3542
3543 * README (Reporting Bugs in GDB): Document the bug web page as the
3544 prefered way of submitting bugs.
3545 Fix PR gdb/402.
3546
1200cd6e
AC
35472002-04-06 Andrew Cagney <ac131313@redhat.com>
3548
3549 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3550 -1. Update comment.
3551 * gdbarch.h, gdbarch.c: Re-generate.
3552
2853c33c
AS
35532002-04-07 Andreas Schwab <schwab@suse.de>
3554
3555 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3556 buffer to regcache_collect.
3557
c2169756
AC
35582002-04-06 Andrew Cagney <ac131313@redhat.com>
3559
3560 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3561 * gdbarch.c, gdbarch.h: Re-generate.
3562
25f1b008
AC
35632002-04-06 Andrew Cagney <ac131313@redhat.com>
3564
3565 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3566 declaration. Fix -Werror.
3567
59263426
DJ
35682002-04-05 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3571 * gdbarch.c: Regenerate.
3572
f5db4da3
MS
35732002-04-05 Michael Snyder <msnyder@redhat.com>
3574
80f8a6eb
MS
3575 * breakpoint.c (clear_command): Rewrite middle section to
3576 combine two loops with identical control conditions.
3577 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
3578 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3579
ad3dcc5c
L
35802002-04-05 H.J. Lu (hjl@gnu.org)
3581
3582 * solib-svr4.c (bkpt_names): Add "__start".
3583
f32e7a74
AC
35842002-04-04 Andrew Cagney <ac131313@redhat.com>
3585
3586 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3587 as test for 64 bit target.
3588
8227c0ff
AC
35892002-04-05 Andrew Cagney <ac131313@redhat.com>
3590
3591 * h8500-tdep.c (h8500_write_fp): Delete function.
3592 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3593 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3594 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3596 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3597 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3598 (s390_write_fp):
3599 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3600 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3601 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3602 (d10v_write_fp): Delete function.
3603 * inferior.h (write_fp, generic_target_write_fp): Delete
3604 declarations.
3605 * regcache.c (generic_target_write_fp): Delete function.
3606 (write_fp): Delete function.
3607 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3608 * gdbarch.h, gdbarch.c: Regenerate.
3609 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3610 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3611 (sparc64_write_fp): Delete declaration.
3612 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3613 (h8500_write_fp): Delete declaration.
3614
2757dd86
AC
36152002-04-04 Andrew Cagney <ac131313@redhat.com>
3616
3617 * sparc-tdep.c (sparc64_write_fp): Delete.
3618 (sparc_push_dummy_frame): Replace write_fp call with code to store
3619 the FP directly.
3620 (sparc_gdbarch_init): Do not initialize write_fp.
3621
c69255e1
KB
36222002-04-05 Kevin Buettner <kevinb@redhat.com>
3623
3624 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3625 clause.
3626
ae767bfb
JB
36272002-03-29 Jim Blandy <jimb@redhat.com>
3628
3629 * stack.c (get_selected_block): Add new argument `addr_in_block',
3630 used to return the exact code address we used to select the block,
3631 not just the block.
3632 * blockframe.c (get_frame_block, get_current_block): Same.
3633 * frame.h (get_frame_block, get_current_block,
3634 get_selected_block): Update declarations.
3635 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3636 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3637
84d2ac95
MS
36382002-04-05 Michael Snyder <msnyder@redhat.com>
3639
3640 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3641 warning message.
3642
596aa3bf
JB
36432002-04-05 J. Brobecker <brobecker@gnat.com>
3644
3645 * utils.c (xfullpath): New function.
3646 * defs.h (xfullpath): Add declaration.
3647 * source.c (openp): Use xfullpath in place of gdb_realpath to
3648 avoid resolving the basename part of filenames when the
3649 associated file is a symbolic link. This fixes a potential
3650 inconsistency between the filenames known to GDB and the
3651 filenames it prints in the annotations.
3652 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3653 to be able to match a filename with either the real filename, or
3654 the name of any symbolic link to this file.
3655 (lookup_partial_symtab): Ditto.
3656
c02f5703
MS
36572002-04-04 Michael Snyder <msnyder@redhat.com>
3658
3659 * breakpoint.c: Add support for hardware breakpoints in overlays.
3660 (overlay_events_enabled): New state variable.
3661 (insert_breakpoints): Use overlay_events_enabled to decide
3662 whether to attempt to set a breakpoint at the overlay load addr.
3663 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3664 (remove_breakpoint): Use overlay_events_enabled to decide
3665 whether breakpoints need to be removed from overlay load addr.
3666 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3667 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 3668 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
3669 disable_overlay_breakpoints): Update overlay_events_enabled.
3670
5fb290d7
DJ
36712002-04-04 Daniel Jacobowitz <drow@mvista.com>
3672
3673 * dwarf2read.c (struct function_range): New.
3674 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
3675 (check_cu_functions): New.
3676 (read_file_scope): Initialize global function lists.
3677 Call dwarf_decode_line after processing children.
3678 (read_func_scope): Add to global function list.
3679 (dwarf_decode_lines): Call check_cu_functions everywhere
3680 record_line is called. Call record_line with a linenumber
3681 of 0 to mark sequence ends.
3682
7b3fabf0
ML
36832002-04-04 Michal Ludvig <mludvig@suse.cz>
3684
361d1df0 3685 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
3686 change sync with glibc.
3687
bce58c09
JB
36882002-04-03 Jim Blandy <jimb@redhat.com>
3689
3690 * configure.in: Call AC_C_INLINE.
3691 * configure: Regenerated.
361d1df0 3692
2fccf04a
DJ
36932002-04-01 Daniel Jacobowitz <drow@mvista.com>
3694
3695 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
3696 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
3697
2d1bfe2e
MK
36982002-03-31 Mark Kettenis <kettenis@gnu.org>
3699
a5941fbf
MK
3700 * NEWS: Mention gcore support on FreeBSD/i386.
3701
a90cd31d
MK
3702 * fbsd-proc.c: New file.
3703 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
3704 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
3705
2d1bfe2e
MK
3706 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
3707 while statement.
3708
9eb6e5a1
JB
37092002-03-29 Jim Blandy <jimb@redhat.com>
3710
3711 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
3712 unescaped newlines in string literals, but newer ones don't. So
3713 escape them.
3714
f02df580
MS
37152002-03-26 Michael Snyder <msnyder@redhat.com>
3716 Andrew Cagney <cagney@redhat.com>
3717
361d1df0 3718 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
3719 restore file to memory.
3720 * cli/cli-dump.h: New file.
3721 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 3722 * NEWS: Mention new commands.
f02df580 3723
109f874e
MS
37242002-03-28 Michael Snyder <msnyder@redhat.com>
3725
3726 * symfile.c (symbol_file_add): Move test for null symbols to later.
3727
520f6ade
AC
37282002-03-27 Andrew Cagney <ac131313@redhat.com>
3729
3730 From veksler at il.ibm.com:
3731 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
3732 the xstrduped original path.
3733 Fix PR gdb/417.
3734
d4654627
MS
37352002-03-27 Michael Snyder <msnyder@redhat.com>
3736
3737 * breakpoint.c (_initialize_breakpoint): Clean up help string.
3738 * infcmd.c (_initialize_infcmd): Ditto.
3739 * language.c (_initialize_language): Ditto.
3740 * symfile.c (_initialize_symfile): Ditto.
3741 * top.c (_init_main): Ditto.
3742 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3743
6be8bc0c
EZ
37442002-03-27 Elena Zannoni <ezannoni@redhat.com>
3745
3746 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
3747 vector registers handling.
3748 (skip_prologue): Handle new AltiVec instructions. Fill in new
3749 fields of frame data.
3750 (frame_get_saved_regs): Fill in information for AltiVec registers.
3751
12af6855
JB
37522002-03-27 Jim Blandy <jimb@redhat.com>
3753
3754 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
3755 a function; leave this macro here to invoke that function.
3756 (symbol_init_mangled_name): Declaration for that function.
3757 * symtab.c (symbol_init_mangled_name): New function.
3758
dc672865
AC
37592002-03-27 Andrew Cagney <ac131313@redhat.com>
3760
3761 * valarith.c: Replace strerror with safe_strerror.
3762 * tracepoint.c: Ditto.
3763 * lin-lwp.c: Ditto.
3764 * go32-nat.c: Ditto.
3765 * inflow.c: Ditto.
3766 * gnu-nat.c: Ditto.
3767
d96429cd
AS
37682002-03-27 Andreas Schwab <schwab@suse.de>
3769
3770 * event-top.c (command_line_handler): Remove useless if.
3771
7e336ba1
AJ
37722002-03-27 Andreas Jaeger <aj@suse.de>
3773
3774 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
3775 comment.
3776
de220d0f
ML
37772002-03-27 Michal Ludvig <mludvig@suse.cz>
3778
3779 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
3780 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
3781 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
3782 (x86_64_linux_dr_get_status, supply_gregset),
3783 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
3784 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
3785 (x86_64_register_info_table): Add.
3786 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
3787 (x86_64_register_raw_size, x86_64_register_virtual_type),
3788 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
3789 general x86_64_register_info_table.
3790 (i386_gdbarch_init): gdbarch_register_bytes is now set
3791 dynamicaly during initialization.
3792 * regformats/reg-x86-64.dat: Synced with changes to registers above.
3793 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 3794
0e98d0a7
DJ
37952002-03-27 Daniel Jacobowitz <drow@mvista.com>
3796
3797 * gdbserver/server.c (main): Call target_signal_to_host_p
3798 and target_signal_to_host on signals received from the remote.
3799 * gdbserver/remote-utils.c (prepare_resume_reply): Call
3800 target_signal_from_host on signals sent to the remote.
3801 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3802 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3803
3130066b
DJ
38042002-03-27 Daniel Jacobowitz <drow@mvista.com>
3805
3806 * signals/signals.c: Include "server.h" in gdbserver build.
3807 (target_signal_from_name): Don't use STREQ.
3808 (_initialize_signals): Likewise. Don't include function in
3809 gdbserver build.
3810
9aedf4f4
DJ
38112002-03-27 Daniel Jacobowitz <drow@mvista.com>
3812
3813 * signals.c: Moved to...
3814 * signals/signals.c: Here.
7e336ba1 3815 * Makefile (signals.o): Update.
9aedf4f4 3816
3fa41cdb
JL
38172002-03-26 Jeff Law (law@redhat.com)
3818
3819 * somread.c (som_symtab_read): Remove some commented out code and
3820 updated related comments. Do not set the minimal symbol table to
3821 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3822 in a dynamic executable.
3823 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3824 where we are unable to find the minimal symbol for the given
3825 PC value.
3826
ee677e8d
MS
38272002-03-25 Jeff Law (law@redhat.com)
3828
3829 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3830
e76e1718
ML
38312002-03-25 Michal Ludvig <mludvig@suse.cz>
3832
3833 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3834
18a642a1
AC
38352002-03-23 Andrew Cagney <ac131313@redhat.com>
3836
3837 * command.h: Update copyright.
3838 (struct cmd_list_element): Replace definition with opaque
3839 declaration.
3840 (enum cmd_types): Document that it will eventually be moved to
3841 cli/cli-decode.h
3842 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3843 (MALLOCED_REPLACEMENT): Delete macro.
3844 * Makefile.in (cli_decode_h): Add $(command_h).
3845 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 3846 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
3847 * completer.c: Include "cli/cli-decode.h".
3848 * maint.c: Include "cli/cli-decode.h".
3849 * cli/cli-decode.h: Include "command.h".
3850 (enum command_class): Delete.
3851 (enum cmd_types): Comment out.
3852 (enum cmd_auto_boolean): Delete.
3853 (enum var_types): Delete.
3854
b2875cc0
AC
38552002-03-23 Andrew Cagney <ac131313@redhat.com>
3856
3857 * cli/cli-decode.c: Include "gdb_assert.h".
3858 (add_set_or_show_cmd): New static function.
3859 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3860 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3861 all fields, such as func, from the set command.
3862
3b45974e
AC
38632002-03-23 Andrew Cagney <ac131313@redhat.com>
3864
3865 * MAINTAINERS (sh-elf): Change warning flag to -w.
3866
823ca731
AC
38672002-03-23 Andrew Cagney <cagney@redhat.com>
3868
3869 * defs.h (error): Add printf format attribute.
3870 * thread-db.c (thread_from_lwp): Fix error format string.
3871 * stack.c (parse_frame_specification): Ditto.
3872 * cli/cli-decode.c (undef_cmd_error): Ditto.
3873 * scm-lang.c (scm_lookup_name): Ditto.
3874 * tracepoint.c (trace_error): Ditto.
3875 * remote-utils.c (usage): Ditto.
3876 * remote.c (compare_sections_command): Ditto.
3877 Fix PR gdb/328.
3878
0e101458
AC
38792002-03-22 Andrew Cagney <ac131313@redhat.com>
3880
3881 * gdbtypes.c (append_composite_type_field): New function.
3882 (init_composite_type): New function.
3883 * gdbtypes.h (append_composite_type_field): Declare.
3884 (init_composite_type): Ditto.
3885
8e0662df
EZ
38862002-03-22 Elena Zannoni <ezannoni@redhat.com>
3887
3888 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 3889 function.
8e0662df
EZ
3890 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3891 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3892 structure returning convention for SYSV ABI case, but not
3893 for GNU/Linux, FreeBSD, or NetBSD.
3894
3121eff0
DJ
38952002-03-22 Daniel Jacobowitz <drow@mvista.com>
3896
3897 * symtab.h (lookup_block_symbol): Add mangled_name argument
3898 to prototype.
3899
3900 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3901 with new mangled_name argument.
3902 * linespec.c (decode_line_1): Likewise.
3903 * valops (value_of_this): Likewise.
3904 * symtab.c (lookup_transparent_type): Likewise.
3905 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3906 (lookup_symbol): If we are given a mangled name, pass it down
3907 to lookup_symbol_aux.
3908 (lookup_block_symbol): If we are given a mangled name to check
3909 against, only return symbols which match it.
3910
349b409f
CF
39112002-03-22 Christopher Faylor <cgf@redhat.com>
3912
3913 * win32-nat.c (child_create_inferior): Check for proper shell to use
3914 here, in case the user changes it on the fly.
3915 (_initialize_inftarg): Remove shell path considerations.
3916
2a873819
EZ
39172002-03-21 Elena Zannoni <ezannoni@redhat.com>
3918
3919 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3920 for gdbarch_max_register_raw_size and max_register_virtual_size.
3921 Adjust copyright year.
3922
a1b9830c
DJ
39232002-03-21 Daniel Jacobowitz <drow@mvista.com>
3924
3925 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3926 in a function to cover the entire beginning of the function
3927 as well if it does not already.
3928
8b5790f2
TR
39292002-03-21 Tom Rix <trix@redhat.com>
3930
3931 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3932 (rs6000_ptrace64): Renamed from ptrace64.
3933
bdbe5747
MH
39342002-03-20 Martin M. Hunt <hunt@redhat.com>
3935
3936 * gdbserver/remote-utils.c (remote_open): Don't call
3937 getprotobyname, we're all using TCP here so just use
3938 IPPROTO_TCP.
7e336ba1 3939 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
3940
39412002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 3942
bdbe5747
MH
3943 * regcache.c (_initialize_regcache): No need to call
3944 build_regcache() at this time; it gets called whenever
3945 the gdbarch changes.
3946
7781cd62
DB
39472002-03-20 David O'Brien <obrien@FreeBSD.org>
3948
3949 * sparc-nat.c: Include sys/param.h where possible.
3950
f65ca430
DJ
39512002-03-20 Daniel Jacobowitz <drow@mvista.com>
3952
3953 Fix PR gdb/422.
3954 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3955 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3956 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3957 complex types.
3958 * stabsread.c (rs6000_builtin_type): Likewise.
3959 (read_sun_floating_type): Likewise.
3960
0c867556
PS
39612002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3962
3963 * stabsread.c (read_member_functions): Remove skip code for duplicate
3964 constructor/destructor methods. Use standard parsing for these
3965 methods and just do not chain them to the list of methods after
3966 parsing.
3967
12b9c64f
AO
39682002-03-19 Alexandre Oliva <aoliva@redhat.com>
3969
3970 * coffread.c: Remove redundant static declarations. Replace
3971 occurrences of `PTR' with `void *'.
3972 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3973 * top.h (quit_cover): Likewise.
3974 * defs.h (catch_errors): Likewise.
3975
349c5d5f
AC
39762002-03-18 Andrew Cagney <ac131313@redhat.com>
3977
3978 * defs.h (XMALLOC): Define.
3979 * gdb-events.sh (XMALLOC): Delete macro.
3980 * gdb-events.c, gdb-events.h: Regenerate.
3981 * gdbarch.sh (XMALLOC): Delete macro.
3982 * gdbarch.c: Regenerate.
3983 * serial.c (XMALLOC): Delete macro.
3984 * ui-file.c (XMALLOC): Ditto.
3985 * ser-unix.h (XMALLOC): Ditto.
3986 * sh-tdep.c (XMALLOC): Ditto.
3987 * ui-out.c (XMALLOC): Ditto.
3988 * utils.c (XMALLOC): Ditto.
3989 * i386-tdep.c (XMALLOC): Ditto.
3990 * gdb-events.c (XMALLOC): Ditto.
3991 * d10v-tdep.c (XMALLOC): Ditto.
3992 * cli-out.c (XMALLOC): Ditto.
3993
3994 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3995 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3996 * ui-file.c, ui-out.c: Ditto.
3997
7d0766f3
AC
39982002-03-18 Andrew Cagney <ac131313@redhat.com>
3999
4000 * command.h (struct cmd_list_element): Add field context.
4001 (set_cmd_context, get_cmd_context): Declare.
4002 * cli/cli-decode.h: Ditto.
4003 * cli/cli-decode.c (get_cmd_context): New function.
4004 (set_cmd_context): New function.
4005 (add_cmd): Initialize context.
4006 Part of fixing PR gdb/145 and PR gdb/146.
4007
5913bcb0
AC
40082002-03-17 Andrew Cagney <ac131313@redhat.com>
4009
1868c04e
AC
4010 * cli/cli-decode.c (cmd_type): New function.
4011 * command.h (cmd_type): Declare.
4012 * infrun.c (set_schedlock_func): Call function cmd_type.
4013 * kod.c (kod_set_os): Call cmd_type.
4014 * cris-tdep.c (cris_version_update): Use function cmd_type.
4015 (cris_mode_update, cris_abi_update): Ditto.
4016
5913bcb0
AC
4017 * command.h: (execute_cmd_post_hook): Declare.
4018 (execute_cmd_pre_hook): Declare.
4019 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4020 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4021 functions. Execute pre/post hook while ensuring that afterwords
4022 hook_in is cleared.
4023 * top.c (execute_command): Use execute_cmd_post_hook, and
4024 execute_cmd_pre_hook to execute pre/post commands.
4025 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4026 hook_stop_stub.
4027 (hook_stop_stub): Call execute_cmd_pre_hook.
4028
b51450c9
AC
40292002-03-17 Andrew Cagney <ac131313@redhat.com>
4030
4031 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4032 set'' and this leads to a core dump. Move xstrdup of
4033 operating_system to after check that it is not NULL.
4034
f66c9f11
AC
40352002-03-17 Andrew Cagney <ac131313@redhat.com>
4036
8e694ecf
AC
4037 * kod.c (kod_set_os): Remove unnecessary check that
4038 ``command->type'' is set_cmd.
4039
f66c9f11
AC
4040 * valprint.c (set_input_radix): Use input_radix.
4041 (set_output_radix): Use output_radix.
4042 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4043 isn't reverted.
4044
9d01611c
AC
40452002-03-16 Andrew Cagney <ac131313@redhat.com>
4046
4047 * value.h (struct value): Delete field ``substring_addr''. Change
4048 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
4049 force_core_addr_align and force_pointer_aligh.
4050
4051 * value.h (struct value): Fix typo in above change.
9d01611c 4052
4156bb53
PS
40532002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4054
4055 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4056 to fix internal_error from ``maintenance print architecture''.
4057
0e5e3ea6
PS
40582002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4059
4060 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4061 for gcc versions after gcc-2.8.1.
4062
9b013045
PS
40632002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4064
4065 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4066 for method resolution. Restore adjustment of ``this'' pointer after
4067 calling value_struct_elt, which was accidentally removed during the
4068 HP merge.
4069
376c9600
AC
40702002-03-15 Andrew Cagney <ac131313@redhat.com>
4071
4072 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4073 value_of_register.
4074 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4075 get_saved_register.
4076 * value.h (value_of_register): Update.
4077
a4db0f07
RH
40782002-03-14 Richard Henderson <rth@redhat.com>
4079
4080 * configure.in: Detect declaration for canonicalize_file_name.
4081 * utils.c (canonicalize_file_name): Declare, if needed.
4082 (gdb_realpath): Prefer realpath if available and usable.
4083 * config.in, configure: Rebuild.
4084
96383835
RH
40852002-03-14 Richard Henderson <rth@redhat.com>
4086
4087 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4088 a constant array bound.
4089
4090 * MAINTAINERS: Add myself to write-after-approval.
4091
75245b24
MS
40922002-03-14 Michael Snyder <msnyder@redhat.com>
4093
4094 * symfile.c (syms_from_objfile): Return immediately if no syms.
4095 (symbol_file_add): Return immediately if no syms.
4096 (find_sym_fns): Return immediately if no syms.
4097
e641a1ca
ML
40982002-03-13 Michal Ludvig <mludvig@suse.cz>
4099
4100 * gdbserver/remote-util.c (remote_open): Print remote-side's
4101 IP address when remote debugging over the network.
7e336ba1 4102
df08bfec
DB
41032002-03-12 David O'Brien <obrien@FreeBSD.org>
4104
4105 * config/sparc/fbsd.mh: Fix copyright.
4106 * config/sparc/fbsd.mt: Likewise.
4107
9a57864f
RE
41082002-03-11 Richard Earnshaw <rearnsha@arm.com>
4109
4110 * MAINTAINERS: Fix typo in name of gdb warnings option.
4111 (x86-64): Fix formating so that this can be parsed by awk.
4112
dd7bf85e
DJ
41132002-03-10 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4116 * defs.h: Include "gdb/signals.h".
4117 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4118
33a0a2ac
ML
41192002-03-10 Michal Ludvig <mludvig@suse.cz>
4120
4121 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 4122 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
4123 from x86-64-tdep.h
4124
dd824b04
DJ
41252002-03-10 Daniel Jacobowitz <drow@mvista.com>
4126 Don Howard <dhoward@redhat.com>
4127
4128 * mips-tdep.c (ST0_FR): Define.
4129 (mips2_fp_compat): New function, temporarily disabled.
4130 (mips_read_fp_register_single): New function.
4131 (mips_read_fp_register_double): New function.
4132 (mips_print_register): Use them.
4133 (do_fp_register_row): Likewise.
4134
6a41ff59
AC
41352002-03-09 Andrew Cagney <ac131313@redhat.com>
4136
4137 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4138 approval''.
4139
4ea09c10
PS
41402002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4141
4142 * stabsread.c (read_member_functions): Fix is_stub test for
4143 static member functions, improve comment.
4144
6ccc741d
RE
41452002-03-07 Richard Earnshaw <rearnsha@arm.com>
4146
4147 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4148 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4149 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4150 commands that set boolean values.
4151 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4152 (arm_rdi_resume): Always initialize PC.
4153 (arm_rdi_open): Don't use rslt as a boolean.
4154 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4155 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4156 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4157 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4158
438013df
AO
41592002-03-06 Alexandre Oliva <aoliva@redhat.com>
4160
4161 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4162 * configure: Rebuilt.
4163
70ed8774
SC
41642002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4165
4166 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4167 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4168
5ba2abeb
AC
41692002-03-06 Andrew Cagney <ac131313@redhat.com>
4170
4171 * cli/cli-decode.c (set_cmd_completer): New function.
4172 * command.h (set_cmd_completer): Declare.
4173 * cli/cli-decode.h (set_cmd_completer): Ditto.
4174
4175 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4176 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4177 * win32-nat.c (_initialize_inftarg): Ditto.
4178 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4179 * proc-api.c (_initialize_proc_api): Ditto.
4180 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4181 * source.c (_initialize_source): Ditto.
4182 * exec.c (_initialize_exec): Ditto.
4183 * solib.c (_initialize_solib): Ditto.
4184 * top.c (init_main): Ditto.
4185 * tracepoint.c (_initialize_tracepoint): Ditto.
4186 * symfile.c (_initialize_symfile): Ditto.
4187 * printcmd.c (_initialize_printcmd): Ditto.
4188 * infcmd.c (_initialize_infcmd): Ditto.
4189 * corefile.c (_initialize_core): Ditto.
4190
f779ca99
AC
41912002-03-05 Andrew Cagney <ac131313@redhat.com>
4192
4193 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4194
01a3934b
AC
41952002-03-05 Andrew Cagney <ac131313@redhat.com>
4196
4197 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4198
37057839
AC
41992002-03-05 Andrew Cagney <ac131313@redhat.com>
4200
4201 * NEWS: Update headings, 5.2 has branched.
4202
c6ecbae5
DJ
42032002-03-04 Daniel Jacobowitz <drow@mvista.com>
4204
4205 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4206 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4207 (register_addr, REGISTER_RAW_SIZE): Likewise.
4208 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4209 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4210
e9f30c21
ML
42112002-03-03 Michal Ludvig <mludvig@suse.cz>
4212
4213 * MAINTAINERS (x86-64): Add myself.
4214 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4215 changed value_ptr -> struct value *
4216
54394ac3
DB
42172002-03-01 David O'Brien <obrien@FreeBSD.org>
4218
4219 * configure.host (sparc64-*-freebsd): Add.
4220 * configure.tgt: Likewise.
4221 * config/sparc/fbsd.mh: New file.
4222 * config/sparc/fbsd.mt: Likewise.
4223 * config/sparc/nm-fbsd.h: Likewise.
4224 * config/sparc/tm-fbsd.h: Likewise.
4225
bfe95955
DJ
42262002-03-01 Daniel Jacobowitz <drow@mvista.com>
4227
4228 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4229 regformats/reg-s390x.dat.
4230
f33c6cbf
AC
42312002-03-01 Andrew Cagney <ac131313@redhat.com>
4232
4233 * utils.c: Add FIXME explaining true/false problem.
4234
5ecaa7dd
AC
42352002-02-28 Andrew Cagney <ac131313@redhat.com>
4236
4237 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4238
2a251cc2
MC
42392002-02-28 Michael Chastain <mec@shout.net>
4240
4241 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4242
6a8031a3 42432002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
4244
4245 * gdbserver/linux-s390-low.c: New file.
4246 * regformats/reg-s390.dat: New file.
4247 * regformats/reg-s390x.dat: New file.
4248 * gdbserver/configure.srv: Add S/390.
4249 * gdbserver/Makefile.in: Add S/390.
4250 * configure.tgt: Enable gdbserver for S/390.
4251
ac469903
EZ
42522002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4253
4254 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4255 first line of the doc string for "info dos", except at the end of
4256 the sentence, since the short help stops at the first period.
4257
985cb1a3
JM
42582002-02-28 Jason Merrill <jason@redhat.com>
4259
4260 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4261
c570663e
FF
42622002-02-27 Fred Fish <fnf@redhat.com>
4263
4264 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4265 comment (dumy -> dummy).
4266
43630227
PS
42672002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4268
4269 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4270
b84911e8
RB
42712002-02-27 Rodney Brown <rbrown64@csc.com.au>
4272
4273 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4274
58caa3dc
DJ
42752002-02-27 Daniel Jacobowitz <drow@mvista.com>
4276
4277 * gdbserver/acconfig.h: New file.
4278 * gdbserver/i387-fp.c: New file.
4279 * gdbserver/i387-fp.h: New file.
4280 * gdbserver/linux-x86-64.c: New file.
4281 * regformats/reg-x86-64.dat: New file.
4282 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4283 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4284 * gdbserver/configure.in: Add support for regsets.
4285 * gdbserver/config.in: Regenerate.
4286 * gdbserver/configure: Regenerate.
4287 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4288 * gdbserver/linux-low.h: New file.
4289 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4290 for regsets.
4291 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4292 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4293 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4294 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4295 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4296 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4297 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4298 "i387-fp.h". Add PTRACE_GETREGS and friends.
4299 * gdbserver/regcache.c (supply_register): New function.
4300 (supply_register_by_name): New function.
4301 (collect_register): New function.
4302 (collect_register_by_name): New function.
4303
93652174
DJ
43042002-02-27 Daniel Jacobowitz <drow@mvista.com>
4305
4306 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4307 (config.status): Add configure.srv dependency.
4308 (server_h): Add config.h dependency.
4309
a02e4a61
DJ
43102002-02-27 Daniel Jacobowitz <drow@mvista.com>
4311
4312 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4313 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4314 * gdbserver/configure.srv: Change i386-*-linux* to use
4315 reg-i386-linux.o.
4316
ce0eebec
AC
43172002-02-26 Andrew Cagney <ac131313@redhat.com>
4318
4319 * x86-64-tdep.c: Re-indent. Update copyright date.
4320
82dbc5f7
AC
43212002-02-26 Andrew Cagney <ac131313@redhat.com>
4322
4323 From Michal Ludvig <mludvig@suse.cz>:
4324 * x86-64-tdep.c (value.h): Delete.
4325 (gdb_assert.h): Include.
4326 (x86_64_register_convert_to_virtual,
4327 x86_64_register_convert_to_raw ): Add check which lets only
4328 floating-point values to be converted.
4329 (value_push): Delete.
4330 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4331 (i386_gdbarch_init): Number of register_bytes fixed.
4332
e4621584
AC
43332002-02-26 Andrew Cagney <ac131313@redhat.com>
4334
4335 * MAINTAINERS: Add x86-64 target.
4336
81a9a963
AC
43372002-02-26 Andrew Cagney <ac131313@redhat.com>
4338
4339 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4340 * osfsolib.c (solib_map_sections): Ditto.
4341 * irix5-nat.c (solib_map_sections): Ditto.
4342 * corelow.c (gdb_check_format): Ditto.
4343 * symfile.c (symfile_bfd_open): Ditto.
4344 * solib.c (solib_map_sections): Ditto.
4345 Fix PR gdb/354.
7e336ba1 4346
0f017ab9
AC
43472002-02-26 Andrew Cagney <ac131313@redhat.com>
4348
4349 * remote.c (_initialize_remote): By default, disable ``e'' and
4350 ``E'' step out-of-range packets.
4351
75738c29
AS
43522002-02-26 Andreas Schwab <schwab@suse.de>
4353
4354 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4355 m68k_linux_frame_saved_pc.
4356 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4357 in_sigtramp.
4358 (SIGCONTEXT_PC_OFFSET): Remove.
4359 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4360 m68k_linux_sigtramp_saved_pc): New functions.
4361 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4362 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4363 (UCONTEXT_PC_OFFSET): Define.
4364 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4365 non-RT and RT signal trampolines.
4366
7e8ed687
RE
43672002-02-26 Richard Earnshaw <rearnsha@arm.com>
4368
4369 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4370 (TARGET_NBPG, STACK_END_ADDR): Delete
4371 (VARIABLES_INSIDE_BLOCK): Delete.
4372
6972bc8b
AC
43732002-02-25 Andrew Cagney <ac131313@redhat.com>
4374
4375 * utils.c (perror_with_name): Make string parameter constant.
4376 (print_sys_errmsg): Ditto.
4377 (query): Ditto.
4378 * defs.h (perror_with_name): Update.
4379 (print_sys_errmsg): Update.
4380 (query): Update.
4381
aa32f823
DJ
43822002-02-25 Daniel Jacobowitz <drow@mvista.com>
4383
4384 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4385 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4386
19caaa45
PS
43872002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4388
4389 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4390 if it already matches the current architecture from the exec file.
4391 Include arch-utils.h for gdbarch_info_init prototype.
4392 * Makefile.in (rs6000-nat.o): Update dependencies.
4393
d951901f
EZ
43942002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4395
4396 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4397 list of exported variables.
4398
7ea81414
DJ
43992002-02-24 Daniel Jacobowitz <drow@mvista.com>
4400
4401 * gdbserver/configure.srv: New file.
4402 * gdbserver/configure.in: Use configure.srv instead
4403 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4404 from it.
4405 * gdbserver/configure: Regenerated.
4406 * gdbserver/terminal.h: New file.
4407 * gdbserver/Makefile.in: Update for configure changes. Remove
4408 more unneeded include paths.
4409
080fe24b
AC
44102002-02-24 Andrew Cagney <ac131313@redhat.com>
4411
4412 From wiz at danbala:
4413 * config/sparc/tm-sp64.h: Fix grammar and typos.
4414 Fix PR gdb/287.
4415
8605d56e
AC
44162002-02-24 Andrew Cagney <ac131313@redhat.com>
4417
4418 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
4419 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4420 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4421 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
4422 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4423 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4424 * s390-tdep.c: Ditto.
92362027
AC
4425 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4426 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4427 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4428 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4429 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4430 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4431 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4432 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4433 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4434 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 4435 Fix PR gdb/378.
7e336ba1 4436
8ed32cc0
AC
44372002-02-23 Andrew Cagney <ac131313@redhat.com>
4438
a3007b6f
AC
4439 * lin-thread.c: Delete file.
4440 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4441 to gdb_proc_service.h.
4442 * configure: Re-generate.
4443
50a9e2f1
AC
4444 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4445 * serial.c (serial_open): Delete check for "ocd".
4446 Fix PR gdb/349.
4447
8b6e7932
AC
4448 * Makefile.in (linux-thread.o): Delete target.
4449 * linux-thread.c: Delete file.
4450
d155c46b
AC
4451 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4452 renamed SH files to be consistent.
4453
8ed32cc0
AC
4454 * symtab.c (sort_search_symbols): Use xfree.
4455
0e18d038
RE
44562002-02-23 Richard Earnshaw <rearnsha@arm.com>
4457
4458 * arm-linux-tdep.c (arm_linux_init_abi): Register
4459 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4460 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4461 definition with undef, since we don't want the sysvr4 definition.
4462 (SKIP_TRAMPOLINE_CODE): Likewise.
4463
27aac7ff
AC
44642002-02-23 Andrew Cagney <ac131313@redhat.com>
4465
4466 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4467
4468 * configure.in: (AC_CHECK_FUNCS) Added test for
4469 canonicalize_file_name Regenerated.
4470 * config.in, configure: Regenerated.
4471 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4472 defined use canonicalize_file_name.
7e336ba1 4473
65a6e0ee
MC
44742002-02-23 Michael Chastain <mec@shout.net>
4475
4476 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4477
47b95330
AC
44782002-02-23 Andrew Cagney <ac131313@redhat.com>
4479
4480 * README: Remove references to cygnus.com.
4481 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4482 dot com'' form. Remove references to cygnus.com and sourceware.
4483
696f451b
AC
44842002-02-23 Andrew Cagney <ac131313@redhat.com>
4485
4486 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4487 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4488 1003.1-2001 no longer allows "head -1".
4489 * gdb/Makefile.in (version.c): Likewise.
4490 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4491 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4492 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4493
bbaca940
AC
44942002-02-23 Andrew Cagney <ac131313@redhat.com>
4495
4496 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4497 * command.h (cmd_cfunc_eq): Declare.
4498 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4499
4500 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4501 ``struct cmd_list_element *''.
4502 * cli/cli-cmds.c (is_complete_command): Update. Use
4503 cmd_cfunc_eq.
4504 * top.c (execute_command): Pass the command to
4505 is_complete_command.
4506 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4507
b8b8b047
AC
45082002-02-23 Andrew Cagney <ac131313@redhat.com>
4509
4510 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4511 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4512 architecture defines.
4513 * s390-tdep.c (s390_gdbarch_init): Likewise.
4514
19d3fc80
RE
45152002-02-23 Richard Earnshaw <rearnsha@arm.com>
4516
4517 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4518 (arm_linux_push_arguments): Likewise.
4519 (arm_linux_init_abi): Register them. Also register linux-specific
4520 call_dummy_words.
4521 (find_minsym_and_objfile): Use strcmp, not STREQ.
4522 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4523 (arm_linux_call_dummy_words): Delete declaration.
4524 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4525 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4526 declarations.
4527 (LOWEST_PC): Delete.
4528
3ab13650
PS
45292002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4530
4531 * maint.c (print_section_info): Do not prepend `0x' to filepos
4532 output, it will be handled by local_hex_string_custom.
4533
19d3fc80 45342002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
4535
4536 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4537 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4538 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4539
d85a5daf
JB
45402002-02-22 Jim Blandy <jimb@redhat.com>
4541
4542 Indicate that the bcache functions don't change the strings
4543 they're passed.
4544 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4545 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4546
eeb25b8a
PM
45472002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4548
4549 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4550
6badb179
CF
45512002-02-21 Christopher Faylor <cgf@redhat.com>
4552
4553 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4554 find the complete path to a loaded DLL.
4555
e8717518
FF
45562002-02-21 Fred Fish <fnf@redhat.com>
4557
4558 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4559 that marks the end of the range of a function, enter a line number
4560 entry that has a line number of zero and a PC offset that matches
4561 the end of the function. This starts a range of PC's for which no
4562 line number information is known.
4563 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4564 PC's for which no line number info is found (line number is zero)
4565 then we didn't find any valid line information.
4566 * symtab.h: Document use of zero line number entry.
4567
9abe5450
EZ
45682002-02-21 Elena Zannoni <ezannoni@redhat.com>
4569
4570 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4571 (have_ptrace_getvrregs): Define for run time checks.
4572 (gdb_vrregset_t): New type for Altivec register handling.
4573 (fetch_register, store_register): Fetch/store altivec register
4574 when needed.
4575 (fetch_altivec_register, store_altivec_register): New functions.
4576 (supply_vrregset, fill_vrregset): New functions.
4577 (fetch_altivec_registers, store_altivec_registers): New functions.
4578 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4579 registers as well.
4580
aaa38bb5
AJ
45812002-02-21 Jiri Smid <smid@suse.cz>
4582
4583 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4584
b34db576
RE
45852002-02-21 Richard Earnshaw <rearnsha@arm.com>
4586
4587 * Makefile.in (armnbsd-nat.o): Update dependencies.
4588 * armnbsd-nat.c (supply_gregset): New function. Common code to
4589 supply the integer register set.
4590 (supply_fparegset): New function. Similar for FPA registers.
4591 (fetch_regs, fetch_fp_regs): Use them.
4592 (fetch_core_registers): Likewise.
4593 (fetch_elfcore_registers): New function.
4594 (arm_netbsd_elfcore_fns): New core-file type specification.
4595 (_initialize_arm_netbsd_nat): Register it.
4596
3e56fc4b
RE
45972002-02-21 Richard Earnshaw <rearnsha@arm.com>
4598
4599 * armnbsd-nat.c: Include gdbcore.h.
4600 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4601 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4602 'void' to declaration, to shut up ARI.
4603 (fetch_core_registers): Make static. Rewrite using supply_register.
4604 (arm_netbsd_core_fns): New core-file type specification.
4605 (_initialize_arm_netbsd_nat): New function.
4606
097f6b0b
CF
46072002-02-21 Christopher Faylor <cgf@redhat.com>
4608
4609 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4610 value.
4611
c914e0cc
CF
46122002-02-20 Christopher Faylor <cgf@redhat.com>
4613
4614 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4615 fails.
4616
385fa495
DJ
46172002-02-20 Daniel Jacobowitz <drow@mvista.com>
4618
4619 * jv-exp.y (parse_number): Change type of implicit longs
4620 to builtin_type_uint64.
4621
e5f1222d
DJ
46222002-02-20 Daniel Jacobowitz <drow@mvista.com>
4623
4624 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4625 to be an integer instead of a `union wait'.
4626
75c9abc6
DJ
46272002-02-20 Daniel Jacobowitz <drow@mvista.com>
4628
4629 * mips-linux-nat.c: Call the operating system GNU/Linux.
4630 * mips-linux-tdep.c: Likewise.
4631 * mips-tdep.c: Likewise.
4632
551792a5
DJ
46332002-02-20 Daniel Jacobowitz <drow@mvista.com>
4634
4635 Fix PR gdb/265.
4636 * jv-exp.y (parse_number): Handle 64-bit integers.
4637
ee6e2b82
DJ
46382002-02-20 Daniel Jacobowitz <drow@mvista.com>
4639
4640 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4641 AC_STDC_HEADERS to AC_HEADER_STDC.
4642 * gdbserver/configure: Regenerated.
4643
a48442a0
RE
46442002-02-20 Richard Earnshaw <rearnsha@arm.com>
4645
4646 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4647 is defined.
4648 * sparc-tdep.c (get_longjmp_target): Likewise.
4649
fe419ffc
RE
46502002-02-20 Richard Earnshaw <rearnsha@arm.com>
4651
4652 * News: Add news about ARM and Multi-arch. Mention the new target
4653 arm*-*-netbsd*.
4654
5832ed7e
JB
46552002-02-19 Jim Blandy <jimb@redhat.com>
4656
4657 * stabsread.c (error_type_complaint): Improve error message.
4658
84563040
DJ
46592002-02-19 Daniel Jacobowitz <drow@mvista.com>
4660
4661 * gdbserver/README: Update documentation.
4662 * gdbserver/configure.in: Update configury to match documentation.
4663 * gdbserver/Makefile.in: Likewise.
4664 * gdbserver/configure: Regenerated.
4665 * gdbserver/aclocal.m4: New file, generated by aclocal.
4666 * gdbserver/config.in: New file, generated by autoheader.
4667
375fd65b
RE
46682002-02-19 Richard Earnshaw <rearnsha@arm.com>
4669
4670 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
4671 armnbsd-nat.c.
4672
08216dd7
RE
46732002-02-19 Richard Earnshaw <rearnsha@arm.com>
4674
4675 * arm-tdep.h (enum arm_float_model): New enum.
4676 (struct gdbarch_tdep): Add fp_model.
4677 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
4678 up floating-point conversions until we know the floating-point model
4679 in use by the inferior. Don't complain about being unable to
4680 determine the ABI of the inferior when we don't have one.
4681 (arm_extract_return_value): Support different floating-point models.
4682 (arm_store_return_value): Likewise.
aaa38bb5 4683 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
4684 ARM_FLOAT_SOFT.
4685 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
4686
65d6d66a
PS
46872002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4688
4689 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
4690 of ``current_gdbarch''.
4691
47221191
RE
46922002-02-19 Richard Earnshaw <rearnsha@arm.com>
4693
4694 * armnbsd-nat.c : ANSIfy all function declarations.
4695 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
4696 (fetch_inferior_registers): Re-implement in terms of above.
4697 (store_register, store_regs, store_fp_register, store_fp_regs): New.
4698 (store_inferior_registers): Re-implement in terms of above.
4699
fdf39c9a
RE
47002002-02-19 Richard Earnshaw <rearnsha@arm.com>
4701
aaa38bb5 4702 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
4703 kernel.
4704 * arm-linux-tdep.c: Likewise.
4705 * config/arm/tm-linux.h: Likewise.
4706
93247f88
RE
47072002-02-19 Richard Earnshaw <rearnsha@arm.com>
4708
4709 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
4710 * config/arm/nbsd.mt (TM_FILE): Delete.
4711 * config/arm/tm-nbsd.h: Delete.
4712
d7b486e7
RE
47132002-02-19 Richard Earnshaw <rearnsha@arm.com>
4714
4715 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
4716 Initialize CALL_DUMMY_LENGTH.
4717
41d39a95
RE
47182002-02-19 Richard Earnshaw <rearnsha@arm.com>
4719
4720 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
4721 function.
4722 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 4723 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
4724 defines one thing and that is incorrect for this port.
4725 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
4726
e1195560
PM
47272002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4728
4729 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
4730
c1748f97
PM
47312002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4732
4733 * win32-nat.c (display_selector): New function. Displays information
4734 about the information returned by GetThreadSelectorEntry API function.
4735 (display_selectors): New function. Displays the infomation of
4736 the selector given as argument, or of CS, DS ans FS selectors
4737 if no argument is given.
4738 ( _initialize_inftarg): Add "w32" as info prefix command.
4739 Add "info w32 selector" as command calling display_selectors.
4740
e41e6bbf
PM
47412002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
4742
4743 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4744 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
4745 if not defined.
4746
0d3a9f48
RE
47472002-02-18 Richard Earnshaw <rearnsha@arm.com>
4748
4749 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
4750
3fb4b924
RE
47512002-02-18 Richard Earnshaw <rearnsha@arm.com>
4752
4753 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
4754 (arm_fix_call_dummy): Call it.
4755 (arm_call_dummy_breakpoint_offset): Delete.
4756 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
4757 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4758
7f55af32
AC
47592002-02-18 Andrew Cagney <ac131313@redhat.com>
4760
4761 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
4762 Default to func_frame_chain_valid.
4763 * gdbarch.h, gdbarch.c: Re-generate.
4764 * frame.h (FRAME_CHAIN_VALID): Delete definition.
4765
05f13b9c
EZ
47662002-02-18 Elena Zannoni <ezannoni@redhat.com>
4767
4768 * ppc-linux-nat.c: Update copyright.
4769 (fetch_register, store_register): Add tid parameter, don't compute
4770 tid here.
4771 (fetch_ppc_registers, store_ppc_registers): Add tid
4772 parameter. Pass it along to callees.
4773 (fetch_inferior_registers, store_inferior_registers): Compute tid
4774 here, and pass it to calleed functions.
4775 (fill_gregset, supply_fpregset): Clean up formatting.
4776
d7afb4c9
RE
47772002-02-18 Richard Earnshaw <rearnsha@arm.com>
4778
4779 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
4780 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
4781
9df628e0
RE
47822002-02-18 Richard Earnshaw <rearnsha@arm.com>
4783
4784 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
4785 * gdbarch.c gdbarch.h: Regenerate.
4786 * breakpoint.c (create_longjmp_breakpoint): Always compile this
4787 function.
4788 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
4789 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
4790 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
4791
4792 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
4793 * arm-tdep.c (arm_get_longjmp_target): New function.
4794 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
4795 this to a positive value register arm_get_longjmp_target as the
4796 longjmp handler.
4797 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
4798 (arm_linux_init_abi): Set up longjmp description in tdep.
4799 * armnbsd-nat.c (get_longjmp_target): Delete.
4800 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4801 description in tdep.
4802 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4803 (get_longjmp_target): Delete declaration.
4804 (GET_LONGJMP_TARGET): Delete.
4805 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4806 (GET_LONGJMP_TARGET): Delete.
4807
57bc8964
KB
48082002-02-17 Kevin Buettner <kevinb@redhat.com>
4809
4810 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4811 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4812 of ``current_gdbarch''.
4813
83d31a92
TT
48142002-02-17 Tom Tromey <tromey@redhat.com>
4815
4816 * cli/cli-cmds.c (compare_strings): New function.
4817 (complete_command): Only print each unique item once.
4818 * completer.h (complete_line): Declare.
4819 * completer.c (complete_line): New function.
4820 (line_completion_function): Use it.
4821
17ef5d92
AC
48222002-02-16 Andrew Cagney <ac131313@redhat.com>
4823
4824 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4825 * gdbarch.h, gdbarch.c: Re-generate.
4826
491b8946
DJ
48272002-02-16 Daniel Jacobowitz <drow@mvista.com>
4828
4829 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4830
48312002-02-16 Daniel Jacobowitz <drow@mvista.com>
4832
4833 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4834 * valops.c (value_arg_coerce): Don't take the address of a reference
4835 to convert an argument to a reference.
4836
dfe7f3ac
CF
48372002-02-15 Christopher Faylor <cgf@redhat.com>
4838
4839 * win32-nat.c (get_image_name): New function.
4840 (handle_load_dll): Use get_image_name function.
4841 (get_child_debug_event): Avoid registering debug events until possibly
4842 execed process is started.
4843 (child_create_inferior): Allow invocation via shell so that command
4844 line redirection, etc. works ok.
4845 (_initialize_inftarg): Add new command: "set shell" to control whether
4846 a shell is used to start a process.
4847
1d33e73a
DJ
48482002-02-15 Daniel Jacobowitz <drow@mvista.com>
4849
4850 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4851 instead of find_register_by_number.
4852 (cannot_store_register): Likewise.
4853
48cd0caa
PM
48542002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4855
aaa38bb5 4856 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
4857 fprintf_unfiltered (gdb_stderr, ...).
4858
8656e7d8
DJ
48592002-02-15 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * gdbserver/gdbserver.1: Document --attach.
4862
66e810cd
RE
48632002-02-15 Richard Earnshaw <rearnsha@arm.com>
4864
4865 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4866 descriptions.
4867 * arm-tdep.c (arm_default_arm_le_breakpoint)
4868 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4869 (arm_default_thumb_be_breakpoint): New. Initialize them from
4870 traditional breakpoint defines.
4871 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4872 (arm_gdbarch_init): Initialize new breakpoint variables.
4873 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4874 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4875 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4876 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4877 code out to ...
4878 (arm_netbsd_init_abi_common): ... here; new function.
4879 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4880 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4881 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4882 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4883
97e03143
RE
48842002-02-15 Richard Earnshaw <rearnsha@arm.com>
4885
4886 * arm-tdep.h (enum arm_abi): New enum.
4887 (struct gdbarch_tdep): New structure.
4888 (LOWEST_PC): Provide a default.
4889 (arm_gdbarch_register_os_abi): Declare new function.
4890 * arm-tdep.c (arm_abi_names): New array.
4891 (process_note_abi_tag_sections): New function.
4892 (get_elfosabi): New function.
4893 (arm_gdbarch_register_os_abi): New function.
4894 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4895 support for that ABI has been built in, then call the appropriate
4896 configuration routine. Use gdbarch_num_regs() to get the number
4897 of registers.
4898 (arm_dump_tdep): New function.
4899 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4900 place-holder functions.
4901 (_initialize_arm_tdep): Register them.
4902 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4903
4904 * armnbsd-tdep.c: New file.
4905 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4906 * config/arm/nbsd.mt (TDEPFILES): Add it.
4907 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4908
4909 * armnbsd-nat.c: Include regcache.h.
4910 * Makefile.in (armnbsd-nat.o): Update dependency list.
4911
4912 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4913
ad68be46
DJ
49142002-02-14 Daniel Jacobowitz <drow@mvista.com>
4915
4916 * gdbserver/Makefile.in: Fix typos in target rules.
4917
003d6d1d
DJ
49182002-02-14 Daniel Jacobowitz <drow@mvista.com>
4919
aaa38bb5 4920 Fix part of PR gdb/267.
003d6d1d
DJ
4921 * linespec.c (find_methods): Handle constructors specially for now.
4922
6b230f1b
CV
49232002-02-14 Corinna Vinschen <vinschen@redhat.com>
4924
4925 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4926 handling.
4927 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4928 standard_coerce_float_to_double().
4929
1ea98d12
CF
49302002-02-14 Christopher Faylor <cgf@redhat.com>
4931
4932 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4933 GDBINIT_FILENAME.
4934
dd47e6fd
EZ
49352002-02-14 Elena Zannoni <ezannoni@redhat.com>
4936
4937 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4938 find_variant_by_name, because it confuses the multiarch
4939 framework. Return NULL if there isn't an architecture with the
4940 user supplied name, instead of forcing a different one without
4941 recording the change with the multiarch machinery.
4942 (find_variant_by_name): Delete.
4943
d7e39b9e
PS
49442002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4945
4946 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4947 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4948
76e42a4f
MH
49492002-02-13 Martin M. Hunt <hunt@redhat.com>
4950
aaa38bb5 4951 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
4952 print_frame_info_listing_hook, set current_source_symtab.
4953
0a30fbc4
DJ
49542002-02-14 Daniel Jacobowitz <drow@mvista.com>
4955
4956 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4957 and remove unused $(INCLUDE_DIR).
4958 Add regcache.c to OBS.
4959 Add generated register protocol files to clean target.
4960 Update dependencies for new objects, obsolete old target code.
4961
4962 * gdbserver/linux-low.c: Remove all platform-specific code to
4963 new files. Remove various dead code. Update to use regcache
4964 functionality.
4965 * gdbserver/remote-utils.c (fromhex): Add return statement
4966 to quiet warning.
4967 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4968 constant.
4969 (input_interrupt): Add integer parameter to match prototype
4970 of a signal handler.
4971 (outreg): Use register_data ().
4972 (prepare_resume_reply): Use gdbserver_expedite_regs.
4973 * gdbserver/server.c (main): Dynamically allocate own_buf because
4974 PBUFSIZ is no longer constant. Use registers_to_string () and
4975 registers_from_string ().
4976 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4977 for error (), fatal (), and warning (). Update definition of
4978 PBUFSIZ to use regcache functionality. Add include guard.
4979 * gdbserver/utils.c (fatal): Add missing ``const''.
4980 (warning): New function.
4981
4982 * regformats/regdat.sh: Include "regcache.h" in generated files.
4983 Provide init_registers () function.
4984 * regformats/regdef.h: Add prototype for set_register_cache ().
4985 Add include guard.
4986
4987 * gdbserver/linux-arm-low.c: New file.
4988 * gdbserver/linux-i386-low.c: New file.
4989 * gdbserver/linux-ia64-low.c: New file.
4990 * gdbserver/linux-m68k-low.c: New file.
4991 * gdbserver/linux-mips-low.c: New file.
4992 * gdbserver/linux-ppc-low.c: New file.
4993 * gdbserver/linux-sh-low.c: New file.
4994
4995 * gdbserver/regcache.c: New file.
4996 * gdbserver/regcache.h: New file.
4997
4998 * gdbserver/low-linux.c: Removed obsolete file.
4999
4cc841d0
DJ
50002002-02-14 Daniel Jacobowitz <drow@mvista.com>
5001
5002 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5003 * config/i386/linux.mt: Likewise.
5004 * config/ia64/linux.mt: Likewise.
5005 * config/m68k/linux.mh: Likewise.
5006 * config/powerpc/linux.mh: Likewise.
5007 * config/mips/linux.mt: Likewise.
5008
5009 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5010
5011 * config/i386/i386lynx.mh: Mark gdbserver variables
5012 as (currently) obsolete for this target.
5013 * config/i386/nbsd.mt: Likewise.
5014 * config/i386/nbsdelf.mt: Likewise.
5015 * config/m32r/m32r.mt: Likewise.
5016 * config/m68k/m68klynx.mh: Likewise.
5017 * config/m68k/nbsd.mt: Likewise.
5018 * config/m68k/sun3os4.mh: Likewise.
5019 * config/mips/vr5000.mt: Likewise.
5020 * config/ns32k/nbsd.mt: Likewise.
5021 * config/pa/hppabsd.mh: Likewise.
5022 * config/pa/hppaosf.mh: Likewise.
5023 * config/powerpc/nbsd.mt: Likewise.
5024 * config/rs6000/rs6000lynx.mh: Likewise.
5025 * config/s390/s390.mt: Likewise.
5026 * config/s390/s390x.mt: Likewise.
5027 * config/sparc/sparclynx.mh: Likewise.
5028 * config/sparc/sun4os4.mh: Likewise.
5029 * config/i386/x86-64linux.mt: Likewise.
5030 * config/sparc/linux.mh: Likewise.
5031
a85f51e7
DJ
50322002-02-14 Daniel Jacobowitz <drow@mvista.com>
5033
5034 * configure.tgt: Configure gdbserver only for known working
5035 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5036 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5037 SUBDIRS if it is configured. Update comment for ${nativefile}.
5038 * configure: Regenerated.
5039
65554fef
MS
50402002-02-13 Michael Snyder <msnyder@redhat.com>
5041
670a52db
MS
5042 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5043
6dbdc4a3
MS
5044 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5045 (default_gcore_mach): Just return 0, work around a problem in bfd.
5046 (default_gcore_target): OK to return NULL if exec_bfd is null.
5047 (make_mem_sec): Use a cast, avoid a warning.
5048
5049 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 5050 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
5051 sizeof (host pointer) != sizeof (target pointer)).
5052 (procfs_make_note_section): Avoid overflow in psargs string.
5053
aaa38bb5 5054 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
5055 implementation return an error.
5056
50572002-02-13 Rodney Brown <rbrown64@csc.com.au>
5058
5059 * procfs.c (procfs_make_note_section): Provide a default definition
5060 (for alpha-dec-osf4.0f). Fix typos.
5061
1e4d76e7
EZ
50622002-02-13 Elena Zannoni <ezannoni@redhat.com>
5063
5064 * linux-proc.c: Add include of regcache.h.
5065 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5066
b6d1a1d5
AC
50672002-02-13 Andrew Cagney <ac131313@redhat.com>
5068
5069 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
5070 * memattr.c (create_mem_region): Disallow useless empty region.
5071 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 5072 non-overlapping.
b6d1a1d5 5073
6c6ea35e
MC
50742002-02-13 Michael Chastain <mec@shout.net>
5075
5076 * defs.h: Kill CONST_PTR.
5077 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5078 * c-lang.c (c_builtin_types): Likewise.
5079 * ch-lang.c (ch_builtin_types): Likewise.
5080 * f-lang.c (f_builtin_types): Likewise.
5081 * language.c (unknown_builtin_types): Likewise.
5082 * m2-lang.c (m2_builtin_types): Likewise.
5083 * p-lang.c (pascal_builtin_types): Likewise.
5084 * scm-lang.c (c_builtin_types): Likewise.
5085
3e0b0f48
KS
50862002-02-13 Keith Seitz <keiths@redhat.com>
5087
5088 * arm-tdep.h (arm_get_next_pc): Add declaration.
5089
67255d04
RE
50902002-02-13 Richard Earnshaw <rearnsha@arm.com>
5091
5092 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5093 with other related struct-returning functions.
5094 (arm_extract_struct_value_address): New function.
5095 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5096 initialize float_format, double_format and long_double_format as
5097 appropriate to the endianness of the target.
5098 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5099 (arm_use_struct_convention): Delete declaration.
5100 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5101
079777f6
KS
51022002-02-13 Keith Seitz <keiths@redhat.com>
5103
5104 * defs.h (core_addr_to_string_nz): New function.
5105
34588f23
MK
51062002-02-13 Mark Kettenis <kettenis@gnu.org>
5107
5108 Apply missing bits of 2002-01-15 patch.
5109 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5110 (fill_fpregset): Use i387_fill_fsave.
5111
49b563f9
KS
51122002-02-12 Keith Seitz <keiths@redhat.com>
5113
49b563f9
KS
5114 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5115 (core_addr_to_string_nz): New function.
5116
aeb98c60
RE
51172002-02-11 Richard Earnshaw <rearnsha@arm.com>
5118
5119 * arm-linux-nat.c: Really include arm-tdep.h.
5120 * config/arm/tm-linux.h (struct type, struct value): Declare.
5121
65554fef
MS
51222002-02-11 Michael Snyder <msnyder@redhat.com>
5123
5124 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5125 (gcore section): Ifdef for Solaris and Unixware only.
5126 (procfs_do_thread_registers): Unixware needs one lwpstatus
5127 per thread (not one prstatus or pstatus).
5128 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5129 not over all gdb threads. For unixware, call elfcore_write_pstatus
5130 once before iterating over threads.
5131
34e8f22d
RE
51322002-02-11 Richard Earnshaw <rearnsha@arm.com>
5133
5134 * arm-tdep.h: New file.
5135 * arm-tdep.c: Include arm-tdep.h.
5136 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5137 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5138 (arm_print_float_info, arm_register_type, convert_to_extended)
5139 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5140 (arm_extract_return_value, arm_register_name): Make static.
5141 (arm_software_single_step): Similarly. Fix types in declaration.
5142 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5143 (arm_store_return_value, arm_store_struct_return): New functions.
5144 (arm_gdbarch_init): Register the above functions. Also register
5145 call_dummy_start_offset, sizeof_call_dummy_words,
5146 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5147 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 5148 max_register_virtual_size, register_size. Set up
34e8f22d
RE
5149 prologue_cache.saved_regs here, rather than ...
5150 (_initialize_arm_tdep): ... here.
5151 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5152 declarations.
5153 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5154 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5155 (arm_print_float_info, arm_register_type, convert_to_extended)
5156 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5157 (arm_extract_return_value, arm_register_name): Delete declarations.
5158 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5159 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5160 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5161 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5162 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5163 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5164 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5165 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5166 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5167 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5168 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5169 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5170 interface.
5171 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5172 * remote-rdi.c remote-rdp.c: Likewise.
5173 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5174 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5175 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5176 definition.
5177
5178 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5179 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5180 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5181 from non-ARM_ prefixed definitions.
5182 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5183 all uses of above.
5184 * remote-rdi.c remote-rdp.c: Likewise.
5185 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5186
148754e5
RE
51872002-02-11 Richard Earnshaw <rearnsha@arm.com>
5188
5189 * arm-tdep.c (arm_frameless_function_invocation)
5190 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5191 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5192 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5193 (arm_pop_frame, arm_get_next_pc): Make static.
5194 (arm_gdbarch_init): Register above in gdbarch structure.
5195 (arm_read_fp): Renamed from arm_target_read_fp.
5196 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5197 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5198 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5199 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5200 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5201 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5202 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
5203 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5204 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5205 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5206 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 5207
434d2d4f
DJ
52082002-02-10 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * symtab.c (compare_search_syms): New function.
5211 (sort_search_symbols): New function.
5212 (search_symbols): Sort symbols after searching rather than
5213 before.
5214
55241689
AC
52152002-02-10 Andrew Cagney <ac131313@redhat.com>
5216
5217 * NEWS: Linux -> GNU/Linux.
5218
028c194b
AC
52192002-02-10 Andrew Cagney <ac131313@redhat.com>
5220
5221 * gdbarch.sh: For for level one methods, disallow a definition
5222 when partially multi-arched. Add comments explaining rationale.
5223 * gdbarch.h: Re-generate.
5224
6acf50cd
AC
52252002-02-10 Andrew Cagney <ac131313@redhat.com>
5226
5227 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5228 multi-arch partial.
aaa38bb5 5229
50248794
AC
52302002-02-10 Andrew Cagney <ac131313@redhat.com>
5231
5232 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5233 field. Use diff -u.
5234 * gdbarch.c: Re-generate.
5235
c30e0066
AC
52362002-02-10 Andrew Cagney <ac131313@redhat.com>
5237
9b56c5f3 5238 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
5239 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5240 partial.
5241
6e6d6484
AC
52422002-02-10 Andrew Cagney <ac131313@redhat.com>
5243
5244 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5245 multi-arch partial.
5246 (PUSH_ARGUMENTS): Switch to using predefault.
5247 * gdbarch.c: Regenerate.
5248
c203844d
AC
52492002-02-10 Andrew Cagney <ac131313@redhat.com>
5250
5251 * valops.c (PUSH_ARGUMENTS): Delete definition.
5252 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5253 partial. Default to default_push_arguments.
5254 * gdbarch.h, gdbarch.c: Regenerate.
5255
b5a2688f
AC
52562002-02-09 Andrew Cagney <ac131313@redhat.com>
5257
5258 * defs.h (throw_exception): Rename return_to_top_level. Update
5259 comments.
5260 * utils.c (error_stream, internal_verror, quit): Ditto.
5261 * top.c (throw_exception, catcher): Ditto.
5262 * sparclet-rom.c (sparclet_load): Ditto.
5263 * remote.c (interrupt_query, minitelnet): Ditto.
5264 * remote-sds.c (interrupt_query): Ditto.
5265 * remote-mips.c (mips_error, mips_kill): Ditto.
5266 * ocd.c (interrupt_query): Ditto.
5267 * monitor.c (monitor_interrupt_query): Ditto.
5268 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5269 * target.h: Update comment.
aaa38bb5 5270
b5a2688f 5271 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 5272
2fa5c1e0
AC
52732002-02-09 Andrew Cagney <ac131313@redhat.com>
5274
5275 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5276 default_double_format.
5277 * gdbarch.h, gdbarch.c: Re-generate.
5278 * findvar.c (floatformat_unknown): Delete variable definition.
5279 * doublest.h (floatformat_unknown): Delete variable declaration.
5280
da966255
JB
52812002-02-09 Jim Blandy <jimb@redhat.com>
5282
5283 * stabsread.c (read_type): Add code to parse Sun's syntax for
5284 prototyped function types.
5285
123a4891
AC
52862002-02-09 Andrew Cagney <ac131313@redhat.com>
5287
5288 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5289 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5290
fb39c8f3
PS
52912002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5292
5293 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5294 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5295 now _initialize_xcoffsolib gets called again and overrides the
5296 commands from solib.c in a native configuration.
5297
0b87a11d
MK
52982002-02-09 Mark Kettenis <kettenis@gnu.org>
5299
5300 * doublest.c (store_typed_floating): Don't try to return a value.
5301 Fixes PR gdb/290.
5302
bdc2fc72
JB
53032002-02-08 Jim Blandy <jimb@redhat.com>
5304
5305 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5306 is prototyped and has no arguments, print its argument list as
5307 `(void)'.
5308
da69bbcf
CD
53092002-02-08 Chris Demetriou <cgd@broadcom.com>
5310
5311 * MAINTAINERS (write-after-approval): Add myself.
5312 (paper-trail): I've escaped!
aaa38bb5 5313
b69571f5
CF
53142002-02-08 Christopher Faylor <cgf@redhat.com>
5315
5316 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5317 changes.
5318 (_initialize_check_for_gdb_ini): Ditto.
5319
f6871398
MH
53202002-02-08 Martin M. Hunt <hunt@redhat.com>
5321
5322 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5323 xaprintf -> xasprintf.
5324
4e52d31c
PM
53252002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5326
5327 * win32-nat.c: Remove use of printf and sprintf functions.
5328
39bbf761
RE
53292002-02-08 Richard Earnshaw <rearnsha@arm.com>
5330
5331 * arm-tdep.c (arm_frame_chain_valid): Make static.
5332 (arm_push_arguments): Likewise.
5333 (arm_gdbarch_init): New function.
5334 (_initialize_arm_tdep): Call it.
5335 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5336 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5337 (FRAME_CHAIN_VALID): Delete.
5338 (arm_frame_chain_valid): Delete declaration.
5339 (PUSH_ARGUMENTS): Delete.
5340 (arm_push_arguments): Delete declaration.
5341 (CALL_DUMMY_P): Delete.
5342
9c9532c9
CV
53432002-02-08 Andrew Cagney <ac131313@redhat.com>
5344 Corinna Vinschen <vinschen@redhat.com>
5345
5346 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5347 on builtin float types.
5348
4e8f7a8b
DJ
53492002-02-08 Daniel Jacobowitz <drow@mvista.com>
5350
5351 * utils.c: Include <curses.h> before "bfd.h".
5352 * tui/tui-hooks.c: Likewise.
5353 * tui/tui.c: Likewise.
5354 * tui/tuiCommand.c: Likewise.
5355 * tui/tuiData.c: Likewise.
5356 * tui/tuiDataWin.c: Likewise.
5357 * tui/tuiDisassem.c: Likewise.
5358 * tui/tuiGeneralWin.c: Likewise.
5359 * tui/tuiIO.c: Likewise.
5360 * tui/tuiLayout.c: Likewise.
5361 * tui/tuiRegs.c: Likewise.
5362 * tui/tuiSource.c: Likewise.
5363 * tui/tuiSourceWin.c: Likewise.
5364 * tui/tuiStack.c: Likewise.
5365 * tui/tuiWin.c: Likewise.
5366
cd4bffcf
EZ
53672002-02-07 Elena Zannoni <ezannoni@redhat.com>
5368
5369 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5370 to include space for pseudoregs as well. Update loops accordingly.
5371 (sh_fp_frame_init_saved_regs): Ditto.
5372 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5373
26806ce2
AC
53742002-02-07 Andrew Cagney <ac131313@redhat.com>
5375
5376 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5377 Add Richard Earnshaw to Arm maintainers.
5378
97fdab62
AC
53792002-02-07 Andrew Cagney <ac131313@redhat.com>
5380
a6b98203
AC
5381 * defs.h (warning_begin): Delete declaration.
5382
97fdab62
AC
5383 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5384 Delete macro.
5385
78b29b40
MS
53862002-02-07 Michael Snyder <msnyder@redhat.com>
5387
aaa38bb5 5388 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
5389 Logic bug, remove misplaced else.
5390
d8849953
KD
53912002-02-07 Klee Dienes <klee@apple.com>
5392
5393 * fork-inferior.c (fork_inferior): Add '!' to the list of
5394 characters that need to be quoted when building a string for the
5395 shell. Quote '!' specifically with a backslash, since CSH chokes
5396 when trying to evaluate "str!str".
aaa38bb5 5397
095778a0
NC
53982002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5399
5400 * rdi-share/host.h: Only provide a typedef for bool if it is not
5401 defined.
5402
1900040c
MS
54032002-02-04 Michael Snyder <msnyder@redhat.com>
5404
5405 * breakpoint.h (enum bptype): Add new overlay event bp type.
5406 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 5407
1900040c
MS
5408 * breakpoint.c (create_internal_breakpoint): New function.
5409 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5410 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5411 (create_thread_event_breakpoint): Ditto.
5412 (create_solib_event_breakpoint): Ditto.
5413 (create_overlay_event_breakpoint): New function.
5414 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5415 (update_breakpoints_after_exec): Delete and re-initialize
5416 overlay event breakpoints after an exec. Add FIXME comment
5417 about longjmp breakpoint.
5418 (print_it_typical): Ignore overlay event breakpoints.
5419 (print_one_breakpoint): Ditto.
5420 (mention): Ditto.
5421 (bpstat_what): Do not stop for overlay event breakpoints.
5422 (delete_breakpoint): Don't delete overlay event breakpoints.
5423 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5424 (breakpoint_re_set): Re-create overlay event breakpoint.
5425
5426 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5427 (overlay_manual_command): Disable overlay breakpoints.
5428 (overlay_off_command): Disable overlay breakpoints.
5429
082fc60d
RE
54302002-02-06 Richard Earnshaw <rearnsha@arm.com>
5431
5432 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5433 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5434 to here from config/tm-arm.h.
5435 (coff_sym_is_thumb): Make static.
5436 (arm_elf_make_msymbol_special): New function.
5437 (arm_coff_make_msymbol_special): New function.
5438 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5439 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5440 (coff_sym_is_thumb): Delete declaration.
5441 (arm_elf_make_msymbol_special): Declare.
5442 (arm_coff_make_msymbol_special): Declare.
5443 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5444 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5445
039c5766
RE
54462002-02-06 Richard Earnshaw <rearnsha@arm.com>
5447
5448 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5449
54502002-02-06 Richard Earnshaw <rearnsha@arm.com>
5451
5452 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5453 * gdbarch.c gdbarch.h: Regenerate.
5454 * arch-utils.c (default_print_float_info): New function.
5455 * arch-utils.h (default_print_float_info): Prototype it.
5456 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5457 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5458 (PRINT_FLOAT_INFO): Document it.
5459
5460 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5461 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5462 (PRINT_FLOAT_INFO): Define.
5463
58fa08f0
PM
54642002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5465
aaa38bb5 5466 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
5467 Add typecast to sprintf argument to suppress a warning.
5468
7393af7c
PM
54692002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5470
58fa08f0 5471 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
5472 to allow easier handling of pass state.
5473 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5474 that gives exception name and address.
5475 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 5476 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 5477 exceptions added.
aaa38bb5
AJ
5478 (child_continue): Correctly report continue_status.
5479 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 5480 TARGET_SIGNAL_0 (new default value).
aaa38bb5 5481 (child_resume): consider sig argument passed to decide if
7393af7c
PM
5482 the exception should be passed to debuggee or not.
5483
6af4589c
MS
54842002-02-05 Michael Snyder <msnyder@redhat.com>
5485
5486 * regcache.c (fetch_register): Call target_fetch_register
5487 only if we don't call FETCH_PSEUDO_REGISTER.
5488 (store_register): Call target_store_register only if we
5489 don't call STORE_PSEUDO_REGISTER.
5490
a2cf933a
EZ
54912002-02-05 Elena Zannoni <ezannoni@redhat.com>
5492
5493 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5494 ELF_MAKE_MSYMBOL_SPECIAL.
5495 * gdbarch.c, gdbarch.h: Regenerate.
5496 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 5497 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
5498 * elfread.c (elf_symtab_read): Compile use of
5499 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5500 multiarched.
5501 * coffread.c (coff_symtab_read): Ditto, for
5502 COFF_MAKE_MSYMBOL_SPECIAL.
5503
6bb7be43
JB
55042002-02-05 Jim Blandy <jimb@redhat.com>
5505
5506 * solib-svr4.c (svr4_truncate_ptr): New function.
5507 (svr4_relocate_section_addresses): Do the address arithmetic with
5508 the appropriate truncation for target addresses, even when
5509 CORE_ADDR is larger than a target address.
5510
e18651ec
DJ
55112002-02-05 Daniel Jacobowitz <drow@mvista.com>
5512
5513 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5514 to (int *).
5515
6b2725be
DJ
55162002-02-05 Daniel Jacobowitz <drow@mvista.com>
5517
5518 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5519 code.
5520
fca9e603
DJ
55212002-02-05 Daniel Jacobowitz <drow@mvista.com>
5522
5523 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5524
6c537a52
DJ
55252002-02-05 Daniel Jacobowitz <drow@mvista.com>
5526
5527 * gdbserver/linux-low.c: Remove unused include files.
5528
d844cde6
DJ
55292002-02-05 Daniel Jacobowitz <drow@mvista.com>
5530
5531 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5532 (read_inferior_memory): Use it.
5533 (write_inferior_memory): Likewise.
5534
d07c63e7
DJ
55352002-02-05 Daniel Jacobowitz <drow@mvista.com>
5536
5537 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5538 grubbing through sys_errlist.
5539
da6d8c04
DJ
55402002-02-05 Daniel Jacobowitz <drow@mvista.com>
5541
5542 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5543
5b421780
PM
55442002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5545 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5546
9f60d481
AC
55472002-02-04 Andrew Cagney <ac131313@redhat.com>
5548
5549 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5550 (do_sfunc, set_cmd_sfunc): New functions.
5551
5552 * command.h (struct cmd_list_element): Add field func.
5553 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5554 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5555 * cli/cli-decode.h: Ditto.
5556
5557 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5558 (help_all, help_cmd_list): Ditto.
5559 (find_cmd, complete_on_cmdlist): Ditto.
5560 * top.c (execute_command): Ditto.
5561
5562 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5563 function.sfunc.
5564
5565 * infcmd.c (notice_args_read): Fix function signature.
5566
5567 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5568 * cli/cli-decode.c (add_set_cmd): Ditto.
5569 * utils.c (initialize_utils): Ditto.
5570 * maint.c (_initialize_maint_cmds): Ditto.
5571 * infrun.c (_initialize_infrun): Ditto.
5572 * demangle.c (_initialize_demangler): Ditto.
5573 * remote.c (add_packet_config_cmd): Ditto.
5574 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5575 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5576 * proc-api.c (_initialize_proc_api): Ditto.
5577 * kod.c (_initialize_kod): Ditto.
5578 * valprint.c (_initialize_valprint): Ditto.
5579 * top.c (init_main): Ditto.
5580 * infcmd.c (_initialize_infcmd): Ditto.
5581 * corefile.c (_initialize_core): Ditto.
5582 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5583 * arch-utils.c (initialize_current_architecture): Ditto.
5584 (_initialize_gdbarch_utils): Ditto.
5585 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5586
5587 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5588 * wince.c (_initialize_inftarg): Ditto.
5589 * symfile.c (_initialize_symfile): Ditto.
5590 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5591 * language.c (_initialize_language): Ditto.
5592 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5593
f9ba0717
MS
55942002-02-04 Michael Snyder <msnyder@redhat.com>
5595
5596 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5597
0c74b2a7
DJ
55982002-02-04 Daniel Jacobowitz <drow@mvista.com>
5599
5600 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5601 Add rules for building the register data files.
5602
c638789f
DJ
56032002-02-04 Daniel Jacobowitz <drow@mvista.com>
5604
5605 * regformats/regdat.sh: Add braces to the definition of
5606 expedite_regs_${arch}.
5607
db253027
DJ
56082002-02-04 Daniel Jacobowitz <drow@mvista.com>
5609
5610 * regformats/regdef.h (struct reg): Add comment describing the
5611 requirements for offset and size fields.
5612
206be19c
AS
56132002-02-04 Andreas Schwab <schwab@suse.de>
5614
5615 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5616 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5617
181c1381
RE
56182002-02-04 Richard Earnshaw <rearnsha@arm.com>
5619
5620 * gdbarch.sh (copyright): Update years in generated header.
5621 (SMASH_TEXT_ADDRESS): Add rule.
db253027 5622 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
5623 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5624 * dbxread.c: Likewise.
5625 * dwarfread.c: Likewise.
5626 * elfread.c: Likewise.
5627 * somread.c: Likewise.
5628
5629 * arm-tdep.c (arm_smash_text_address): New function.
5630 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5631
fa4ba8da
PM
56322002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5633
5634 Add support for hardware watchpoints on win32 native.
aaa38bb5 5635 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 5636 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 5637 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
5638 of debug registers.
5639 (debug_registers_changed): New variable. Reflects when debug registers
5640 are changed and need to be written to inferior.
aaa38bb5 5641 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
5642 was set, used when new threads are created.
5643 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5644 i386-nat code.
5645 (thread_rec): Set dr array if id is the thread of current_event .
5646 (child_continue, child_resume): Change the debug registers for all
5647 threads if debug_registers_changed.
5648 (child_add_thread): Change the debug registers if debug_registers_used.
5649 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5650 Link nm.h to new nm-cygwin.h file.
5651 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5652 of hardware registers.
5653
a73c86fb
AC
56542002-02-03 Andrew Cagney <ac131313@redhat.com>
5655
5656 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5657 Restore behavour broken by 2002-01-20 Andrew Cagney
5658 <ac131313@redhat.com> IEEE_FLOAT removal.
5659
acf5ed49
DJ
56602002-02-03 Daniel Jacobowitz <drow@mvista.com>
5661
5662 * c-valprint.c (c_val_print): Pass a proper valaddr to
5663 cp_print_class_method.
5664 * valops.c (search_struct_method): If there is only one method
5665 and args is NULL, return that method.
5666
493d28d5
DJ
56672002-02-03 Daniel Jacobowitz <drow@mvista.com>
5668
5669 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
5670 accessing tag_name directly.
5671
7495dfdb
DJ
56722002-02-03 Daniel Jacobowitz <drow@mvista.com>
5673
5674 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
5675 of accessing tag_name directly.
5676
dd6bda65
DJ
56772002-02-03 Daniel Jacobowitz <drow@mvista.com>
5678
5679 PR gdb/280
5680 * gdbtypes.c (replace_type): New function.
5681 * gdbtypes.h (replace_type): Add prototype.
5682 * stabsread.c (read_type): Use replace_type.
5683
88fe217c
RE
56842002-02-03 Richard Earnshaw <rearnsha@arm.com>
5685
5686 * Makefile.in (memattr.o): Add missing dependencies rule.
5687
e5d66720
PS
56882002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5689
5690 * breakpoint.c (break_at_finish_command): Really export.
5691 (break_at_finish_at_depth_command): Ditto.
5692 (tbreak_at_finish_command): Ditto.
5693 * hppa-tdep.c: Include completer.h.
5694 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
5695 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
5696
fffee0be
AC
56972002-02-01 Andrew Cagney <ac131313@redhat.com>
5698
5699 * utils.c (do_write): New function.
5700 (error_stream): Rewrite combining the code from error_begin and
5701 verror.
5702 (verror): Rewrite using error_stream.
5703 (error_begin): Delete function.
5704
255e7dbf
AC
57052002-02-01 Andrew Cagney <ac131313@redhat.com>
5706
5707 * utils.c (error_begin): Make static.
5708 * defs.h (error_begin): Delete declaration.
5709
5710 * linespec.c (cplusplus_error): Replace cplusplus_hint.
5711 (decode_line_1): Use cplusplus_error instead of error_begin,
5712 cplusplus_hint and return_to_top_level.
5713 * coffread.c (coff_symfile_read): Use error instead of error_begin
5714 and return_to_top_level.
5715 * infrun.c (default_skip_permanent_breakpoint): Ditto.
5716
ddfe3c15
AC
57172002-02-01 Andrew Cagney <ac131313@redhat.com>
5718
5719 * language.h (type_error, range_error): Make string parameter
5720 constant.
5721 * language.c (warning_pre_print): Delete extern declaration.
5722 * dwarfread.c (warning_pre_print): Ditto.
5723 * language.c (type_error, range_error): Rewrite to use verror and
5724 vwarning instead of warning_begin.
5725
03ac34d5
MS
57262002-02-01 Michael Snyder <msnyder@redhat.com>
5727
261c4ca2
MS
5728 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
5729 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 5730
e00d1dc8
AC
57312002-02-01 Andrew Cagney <ac131313@redhat.com>
5732
5733 * command.h (NO_FUNCTION): Delete macro.
5734 * cli/cli-decode.h (NO_FUNCTION): Ditto.
5735 * top.c (execute_command): Replace NO_FUNCTION with NULL.
5736 * tracepoint.c (_initialize_tracepoint): Ditto.
5737 * cli/cli-decode.c (add_set_cmd): Ditto.
5738 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 5739
76b79d6e
DJ
57402002-02-01 Daniel Jacobowitz <drow@mvista.com>
5741
5742 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5743 Update ``this'' pointer when calling virtual functions.
5744
799f9e91
MS
57452002-02-01 Michael Snyder <msnyder@redhat.com>
5746
c7bd442c 5747 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
5748 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
5749
3cf384d4
DJ
57502002-02-01 Daniel Jacobowitz <drow@mvista.com>
5751
5752 * regformats/reg-arm.dat: New file.
5753 * regformats/reg-i386.dat: New file.
5754 * regformats/reg-ia64.dat: New file.
5755 * regformats/reg-m68k.dat: New file.
5756 * regformats/reg-mips.dat: New file.
5757 * regformats/reg-ppc.dat: New file.
5758 * regformats/reg-sh.dat: New file.
5759 * regformats/regdef.h: New file.
5760 * regformats/regdat.sh: New file.
5761
0defa245
RE
57622002-02-01 Richard Earnshaw <reanrsha@arm.com>
5763
5764 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
5765 (arm_frame_args_address, arm_frame_locals_address): New functions.
5766 (arm_frame_num_args): New function.
5767 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
5768 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
5769 (FRMA_NUM_ARGS): Call arm_frame_num_args.
5770
405f26e6
MS
57712002-01-31 Michael Snyder <msnyder@redhat.com>
5772
502fd408
MS
5773 * breakpoint.c (break_at_finish_command): Export.
5774 (break_at_finish_at_depth_command): Export.
5775 (tbreak_at_finish_command): Export.
5776 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
5777 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
5778 "tbreak" commands, which are HPPA specific.
5779
7d35e135
MS
5780 * printcmd.c (disassemble_command): Remove an ancient
5781 artifact of an old merge.
5782
aaa38bb5 5783 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
5784 Define enum constant values for overlay mode.
5785 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
5786 (overlay_is_mapped, overlay_auto_command,
5787 overlay_manual_command): Ditto.
d874f1e2 5788
aaa38bb5
AJ
5789 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5790 breakpoint_here_p, breakpoint_inserted_here_p,
5791 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
5792 describe_other_breakpoints, check_duplicates, clear_command):
5793 Coding standard fixes.
5794
8add0441 5795 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 5796 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
5797 code: check bfd SEC_READONLY flag for section.
5798
e351066e
AC
57992002-01-31 Andrew Cagney <ac131313@redhat.com>
5800
7d35e135 5801 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 5802
8a48e967
DJ
58032002-01-30 Daniel Jacobowitz <drow@mvista.com>
5804
5805 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5806 data symbols, since we search based on textlow and texthigh.
5807 (find_pc_sect_symtab): Likewise.
5808
f5a96129
AC
58092002-01-30 Andrew Cagney <ac131313@redhat.com>
5810
5811 * defs.h (vwarning): Declare.
f5a96129
AC
5812 * utils.c (vwarning): New function.
5813 (warning): Call vwarning.
5814 (warning_begin): Delete function.
5815
5816 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5817 the warning message.
5818 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5819 warning_begin.
5820
cefd4ef5
MS
58212002-01-30 Michael Snyder <msnyder@redhat.com>
5822
1a703748
MS
5823 * NEWS: Mention "set trust-readonly-sections" command.
5824 Mention generate-core-file command.
cefd4ef5 5825
3a11626d
MS
58262002-01-15 Michael Snyder <msnyder@redhat.com>
5827
5828 * target.c: New command, "set trust-readonly-sections on".
5829 (do_xfer_memory): Honor the suggestion to trust readonly sections
5830 by reading them from the object file instead of from the target.
5831 (initialize_targets): Register command "set trust-readonly-sections".
5832
d1c7e53b
AC
58332002-01-29 Andrew Cagney <ac131313@redhat.com>
5834
5835 * parse.c (target_map_name_to_register): Simplify, search regs and
5836 pseudo-regs using a single loop.
5837
e2c9a72c
AC
58382002-01-30 Andrew Cagney <ac131313@redhat.com>
5839
5840 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5841
69824b4e
MK
58422002-01-15 Rodney Brown <rbrown64@csc.com.au>
5843
5844 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5845 * config/i386/i386v42mp.mh: Add i387-nat.o .
5846 * i386v4-nat.c: Include i387-nat.h.
5847 (supply_fpregset): Use i387_supply_fsave.
5848 (fill_fpregset): Use i387_fill_fsave.
5849
6eb69eab
RE
58502002-01-30 Richard Earnshaw <rearnsha@arm.com>
5851
5852 * arm-tdep.c (arm_call_dummy_words): Define.
5853 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5854 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5855 (CALL_DUMMY_WORDS): Define.
5856 (arm_call_dummy_words): Declare.
5857 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5858 (arm_linux_call_dummy_words): Declare.
5859
9852326a
AS
58602002-01-30 Andreas Schwab <schwab@suse.de>
5861
5862 * m68klinux-nat.c: Fix last change to use regcache_collect
5863 instead of referencing registers[] directly.
5864
977a3030
AC
58652002-01-29 Andrew Cagney <ac131313@redhat.com>
5866
5867 * parse.c (target_map_name_to_register): Delete code wrapped in
5868 #ifdef REGISTER_NAME_ALIAS_HOOK.
5869
2076c72b
MS
58702002-01-28 Michael Snyder <msnyder@redhat.com>
5871
5872 * regcache.c (legacy_read_register_gen): Need to be able to
5873 read pseudo-register as well as real register.
5874 (legacy_write_register_gen): Ditto.
5875
8fcc723b
AC
58762002-01-28 Andrew Cagney <ac131313@redhat.com>
5877
5878 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5879 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5880 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5881 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5882 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5883 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5884 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5885 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5886 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5887 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5888 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5889 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5890 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5891 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5892 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5893 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5894 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5895 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5896 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5897 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5898
afe64c1a
AC
58992002-01-28 Andrew Cagney <ac131313@redhat.com>
5900
5901 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5902 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5903 (initialize_current_architecture): Update target_byte_order using
5904 information from BFD.
aaa38bb5 5905 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
5906 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5907
75bc7ddf
AC
59082002-01-28 Andrew Cagney <ac131313@redhat.com>
5909
5910 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5911 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5912
5913 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5914 #ifdef INVALID_FLOAT.
5915 * infcmd.c (do_registers_info): Ditto.
5916 * values.c (unpack_double): Ditto. Add comment.
5917
5918 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5919 already commented out.
5920
0280a90a
AS
59212002-01-26 Andreas Schwab <schwab@suse.de>
5922
5923 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5924 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5925 registers and add support for PTRACE_GETREGS.
5926
7072a954
AC
59272002-01-24 Andrew Cagney <ac131313@redhat.com>
5928
5929 GDB 5.1.1 released from 5.1 branch.
5930 * NEWS: Add 5.1.1 news.
5931 * README: Sync with 5.1 branch.
5932
86f902e0
FF
59332002-01-23 Fred Fish <fnf@redhat.com>
5934
5935 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5936 stabstring on initial malloc. Reallocing will copy it for us,
5937 if necessary.
5938
8af51c36
EZ
59392002-01-23 Elena Zannoni <ezannoni@redhat.com>
5940
aaa38bb5 5941 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
5942 (HFILES_NO_SRCDIR): Remove hpread.h.
5943 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5944 (hpread.o): Update dependencies.
5945 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5946
5947 * hp-psymtab-read.c: Remove file.
5948 * hp-symtab-read.c: Remove file.
5949 * hpread.h: Remove file.
5950
5951 * hpread.c: Merge all contents of hp-psymtab-read.c,
5952 hp-symtab-read.c and hpread.h into this file, as it was prior to
5953 January 1999.
5954
5955 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 5956 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
5957 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5958 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5959
dc5cfeb6
EZ
59602002-01-23 Elena Zannoni <ezannoni@redhat.com>
5961
5962 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5963 fill_gregset): Call gdbarch_tdep() just once, assign result to
5964 variable and use that, instead of calling the function several
5965 times.
5966
ea87b71b
AO
59672002-01-24 Alexandre Oliva <aoliva@redhat.com>
5968
5969 * configure.host: Accept sparcv9 as alias for sparc64.
5970 * configure.tgt: Likewise.
5971
13fc0c2f
KB
59722002-01-22 Kevin Buettner <kevinb@redhat.com>
5973
5974 * solib-aix5.c (build_so_list_from_mapfile)
5975 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5976 arguments is not reversed.
5977 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5978 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 5979
7bd872fe
EZ
59802002-01-22 Elena Zannoni <ezannoni@redhat.com>
5981
5982 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5983 modified version of obsolete sh_fetch_pseudo_register.
5984 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5985 (sh4_register_read): New function.
5986 (sh_pseudo_register_write): New function. Renamed and modified
5987 version of obsolete sh_store_pseudo_register.
5988 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5989 (sh4_register_write): New function.
5990 (sh_gdbarch_init): Remove setting of gdbarch function
5991 fetch_pseudo_register and store_pseudo_register. Remove setting of
5992 register_convert_to_raw, register_convert_to_virtual,
5993 register_convertible.
5994 (sh_sh4_register_convertible): Delete. No longer needed. All is
5995 taken care by architecture specific functions
5996 register_read/register_write.
5997 (sh_sh4_register_convert_to_virtual): Make static.
5998 (sh_sh4_register_convert_to_raw): Ditto.
5999
069e84fd
AC
60002002-01-22 Andrew Cagney <ac131313@redhat.com>
6001
6002 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6003 (floatformat_is_nan, floatformat_mantissa): Ditto.
6004
6005 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6006 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6007 builtin_type_ieee_double_little,
6008 builtin_type_ieee_double_littlebyte_bigword,
6009 builtin_type_m68881_ext, builtin_type_i960_ext,
6010 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6011 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6012 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6013 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6014
211a4f69
CV
60152002-01-22 Corinna Vinschen <vinschen@redhat.com>
6016
6017 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6018 parameter. Set frameless flag if it exists and depended of
6019 whether the scanned function is frameless or not.
6020 (xstormy16_skip_prologue): If function is frameless, return
6021 result of xstormy16_scan_prologue().
6022 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6023 call.
6024
f81353e4
EZ
60252002-01-21 Elena Zannoni <ezannoni@redhat.com>
6026
6027 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6028 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6029 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6030 sh_sh4_register_byte, sh_sh4_register_raw_size,
6031 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6032 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6033 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6034 sh_store_pseudo_register, sh_do_pseudo_register): Call
6035 gdbarch_tdep() just once, assign result to variable and use that,
6036 instead of calling the function several times.
6037
63c73a17
MK
60382002-01-20 Mark Kettenis <kettenis@gnu.org>
6039
6040 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6041 macros instead of LAST_FPU_CTRL_REGNUM.
6042 (store_register): Likewise.
6043
39ad761d
JB
60442002-01-21 Jim Blandy <jimb@redhat.com>
6045
6046 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6047 is up-to-date before running the program, not just when a program
6048 exits.
6049
3d74b771
FF
60502002-01-21 Fred Fish <fnf@redhat.com>
6051
6052 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6053 when we have found all instructions we are looking for.
6054
966fbf70
RE
60552002-01-21 Richard Earnshaw <rearnsha@arm.com>
6056
6057 * arm-tdep.c (arm_register_name): New function.
6058 (arm_registers_names): Make static.
6059 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6060 (arm_register_name): Declare.
6061 (REGISTER_NAME): Use it.
6062
c3b4394c
RE
60632002-01-21 Richard Earnshaw <rearnsha@arm.com>
6064 Kevin Buettner <kevinb@redhat.com>
6065
6066 Convert arm targets to new FRAME interface.
6067 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6068 (arm_frame_find_save_regs): Delete.
6069 (arm_frame_init_saved_regs): New.
6070 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6071 Allocate extra_info as required. Convert all uses of fsr.regs
6072 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6073 to use extra_info.
6074 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6075 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6076 (check_prologue_cache, save_prologue_cache): Likewise.
6077 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6078 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6079 (FRAME_FIND_SAVED_REGS): Delete.
6080 (arm_frame_find_saved_regs): Delete prototype.
6081 (arm_frame_init_saved_regs): New prototype.
6082 (FRAME_INIT_SAVED_REGS): Define.
6083
61d99182
AC
60842002-01-20 Andrew Cagney <ac131313@redhat.com>
6085
6086 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6087
6aaea291
AC
60882002-01-20 Andrew Cagney <ac131313@redhat.com>
6089
6090 From Jeff Law <law@redhat.com>:
6091 * infttrace.c: Include <sys/pstat.h>.
6092 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6093 exec file if the ttrace equivalent fails.
6094
15f698d2
AC
60952002-01-20 Andrew Cagney <ac131313@redhat.com>
6096
6097 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6098 (closeLogFile): Ditto.
6099
f86ddd7c
MC
61002002-01-20 Michael Chastain <mec@shout.net>
6101
6102 * top.c (print_gdb_version): Bump copyright year to 2002.
6103
904507ce
AC
61042002-01-20 Andrew Cagney <ac131313@redhat.com>
6105
6106 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6107 Zannoni and Eli Zaretskii.
6108
d7f0b9ce
DJ
61092002-01-20 Daniel Jacobowitz <drow@mvista.com>
6110
6111 * buildsym.c: Update copyright years.
6112 * c-typeprint.c: Likewise.
6113 * dwarf2read.c: Likewise.
6114 * f-typeprint.c: Likewise.
6115 * gdbtypes.c: Likewise.
6116 * gdbtypes.h: Likewise.
6117 * hp-symtab-read.c: Likewise.
6118 * hpread.c: Likewise.
6119 * mdebugread.c: Likewise.
6120 * p-typeprint.c: Likewise.
6121
3fd3d7d2
AC
61222002-01-20 Andrew Cagney <ac131313@redhat.com>
6123
6124 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6125 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6126 byte-order selectable.
6127 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6128 * arch-utils.c: Ditto.
6129 (set_endian): Ditto.
6130 (set_endian_from_file): Ditto.
6131 * gdbserver/low-sim.c (create_inferior): Ditto.
6132 * gdbarch.sh: Ditto.
6133 * gdbarch.h: Re-generate.
aaa38bb5
AJ
6134 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6135 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6136 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6137 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6138 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6139 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6140 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
6141 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6142 macro definition.
6143 * config/mips/tm-wince.h: Remove #undef of macro
6144 TARGET_BYTE_ORDER_SELECTABLE.
6145 * config/sh/tm-wince.h: Ditto.
6146
b02dede2
DJ
61472002-01-20 Daniel Jacobowitz <drow@mvista.com>
6148
6149 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6150 member function fields. Add accessor macro
6151 TYPE_FN_FIELD_ARTIFICIAL.
6152 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6153 * c-typeprint.c (c_type_print_base): Skip artificial member
6154 functions.
6155
c3643761
DJ
61562002-01-20 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * f-typeprint.c: Delete unused function f_type_print_args.
6159 * p-typeprint.c: Delete unused function pascal_type_print_args.
6160
8176bb6d
DJ
61612002-01-20 Daniel Jacobowitz <drow@mvista.com>
6162
6163 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6164 comment. Add ``artificial'' to ``union field_location''.
6165
6166 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6167
6168 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6169 * mdebugread.c (parse_symbol): Likewise.
6170 * stabsread.c (define_symbol): Likewise.
6171 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6172 initializing TYPE_FIELD_BITPOS to n (obsolete).
6173 (hpread_doc_function_type): Likewise.
6174 * hpread.c (hpread_function_type): Likewise.
6175
7fd60527
AC
61762002-01-20 Andrew Cagney <ac131313@redhat.com>
6177
6178 * configure.in (host_makefile_frag): Only require a host makefile
6179 fragment when a native build.
6180 * configure: Re-generate.
6181
c2f05ac9
AC
61822002-01-20 Andrew Cagney <ac131313@redhat.com>
6183
6184 * doublest.h (floatformat_from_type): Declare.
6185 * doublest.c (floatformat_from_type): New function.
6186 (convert_typed_floating): Use.
6187
6188 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6189 call to function floatformat_from_type.
6190
6191 * gdbarch.sh (IEEE_FLOAT): Delete.
6192 * gdbarch.h, gdbarch.c: Re-generate.
6193 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6194 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6195 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6196 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6197 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6198 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6199 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6200 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6201 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6202 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6203 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
6204 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6205
6206 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6207 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6208 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6209 * sh-tdep.c (sh_gdbarch_init): Ditto.
6210 * mips-tdep.c (mips_gdbarch_init): Ditto.
6211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6212 * cris-tdep.c (cris_gdbarch_init): Ditto.
6213
abf22e64
AJ
62142002-01-20 Jiri Smid <smid@suse.cz>
6215
6216 * configure.host, configure.tgt: Support x86-64.
6217 * NEWS: Note new target x86-64.
6218
b7c4cbf8
AJ
6219 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6220 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6221 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6222 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6223 x86-64-linux-nat.o): Fix dependencies.
6224
82600034
AC
62252002-01-19 Andrew Cagney <ac131313@redhat.com>
6226
6227 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6228 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6229 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6230 * config/sparc/xm-sun4os4.h: Delete file.
6231 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 6232
bbe5c628
AC
62332002-01-19 Andrew Cagney <ac131313@redhat.com>
6234
6235 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6236 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6237 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6238 * config/i386/i386lynx.mh (XM_FILE): Delete.
6239 * config/rs6000/xm-rs6000ly.h: Delete file.
6240 * config/sparc/xm-sparclynx.h: Delete file.
6241 * config/m68k/xm-m68klynx.h: Delete file.
6242 * config/i386/xm-i386lynx.h: Delete file.
6243 * config/xm-lynx.h: Delete file.
6244 * config/djgpp/fnchange.lst: Update.
6245
f8453e34
JT
62462002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6247
6248 * alpha-tdep.c (alpha_register_byte): New function.
6249 (alpha_register_raw_size): Ditto.
6250 (alpha_register_virtual_size): Ditto.
6251 (alpha_skip_prologue_internal): Renamed from
6252 alpha_skip_prologue.
6253 (alpha_skip_prologue): New version that calls
6254 alpha_skip_prologue_internal.
6255 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6256 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6257 second argument from alpha_skip_prologue.
6258 (REGISTER_BYTE): Use alpha_register_byte.
6259 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6260 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6261 (FRAMELESS_FUNCTION_INVOCATION): Use
6262 generic_frameless_function_invocation_not.
6263 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6264 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6265
52d9e613
AC
62662002-01-19 Andrew Cagney <ac131313@redhat.com>
6267
6268 * config/mips/xm-news-mips.h: Delete file.
6269 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6270
6271 * config/m88k/xm-m88k.h: Delete file.
6272 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6273 * config/m88k/xm-delta88v4.h: Ditto.
6274 * config/m88k/xm-delta88.h: Ditto.
6275
6276 * config/alpha/xm-fbsd.h: Delete file.
6277 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6278
6279 * config/sparc/xm-sparc.h: Delete file.
6280 * Makefile.in (xm-sun4os4.h): Delete dependency.
6281 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6282 * config/sparc/xm-sun4os4.h: Ditto.
6283 * config/sparc/xm-linux.h: Ditto.
6284
6285 * config/i386/xm-windows.h: Delete file.
6286
2d1b2124
AC
62872002-01-19 Andrew Cagney <ac131313@redhat.com>
6288
6289 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6290 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6291
ee1f65f0
JT
62922002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6293
6294 * alpha-tdep.c (alpha_call_dummy_words): New.
6295 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6296 (CALL_DUMMY_P): Define.
6297 (CALL_DUMMY_WORDS): Define.
6298 (SIZEOF_CALL_DUMMY_WORDS): Define.
6299
98081e55
PB
63002002-01-19 Per Bothner <per@bothner.com>
6301
6302 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6303 isn't NULL, which can happen with some gcj-3.x-produced code.
6304
0d056799
JT
63052002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6306
6307 * alpha-tdep.c (alpha_register_virtual_type): New function.
6308 (alpha_init_frame_pc_first): Ditto.
6309 (alpha_fix_call_dummy): Ditto.
6310 (alpha_store_struct_return): Ditto.
6311 (alpha_extract_struct_value_address): Ditto.
6312 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6313 alpha_register_virtual_type.
6314 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6315 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6316 alpha_extract_struct_value_address.
6317 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6318 (INIT_FRAME_PC): Use init_frame_pc_noop.
6319 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6320
4604bcad
MK
63212002-01-19 Mark Kettenis <kettenis@gnu.org>
6322
6323 * i386gnu-nat.c: Include "i386-tdep.h".
6324 (fetch_fpregs): Simplify code dealing with uninitialized floating
6325 point states such that it doesn't require FP7_REGNUM.
6326
140f9984
JT
63272002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6328
abf22e64
AJ
6329 * alpha-tdep.c (frame_extra_info): New.
6330 (alpha_find_saved_regs): Make static. Use
140f9984
JT
6331 frame->extra_info.
6332 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
6333 (alpha_frame_saved_pc): Use frame->extra_info.
6334 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6335 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
6336 (init_extra_frame_info): Rename to...
6337 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 6338 (alpha_print_extra_frame_info): New function.
140f9984
JT
6339 (alpha_frame_locals_address): Ditto.
6340 (alpha_frame_args_address): Ditto.
abf22e64 6341 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
6342 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6343 alpha_frame_args_address.
abf22e64 6344 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 6345 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
6346 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6347 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
6348 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6349 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6350
d734c450
JT
63512002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6352
6353 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6354 (alpha_cannot_fetch_register): Ditto.
6355 (alpha_cannot_store_register): Ditto.
6356 (alpha_register_convertible): Ditto.
6357 (alpha_use_struct_convention): Ditto.
6358 * config/alpha/tm-alpha.h: Update copyright years.
6359 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6360 (INNER_THAN): Use core_addr_lessthan.
6361 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6362 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6363 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6364 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6365 (FRAME_CHAIN): Remove unnecessary cast.
6366
b4ceaee6
AC
63672002-01-18 Andrew Cagney <ac131313@redhat.com>
6368
6369 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6370 obsolete.
6371
0a65a603
AC
63722002-01-18 Andrew Cagney <ac131313@redhat.com>
6373
6374 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6375 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6376 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6377 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6378 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6379 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6380 * x86-64-linux-nat.c: Ditto.
6381
636a6dfc
JT
63822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6383
abf22e64 6384 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
6385 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6386 (REGISTER_NAME): Define.
6387
acceddb6
JT
63882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6389
6390 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6391
ec32e4be
JT
63922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6393
6394 * alpha-tdep.c: Update copyright years.
6395 (alpha_next_pc): New function.
6396 (alpha_software_single_step): Ditto.
6397 * config/alpha/tm-alpha.h: Add prototype for
6398 alpha_software_single_step.
6399
e771a871
JT
64002002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6401
6402 * alphabsd-nat.c: Update copyright years.
6403 (fill_gregset): Use regcache_collect.
6404 (fill_fpregset): Likewise.
6405 (fetch_inferior_registers): Only fetch integer registers
6406 if requested to do so.
6407 (store_inferior_registers): Only store integer registers
6408 if requested to do so.
6409
7708fa01
AC
64102002-01-17 Andrew Cagney <ac131313@redhat.com>
6411
6412 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6413 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6414 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6415 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6416 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6417 * config/arm/linux.mh (XDEPFILES): Delete.
6418 * config/arm/nbsd.mh (XDEPFILES): Delete.
6419 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6420 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6421 * config/i386/i386m3.mh (XDEPFILES): Delete.
6422 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6423 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6424 * config/i386/fbsd.mh (XDEPFILES): Delete.
6425 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6426 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6427 * config/i386/i386v4.mh (XDEPFILES): Delete.
6428 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6429 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6430 * config/i386/i386aix.mh (XDEPFILES): Delete.
6431 * config/i386/go32.mh (XDEPFILES): Delete.
6432 * config/i386/cygwin.mh (XDEPFILES): Delete.
6433 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6434 * config/i386/i386mach.mh (XDEPFILES): Delete.
6435 * config/i386/i386v32.mh (XDEPFILES): Delete.
6436 * config/i386/linux.mh (XDEPFILES): Delete.
6437 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6438 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6439 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6440 * config/i386/i386sco.mh (XDEPFILES): Delete.
6441 * config/i386/i386v.mh (XDEPFILES): Delete.
6442 * config/i386/nbsd.mh (XDEPFILES): Delete.
6443 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6444 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6445 * config/i386/symmetry.mh (XDEPFILES): Delete.
6446 * config/i386/obsd.mh (XDEPFILES): Delete.
6447 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6448 * config/ia64/linux.mh (XDEPFILES): Delete.
6449 * config/ia64/aix.mh (XDEPFILES): Delete.
6450 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6451 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6452 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6453 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6454 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6455 * config/m68k/linux.mh (XDEPFILES): Delete.
6456 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6457 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6458 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6459 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6460 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6461 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6462 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6463 * config/m88k/delta88.mh (XDEPFILES): Delete.
6464 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6465 * config/m88k/m88k.mh (XDEPFILES): Delete.
6466 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6467 * config/mips/linux.mh (XDEPFILES): Delete.
6468 * config/mips/irix6.mh (XDEPFILES): Delete.
6469 * config/mips/irix5.mh (XDEPFILES): Delete.
6470 * config/mips/irix4.mh (XDEPFILES): Delete.
6471 * config/mips/irix3.mh (XDEPFILES): Delete.
6472 * config/mips/decstation.mh (XDEPFILES): Delete.
6473 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6474 (NATDEPFILES): Move core-aout.o to here.
6475 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6476 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6477 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6478 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6479 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6480 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6481 * config/pa/hpux11.mh (XDEPFILES): Delete.
6482 * config/powerpc/aix.mh (XDEPFILES): Delete.
6483 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6484 * config/powerpc/linux.mh (XDEPFILES): Delete.
6485 * config/romp/rtbsd.mh: Rename XDEPFILES.
6486 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6487 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6488 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6489 * config/s390/s390.mh (XDEPFILES): Delete.
6490 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6491 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6492 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6493 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6494 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6495 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6496 * config/sparc/linux.mh (XDEPFILES): Delete.
6497 * config/vax/vaxult.mh (XDEPFILES): Delete.
6498 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6499 * Makefile.in (DEPFILES): Remove XDEPFILES.
6500
375fc983
AC
65012002-01-17 Andrew Cagney <ac131313@redhat.com>
6502
6503 * utils.c (internal_verror): Fix comments, default is yes not no.
6504 Update queries to match. Default to quit and dump core.
6505
8926118c
AC
65062002-01-17 Andrew Cagney <ac131313@redhat.com>
6507
6508 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6509 copyright.
6510 * defs.h, event-top.c, gdbcmd.h: Ditto.
6511 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6512 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6513 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6514 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6515 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6516 * mi/mi-main.c:Ditto.
6517
6518 * stack.c, symfile.c: Update copyright.
6519
45b7b345
DJ
65202002-01-17 Daniel Jacobowitz <drow@mvista.com>
6521
db728ff7
DJ
6522 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6523 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6524 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6525 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 6526
db728ff7
DJ
65272002-01-17 Daniel Jacobowitz <drow@mvista.com>
6528
6529 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6530 * gdbserver/low-lynx.c (myattach): Likewise.
6531 * gdbserver/low-nbsd.c (myattach): Likewise.
6532 * gdbserver/low-sim.c (myattach): Likewise.
6533 * gdbserver/low-sparc.c (myattach): Likewise.
6534 * gdbserver/low-sun3.c (myattach): Likewise.
6535
6536 * gdbserver/low-linux.c (myattach): New function.
45b7b345 6537
db728ff7 6538 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
6539 (main): Handle "--attach".
6540
8de3c354
AC
65412002-01-16 Andrew Cagney <ac131313@redhat.com>
6542
6543 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6544 maintainer.
6545
b0129042
DJ
65462002-01-15 Daniel Jacobowitz <drow@mvista.com>
6547
6548 * c-typeprint.c (is_type_conversion_operator): Add additional
6549 check for non-conversion operators.
6550
ba8679fb 65512002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
6552
6553 * linux-proc.c: Add "info proc" command, a la procfs.c.
6554 (read_mapping): New function, abstract and re-use code.
6555 (linux_find_memory_regions): Use new func read_mapping.
6556 (linux_info_proc_cmd): New function, implement "info proc".
6557 (_initialize_linux_proc): Add new command "info proc".
6558
e4f9b4d5
MS
65592002-01-15 Michael Snyder <msnyder@redhat.com>
6560
6561 * symfile.c (generic_load): Use bfd_map_over_sections method
6562 instead of manipulating bfd structure members directly.
6563 (add_section_size_callback): New function, bfd sections callback
6564 used by generic_load.
6565 (load_sections_callback): New function, bfd sections callback
6566 used by generic_load.
6567
08cf96df
EZ
65682002-01-15 Elena Zannoni <ezannoni@redhat.com>
6569
abf22e64 6570 [Based on work by Jim Blandy]
08cf96df
EZ
6571 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6572 (builtin_type_vec128): Export.
6573 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6574 types.
6575 (builtin_type_vec128): New builtin type for 128 bit vector
6576 registers.
6577 (build_gdbtypes): Initialize builtin_type_v16qi and
6578 builtin_type_v8hi. Create the vec128 register builtin type
6579 structure.
6580 (build_builtin_type_vec128): New function.
abf22e64 6581 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
6582 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6583 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6584 AltiVec register to new builtin type.
6585
d7242108
DJ
65862001-01-15 Daniel Jacobowitz <drow@mvista.com>
6587
6588 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6589 to make_cv_type.
6590
4ee3352d
AC
65912002-01-14 Andrew Cagney <ac131313@redhat.com>
6592
6593 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6594 CLEAN_UP_REGISTER_VALUE.
6595 * regcache.c (supply_register): Update only call.
6596
f015b2e7
AC
65972002-01-14 Andrew Cagney <ac131313@redhat.com>
6598
6599 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6600 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6601 a29k-*-vxworks* targets as obsolete.
6602
356ae49d
MS
66032002-01-14 Michael Snyder <msnyder@redhat.com>
6604
6605 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6606 until we can resolve portability issues.
6607 * gregset.h: Remove references to fpxregs.
6608 * gcore.c (gcore_command): Initialize note_sec to NULL.
6609
ade8f45e
AC
66102002-01-13 Andrew Cagney <ac131313@redhat.com>
6611
6612 * signals.c (target_signal_to_name): Rewrite. Only use
6613 signals[].name when in bounds and non-NULL.
abf22e64 6614
89c49e7a
AC
66152002-01-13 Andrew Cagney <ac131313@redhat.com>
6616
6617 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6618 * signals.c (target_signal_to_name): Verify that SIG is within the
6619 bounds of the signals array.
6620
4daa9f9f
AC
66212002-01-13 Andrew Cagney <ac131313@redhat.com>
6622
6623 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6624
ba4bbdcb
KS
66252002-01-13 Keith Seitz <keiths@redhat.com>
6626
6627 * stack.c (print_frame_info_base): Print the frame's pc
6628 only if when print_frame_info_listing_hook is not defined.
6629
575bbeb6
KS
66302002-01-13 Keith Seitz <keiths@redhat.com>
6631
6632 * varobj.c (varobj_set_value): Make sure that there were no
6633 errors evaluating the object before attempting to set its
6634 value.
6635 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6636 so this offset adjustment is no longer necessary.
6637 (create_child): Don't set the error flag if the child is
6638 a CPLUS_FAKE_CHILD.
6639 (value_of_child): If value_fetch_lazy fails, return NULL
6640 so that callers will be notified that an error occurred.
6641 (c_value_of_variable): Delay check of variable's validity
6642 until later. We actually want all structs and unions to have
6643 the value "{...}".
6644 Do not return "???" for variables which could not be evaluated.
6645 This error condition must be returned to the caller so that it
6646 can get the error condition from gdb.
6647 (cplus_name_of_child): Adjust index for vptr before figuring
6648 out the name of the child.
6649 (cplus_value_of_child): If a child's (real) parent is not valid,
6650 don't even bother trying to give a value for it. Just return
6651 an error. Change all instances in this function.
6652 (cplus_type_of_child): If our parent is one of the "fake"
6653 parents, we need to get at the type of the real parent, and
6654 derive the child's true type using this information.
6655
b76898ab
AC
66562002-01-13 Andrew Cagney <ac131313@redhat.com>
6657
6658 From 2002-01-09 John Marshall <johnm@falch.net>:
6659 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6660 sources.redhat.com, and tweak some related URLs which had
6661 suffered from linkrot.
6662
b6649e88
AC
66632002-01-13 Andrew Cagney <ac131313@redhat.com>
6664
6665 From Jeff law:
6666 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
6667 structures passed in registers.
6668
82cc5033
EZ
66692002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
6670
6671 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
6672 white space which prevented compilation. Reported by DSK
6673 <dsk@student.unsw.edu.au>.
6674
ba5f2f8a
MS
66752002-01-11 Michael Snyder <msnyder@redhat.com>
6676
fbd35540
MS
6677 * symfile.c (build_section_addr_info_from_section_tab):
6678 Use bfd access method instead of manipulating bfd directly.
6679 (syms_from_objfile): Ditto.
6680 (simple_overlay_update_1): Ditto.
6681 (simple_overlay_update): Ditto.
6682 (generic_load): Ditto.
6683 (overlay_unmapped_address): FIXME comment, bfd access methods.
6684 (sections_overlap): FIXME comment, bfd access methods.
6685 (pc_in_mapped_range): FIXME comment, bfd access methods.
6686 (pc_in_unmapped_range): FIXME comment, bfd access methods.
6687 (section_is_mapped): FIXME comment, bfd access methods.
6688 (section_is_overlay): FIXME comment, bfd access methods.
6689
ba5f2f8a
MS
6690 * symfile.c (generic_load): Whitespace and long line cleanups.
6691 Remove duplicate variable, change several local variables to
6692 more appropriate data types.
6693 (print_transfer_performance): Use %lu instead of %ld for ulongs.
6694
17df2af6
AC
66952002-01-12 Andrew Cagney <ac131313@redhat.com>
6696
6697 From Peter Schauer:
6698 * language.c (longest_local_hex_string_custom): Use phex_nz to
6699 convert NUM to a hex string.
6700
ec920329
EZ
67012002-01-12 Elena Zannoni <ezannoni@redhat.com>
6702
6703 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6704 the function.
538a76d6 6705 Update Copyright year.
ec920329 6706
3abd2e01
AC
67072002-01-12 Andrew Cagney <ac131313@redhat.com>
6708
6709 * language.c (longest_raw_hex_string): Delete unused function.
6710
b21b22e0
PS
67112002-01-11 Petr Sorfa <petrs@caldera.com>
6712
6713 * MAINTAINERS (write-after-approval): Add myself.
6714 * dwarf2read.c (read_tag_string_type): Handling of
6715 DW_AT_byte_size.
6716 (read_tag_string_type): FORTRAN fix to prevent propagation of
6717 first string size.
6718 (set_cu_language): Handling of DW_LANG_Fortran95
6719
747fe712
RE
67202002-01-11 Richard Earnshaw <rearnsha@arm.com>
6721
6722 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
6723 GETPID(inferior_ptid).
6724 (store_inferior_registers): Likewise.
6725
f1bea926
JM
67262002-01-10 Jason Merrill <jason@redhat.com>
6727
6728 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
6729 Fix DW_OP_minus.
6730
ae940673
AC
67312002-01-10 Andrew Cagney <ac131313@redhat.com>
6732
6733 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
6734 and bfd/elf32-sh-nbsd.c.
6735
00546b04
MS
67362002-01-10 Michael Snyder <msnyder@redhat.com>
6737
352ed7b4
MS
6738 * NEWS: Mention --pid and corefile/proc-id behavior change.
6739
c18be923
MS
6740 * Makefile.in: Add rules for gcore.o and linux-proc.o.
6741 * gcore.c: Include cli/cli-decode.h instead of command.h.
6742
00546b04
MS
6743 * main.c (captured_main): Add new command line option "--pid".
6744 If the second command line argument (following the symbol-file)
6745 begins with a digit, try to attach to it before trying to open
6746 it as a corefile.
6747 (print_gdb_help): Document the "--pid" argument.
6748
db60ec62
EZ
67492002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
6750
6751 * completer.c (command_completer): New function.
6752
6753 * completer.h <command_completer>: Add prototype.
6754
6755 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
6756 completer for the "help" command.
6757
39c22d1a
JM
67582002-01-09 Jason Merrill <jason@redhat.com>
6759
6760 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
6761
c564377f
MS
67622002-01-09 Michael Snyder <msnyder@redhat.com>
6763
975aec09
MS
6764 * i386-linux-nat.c (fill_fpxregset): Make global.
6765 (store_fpxregset): Ditto.
6766
db4a10fa
MS
6767 * gregset.h (gdb_fpxregset_t): Define.
6768 (supply_fpxregset): Prototype.
6769 (fill_fpxregset): Prototype.
6770
c564377f
MS
6771 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
6772
c3d45d70
RE
67732002-01-09 Richard Earnshaw <rearnsha@arm.com>
6774
6775 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
6776 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
6777 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
6778
fcc87af1
AC
67792002-01-09 Andrew Cagney <ac131313@redhat.com>
6780
6781 * MAINTAINERS: Update target maintainer rules so that any
6782 Maintainer can approve a tested patch for a maintenance-only
6783 target.
6784
dd96c05b
RE
67852002-01-09 Richard Earnshaw <rearnsha@arm.com>
6786
d4297db9 6787 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 6788
d4297db9 6789 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
6790 IN_SIGTRAMP.
6791
145fdc6e
MS
67922002-01-08 Michael Snyder <msnyder@redhat.com>
6793
6794 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
6795 real name of the executable, rather than the /proc name.
6796
be4d1333
MS
67972002-01-03 Michael Snyder <msnyder@redhat.com>
6798
6799 Implement a "generate-core-file" command in gdb, save target state.
6800 * gcore.c: New file. Implement new command 'generate-core-file'.
6801 Save a corefile image of the current state of the inferior.
6802 * linux-proc.c: Add linux-specific code for saving corefiles.
6803 * target.h (struct target_ops): Add new target vectors for saving
6804 corefiles; to_find_memory_regions and to_make_corefile_notes.
6805 (target_find_memory_regions): New macro.
6806 (target_make_corefile_notes): New macro.
6807 * target.c (update_current_target): Inherit new target methods.
6808 (dummy_find_memory_regions): New place-holder method.
6809 (dummy_make_corefile_notes): New place-holder method.
6810 (init_dummy_target): Initialize new dummy target vectors.
6811 * exec.c (exec_set_find_memory_regions): New function.
6812 Allow the exec_ops vector for memory regions to be taken over.
6813 (exec_make_note_section): New function, target vector method.
6814 * defs.h (exec_set_find_memory_regions): Export prototype.
6815 * procfs.c (proc_find_memory_regions): New function, corefile method.
6816 (procfs_make_note_section): New function, corefile method.
6817 (init_procfs_ops): Set new target vector pointers.
6818 (find_memory_regions_callback): New function.
6819 (procfs_do_thread_registers): New function.
6820 (procfs_corefile_thread_callback): New function.
6821 * sol-thread.c (sol_find_memory_regions): New function.
6822 (sol_make_note_section): New function.
6823 (init_sol_thread_ops): Initialize new target vectors.
6824 * inftarg.c (inftarg_set_find_memory_regions): New function.
6825 Allow to_find_memory_regions vector to be taken over.
6826 (inftarg_set_make_corefile_notes): New function.
6827 Allow to_make_corefile_notes vector to be taken over.
6828 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6829 interface layer if not target_has_execution (may be a corefile).
6830 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6831 * config/sparc/sun4sol2.mh: Ditto.
6832 * config/alpha/alpha-linux.mh: Ditto.
6833 * config/arm/linux.mh: Ditto.
6834 * config/i386/x86-64linux.mh: Ditto.
6835 * config/ia64/linux.mh: Ditto.
6836 * config/m68k/linux.mh: Ditto.
6837 * config/mips/linux.mh: Ditto.
6838 * config/powerpc/linux.mh: Ditto.
6839 * config/sparc/linux.mh: Ditto.
6840
c6b92abd
MS
68412002-01-07 Michael Snyder <msnyder@redhat.com>
6842
6843 * arm-linux-nat.c: Remove references to regcache.c internal data
6844 (registers[] and register_valid[]).
6845
4b09dc8c
MS
68462002-01-07 Michael Snyder <msnyder@redhat.com>
6847
abf22e64
AJ
6848 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6849 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
6850 symbol file and shlibs.
6851 * Makefile.in: Add rule for linux-proc.o.
6852 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6853 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6854 * config/arm/linux.mh: Ditto.
6855 * config/i386/linux.mh: Ditto.
6856 * config/i386/x86-64linux.mh: Ditto.
6857 * config/ia64/linux.mh: Ditto.
6858 * config/m68k/linux.mh: Ditto.
6859 * config/mips/linux.mh: Ditto.
6860 * config/powerpc/linux.mh: Ditto.
6861 * config/sparc/linux.mh: Ditto.
6862
c25b74ac
PM
68632002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6864
6865 * win32-nat.c: Add i386-tdep.h dependency.
6866
94cd915f
MS
68672002-01-07 Michael Snyder <msnyder@redhat.com>
6868
c7cccb76
MS
6869 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6870 instead of bfd_get_arch_size. Don't bail out just because
6871 there's no exec_bfd.
abf22e64 6872
34c0bd93
MS
6873 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6874 * p-valprint.c (pascal_object_print_value): Ditto.
6875 * somread.c (som_symtab_read): Ditto.
6876 * symfile.c (simple_free_overlay_region_table): Ditto.
6877 * valops.c (value_assign): Ditto.
6878
21c1c920
MS
6879 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6880 use tilde_expand and strerror for opening save-tracepoints file.
6881
5bbd998e
MS
6882 * thread-db.c (thread_db_new_objfile): Indendation fix.
6883
94cd915f
MS
6884 * infptrace.c (GDB_MAX_ALLOCA): New define.
6885 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 6886 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
6887 can be overridden with whatever value is appropriate to the host).
6888 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6889 alloca to allocate potentially large buffer.
6890 * rs6000-nat.c (child_xfer_memory): Ditto.
6891 * symm-nat.c (child_xfer_memory): Ditto.
6892 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6893
494e8a93
JSC
68942002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6895
6896 From Nick Clifton <nickc@redhat.com>
6897 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6898
d0e1d48e
MS
68992002-01-07 Michael Snyder <msnyder@redhat.com>
6900
abf22e64 6901 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
6902 Don't use exec_bfd if it's NULL.
6903
290b2c7a
MK
69042002-01-06 Mark Kettenis <kettenis@gnu.org>
6905
abf22e64 6906 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 6907
aef21287
AC
69082002-01-06 Andrew Cagney <ac131313@redhat.com>
6909
6910 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6911 * gnu-nat.c: Ditto.
6912
30efa627
AC
69132002-01-06 Andrew Cagney <ac131313@redhat.com>
6914
6915 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6916 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6917 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6918 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6919 z8k-coff have not been multi-arched. Update z8k-coff build
6920 status.
6921
9b4ff276
AC
69222002-01-06 Andrew Cagney <ac131313@redhat.com>
6923
6924 * MAINTAINERS: Mark a29k target as obsolete.
6925 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6926 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6927 comments.
6928 * NEWS: Note that a29k targets are obsolete.
6929 * a29k-tdep.c: Mark as obsolete.
6930 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6931 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6932 a29k-*-vxworks* targets as obsolete.
6933 * remote-adapt.c: Obsolete.
6934 * remote-eb.c: Obsolete.
6935 * remote-mm.c: Obsolete.
6936 * remote-udi.c: Obsolete.
6937 * config/a29k/a29k-udi.mt: Obsolete.
6938 * config/a29k/a29k.mt: Obsolete.
6939 * config/a29k/tm-a29k.h: Obsolete.
6940 * config/a29k/tm-vx29k.h: Obsolete.
6941 * config/a29k/vx29k.mt: Obsolete.
6942
a9011d31
AC
69432002-01-05 Andrew Cagney <ac131313@redhat.com>
6944
6945 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6946 with BFD_ENDIAN_BIG.
6947
9299404e
AC
69482002-01-05 Andrew Cagney <ac131313@redhat.com>
6949
6950 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6951 * configure, config.in: Re-generate.
6952 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6953 * defs.h: Do not include <endian.h>.
6954
7e89e357
JT
69552002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6956
6957 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6958 * config.in: Regenerate.
6959 * configure.in: Update copyright years.
6960 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6961 * configure: Regenerate.
6962 * i386bsd-nat.c: Update copyright years.
6963 (fill_gregset): Use regcache_collect.
6964 (fetch_inferior_registers): Only fetch integer registers
6965 if requested to do so. Add support for XMM registers
6966 using PT_GETXMMREGS.
6967 (store_inferior_registers): Only store integer registers
6968 if requested to do so. Add support for XMM registers
6969 using PT_SETXMMREGS.
6970 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6971 (store_inferior_registers): Remove.
6972 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6973 (fetch_elfcore_registers): New function.
6974 (i386nbsd_elfcore_fns): New.
6975 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6976 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6977 i386bsd-nat.o.
6978 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6979 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6980 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6981 * config/i386/tm-nbsd.h: Update copyright years.
6982 (HAVE_SSE_REGS): Define.
6983 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6984 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6985 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6986 (SIGCONTEXT_PC_OFFSET): Remove.
6987 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6988
a752853e
AC
69892002-01-05 Andrew Cagney <ac131313@redhat.com>
6990
6991 * configure.tgt: Remove powerpc-*-macos* target.
6992 * config/m68k/xm-mpw.h: Delete file.
6993 * config/xm-mpw.h: Delete file.
6994 * ser-mac.c: Delete file.
6995 * mpw-make.sed: Delete file.
6996 * mpw-config.in: Delete file.
6997 * mac-xdep.c: Delete file.
6998 * mac-gdb.r: Delete file.
6999 * mac-defs.h: Delete file.
7000 * mac-nat.c: Delete file.
7001 * config/powerpc/macos.mh: Delete file.
7002 * config/powerpc/macos.mt: Delete file.
7003 * config/powerpc/nm-macos.h: Delete file.
7004 * config/powerpc/tm-macos.h: Delete file.
7005 * source.c (openp, open_source_file): Remove obsolete code.
7006 * top.c (gdb_readline): Ditto.
7007 * utils.c (query): Ditto.
7008 * event-top.c (display_gdb_prompt): Ditto.
7009 * Makefile.in (ser-mac.o): Delete obsolete target.
7010 * NEWS: Update.
7011
d7449b42
AC
70122002-01-04 Andrew Cagney <ac131313@redhat.com>
7013
7014 * defs.h (BIG_ENDIAN): Delete macro definition.
7015 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7016 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7017 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7018 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7019 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7020 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7021 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7022 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7023 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7024 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7025 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7026 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7027 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7028 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7029 * gdbarch.c: Re-generate.
7030
356374e8
DJ
70312002-01-04 Daniel Jacobowitz <drow@mvista.com>
7032
7033 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7034 for core files.
7035
a2b8f8f8
JT
70362002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7037
7038 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7039
12466af9
AC
70402002-01-04 Andrew Cagney <ac131313@redhat.com>
7041
7042 * value.h (value_ptr): Delete typedef.
7043
3549ab40
JT
70442002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7045
7046 * i386nbsd-nat.c: Update copyright years.
7047 Include i386-tdep.h.
7048
fedbd091
EZ
70492002-01-04 Elena Zannoni <ezannoni@redhat.com>
7050
7051 * stabsread.c: Update copyright years.
7052
7053 From Debashis Mahata <debashis.mahata@wipro.com>:
7054 (read_struct_fields): Deal with Sun C compiler erroneous stab
7055 output for structs and unions.
fec8b34f 7056 Fix PR gdb/269.
fedbd091 7057
eb43544b
DJ
70582002-01-04 Daniel Jacobowitz <drow@mvista.com>
7059
7060 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7061 prototype.
7062
1514d34e
DJ
70632002-01-04 Daniel Jacobowitz <drow@mvista.com>
7064
7065 * cp-abi.c: Fix whitespace.
7066 (baseclass_offset): New wrapper function.
7067 * cp-abi.h (baseclass_offset): Add prototype.
7068 (struct cp_abi_ops): Add baseclass_offset pointer.
7069
7070 * valops.c (vb_match): Move to...
7071 * gnu-v2-abi.c (vb_match): here.
7072 * valops.c (baseclass_offset): Move to...
7073 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7074
7075 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7076
7077 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7078 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7079 * hpacc-abi.c (init_hpacc_ops): Likewise.
7080
7f8c9282
DJ
70812002-01-04 Daniel Jacobowitz <drow@mvista.com>
7082
7083 * valops.c (find_overload_match): Accept obj as a
7084 reference parameter. Update it before returning.
7085 * value.h (find_overload_match): Update prototype.
7086 * eval.c (evaluate_subexp_standard): Pass object to
7087 find_overload_match by reference.
7088
f23631e4
AC
70892002-01-03 Andrew Cagney <ac131313@redhat.com>
7090
7091 * valarith.c: Replace value_ptr with struct value pointer. Remove
7092 register attribute from value declarations.
7093 * valops.c: Ditto.
7094 * value.h: Ditto.
7095 * scm-lang.c (scm_lookup_name): Ditto.
7096
79e10fab 70972002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 7098
79e10fab
AC
7099 Abstract the functionality of iterating over mapped memory
7100 regions into a general purpose iterator function.
abf22e64 7101 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
7102 iterator for memory sections.
7103 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7104 (solib_mappings_callback): New function, callback for above.
7105 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7106 (info_mappings_callback): New function, callback for above.
7107
7108 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7109
c5ad026a
MK
71102002-01-01 Mark Kettenis <kettenis@gnu.org>
7111
d2a7c97a
MK
7112 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7113 * i386-tdep.c: Include "elf-bfd.h".
7114 (process_note_abi_tag_sections): New function.
7115 (i386_gdbarch_init): Add code to recognize various OS/ABI
7116 combinations.
7117
c5ad026a
MK
7118 * maint.c (_initialize_maint_cmds): Add missing \ in
7119 string-literal.
7120
a1a5b71e 7121For older changes see ChangeLog-2001
c906108c
SS
7122\f
7123Local Variables:
7124mode: change-log
7125left-margin: 8
7126fill-column: 74
7127version-control: never
7128End:
This page took 0.582197 seconds and 4 git commands to generate.