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