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