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