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