* i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6f558d74
MK
12002-07-02 Mark Kettenis <kettenis@gnu.org>
2
3 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4
145564b7
ML
52002-07-02 Michal Ludvig <mludvig@suse.cz>
6
7 * config/i386/tm-x86-64linux.h: New.
8 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
9 definitions.
10 * config/i386/nm-x86-64.h: Rename to ...
11 * config/i386/nm-x86-64linux.h: ... this one.
12 * config/i386/x86-64linux.mh: Reflect the above change.
13
3a1e71e3
MK
142002-07-01 Mark Kettenis <kettenis@gnu.org>
15
21d0e8a4
MK
16 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
17 with sigcontext_addr. Add sc_sp_offset.
18 (i386bsd_sigtramp_saved_pc): Remove prototype.
19 (i386bsd_sicontext_addr): Add prototype.
20 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
21 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
22 (i386_svr4_sigtramp_saved_pc): Removed.
23 (i386_svr4_sigcontext_addr): New function.
24 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
25 Initialize tdep->sigcontext_addr instead. Initialize
26 tdep->sc_pc_offset and tdep->sc_sp_offset.
27 (i386_gdbarch_init): Likewise.
28 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
29 any more.
30 (i386bsd_sigtramp_saved_pc): Remove function.
31 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
32 Initialize tdep->sigcontext_addr instead. Initialize
33 tdep->sc_pc_offset.
34 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
35 of tdep->sigtramp_saved_pc.
36 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
37 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
38 instead.
39
3a1e71e3
MK
40 * i386-tdep.c (i386_frameless_function_invocation,
41 i386_frame_num_args, i386_frame_init_saved_regs,
42 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
43 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
44 i386_extract_return_value, i386_store_return_value,
45 i386_extract_struct_value_address, i386_register_virtual_type,
46 i386_register_convertible, i386_register_convert_to_virtual,
47 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
48 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
49 static.
50
52e9098c
MK
512002-07-01 Mark Kettenis <kettenis@gnu.org>
52
77b13a25
MK
53 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
54
52e9098c
MK
55 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
56 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
57 this macro. Include "value.h".
58
1b372fff
AS
592002-06-30 Aidan Skinner <aidan@velvet.net>
60
61 * ada-exp.tab.c: remove as it's a generated file
62 * ada-lex.c: remove as it's a generated file
63
9c5045b5
MK
642002-06-30 Mark Kettenis <kettenis@gnu.org>
65
4a93c5bb
MK
66 * config/i386/tm-i386.h (struct frame_info, struct
67 frame_saved_regs, struct value, struct type): Remove forward
68 declarations.
69
322d4fe0
MK
70 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
71 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
72 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
73 (FILL_FPXREGSET): Define.
74
fdd8263d
MK
75 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
76
482e577b
MK
77 * configure.tgt (i[3456]86-*-openbsd*): Fold into
78 i[3456]86-*-netbsd* case.
79 * config/i386/tm-obsd.h: Removed.
80 * config/i386/obsd.mt: Removed.
81 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
82 core-aout.o.
83 (MH_CFLAGS): Add -DYYDEBUG=0.
84
6916549a
MK
85 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
86 i386nbsd_sc_pc_offset on OpenBSD too.
87
9c5045b5
MK
88 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
89 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
90 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
91 define.
92 * i386bsd-tdep.c: Include "arch-utils.h".
93 (i386bsd_aout_in_solib_call_trampoline): New function.
94 (i386bsd_init_abi): Set in_solib_call_trampoline to
95 i386bsd_aout_in_solib_call_trampoline.
96 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
97 in_solib_call_trampoline to generic_in_solib_call_trampoline.
98
aa84d1bb
AC
992002-06-28 Andrew Cagney <ac131313@redhat.com>
100
101 * macrotab.h: Do not include "obstack.h" or "bcache.h".
102 (struct obstack, struct bcache): Add opaque declarations.
103 * Makefile.in (macrotab_h): Update
104
b4d83933
AC
1052002-06-28 Andrew Cagney <ac131313@redhat.com>
106
107 * blockframe.c (generic_find_dummy_frame): Change return type to
108 ``struct regcache''.
109 (struct dummy_frame): Replace field ``registers'' with regcache, a
110 struct regcache object.
111 (generic_find_dummy_frame): Update.
112 (generic_push_dummy_frame): Update. Use regcache_xfree,
113 regcache_xmalloc and regcache_cpy.
114 (generic_pop_dummy_frame): Update. Use regcache_cpy and
115 regcache_xfree.
116 (deprecated_generic_find_dummy_frame): Update.
117 (generic_read_register_dummy): Update. Use
118 regcache_read_as_address.
119 (generic_call_dummy_register_unwind): Update. Use regcache_read.
120 (generic_get_saved_register): Update. Use regcache_read.
121
08c0b5bc
AC
1222002-06-28 Andrew Cagney <ac131313@redhat.com>
123
124 * Makefile.in (objfiles_h): Add $(bcache_h).
125 * objfiles.h: Include "bcache.h".
126
127 * Makefile.in (symtab_h): Remove $(bcache_h).
128 * symtab.h: Do not include "bcache.h".
129
1f89801a
AC
1302002-06-28 Andrew Cagney <ac131313@redhat.com>
131
132 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
133 generic_func_frame_chain_valid.
134
b9644b58
DB
1352002-06-28 David O'Brien <obrien@FreeBSD.org>
136
137 * config/i386/nm-fbsd.h: Include <sys/param.h>.
138 * config/i386/tm-fbsd.h: Likewise.
139
dd486634
AC
1402002-06-28 Andrew Cagney <ac131313@redhat.com>
141
142 * rs6000-tdep.c (rs6000_gdbarch_init): Use
143 generic_unwind_get_saved_register.
144
0b434a00
AC
1452002-06-27 Andrew Cagney <ac131313@redhat.com>
146
147 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
148 * regcache.c (supply_register): Add missing argument to
149 register_buffer call.
150
f30e5a77
AC
1512002-06-27 Andrew Cagney <ac131313@redhat.com>
152
153 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
154 Solaris /bin/grep does not not like it. From Peter Schauer.
155
9f064c95
TT
1562002-06-26 Tom Tromey <tromey@redhat.com>
157
158 * command.h (add_setshow_cmd): Declare.
159 (add_setshow_cmd_full): Declare.
160 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
161 returns void. Use add_setshow_cmd_full.
162 (add_setshow_cmd_full): New function.
163 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
164 (add_setshow_boolean_cmd): Likewise.
165
099c7589
JT
1662002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
167
168 * config/vax/tm-vax.h: Protect from multiple inclusion.
169 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
170 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
171 * config/vax/tm-vaxbsd.h: ...here. New file.
172 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
173
1d049c5e
JT
1742002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
175
176 * config/vax/tm-vax.h (BREAKPOINT): Remove.
177 (BELIEVE_PCC_PROMOTION): Remove.
178 (AP_REGNUM): Move to...
179 * config/vax/nm-vax.h: ...here.
180 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
181 (vax_breakpoint_from_pc): New function.
182 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
183 and gdbarch_believe_pcc_promotion.
184
4791e091
JT
1852002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
186
187 * Makefile.in (vax_tdep_h): Define.
188 (vax-tdep.o): Use $(vax_tdep_h).
189 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
190 (vax_dump_tdep): New function.
191 (_initialize_vax_tdep): Register vax_dump_tdep.
192 * vax-tdep.h: Include osabi.h.
193 (struct gdbarch_tdep): New.
194
da130f98
AC
1952002-06-26 Andrew Cagney <cagney@redhat.com>
196
197 * frame.h (deprecated_generic_find_dummy_frame): Rename
198 generic_find_dummy_frame.
199 * blockframe.c (generic_find_dummy_frame): Make static.
200 (deprecated_generic_find_dummy_frame): New function.
201 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
202 generic_find_dummy_frame with deprecated_find_dummy_frame.
203 (sh64_nofp_frame_init_saved_regs): Ditto.
204 (sh_fp_frame_init_saved_regs): Ditto.
205 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
206 (s390_frame_chain): Ditto.
207 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
208
6300c360
GS
2092002-06-26 Grace Sainsbury <graces@redhat.com>
210
211 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
212 gdbarch vector are at the top.
213 (NUM_REGS): Remove.
214 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
215 (FRAME_ARGS_ADDRESS): Remove.
216 (FRAME_LOCALS_ADDRESS): Remove.
217 (FRAME_NUM_ARGS): Remove.
218 (FRAME_ARGS_SKIP): Remove.
219 * m68k-tdep.c (enum): Add eumeration of special register numbers.
220 (m68k_gdbarch_init): Add gdbarch initializations for macros
221 undefined in tm-m68k.h
222
1c617db8
GS
2232002-06-26 Grace Sainsbury <graces@redhat.com>
224
225 * monitor.h: Add the function regname to monitor_ops
226 structure. This way NUM_REGS does not have to be a constant.
227 * monitor.c (monitor_fetch_register): Added support for regname
228 function. The function is called if the array regnames is NULL.
229 (monitor_store_register): Same.
da130f98
AC
230 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
231 regnames array.
1c617db8
GS
232 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
233 cpu32bug_cmds.regname to point to new function.
234 * abug-rom.c (abug_regname): Same as above.
235 (init_abug_cmds): Same.
236 * dbug-rom.c (dbug_regname): Same as above.
237 (init_dbug_cmds): Same.
238 * remote-est.c (est_regname): Same.
239 (init_est_cmds): Same.
240 * rom68k-rom.c (rom68k_regname): Same.
241 (init_rom68k_cmds): Same.
242
ea9365bb
TT
2432002-06-25 Tom Tromey <tromey@redhat.com>
244
245 * breakpoint.c (delete_command): Don't repeat `delete' commands.
246
72cec141
AC
2472002-06-25 Andrew Cagney <cagney@redhat.com>
248
249 * infrun.c (stop_registers): Change variable's type to ``struct
250 regcache'''.
251 (xmalloc_inferior_status): Delete function.
252 (free_inferior_status): Delete function.
253 (normal_stop): Use regcache_cpy.
254 (struct inferior_status): Change type of fields ``stop_registers''
255 and ``registers'' to ``struct regcache''.
256 (write_inferior_status_register): Use regcache_write.
257 (save_inferior_status): Instead of calling
258 xmalloc_inferior_status, allocate the inf_status buffer directly.
259 Use regcache_dup_no_passthrough and regcache_dup to save the
260 buffers.
261 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
262 Replace the stop_registers regcache instead of overriding it. Use
263 regcache_xfree. Instead of calling free_inferior_status, xfree
264 the buffer directly.
265 (discard_inferior_status): Use regcache_xfree. Instead of calling
266 free_inferior_status, xfree the buffer directly.
267 (build_infrun): Use regcache_xmalloc.
268 (_initialize_infrun): Delete redundant call to build_infrun.
269
270 * Makefile.in (infcmd.o): Add $(regcache_h).
271
272 * infcmd.c: Include "regcache.h".
273 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
274 obtain the address of `stop_registers' register buffer.
275 (print_return_value): Ditto.
276
277 * inferior.h (struct regcache): Add opaque declaration.
278 (stop_registers): Change variable's declared type to ``struct
279 regcache''.
280
defc6f8c
TT
2812002-06-24 Tom Tromey <tromey@redhat.com>
282
c0e624e7
TT
283 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
284 * target.c (initialize_targets): Fixed typo in
285 trust-readonly-sections `show' documentation.
286
defc6f8c
TT
287 * main.c: Marked all strings with _().
288
2b236d82
DH
2892002-06-24 Don Howard <dhoward@redhat.com>
290
291 * memattr.c (create_mem_region): Treat hi == 0 as a special case
292 that means max CORE_ADDR+1.
293 (lookup_mem_region): Ditto.
294 (mem_info_command): Ditto.
295
942dc0e9
GS
2962002-06-24 Grace Sainsbury <graces@redhat.com>
297
298 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
299 (REGISTER_BYTES_OK): Remove.
300 (REGISTER_BYTES): Remove.
301 (STORE_STRUCT_RETURN): Remove.
302 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
303 (STORE_RETURN_VALUE): Remove.
304 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
305 (FRAME_CHAIN): Remove.
306 (FRAMELESS_FUNCTION_INVOCATION): Remove.
307 (FRAME_SAVED_PC): Remove.
308 * m68k-tdep.c (m68k_register_bytes_ok):Add.
309 (m68k_store_struct_return): Add.
310 (m68k_deprecated_extract_return_value): Add.
311 (m68k_deprecated_extract_struct_value_address): Add.
312 (m68k_store_return_value): Add.
313 (m68k_frame_chain): Add.
314 (m68k_frameless_function_invocation): Add.
315 (m68k_frame_saved_pc): Add.
316 (m68k_gdbarch_init): added set_gdbarch calls for new
317 functions and deleted macros.
318
03c30d4d
TT
3192002-06-23 Tom Tromey <tromey@redhat.com>
320
321 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
322 (ALLDEPFILES): Likewise.
323 (udiheaders): Removed.
324 (udip2soc.o): Likewise.
325 (udi2go32.o): Likewise.
326 (udr.o): Likewise.
327 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
328
37e71372
AC
3292002-06-22 Andrew Cagney <ac131313@redhat.com>
330
06a6ac57
AC
331 * infrun.c (_initialize_infrun): Delete unnecessary call to
332 build_infrun.
333
37e71372
AC
334 * regcache.h: Update comments describing the regcache_cpy family
335 of functions.
336 (regcache_save, regcache_restore): Delete declaration.
337 (regcache_save_no_passthrough): Delete declaration.
338 (regcache_restore_no_passthrough): Delete declaration.
339 * regcache.c (regcache_save): Delete function.
340 (regcache_save_no_passthrough): Delete function.
341 (regcache_restore): Delete function.
342 (regcache_restore_no_passthrough): Delete function.
343
78f6d055
AC
3442002-06-21 Andrew Cagney <ac131313@redhat.com>
345
346 * config/m68k/tm-m68k.h: Fix typo.
347 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
348 (m68k_frame_init_saved_regs): Declare.
349
78b119cb
JB
3502002-06-21 Jim Blandy <jimb@redhat.com>
351
352 Remove some vestiges of Harris 88k support.
353 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
354 register numbering quirk.
355 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
356 odd symbols occurring in Harris 88k ELF targets.
357
0fbb3da7
TT
3582002-06-21 Tom Tromey <tromey@redhat.com>
359
360 * gdb_locale.h: New file.
361 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
362 (defs_h): Added gdb_locale.h.
363 * configure, config.in: Rebuilt.
364 * configure.in (PACKAGE): Define.
365 * defs.h: Include gdb_locale.h.
366 * main.c (captured_main): Call setlocale, bindtextdomain,
367 textdomain.
368
456f8b9d
DB
3692002-06-21 Dave Brolley <brolley@redhat.com>
370
371 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
372 * config/frv/frv.mt: New file.
373 * config/frv/tm-frv.h: New file.
374 * configure.tgt: Support frv-*-*.
375 * Makefile.in (frv-tdep.o): New target.
376 * frv-tdep.c: New file.
377 * NEWS: Mention frv.
378
cdd463f9
DB
3792002-06-21 Dave Brolley <brolley@redhat.com>
380
381 * MAINTAINERS: Add self to "Write After Approval" list.
382
5d3ed2e3
GS
3832002-06-21 Grace Sainsbury <graces@redhat.com>
384
385 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
386 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
387 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
388 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
389 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
390
391 * m68k-tdep.c: Include arch-utils.h
392 (m68k_register_raw_size): Add.
393 (m68k_register_virtual_size): Add.
394 (m68k_register_virtual_type): Add.
395 (m68k_register_name): Add.
396 (m68k_stack_align): Add.
397 (m68k_register_byte): Add.
398 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
399 tm-m68k.h.
400
7f8e7424
GS
4012002-06-21 Grace Sainsbury <graces@redhat.com>
402
a2c6a6d5 403 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
404 m68k_find_saved_regs.
405 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 406 references to it with frame->saved_regs.
7f8e7424
GS
407 (m68k_gdbarch_init): Added function calls to initialize the
408 gdbarch structure.
a2c6a6d5
GS
409 (m68k_fix_call_dummy): Add.
410 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
411 (CALL_DUMMY): Remove.
412 (CALL_DUMMY_LENGTH): Remove.
413 (CALL_DUMMY_START_OFFSET): Remove.
414 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
415 (FIX_CALL_DUMMY): Remove.
416 (PUSH_DUMMY_FRAME): Remove.
417 (POP_FRAME): Remove.
7f8e7424 418
f461f5cf
PM
4192002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
420
421 * parse.c (parse_fprintf): New function used to avoid calls to
422 fprintf in bison parser generated debug code.
423 * parser-defs.h: Declaration of new parse_fprintf function.
424 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
425 Set YYDEBUG to 1 by default.
426 Set YYFPRINTF as parse_fprintf.
427
7f0c12ed
ML
4282002-06-21 Michal Ludvig <mludvig@suse.cz>
429
430 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
431 encoding anymore.
432 (pointer_encoding, enum ptr_encoding): New.
433 (execute_cfa_program): Take care about pointer encoding.
434 (dwarf2_build_frame_info): Only call parse_frame_info for
435 .debug_frame and .eh_frame.
436 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
437 fixed augmentation handling, added relative addressing,
438 ignore duplicate FDEs. Added comments.
19d833a2 439 * dwarf2cfi.c: Reindented.
7f0c12ed 440
87c4a039
EZ
4412002-06-20 Elena Zannoni <ezannoni@redhat.com>
442
443 * event-top.c (command_handler): Don't use space_at_cmd_start
444 unless there is sbrk() on the host. Assign time and space data
445 to union fields of the appropriate length.
446
1cf877ad
ML
4472002-06-20 Michal Ludvig <mludvig@suse.cz>
448
449 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
450 x86_64_register_name. Return type changed to 'const char *'.
451 (x86_64_register_name2nr): Rename to x86_64_register_number.
452 (x86_64_gdbarch_init): Update to reflect the change.
453 * x86-64-tdep.h: Ditto.
454 * x86-64-linux-nat.c (x86_64_fxsave_offset)
455 (supply_fpregset): Ditto.
456
3fadccb3
AC
4572002-06-19 Andrew Cagney <cagney@redhat.com>
458
459 * regcache.h: Update copyright.
460 (struct regcache, struct gdbarch): Add opaque declarations.
461 (current_regcache): Declare global variable.
462 (regcache_read, regcache_write): Add gdbarch parameter.
463 (regcache_save, regcache_save_no_passthrough)
464 (regcache_restore, regcache_restore_no_passthrough)
465 (regcache_dup, regcache_dup_no_passthrough)
466 (regcache_cpy, regcache_cpy_no_passthrough)
467 (deprecated_grub_regcache_for_registers)
468 (deprecated_grub_regcache_for_register_valid)
469 (regcache_valid_p): Add function declarations.
470
471 * regcache.c: Update copyright.
472 (regcache_descr_handle): New global variable.
473 (struct regcache_descr): Define.
474 (init_legacy_regcache_descr, init_regcache_descr): New functions.
475 (regcache_descr, xfree_regcache_descr): New functions.
476 (struct regcache): Define.
477 (regcache_xmalloc, regcache_xfree): New functions.
478 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
479 (regcache_dup, regcache_dup_no_passthrough): New functions.
480 (regcache_valid_p, regcache_read_as_address): New functions.
481 (deprecated_grub_regcache_for_registers): New function.
482 (deprecated_grub_regcache_for_register_valid): New function.
483 (current_regcache): New global variable.
484 (register_buffer): Add regcache parameter. Update calls.
485 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
486 (read_register_gen, write_register_gen): Update register_buffer
487 call. Test for legacy_p instead of gdbarch_register_read_p or
488 gdbarch_register_write_p.
489 (regcache_collect): Update register_buffer call.
490 (build_regcache): Rewrite. Use deprecated grub functions.
491 (regcache_save, regcache_save_no_passthrough): New functions.
492 (regcache_restore, regcache_restore_no_passthrough): New
493 functions.
494 (_initialize_regcache): Create the regcache_data_handle. Swap
495 current_regcache global variable.
496
497 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
498 parameter to regcache_read and regcache_write calls.
499 (sh4_register_read): Ditto.
500 (sh64_pseudo_register_read): Ditto.
501 (sh64_register_read): Ditto.
502 (sh_pseudo_register_write): Ditto.
503 (sh4_register_write): Ditto.
504 (sh64_pseudo_register_write): Ditto.
505 (sh64_register_write): Ditto.
506
507 * defs.h (XCALLOC): Define.
508
152d9db6
GS
5092002-06-19 Grace Sainsbury <graces@redhat.com>
510
511 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
512 * m68k-tdep.c (m68k_gdbarch_init): Added.
513 (m68k_dump_tdep): Added.
514
170911c7
DJ
5152002-06-19 Daniel Jacobowitz <drow@mvista.com>
516
517 * ada-lang.c (fill_in_ada_prototype): Update comment.
518
2e4ebe70
DJ
5192002-06-19 Daniel Jacobowitz <drow@mvista.com>
520
521 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
522 MIPS_ABI_LAST.
523 (mips_abi_string, mips_abi_strings): New.
524 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
525 (mips_gdbarch_init): Set tdep->found_abi. Don't set
526 tdep->mips_abi_string. Honor mips_abi_string. Default to
527 O32 if no ABI is found.
528 (mips_dump_tdep): Use mips_abi_strings.
529 (mips_abi_update): New function.
530 (_initialize_mips_tdep): Initialize mips_abi_string. Add
531 ``set mips abi'' and ``show mips abi''. Check the size of
532 mips_abi_strings.
533
16775908
AC
5342002-06-19 Andrew Cagney <cagney@redhat.com>
535
536 * i386-linux-tdep.c (i386_linux_register_name): Make return type
537 constant.
538
5051bfa4 5392002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 540
5051bfa4
JB
541 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
542 current frame using only the first stack size adjustment. All
543 subsequent size adjustments are not considered to be part of
544 the "static" part of the current frame.
545 Compute the address of the saved registers relative to the
546 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
547 in use in this frame.
548
56468235
DH
5492002-06-18 Don Howard <dhoward@redhat.com>
550
551 * valops.c (value_ind): Use value_at_lazy() when dereferencing
552 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
553 suggesting this solution.
554
0b624158
AC
5552002-06-18 Andrew Cagney <ac131313@redhat.com>
556
557 * config/romp/xm-rtbsd.h: Delete file.
558 * config/romp/rtbsd.mh: Delete file.
559
221ea385
KS
5602002-06-18 Keith Seitz <keiths@redhat.com>
561
562 * breakpoint.c (condition_command): Post breakpoint_modify
563 when a condition is added to an existing breakpoint.
564 (commands_command): Likewise for commands.
565 (set_ignore_count): Likewise for ignore counts.
566 If no tty, do not simply return, still need to send event
567 notification.
568 (ignore_command): Only print a newline if the command came
569 from a tty.
570 Don't call breakpoints_changed, since this is now properly
571 handled by set_ignore_count.
572
5402eed1
AC
5732002-06-18 Andrew Cagney <cagney@redhat.com>
574
575 * MAINTAINERS: Note that cris-elf target can be compiled with
576 -Werror.
577 * cris-tdep.c (cris_register_name): Make return type constant.
578 (cris_breakpoint_from_pc): Ditto.
579
cc22880b
ML
5802002-06-18 Michal Ludvig <mludvig@suse.cz>
581
582 * frame.h (struct frame_info): Change type of context to
583 'struct context'.
584
fa88f677
AC
5852002-06-17 Andrew Cagney <cagney@redhat.com>
586
587 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
588 pointer.
589 * gdbarch.h, gdbarch.c: Regenerate.
590 * config/mips/tm-mips.h (mips_register_name): Update.
591 * i386-tdep.h (i386_register_name): Update.
592 * mips-tdep.c (mips_register_name): Update
593 * alpha-tdep.c (alpha_register_name): Update.
594 * arch-utils.c (legacy_register_name): Update.
595 * arch-utils.h (legacy_register_name): Update.
596 * avr-tdep.c (avr_register_name): Update.
597 * ia64-tdep.c (ia64_register_name): Update.
598 * i386-tdep.c (i386_register_name): Update.
599 * sparc-tdep.c (sparc32_register_name): Update.
600 (sparc64_register_name): Update.
601 (sparclite_register_name): Update.
602 (sparclet_register_name): Update.
603 * sh-tdep.c (sh_generic_register_name): Update.
604 (sh_sh_register_name): Update.
605 (sh_sh3_register_name): Update.
606 (sh_sh3e_register_name): Update.
607 (sh_sh_dsp_register_name): Update.
608 (sh_sh3_dsp_register_name): Update.
609 (sh_sh4_register_name): Update.
610 (sh_sh64_register_name): Update.
611 * s390-tdep.c (s390_register_name): Update.
612 * rs6000-tdep.c (rs6000_register_name): Update.
613 * ns32k-tdep.c (ns32k_register_name_32082): Update.
614 (ns32k_register_name_32382): Update.
615 * d10v-tdep.c (d10v_ts2_register_name): Update.
616 (d10v_ts3_register_name): Update.
617 * xstormy16-tdep.c (xstormy16_register_name): Update.
618 * vax-tdep.c (vax_register_name): Update.
619 * v850-tdep.c (v850_register_name): Update.
620 * m68hc11-tdep.c (m68hc11_register_name): Update.
621 * mn10300-tdep.c (mn10300_generic_register_name): Update.
622 (am33_register_name): Update.
623
ea1e7ef6
GS
6242002-06-17 Grace Sainsbury <graces@redhat.com>
625
626 * m68k-tdep.c: Reindented.
627
9b02dd1b
AC
6282002-06-17 Andrew Cagney <ac131313@redhat.com>
629
630 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
631 list of predefined types.
632
8758dec1
MK
6332002-06-16 Mark Kettenis <kettenis@gnu.org>
634
b6197528
MK
635 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
636 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
637 REGISTER_CONVERT_TO_RAW): Remove defines.
638 (i386_register_virtual_type, i386_register_convertible,
639 i386_register_convert_to_virtual, i386_register_convert_to_raw):
640 Remove prototypes.
641 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
642 macros mentioned above.
643
82b47e62
MK
644 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
645 (i386lynx_saved_pc_after_call): Remove prototype.
646 * i386ly-tdep.c: Include "i386-tdep.h".
647 (i386lynx_saved_pc_after_call): Make static. Use
648 read_memory_nobpt instead of read_memory. Use
649 read_memory_unsigned_integer instead of read_memory_integer.
650 (i386lynx_init_abi): New function.
651 (i386lynx_coff_osabi_sniffer): New function.
652 (_initialize_i386bsd_tdep): New function.
653
8758dec1
MK
654 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
655 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
656 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
657 (i386_fix_call_dummy): Remove prototype.
658 * i386-tdep.c (i386_call_dummy_words): New variable.
659 (i386_gdbarch_init): Adjust for removal of the
660 macros mentioned above.
661
e9e68a56
AC
6622002-06-15 Andrew Cagney <ac131313@redhat.com>
663
664 * command.h (add_setshow_auto_boolean_cmd): Replace
665 add_set_auto_boolean_cmd.
666 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
667 add_set_auto_boolean_cmd.
668 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
669 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
670 mask-address'' command.
671 (show_mask_address): Add cmd parameter.
672 * remote.c (add_packet_config_cmd): Update. Change type of
673 set_func and show_func to cmd_sfunc_ftype.
674 (_initialize_remote): Update `set remote Z-packet'
675 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
676 (show_remote_protocol_e_packet_cmd): Ditto.
677 (show_remote_protocol_E_packet_cmd): Ditto.
678 (show_remote_protocol_P_packet_cmd): Ditto.
679 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
680 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
681 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
682 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
683 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
684 (show_remote_protocol_Z_packet_cmd): Ditto.
685 (show_remote_protocol_binary_download_cmd): Ditto.
686 (show_remote_cmd): Pass NULL to all of above.
687
fc08ec52
MK
6882002-06-15 Mark Kettenis <kettenis@gnu.org>
689
690 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
691 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
692 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
693 POP_FRAME): Remove defines.
694 (i386_push_arguments, i386_store_struct_return,
695 i386_extract_return_value, i386_store_return_value,
696 i386_extract_struct_value_address, i386_push_dummy_frame,
697 i386_pop_frame): Renove prototypes.
698 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
699 macros mentioned above.
700
e707bbc2
AC
7012002-06-15 Andrew Cagney <ac131313@redhat.com>
702
703 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
704 add_set_boolean_cmd.
705 (add_setshow_cmd): New function.
706 * command.h (add_setshow_boolean_cmd): Replace
707 add_set_boolean_cmd.
708 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
709 and ``set rdiromatzero''.
710 * maint.c (_initialize_maint_cmds): Update commented out code.
711 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
712 * target.c (initialize_targets): Update `set
713 trust-readonly-sections'.
714 * remote.c (_initialize_remote): Update `set remotebreak'.
715
42fdc8df
MK
7162002-06-15 Mark Kettenis <kettenis@gnu.org>
717
93924b6b
MK
718 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
719 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
720 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
721 fit into multi-arch framework.
722 (i386_breakpoint_from_pc): New function.
723 (i386_gdbarch_init): Adjust for removal of the macros mentioned
724 above.
725
42fdc8df
MK
726 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
727 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
728 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
729 (i386_frameless_function_invocation, i386_frame_num_args,
730 i386_frame_init_saved_regs): Remove prototypes.
731 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
732 macros mentioned above.
733
9773a94b
AC
7342002-06-15 Andrew Cagney <ac131313@redhat.com>
735
736 * cli/cli-decode.c (set_cmd_cfunc): Update.
737 (set_cmd_sfunc): Update.
738 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
739 (set_cmd_sfunc, set_cmd_cfunc): Update.
740 * cli/cli-decode.h: Update.
741
6e157172
MK
7422002-06-15 Mark Kettenis <kettenis@gnu.org>
743
744 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
745 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
746
7f19b9a2
AC
7472002-06-15 Andrew Cagney <ac131313@redhat.com>
748
749 * defs.h (auto_boolean): Declare enum.
750 * command.h (cmd_auto_boolean): Delete enum.
751 * mips-tdep.c (mask_address_var): Update.
752 (mips_mask_address_p): Update.
753 (show_mask_address): Update.
754 * remote.c (struct packet_config): Update.
755 (update_packet_config): Update.
756 (show_packet_config_cmd): Update.
757 (packet_ok): Update.
758 (add_packet_config_cmd): Update.
759 (_initialize_remote):
760 * command.h: Update.
761 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
762 (do_setshow_command): Update.
763 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
764 * cli/cli-decode.h: Update.
765
1cf88de5
MK
7662002-06-15 Mark Kettenis <kettenis@gnu.org>
767
22ba8cf2
MK
768 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
769 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
770 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
771 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
772 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
773 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
774
762c5349
MK
775 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
776 list of DJGPP COFF targets.
777
091198bb
MK
778 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
779 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
780 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
781 (FP0_REGNUM): Remove define.
782 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
783 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
784 (i386_register_virtual_size): Remove protoype.
785 * i386-tdep.c (i386_register_virtual_size): Removed.
786 (i386_extract_return_value, i386_store_return_value): Use
787 FP0_REGNUM instead of NUM_FREGS to determine whether the
788 floating-point registers are available.
789 (i386_gdbarch_init): Tweak FIXME about FPU registers.
790 Adjust for removal of macros mentioned above.
791
7922002-06-15 Mark Kettenis <kettenis@gnu.org>
793
fcc9bf01
MK
794 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
795 comments.
796 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
797 Remove prototypes.
798 (supply_gregset, fill_gregset): Remove use of register keyword and
799 remove declaration for regmap. Use I386_NUM_GREGS instead of
800 NUM_REGS and NUM_FREGS.
801 (FPREGSET_FSAVE_OFFSET): Remove.
802 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
803 NUM_FREGS to determine whether the floating-point registers are
804 available.
805
65e78234
MK
806 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
807 gnu_store_registers): Replace usage of NUM_GREGS with
808 I386_NUM_GREGS.
809
98df6387
MK
810 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
811 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
812 usage of NUM_GREGS with I386_NUM_GREGS.
813
099a9414
MK
814 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
815
57976e88
MK
816 * i386bsd-nat.c: Include "i386-tdep.h".
817 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
818 I386_NUM_GREGS.
819
b335f4a6
MK
820 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
821 and associated comment. They no longer make any sense, since we
822 don't use this file anymore on Linux.
823
1cf88de5
MK
824 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
825 * i386-tdep.c (i386_register_offset, i386_register_size): Use
826 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
827 elements in these arrays.
828 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
829 MAX_NUM_REGS.
830
daa66587
MK
8312002-06-15 Mark Kettenis <kettenis@gnu.org>
832
833 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
834 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
835
26e9b323
AC
8362002-06-14 Andrew Cagney <cagney@redhat.com>
837
838 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
839 EXTRACT_RETURN_VALUE.
840 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
841 EXTRACT_STRUCT_VALUE_ADDRESS.
842 * gdbarch.h, gdbarch.c: Regenerate.
843
844 * values.c (value_being_returned): Handle
845 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
846 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
847
848 * arm-linux-tdep.c (arm_linux_init_abi): Update.
849 * arm-tdep.c (arm_gdbarch_init): Update.
850 * avr-tdep.c (avr_gdbarch_init): Update.
851 * cris-tdep.c (cris_gdbarch_init): Update.
852 * d10v-tdep.c (d10v_gdbarch_init): Update.
853 * ia64-tdep.c (ia64_gdbarch_init): Update.
854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
855 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
856 * s390-tdep.c (s390_gdbarch_init): Update.
857 * sh-tdep.c (sh_gdbarch_init): Update.
858 * s390-tdep.c (s390_gdbarch_init): Update.
859 * sparc-tdep.c (sparc_gdbarch_init): Update.
860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
861 * v850-tdep.c (v850_gdbarch_init): Update.
862 * vax-tdep.c (vax_gdbarch_init): Update.
863 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
865
866 * config/arc/tm-arc.h: Update.
867 * config/d30v/tm-d30v.h: Update.
868 * config/fr30/tm-fr30.h: Update.
869 * config/h8300/tm-h8300.h: Update.
870 * config/h8500/tm-h8500.h: Update.
871 * config/i386/tm-i386.h: Update.
872 * config/i386/tm-ptx.h: Update.
873 * config/i386/tm-symmetry.h: Update.
874 * config/i960/tm-i960.h: Update.
875 * config/m32r/tm-m32r.h: Update.
876 * config/m68k/tm-delta68.h: Update.
877 * config/m68k/tm-linux.h: Update.
878 * config/m68k/tm-m68k.h: Update.
879 * config/m88k/tm-m88k.h: Update.
880 * config/mcore/tm-mcore.h: Update.
881 * config/mips/tm-mips.h: Update.
882 * config/mn10200/tm-mn10200.h: Update.
883 * config/pa/tm-hppa.h: Update.
884 * config/pa/tm-hppa64.h: Update.
885 * config/sparc/tm-sp64.h: Update.
886 * config/sparc/tm-sparc.h: Update.
887 * config/sparc/tm-sparclet.h: Update.
888 * config/z8k/tm-z8k.h: Update.
889
5179e78f
AC
8902002-06-14 Andrew Cagney <cagney@redhat.com>
891
892 * Makefile.in (i386_linux_tdep_h): Define.
893 (i386_tdep_h, i387_tdep_h): Define.
894 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
895 $(i386_tdep_h) and $(i387_tdep_h).
896 * i386-linux-nat.c: Include "i386-linux-tdep.h".
897
8201327c
MK
8982002-06-14 Mark Kettenis <kettenis@gnu.org>
899
edf393ac
MK
900 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
901 Already covered by the default.
902
896fb97d
MK
903 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
904 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
905 (i386_gdbarch_init): Initialize long_double_format and long_double
906 bit.
907
8201327c
MK
908 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
909 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
910 Move these to ...
911 * config/i386/i386sol2.mh: ... here.
912 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
913 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
914 (SIGCONTEXT_PC_OFFSET): Remove define.
915 (IN_SIGTRAMP): Remove define.
916 * i386-sol2-tdep.c: New file.
917
918 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
919 * config/i386/tm-i386nw.h: Removed.
920
921 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
922 USE_STRUCT_CONVENTION): Remove defines.
923 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
924 (get_longjmp_target): Remove prototype.
925 (IN_SIGTRAMP): Remove define.
926 (i386bsd_in_sigtramp): Remove prototype.
927 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
928 function. Update comment accordingly
929 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
930 (FRAME_SAVED_PC): Remove define.
931 (i386bsd_frame_saved_pc): Remove prototype.
932 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
933 GET_LONGJMP_TARGET): Remove defines.
934 (get_longjmp_target): Remove prototype.
935 (IN_SIGTRAMP): Remove define.
936 (i386bsd_in_sigtramp): Remove prototype.
937 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
938 function. Update comment accordingly
939 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
940 (FRAME_SAVED_PC): Remove define.
941 (i386bsd_frame_saved_pc): Remove prototype.
942 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
943 Remove prototype.
944 (USE_STRUCT_CONVENTION): Remove prototype.
945 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
946 declaration.
947 (_initialize_i386bsd_nat): Revise logic to determine some
948 constants at compile time when compiling a native GDB. Warn if
949 things don't match up with what we expect.
950 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
951 Remove variables.
952 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
953 to use date stored in `struct gdbarch_tdep'.
954 (i386bsd_sigcontext_offset): Remove varaible.
955 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
956 stored in `struct gdbarch_tdep'.
957 (i386bsd_frame_saved_pc): Make static.
958 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
959 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
960 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
961 i386fbsd4_sc_pc_offset): New variables.
962 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
963 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
964 functions.
965 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
966 functions.
967 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
968 Modify the value of i386fbsd_sigtramp_start and
969 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
970 i386fbsd_sigtramp_end.
971 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
972 function.
973
974 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
975 define to i386-linux-tdep.h.
976 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
977 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
978 defines.
979 (i386_linux_register_name, i386_linux_register_byte,
980 i386_linux_register_raw_size): Remove prototypes.
981 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
982 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
983 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
984 TARGET_WRITE_PC): Remove defines.
985 (i386_linux_in_sigtramp, i386_linux_frame_chain,
986 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
987 i386_linux_write_pc): Remove prototypes.
988 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
989 (get_longjmp_target): Remove prototype.
990 * i386-linux-tdep.h: New file.
991 * i386-linux-nat.c: Include "i386-linux-tdep.h".
992 * i386-linux-tdep.c: Include "i386-tdep.h" and
993 "i386-linux-tdep.h".
994 (i386_linux_register_name, i386_linux_register_byte,
995 i386_linux_register_raw_size, i386_linux_in_sigtramp,
996 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
997 Make static.
998 (i386_linux_init_abi): New function.
999 (_initialize_i386_linux_tdep): New function.
1000
1001 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1002 (i386_saved_pc_after_call): Remove prototype.
1003 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1004 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1005 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1006 (i386_register_name, i386_stab_reg_to_regnum,
1007 i386_dwarf_reg_to_regnum): Remove prototypes.
1008 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1009 SIZEOF_SSE_REGS): Remove defines.
1010 (REGISTER_BYTES): Remove define.
1011 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1012 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1013 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1014 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1015 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1016 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1017 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1018 (get_longjmp_target): Remove prototype.
1019 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1020 (sigtramp_saved_pc): Remove define.
1021 (i386v4_sigtramp_saved_pc): Remove prototype.
1022 * config/i386/tm-go32.h (FRAME_CHAIN,
1023 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1024 (i386go32_frame_saved_pc): Remove prototype.
1025 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1026 (get_longjmp_target): Remove prototype.
1027 * i386-tdep.h: Include "osabi.h".
1028 (enum i386_abi): Removed.
1029 (enum struct_return): New enum.
1030 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1031 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1032 sc_pc_offset members.
1033 (i386_gdbarch_register_os_abi): Remove prototype.
1034 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1035 I386_SSE_NUM_REGS): New defines.
1036 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1037 I386_SSE_SIZEOF_REGS): New defines.
1038 (i386_register_name, i386_register_byte, i386_register_raw_size):
1039 New prototypes.
1040 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1041 (i386bsd_sigtramp_saved_pc): New prototype.
1042 * i386-tdep.c: Don't include "elf-bfd.h".
1043 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1044 i386_frame_chain, i386_saved_pc_after_call): Make static.
1045 (i386_frame_saved_pc): Rewrite to call architecture dependent
1046 function to deal with signal handlers. Make static.
1047 (i386go32_frame_saved_pc): Removed.
1048 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1049 Removed.
1050 (i386_get_longjmp_target): New function.
1051 (default_struct_convention, pcc_struct_convention,
1052 reg_struct_convention, valid_conventions, struct_convention): New
1053 variables.
1054 (i386_use_struct_convention): New function.
1055 (i386v4_sigtramp_saved_pc): Renamed to
1056 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1057 (i386_pc_in_sigtramp): New function.
1058 (i386_abi_names): Removed.
1059 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1060 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1061 Removed.
1062 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1063 i386_gdbarch_register_os_abi): Removed.
1064 (struct i386_abi_handler): Removed.
1065 (i386_abi_handler_list): Removed.
1066 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1067 functions.
1068 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1069 i386_nw_init_abi): New functions.
1070 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1071 Use set_gdbarch_xxx() calls instead of relying on macros for a
1072 number of calls.
1073 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1074 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1075 Register the various architecture variants defined in this file.
1076
ad2f7632
DJ
10772002-06-14 Daniel Jacobowitz <drow@mvista.com>
1078
1079 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1080 (struct main_type): Remove arg_types member. Update comments for
1081 struct field.
1082 (TYPE_ARG_TYPES): Remove.
1083 (TYPE_FN_FIELD_ARGS): Update.
1084 (smash_to_method_type): Update prototype.
1085
1086 * c-typeprint.c (cp_type_print_method_args): Take method type
1087 instead of argument list. Use new argument layout. Simplify.
1088 (c_type_print_args): Use new argument layout. Simplify.
1089 (c_type_print_base): Update call to cp_type_print_method_args.
1090 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1091 argument; use die->type instead. Update call to
1092 smash_to_method_type.
1093 (read_structure_scope): Update call to dwarf2_add_member_fn.
1094 * gdbtypes.c (allocate_stub_method): Update comment.
1095 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1096 Use new argument layout.
1097 (check_stub_method): Use new argument layout. Don't count
1098 void as an argument.
1099 (print_arg_types): Update comments. Use new argument layout.
1100 (recursive_dump_type): Don't print arg_types member.
1101 * hpread.c (hpread_read_struct_type): Use new argument layout.
1102 (fixup_class_method_type): Likewise.
1103 (hpread_type_lookup): Likewise.
1104 * stabsread.c (read_type): Update calls to read_args and
1105 smash_to_method_type.
1106 (read_args): Use new argument layout. Simplify.
1107 * valops.c (typecmp): Use new argument layout. Update parameters
1108 and comments. Simplify.
1109 (hand_function_call): Use new argument layout.
1110 (search_struct_method): Update call to typecmp.
1111 (find_overload_match): Use new argument layout.
1112
6da02953
DJ
11132002-06-13 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * NEWS: Mention multithreaded debug support for gdbserver.
1116
519b2366
DJ
11172002-06-13 Daniel Jacobowitz <drow@mvista.com>
1118
1119 * MAINTAINERS: Mention NEWS.
1120
a7f48742
DJ
11212002-06-13 Daniel Jacobowitz <drow@mvista.com>
1122
1123 * gdbserver/regcache.c: Add comment.
1124
6c0d6680
DJ
11252002-06-13 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1128 (struct mips_objfile_private, compare_pdr_entries): New.
1129 (non_heuristic_proc_desc): Read the ".pdr" section if it
1130 is present.
1131
6529d2dd
AC
11322002-06-12 Andrew Cagney <ac131313@redhat.com>
1133
1134 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1135 (arm_debug): New static variable.
1136 (_initialize_arm_tdep): Add ``set debug arm'' command.
1137
26216b98
AC
11382002-06-12 Andrew Cagney <ac131313@redhat.com>
1139
1140 * Makefile.in (sim_arm_h): Define.
1141 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1142 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1143 (arm_register_sim_regno): New function, map an internal REGNUM
1144 onto a simulator register number.
1145 (arm_gdbarch_init): Set register_sim_regno.
1146
814b3ba0
AH
11472002-06-09 Aldy Hernandez <aldyh@redhat.com>
1148
1149 * MAINTAINERS: Add self.
1150
475b0867
JB
11512002-06-11 Jim Blandy <jimb@redhat.com>
1152
919d772c
JB
1153 * source.c (source_info): Mention whether the symtab has
1154 information about preprocessor macros.
1155
475b0867
JB
1156 Call the command `info macro', not `show macro'.
1157 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1158 Fix error message.
1159 (_initialize_macrocmd): Register `info_macro_command' in
1160 `infolist', not `showlist'.
1161
9e364162
DJ
11622002-06-11 Daniel Jacobowitz <drow@mvista.com>
1163
1164 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1165 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1166 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1167 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1168 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1169 unconditionally.
1170 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1171 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1172 (_initialize_mips_tdep): Remove dead code.
1173 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1174 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1175 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1176 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1177 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1178 MIPS_LAST_FP_ARG_REGNUM): Remove.
1179
11802002-06-11 Daniel Jacobowitz <drow@mvista.com>
1181
1182 * gdbserver/thread-db.c: New file.
1183 * gdbserver/proc-service.c: New file.
1184 * gdbserver/acinclude.m4: New file.
1185 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1186 proc-service.o, and thread-db.o.
1187 (linux-low.o): Add USE_THREAD_DB.
1188 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1189 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1190 * gdbserver/aclocal.m4: Regenerated.
1191 * gdbserver/config.in: Regenerated.
1192 * gdbserver/configure: Regenerated.
1193 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1194 thread_db.h, and linux/elf.h headrs.
1195 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1196 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1197 Check for -lthread_db and thread support.
1198 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1199 PowerPC, and SuperH.
1200 * gdbserver/i387-fp.c: Constify arguments.
1201 * gdbserver/i387-fp.h: Likewise.
1202 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1203 `struct inferior_info'. Remove PID member. Use generic inferior
1204 list header. All uses updated.
1205 (inferiors, signal_pid): Removed.
1206 (all_threads): New variable.
1207 (get_thread): Define.
1208 (add_inferior_to_list): New function.
1209 (for_each_inferior): New function.
1210 (change_inferior_id): New function.
1211 (add_inferior): Removed.
1212 (remove_inferior): New function.
1213 (add_thread): New function.
1214 (free_one_thread): New function.
1215 (remove_thread): New function.
1216 (clear_inferiors): Use for_each_inferior and free_one_thread.
1217 (find_inferior): New function.
1218 (find_inferior_id): New function.
1219 (inferior_target_data): Update argument type.
1220 (set_inferior_target_data): Likewise.
1221 (inferior_regcache_data): Likewise.
1222 (set_inferior_regcache_data): Likewise.
1223 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1224 (all_processes, stopping_threads, using_thrads)
1225 (struct pending_signals, debug_threads, pid_of): New.
1226 (inferior_pid): Replace with macro.
1227 (struct inferior_linux_data): Remove.
1228 (get_stop_pc, add_process): New functions.
1229 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1230 Use add_process and add_thread.
1231 (linux_attach_lwp): New function, based on old linux_attach. Use
1232 add_process and add_thread. Set stop_expected for new threads.
1233 (linux_attach): New function.
1234 (linux_kill_one_process): New function.
1235 (linux_kill): Kill all LWPs.
1236 (linux_thread_alive): Use find_inferior_id.
1237 (check_removed_breakpoints, status_pending_p): New functions.
1238 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1239 Update. Use WNOHANG. Wait for cloned processes also. Update process
1240 struct for the found process.
1241 (linux_wait_for_event): New function.
1242 (linux_wait): Use it. Support LWPs.
1243 (send_sigstop, wait_for_sigstop, stop_all_processes)
1244 (linux_resume_one_process, linux_continue_one_process): New functions.
1245 (linux_resume): Support LWPs.
1246 (REGISTER_RAW_SIZE): Remove.
1247 (fetch_register): Use register_size instead. Call supply_register.
1248 (usr_store_inferior_registers): Likewise. Call collect_register.
1249 Fix recursive case.
1250 (regsets_fetch_inferior_registers): Improve error message.
1251 (regsets_store_inferior_registers): Add debugging.
1252 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1253 (unstopped_p, linux_signal_pid): New functions.
1254 (linux_target_ops): Add linux_signal_pid.
1255 (linux_init_signals): New function.
1256 (initialize_low): Call it. Initialize using_threads.
1257 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1258 flag.
1259 (get_regcache): Fetch registers lazily. Add fetch argument
1260 and update all callers.
1261 (regcache_invalidate_one, regcache_invalidate): New
1262 functions.
1263 (new_register_cache): Renamed from create_register_cache.
1264 Return the new regcache.
1265 (free_register_cache): Change argument to a void *.
1266 (registers_to_string, registers_from_string): Call get_regcache
1267 with fetch flag set.
1268 (register_data): Make static. Pass fetch flag to get_regcache.
1269 (supply_register): Call get_regcache with fetch flag clear.
1270 (collect_register): Call get_regcache with fetch flag set.
1271 (collect_register_as_string): New function.
1272 * gdbserver/regcache.h: Update.
1273 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1274 stderr.
1275 Handle input interrupts while waiting for an ACK.
1276 (input_interrupt): Use signal_pid method.
1277 (getpkt): Flush after debug output and use stderr.
1278 (outreg): Use collect_register_as_string.
1279 (new_thread_notify, dead_thread_notify): New functions.
1280 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1281 and general_thread.
1282 (look_up_one_symbol): Flush after debug output.
1283 * gdbserver/server.c (step_thread, server_waiting): New variables.
1284 (start_inferior): Don't use signal_pid. Update call to mywait.
1285 (attach_inferior): Update call to mywait.
1286 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1287 (main): Don't fetch/store registers explicitly. Use
1288 set_desired_inferior. Support proposed ``Hs'' packet. Update
1289 calls to mywait.
1290 * gdbserver/server.h: Update.
1291 (struct inferior_list, struct_inferior_list_entry): New.
1292 * gdbserver/target.c (set_desired_inferior): New.
1293 (write_inferior_memory): Constify.
1294 (mywait): New function.
1295 * gdbserver/target.h: Update.
1296 (struct target_ops): New signal_pid method.
1297 (mywait): Removed macro, added prototype.
1298
1299 * gdbserver/linux-low.h (regset_func): Removed.
1300 (regset_fill_func, regset_store_func): New.
1301 (enum regset_type): New.
1302 (struct regset_info): Add type field. Use new operation types.
1303 (struct linux_target_ops): stop_pc renamed to get_pc.
1304 Add decr_pc_after_break and breakpoint_at.
1305 (get_process, get_thread_proess, get_process_thread)
1306 (strut process_info, all_processes, linux_attach_lwp)
1307 (thread_db_init): New.
1308
1309 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1310 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1311 (the_low_target): Add new members.
1312 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1313 (i386_store_fpxregset): Constify.
1314 (target_regsets): Add new kind identifier.
1315 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1316 (i386_set_pc): Add debugging.
1317 (i386_breakpoint_at): New function.
1318 (the_low_target): Add new members.
1319 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1320 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1321 (mips_breakpoint_at): New.
1322 (the_low_target): Add new members.
1323 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1324 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1325 (the_low_target): Add new members.
1326 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1327 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1328 (the_low_target): Add new members.
1329 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1330 identifier.
1331
23aa4c72
ML
13322002-06-11 Michal Ludvig <mludvig@suse.cz>
1333
1334 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1335 (unwind_tmp_obstack_free, parse_frame_info)
1336 (update_context, cfi_read_fp, cfi_write_fp)
1337 (cfi_frame_chain, cfi_init_extra_frame_info)
1338 (cfi_virtual_frame_pointer): Use the above function.
264d1763 1339 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 1340
70eb15a4
CV
13412002-06-11 Corinna Vinschen <vinschen@redhat.com>
1342
1343 * v850-tdep.c (v850_type_is_scalar): New function.
1344 (v850_use_struct_convention): Match current gcc implementation
1345 as close as possible.
1346 (v850_push_arguments): Fix stack_offset handling. Don't write
1347 struct_addr into register. This is done by v850_store_struct_return.
1348 (v850_extract_return_value): Care for structs.
1349 (v850_store_return_value): Ditto.
1350 (v850_store_struct_return): Actually write address.
1351
482a4d06
ML
13522002-06-11 Michal Ludvig <mludvig@suse.cz>
1353
1354 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1355 without debug information too.
1356
d855c300
AC
13572002-06-10 Andrew Cagney <ac131313@redhat.com>
1358
1359 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1360 Make multi-arch pure.
1361 * gdbarch.h, gdbarch.c: Re-generate.
1362 * arm-tdep.c (arm_print_float_info): Update.
1363 * arch-utils.h (default_print_float_info): Update.
1364 * arch-utils.c (default_print_float_info): Update.
1365 * infcmd.c (float_info): Update call.
1366
dd12a101
AC
13672002-06-10 Andrew Cagney <ac131313@redhat.com>
1368
1369 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1370 the front of the initialize list.
1371
101dcfbe
AC
13722002-06-10 Andrew Cagney <ac131313@redhat.com>
1373
1374 * infrun.c (struct inferior_status): Replace fields
1375 selected_frame_address and selected_level with field
1376 selected_frame_id.
1377 (save_inferior_status): Update. Use get_frame_id.
1378 (struct restore_selected_frame_args): Delete.
1379 (restore_selected_frame): Update. Use frame_find_by_id.
1380 (restore_inferior_status): Update.
1381
1382 * breakpoint.h (struct breakpoint): Change type of
1383 watchpoint_frame to frame_id.
1384 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1385 call to get_current_frame.
1386 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1387 get_current_frame.
1388 (watchpoint_check): Use frame_find_by_id.
1389
1390 * frame.h (record_selected_frame): Delete declaration.
1391 * stack.c (record_selected_frame): Delete function.
1392
1393 * frame.h (struct frame_id): Define.
1394 (get_frame_id): Declare.
1395 (frame_find_by_id): Declare.
1396 * frame.c (frame_find_by_id): New function.
1397 (get_frame_id): New function.
1398
304270b6
AV
13992002-06-10 Andrey Volkov <avolkov@transas.com>
1400
1401 * ser-e7kpc.c: Fix duplicated define and call of
1402 _initialize_ser_e7000pc
1403
2f2cf184
DJ
14042002-06-09 Daniel Jacobowitz <drow@mvista.com>
1405
1406 * signals/signals.c (target_signal_from_host): Fix #ifdef
1407 SIGRTMIN case.
1408 (do_target_signal_to_host): Likewise.
1409
caaa3122
DJ
14102002-06-09 Daniel Jacobowitz <drow@mvista.com>
1411
1412 * mips-tdep.c (mips_find_abi_section): New function.
1413 (mips_gdbarch_init): Call it.
1414
6ac5df3a
MK
14152002-06-09 Mark Kettenis <kettenis@gnu.org>
1416
1417 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1418 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1419 after Andrew's 2002-06-08 gdbarch change.
1420
82ea117a
MK
14212002-06-09 Mark Kettenis <kettenis@gnu.org>
1422
1423 * i386-linux-nat.c (suppy_gregset): Don't supply
1424 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1425 register cache.
1426 (fill_gregset): Don't fetch it under the same circumstances.
1427
3c25f8c7
AC
14282002-06-09 Andrew Cagney <cagney@redhat.com>
1429
1430 * Makefile.in (callback_h): Define.
1431 (remote_sim_h): Update path to remote-sim.h.
1432 (remote-rdp.o): Add $(callback_h).
1433 (remote-sim.o): Use $(callback_h).
1434 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1435 * remote-rdp.c: Include "gdb/callback.h".
1436
1029b7fa
MK
14372002-06-09 Mark Kettenis <kettenis@gnu.org>
1438
1439 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1440 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1441
616675d3
AC
14422002-06-08 Andrew Cagney <ac131313@redhat.com>
1443
a3efda28
AC
1444 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1445 * rdi-share/serpardr.c: Ditto.
1446 * rdi-share/unixcomm.c: Ditto.
1447 * rdi-share/serdrv.c: Ditto.
1448 * rdi-share/hostchan.h: Ditto.
1449 * rdi-share/hostchan.c: Ditto.
1450 * rdi-share/host.h: Ditto.
1451 * rdi-share/devsw.c: Ditto.
1452
c5f10366
AC
1453 * objfiles.h: Change type of obj_private to void pointer.
1454 * pa64solib.c: Update copyright. Don't include "assert.h", use
1455 strcmp instead of STREQ, use LONGEST, do not use PTR
1456 * somsolib.c: Ditto.
1457
616675d3
AC
1458 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1459 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1460 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1461
e4b415d9
AC
14622002-06-08 Andrew Cagney <ac131313@redhat.com>
1463
1464 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1465 (default_get_saved_register): Delete function.
1466 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1467 generic_unwind_get_saved_register.
1468 * gdbarch.h, gdbarch.c: Re-generate.
1469
ca0d0b52
AC
14702002-06-08 Andrew Cagney <ac131313@redhat.com>
1471
1472 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1473 generic_func_frame_chain_valid.
1474 * gdbarch.h, gdbarch.c: Re-generate.
1475 * blockframe.c (generic_func_frame_chain_valid): Only check
1476 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1477 passing FP to PC_IN_CALL_DUMMY.
1478 Fix PR gdb/360.
1479
76860b5f
AC
14802002-06-08 Andrew Cagney <ac131313@redhat.com>
1481
1482 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1483 (register_gdbarch_data): Initialize init_p.
1484 (gdbarch_data): Initialize data pointer using the init function.
1485 (init_gdbarch_data): Delete function.
1486 (gdbarch_update_p): Update.
1487 (initialize_non_multiarch): Update.
1488 (struct gdbarch): Add field initialized_p.
1489 * gdbarch.h, gdbarch.c: Re-generate.
1490
8dda9770
ML
14912002-06-07 Michal Ludvig <mludvig@suse.cz>
1492
1493 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1494 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1495 better do the things actually here.
1496 * x86-64-tdep.c (x86_64_register_name2nr): New.
1497 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1498 (x86_64_gdbarch_init): Respect the above change.
1499 * x86-64-tdep.h (x86_64_register_name2nr)
1500 (x86_64_register_nr2name): Add prototypes.
1501 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1502
3d79a47c
MS
15032002-06-06 Michael Snyder <msnyder@redhat.com>
1504
7bd91a28
MS
1505 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1506 Delete extra braces and re-indent.
1507 (d10v_store_return_value): Char return values
3d79a47c
MS
1508 must be shifted over by one byte in R0.
1509 (d10v_extract_return_value): Delete extra braces, re-indent.
1510
095a4c96
EZ
15112002-06-06 Elena Zannoni <ezannoni@redhat.com>
1512
1513 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1514 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1515 (d10v_integer_to_address): Rewrite.
1516 (d10v_frame_init_saved_regs): When reading fp and sp registers use
1517 the d10v specific functions which take care of converting to the
1518 correct space.
1519
e8a77ca4
EZ
15202002-06-06 Elena Zannoni <ezannoni@redhat.com>
1521
1522 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1523 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1524
4f2e4a4f
AC
15252002-06-02 Andrew Cagney <ac131313@redhat.com>
1526
1527 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1528 includes.
1529 * config/tm-linux.h: Ditto.
1530 * config/alpha/tm-alphalinux.h: Ditto.
1531 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1532 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1533 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1534 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1535 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1536 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1537 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1538 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1539 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1540 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1541 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1542 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1543 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1544 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1545 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1546 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1547 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1548 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1549 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1550 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1551 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1552 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1553 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1554 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1555 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1556 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1557 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1558 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1559 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1560 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1561 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1562 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1563 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1564 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1565 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1566 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1567 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1568
ae2ab2ce
AS
15692002-05-04 Aidan Skinner <aidan@velvet.net>
1570
1571 * ada-exp.tab.c: New file
1572 * ada-exp.y: New file
1573 * ada-lang.c: New file
1574 * ada-lang.h: New file
1575 * ada-lex.c: New file
1576 * ada-lex.l: New file
1577 * ada-tasks.c: New file
1578 * ada-typeprint.c: New file
1579 * ada-valprint.c: New file
1580
0ddd0135
JT
15812002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1582
1583 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1584 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1585
750fbacc
JT
15862002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1587
1588 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1589 insetead of ppc-linux-tdep.o.
1590 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1591 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1592
df94e18a
AC
15932002-06-02 Andrew Cagney <ac131313@redhat.com>
1594
1595 2002-05-07 Christian Groessler <chris@groessler.org>
1596 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1597 bit register contents for little endian hosts.
1598
1a38ab75
AC
15992002-06-01 Andrew Cagney <ac131313@redhat.com>
1600
1601 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1602 any maintainer.
1603
8b1632ac
AC
16042002-06-01 Andrew Cagney <ac131313@redhat.com>
1605
1606 * gdbarch.h: Regenerate.
1607
627054c8
AC
16082002-06-01 Andrew Cagney <ac131313@redhat.com>
1609
1610 * MAINTAINERS: Add everyone to write-after-approval list.
1611
4f460812
AC
16122002-06-01 Andrew Cagney <ac131313@redhat.com>
1613
1614 * stack.c (frame_info): Use frame_register_unwind instead of
1615 saved_regs. Mention when the SP is on the stack or in a register.
1616
1617 * frame.h (frame_register_unwind_ftype): Define. Document.
1618 (struct frame_info): Add field register_unwind and
1619 register_unwind_cache.
1620 (frame_register_unwind): Declare.
1621 (generic_unwind_get_saved_register): Declare.
1622
1623 * frame.c (frame_register_unwind): New function.
1624 (generic_unwind_get_saved_register): New function.
1625
1626 * blockframe.c (generic_call_dummy_register_unwind): New function.
1627 (frame_saved_regs_register_unwind): New function.
1628 (set_unwind_by_pc): New function.
1629 (create_new_frame): New function.
1630 (get_prev_frame): New function.
1631
de888f76
AC
16322002-05-30 Andrew Cagney <ac131313@redhat.com>
1633
1634 * a29k-share/: Delete directory.
1635 * remote-vx29k.c: Delete file.
1636
2f2c3626
JT
16372002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1638
1639 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1640 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1641
9ce5c36a
JT
16422002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1643
1644 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1645 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1646 (sparc64nbsd-nat.o)
1647 (sparcnbsd-nat.o)
1648 (sparcnbsd-tdep.o): New dependency lists.
1649 * NEWS: Note new UltraSPARC NetBSD native configuration.
1650 * configure.host (sparc64-*-netbsd*): New host.
1651 * configure.tgt (sparc-*-netbsdelf*)
1652 (sparc-*-netbsd*): Set gdb_target to nbsd.
1653 (sparc64-*-netbsd*): New target.
1654 * sparc64nbsd-nat.c: New file.
1655 * sparcnbsd-nat.c: New file.
1656 * sparcnbsd-tdep.c: New file.
1657 * sparcnbsd-tdep.h: New file.
1658 * config/sparc/nbsd.mt: New file.
1659 * config/sparc/nbsd64.mh: New file.
1660 * config/sparc/nbsd64.mt: New file.
1661 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1662 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1663 (HOST_IPC): Remove.
1664 * config/sparc/nbsdaout.mt: Remove.
1665 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1666 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1667 (HOST_IPC): Remove.
1668 * config/sparc/nbsdelf.mt: Remove.
1669 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
1670 sparc-nat.c compatiblity defines.
1671 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
1672 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1673 * config/sparc/tm-nbsd64.h: New file.
1674 * config/sparc/tm-nbsdaout.h: Remove.
1675 * config/sparc/xm-nbsd.h: Remove.
1676
ef3cf062
JT
16772002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1678
1679 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1680 * sparc-tdep.c: Include osabi.h.
1681 (gdbarch_tdep): Add osabi member.
1682 (_initialize_sparc_tdep): Use gdbarch_register.
1683 (sparc_gdbarch_init): Use generic OS ABI framework.
1684 (sparc_dump_tdep): New function.
1685
ee8ff470
KB
16862002-05-30 Kevin Buettner <kevinb@redhat.com>
1687
1688 * corefile.c (do_captured_read_memory_integer): Return non-zero
1689 result.
1690 (safe_read_memory_integer): Copy result of memory read when
1691 status is non-zero. Also, add comments.
1692
7b112f9c
JT
16932002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
1694
1695 * Makefile.in (ppc_tdep_h): Define.
1696 (ppc-linux-nat.o)
1697 (ppc-linux-tdep.o)
1698 (rs6000-tdep.o): Use $(ppc_tdep_h).
1699 (ppc-sysv-tdep.o)
1700 (ppcnbsd-nat.o)
1701 (ppcnbsd-tdep.o): New dependency lists.
1702 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
1703 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1704 (ppc_linux_init_abi): New functions.
7b112f9c
JT
1705 (ppc_sysv_abi_broken_use_struct_convention)
1706 (ppc_sysv_abi_use_struct_convention)
1707 (ppc_sysv_abi_push_arguments): Move to...
1708 * ppc-sysv-tdep.c: ...here.
1709 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1710 * rs6000-tdep.c (process_note_abi_tag_sections)
1711 (get_elfosabi): Remove.
1712 (rs6000_gdbarch_init): Use generic OS ABI framework.
1713 (rs6000_dump_tdep): New function.
1714 (_initialize_rs6000_tdep): Use gdbarch_register.
1715 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1716 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1717 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1718 of ppc-linux-tdep.o.
1719 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1720 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1721 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1722 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1723 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1724 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1725
480dd42a
JB
17262002-05-29 Jim Blandy <jimb@redhat.com>
1727
1728 * macroscope.c (default_macro_scope): Put `void' in empty argument
1729 list.
1730
4182591f
AC
17312002-05-29 Andrew Cagney <ac131313@redhat.com>
1732
1733 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1734 * arch-utils.c: Include "sim-regno.h".
1735 * gdbarch.sh: Don't include "sim-regno.h".
1736 * gdbarch.h, gdbarch.c: Regenerate.
1737 * sim-regno.h (legacy_register_sim_regno): Move declaration from
1738 here.
1739 * arch-utils.h (legacy_register_sim_regno): To here.
1740 * remote-sim.c (legacy_register_sim_regno): Move function from
1741 here.
1742 * arch-utils.c (legacy_register_sim_regno): To here.
1743
8238d0bf
AC
17442002-05-28 Andrew Cagney <ac131313@redhat.com>
1745
1746 * sim-regno.h: New file.
1747 * Makefile.in (sim_regno_h): Define.
1748 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1749 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1750 (legacy_register_sim_regno): New function.
1751 (one2one_register_sim_regno): New function.
1752 (gdbsim_fetch_register): Rewrite.
1753 (gdbsim_store_register): Only store a register when
1754 REGISTER_SIM_REGNO is valid.
1755 * d10v-tdep.c: Include "sim-regno.h".
1756 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1757 (d10v_ts3_register_sim_regno): Ditto.
1758 * gdbarch.sh: Include "sim-regno.h".
1759 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1760 * gdbarch.h, gdbarch.c: Regenerate.
1761 * arch-utils.h (default_register_sim_regno): Delete declaration.
1762 * arch-utils.c (default_register_sim_regno): Delete function.
1763
485721b1
JT
17642002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
1765
1766 * ppcnbsd-nat.c: Rewrite.
1767 * ppcnbsd-tdep.c: New file.
1768 * ppcnbsd-tdep.h: New file.
1769 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1770 solib.o, and solib-svr4.o.
1771 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1772 nbsd-tdep.o, and corelow.o.
1773
697f244d
AC
17742002-05-28 Andrew Cagney <ac131313@redhat.com>
1775
1776 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1777 `tr' and `sed'. Mention that `broken' targets are not expected to
1778 build.
1779
f08caad1 17802002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
1781
1782 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1783 Let PC point right after the prologue before looking up symbols.
1784
3139facc
MH
17852002-05-27 Martin M. Hunt <hunt@redhat.com>
1786
1787 * i386-tdep.c (i386_register_virtual_type): Return
1788 builtin_type_vec128i for SSE registers.
1789
1790 * gdbtypes.h (builtin_type_vec128i): Declare.
1791
1792 * gdbtypes.c (build_builtin_type_vec128i): New function.
1793 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1794 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1795 (build_gdbtypes): Initialize new builtin vector types.
1796 (_initialize_gdbtypes): Register new vector types with gdbarch.
1797
6e3ba3b8
JT
17982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1799
1800 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1801 since it has been multi-arch'd.
1802 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1803 Move Alpha and VAX multi-arch news entries to same section
1804 as other multi-arch news.
1805
93d5585d
JT
18062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1807
1808 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1809 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1810 static. Rename some register numbers to put them in ns32k-tdep
1811 private namespace.
1812 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1813 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1814 functions.
1815 (_initialize_ns32k_tdep): Use gdbarch_register.
1816 * ns32k-tdep.h: New file.
1817 * ns32knbsd-tdep.c: New file.
1818 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1819 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1820 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1821 REGISTER_BYTES, REGISTER_BYTE): Remove.
1822 * config/ns32k/tm-ns32k.h: New file.
1823 * config/ns32k/tm-umax.h: Remove.
1824
efb2c70e
JT
18252002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1826
1827 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1828 ns32k_store_struct_return, ns32k_extract_return_value,
1829 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1830 functions.
1831 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1832 ns32k_saved_pc_after_call.
1833 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1834 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1835 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1836 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1837 ns32k_extract_struct_value_address.
1838
7bcc927b
JT
18392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1840
1841 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1842 ns32k_fix_call_dummy): New.
1843 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1844 ns32k_call_dummy_words.
1845 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1846 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1847 CALL_DUMMY_NARGS): Remove.
1848 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1849
78f9d765
JT
18502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1851
1852 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1853 ns32k_frame_saved_pc, ns32k_frame_args_address,
1854 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1855 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1856 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1857 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1858 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1859 (BREAKPOINT): Remove..
1860 (FRAME_CHAIN): Define as ns32k_frame_chain.
1861 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1862 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1863 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1864 (FRAME_FIND_SAVED_REGS): Remove.
1865 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1866 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1867 (POP_FRAME): Define as ns32k_pop_frame.
1868
f2c762e0
JT
18692002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1870
1871 * ns32k-tdep.c (ns32k_register_byte_32082,
1872 ns32k_register_byte_32382, ns32k_register_raw_size,
1873 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1874 functions.
1875 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1876 ns32k_register_byte_32382.
1877 * config/ns32k/tm-umax.h: Update copyright years.
1878 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1879 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1880 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1881 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1882 (ns32k_get_enter_addr): Fix prototype.
1883
af137673
JT
18842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1885
1886 * ns32k-tdep.c: Update copyright years.
1887 (ns32k_register_name_32082): New function.
1888 (ns32k_register_name_32382): Ditto.
1889 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1890 (REGISTER_NAME): Define as ns32k_register_name_32382.
1891 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1892 (REGISTER_NAME): Define as ns32k_register_name_32082.
1893
a8bc7b56
JB
18942002-05-24 Jim Blandy <jimb@redhat.com>
1895
1896 * dwarf2read.c (free_line_header): Use xfree, not free.
1897
83a45910
JT
18982002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1899
1900 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1901 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1902
0db71247
AC
19032002-05-23 Andrew Cagney <ac131313@redhat.com>
1904
1905 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1906
b9e5e4dd
AC
19072002-05-23 Andrew Cagney <ac131313@redhat.com>
1908
1909 From Ross Alexander at NEC Europe:
1910 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1911
de530e84
MS
19122002-05-23 Michael Snyder <msnyder@redhat.com>
1913
1914 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1915 for input, rather than parse_and_eval_address.
1916
b91b96f4
AC
19172002-05-23 Andrew Cagney <ac131313@redhat.com>
1918
1919 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1920 * Makefile.in (sim_d10v_h): Update definition.
1921
8b279e7a
AC
19222002-05-24 Andrew Cagney <cagney@redhat.com>
1923
1924 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1925 change `2002-05-22 Michael Snyder' below.
1926 (d10v_push_arguments): Ditto.
1927 (d10v_extract_return_value): Ditto.
1928
0a3d0425
JB
19292002-05-23 Jim Blandy <jimb@redhat.com>
1930
1931 * macrotab.c (check_for_redefinition): Don't complain if the new
1932 definition is the same as the previous one. Take more arguments
1933 to allow the comparison.
1934 (macro_define_object, macro_define_function): Pass more arguments
1935 to check_for_redefinition.
1936
78eac43e
MS
19372002-05-22 Michael Snyder <msnyder@redhat.com>
1938
1939 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1940 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1941 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1942 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1943 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1944 Add a temp variable to save a call (and a memory read).
1945 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1946 if possible (so that PC_IN_CALL_DUMMY will work).
1947
9bc1edb8
CV
19482002-05-22 Corinna Vinschen <vinschen@redhat.com>
1949
1950 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1951
005ef3d2
ML
19522002-05-22 Michal Ludvig <mludvig@suse.cz>
1953
1954 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1955 fde->cie_ptr.
1956 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1957 (dwarf2_build_frame_info): Add offset to fde->initial_location
1958 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
1959 (execute_stack_op): Change type of 'result' from ULONGEST to
1960 CORE_ADDR.
005ef3d2 1961
fcf4f891
JT
19622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1963
1964 * config/alpha/tm-nbsd.h: Include solib.h.
1965
cfef91e4
JT
19662002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1967
1968 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1969 assumptions about the host's byte order.
1970
9964235a
JT
19712002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1972
1973 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1974 to dependency list.
1975 * alphanbsd-tdep.c: Include solib-svr4.h.
1976 * shnbsd-tdep.c: Ditto.
1977
9eeef8ef
JT
19782002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1979
1980 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1981 nbsd-tdep.h to dependency list.
1982 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1983 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1984 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1985 nbsdaout.mh and nbsdelf.mh consistently.
1986 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1987 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1988 nbsdaout.mt and nbsdelf.mh consistently.
1989 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1990 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1991 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1992 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1993 a.out shared library stuff from here...
1994 * config/nm-nbsdaout.h: ...to here.
1995 * config/tm-nbsd.h: Remove.
1996 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1997 * config/arm/nbsd.mh: Remove.
1998 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1999 nbsd-tdep.o.
2000 * config/arm/nbsdaout.mh: New file.
2001 * config/arm/nbsdelf.mh: New file.
2002 * config/arm/nm-nbsdaout.h: New file.
2003 * config/i386/nbsd.mh: Remove.
2004 * config/i386/nbsd.mt: Remove.
2005 * config/i386/nbsdaout.mh: New file.
2006 * config/i386/nbsdaout.mt: New file.
2007 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2008 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2009 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2010 i386_register_u_addr): Remove.
2011 * config/i386/nm-nbsdaout.h: New file.
2012 * config/i386/nm-nbsdelf.h: Remove.
2013 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2014 (USE_STRUCT_CONVENTION): Remove.
2015 * config/i386/tm-nbsdaout.h: New file.
2016 * config/i386/tm-nbsdelf.h: Remove.
2017 * config/m68k/nbsd.mh: Remove.
2018 * config/m68k/nbsd.mt: Remove.
2019 * config/m68k/nbsdaout.mh: New file.
2020 * config/m68k/nbsdaout.mt: New file.
2021 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2022 * config/m68k/nm-nbsdaout.h: New file.
2023 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2024 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2025 * config/ns32k/nbsd.mh: Remove.
2026 * config/ns32k/nbsd.mt: Remove.
2027 * config/ns32k/nbsdaout.mh: New file.
2028 * config/ns32k/nbsdaout.mt: New file.
2029 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2030 * config/ns32k/nm-nbsdaout.h: New file.
2031 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2032 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2033 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2034 (SVR4_SHARED_LIBS): Remove.
2035 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2036 * config/sparc/nbsd.mh: Remove.
2037 * config/sparc/nbsd.mt: Remove.
2038 * config/sparc/nbsdaout.mh: New file.
2039 * config/sparc/nbsdaout.mt: New file.
2040 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2041 * config/sparc/nbsdelf.mt: New file.
2042 * config/sparc/nm-nbsdaout.h: New file.
2043 * config/sparc/nm-nbsdelf.h: Remove.
2044 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2045 * config/sparc/tm-nbsdaout.h: New file.
2046
257ce470
JT
20472002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2048
2049 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2050 mipsnbsd-tdep.c
2051 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2052
76a6d5fe
JT
20532002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2054
2055 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2056 shnbsd-nat.c.
2057 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2058
45888261
JT
20592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2060
2061 * NEWS: Note new MIPS NetBSD native configuration.
2062 * configure.host (mips*-*-netbsd*): New host.
2063 * configure.tgt (mips*-*-netbsd*): New target.
2064 * mipsnbsd-nat.c: New file.
2065 * mipsnbsd-tdep.c: New file.
2066 * mipsnbsd-tdep.h: New file.
2067 * config/mips/nbsd.mh: New file.
2068 * config/mips/nbsd.mt: New file.
2069 * config/mips/nm-nbsd.h: New file.
2070 * config/mips/tm-nbsd.h: New file.
2071
70f80edf
JT
20722002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2073
2074 * Makefile.in (SFILES): Add osabi.c.
2075 (COMMON_OBS): Add osabi.o.
2076 (osabi.o): New dependency list.
2077 * osabi.c: New file.
2078 * osabi.h: New file.
2079 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2080
2081 * Makefile.in (alpha_tdep_h): Define and use instead of
2082 alpha-tdep.h.
2083 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2084 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2085 Remove.
2086 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2087 * alpha-tdep.h: Include osabi.h.
2088 (alpha_abi): Remove.
2089 (gdbarch_tdep): Use generic OS ABI framework.
2090 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2091 gdbarch_register_osabi.
2092 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2093 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2094 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2095
2096 * Makefile.in (sh_tdep_h): Add osabi.h.
2097 * sh-tdep.h (sh_osabi): Remove.
2098 (gdbarch_tdep): Use generic OS ABI framework.
2099 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2100 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2101 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2102 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2103
2104 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2105 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2106 gdbarch_register_osabi.
2107 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2108 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2109 (get_elfosabi): Rename to...
2110 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2111 ABI framework support routines.
2112 (arm_gdbarch_init): Use generic OS ABI framework.
2113 (arm_dump_tdep): Likewise.
2114 (_initialize_arm_tdep): Likewise.
2115 * arm-tdep.h: Include osabi.h.
2116 (arm_abi): Remove.
2117 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2118 osabi member.
2119 (arm_gdbarch_register_os_abi): Remove prototype.
2120 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2121 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2122
2123 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2124 * mips-tdep.c: Include osabi.h.
2125 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2126 OS ABI framework.
2127
d194345b
KH
21282002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2129
2130 * h8300-tdep.c: Fix formatting.
2131
70c6b0d1
EZ
21322002-05-20 Elena Zannoni <ezannoni@redhat.com>
2133
2134 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2135 printing vector registers.
2136
165b8e33
AC
21372002-05-19 Andrew Cagney <ac131313@redhat.com>
2138
2139 From Fernando Nasser:
2140 * remote.c (remote_async_open_1): Re-throw the exception when the
2141 connection fails.
2142 (remote_cisco_open): Ditto.
2143 (remote_open_1): Ditto.
2144
36918e70
AC
21452002-05-19 Andrew Cagney <ac131313@redhat.com>
2146
2147 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2148 (remote_start_remote): Add uiout parameter. Pass through to
2149 remote_start_remote_dummy.
2150 (remote_open_1): Use catch_exception instead of catch_errors.
2151 (remote_async_open_1): Ditto.
2152 (remote_cisco_open): Ditto.
2153
ae44c0c4
AC
21542002-05-19 Andrew Cagney <ac131313@redhat.com>
2155
2156 * remote.c (remote_start_remote): Replace PTR with void pointer.
2157 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2158 static.
2159
8efe637d
AC
21602002-05-18 Andrew Cagney <ac131313@redhat.com>
2161
2162 * gdb_indent.sh: Allow the script to be run in the sim directory.
2163
2f1b5984
MK
21642002-05-18 Mark Kettenis <kettenis@gnu.org>
2165
f0f625e2
MK
2166 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2167 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2168
2f1b5984
MK
2169 * corelow.c (core_open): Only call set_gdbarch_from_file if
2170 exec_bfd is NULL.
2171
fc974602
AV
21722002-05-17 Andrey Volkov <avolkov@transas.com>
2173
2174 * h8300-tdep.c: Add support of EXR register
2175 * config/h8300/tm-h8300.h: Ditto.
2176
906709f4
AV
21772002-05-17 Andrey Volkov <avolkov@transas.com>
2178
2179 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2180
6e591d68
AV
21812002-05-17 Andrey Volkov <avolkov@transas.com>
2182
2183 * h8300-tdep.c: Change literal regnums to REGNO.
2184
84f0252a
JB
21852002-05-17 Jim Blandy <jimb@redhat.com>
2186
e0e9281e
JB
2187 * NEWS: Note addition of macro support.
2188
84f0252a
JB
2189 Expand preprocessor macros in C expressions.
2190 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2191 (scan_macro_expansion, scanning_macro_expansion,
2192 finished_macro_expansion): New function declarations.
2193 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2194 variable declarations.
2195 * parser-defs.h (expression_context_pc): New declaration.
2196 * parse.c (expression_context_pc): New variable.
2197 (parse_exp_1): Set expression_context_pc, as well as
2198 expression_context_block.
2199 * c-exp.y (yylex): If we're not already reading the result of a
2200 macro expansion, try to macro-expand the next token. When we're
2201 done scanning a macro expansion, switch back to the mainline text.
2202 Commas and `if's in a macro's expansion don't terminate the input.
2203 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2204 (macro_original_text, macro_expanded_text,
2205 expression_macro_lookup_func, expression_macro_lookup_baton): New
2206 variables.
2207 (scan_macro_expansion, scanning_macro_expansion,
2208 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2209 c_preprocess_and_parse): New functions.
2210 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2211 c_preprocess_and_parse, instead of c_parse.
2212 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2213 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2214
1c509ca8
JR
2215Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2216
2217 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2218 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2219 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2220
2250ee0c
CV
22212002-05-17 Corinna Vinschen <vinschen@redhat.com>
2222
2223 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2224
ab3b8126
JT
22252002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2226
2227 * Makefile.in (sh_tdep_h): Define and use.
2228 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2229 register enum): Move to...
2230 * * sh-tdep.h: ...here.
2231 * sh-tdep.c: Include sh-tdep.h.
2232 * sh3-rom.c: Likewise.
2233 * shnbsd-tdep.c: Likewise.
2234
ed9d4749
MS
22352002-05-16 Michael Snyder <msnyder@redhat.com>
2236
2237 * arm-tdep.c: Spelling fix in comment.
2238
2e276125
JB
22392002-05-16 Jim Blandy <jimb@redhat.com>
2240
6821892e
JB
2241 Add commands for manually expanding macros and showing their
2242 definitions.
2243 * macrocmd.c, macroscope.c, macroscope.h: New files.
2244 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2245 (macroscope_h): New variable.
2246 (HFILES_NO_SRCDIR): Add macroscope.h.
2247 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2248 (macroscope.o, macrocmd.o): New rules.
2249
2e276125
JB
2250 Teach the Dwarf 2 reader to read macro information.
2251 * dwarf2read.c: #include "macrotab.h".
2252 (dwarf_macinfo_buffer): New variable.
2253 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2254 dwarf_macinfo_size.
2255 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2256 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2257 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2258 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2259 dwarf2_macro_spaces_in_definition): New complaints.
2260 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2261 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2262 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2263 the partial symbol table.
2264 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2265 from what's recorded in the partial symbol table.
2266 (read_file_scope): If the compilation unit has a
2267 `DW_AT_macro_info' attribute, read its macro information.
2268 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2269
2f53fe6c
DJ
22702002-05-16 Daniel Jacobowitz <drow@mvista.com>
2271
2272 Fix PR gdb/546
2273 * ser-tcp.c: Don't include <netinet/udp.h>.
2274
2be99286
SC
22752002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2276
2277 * MAINTAINERS: Update my email address.
2278
c9af212b 22792002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
2280
2281 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2282 include file of the same name.
2283
bf5f1a52
CV
22842002-05-16 Corinna Vinschen <vinschen@redhat.com>
2285
2286 * configure.tgt: Mark v850 as multi-arched.
2287 * config/v850/tm-v850.h: Remove file.
2288 * config/v850/v850.mt: Eliminate TM_FILE.
2289
435e042a
CV
22902002-05-16 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * v850-tdep.c: Full multi-arch.
2293 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2294 Define GDB_MULTI_ARCH to 2.
2295
9819c6c8
PM
22962002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2297
2298 * p-exp.y (current_type): New static variable.
2299 Carries the type of the expression at the position that is parsed.
2300 (push_current_type, pop_current_type): Two new functions. Used
2301 to store/restore current_type in expression on specific tokens.
c9af212b
RE
2302 (search_field): New static variable. Set to one after parsing a point
2303 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
2304 (FIELDNAME): New token. After a point only a token belonging to
2305 current_type type definition is allowed.
2306 (all over token rules): reset and change current_type according
2307 to rules.
2308 (exp '[' rule): insert implicit array index field if
2309 exp is a pascal string type.
2310
3a06899a
CV
23112002-05-16 Corinna Vinschen <vinschen@redhat.com>
2312
2313 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2314 frame info. Use frame_info's saved_regs instead of matching member
2315 in extra_frame_info throughout.
2316 (v850_frame_init_saved_regs): New function.
2317 (v850_init_extra_frame_info): Move most functionality into
2318 v850_frame_init_saved_regs().
2319 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2320 (v850_frame_find_saved_regs): Remove declaration.
2321 (FRAME_FIND_SAVED_REGS): Remove definition.
2322 (v850_frame_init_saved_regs): Add declaration.
2323 (FRAME_INIT_SAVED_REGS): Add definition.
2324
6ed14b0e
CV
23252002-05-16 Corinna Vinschen <vinschen@redhat.com>
2326
2327 * v850-tdep.c: Begin multi-arch'ing v850.
2328 (v850_target_architecture_hook): Remove function.
2329 (v850_gdbarch_init): New function. Add code previously in
2330 v850_target_architecture_hook().
2331 (_initialize_v850_tdep): Don't set target_architecture_hook.
2332 Call register_gdbarch_init() instead.
2333
42725910
DJ
23342002-05-16 Daniel Jacobowitz <drow@mvista.com>
2335
2336 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2337 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2338 (fixup_class_method_type): Likewise.
2339
0bc68c49
DJ
23402002-05-15 Daniel Jacobowitz <drow@mvista.com>
2341
2342 From Martin Pool <mbp@samba.org>:
2343 * gdbserver/server.c (gdbserver_usage): New function.
2344 (main): Call it.
2345
99d9066e
JB
23462002-05-15 Jim Blandy <jimb@redhat.com>
2347
2348 Add macro structures to GDB's symbol tables. Nobody puts anything
2349 in them yet.
2350 * symtab.h (struct symtab): New member: `macro_table'.
2351 * buildsym.h (pending_macros): New global variable.
2352 * buildsym.c: #include "macrotab.h".
2353 (buildsym_init): Initialize `pending_macros'.
2354 (end_symtab): If we found macro information while reading a CU's
2355 debugging info, do build a symtab structure for it. Make the
2356 symtab point to the macro information, and clear the
2357 `pending_macros' pointer which held it while we were reading the
2358 debug info.
2359 (really_free_pendings): Free any pending macro table.
2360 * objfiles.h (struct objfile): New member: `macro_cache'.
2361 * objfiles.c (allocate_objfile): Set allocate and free functions
2362 for the macro cache's objstack.
2363 (free_objfile): Empty the macro cache's obstack.
2364 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2365 set new allocate and free functions for it.
2366 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2367 free functions for the macro cache's objstack. (Why is this
2368 function building its own objfile?)
2369 * symmisc.c (print_objfile_statistics): Print statistics on the
2370 macro bcache.
2371 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2372
c899585b
RE
23732002-05-15 Richard Earnshaw <rearnsha@arm.com>
2374
2375 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2376 (REGISTER_U_ADDR): Delete definition.
2377 (arm_register_u_addr): Delete declaration.
2378
a6cdd8c5
RE
23792002-05-15 Richard Earnshaw <rearnsha@arm.com>
2380
2381 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2382 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2383
fd3a5ca1
DJ
23842002-05-14 Daniel Jacobowitz <drow@mvista.com>
2385
2386 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2387 stop_at -> stop_pc.
2388
c97dcfc7
AC
23892002-05-14 Andrew Cagney <ac131313@redhat.com>
2390
2391 * regcache.c (register_valid): Revise comments refering to "Not
2392 available" and "unavailable".
2393 * frame.c (frame_register_read): Ditto.
2394 * findvar.c (value_of_register): Ditto.
2395
93021b7d
AC
23962002-05-15 Andrew Cagney <cagney@redhat.com>
2397
2398 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2399 (remote-sim.o): Update dependencies.
2400 (d10v-tdep.o): Specify dependencies.
2401 (sim_d10v_h): Define.
2402
a86bc61c
JB
24032002-05-14 Jim Blandy <jimb@redhat.com>
2404
2405 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2406 * macrotab.c (macro_lookup_inclusion, find_definition,
2407 new_macro_table): Same.
2408
2409 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2410 not `! strcmp ()'. This is a dubious improvement.
2411 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2412
2413 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2414 although it's not necessary, to avoid a warning.
2415
2fdde8f8
DJ
24162002-05-14 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2419 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2420 TYPE_INSTANCE_FLAGS.
2421 (struct main_type): New.
2422 (struct type): Move most members to struct main_type. Change
2423 cv_type and as_type to new type_chain member. Add instance_flags.
2424 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2425 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2426 (finish_cv_type): Remove prototype.
2427 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2428 Set TYPE_CHAIN.
2429 (alloc_type_instance): New function.
2430 (smash_type): New function.
2431 (make_pointer_type, make_reference_type, make_function_type)
2432 (smash_to_member_type, smash_to_method_type): Call smash_type.
2433 (make_qualified_type): New function.
2434 (make_type_with_address_space): Call make_qualified_type.
2435 (make_cv_type): Likewise.
2436 (finish_cv_type): Remove unnecessary function.
2437 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2438 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2439 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2440 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2441 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2442 * hpread.c (hpread_read_struct_type): Likewise.
2443 * stabsread.c (read_struct_type): Likewise.
2444
843fedf4
EZ
24452002-05-14 Elena Zannoni <ezannoni@redhat.com>
2446
2447 * configure.tgt: Add a catch all sh* target, for cases like
2448 sh[2,3,4]-elf and sh-hms.
2449
05a6c72c
KS
24502002-05-14 Keith Seitz <keiths@redhat.com>
2451
2452 * event-loop.c (create_file_handler): Don't do anything but
2453 update data when we are given a fd which we are already
2454 monitoring.
2455
5d085aaf
ML
24562002-05-14 Michal Ludvig <mludvig@suse.cz>
2457
2458 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2459 (update_context): Use __func__ in warnings.
2460
9db8d71f
DJ
24612002-05-14 Daniel Jacobowitz <drow@mvista.com>
2462
2463 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2464 and tcp_close to net_open and net_close.
2465 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2466 using UDP if requested. Don't try to disable Nagle on UDP
2467 sockets.
2468 * remote.c (remote_serial_open): New function. Warn about UDP.
2469 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2470
5dbc6baa
EZ
24712002-05-13 Elena Zannoni <ezannoni@redhat.com>
2472
2473 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2474
cc3023f7
EZ
24752002-05-13 Elena Zannoni <ezannoni@redhat.com>
2476
2477 * configure.tgt: Remove sh-hms target.
2478 * MAINTAINERS: Don't list sh-hms as a separate target.
2479
ec2bcbe7
JB
24802002-05-13 Jim Blandy <jimb@redhat.com>
2481
2482 Add first preprocessor macro-expansion files.
2483 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2484 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2485 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2486 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2487 (COMMON_OBS): Add macrotab.o, macroexp.o.
2488 (macroexp.o, macrotab.o): New rules.
2489
6d531722
AC
24902002-05-13 Andrew Cagney <ac131313@redhat.com>
2491
2492 * config/m88k/tm-m88k.h: Update copyright.
2493 (m88k_target_write_pc): Declare
2494 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2495 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2496 (SHIFT_INST_REGS): Update definition.
2497 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2498 using old definition of TARGET_WRITE_PC.
2499 * regcache.c (generic_target_write_pc): Delete code handling
2500 NNPC_REGNUM.
2501 * gdbarch.sh (NNPC_REGNUM): Delete.
2502 * gdbarch.h, gdbarch.c: Regenerate.
2503
3e3f2739
RE
25042002-05-13 Richard Earnshaw <rearnsha@arm.com>
2505
2506 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2507 builtin reg number.
2508
0004e5a2
DJ
25092002-05-13 Daniel Jacobowitz <drow@mvista.com>
2510
2511 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2512 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2513 (gen_address_of, gen_struct_ref, gen_repeat): Use type
2514 access macros.
2515 * c-typeprint.c (cp_type_print_method_args): Likewise.
2516 (c_type_print_args): Likewise.
2517 * d10v-tdep.c (d10v_push_arguments): Likewise.
2518 (d10v_extract_return_value): Likewise.
2519 * expprint.c (print_subexp): Likewise.
2520 * gdbtypes.c (lookup_primitive_typename): Likewise.
2521 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2522 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2523 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2524 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2525 (TYPE_VECTOR): Likewise.
2526 * hpread.c (hpread_read_struct_type)
2527 (fix_static_member_physnames, fixup_class_method_type)
2528 (hpread_type_lookup): Likewise.
2529 * mdebugread.c (parse_symbol, parse_type): Likewise.
2530 * p-lang.c (is_pascal_string_type): Likewise.
2531 * valops.c (hand_function_call): Likewise.
2532 * x86-64-tdep.c (classify_argument): Likewise.
2533
2534 * hpread.c (hpread_read_function_type)
2535 (hpread_read_doc_function_type): Call replace_type.
2536 * dstread.c (create_new_type): Delete.
2537 (decode_dst_structure, process_dst_function): Call alloc_type.
2538 Use type access macros.
2539
dff95cc7
MK
25402002-05-12 Mark Kettenis <kettenis@gnu.org>
2541
2542 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2543 the're not supported by the current architecture.
2544 (i387_fill_fxsave): Likewise.
2545
bbcd32ad
FF
25462002-05-12 Fred Fish <fnf@redhat.com>
2547
2548 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2549 sect_index_xxx members to index the first slot in section_offsets
2550 if all of the section_offsets are zero.
2551
89cf4787
MK
25522002-05-12 Mark Kettenis <kettenis@gnu.org>
2553
2554 * configure.tgt (sparc-*openbsd): Remove entry accidentially
2555 checked in with last change.
2556
1f77ffc5
MK
25572002-05-12 Mark Kettenis <kettenis@gnu.org>
2558
2559 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2560 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2561 config.sub.
2562
89b8b4a9
DJ
25632002-05-12 Daniel Jacobowitz <drow@mvista.com>
2564
2565 * Makefile.in: Update dependencies.
2566
14a5e767
AC
25672002-05-11 Andrew Cagney <ac131313@redhat.com>
2568
2569 * language.c (local_hex_string_custom): Simplify. Do not depend
2570 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2571
2572 * memattr.c (mem_info_command): Replace calls to
2573 longest_local_hex_string and longest_local_hex_string_custom.
2574 * buildsym.c (make_blockvector): Ditto.
2575 * solib.c (info_sharedlibrary_command): Ditto.
2576 * tracepoint.c (tracepoints_info): Ditto.
2577 * symtab.c (print_msymbol_info): Ditto.
2578
2579 * language.c (local_hex_string): Delete.
2580 (local_hex_string_custom): Delete.
2581 (longest_local_hex_string): Rename to local_hex_string.
2582 (longest_local_hex_string_custom): Rename to
2583 local_hex_string_custom.
2584 * language.h (local_hex_string): Change parameter type to LONGEST.
2585 (local_hex_string_custom): Ditto.
2586 (longest_local_hex_string): Delete declaration.
2587 (longest_local_hex_string_custom): Ditto.
2588
2589 * solib.c: Update copyright.
2590 * memattr.c: Update copyright.
2591
13d01224
AC
25922002-05-11 Andrew Cagney <ac131313@redhat.com>
2593
2594 * arch-utils.h (legacy_register_to_value): Declare.
2595 (legacy_value_to_register): Declare.
2596 (legacy_convert_register_p): Declare.
2597 * arch-utils.c (legacy_register_to_value): New function.
2598 (legacy_value_to_register): New function.
2599 (legacy_convert_register_p): New function.
2600
2601 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2602 (VALUE_TO_REGISTER): Define.
2603 (CONVERT_REGISTER_P): Define.
2604 * gdbarch.h, gdbarch.c: Regenerate.
2605
2606 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2607 VALUE_TO_REGISTER.
2608 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2609 CONVERT_REGISTER_P.
2610
4a1970e4
DJ
26112005-05-11 Daniel Jacobowitz <drow@mvista.com>
2612 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2613
2614 * Makefile.in: Update dependencies for valops.c.
2615 * valops.c: Include "gdb_assert.h".
2616 (typecmp): Skip THIS parameter to methods.
2617 (find_method_list): Remove static_memfuncp argument,
2618 update callers. Check for stub methods.
2619 (find_value_oload_method_list): Don't set *static_memfuncp.
2620 (find_overload_match): Don't check for stub methods. Assert
2621 that methods are not stubbed. Handle static methods.
2622 (value_find_oload_method_list): Remove static_memfuncp argument.
2623 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2624 to the argument list for static stub methods.
2625 * value.h (value_find_oload_method_list): Update prototype.
2626
b2e75d78
AC
26272002-05-11 Andrew Cagney <ac131313@redhat.com>
2628
2629 * arch-utils.h (generic_register_size): Declare.
2630 (generic_register_raw_size, generic_register_virtual_size): Delete
2631 declarations.
2632 * arch-utils.c (generic_register_raw_size): Delete.
2633 (generic_register_size): New function.
2634 (generic_register_virtual_size): Delete.
2635
2636 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2637 default generic_register_size.
2638 * gdbarch.h, gdbarch.c: Re-generate.
2639
2640 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2641 register_virtual_size.
2642 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2644
451fbdda
AC
26452002-05-11 Andrew Cagney <ac131313@redhat.com>
2646
2647 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2648 * gdbarch.h, gdbarch.c: Regenerate.
2649 * gnu-v3-abi.c: Update copyright.
2650 (vtable_address_point_offset): Update.
2651 (gnuv3_rtti_type): Update.
2652 (gnuv3_baseclass_offset): Update.
2653 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2654 (init_fetch_link_map_offsets): Update.
2655 * remote.c (get_remote_state): Update.
2656
6d2f5cea
DJ
26572002-05-11 Daniel Jacobowitz <drow@mvista.com>
2658
2659 * TODO: Remove value_headof/value_from_vtable_info comment.
2660 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2661 * values.c (value_headof, value_from_vtable_info): Delete.
2662 * value.h (value_from_vtable_info): Delete prototype.
2663
d2324da4
AC
26642002-05-11 Andrew Cagney <ac131313@redhat.com>
2665
2666 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2667 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2668 $(gdb_regex_h).
2669 (gdb_assert_h): Define.
2670 (gdb_wait_h): Define.
2671 (gdb_regex_h): Define.
2672
5c717440
DJ
26732002-05-11 Daniel Jacobowitz <drow@mvista.com>
2674
2675 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2676 * linespec.c (find_methods): Handle GCC 3.x template constructors.
2677
6c7861b3
JT
26782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2679
2680 * nbsd-tdep.c: Fix comment.
2681
ea5bc2a6
JT
26822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2683
2684 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2685 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2686 (nbsd-tdep.o): New dependency list.
2687 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
2688 nbsd-tdep.h.
2689 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2690 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2691 * nbsd-tdep.c: New file.
2692 * nbsd-tdep.h: New file.
2693 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
2694 nbsd-tdep.h.
2695 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2696 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2697 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2698 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2699
b28da865
JT
27002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2701
2702 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2703 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2704 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2705 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2706 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2707 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2708
4b8ff1fa
JT
27092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2710
2711 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2712 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2713 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2714 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2715 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2716 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2717 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2718
dfe6eb1f
JT
27192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2720
2721 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
2722 fetch_elfcore_registers to...
2723 * i386nbsd-tdep.c: ...here.
2724 (i386nbsd_use_struct_convention): Rename to...
2725 (i386nbsd_aout_use_struct_convention): ...this.
2726 (i386nbsd_supply_reg): New function.
2727 (i386nbsd_fill_reg): New function.
2728 (fetch_core_registers): Use i386nbsd_supply_reg.
2729 (fetch_elfcore_registers): Likewise.
2730 (_initialize_i386nbsd_tdep): New function.
2731 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2732 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2733 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2734 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2735 (i386nbsd_aout_use_struct_convention): ...this.
2736
20cb8cda
JT
27372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2738
2739 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2740 (store_inferior_registers): Use shnbsd_fill_reg.
2741 * shnbsd-tdep.c (sh_nbsd_supply_registers,
2742 sh_nbsd_supply_register): Collapse into...
2743 (shnbsd_supply_reg): ...this.
2744 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2745 (shnbsd_fill_reg): ...this.
2746 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2747 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2748 (fetch_core_registers): Use shnbsd_supply_reg.
2749 (fetch_elfcore_registers): Use shnbsd_supply_reg.
2750 (sh_nbsd_core_fns): Rename to...
2751 (shnbsd_core_fns): ...this.
2752 (sh_nbsd_elfcore_fns): Rename to...
2753 (shnbsd_elfcore_fns): ...this.
2754 (sh_nbsd_init_abi): Rename to...
2755 (shnbsd_init_abi): ...this.
2756 (_initialize_sh_nbsd_tdep): Rename to...
2757 (_initialize_shnbsd_tdep): ...this.
2758 * shnbsd-tdep.h (sh_nbsd_supply_registers,
2759 sh_nbsd_supply_register, sh_nbsd_fill_registers,
2760 sh_nbsd_fill_register): Remove prototypes.
2761 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2762
e750d25e
JT
27632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2764
2765 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2766 (i387-nat.o): Delete dependency list.
2767 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2768 (x86-64-linux-nat.o): Likewise.
2769 * i387-nat.c: Delete file, moving contents to...
2770 * i387-tdep.c: ...here.
2771 * i387-nat.h: Rename...
2772 * i387-tdep.h: ...to this.
2773 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2774 * i386-linux-nat.c: Likewise.
2775 * i386bsd-nat.c: Likewise.
2776 * i386gnu-nat.c: Likewise.
2777 * i386nbsd-nat.c: Likewise.
2778 * i386v4-nat.c: Likewise.
2779 * x86-64-linux-nat.c: Likewise.
2780 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2781 * config/i386/go32.mh (NATDEPFILES): Likewise.
2782 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2783 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2784 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2785 * config/i386/linux.mh (NATDEPFILES): Likewise.
2786 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2787 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2788 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2789 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2790
1aee598a
JT
27912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2792
2793 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2794 (alphanbsd-nat.o): Remove dependency list.
2795 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2796 * alphanbsd-nat.c: Delete. Contents moved to...
2797 * alphanbsd-tdep.c: ...here.
2798 (_initialize_alphanbsd_tdep): Register core functions.
2799 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2800
12bcb0fe
JT
28012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2802
2803 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2804 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2805 (alphanbsd-nat.o): Likewise.
2806 (alphabsd-tdep.o): New dependency list.
2807 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2808 (fill_gregset): Use alphabsd_fill_reg.
2809 (supply_fpregset): Use alphabsd_supply_fpreg.
2810 (fill_fpregset): Use alphabsd_fill_fpreg.
2811 (fetch_inferior_registers): Use struct reg and struct fpreg
2812 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2813 and alphabsd_supply_fpreg.
2814 (store_inferior_registers): Use struct reg and struct fpreg
2815 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2816 and alphabsd_fill_fpreg.
2817 * alphabsd-tdep.c: New file.
2818 * alphabsd-tdep.h: New file.
2819 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2820 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2821 alphabsd_supply_fpreg.
2822 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2823 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2824
361d1df0
EC
28252002-05-11 Eric Christopher <echristo@redhat.com>
2826
2827 * mips-tdep.c (mips_double_register_type): Fix thinko.
2828 (mips_single_register_type): Ditto.
2829 * MAINTAINERS: Add self.
2830
92dd7cee
MK
28312002-05-11 Mark Kettenis <kettenis@gnu.org>
2832
2833 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2834 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2835 right thing on architectures with different endianness and/or
2836 integer sizes.
2837
e27da16d
JT
28382002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
2839
2840 From Christian Limpach <chris@Pin.LU>
2841 * configure.in: Change sed expression which comments out
2842 NATDEPFILES to also comment out continuation lines.
2843 * configure: Regenerate.
2844
ddde02bd
EZ
28452002-05-10 Elena Zannoni <ezannoni@redhat.com>
2846
2847 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2848 big patch.
2849
1c922164
EZ
28502002-05-10 Elena Zannoni <ezannoni@redhat.com>
2851
2852 * sh-tdep.c: Include correct file.
2853
283150cd
EZ
28542002-05-10 Elena Zannoni <ezannoni@redhat.com>
2855
2856 New support for sh64-elf (sh5) target.
2857
2858 * configure.tgt: For sh64-elf target, default to sh-elf.
2859
2860 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2861 (struct gdbarch_tdep): Add new fields for new registers and ABI
2862 info.
361d1df0 2863
283150cd
EZ
2864 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2865 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2866 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2867 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2868 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2869 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2870 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2871 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2872 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2873 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2874 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2875 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2876 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2877 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2878 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2879 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2880 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2881 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2882 sign_extend, sh64_nofp_frame_init_saved_regs,
2883 sh64_init_extra_frame_info, sh64_get_saved_register,
2884 sh64_extract_struct_value_address, sh64_pop_frame,
2885 sh64_push_arguments, sh64_extract_return_value,
2886 sh64_store_return_value, sh64_show_media_regs,
2887 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2888 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2889 sh_sh64_register_virtual_type,
2890 sh_sh64_register_convert_to_virtual,
2891 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2892 sh64_register_read, sh64_pseudo_register_write,
2893 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2894 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2895 sh64_do_pseudo_register, sh_compact_do_registers_info,
2896 sh64_do_registers_info, sh_gdbarch_init): New functions.
2897
3117ed25
EZ
28982002-05-10 Elena Zannoni <ezannoni@redhat.com>
2899
2900 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2901
2654e6d4
DJ
29022002-05-10 Daniel Jacobowitz <drow@mvista.com>
2903
2904 * linespec.c (decode_line_1): Check for a double quote after
2905 a filename correctly.
2906
9ab3e532
JB
29072002-05-10 Jim Blandy <jimb@redhat.com>
2908
2909 Properly track the size of the current objfile's .debug_line section.
2910 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2911 (DWARF_LINE_SIZE): New macro.
2912 (dwarf2_build_psymtabs_hard): Record the line section's size in
2913 the partial symbol table.
2914 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2915 symbol table.
2916
126fa72d
PS
29172002-05-10 Petr Sorfa <petrs@caldera.com>
2918
2919 * ia64-tdep.c: Handle breakpoints on L instruction type
2920 in MLX instruction bundle by moving the breakpoint to
2921 the third slot (X instruction type) as L holds only data.
2922
1f077a3e
KB
29232002-05-10 Kevin Buettner <kevinb@redhat.com>
2924
2925 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2926 (process_one_symbol): Complain about discarding local symbols
2927 due to a misplaced N_LBRAC entry.
2928
8120c9d5 29292002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
2930
2931 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
2932 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2933 decrease the depth we are at, in the case of templates.
361d1df0 2934
67b2c998
DJ
29352002-05-09 Daniel Jacobowitz <drow@mvista.com>
2936
2937 * mips-tdep.c (mips_float_register_type): New function.
2938 (mips_double_register_type): New function.
2939 (mips_print_register): Use them.
2940 (do_fp_register_row): Likewise.
2941
fd326606
DJ
29422002-05-09 Daniel Jacobowitz <drow@mvista.com>
2943
6609d9af 2944 * signals/signals.c (signals): Remove conditional compilation around
fd326606 2945 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 2946 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 2947
bef35864
MS
29482002-05-09 Michael Snyder <msnyder@redhat.com>
2949
2950 * remote-rdp.c (remote_rdp_can_run): Remove.
2951
c55a3f73
TT
29522002-05-09 Tom Tromey <tromey@redhat.com>
2953
2954 * jv-valprint.c (java_val_print): Handle `char' as a special case
2955 of TYPE_CODE_INT.
2956
b8d5e71d
MS
29572002-05-09 Michael Snyder <msnyder@redhat.com>
2958
2959 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2960 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 2961 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 2962 str r(0123),[sp,#nn].
361d1df0 2963 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
2964 order-independent by placing it in a loop.
2965
e2cd42dd
MS
29662002-05-06 Michael Snyder <msnyder@redhat.com>
2967
2968 * stabsread.c (read_type): Add recognition for new attribute:
2969 "@V;" means that an array type is actually a vector.
2970 This is analogous to the vector flag that's been added to dwarf2.
2971
3ce1502b
MK
29722002-05-09 Mark Kettenis <kettenis@gnu.org>
2973
2974 * i386-tdep.h (i386_abi): New enum.
2975 (struct gdbarch_tdep): Replace os_ident member with abi.
2976 (i386_gdbarch_register_os_abi): New prototype.
2977 * i386-tdep.c (i386_abi_names): New array.
2978 (process_note_abi_tag_sections): Removed.
2979 (process_note_sections): New function.
2980 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2981 (struct i386_abi_handler): New struct.
2982 (i386_abi_handler_list): New variable.
2983 (i386_gdbarch_register_os_abi): New function.
2984 (i386_gdbarch_init): Adapt for the changes given above.
2985
084c156a
DJ
29862002-05-08 Daniel Jacobowitz <drow@mvista.com>
2987
2988 * gregset.h: Say "GNU/Linux".
2989
6599f021
EZ
29902002-05-08 Elena Zannoni <ezannoni@redhat.com>
2991
2992 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2993 (build_gdbtypes): Build builtin_type_v2_float.
2994 (_initialize_gdbtypes): Register new builtin type.
2995
40af4b0c
AC
29962002-05-08 Andrew Cagney <ac131313@redhat.com>
2997
2998 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2999 (clear_gdbarch_swap): New function.
3000 (initialize_non_multiarch): Call.
3001 (gdbarch_update_p): Before calling init(), swap out and clear the
3002 existing architecture.
3003 * gdbarch.c: Regenerate.
3004
4fe84f46
JT
30052002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3006
3007 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3008 alphanbsd-tdep.c.
3009
4015edd1
JT
30102002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3011
3012 * sh-nbsd-nat.c: Rename to...
3013 * shnbsd-nat.c: ...this.
3014 * sh-nbsd-tdep.c: Rename to...
3015 * shnbsd-tdep.c: ...this.
3016 * sh-nbsd-tdep.h: Rename to...
3017 * shnbsd-tdep.h: ...this.
3018 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3019 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3020
0e2bd219
RE
30212002-05-08 Richard Earnshaw <rearnsha@arm.com>
3022
3023 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3024 concatenation for command help messages.
3025
13a38d45
JT
30262002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3027
3028 * NEWS: Note new sh*-*-netbsdelf* configuration.
3029 * configure.host: Set gdb_host_cpu to sh for all sh*.
3030 (sh*-*-netbsdelf*): New host.
3031 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3032 (sh*-*-netbsdelf*): New target.
3033 * sh-nbsd-nat.c: New file.
3034 * sh-nbsd-tdep.c: New file.
3035 * sh-nbsd-tdep.h: New file.
3036 * config/sh/nbsd.mh: New file.
3037 * config/sh/nbsd.mt: New file.
3038 * config/sh/nm-nbsd.h: New file.
3039 * config/sh/tm-nbsd.h: New file.
3040
d658f924
JT
30412002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3042
3043 * sh-tdep.c (sh_osabi_names): Declare.
3044 (process_note_abi_tag_sections): New function.
3045 (get_elfosabi): Ditto.
3046 (sh_gdbarch_register_os_abi): Ditto.
3047 (sh_dump_tdep): Ditto.
3048 _initialize_sh_tdep): Use gdbarch_register to register
3049 sh_gdbarch_init and sh_dump_tdep.
3050 * config/sh/tm-sh.h (sh_osabi): Declare.
3051 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3052
848cfffb
AC
30532002-05-07 Andrew Cagney <ac131313@redhat.com>
3054
3055 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3056 (thumb_scan_prologue): Ditto.
3057 (arm_find_callers_reg): Ditto.
3058 (arm_frame_chain): Ditto.
3059 (arm_init_extra_frame_info): Ditto.
3060 (arm_frame_saved_pc): Ditto.
3061 (arm_pop_frame): Ditto.
3062 (arm_push_return_address): New function.
3063 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3064 call_dummy_location, call_dummy_breakpoint_offset_p,
3065 call_dummy_breakpoint_offset, call_dummy_p,
3066 call_dummy_stack_adjust_p, call_dummy_words,
3067 sizeof_call_dummy_words, call_dummy_start_offset,
3068 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3069 call_dummy_address, push_return_address and push_dummy_frame for
3070 generic dummy frames.
3071
e7d717c0
JT
30722002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3073
3074 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3075 size computation for alloca.
3076 (sh_fp_frame_init_saved_regs): Likewise.
3077
7bbcf283
RE
30782002-05-07 Richard Earnshaw <rearnsha@arm.com>
3079
3080 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3081 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 3082 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
3083 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3084 * remote-rdp.c (remote_rdp_fetch_register): Use
3085 ARM_MAX_REGISTER_RAW_SIZE.
3086 (remote_rdp_store_register): Likewise.
3087
4657573b
ML
30882002-05-07 Michal Ludvig <mludvig@suse.cz>
3089
361d1df0 3090 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
3091 added default labels to switch {} statements.
3092 * x86-64-tdep.c: Ditto.
3093 * x86-64-linux-nat.c: Ditto.
3094
010f3b2f
JT
30952002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3096
3097 * solib.h: Protect against multiple inclusion.
3098
debd256d
JB
30992002-05-06 Jim Blandy <jimb@redhat.com>
3100
9ab3e532
JB
3101 Add first preprocessor macro-expansion files.
3102 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3103 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3104 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3105 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3106 (COMMON_OBS): Add macrotab.o, macroexp.o.
3107 (macroexp.o, macrotab.o): New rules.
3108
debd256d
JB
3109 Separate the job of reading the line number info statement program
3110 header (...expialidocious) out into its own function.
3111 * dwarf2read.c (struct line_head, struct filenames, struct
3112 directories): Replace with...
3113 (struct line_header): New structure, containing the full
3114 contents of the statement program header, including the
3115 include directory and file name tables.
3116 (read_file_scope): If we have line number info, instead of just
3117 calling dwarf_decode_lines to do all the work, call
3118 dwarf_decode_line_header first to get a `struct line_header'
3119 containing the data in the statement program header, and then
3120 pass that to dwarf_decode_lines, which will pick up where that
3121 left off. Be sure to clean up the `struct line_header' object.
3122 (dwarf_decode_line_header, free_line_header, add_include_dir,
3123 add_file_name): New functions.
3124 (dwarf_decode_lines): Move all the code to read the statement
3125 program header into dwarf_decode_line_header. Take the line
3126 header it built as the first argument, instead of the offset to
3127 the compilation unit's line number info. Use the new `struct
3128 line_header' type instead of the old structures. No need to do
3129 cleanups here now, since we don't allocate anything.
3130 (dwarf2_statement_list_fits_in_line_number_section,
3131 dwarf2_line_header_too_long): New complaints.
3132
ac3aafc7
EZ
31332002-05-06 Elena Zannoni <ezannoni@redhat.com>
3134
3135 * gdbtypes.c (init_vector_type): New function.
3136 (build_builtin_type_vec128): Simplify the representation of SIMD
3137 registers.
3138 (build_gdbtypes): Initialize new builtin vector types.
3139 (_initialize_gdbtypes): Register new vector types with gdbarch.
3140 (builtin_type_v4_float, builtin_type_v4_int32,
3141 builtin_type_v8_int16, builtin_type_v16_int8,
3142 builtin_type_v2_int32, builtin_type_v4_int16,
3143 builtin_type_v8_int8): New (renamed) SIMD types.
3144
13e49980
MK
31452002-05-06 Mark Kettenis <kettenis@gnu.org>
3146
3147 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3148 (i387_fill_fxsave): Likewise.
3149
997b20b8
AO
31502002-05-05 Alexandre Oliva <aoliva@redhat.com>
3151
3152 * alpha-tdep.c (alpha_extract_return_value): Don't use
3153 non-constant array size in prototype.
3154
535c96ce
AC
31552002-05-04 Andrew Cagney <ac131313@redhat.com>
3156
3157 From Brian Taylor <briant at model dot com>:
3158 * ui-out.c (ui_out_field_core_addr): Use the function
3159 longest_local_hex_string_custom'to format addresses > 32 bits
3160 wide.
3161
3162 * ui-out.c (ui_out_field_core_addr): Update comment.
3163
bedfa57b
AC
31642002-05-04 Andrew Cagney <ac131313@redhat.com>
3165
3166 * stack.c (select_and_print_frame): Make static. Delete the
3167 parameter `level'.
3168 (func_command): Update call.
3169 (select_frame_command): Delete code computing the frame level.
3170 * frame.h (select_and_print_frame): Delete declaration.
3171
f621c63e
AC
31722002-05-04 Andrew Cagney <ac131313@redhat.com>
3173
3174 * sparc-tdep.c (sparc_get_saved_register): Comment why
3175 get_prev_frame call is safe.
3176
0f7d239c
AC
31772002-05-04 Andrew Cagney <ac131313@redhat.com>
3178
3179 * frame.h (select_frame): Delete level parameter.
3180 * stack.c (select_frame): Update. Use frame_relative_level to
3181 obtain the frame's level.
3182 (select_and_print_frame): Update call.
3183 (select_frame_command): Ditto.
3184 (up_silently_base): Ditto.
3185 (down_silently_base): Ditto.
3186 * ocd.c (ocd_start_remote): Ditto.
3187 * remote-rdp.c (remote_rdp_open): Ditto.
3188 * remote-mips.c (mips_initialize): Ditto.
3189 (common_open): Ditto.
3190 * remote-e7000.c (e7000_start_remote): Ditto.
3191 * m3-nat.c (select_thread): Ditto.
3192 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3193 (child_get_current_exception_event): Ditto.
3194 * varobj.c (varobj_create): Ditto.
3195 (varobj_update): Ditto.
3196 (c_value_of_root): Ditto.
3197 * tracepoint.c (finish_tfind_command): Ditto.
3198 * corelow.c (core_open): Ditto.
3199 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3200 * thread.c (info_threads_command): Ditto.
3201 (switch_to_thread): Ditto.
3202 * infrun.c (normal_stop): Ditto.
3203 (restore_selected_frame): Ditto.
3204 (restore_inferior_status): Ditto.
3205 * breakpoint.c (insert_breakpoints): Ditto.
3206 (watchpoint_check): Ditto.
3207 (bpstat_stop_status): Ditto.
3208 (do_enable_breakpoint): Ditto.
3209 * blockframe.c (flush_cached_frames): Ditto.
3210 (reinit_frame_cache): Ditto.
3211
71d6c7b1
AC
32122002-05-04 Andrew Cagney <ac131313@redhat.com>
3213
3214 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3215 maintainer.
3216
cda6c68a
JB
32172002-05-04 Jim Blandy <jimb@redhat.com>
3218
3219 * gdbtypes.c (replace_type): Doc fix.
3220
5c1c87f0
AC
32212002-05-04 Andrew Cagney <ac131313@redhat.com>
3222
3223 * valprint.c (strcat_longest): Delete commented out function.
3224 Update copyright.
3225
cd9bfe15
AC
32262002-05-04 Andrew Cagney <ac131313@redhat.com>
3227
3228 * MAINTAINERS: Mark a29k as deleted.
3229 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3230 Move new configurations to the top.
3231 * configure.tgt: Remove a29k.
3232 * config/a29k/tm-vx29k.h: Delete.
3233 * config/a29k/vx29k.mt: Delete.
3234 * config/a29k/tm-a29k.h: Delete.
3235 * config/a29k/a29k-udi.mt: Delete.
3236 * config/a29k/a29k.mt: Delete.
3237 * a29k-tdep.c: Delete.
3238 * remote-udi.c: Delete.
3239 * remote-mm.c: Delete.
3240 * remote-eb.c: Delete.
3241 * remote-adapt.c: Delete.
3242 * Makefile.in: Remove obsolete code.
3243 * gdbserver/Makefile.in: Ditto.
3244 * config/s390/s390x.mt: Ditto.
3245 * config/s390/s390.mt: Ditto.
3246 * config/sparc/sparclynx.mh: Ditto.
3247 * config/sparc/linux.mh: Ditto.
3248 * config/pa/hppaosf.mh: Ditto.
3249 * config/pa/hppabsd.mh: Ditto.
3250 * config/ns32k/nbsd.mt: Ditto.
3251 * config/mips/vr5000.mt: Ditto.
3252 * config/m68k/sun3os4.mh: Ditto.
3253 * config/m68k/nbsd.mt: Ditto.
3254 * config/m68k/m68klynx.mh: Ditto.
3255 * config/m32r/m32r.mt: Ditto.
3256 * config/i386/x86-64linux.mt: Ditto.
3257 * config/i386/nbsdelf.mt: Ditto.
3258 * config/i386/nbsd.mt: Ditto.
3259 * config/i386/i386lynx.mh: Ditto.
3260
bf0c5130
AC
32612002-05-04 Andrew Cagney <ac131313@redhat.com>
3262
3263 * target.c (debug_print_register): New function. Handle oversize
3264 registers.
3265 (debug_to_fetch_registers): Call.
3266 (debug_to_store_registers): Call.
3267
2ae1c2d2
JB
32682002-05-03 Jim Blandy <jimb@redhat.com>
3269
13a393b0
JB
3270 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3271 (read_type): Doc fix.
3272 * gdbtypes.c (replace_type): Doc fix.
3273
2ae1c2d2
JB
3274 * stabsread.c (multiply_defined_struct): New complaint.
3275 (read_struct_type): If the type we were passed isn't empty, or
3276 incomplete, don't read the new struct type into it; complain,
3277 and return the original type unchanged. Take a new `type_code'
3278 argument, which is the type code for the new type.
3279 (read_type): Rather than storing the type's type code here, pass
3280 it as an argument to read_struct_type, and let that take care of
3281 storing it. That way, we don't overwrite the original type code,
3282 so read_struct_type can use it to decide whether we're overwriting
3283 something we shouldn't.
3284 (complain_about_struct_wipeout): New function.
3285
8de9bdc4
AC
32862002-05-03 Andrew Cagney <ac131313@redhat.com>
3287
3288 * gdbarch.sh: Assert that gdbarch is non-NULL.
3289 * gdbarch.c: Regenerate.
3290
f773fdbb
JM
32912002-05-03 Jason Merrill <jason@redhat.com>
3292
3293 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3294 and return NULL.
3295
0e04a514
ML
32962002-05-03 Michal Ludvig <mludvig@suse.cz>
3297
3298 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3299 (x86_64_dwarf2gdb_regno_map_length),
3300 (x86_64_dwarf2_reg_to_regnum): Added.
3301 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3302 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3303 (_initialize_x86_64_tdep): Synced with the change above.
3304 (x86_64_skip_prologue): Reformulated message.
3305
065432a8
PM
33062002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3307
3308 * f-exp.y: Also use new prev_lexptr variable
3309 to improve error reporting. Based on Michael Snyder
3310 2002-04-24 dated patch to c-exp.y.
3311 * jv-exp.y: Likewise.
3312 * m2-exp.y: Likewise.
3313
a3162708
EZ
33142002-05-02 Elena Zannoni <ezannoni@redhat.com>
3315
3316 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3317 we are dealing with vectors.
3318
03620c38
PM
33192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3320
3321 * config/m68k/tm-nbsd.h: Obvious fix,
3322 correct machine name.
3323
6604db2e
PM
33242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3325
3326 * p-typeprint.c (pascal_type_print_base): Add support
3327 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3328
0906b739
PM
33292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3330
3331 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3332 for fondamental pascal 'char' type.
3333
e2625b33
PM
33342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3335
3336 * p-lang.h (is_pascal_string_type): Declaration changed,
3337 new sixth argument of type char ** added.
361d1df0 3338 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
3339 changed. Args length_pos, length_size, string_pos, char_size
3340 can now be NULL. New argument arrayname set to the field
3341 name of the char array. Return value set to char array
3342 field index plus one.
361d1df0 3343 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
3344 is_pascal_string_type function.
3345
cf17c188
AC
33462002-05-02 Andrew Cagney <cagney@redhat.com>
3347
3348 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3349 <cagney@redhat.com> change.
3350 * gdbarch.c: Regenerate.
3351
52bca491
AC
33522002-05-02 Andrew Cagney <cagney@redhat.com>
3353
3354 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3355 before probing for a new one. Detect errorenous gdbarch_init
3356 functions.
3357 * gdbarch.c: Regenerate.
3358
d5e72505
AC
33592002-05-01 Andrew Cagney <cagney@redhat.com>
3360
3361 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3362 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3363 * config/v850/tm-v850.h: Ditto. Update copyright.
3364
af566d9f
AC
33652002-04-30 Andrew Cagney <ac131313@redhat.com>
3366
3367 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3368 current_gdbarch.
3369
880d85fa
MS
33702002-04-30 Michael Snyder <msnyder@redhat.com>
3371
94c30b78
MS
3372 * arm-tdep.c: Whitespace clean-ups.
3373 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
3374 should have been removed as part of 4/24 change.
3375
6f5987a6
KB
33762002-04-30 Kevin Buettner <kevinb@redhat.com>
3377
3378 * rs6000-tdep.c: Added comment describing how fpscr register
3379 numbers were chosen.
3380
1a113c93
MS
33812002-04-30 Michael Snyder <msnyder@redhat.com>
3382
3383 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3384
9a6f53fe
EZ
33852002-04-29 Elena Zannoni <ezannoni@redhat.com>
3386
3387 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3388 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3389 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3390
11ed25ac
KB
33912002-04-29 Kevin Buettner <kevinb@redhat.com>
3392
3393 From Louis Hamilton <hamilton@redhat.com>:
3394 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3395 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3396 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3397 not bfd-private xcoff data, to determine wordsize.
3398 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3399
ae232405
AC
34002002-04-29 Andrew Cagney <ac131313@redhat.com>
3401
3402 GDB 5.2 released from 5.2 branch.
3403
91fd20f7
ML
34042002-04-29 Michal Ludvig <mludvig@suse.cz>
3405
3406 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3407 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3408 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 3409
2dc5091b
EZ
34102002-04-29 Elena Zannoni <ezannoni@redhat.com>
3411
3412 * rs6000-tdep.c (rs6000_extract_return_value,
3413 rs6000_store_return_value): Handle returning vectors.
3414 (rs6000_gdbarch_init): Use
3415 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3416 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3417 New function.
3418 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3419 vectors.
3420 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3421 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 3422
2b9848d8
PM
34232002-04-24 Pierre Muller <ics.u-strasbg.fr>
3424
3425 * hpread.c (hpread_psymtab_to_symtab_1,
3426 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3427 with fprintf_unfiltered (gdb_stderr,...).
3428
f8d17dc5
PM
34292002-04-24 Pierre Muller <ics.u-strasbg.fr>
3430
3431 * remote-array.c (printf_monitor, write_monitor,
361d1df0 3432 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
3433 Replace fprintf (stderr,...
3434 with fprintf_unfiltered (gdb_stderr,....
3435 * remote-es.c: Likewise.
3436 * remote-os9k.c: Likewise.
3437 * remote-st.c: Likewise.
3438
2f2f1ad1
AS
34392002-04-28 Andreas Schwab <schwab@suse.de>
3440
3441 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3442 linux-proc.o and gcore.o.
3443
b6779aa2
AC
34442002-04-26 Michal Ludvig <mludvig@suse.cz>
3445
3446 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3447 code without frame pointers.
3448
7e57f5f4
AC
34492002-04-26 Andrew Cagney <ac131313@redhat.com>
3450
3451 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3452 ON_STACK is needed.
3453
2ceb85d0
BE
34542002-04-26 Ben Elliston <bje@redhat.com>
3455
3456 * target.c (do_xfer_memory): Correct reference to the new option
3457 "trust-readonly-sections".
3458
f5f8a009
EZ
34592002-04-26 Elena Zannoni <ezannoni@redhat.com>
3460
3461 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3462 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3463 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3464 vectors.
3465 (read_array_type): Record the fact that this array type is really a
3466 vector (i.e. are passed in by value).
3467
5868c862
JT
34682002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3469
3470 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3471 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3472 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3473 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3474 * alpha-linux-tdep.c: Include frame.h.
3475 (alpha_linux_sigcontext_addr): New function.
3476 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3477 alpha_linux_sigcontext_addr.
3478 * alpha-osf1-tdep.c: Include gdbcore.h.
3479 (alpha_osf1_sigcontext_addr): New function.
3480 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3481 alpha_osf1_sigcontext_addr.
3482 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3483 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3484
bfb01f37
AC
34852002-04-26 Andrew Cagney <ac131313@redhat.com>
3486
361d1df0 3487 * stack.c (selected_frame_level):
bfb01f37
AC
3488 (select_frame): Do not set selected_frame_level.
3489 * frame.h (selected_frame_level): Delete declaration.
3490
15813d3f
AC
34912002-04-26 Andrew Cagney <ac131313@redhat.com>
3492
3493 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3494 convert_from_func_ptr-addr when AIX / PowerOpen.
3495
6096c27a
AC
34962002-04-25 Andrew Cagney <ac131313@redhat.com>
3497
3498 * valops.c (hand_function_call): Call
3499 generic_save_call_dummy_addr.
3500 * frame.h (generic_save_call_dummy_addr): Declare.
3501 * blockframe.c (struct dummy_frame): Add fields call_lo and
3502 call_hi.
3503 (generic_find_dummy_frame): Check for PC in range call_lo to
3504 call_hi instead of entry_point_address.
3505 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3506 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3507 (generic_save_call_dummy_addr): New function.
3508
f510d44e
DM
35092002-04-24 David S. Miller <davem@redhat.com>
3510
3511 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3512 sparc_skip_prologue.
3513 (sparc_skip_prologue): Kill frameless_p arg, and use line number
3514 information to find prologue when possible.
3515 (sparc_prologue_frameless_p): Call examine_prologue directly.
3516 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3517 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3518 second argument.
3519 (SKIP_PROLOGUE): Likewise.
3520
15d72a92
JT
35212002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3522
3523 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3524 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3525 indicate that the condition it was testing is always true.
3526 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3527 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3528 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3529
accc6d1f
JT
35302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3531
3532 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3533 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3534 tdep->jb_pc and tdep->jb_elt_size.
3535 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3536 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3537 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3538 * alpha-nat.c (get_longjmp_target): Remove.
3539 (JB_ELEMENT_SIZE): Ditto.
3540 (JB_PC): Ditto.
3541 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3542 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3543 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3544 to alpha_get_longjmp_target.
3545 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3546 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3547 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3548
1bfdc549
AC
35492002-04-25 Andrew Cagney <ac131313@redhat.com>
3550
3551 * README: Update to GDB 5.2.
3552
1bd316f0
AC
35532002-04-25 Andrew Cagney <ac131313@redhat.com>
3554
3555 * gdbarch.sh (LC_ALL): Set to `c'.
3556
2e5ff58c
TR
35572002-04-25 Theodore A. Roth <troth@verinet.com>
3558
3559 * avr-tdep.c: Ran through gdb_indent.sh.
3560
e33ce519
TR
35612002-04-25 Theodore A. Roth <troth@verinet.com>
3562
3563 * MAINTAINERS: Add myself as AVR maintainer.
3564 * NEWS: Note new target avr.
3565
8818c391
TR
35662002-04-25 Theodore A. Roth <troth@verinet.com>
3567
3568 * Makefile.in: Add support for AVR target.
3569 * configure.tgt: Add support for AVR target.
3570 * avr-tdep.c: New file
3571 * config/avr/avr.mt: New file.
3572
79509c2d
TR
35732002-04-25 Theodore A. Roth <troth@verinet.com>
3574
3575 * MAINTAINERS: Add myself to write-after-approval.
3576
dac8068e
PM
35772002-04-24 Pierre Muller <ics.u-strasbg.fr>
3578
3579 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3580 with fprintf_unfiltered (gdb_stderr,....
3581
25bf3106
PM
35822002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3583
3584 Fix PR gdb/508.
3585 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3586
24467a86
PM
35872002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3588
3589 * p-exp.y: Also use new prev_lexptr variable
3590 to improve error reporting. Based on Michael Snyder
3591 2002-04-24 dated patch to c-exp.y.
3592
95b80706
JT
35932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3594
3595 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3596 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3597 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3598 to 0.
3599 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3600 and struct value.
3601 (FUNCTION_START_OFFSET): Remove.
3602 (BREAKPOINT): Ditto.
3603
e90cc612
JT
36042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3605
3606 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3607 * NEWS: Ditto.
3608
6c72f9f9
JT
36092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3610
3611 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3612 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3613 alpha_linux_pc_in_sigtramp.
3614 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3615 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3616 alpha_osf1_pc_in_sigtramp.
3617 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3618 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3619 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3620 alphafbsd_pc_in_sigtramp.
3621 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3622 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3623 alphanbsd_pc_in_sigtramp.
3624 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3625 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3626
5e4f3379
JT
36272002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3628
3629 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3630
da8ca43d
JT
36312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3632
3633 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3634 alphanbsd-tdep.c.
3635 (alphanbsd-nat.o): New dependency list.
3636 (alphanbsd-tdep.o): Ditto.
3637 * NEWS: Note new native NetBSD/alpha configuration.
3638 * alphanbsd-nat.c: New file.
3639 * alphanbsd-tdep.c: Ditto.
3640 * configure.host (alpha*-*-netbsd*): New host.
3641 * configure.tgt (alpha*-*-netbsd*): New target.
3642 * config/alpha/nbsd.mh: New file.
3643 * config/alpha/nbsd.mt: Ditto.
3644 * config/alpha/nm-nbsd.h: Ditto.
3645 * config/alpha/tm-nbsd.h: Ditto.
3646
36a6271d
JT
36472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3648
3649 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3650 (alpha-osf1-tdep.o): New dependency list.
3651 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3652 and skip_sigtramp_frame members.
3653 * alpha-linux-tdep.c: Include gdbcore.h.
3654 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3655 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3656 * alpha-osf1-tdep.c: New file.
3657 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3658 alpha-osf1-dep.c.
3659 (alpha_frame_past_sigtramp_frame): New function.
3660 (alpha_dynamic_sigtramp_offset): Ditto.
3661 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3662 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3663 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3664 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3665 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3666 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3667 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3668 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3669 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3670 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3671 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
3672 to find_solib_trampoline_target.
3673 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3674 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3675 (SKIP_TRAMPOLINE_CODE): Remove.
3676 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3677 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3678 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3679 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3680 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3681 (PROC_SIGTRAMP_MAGIC): Ditto.
3682 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3683 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3684 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3685 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3686 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3687
2f4bc57b
JT
36882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3689
3690 * NEWS: Note that Alpha targets are now multi-arch.
3691
665132f9
MS
36922002-04-24 Michael Snyder <msnyder@redhat.com>
3693
3694 * parser-defs.h (prev_lexptr): New external variable.
3695 * parse.c (parse_exp_1): Set prev_lexptr to null before
3696 calling the language-specific parser.
3697 * c-exp.y (yylex): Set prev_lexptr to start of current token.
3698 (yyerror): Use prev_lexptr in error reporting.
3699
32872fa7
DJ
37002002-04-24 Daniel Jacobowitz <drow@mvista.com>
3701
3702 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3703 * gregset.h: If FILL_FPXREGSET is defined, provide
3704 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3705 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3706 is defined, call fill_fpxregset.
3707
57e76fac
MS
37082002-04-24 Roland McGrath <roland@frob.com>
3709
3710 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3711 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3712 (supply_gregset, supply_fpregset): New functions.
3713
3714 * gnu-nat.c (gnu_find_memory_regions): New function.
3715 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3716 (gnu_xfer_memory): Add a cast.
3717
f43845b3
MS
37182002-04-24 Michael Snyder <msnyder@redhat.com>
3719
361d1df0 3720 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
3721 loop. Add handling for "str lr, [sp, #-4]!" and for saves
3722 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 3723 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
3724 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
3725 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3726
a0abec03
AC
3727Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
3728
3729 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3730 NUM_PSEUDO_REGS can be used.
3731
d7bd68ca
AC
37322002-04-24 Andrew Cagney <ac131313@redhat.com>
3733
3734 * arch-utils.h: Update copyright.
3735
3736 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3737 * gdbarch.h, gdbarch.c: Re-generate.
3738
3739 * inferior.h (IN_SIGTRAMP): Delete definition.
3740 * arch-utils.c (legacy_pc_in_sigtramp): New function.
3741 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3742
3743 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3744 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3745 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
3746 (find_proc_framesize): Ditto.
3747 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3748 (alpha_init_extra_frame_info): Ditto.
3749 * infrun.c (handle_inferior_event): Ditto.
3750 (handle_inferior_event): Ditto.
3751 (check_sigtramp2): Ditto.
3752 * blockframe.c (create_new_frame): Ditto.
3753 (get_prev_frame): Ditto.
3754 * ppc-linux-tdep.c: Update comments.
3755 * i386-linux-tdep.c: Update comments.
3756 * breakpoint.c (bpstat_what): Update comment.
3757
d06f167a
ML
37582002-04-24 Michal Ludvig <mludvig@suse.cz>
3759
3760 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 3761 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
3762 ptrace() calls.
3763 * gdbserver/regcache.h: Added declaration of struct inferior_info.
3764
4867e41e
DM
37652002-04-24 David S. Miller <davem@redhat.com>
3766
21d83aa5
DM
3767 * i960-tdep.c (register_in_window_p): New function.
3768 (i960_find_saved_register): Use it instead of
3769 REGISTER_IN_WINDOW_P.
3770 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3771
4867e41e
DM
3772 * symtab.h (find_stab_function_addr): Kill extern.
3773 * minsyms.c (find_stab_function_addr): Remove from here...
3774 * dbxread.c: ... to here, and mark it static.
3775
69cdf6a2
DM
37762002-04-20 David S. Miller <davem@redhat.com>
3777
3778 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3779 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3780
5a595886
DM
37812002-04-21 David S. Miller <davem@redhat.com>
3782
3783 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3784 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3785 (vx_write_register): Likewise.
3786
1da1a192
JB
37872002-04-23 J. Brobecker <brobecker@gnat.com>
3788
3789 * source.c (is_regular_file): New function.
3790 (openp): Check wether file to open is a regular file
3791 to avoid opening directories.
3792
baa6f10b
JT
37932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3794
3795 * findvar.c (extract_signed_integer): Cast printf argument
3796 to suppress format warning.
3797 (extract_unsigned_integer): Likewise.
3798 * infcmd.c (registers_info): Likewise.
3799 * top.c (get_prompt_1): Likewise.
3800 * valops.c (value_assign): Likewise.
3801 * valprint.c (print_decimal): Likewise.
3802
b2c4da81
L
38032002-04-22 H.J. Lu (hjl@gnu.org)
3804
3805 * c-exp.y (typebase): Support
361d1df0 3806
b2c4da81
L
3807 [long|long long|short] [signed|unsigned] [int|]
3808
3809 and
3810
3811 signed [long|long long|short] int
3812
f267bd6a
JT
38132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3814
3815 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3816 and vax-tdep.h.
3817 * vax-tdep.h: New file.
3818 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3819 Make several routines static.
3820 (vax_get_saved_register): New function.
3821 (vax_gdbarch_init): New function.
3822 (_initialize_vax_tdep): Register vax_gdbarch_init.
3823 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3824 Remove macros now under the control of gdbarch.
3825
da3c6d4a
MS
38262002-04-22 Michael Snyder <msnyder@redhat.com>
3827
11d3b27d
MS
3828 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3829 Some whitespace and coding standards tweaks.
da3c6d4a 3830
a33f7558
JT
38312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3832
3833 * vax-tdep.c: Include regcache.h.
3834 (vax_call_dummy_words): New.
3835 (sizeof_vax_call_dummy_words): New.
3836 (vax_fix_call_dummy): New function.
3837 (vax_saved_pc_after_call): Ditto.
3838 * config/vax/tm-vax.h: Don't include regcache.h.
3839 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3840 (CALL_DUMMY): Remove.
3841 (CALL_DUMMY_WORDS): Define.
3842 (SIZEOF_CALL_DUMMY_WORDS): Define.
3843 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3844
47a73475
MS
38452002-04-18 Michael Snyder <msnyder@redhat.com>
3846
3847 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3848
52efde73
JT
38492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3850
3851 * vax-tdep.c (vax_frame_chain): New function.
3852 (vax_push_dummy_frame): Ditto.
3853 (vax_pop_frame): Ditto.
3854 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3855 (FRAMELESS_FUNCTION_INVOCATION): Use
3856 generic_frameless_function_invocation_not.
3857 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3858 (POP_FRAME): Use vax_pop_frame.
3859
ea74468c
JT
38602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3861
3862 * vax-tdep.c (vax_store_struct_return): New function.
3863 (vax_extract_return_value): Ditto.
3864 (vax_store_return_value): Ditto.
3865 (vax_extract_struct_value_address): Ditto.
3866 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3867 vax_store_struct_return.
3868 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3869 (STORE_RETURN_VALUE): Use vax_store_return_value.
3870 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3871
5516aa92
JT
38722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3873
3874 * vax-tdep.c (vax_frame_saved_pc): New function.
3875 (vax_frame_args_address_correct): Ditto.
3876 (vax_frame_args_address): Ditto.
3877 (vax_frame_locals_address): Ditto.
3878 (vax_frame_num_args): Move code to be in proximity to
3879 other frame-related functions.
3880 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3881 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3882 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3883 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3884 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3885
36af0b35
L
38862002-04-22 H.J. Lu (hjl@gnu.org)
3887
3888 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3889 includedir.
3890
ab62c900
JT
38912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3892
3893 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3894 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3895 (FRAME_INIT_SAVED_REGS): New macro.
3896
7232b100
JT
38972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3898
3899 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3900
b70d2aee
JT
39012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3902
3903 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3904 where needed.
3905 (fetch_osf_core_registers): Likewise.
3906 (supply_gregset): Likewise.
3907
a0e8a2d1 39082002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 3909
a0e8a2d1
JB
3910 * symfile.h (get_section_index): Define.
3911 * symfile.c (get_section_index): New function.
3912 * mdebugread.c (SC_IS_SBSS): New macro.
3913 (SC_IS_BSS): Return true for the scBss storage class only, as
3914 the scSBss storage class refers to the .sbss section.
3915 (parse_partial_symbols): Discard the symbols which associated
3916 section does not exist.
3917 Make sure to use the .sbss section index for symbols which
3918 storage class is scBss, rather than using the .bss section index.
3919
51eb8b08
JT
39202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3921
3922 * vax-tdep.c: Update copyright years.
3923 (vax_register_name): New function.
3924 (vax_register_byte): Ditto.
3925 (vax_register_raw_size): Ditto.
3926 (vax_register_virtual_size): Ditto.
3927 (vax_register_virtual_type): Ditto.
3928 * config/vax/tm-vax.h: Update copyright years.
3929 (REGISTER_NAMES): Remove.
3930 (REGISTER_NAME): Define.
3931 (REGISTER_BYTE): Use vax_register_byte.
3932 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3933 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3934 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3935
6cc1c0a8
AC
39362002-04-21 Andrew Cagney <ac131313@redhat.com>
3937
3938 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3939 declaration
3940 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3941
9319a2fe
DM
39422002-04-21 David S. Miller <davem@redhat.com>
3943
3944 * arch-utils.c (generic_prologue_frameless_p): Kill
3945 SKIP_PROLOGUE_FRAMELESS_P code.
3946 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3947 references.
3948 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3949 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3950 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3951 references.
3952 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3953 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3954 (sparc_gdbarch_init): Pass it to
3955 set_gdbarch_prologue_frameless_p.
a0e8a2d1 3956
e9ed6d01
JT
39572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3958
3959 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3960 (alphabsd-nat.o): New dependency list.
3961
36012033
JT
39622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3963
3964 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3965 alphafbsd-tdep.c.
3966 (alpha-linux-tdep.o): New dependency list.
3967 (alphafbsd-tdep.o): Likewise.
3968
3379287a
JT
39692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3970
3971 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3972 to here...
3973 * alpha-tdep.c: ...from here.
3974 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3975
4bcbd6cb
JT
39762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3977
3978 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3979 prototype from here...
3980 * alpha-tdep.h: ...to here.
3981
b31da25e
AC
39822002-04-21 Andrew Cagney <ac131313@redhat.com>
3983
3984 * frame.h (selected_frame_level): Document as deprecated.
3985 (frame_relative_level): Declare.
3986 * stack.c (frame_relative_level): New function.
3987 (selected_frame_level): Document as deprecated.
3988 (select_frame): Do not set the selected_frame_level.
3989
3990 * stack.c (frame_info, record_selected_frame): Update.
3991 (frame_command, current_frame_command): Update.
3992 (up_silently_base, up_command, down_silently_base): Update.
3993 (down_command): Update.
3994 * inflow.c (kill_command): Update.
3995 * tracepoint.c (finish_tfind_command): Update.
3996 * corelow.c (core_open): Update.
3997 * thread.c (info_threads_command): Update.
3998 (do_captured_thread_select): Update.
3999 * infcmd.c (finish_command): Update.
4000 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4001
9c1d6fe5
JT
40022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4003
4004 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4005
ab89facf
AC
40062002-04-21 Andrew Cagney <ac131313@redhat.com>
4007
4008 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4009 type const.
4010
82a4efa1
JT
40112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4012
4013 * alphafbsd-tdep.c: Update copyright years. Include
4014 alpha-tdep.h.
4015 (alphafbsd_use_struct_convention): Make static.
4016 (alphafbsd_init_abi): New function.
4017 (_initialize_alphafbsd_tdep): New function.
4018 * config/alpha/tm-fbsd.h: Update copyright years.
4019 (USE_STRUCT_CONVENTION): Remove.
4020
44dffaac
JT
40212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4022
4023 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4024 an Alpha ABI variant.
4025 (alpha_abi_handler_list): Declare.
4026 (alpha_gdbarch_register_os_abi): New function.
4027 (alpha_gdbarch_init): Give registered ABI variant handlers a
4028 chance to tweak the gdbarch once we have set up defaults.
4029 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4030
65585be4
JT
40312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4032
4033 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4034 to standard_coerce_float_to_double.
4035 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4036
d9b023cc
JT
40372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4038
4039 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4040 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4041 from gdbarch_tdep rather than a constant.
4042 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4043 the default text address for all Alpha Unix ABIs.
4044 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4045 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4046
dc129d82
JT
40472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4048
4049 * alpha-tdep.h: New file. Includes several Alpha target constants
4050 taken from...
4051 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4052 let gdbarch deal with.
4053 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4054 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4055 to dependency list.
4056 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4057 Alpha target register names.
4058 * alphabsd-nat.c: Likewise.
4059 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4060 Alpha target register names. Make serveral routines static.
4061 (alpha_get_saved_register): New function.
4062 (alpha_abi_names): New.
4063 (process_note_abi_tag_sections): New function.
4064 (get_elfosabi): New function.
4065 (alpha_gdbarch_init): New function.
4066 (alpha_dump_tdep): New function.
4067 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4068
d49d1e0a
AC
40692002-04-21 Andrew Cagney <ac131313@redhat.com>
4070
4071 * frame.c (find_saved_register): Delete #ifdef
4072 HAVE_REGISTER_WINDOWS code.
4073 * config/sparc/tm-sparc.h: Update comments.
4074 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4075
92e8c9ed
AC
40762002-04-21 Andrew Cagney <ac131313@redhat.com>
4077
4078 * i960-tdep.c (i960_find_saved_register): New function.
4079 (i960_get_saved_register): New function.
4080 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4081 (i960_get_saved_register): Declare.
4082 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4083
e1925118
DM
40842002-04-20 David S. Miller <davem@redhat.com>
4085
4086 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4087
29673b29
AC
40882002-04-20 Andrew Cagney <ac131313@redhat.com>
4089
4090 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4091 instead of NUM_PSEUDO_REGS.
4092
6c86dcd5
DM
40932002-04-20 David S. Miller <davem@redhat.com>
4094
4095 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4096 GDB_MULTI_ARCH_PARTIAL
4097 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4098 define, let tm-sp64.h do it.
4099
aa40ec90
JT
41002002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4101
4102 * frame.c (find_saved_register): Avoid a NULL pointer
4103 dereference and actually walk the frame list.
4104
0f79675b
AC
41052002-04-20 Andrew Cagney <ac131313@redhat.com>
4106
4107 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4108 sorted in most most-recent-used order. Document.
4109 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4110
c04a1aa8
DJ
41112002-04-20 Daniel Jacobowitz <drow@mvista.com>
4112
4113 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4114 (add_inferior): Call create_register_cache.
4115 (clear_inferiors): Call free_register_cache.
4116 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4117 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4118 (registers): Remove.
4119 (get_regcache): New function.
4120 (create_register_cache, free_register_cache): New functions.
4121 (set_register_cache): Don't initialize the register cache here.
4122 (registers_to_string, registers_from_string, register_data): Call
4123 get_regcache.
4124 * gdbserver/regcache.h: Add prototypes.
4125 * gdbserver/server.h: Likewise.
4126
611cb4a5
DJ
41272002-04-20 Daniel Jacobowitz <drow@mvista.com>
4128
4129 * gdbserver/mem-break.c: New file.
4130 * gdbserver/mem-break.h: New file.
4131 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4132 dependencies.
4133 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4134 member.
4135 (clear_inferiors): Free target_data member if set.
4136 (inferior_target_data, set_inferior_target_data): New functions.
4137 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4138 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4139 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4140 (struct inferior_linux_data): New.
4141 (linux_create_inferior): Use set_inferior_target_data.
4142 (linux_attach): Likewise. Call add_inferior.
4143 (linux_wait_for_one_inferior): New function.
4144 (linux_wait): Call it.
4145 (linux_write_memory): Add const.
4146 (initialize_low): Call set_breakpoint_data.
4147 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4148 handling members.
4149 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4150 call.
4151 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4152 prototypes.
4153 * gdbserver/target.c (read_inferior_memory)
4154 (write_inferior_memory): New functions.
4155 * gdbserver/target.h (read_inferior_memory)
4156 (write_inferior_memory): Change macros to prototypes.
4157 (struct target_ops): Update comments. Add const to write_memory
4158 definition.
4159
f91305dd 41602002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
4161
4162 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4163 instead of ->prev.
4164 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4165 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4166 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4167 instead of ->prev.
4168
73d322b1
EZ
41692002-04-19 Elena Zannoni <ezannoni@redhat.com>
4170
4171 Fix PR gdb/471.
4172 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4173 (build_builtin_type_vec128): Ditto.
4174 (append_composite_type_field): Fix calculation of type length in
4175 union case.
4176
ccd9a834
EZ
41772002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4178
4179 * config/djgpp/README: Update.
4180
4181 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4182 compiler warnings.
4183
a57f9e49
JT
41842002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4185
4186 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4187 (alpha_setup_arbitrary_frame): ...to this.
4188 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4189 for alpha_setup_arbitrary_frame.
4190
f4f9705a
AC
41912002-04-18 Andrew Cagney <cagney@redhat.com>
4192
4193 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4194 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4195
f4f9705a
AC
4196 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4197 * target.h (memory_breakpoint_from_pc): Update declaration.
4198 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4199
4200 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4201 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4202 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4203 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4204 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4205 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4206 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4207 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4208 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4209 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4210 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4211 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4212
4213 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4214 const pointer.
4215 * monitor.c (monitor_insert_breakpoint): Ditto.
4216 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4217
4218 * config/mcore/tm-mcore.h: Update copyright.
4219 * mem-break.c: Ditto.
4220 * xstormy16-tdep.c: Ditto.
4221
29f319b8
PM
42222002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4223
4224 * p-exp.y: Add precedence rule for '^' token.
4225 This removes the shift/reduce conflicts.
4226 Remove the comment concerning these shift/reduce conflicts.
4227
ebeac11a
EZ
42282002-04-18 Elena Zannoni <ezannoni@redhat.com>
4229
4230 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4231 (registers_powerpc_nofp): New register set for processors
4232 without floating point unit.
4233
27c31547
DM
42342002-04-18 David S. Miller <davem@redhat.com>
4235
4236 * MAINTAINERS: Add myself to write-after-approval.
4237
47a73475
MS
42382002-04-17 Michael Snyder <msnyder@redhat.com>
4239
4240 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4241
953836b2
AC
42422002-04-17 Andrew Cagney <ac131313@redhat.com>
4243
4244 * rs6000-tdep.c (frame_initial_stack_address): Use
4245 frame_register_read to read the alloca_reg.
4246
8b0d4340
AC
42472002-04-17 Andrew Cagney <ac131313@redhat.com>
4248
4249 * frame.c (find_saved_register): Find saved registers in the next
4250 not prev frame.
4251 Fix PR gdb/365.
4252
d8864532
AC
42532002-04-17 Andrew Cagney <ac131313@redhat.com>
4254
4255 * gdbarch.sh (LANG): Set to ``c''.
4256
36cc83a3 42572002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 4258
36cc83a3 4259 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 4260
2f4150cc 42612002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
4262
4263 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4264 Update copyright.
4265
628703c6 4266 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 4267 Also fix PR gdb/391.
361d1df0 4268
56157b4a
AC
42692002-04-14 Andrew Cagney <ac131313@redhat.com>
4270
4271 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4272 * aclocal.m4, configure: Re-generate.
4273 Fix PR gdb/391.
361d1df0 4274
6d1e3329
EZ
42752002-04-14 Elena Zannoni <ezannoni@redhat.com>
4276
4277 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4278 instead of tm_print_insn.
4279
cb06fa07
EZ
42802002-04-14 Elena Zannoni <ezannoni@redhat.com>
4281
4282 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4283
f208ba17
AC
42842002-04-14 Andrew Cagney <ac131313@redhat.com>
4285
4286 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4287 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4288 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4289
20f01a46
DH
42902002-04-12 Don Howard <dhoward@redhat.com>
4291
4292 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4293 max_user_call_depth.
4294 (init_cmd_lists): Initialize the new value;
4295 * cli/cli-script.c (execute_user_command): Limit the call depth of
4296 user defined commands. This avoids a core-dump when user commands
4297 are infinitly recursive.
4298
a88376a3
KB
42992002-04-12 Kevin Buettner <kevinb@redhat.com>
4300
4301 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4302 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4303 from tdep struct instead of DEFAULT_LR_SAVE.
4304 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4305 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4306 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4307
f2172603
MS
43082002-04-12 Michael Snyder <msnyder@redhat.com>
4309
694f61fb 4310 * Remote.c: Spelling fix.
20fe79c8
MS
4311 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4312 If no symbol found for "sbrk", try "_sbrk".
4313 (make_output_phdrs): Use bfd_section_name.
4314 (gcore_copy_callback): Use bfd_section_name.
62995fc4 4315 * eval.c: Indentation fix-ups.
169a7369
MS
4316 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4317 in case it gets applied to an address that is already
4318 in the instruction space.
de74f71f
MS
4319 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4320 * symfile.c: Fix indentation, long lines.
f2172603
MS
4321 * source.c: White space fix-up.
4322
cda5a58a
AC
43232002-04-12 Andrew Cagney <cagney@redhat.com>
4324
4325 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4326 * frame.c (frame_register_read): New function. Return non-zero on
4327 success.
4328 (read_relative_register_raw_bytes_for_frame): Delete.
4329 (read_relative_register_raw_bytes): Delete.
4330 * frame.h (frame_register_read): Declare.
4331 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4332 * sh-tdep.c: Ditto.
4333 * infcmd.c (do_registers_info): Ditto.
4334 * hppa-tdep.c: Ditto.
4335 * rs6000-tdep.c: Ditto.
4336 * h8500-tdep.c: Ditto.
4337 * mips-tdep.c: Ditto.
4338 * h8300-tdep.c: Ditto.
4339 * z8k-tdep.c: Ditto.
4340
2ea5f656
KB
43412002-04-12 Kevin Buettner <kevinb@redhat.com>
4342
4343 From Jimi X <jimix@watson.ibm.com>:
4344 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4345 64-bit SysV ABI.
4346
27b15785
KB
43472002-04-12 Kevin Buettner <kevinb@redhat.com>
4348
4349 From Jimi X <jimix@watson.ibm.com>:
4350 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4351 bfd info.
4352
5d57ee30
KB
43532002-04-12 Kevin Buettner <kevinb@redhat.com>
4354
4355 From Jimi X <jimix@watson.ibm.com>:
4356 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4357 register sets for these processor variants.
4358
bc1e36ca
DJ
43592002-04-11 Daniel Jacobowitz <drow@mvista.com>
4360
4361 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4362 registers which are allowed to fail to store.
4363 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4364 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4365 (ppc_cannot_store_register): FPSCR may not be storable.
4366 * regformats/reg-ppc.dat: Support FPSCR.
4367
e3f36dbd
KB
43682002-04-11 Kevin Buettner <kevinb@redhat.com>
4369
4370 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4371 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4372 Add fpscr as an invalid/unfetchable register.
4373 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4374 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4375 (fill_fpregset): Add support for register fpscr.
4376 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4377 (fill_gregset): Account for the fact that register ``mq'' might
4378 not exist.
4379 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4380 (registers_power): Add fpscr to register set at slot 71.
4381 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4382 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4383
943c9c25
MS
43842002-04-11 Michael Snyder <msnyder@redhat.com>
4385
4386 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4387 * configure: Regenerate.
4388 * config.in: Regenerate.
4389 * acconfig.h: Add define for _SYSCALL32.
4390 * core-sol2.c: Remove #define _SYSCALL32.
4391 * solib-legacy.c: Remove #define _SYSCALL32.
4392
d8c0a2e7
AC
43932002-04-10 Andrew Cagney <ac131313@redhat.com>
4394
4395 * stack.c (select_frame): Cleanup internal error message, do not
4396 use %p.
4397
7cc19214
AC
43982002-04-10 Andrew Cagney <ac131313@redhat.com>
4399
4400 * stack.c (select_frame): Check that selected_frame and the
4401 specified level are as expected.
4402 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4403 Update copyright.
4404 * frame.h (struct frame_info): Add field `level'. Update
4405 copyright.
4406 Work-in-progress PR gdb/464.
4407
67a2b77e
AC
44082002-04-10 Andrew Cagney <ac131313@redhat.com>
4409
4410 * maint.c (maint_print_section_info): Rename print_section_info.
4411 (print_bfd_section_info, print_objfile_section_info): Update.
4412 * inferior.h (struct gdbarch): Add opaque declaration.
4413 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4414 * gdbarch.h: Regenerate.
4415
8cfda98c
ML
44162002-04-10 Michal Ludvig <mludvig@suse.cz>
4417
4418 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4419 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4420 (kernel_u_size): Added.
4421 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4422 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4423
ca439ad2 44242002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 4425
ca439ad2
JI
4426 * valarith.c (find_size_for_pointer_math): New function, either returns
4427 the size for a pointer's target, returns 1 for void *, or errors for
4428 incomplete types.
4429 (value_add, value_sub): use find_size_for_pointer_math.
4430
2f2893d9
DJ
44312002-04-09 Daniel Jacobowitz <drow@mvista.com>
4432
4433 * linux-low.c (linux_look_up_symbols): New hook.
4434 (linux_target_ops): Add linux_look_up_symbols.
4435 * remote-utils.c (decode_address): New function.
4436 (look_up_one_symbol): New function.
4437 * server.c (handle_query): Call target look_up_symbols hook.
4438 * server.h (look_up_one_symbol): Add prototype.
4439 * target.h (struct target_ops): Add look_up_symbols hook.
4440
2ec06d2e
DJ
44412002-04-09 Daniel Jacobowitz <drow@mvista.com>
4442
d64b8841
DJ
4443 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4444 * ChangeLog: Correct paths in last ChangeLog entry.
4445
44462002-04-09 Daniel Jacobowitz <drow@mvista.com>
4447
4448 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
4449 (struct linux_target_ops): New.
4450 (extern the_low_target): New.
d64b8841 4451 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
4452 (register_addr): Use the_low_target explicitly.
4453 (fetch_register): Likewise.
4454 (usr_fetch_inferior_registers): Likewise.
4455 (usr_store_inferior_registers): Likewise.
d64b8841 4456 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
4457 (arm_num_regs): Define.
4458 (arm_regmap): Renamed from regmap, made static.
4459 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4460 made static.
4461 (arm_cannot_store_register): Renamed from cannot_store_register,
4462 made static.
4463 (the_low_target): New.
d64b8841 4464 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
4465 (i386_num_regs): Define.
4466 (i386_regmap): Renamed from regmap, made static.
4467 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4468 made static.
4469 (i386_cannot_store_register): Renamed from cannot_store_register,
4470 made static.
4471 (the_low_target): New.
d64b8841 4472 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
4473 (ia64_num_regs): Define.
4474 (ia64_regmap): Renamed from regmap, made static.
4475 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4476 made static.
4477 (ia64_cannot_store_register): Renamed from cannot_store_register,
4478 made static.
4479 (the_low_target): New.
d64b8841 4480 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
4481 (m68k_num_regs): Define.
4482 (m68k_regmap): Renamed from regmap, made static.
4483 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4484 made static.
4485 (m68k_cannot_store_register): Renamed from cannot_store_register,
4486 made static.
4487 (the_low_target): New.
d64b8841 4488 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
4489 (mips_num_regs): Define.
4490 (mips_regmap): Renamed from regmap, made static.
4491 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4492 made static.
4493 (mips_cannot_store_register): Renamed from cannot_store_register,
4494 made static.
4495 (the_low_target): New.
d64b8841 4496 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
4497 (ppc_num_regs): Define.
4498 (ppc_regmap): Renamed from regmap, made static.
4499 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4500 made static.
4501 (ppc_cannot_store_register): Renamed from cannot_store_register,
4502 made static.
4503 (the_low_target): New.
d64b8841 4504 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
4505 (s390_num_regs): Define.
4506 (s390_regmap): Renamed from regmap, made static.
4507 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4508 made static.
4509 (s390_cannot_store_register): Renamed from cannot_store_register,
4510 made static.
4511 (the_low_target): New.
d64b8841 4512 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
4513 (sh_num_regs): Define.
4514 (sh_regmap): Renamed from regmap, made static.
4515 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4516 made static.
4517 (sh_cannot_store_register): Renamed from cannot_store_register,
4518 made static.
4519 (the_low_target): New.
d64b8841 4520 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
4521 (the_low_target): New.
4522
96cb11df
AC
45232002-04-09 Andrew Cagney <ac131313@redhat.com>
4524
4525 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4526 override FP_REGNUM with frame->fp. Update copyright.
4527 * parse.c (num_std_regs, std_regs): Delete.
4528 (target_map_name_to_register): Do not search std_regs. Update
4529 function description.
4530 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4531 declarations. Update copyright.
4532 Fix PR gdb/251.
361d1df0 4533
c3a3ccc7
DJ
45342002-04-09 Daniel Jacobowitz <drow@mvista.com>
4535
4536 * gdbserver/Makefile.in: Add stamp-h target.
4537 * gdbserver/configure.in: Create stamp-h.
4538 * gdbserver/configure: Regenerated.
4539
ce3a066d
DJ
45402002-04-09 Daniel Jacobowitz <drow@mvista.com>
4541
4542 * gdbserver/inferiors.c: New file.
4543 * gdbserver/target.c: New file.
4544 * gdbserver/target.h: New file.
4545 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4546 dependencies.
4547 * gdbserver/linux-low.c (inferior_pid): New static variable,
4548 moved from server.c.
4549 (linux_create_inferior): Renamed from create_inferior.
4550 Call add_inferior. Return 0 on success instead of a PID.
4551 (linux_attach): Renamed from myattach.
4552 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
4553 (linux_thread_alive): Renamed from mythread_alive.
4554 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
4555 child dies.
4556 (linux_resume): Renamed from myresume. Add missing ``return 0''.
4557 (regsets_store_inferior_registers): Correct error message.
4558 Add missing ``return 0''.
4559 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4560 (linux_store_registers): Renamed from store_inferior_registers.
4561 (linux_read_memory): Renamed from read_inferior_memory.
4562 (linux_write_memory): Renamed from write_inferior_memory.
4563 (linux_target_ops): New structure.
4564 (initialize_low): Call set_target_ops ().
4565 * gdbserver/remote-utils.c (unhexify): New function.
4566 (hexify): New function.
4567 (input_interrupt): Send signals to ``signal_pid''.
4568 * gdbserver/server.c (inferior_pid): Remove.
4569 (start_inferior): Update create_inferior call.
4570 (attach_inferior): Call add_inferior.
4571 (handle_query): New function.
4572 (main): Call handle_query for `q' packets.
4573 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4574 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4575
0729219d
DJ
45762002-04-09 Daniel Jacobowitz <drow@mvista.com>
4577
4578 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4579 dependencies.
4580 * gdbserver/configure.in: Check for <string.h>
4581 * gdbserver/configure: Regenerate.
4582 * gdbserver/config.in: Regenerate.
4583 * gdbserver/gdbreplay.c: Include needed system headers.
4584 (remote_open): Remove strchr prototype.
4585 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4586 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4587 (supply_register_by_name): Likewise.
4588 (collect_register): Change buf argument to void *.
4589 (collect_register_by_name): Likewise.
4590 * gdbserver/regcache.h: Add missing prototypes.
4591 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4592 * gdbserver/server.c (handle_query): New function.
4593 (attached): New static variable, moved out of main.
4594 (main): Quiet longjmp clobber warnings.
4595 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4596 * gdbserver/utils.c (error): Remove NORETURN.
4597 (fatal): Likewise.
4598
97658e92
DJ
45992002-04-09 Daniel Jacobowitz <drow@mvista.com>
4600
4601 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4602 after the last symbol in a block.
4603
6044e3eb
PM
46042002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
4605
4606 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4607 is non zero as a found symbol.
4608
0406ec40
AC
46092002-04-08 Andrew Cagney <ac131313@redhat.com>
4610
4611 * findvar.c: Include "builtin-regs.h".
4612 (value_of_register): Call value_of_builtin_reg when applicable.
4613 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4614 (target_map_name_to_register): Call
4615 builtin_reg_map_name_to_regnum.
4616 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4617 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4618 (builtin_regs_h): Define.
4619 (builtin-regs.o): New target.
4620 (findvar.o): Add $(builtin_regs_h).
4621 * builtin-regs.c, builtin-regs.h: New files.
4622 * std-regs.c: New file.
4623 Partial fix for PR gdb/251.
4624
56a6dfb9
KB
46252002-04-08 Kevin Buettner <kevinb@redhat.com>
4626
4627 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4628 it's no longer required.
4629
3a808432
AC
46302002-04-08 Andrew Cagney <ac131313@redhat.com>
4631
4632 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4633
7c40d541
KB
46342002-04-08 Kevin Buettner <kevinb@redhat.com>
4635
4636 From Jimi X <jimix@watson.ibm.com>:
4637 * rs6000-tdep.c (rs6000_software_single_step): Use
4638 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4639 and size. Use target_insert_breakpoint() and
4640 target_remove_breakpoint() to insert and remove breakpoints
4641 instead of explicit memory reads and writes.
4642
cc9836a8
KB
46432002-04-08 Kevin Buettner <kevinb@redhat.com>
4644
4645 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4646 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4647 ELF_OBJECT_FORMAT ifdef.
4648
7495d1dc
KB
46492002-04-08 Kevin Buettner <kevinb@redhat.com>
4650
4651 From Jimi X <jimix@watson.ibm.com>:
4652 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4653
4288e836
KB
46542002-04-08 Kevin Buettner <kevinb@redhat.com>
4655
4656 From Jimi X <jimix@watson.ibm.com>:
4657 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4658 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4659
a4e4e501
MK
46602002-04-07 Mark Kettenis <kettenis@gnu.org>
4661
4662 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4663 s/asprintf/xasprintf/.
4664 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4665
006defba
AC
46662002-04-07 Andrew Cagney <ac131313@redhat.com>
4667
4668 I believe Jeff Law denies responsability for this one:
4669 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4670 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4671 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4672 Work-around for PR gdb/366.
4673
7aa83cac
EZ
46742002-04-07 Elena Zannoni <ezannoni@redhat.com>
4675
4676 * remote-e7000.c (write_small, e7000_read_inferior_memory,
4677 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4678 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4679
cf1fcca1
EZ
46802002-04-07 Elena Zannoni <ezannoni@redhat.com>
4681
4682 * sh-tdep.c (sh_fp_frame_init_saved_regs,
4683 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4684 information.
4685
3f289e6f
AC
46862002-04-07 Andrew Cagney <ac131313@redhat.com>
4687
4688 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4689 maintainer.
4690
129188f6
AC
46912002-04-07 Andrew Cagney <ac131313@redhat.com>
4692
4693 * README (Reporting Bugs in GDB): Document the bug web page as the
4694 prefered way of submitting bugs.
4695 Fix PR gdb/402.
4696
1200cd6e
AC
46972002-04-06 Andrew Cagney <ac131313@redhat.com>
4698
4699 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4700 -1. Update comment.
4701 * gdbarch.h, gdbarch.c: Re-generate.
4702
2853c33c
AS
47032002-04-07 Andreas Schwab <schwab@suse.de>
4704
4705 * m68klinux-nat.c (fill_fpregset): Properly pass address of
4706 buffer to regcache_collect.
4707
c2169756
AC
47082002-04-06 Andrew Cagney <ac131313@redhat.com>
4709
4710 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
4711 * gdbarch.c, gdbarch.h: Re-generate.
4712
25f1b008
AC
47132002-04-06 Andrew Cagney <ac131313@redhat.com>
4714
4715 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4716 declaration. Fix -Werror.
4717
59263426
DJ
47182002-04-05 Daniel Jacobowitz <drow@mvista.com>
4719
4720 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4721 * gdbarch.c: Regenerate.
4722
f5db4da3
MS
47232002-04-05 Michael Snyder <msnyder@redhat.com>
4724
80f8a6eb
MS
4725 * breakpoint.c (clear_command): Rewrite middle section to
4726 combine two loops with identical control conditions.
4727 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
4728 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4729
ad3dcc5c
L
47302002-04-05 H.J. Lu (hjl@gnu.org)
4731
4732 * solib-svr4.c (bkpt_names): Add "__start".
4733
f32e7a74
AC
47342002-04-04 Andrew Cagney <ac131313@redhat.com>
4735
4736 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4737 as test for 64 bit target.
4738
8227c0ff
AC
47392002-04-05 Andrew Cagney <ac131313@redhat.com>
4740
4741 * h8500-tdep.c (h8500_write_fp): Delete function.
4742 * dwarf2cfi.c (cfi_write_fp): Document as not used.
4743 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4744 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4746 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4747 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4748 (s390_write_fp):
4749 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4750 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4751 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4752 (d10v_write_fp): Delete function.
4753 * inferior.h (write_fp, generic_target_write_fp): Delete
4754 declarations.
4755 * regcache.c (generic_target_write_fp): Delete function.
4756 (write_fp): Delete function.
4757 * gdbarch.sh (TARGET_WRITE_FP): Delete.
4758 * gdbarch.h, gdbarch.c: Regenerate.
4759 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4760 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4761 (sparc64_write_fp): Delete declaration.
4762 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4763 (h8500_write_fp): Delete declaration.
4764
2757dd86
AC
47652002-04-04 Andrew Cagney <ac131313@redhat.com>
4766
4767 * sparc-tdep.c (sparc64_write_fp): Delete.
4768 (sparc_push_dummy_frame): Replace write_fp call with code to store
4769 the FP directly.
4770 (sparc_gdbarch_init): Do not initialize write_fp.
4771
c69255e1
KB
47722002-04-05 Kevin Buettner <kevinb@redhat.com>
4773
4774 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4775 clause.
4776
ae767bfb
JB
47772002-03-29 Jim Blandy <jimb@redhat.com>
4778
4779 * stack.c (get_selected_block): Add new argument `addr_in_block',
4780 used to return the exact code address we used to select the block,
4781 not just the block.
4782 * blockframe.c (get_frame_block, get_current_block): Same.
4783 * frame.h (get_frame_block, get_current_block,
4784 get_selected_block): Update declarations.
4785 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4786 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4787
84d2ac95
MS
47882002-04-05 Michael Snyder <msnyder@redhat.com>
4789
4790 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4791 warning message.
4792
596aa3bf
JB
47932002-04-05 J. Brobecker <brobecker@gnat.com>
4794
4795 * utils.c (xfullpath): New function.
4796 * defs.h (xfullpath): Add declaration.
4797 * source.c (openp): Use xfullpath in place of gdb_realpath to
4798 avoid resolving the basename part of filenames when the
4799 associated file is a symbolic link. This fixes a potential
4800 inconsistency between the filenames known to GDB and the
4801 filenames it prints in the annotations.
4802 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4803 to be able to match a filename with either the real filename, or
4804 the name of any symbolic link to this file.
4805 (lookup_partial_symtab): Ditto.
4806
c02f5703
MS
48072002-04-04 Michael Snyder <msnyder@redhat.com>
4808
4809 * breakpoint.c: Add support for hardware breakpoints in overlays.
4810 (overlay_events_enabled): New state variable.
4811 (insert_breakpoints): Use overlay_events_enabled to decide
4812 whether to attempt to set a breakpoint at the overlay load addr.
4813 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4814 (remove_breakpoint): Use overlay_events_enabled to decide
4815 whether breakpoints need to be removed from overlay load addr.
4816 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4817 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 4818 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
4819 disable_overlay_breakpoints): Update overlay_events_enabled.
4820
5fb290d7
DJ
48212002-04-04 Daniel Jacobowitz <drow@mvista.com>
4822
4823 * dwarf2read.c (struct function_range): New.
4824 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4825 (check_cu_functions): New.
4826 (read_file_scope): Initialize global function lists.
4827 Call dwarf_decode_line after processing children.
4828 (read_func_scope): Add to global function list.
4829 (dwarf_decode_lines): Call check_cu_functions everywhere
4830 record_line is called. Call record_line with a linenumber
4831 of 0 to mark sequence ends.
4832
7b3fabf0
ML
48332002-04-04 Michal Ludvig <mludvig@suse.cz>
4834
361d1df0 4835 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
4836 change sync with glibc.
4837
bce58c09
JB
48382002-04-03 Jim Blandy <jimb@redhat.com>
4839
4840 * configure.in: Call AC_C_INLINE.
4841 * configure: Regenerated.
361d1df0 4842
2fccf04a
DJ
48432002-04-01 Daniel Jacobowitz <drow@mvista.com>
4844
4845 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4846 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4847
2d1bfe2e
MK
48482002-03-31 Mark Kettenis <kettenis@gnu.org>
4849
a5941fbf
MK
4850 * NEWS: Mention gcore support on FreeBSD/i386.
4851
a90cd31d
MK
4852 * fbsd-proc.c: New file.
4853 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4854 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4855
2d1bfe2e
MK
4856 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4857 while statement.
4858
9eb6e5a1
JB
48592002-03-29 Jim Blandy <jimb@redhat.com>
4860
4861 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4862 unescaped newlines in string literals, but newer ones don't. So
4863 escape them.
4864
f02df580
MS
48652002-03-26 Michael Snyder <msnyder@redhat.com>
4866 Andrew Cagney <cagney@redhat.com>
4867
361d1df0 4868 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
4869 restore file to memory.
4870 * cli/cli-dump.h: New file.
4871 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 4872 * NEWS: Mention new commands.
f02df580 4873
109f874e
MS
48742002-03-28 Michael Snyder <msnyder@redhat.com>
4875
4876 * symfile.c (symbol_file_add): Move test for null symbols to later.
4877
520f6ade
AC
48782002-03-27 Andrew Cagney <ac131313@redhat.com>
4879
4880 From veksler at il.ibm.com:
4881 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4882 the xstrduped original path.
4883 Fix PR gdb/417.
4884
d4654627
MS
48852002-03-27 Michael Snyder <msnyder@redhat.com>
4886
4887 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4888 * infcmd.c (_initialize_infcmd): Ditto.
4889 * language.c (_initialize_language): Ditto.
4890 * symfile.c (_initialize_symfile): Ditto.
4891 * top.c (_init_main): Ditto.
4892 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4893
6be8bc0c
EZ
48942002-03-27 Elena Zannoni <ezannoni@redhat.com>
4895
4896 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4897 vector registers handling.
4898 (skip_prologue): Handle new AltiVec instructions. Fill in new
4899 fields of frame data.
4900 (frame_get_saved_regs): Fill in information for AltiVec registers.
4901
12af6855
JB
49022002-03-27 Jim Blandy <jimb@redhat.com>
4903
4904 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4905 a function; leave this macro here to invoke that function.
4906 (symbol_init_mangled_name): Declaration for that function.
4907 * symtab.c (symbol_init_mangled_name): New function.
4908
dc672865
AC
49092002-03-27 Andrew Cagney <ac131313@redhat.com>
4910
4911 * valarith.c: Replace strerror with safe_strerror.
4912 * tracepoint.c: Ditto.
4913 * lin-lwp.c: Ditto.
4914 * go32-nat.c: Ditto.
4915 * inflow.c: Ditto.
4916 * gnu-nat.c: Ditto.
4917
d96429cd
AS
49182002-03-27 Andreas Schwab <schwab@suse.de>
4919
4920 * event-top.c (command_line_handler): Remove useless if.
4921
7e336ba1
AJ
49222002-03-27 Andreas Jaeger <aj@suse.de>
4923
4924 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4925 comment.
4926
de220d0f
ML
49272002-03-27 Michal Ludvig <mludvig@suse.cz>
4928
4929 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4930 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4931 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4932 (x86_64_linux_dr_get_status, supply_gregset),
4933 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4934 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4935 (x86_64_register_info_table): Add.
4936 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4937 (x86_64_register_raw_size, x86_64_register_virtual_type),
4938 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4939 general x86_64_register_info_table.
4940 (i386_gdbarch_init): gdbarch_register_bytes is now set
4941 dynamicaly during initialization.
4942 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4943 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 4944
0e98d0a7
DJ
49452002-03-27 Daniel Jacobowitz <drow@mvista.com>
4946
4947 * gdbserver/server.c (main): Call target_signal_to_host_p
4948 and target_signal_to_host on signals received from the remote.
4949 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4950 target_signal_from_host on signals sent to the remote.
4951 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4952 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4953
3130066b
DJ
49542002-03-27 Daniel Jacobowitz <drow@mvista.com>
4955
4956 * signals/signals.c: Include "server.h" in gdbserver build.
4957 (target_signal_from_name): Don't use STREQ.
4958 (_initialize_signals): Likewise. Don't include function in
4959 gdbserver build.
4960
9aedf4f4
DJ
49612002-03-27 Daniel Jacobowitz <drow@mvista.com>
4962
4963 * signals.c: Moved to...
4964 * signals/signals.c: Here.
7e336ba1 4965 * Makefile (signals.o): Update.
9aedf4f4 4966
3fa41cdb
JL
49672002-03-26 Jeff Law (law@redhat.com)
4968
4969 * somread.c (som_symtab_read): Remove some commented out code and
4970 updated related comments. Do not set the minimal symbol table to
4971 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4972 in a dynamic executable.
4973 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4974 where we are unable to find the minimal symbol for the given
4975 PC value.
4976
ee677e8d
MS
49772002-03-25 Jeff Law (law@redhat.com)
4978
4979 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4980
e76e1718
ML
49812002-03-25 Michal Ludvig <mludvig@suse.cz>
4982
4983 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4984
18a642a1
AC
49852002-03-23 Andrew Cagney <ac131313@redhat.com>
4986
4987 * command.h: Update copyright.
4988 (struct cmd_list_element): Replace definition with opaque
4989 declaration.
4990 (enum cmd_types): Document that it will eventually be moved to
4991 cli/cli-decode.h
4992 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4993 (MALLOCED_REPLACEMENT): Delete macro.
4994 * Makefile.in (cli_decode_h): Add $(command_h).
4995 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 4996 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
4997 * completer.c: Include "cli/cli-decode.h".
4998 * maint.c: Include "cli/cli-decode.h".
4999 * cli/cli-decode.h: Include "command.h".
5000 (enum command_class): Delete.
5001 (enum cmd_types): Comment out.
5002 (enum cmd_auto_boolean): Delete.
5003 (enum var_types): Delete.
5004
b2875cc0
AC
50052002-03-23 Andrew Cagney <ac131313@redhat.com>
5006
5007 * cli/cli-decode.c: Include "gdb_assert.h".
5008 (add_set_or_show_cmd): New static function.
5009 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5010 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5011 all fields, such as func, from the set command.
5012
3b45974e
AC
50132002-03-23 Andrew Cagney <ac131313@redhat.com>
5014
5015 * MAINTAINERS (sh-elf): Change warning flag to -w.
5016
823ca731
AC
50172002-03-23 Andrew Cagney <cagney@redhat.com>
5018
5019 * defs.h (error): Add printf format attribute.
5020 * thread-db.c (thread_from_lwp): Fix error format string.
5021 * stack.c (parse_frame_specification): Ditto.
5022 * cli/cli-decode.c (undef_cmd_error): Ditto.
5023 * scm-lang.c (scm_lookup_name): Ditto.
5024 * tracepoint.c (trace_error): Ditto.
5025 * remote-utils.c (usage): Ditto.
5026 * remote.c (compare_sections_command): Ditto.
5027 Fix PR gdb/328.
5028
0e101458
AC
50292002-03-22 Andrew Cagney <ac131313@redhat.com>
5030
5031 * gdbtypes.c (append_composite_type_field): New function.
5032 (init_composite_type): New function.
5033 * gdbtypes.h (append_composite_type_field): Declare.
5034 (init_composite_type): Ditto.
5035
8e0662df
EZ
50362002-03-22 Elena Zannoni <ezannoni@redhat.com>
5037
5038 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 5039 function.
8e0662df
EZ
5040 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5041 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5042 structure returning convention for SYSV ABI case, but not
5043 for GNU/Linux, FreeBSD, or NetBSD.
5044
3121eff0
DJ
50452002-03-22 Daniel Jacobowitz <drow@mvista.com>
5046
5047 * symtab.h (lookup_block_symbol): Add mangled_name argument
5048 to prototype.
5049
5050 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5051 with new mangled_name argument.
5052 * linespec.c (decode_line_1): Likewise.
5053 * valops (value_of_this): Likewise.
5054 * symtab.c (lookup_transparent_type): Likewise.
5055 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5056 (lookup_symbol): If we are given a mangled name, pass it down
5057 to lookup_symbol_aux.
5058 (lookup_block_symbol): If we are given a mangled name to check
5059 against, only return symbols which match it.
5060
349b409f
CF
50612002-03-22 Christopher Faylor <cgf@redhat.com>
5062
5063 * win32-nat.c (child_create_inferior): Check for proper shell to use
5064 here, in case the user changes it on the fly.
5065 (_initialize_inftarg): Remove shell path considerations.
5066
2a873819
EZ
50672002-03-21 Elena Zannoni <ezannoni@redhat.com>
5068
5069 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5070 for gdbarch_max_register_raw_size and max_register_virtual_size.
5071 Adjust copyright year.
5072
a1b9830c
DJ
50732002-03-21 Daniel Jacobowitz <drow@mvista.com>
5074
5075 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5076 in a function to cover the entire beginning of the function
5077 as well if it does not already.
5078
8b5790f2
TR
50792002-03-21 Tom Rix <trix@redhat.com>
5080
5081 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5082 (rs6000_ptrace64): Renamed from ptrace64.
5083
bdbe5747
MH
50842002-03-20 Martin M. Hunt <hunt@redhat.com>
5085
5086 * gdbserver/remote-utils.c (remote_open): Don't call
5087 getprotobyname, we're all using TCP here so just use
5088 IPPROTO_TCP.
7e336ba1 5089 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
5090
50912002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 5092
bdbe5747
MH
5093 * regcache.c (_initialize_regcache): No need to call
5094 build_regcache() at this time; it gets called whenever
5095 the gdbarch changes.
5096
7781cd62
DB
50972002-03-20 David O'Brien <obrien@FreeBSD.org>
5098
5099 * sparc-nat.c: Include sys/param.h where possible.
5100
f65ca430
DJ
51012002-03-20 Daniel Jacobowitz <drow@mvista.com>
5102
5103 Fix PR gdb/422.
5104 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5105 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5106 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5107 complex types.
5108 * stabsread.c (rs6000_builtin_type): Likewise.
5109 (read_sun_floating_type): Likewise.
5110
0c867556
PS
51112002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5112
5113 * stabsread.c (read_member_functions): Remove skip code for duplicate
5114 constructor/destructor methods. Use standard parsing for these
5115 methods and just do not chain them to the list of methods after
5116 parsing.
5117
12b9c64f
AO
51182002-03-19 Alexandre Oliva <aoliva@redhat.com>
5119
5120 * coffread.c: Remove redundant static declarations. Replace
5121 occurrences of `PTR' with `void *'.
5122 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5123 * top.h (quit_cover): Likewise.
5124 * defs.h (catch_errors): Likewise.
5125
349c5d5f
AC
51262002-03-18 Andrew Cagney <ac131313@redhat.com>
5127
5128 * defs.h (XMALLOC): Define.
5129 * gdb-events.sh (XMALLOC): Delete macro.
5130 * gdb-events.c, gdb-events.h: Regenerate.
5131 * gdbarch.sh (XMALLOC): Delete macro.
5132 * gdbarch.c: Regenerate.
5133 * serial.c (XMALLOC): Delete macro.
5134 * ui-file.c (XMALLOC): Ditto.
5135 * ser-unix.h (XMALLOC): Ditto.
5136 * sh-tdep.c (XMALLOC): Ditto.
5137 * ui-out.c (XMALLOC): Ditto.
5138 * utils.c (XMALLOC): Ditto.
5139 * i386-tdep.c (XMALLOC): Ditto.
5140 * gdb-events.c (XMALLOC): Ditto.
5141 * d10v-tdep.c (XMALLOC): Ditto.
5142 * cli-out.c (XMALLOC): Ditto.
5143
5144 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5145 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5146 * ui-file.c, ui-out.c: Ditto.
5147
7d0766f3
AC
51482002-03-18 Andrew Cagney <ac131313@redhat.com>
5149
5150 * command.h (struct cmd_list_element): Add field context.
5151 (set_cmd_context, get_cmd_context): Declare.
5152 * cli/cli-decode.h: Ditto.
5153 * cli/cli-decode.c (get_cmd_context): New function.
5154 (set_cmd_context): New function.
5155 (add_cmd): Initialize context.
5156 Part of fixing PR gdb/145 and PR gdb/146.
5157
5913bcb0
AC
51582002-03-17 Andrew Cagney <ac131313@redhat.com>
5159
1868c04e
AC
5160 * cli/cli-decode.c (cmd_type): New function.
5161 * command.h (cmd_type): Declare.
5162 * infrun.c (set_schedlock_func): Call function cmd_type.
5163 * kod.c (kod_set_os): Call cmd_type.
5164 * cris-tdep.c (cris_version_update): Use function cmd_type.
5165 (cris_mode_update, cris_abi_update): Ditto.
5166
5913bcb0
AC
5167 * command.h: (execute_cmd_post_hook): Declare.
5168 (execute_cmd_pre_hook): Declare.
5169 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5170 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5171 functions. Execute pre/post hook while ensuring that afterwords
5172 hook_in is cleared.
5173 * top.c (execute_command): Use execute_cmd_post_hook, and
5174 execute_cmd_pre_hook to execute pre/post commands.
5175 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5176 hook_stop_stub.
5177 (hook_stop_stub): Call execute_cmd_pre_hook.
5178
b51450c9
AC
51792002-03-17 Andrew Cagney <ac131313@redhat.com>
5180
5181 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5182 set'' and this leads to a core dump. Move xstrdup of
5183 operating_system to after check that it is not NULL.
5184
f66c9f11
AC
51852002-03-17 Andrew Cagney <ac131313@redhat.com>
5186
8e694ecf
AC
5187 * kod.c (kod_set_os): Remove unnecessary check that
5188 ``command->type'' is set_cmd.
5189
f66c9f11
AC
5190 * valprint.c (set_input_radix): Use input_radix.
5191 (set_output_radix): Use output_radix.
5192 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5193 isn't reverted.
5194
9d01611c
AC
51952002-03-16 Andrew Cagney <ac131313@redhat.com>
5196
5197 * value.h (struct value): Delete field ``substring_addr''. Change
5198 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
5199 force_core_addr_align and force_pointer_aligh.
5200
5201 * value.h (struct value): Fix typo in above change.
9d01611c 5202
4156bb53
PS
52032002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5204
5205 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5206 to fix internal_error from ``maintenance print architecture''.
5207
0e5e3ea6
PS
52082002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5209
5210 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5211 for gcc versions after gcc-2.8.1.
5212
9b013045
PS
52132002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5214
5215 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5216 for method resolution. Restore adjustment of ``this'' pointer after
5217 calling value_struct_elt, which was accidentally removed during the
5218 HP merge.
5219
376c9600
AC
52202002-03-15 Andrew Cagney <ac131313@redhat.com>
5221
5222 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5223 value_of_register.
5224 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5225 get_saved_register.
5226 * value.h (value_of_register): Update.
5227
a4db0f07
RH
52282002-03-14 Richard Henderson <rth@redhat.com>
5229
5230 * configure.in: Detect declaration for canonicalize_file_name.
5231 * utils.c (canonicalize_file_name): Declare, if needed.
5232 (gdb_realpath): Prefer realpath if available and usable.
5233 * config.in, configure: Rebuild.
5234
96383835
RH
52352002-03-14 Richard Henderson <rth@redhat.com>
5236
5237 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5238 a constant array bound.
5239
5240 * MAINTAINERS: Add myself to write-after-approval.
5241
75245b24
MS
52422002-03-14 Michael Snyder <msnyder@redhat.com>
5243
5244 * symfile.c (syms_from_objfile): Return immediately if no syms.
5245 (symbol_file_add): Return immediately if no syms.
5246 (find_sym_fns): Return immediately if no syms.
5247
e641a1ca
ML
52482002-03-13 Michal Ludvig <mludvig@suse.cz>
5249
5250 * gdbserver/remote-util.c (remote_open): Print remote-side's
5251 IP address when remote debugging over the network.
7e336ba1 5252
df08bfec
DB
52532002-03-12 David O'Brien <obrien@FreeBSD.org>
5254
5255 * config/sparc/fbsd.mh: Fix copyright.
5256 * config/sparc/fbsd.mt: Likewise.
5257
9a57864f
RE
52582002-03-11 Richard Earnshaw <rearnsha@arm.com>
5259
5260 * MAINTAINERS: Fix typo in name of gdb warnings option.
5261 (x86-64): Fix formating so that this can be parsed by awk.
5262
dd7bf85e
DJ
52632002-03-10 Daniel Jacobowitz <drow@mvista.com>
5264
5265 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5266 * defs.h: Include "gdb/signals.h".
5267 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5268
33a0a2ac
ML
52692002-03-10 Michal Ludvig <mludvig@suse.cz>
5270
5271 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 5272 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
5273 from x86-64-tdep.h
5274
dd824b04
DJ
52752002-03-10 Daniel Jacobowitz <drow@mvista.com>
5276 Don Howard <dhoward@redhat.com>
5277
5278 * mips-tdep.c (ST0_FR): Define.
5279 (mips2_fp_compat): New function, temporarily disabled.
5280 (mips_read_fp_register_single): New function.
5281 (mips_read_fp_register_double): New function.
5282 (mips_print_register): Use them.
5283 (do_fp_register_row): Likewise.
5284
6a41ff59
AC
52852002-03-09 Andrew Cagney <ac131313@redhat.com>
5286
5287 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5288 approval''.
5289
4ea09c10
PS
52902002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5291
5292 * stabsread.c (read_member_functions): Fix is_stub test for
5293 static member functions, improve comment.
5294
6ccc741d
RE
52952002-03-07 Richard Earnshaw <rearnsha@arm.com>
5296
5297 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5298 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5299 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5300 commands that set boolean values.
5301 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5302 (arm_rdi_resume): Always initialize PC.
5303 (arm_rdi_open): Don't use rslt as a boolean.
5304 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5305 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5306 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5307 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5308
438013df
AO
53092002-03-06 Alexandre Oliva <aoliva@redhat.com>
5310
5311 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5312 * configure: Rebuilt.
5313
70ed8774
SC
53142002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5315
5316 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5317 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5318
5ba2abeb
AC
53192002-03-06 Andrew Cagney <ac131313@redhat.com>
5320
5321 * cli/cli-decode.c (set_cmd_completer): New function.
5322 * command.h (set_cmd_completer): Declare.
5323 * cli/cli-decode.h (set_cmd_completer): Ditto.
5324
5325 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5326 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5327 * win32-nat.c (_initialize_inftarg): Ditto.
5328 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5329 * proc-api.c (_initialize_proc_api): Ditto.
5330 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5331 * source.c (_initialize_source): Ditto.
5332 * exec.c (_initialize_exec): Ditto.
5333 * solib.c (_initialize_solib): Ditto.
5334 * top.c (init_main): Ditto.
5335 * tracepoint.c (_initialize_tracepoint): Ditto.
5336 * symfile.c (_initialize_symfile): Ditto.
5337 * printcmd.c (_initialize_printcmd): Ditto.
5338 * infcmd.c (_initialize_infcmd): Ditto.
5339 * corefile.c (_initialize_core): Ditto.
5340
f779ca99
AC
53412002-03-05 Andrew Cagney <ac131313@redhat.com>
5342
5343 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5344
01a3934b
AC
53452002-03-05 Andrew Cagney <ac131313@redhat.com>
5346
5347 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5348
37057839
AC
53492002-03-05 Andrew Cagney <ac131313@redhat.com>
5350
5351 * NEWS: Update headings, 5.2 has branched.
5352
c6ecbae5
DJ
53532002-03-04 Daniel Jacobowitz <drow@mvista.com>
5354
5355 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5356 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5357 (register_addr, REGISTER_RAW_SIZE): Likewise.
5358 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5359 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5360
e9f30c21
ML
53612002-03-03 Michal Ludvig <mludvig@suse.cz>
5362
5363 * MAINTAINERS (x86-64): Add myself.
5364 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5365 changed value_ptr -> struct value *
5366
54394ac3
DB
53672002-03-01 David O'Brien <obrien@FreeBSD.org>
5368
5369 * configure.host (sparc64-*-freebsd): Add.
5370 * configure.tgt: Likewise.
5371 * config/sparc/fbsd.mh: New file.
5372 * config/sparc/fbsd.mt: Likewise.
5373 * config/sparc/nm-fbsd.h: Likewise.
5374 * config/sparc/tm-fbsd.h: Likewise.
5375
bfe95955
DJ
53762002-03-01 Daniel Jacobowitz <drow@mvista.com>
5377
5378 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5379 regformats/reg-s390x.dat.
5380
f33c6cbf
AC
53812002-03-01 Andrew Cagney <ac131313@redhat.com>
5382
5383 * utils.c: Add FIXME explaining true/false problem.
5384
5ecaa7dd
AC
53852002-02-28 Andrew Cagney <ac131313@redhat.com>
5386
5387 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5388
2a251cc2
MC
53892002-02-28 Michael Chastain <mec@shout.net>
5390
5391 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5392
6a8031a3 53932002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
5394
5395 * gdbserver/linux-s390-low.c: New file.
5396 * regformats/reg-s390.dat: New file.
5397 * regformats/reg-s390x.dat: New file.
5398 * gdbserver/configure.srv: Add S/390.
5399 * gdbserver/Makefile.in: Add S/390.
5400 * configure.tgt: Enable gdbserver for S/390.
5401
ac469903
EZ
54022002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5403
5404 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5405 first line of the doc string for "info dos", except at the end of
5406 the sentence, since the short help stops at the first period.
5407
985cb1a3
JM
54082002-02-28 Jason Merrill <jason@redhat.com>
5409
5410 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5411
c570663e
FF
54122002-02-27 Fred Fish <fnf@redhat.com>
5413
5414 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5415 comment (dumy -> dummy).
5416
43630227
PS
54172002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5418
5419 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5420
b84911e8
RB
54212002-02-27 Rodney Brown <rbrown64@csc.com.au>
5422
5423 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5424
58caa3dc
DJ
54252002-02-27 Daniel Jacobowitz <drow@mvista.com>
5426
5427 * gdbserver/acconfig.h: New file.
5428 * gdbserver/i387-fp.c: New file.
5429 * gdbserver/i387-fp.h: New file.
5430 * gdbserver/linux-x86-64.c: New file.
5431 * regformats/reg-x86-64.dat: New file.
5432 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5433 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5434 * gdbserver/configure.in: Add support for regsets.
5435 * gdbserver/config.in: Regenerate.
5436 * gdbserver/configure: Regenerate.
5437 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5438 * gdbserver/linux-low.h: New file.
5439 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5440 for regsets.
5441 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5442 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5443 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5444 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5445 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5446 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5447 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5448 "i387-fp.h". Add PTRACE_GETREGS and friends.
5449 * gdbserver/regcache.c (supply_register): New function.
5450 (supply_register_by_name): New function.
5451 (collect_register): New function.
5452 (collect_register_by_name): New function.
5453
93652174
DJ
54542002-02-27 Daniel Jacobowitz <drow@mvista.com>
5455
5456 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5457 (config.status): Add configure.srv dependency.
5458 (server_h): Add config.h dependency.
5459
a02e4a61
DJ
54602002-02-27 Daniel Jacobowitz <drow@mvista.com>
5461
5462 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5463 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5464 * gdbserver/configure.srv: Change i386-*-linux* to use
5465 reg-i386-linux.o.
5466
ce0eebec
AC
54672002-02-26 Andrew Cagney <ac131313@redhat.com>
5468
5469 * x86-64-tdep.c: Re-indent. Update copyright date.
5470
82dbc5f7
AC
54712002-02-26 Andrew Cagney <ac131313@redhat.com>
5472
5473 From Michal Ludvig <mludvig@suse.cz>:
5474 * x86-64-tdep.c (value.h): Delete.
5475 (gdb_assert.h): Include.
5476 (x86_64_register_convert_to_virtual,
5477 x86_64_register_convert_to_raw ): Add check which lets only
5478 floating-point values to be converted.
5479 (value_push): Delete.
5480 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5481 (i386_gdbarch_init): Number of register_bytes fixed.
5482
e4621584
AC
54832002-02-26 Andrew Cagney <ac131313@redhat.com>
5484
5485 * MAINTAINERS: Add x86-64 target.
5486
81a9a963
AC
54872002-02-26 Andrew Cagney <ac131313@redhat.com>
5488
5489 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5490 * osfsolib.c (solib_map_sections): Ditto.
5491 * irix5-nat.c (solib_map_sections): Ditto.
5492 * corelow.c (gdb_check_format): Ditto.
5493 * symfile.c (symfile_bfd_open): Ditto.
5494 * solib.c (solib_map_sections): Ditto.
5495 Fix PR gdb/354.
7e336ba1 5496
0f017ab9
AC
54972002-02-26 Andrew Cagney <ac131313@redhat.com>
5498
5499 * remote.c (_initialize_remote): By default, disable ``e'' and
5500 ``E'' step out-of-range packets.
5501
75738c29
AS
55022002-02-26 Andreas Schwab <schwab@suse.de>
5503
5504 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5505 m68k_linux_frame_saved_pc.
5506 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5507 in_sigtramp.
5508 (SIGCONTEXT_PC_OFFSET): Remove.
5509 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5510 m68k_linux_sigtramp_saved_pc): New functions.
5511 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5512 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5513 (UCONTEXT_PC_OFFSET): Define.
5514 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5515 non-RT and RT signal trampolines.
5516
7e8ed687
RE
55172002-02-26 Richard Earnshaw <rearnsha@arm.com>
5518
5519 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5520 (TARGET_NBPG, STACK_END_ADDR): Delete
5521 (VARIABLES_INSIDE_BLOCK): Delete.
5522
6972bc8b
AC
55232002-02-25 Andrew Cagney <ac131313@redhat.com>
5524
5525 * utils.c (perror_with_name): Make string parameter constant.
5526 (print_sys_errmsg): Ditto.
5527 (query): Ditto.
5528 * defs.h (perror_with_name): Update.
5529 (print_sys_errmsg): Update.
5530 (query): Update.
5531
aa32f823
DJ
55322002-02-25 Daniel Jacobowitz <drow@mvista.com>
5533
5534 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5535 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5536
19caaa45
PS
55372002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5538
5539 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5540 if it already matches the current architecture from the exec file.
5541 Include arch-utils.h for gdbarch_info_init prototype.
5542 * Makefile.in (rs6000-nat.o): Update dependencies.
5543
d951901f
EZ
55442002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
5545
5546 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5547 list of exported variables.
5548
7ea81414
DJ
55492002-02-24 Daniel Jacobowitz <drow@mvista.com>
5550
5551 * gdbserver/configure.srv: New file.
5552 * gdbserver/configure.in: Use configure.srv instead
5553 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
5554 from it.
5555 * gdbserver/configure: Regenerated.
5556 * gdbserver/terminal.h: New file.
5557 * gdbserver/Makefile.in: Update for configure changes. Remove
5558 more unneeded include paths.
5559
080fe24b
AC
55602002-02-24 Andrew Cagney <ac131313@redhat.com>
5561
5562 From wiz at danbala:
5563 * config/sparc/tm-sp64.h: Fix grammar and typos.
5564 Fix PR gdb/287.
5565
8605d56e
AC
55662002-02-24 Andrew Cagney <ac131313@redhat.com>
5567
5568 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
5569 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5570 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5571 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
5572 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5573 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5574 * s390-tdep.c: Ditto.
92362027
AC
5575 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5576 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5577 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5578 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5579 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5580 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5581 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5582 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5583 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5584 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 5585 Fix PR gdb/378.
7e336ba1 5586
8ed32cc0
AC
55872002-02-23 Andrew Cagney <ac131313@redhat.com>
5588
a3007b6f
AC
5589 * lin-thread.c: Delete file.
5590 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5591 to gdb_proc_service.h.
5592 * configure: Re-generate.
5593
50a9e2f1
AC
5594 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5595 * serial.c (serial_open): Delete check for "ocd".
5596 Fix PR gdb/349.
5597
8b6e7932
AC
5598 * Makefile.in (linux-thread.o): Delete target.
5599 * linux-thread.c: Delete file.
5600
d155c46b
AC
5601 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5602 renamed SH files to be consistent.
5603
8ed32cc0
AC
5604 * symtab.c (sort_search_symbols): Use xfree.
5605
0e18d038
RE
56062002-02-23 Richard Earnshaw <rearnsha@arm.com>
5607
5608 * arm-linux-tdep.c (arm_linux_init_abi): Register
5609 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5610 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5611 definition with undef, since we don't want the sysvr4 definition.
5612 (SKIP_TRAMPOLINE_CODE): Likewise.
5613
27aac7ff
AC
56142002-02-23 Andrew Cagney <ac131313@redhat.com>
5615
5616 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5617
5618 * configure.in: (AC_CHECK_FUNCS) Added test for
5619 canonicalize_file_name Regenerated.
5620 * config.in, configure: Regenerated.
5621 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5622 defined use canonicalize_file_name.
7e336ba1 5623
65a6e0ee
MC
56242002-02-23 Michael Chastain <mec@shout.net>
5625
5626 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5627
47b95330
AC
56282002-02-23 Andrew Cagney <ac131313@redhat.com>
5629
5630 * README: Remove references to cygnus.com.
5631 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5632 dot com'' form. Remove references to cygnus.com and sourceware.
5633
696f451b
AC
56342002-02-23 Andrew Cagney <ac131313@redhat.com>
5635
5636 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5637 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5638 1003.1-2001 no longer allows "head -1".
5639 * gdb/Makefile.in (version.c): Likewise.
5640 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5641 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5642 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5643
bbaca940
AC
56442002-02-23 Andrew Cagney <ac131313@redhat.com>
5645
5646 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5647 * command.h (cmd_cfunc_eq): Declare.
5648 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5649
5650 * cli/cli-cmds.h (is_complete_command): Change parameter to a
5651 ``struct cmd_list_element *''.
5652 * cli/cli-cmds.c (is_complete_command): Update. Use
5653 cmd_cfunc_eq.
5654 * top.c (execute_command): Pass the command to
5655 is_complete_command.
5656 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5657
b8b8b047
AC
56582002-02-23 Andrew Cagney <ac131313@redhat.com>
5659
5660 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5661 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5662 architecture defines.
5663 * s390-tdep.c (s390_gdbarch_init): Likewise.
5664
19d3fc80
RE
56652002-02-23 Richard Earnshaw <rearnsha@arm.com>
5666
5667 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5668 (arm_linux_push_arguments): Likewise.
5669 (arm_linux_init_abi): Register them. Also register linux-specific
5670 call_dummy_words.
5671 (find_minsym_and_objfile): Use strcmp, not STREQ.
5672 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5673 (arm_linux_call_dummy_words): Delete declaration.
5674 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5675 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5676 declarations.
5677 (LOWEST_PC): Delete.
5678
3ab13650
PS
56792002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5680
5681 * maint.c (print_section_info): Do not prepend `0x' to filepos
5682 output, it will be handled by local_hex_string_custom.
5683
19d3fc80 56842002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
5685
5686 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5687 (store_newfpe_double, store_newfpe_extended, store_fpregister)
5688 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5689
d85a5daf
JB
56902002-02-22 Jim Blandy <jimb@redhat.com>
5691
5692 Indicate that the bcache functions don't change the strings
5693 they're passed.
5694 * bcache.h (bcache, hash): Add `const' keywords to declarations.
5695 * bcache.c (bcache, hash): Add `const' keywords to definitions.
5696
eeb25b8a
PM
56972002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
5698
5699 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5700
6badb179
CF
57012002-02-21 Christopher Faylor <cgf@redhat.com>
5702
5703 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5704 find the complete path to a loaded DLL.
5705
e8717518
FF
57062002-02-21 Fred Fish <fnf@redhat.com>
5707
5708 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5709 that marks the end of the range of a function, enter a line number
5710 entry that has a line number of zero and a PC offset that matches
5711 the end of the function. This starts a range of PC's for which no
5712 line number information is known.
5713 * symtab.c (find_pc_sect_line): If our best fit is in a range of
5714 PC's for which no line number info is found (line number is zero)
5715 then we didn't find any valid line information.
5716 * symtab.h: Document use of zero line number entry.
5717
9abe5450
EZ
57182002-02-21 Elena Zannoni <ezannoni@redhat.com>
5719
5720 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5721 (have_ptrace_getvrregs): Define for run time checks.
5722 (gdb_vrregset_t): New type for Altivec register handling.
5723 (fetch_register, store_register): Fetch/store altivec register
5724 when needed.
5725 (fetch_altivec_register, store_altivec_register): New functions.
5726 (supply_vrregset, fill_vrregset): New functions.
5727 (fetch_altivec_registers, store_altivec_registers): New functions.
5728 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5729 registers as well.
5730
aaa38bb5
AJ
57312002-02-21 Jiri Smid <smid@suse.cz>
5732
5733 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5734
b34db576
RE
57352002-02-21 Richard Earnshaw <rearnsha@arm.com>
5736
5737 * Makefile.in (armnbsd-nat.o): Update dependencies.
5738 * armnbsd-nat.c (supply_gregset): New function. Common code to
5739 supply the integer register set.
5740 (supply_fparegset): New function. Similar for FPA registers.
5741 (fetch_regs, fetch_fp_regs): Use them.
5742 (fetch_core_registers): Likewise.
5743 (fetch_elfcore_registers): New function.
5744 (arm_netbsd_elfcore_fns): New core-file type specification.
5745 (_initialize_arm_netbsd_nat): Register it.
5746
3e56fc4b
RE
57472002-02-21 Richard Earnshaw <rearnsha@arm.com>
5748
5749 * armnbsd-nat.c: Include gdbcore.h.
5750 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5751 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5752 'void' to declaration, to shut up ARI.
5753 (fetch_core_registers): Make static. Rewrite using supply_register.
5754 (arm_netbsd_core_fns): New core-file type specification.
5755 (_initialize_arm_netbsd_nat): New function.
5756
097f6b0b
CF
57572002-02-21 Christopher Faylor <cgf@redhat.com>
5758
5759 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5760 value.
5761
c914e0cc
CF
57622002-02-20 Christopher Faylor <cgf@redhat.com>
5763
5764 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5765 fails.
5766
385fa495
DJ
57672002-02-20 Daniel Jacobowitz <drow@mvista.com>
5768
5769 * jv-exp.y (parse_number): Change type of implicit longs
5770 to builtin_type_uint64.
5771
e5f1222d
DJ
57722002-02-20 Daniel Jacobowitz <drow@mvista.com>
5773
5774 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5775 to be an integer instead of a `union wait'.
5776
75c9abc6
DJ
57772002-02-20 Daniel Jacobowitz <drow@mvista.com>
5778
5779 * mips-linux-nat.c: Call the operating system GNU/Linux.
5780 * mips-linux-tdep.c: Likewise.
5781 * mips-tdep.c: Likewise.
5782
551792a5
DJ
57832002-02-20 Daniel Jacobowitz <drow@mvista.com>
5784
5785 Fix PR gdb/265.
5786 * jv-exp.y (parse_number): Handle 64-bit integers.
5787
ee6e2b82
DJ
57882002-02-20 Daniel Jacobowitz <drow@mvista.com>
5789
5790 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5791 AC_STDC_HEADERS to AC_HEADER_STDC.
5792 * gdbserver/configure: Regenerated.
5793
a48442a0
RE
57942002-02-20 Richard Earnshaw <rearnsha@arm.com>
5795
5796 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5797 is defined.
5798 * sparc-tdep.c (get_longjmp_target): Likewise.
5799
fe419ffc
RE
58002002-02-20 Richard Earnshaw <rearnsha@arm.com>
5801
5802 * News: Add news about ARM and Multi-arch. Mention the new target
5803 arm*-*-netbsd*.
5804
5832ed7e
JB
58052002-02-19 Jim Blandy <jimb@redhat.com>
5806
5807 * stabsread.c (error_type_complaint): Improve error message.
5808
84563040
DJ
58092002-02-19 Daniel Jacobowitz <drow@mvista.com>
5810
5811 * gdbserver/README: Update documentation.
5812 * gdbserver/configure.in: Update configury to match documentation.
5813 * gdbserver/Makefile.in: Likewise.
5814 * gdbserver/configure: Regenerated.
5815 * gdbserver/aclocal.m4: New file, generated by aclocal.
5816 * gdbserver/config.in: New file, generated by autoheader.
5817
375fd65b
RE
58182002-02-19 Richard Earnshaw <rearnsha@arm.com>
5819
5820 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5821 armnbsd-nat.c.
5822
08216dd7
RE
58232002-02-19 Richard Earnshaw <rearnsha@arm.com>
5824
5825 * arm-tdep.h (enum arm_float_model): New enum.
5826 (struct gdbarch_tdep): Add fp_model.
5827 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5828 up floating-point conversions until we know the floating-point model
5829 in use by the inferior. Don't complain about being unable to
5830 determine the ABI of the inferior when we don't have one.
5831 (arm_extract_return_value): Support different floating-point models.
5832 (arm_store_return_value): Likewise.
aaa38bb5 5833 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
5834 ARM_FLOAT_SOFT.
5835 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5836
65d6d66a
PS
58372002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5838
5839 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5840 of ``current_gdbarch''.
5841
47221191
RE
58422002-02-19 Richard Earnshaw <rearnsha@arm.com>
5843
5844 * armnbsd-nat.c : ANSIfy all function declarations.
5845 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5846 (fetch_inferior_registers): Re-implement in terms of above.
5847 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5848 (store_inferior_registers): Re-implement in terms of above.
5849
fdf39c9a
RE
58502002-02-19 Richard Earnshaw <rearnsha@arm.com>
5851
aaa38bb5 5852 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
5853 kernel.
5854 * arm-linux-tdep.c: Likewise.
5855 * config/arm/tm-linux.h: Likewise.
5856
93247f88
RE
58572002-02-19 Richard Earnshaw <rearnsha@arm.com>
5858
5859 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5860 * config/arm/nbsd.mt (TM_FILE): Delete.
5861 * config/arm/tm-nbsd.h: Delete.
5862
d7b486e7
RE
58632002-02-19 Richard Earnshaw <rearnsha@arm.com>
5864
5865 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5866 Initialize CALL_DUMMY_LENGTH.
5867
41d39a95
RE
58682002-02-19 Richard Earnshaw <rearnsha@arm.com>
5869
5870 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5871 function.
5872 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 5873 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
5874 defines one thing and that is incorrect for this port.
5875 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5876
e1195560
PM
58772002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5878
5879 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5880
c1748f97
PM
58812002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5882
5883 * win32-nat.c (display_selector): New function. Displays information
5884 about the information returned by GetThreadSelectorEntry API function.
5885 (display_selectors): New function. Displays the infomation of
5886 the selector given as argument, or of CS, DS ans FS selectors
5887 if no argument is given.
5888 ( _initialize_inftarg): Add "w32" as info prefix command.
5889 Add "info w32 selector" as command calling display_selectors.
5890
e41e6bbf
PM
58912002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5892
5893 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5894 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5895 if not defined.
5896
0d3a9f48
RE
58972002-02-18 Richard Earnshaw <rearnsha@arm.com>
5898
5899 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5900
3fb4b924
RE
59012002-02-18 Richard Earnshaw <rearnsha@arm.com>
5902
5903 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5904 (arm_fix_call_dummy): Call it.
5905 (arm_call_dummy_breakpoint_offset): Delete.
5906 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5907 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5908
7f55af32
AC
59092002-02-18 Andrew Cagney <ac131313@redhat.com>
5910
5911 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5912 Default to func_frame_chain_valid.
5913 * gdbarch.h, gdbarch.c: Re-generate.
5914 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5915
05f13b9c
EZ
59162002-02-18 Elena Zannoni <ezannoni@redhat.com>
5917
5918 * ppc-linux-nat.c: Update copyright.
5919 (fetch_register, store_register): Add tid parameter, don't compute
5920 tid here.
5921 (fetch_ppc_registers, store_ppc_registers): Add tid
5922 parameter. Pass it along to callees.
5923 (fetch_inferior_registers, store_inferior_registers): Compute tid
5924 here, and pass it to calleed functions.
5925 (fill_gregset, supply_fpregset): Clean up formatting.
5926
d7afb4c9
RE
59272002-02-18 Richard Earnshaw <rearnsha@arm.com>
5928
5929 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5930 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5931
9df628e0
RE
59322002-02-18 Richard Earnshaw <rearnsha@arm.com>
5933
5934 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5935 * gdbarch.c gdbarch.h: Regenerate.
5936 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5937 function.
5938 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5939 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5940 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5941
5942 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5943 * arm-tdep.c (arm_get_longjmp_target): New function.
5944 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5945 this to a positive value register arm_get_longjmp_target as the
5946 longjmp handler.
5947 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5948 (arm_linux_init_abi): Set up longjmp description in tdep.
5949 * armnbsd-nat.c (get_longjmp_target): Delete.
5950 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5951 description in tdep.
5952 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5953 (get_longjmp_target): Delete declaration.
5954 (GET_LONGJMP_TARGET): Delete.
5955 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5956 (GET_LONGJMP_TARGET): Delete.
5957
57bc8964
KB
59582002-02-17 Kevin Buettner <kevinb@redhat.com>
5959
5960 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5961 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5962 of ``current_gdbarch''.
5963
83d31a92
TT
59642002-02-17 Tom Tromey <tromey@redhat.com>
5965
5966 * cli/cli-cmds.c (compare_strings): New function.
5967 (complete_command): Only print each unique item once.
5968 * completer.h (complete_line): Declare.
5969 * completer.c (complete_line): New function.
5970 (line_completion_function): Use it.
5971
17ef5d92
AC
59722002-02-16 Andrew Cagney <ac131313@redhat.com>
5973
5974 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5975 * gdbarch.h, gdbarch.c: Re-generate.
5976
491b8946
DJ
59772002-02-16 Daniel Jacobowitz <drow@mvista.com>
5978
5979 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5980
59812002-02-16 Daniel Jacobowitz <drow@mvista.com>
5982
5983 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5984 * valops.c (value_arg_coerce): Don't take the address of a reference
5985 to convert an argument to a reference.
5986
dfe7f3ac
CF
59872002-02-15 Christopher Faylor <cgf@redhat.com>
5988
5989 * win32-nat.c (get_image_name): New function.
5990 (handle_load_dll): Use get_image_name function.
5991 (get_child_debug_event): Avoid registering debug events until possibly
5992 execed process is started.
5993 (child_create_inferior): Allow invocation via shell so that command
5994 line redirection, etc. works ok.
5995 (_initialize_inftarg): Add new command: "set shell" to control whether
5996 a shell is used to start a process.
5997
1d33e73a
DJ
59982002-02-15 Daniel Jacobowitz <drow@mvista.com>
5999
6000 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6001 instead of find_register_by_number.
6002 (cannot_store_register): Likewise.
6003
48cd0caa
PM
60042002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6005
aaa38bb5 6006 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
6007 fprintf_unfiltered (gdb_stderr, ...).
6008
8656e7d8
DJ
60092002-02-15 Daniel Jacobowitz <drow@mvista.com>
6010
6011 * gdbserver/gdbserver.1: Document --attach.
6012
66e810cd
RE
60132002-02-15 Richard Earnshaw <rearnsha@arm.com>
6014
6015 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6016 descriptions.
6017 * arm-tdep.c (arm_default_arm_le_breakpoint)
6018 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6019 (arm_default_thumb_be_breakpoint): New. Initialize them from
6020 traditional breakpoint defines.
6021 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6022 (arm_gdbarch_init): Initialize new breakpoint variables.
6023 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6024 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6025 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6026 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6027 code out to ...
6028 (arm_netbsd_init_abi_common): ... here; new function.
6029 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6030 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6031 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6032 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6033
97e03143
RE
60342002-02-15 Richard Earnshaw <rearnsha@arm.com>
6035
6036 * arm-tdep.h (enum arm_abi): New enum.
6037 (struct gdbarch_tdep): New structure.
6038 (LOWEST_PC): Provide a default.
6039 (arm_gdbarch_register_os_abi): Declare new function.
6040 * arm-tdep.c (arm_abi_names): New array.
6041 (process_note_abi_tag_sections): New function.
6042 (get_elfosabi): New function.
6043 (arm_gdbarch_register_os_abi): New function.
6044 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6045 support for that ABI has been built in, then call the appropriate
6046 configuration routine. Use gdbarch_num_regs() to get the number
6047 of registers.
6048 (arm_dump_tdep): New function.
6049 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6050 place-holder functions.
6051 (_initialize_arm_tdep): Register them.
6052 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6053
6054 * armnbsd-tdep.c: New file.
6055 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6056 * config/arm/nbsd.mt (TDEPFILES): Add it.
6057 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6058
6059 * armnbsd-nat.c: Include regcache.h.
6060 * Makefile.in (armnbsd-nat.o): Update dependency list.
6061
6062 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6063
ad68be46
DJ
60642002-02-14 Daniel Jacobowitz <drow@mvista.com>
6065
6066 * gdbserver/Makefile.in: Fix typos in target rules.
6067
003d6d1d
DJ
60682002-02-14 Daniel Jacobowitz <drow@mvista.com>
6069
aaa38bb5 6070 Fix part of PR gdb/267.
003d6d1d
DJ
6071 * linespec.c (find_methods): Handle constructors specially for now.
6072
6b230f1b
CV
60732002-02-14 Corinna Vinschen <vinschen@redhat.com>
6074
6075 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6076 handling.
6077 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6078 standard_coerce_float_to_double().
6079
1ea98d12
CF
60802002-02-14 Christopher Faylor <cgf@redhat.com>
6081
6082 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6083 GDBINIT_FILENAME.
6084
dd47e6fd
EZ
60852002-02-14 Elena Zannoni <ezannoni@redhat.com>
6086
6087 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6088 find_variant_by_name, because it confuses the multiarch
6089 framework. Return NULL if there isn't an architecture with the
6090 user supplied name, instead of forcing a different one without
6091 recording the change with the multiarch machinery.
6092 (find_variant_by_name): Delete.
6093
d7e39b9e
PS
60942002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6095
6096 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6097 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6098
76e42a4f
MH
60992002-02-13 Martin M. Hunt <hunt@redhat.com>
6100
aaa38bb5 6101 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
6102 print_frame_info_listing_hook, set current_source_symtab.
6103
0a30fbc4
DJ
61042002-02-14 Daniel Jacobowitz <drow@mvista.com>
6105
6106 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6107 and remove unused $(INCLUDE_DIR).
6108 Add regcache.c to OBS.
6109 Add generated register protocol files to clean target.
6110 Update dependencies for new objects, obsolete old target code.
6111
6112 * gdbserver/linux-low.c: Remove all platform-specific code to
6113 new files. Remove various dead code. Update to use regcache
6114 functionality.
6115 * gdbserver/remote-utils.c (fromhex): Add return statement
6116 to quiet warning.
6117 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6118 constant.
6119 (input_interrupt): Add integer parameter to match prototype
6120 of a signal handler.
6121 (outreg): Use register_data ().
6122 (prepare_resume_reply): Use gdbserver_expedite_regs.
6123 * gdbserver/server.c (main): Dynamically allocate own_buf because
6124 PBUFSIZ is no longer constant. Use registers_to_string () and
6125 registers_from_string ().
6126 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6127 for error (), fatal (), and warning (). Update definition of
6128 PBUFSIZ to use regcache functionality. Add include guard.
6129 * gdbserver/utils.c (fatal): Add missing ``const''.
6130 (warning): New function.
6131
6132 * regformats/regdat.sh: Include "regcache.h" in generated files.
6133 Provide init_registers () function.
6134 * regformats/regdef.h: Add prototype for set_register_cache ().
6135 Add include guard.
6136
6137 * gdbserver/linux-arm-low.c: New file.
6138 * gdbserver/linux-i386-low.c: New file.
6139 * gdbserver/linux-ia64-low.c: New file.
6140 * gdbserver/linux-m68k-low.c: New file.
6141 * gdbserver/linux-mips-low.c: New file.
6142 * gdbserver/linux-ppc-low.c: New file.
6143 * gdbserver/linux-sh-low.c: New file.
6144
6145 * gdbserver/regcache.c: New file.
6146 * gdbserver/regcache.h: New file.
6147
6148 * gdbserver/low-linux.c: Removed obsolete file.
6149
4cc841d0
DJ
61502002-02-14 Daniel Jacobowitz <drow@mvista.com>
6151
6152 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6153 * config/i386/linux.mt: Likewise.
6154 * config/ia64/linux.mt: Likewise.
6155 * config/m68k/linux.mh: Likewise.
6156 * config/powerpc/linux.mh: Likewise.
6157 * config/mips/linux.mt: Likewise.
6158
6159 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6160
6161 * config/i386/i386lynx.mh: Mark gdbserver variables
6162 as (currently) obsolete for this target.
6163 * config/i386/nbsd.mt: Likewise.
6164 * config/i386/nbsdelf.mt: Likewise.
6165 * config/m32r/m32r.mt: Likewise.
6166 * config/m68k/m68klynx.mh: Likewise.
6167 * config/m68k/nbsd.mt: Likewise.
6168 * config/m68k/sun3os4.mh: Likewise.
6169 * config/mips/vr5000.mt: Likewise.
6170 * config/ns32k/nbsd.mt: Likewise.
6171 * config/pa/hppabsd.mh: Likewise.
6172 * config/pa/hppaosf.mh: Likewise.
6173 * config/powerpc/nbsd.mt: Likewise.
6174 * config/rs6000/rs6000lynx.mh: Likewise.
6175 * config/s390/s390.mt: Likewise.
6176 * config/s390/s390x.mt: Likewise.
6177 * config/sparc/sparclynx.mh: Likewise.
6178 * config/sparc/sun4os4.mh: Likewise.
6179 * config/i386/x86-64linux.mt: Likewise.
6180 * config/sparc/linux.mh: Likewise.
6181
a85f51e7
DJ
61822002-02-14 Daniel Jacobowitz <drow@mvista.com>
6183
6184 * configure.tgt: Configure gdbserver only for known working
6185 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6186 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6187 SUBDIRS if it is configured. Update comment for ${nativefile}.
6188 * configure: Regenerated.
6189
65554fef
MS
61902002-02-13 Michael Snyder <msnyder@redhat.com>
6191
670a52db
MS
6192 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6193
6dbdc4a3
MS
6194 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6195 (default_gcore_mach): Just return 0, work around a problem in bfd.
6196 (default_gcore_target): OK to return NULL if exec_bfd is null.
6197 (make_mem_sec): Use a cast, avoid a warning.
6198
6199 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 6200 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
6201 sizeof (host pointer) != sizeof (target pointer)).
6202 (procfs_make_note_section): Avoid overflow in psargs string.
6203
aaa38bb5 6204 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
6205 implementation return an error.
6206
62072002-02-13 Rodney Brown <rbrown64@csc.com.au>
6208
6209 * procfs.c (procfs_make_note_section): Provide a default definition
6210 (for alpha-dec-osf4.0f). Fix typos.
6211
1e4d76e7
EZ
62122002-02-13 Elena Zannoni <ezannoni@redhat.com>
6213
6214 * linux-proc.c: Add include of regcache.h.
6215 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6216
b6d1a1d5
AC
62172002-02-13 Andrew Cagney <ac131313@redhat.com>
6218
6219 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
6220 * memattr.c (create_mem_region): Disallow useless empty region.
6221 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 6222 non-overlapping.
b6d1a1d5 6223
6c6ea35e
MC
62242002-02-13 Michael Chastain <mec@shout.net>
6225
6226 * defs.h: Kill CONST_PTR.
6227 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6228 * c-lang.c (c_builtin_types): Likewise.
6229 * ch-lang.c (ch_builtin_types): Likewise.
6230 * f-lang.c (f_builtin_types): Likewise.
6231 * language.c (unknown_builtin_types): Likewise.
6232 * m2-lang.c (m2_builtin_types): Likewise.
6233 * p-lang.c (pascal_builtin_types): Likewise.
6234 * scm-lang.c (c_builtin_types): Likewise.
6235
3e0b0f48
KS
62362002-02-13 Keith Seitz <keiths@redhat.com>
6237
6238 * arm-tdep.h (arm_get_next_pc): Add declaration.
6239
67255d04
RE
62402002-02-13 Richard Earnshaw <rearnsha@arm.com>
6241
6242 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6243 with other related struct-returning functions.
6244 (arm_extract_struct_value_address): New function.
6245 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6246 initialize float_format, double_format and long_double_format as
6247 appropriate to the endianness of the target.
6248 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6249 (arm_use_struct_convention): Delete declaration.
6250 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6251
079777f6
KS
62522002-02-13 Keith Seitz <keiths@redhat.com>
6253
6254 * defs.h (core_addr_to_string_nz): New function.
6255
34588f23
MK
62562002-02-13 Mark Kettenis <kettenis@gnu.org>
6257
6258 Apply missing bits of 2002-01-15 patch.
6259 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6260 (fill_fpregset): Use i387_fill_fsave.
6261
49b563f9
KS
62622002-02-12 Keith Seitz <keiths@redhat.com>
6263
49b563f9
KS
6264 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6265 (core_addr_to_string_nz): New function.
6266
aeb98c60
RE
62672002-02-11 Richard Earnshaw <rearnsha@arm.com>
6268
6269 * arm-linux-nat.c: Really include arm-tdep.h.
6270 * config/arm/tm-linux.h (struct type, struct value): Declare.
6271
65554fef
MS
62722002-02-11 Michael Snyder <msnyder@redhat.com>
6273
6274 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6275 (gcore section): Ifdef for Solaris and Unixware only.
6276 (procfs_do_thread_registers): Unixware needs one lwpstatus
6277 per thread (not one prstatus or pstatus).
6278 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6279 not over all gdb threads. For unixware, call elfcore_write_pstatus
6280 once before iterating over threads.
6281
34e8f22d
RE
62822002-02-11 Richard Earnshaw <rearnsha@arm.com>
6283
6284 * arm-tdep.h: New file.
6285 * arm-tdep.c: Include arm-tdep.h.
6286 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6287 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6288 (arm_print_float_info, arm_register_type, convert_to_extended)
6289 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6290 (arm_extract_return_value, arm_register_name): Make static.
6291 (arm_software_single_step): Similarly. Fix types in declaration.
6292 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6293 (arm_store_return_value, arm_store_struct_return): New functions.
6294 (arm_gdbarch_init): Register the above functions. Also register
6295 call_dummy_start_offset, sizeof_call_dummy_words,
6296 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6297 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 6298 max_register_virtual_size, register_size. Set up
34e8f22d
RE
6299 prologue_cache.saved_regs here, rather than ...
6300 (_initialize_arm_tdep): ... here.
6301 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6302 declarations.
6303 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6304 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6305 (arm_print_float_info, arm_register_type, convert_to_extended)
6306 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6307 (arm_extract_return_value, arm_register_name): Delete declarations.
6308 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6309 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6310 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6311 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6312 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6313 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6314 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6315 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6316 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6317 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6318 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6319 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6320 interface.
6321 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6322 * remote-rdi.c remote-rdp.c: Likewise.
6323 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6324 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6325 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6326 definition.
6327
6328 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6329 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6330 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6331 from non-ARM_ prefixed definitions.
6332 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6333 all uses of above.
6334 * remote-rdi.c remote-rdp.c: Likewise.
6335 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6336
148754e5
RE
63372002-02-11 Richard Earnshaw <rearnsha@arm.com>
6338
6339 * arm-tdep.c (arm_frameless_function_invocation)
6340 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6341 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6342 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6343 (arm_pop_frame, arm_get_next_pc): Make static.
6344 (arm_gdbarch_init): Register above in gdbarch structure.
6345 (arm_read_fp): Renamed from arm_target_read_fp.
6346 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6347 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6348 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6349 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6350 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6351 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6352 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
6353 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6354 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6355 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6356 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 6357
434d2d4f
DJ
63582002-02-10 Daniel Jacobowitz <drow@mvista.com>
6359
6360 * symtab.c (compare_search_syms): New function.
6361 (sort_search_symbols): New function.
6362 (search_symbols): Sort symbols after searching rather than
6363 before.
6364
55241689
AC
63652002-02-10 Andrew Cagney <ac131313@redhat.com>
6366
6367 * NEWS: Linux -> GNU/Linux.
6368
028c194b
AC
63692002-02-10 Andrew Cagney <ac131313@redhat.com>
6370
6371 * gdbarch.sh: For for level one methods, disallow a definition
6372 when partially multi-arched. Add comments explaining rationale.
6373 * gdbarch.h: Re-generate.
6374
6acf50cd
AC
63752002-02-10 Andrew Cagney <ac131313@redhat.com>
6376
6377 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6378 multi-arch partial.
aaa38bb5 6379
50248794
AC
63802002-02-10 Andrew Cagney <ac131313@redhat.com>
6381
6382 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6383 field. Use diff -u.
6384 * gdbarch.c: Re-generate.
6385
c30e0066
AC
63862002-02-10 Andrew Cagney <ac131313@redhat.com>
6387
9b56c5f3 6388 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
6389 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6390 partial.
6391
6e6d6484
AC
63922002-02-10 Andrew Cagney <ac131313@redhat.com>
6393
6394 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6395 multi-arch partial.
6396 (PUSH_ARGUMENTS): Switch to using predefault.
6397 * gdbarch.c: Regenerate.
6398
c203844d
AC
63992002-02-10 Andrew Cagney <ac131313@redhat.com>
6400
6401 * valops.c (PUSH_ARGUMENTS): Delete definition.
6402 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6403 partial. Default to default_push_arguments.
6404 * gdbarch.h, gdbarch.c: Regenerate.
6405
b5a2688f
AC
64062002-02-09 Andrew Cagney <ac131313@redhat.com>
6407
6408 * defs.h (throw_exception): Rename return_to_top_level. Update
6409 comments.
6410 * utils.c (error_stream, internal_verror, quit): Ditto.
6411 * top.c (throw_exception, catcher): Ditto.
6412 * sparclet-rom.c (sparclet_load): Ditto.
6413 * remote.c (interrupt_query, minitelnet): Ditto.
6414 * remote-sds.c (interrupt_query): Ditto.
6415 * remote-mips.c (mips_error, mips_kill): Ditto.
6416 * ocd.c (interrupt_query): Ditto.
6417 * monitor.c (monitor_interrupt_query): Ditto.
6418 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6419 * target.h: Update comment.
aaa38bb5 6420
b5a2688f 6421 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 6422
2fa5c1e0
AC
64232002-02-09 Andrew Cagney <ac131313@redhat.com>
6424
6425 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6426 default_double_format.
6427 * gdbarch.h, gdbarch.c: Re-generate.
6428 * findvar.c (floatformat_unknown): Delete variable definition.
6429 * doublest.h (floatformat_unknown): Delete variable declaration.
6430
da966255
JB
64312002-02-09 Jim Blandy <jimb@redhat.com>
6432
6433 * stabsread.c (read_type): Add code to parse Sun's syntax for
6434 prototyped function types.
6435
123a4891
AC
64362002-02-09 Andrew Cagney <ac131313@redhat.com>
6437
6438 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6439 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6440
fb39c8f3
PS
64412002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6442
6443 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6444 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6445 now _initialize_xcoffsolib gets called again and overrides the
6446 commands from solib.c in a native configuration.
6447
0b87a11d
MK
64482002-02-09 Mark Kettenis <kettenis@gnu.org>
6449
6450 * doublest.c (store_typed_floating): Don't try to return a value.
6451 Fixes PR gdb/290.
6452
bdc2fc72
JB
64532002-02-08 Jim Blandy <jimb@redhat.com>
6454
6455 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6456 is prototyped and has no arguments, print its argument list as
6457 `(void)'.
6458
da69bbcf
CD
64592002-02-08 Chris Demetriou <cgd@broadcom.com>
6460
6461 * MAINTAINERS (write-after-approval): Add myself.
6462 (paper-trail): I've escaped!
aaa38bb5 6463
b69571f5
CF
64642002-02-08 Christopher Faylor <cgf@redhat.com>
6465
6466 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6467 changes.
6468 (_initialize_check_for_gdb_ini): Ditto.
6469
f6871398
MH
64702002-02-08 Martin M. Hunt <hunt@redhat.com>
6471
6472 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6473 xaprintf -> xasprintf.
6474
4e52d31c
PM
64752002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6476
6477 * win32-nat.c: Remove use of printf and sprintf functions.
6478
39bbf761
RE
64792002-02-08 Richard Earnshaw <rearnsha@arm.com>
6480
6481 * arm-tdep.c (arm_frame_chain_valid): Make static.
6482 (arm_push_arguments): Likewise.
6483 (arm_gdbarch_init): New function.
6484 (_initialize_arm_tdep): Call it.
6485 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6486 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6487 (FRAME_CHAIN_VALID): Delete.
6488 (arm_frame_chain_valid): Delete declaration.
6489 (PUSH_ARGUMENTS): Delete.
6490 (arm_push_arguments): Delete declaration.
6491 (CALL_DUMMY_P): Delete.
6492
9c9532c9
CV
64932002-02-08 Andrew Cagney <ac131313@redhat.com>
6494 Corinna Vinschen <vinschen@redhat.com>
6495
6496 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6497 on builtin float types.
6498
4e8f7a8b
DJ
64992002-02-08 Daniel Jacobowitz <drow@mvista.com>
6500
6501 * utils.c: Include <curses.h> before "bfd.h".
6502 * tui/tui-hooks.c: Likewise.
6503 * tui/tui.c: Likewise.
6504 * tui/tuiCommand.c: Likewise.
6505 * tui/tuiData.c: Likewise.
6506 * tui/tuiDataWin.c: Likewise.
6507 * tui/tuiDisassem.c: Likewise.
6508 * tui/tuiGeneralWin.c: Likewise.
6509 * tui/tuiIO.c: Likewise.
6510 * tui/tuiLayout.c: Likewise.
6511 * tui/tuiRegs.c: Likewise.
6512 * tui/tuiSource.c: Likewise.
6513 * tui/tuiSourceWin.c: Likewise.
6514 * tui/tuiStack.c: Likewise.
6515 * tui/tuiWin.c: Likewise.
6516
cd4bffcf
EZ
65172002-02-07 Elena Zannoni <ezannoni@redhat.com>
6518
6519 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6520 to include space for pseudoregs as well. Update loops accordingly.
6521 (sh_fp_frame_init_saved_regs): Ditto.
6522 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6523
26806ce2
AC
65242002-02-07 Andrew Cagney <ac131313@redhat.com>
6525
6526 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6527 Add Richard Earnshaw to Arm maintainers.
6528
97fdab62
AC
65292002-02-07 Andrew Cagney <ac131313@redhat.com>
6530
a6b98203
AC
6531 * defs.h (warning_begin): Delete declaration.
6532
97fdab62
AC
6533 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6534 Delete macro.
6535
78b29b40
MS
65362002-02-07 Michael Snyder <msnyder@redhat.com>
6537
aaa38bb5 6538 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
6539 Logic bug, remove misplaced else.
6540
d8849953
KD
65412002-02-07 Klee Dienes <klee@apple.com>
6542
6543 * fork-inferior.c (fork_inferior): Add '!' to the list of
6544 characters that need to be quoted when building a string for the
6545 shell. Quote '!' specifically with a backslash, since CSH chokes
6546 when trying to evaluate "str!str".
aaa38bb5 6547
095778a0
NC
65482002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6549
6550 * rdi-share/host.h: Only provide a typedef for bool if it is not
6551 defined.
6552
1900040c
MS
65532002-02-04 Michael Snyder <msnyder@redhat.com>
6554
6555 * breakpoint.h (enum bptype): Add new overlay event bp type.
6556 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 6557
1900040c
MS
6558 * breakpoint.c (create_internal_breakpoint): New function.
6559 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6560 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6561 (create_thread_event_breakpoint): Ditto.
6562 (create_solib_event_breakpoint): Ditto.
6563 (create_overlay_event_breakpoint): New function.
6564 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6565 (update_breakpoints_after_exec): Delete and re-initialize
6566 overlay event breakpoints after an exec. Add FIXME comment
6567 about longjmp breakpoint.
6568 (print_it_typical): Ignore overlay event breakpoints.
6569 (print_one_breakpoint): Ditto.
6570 (mention): Ditto.
6571 (bpstat_what): Do not stop for overlay event breakpoints.
6572 (delete_breakpoint): Don't delete overlay event breakpoints.
6573 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6574 (breakpoint_re_set): Re-create overlay event breakpoint.
6575
6576 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6577 (overlay_manual_command): Disable overlay breakpoints.
6578 (overlay_off_command): Disable overlay breakpoints.
6579
082fc60d
RE
65802002-02-06 Richard Earnshaw <rearnsha@arm.com>
6581
6582 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6583 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6584 to here from config/tm-arm.h.
6585 (coff_sym_is_thumb): Make static.
6586 (arm_elf_make_msymbol_special): New function.
6587 (arm_coff_make_msymbol_special): New function.
6588 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6589 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6590 (coff_sym_is_thumb): Delete declaration.
6591 (arm_elf_make_msymbol_special): Declare.
6592 (arm_coff_make_msymbol_special): Declare.
6593 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6594 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6595
039c5766
RE
65962002-02-06 Richard Earnshaw <rearnsha@arm.com>
6597
6598 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6599
66002002-02-06 Richard Earnshaw <rearnsha@arm.com>
6601
6602 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6603 * gdbarch.c gdbarch.h: Regenerate.
6604 * arch-utils.c (default_print_float_info): New function.
6605 * arch-utils.h (default_print_float_info): Prototype it.
6606 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6607 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6608 (PRINT_FLOAT_INFO): Document it.
6609
6610 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6611 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6612 (PRINT_FLOAT_INFO): Define.
6613
58fa08f0
PM
66142002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6615
aaa38bb5 6616 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
6617 Add typecast to sprintf argument to suppress a warning.
6618
7393af7c
PM
66192002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
6620
58fa08f0 6621 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
6622 to allow easier handling of pass state.
6623 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6624 that gives exception name and address.
6625 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 6626 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 6627 exceptions added.
aaa38bb5
AJ
6628 (child_continue): Correctly report continue_status.
6629 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 6630 TARGET_SIGNAL_0 (new default value).
aaa38bb5 6631 (child_resume): consider sig argument passed to decide if
7393af7c
PM
6632 the exception should be passed to debuggee or not.
6633
6af4589c
MS
66342002-02-05 Michael Snyder <msnyder@redhat.com>
6635
6636 * regcache.c (fetch_register): Call target_fetch_register
6637 only if we don't call FETCH_PSEUDO_REGISTER.
6638 (store_register): Call target_store_register only if we
6639 don't call STORE_PSEUDO_REGISTER.
6640
a2cf933a
EZ
66412002-02-05 Elena Zannoni <ezannoni@redhat.com>
6642
6643 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6644 ELF_MAKE_MSYMBOL_SPECIAL.
6645 * gdbarch.c, gdbarch.h: Regenerate.
6646 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 6647 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
6648 * elfread.c (elf_symtab_read): Compile use of
6649 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6650 multiarched.
6651 * coffread.c (coff_symtab_read): Ditto, for
6652 COFF_MAKE_MSYMBOL_SPECIAL.
6653
6bb7be43
JB
66542002-02-05 Jim Blandy <jimb@redhat.com>
6655
6656 * solib-svr4.c (svr4_truncate_ptr): New function.
6657 (svr4_relocate_section_addresses): Do the address arithmetic with
6658 the appropriate truncation for target addresses, even when
6659 CORE_ADDR is larger than a target address.
6660
e18651ec
DJ
66612002-02-05 Daniel Jacobowitz <drow@mvista.com>
6662
6663 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6664 to (int *).
6665
6b2725be
DJ
66662002-02-05 Daniel Jacobowitz <drow@mvista.com>
6667
6668 * gdbserver/linux-low.c (kill_inferior): Remove commented out
6669 code.
6670
fca9e603
DJ
66712002-02-05 Daniel Jacobowitz <drow@mvista.com>
6672
6673 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6674
6c537a52
DJ
66752002-02-05 Daniel Jacobowitz <drow@mvista.com>
6676
6677 * gdbserver/linux-low.c: Remove unused include files.
6678
d844cde6
DJ
66792002-02-05 Daniel Jacobowitz <drow@mvista.com>
6680
6681 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6682 (read_inferior_memory): Use it.
6683 (write_inferior_memory): Likewise.
6684
d07c63e7
DJ
66852002-02-05 Daniel Jacobowitz <drow@mvista.com>
6686
6687 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6688 grubbing through sys_errlist.
6689
da6d8c04
DJ
66902002-02-05 Daniel Jacobowitz <drow@mvista.com>
6691
6692 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6693
5b421780
PM
66942002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6695 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6696
9f60d481
AC
66972002-02-04 Andrew Cagney <ac131313@redhat.com>
6698
6699 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6700 (do_sfunc, set_cmd_sfunc): New functions.
6701
6702 * command.h (struct cmd_list_element): Add field func.
6703 * cli/cli-decode.h (struct cmd_list_element): Ditto.
6704 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6705 * cli/cli-decode.h: Ditto.
6706
6707 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6708 (help_all, help_cmd_list): Ditto.
6709 (find_cmd, complete_on_cmdlist): Ditto.
6710 * top.c (execute_command): Ditto.
6711
6712 * cli/cli-setshow.c (do_setshow_command): Call func instead of
6713 function.sfunc.
6714
6715 * infcmd.c (notice_args_read): Fix function signature.
6716
6717 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6718 * cli/cli-decode.c (add_set_cmd): Ditto.
6719 * utils.c (initialize_utils): Ditto.
6720 * maint.c (_initialize_maint_cmds): Ditto.
6721 * infrun.c (_initialize_infrun): Ditto.
6722 * demangle.c (_initialize_demangler): Ditto.
6723 * remote.c (add_packet_config_cmd): Ditto.
6724 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6725 * cris-tdep.c (_initialize_cris_tdep): Ditto.
6726 * proc-api.c (_initialize_proc_api): Ditto.
6727 * kod.c (_initialize_kod): Ditto.
6728 * valprint.c (_initialize_valprint): Ditto.
6729 * top.c (init_main): Ditto.
6730 * infcmd.c (_initialize_infcmd): Ditto.
6731 * corefile.c (_initialize_core): Ditto.
6732 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6733 * arch-utils.c (initialize_current_architecture): Ditto.
6734 (_initialize_gdbarch_utils): Ditto.
6735 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6736
6737 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6738 * wince.c (_initialize_inftarg): Ditto.
6739 * symfile.c (_initialize_symfile): Ditto.
6740 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6741 * language.c (_initialize_language): Ditto.
6742 * arc-tdep.c (_initialize_arc_tdep): Ditto.
6743
f9ba0717
MS
67442002-02-04 Michael Snyder <msnyder@redhat.com>
6745
6746 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6747
0c74b2a7
DJ
67482002-02-04 Daniel Jacobowitz <drow@mvista.com>
6749
6750 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6751 Add rules for building the register data files.
6752
c638789f
DJ
67532002-02-04 Daniel Jacobowitz <drow@mvista.com>
6754
6755 * regformats/regdat.sh: Add braces to the definition of
6756 expedite_regs_${arch}.
6757
db253027
DJ
67582002-02-04 Daniel Jacobowitz <drow@mvista.com>
6759
6760 * regformats/regdef.h (struct reg): Add comment describing the
6761 requirements for offset and size fields.
6762
206be19c
AS
67632002-02-04 Andreas Schwab <schwab@suse.de>
6764
6765 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6766 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6767
181c1381
RE
67682002-02-04 Richard Earnshaw <rearnsha@arm.com>
6769
6770 * gdbarch.sh (copyright): Update years in generated header.
6771 (SMASH_TEXT_ADDRESS): Add rule.
db253027 6772 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
6773 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6774 * dbxread.c: Likewise.
6775 * dwarfread.c: Likewise.
6776 * elfread.c: Likewise.
6777 * somread.c: Likewise.
6778
6779 * arm-tdep.c (arm_smash_text_address): New function.
6780 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6781
fa4ba8da
PM
67822002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6783
6784 Add support for hardware watchpoints on win32 native.
aaa38bb5 6785 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 6786 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 6787 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
6788 of debug registers.
6789 (debug_registers_changed): New variable. Reflects when debug registers
6790 are changed and need to be written to inferior.
aaa38bb5 6791 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
6792 was set, used when new threads are created.
6793 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6794 i386-nat code.
6795 (thread_rec): Set dr array if id is the thread of current_event .
6796 (child_continue, child_resume): Change the debug registers for all
6797 threads if debug_registers_changed.
6798 (child_add_thread): Change the debug registers if debug_registers_used.
6799 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6800 Link nm.h to new nm-cygwin.h file.
6801 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6802 of hardware registers.
6803
a73c86fb
AC
68042002-02-03 Andrew Cagney <ac131313@redhat.com>
6805
6806 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6807 Restore behavour broken by 2002-01-20 Andrew Cagney
6808 <ac131313@redhat.com> IEEE_FLOAT removal.
6809
acf5ed49
DJ
68102002-02-03 Daniel Jacobowitz <drow@mvista.com>
6811
6812 * c-valprint.c (c_val_print): Pass a proper valaddr to
6813 cp_print_class_method.
6814 * valops.c (search_struct_method): If there is only one method
6815 and args is NULL, return that method.
6816
493d28d5
DJ
68172002-02-03 Daniel Jacobowitz <drow@mvista.com>
6818
6819 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6820 accessing tag_name directly.
6821
7495dfdb
DJ
68222002-02-03 Daniel Jacobowitz <drow@mvista.com>
6823
6824 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6825 of accessing tag_name directly.
6826
dd6bda65
DJ
68272002-02-03 Daniel Jacobowitz <drow@mvista.com>
6828
6829 PR gdb/280
6830 * gdbtypes.c (replace_type): New function.
6831 * gdbtypes.h (replace_type): Add prototype.
6832 * stabsread.c (read_type): Use replace_type.
6833
88fe217c
RE
68342002-02-03 Richard Earnshaw <rearnsha@arm.com>
6835
6836 * Makefile.in (memattr.o): Add missing dependencies rule.
6837
e5d66720
PS
68382002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6839
6840 * breakpoint.c (break_at_finish_command): Really export.
6841 (break_at_finish_at_depth_command): Ditto.
6842 (tbreak_at_finish_command): Ditto.
6843 * hppa-tdep.c: Include completer.h.
6844 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6845 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6846
fffee0be
AC
68472002-02-01 Andrew Cagney <ac131313@redhat.com>
6848
6849 * utils.c (do_write): New function.
6850 (error_stream): Rewrite combining the code from error_begin and
6851 verror.
6852 (verror): Rewrite using error_stream.
6853 (error_begin): Delete function.
6854
255e7dbf
AC
68552002-02-01 Andrew Cagney <ac131313@redhat.com>
6856
6857 * utils.c (error_begin): Make static.
6858 * defs.h (error_begin): Delete declaration.
6859
6860 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6861 (decode_line_1): Use cplusplus_error instead of error_begin,
6862 cplusplus_hint and return_to_top_level.
6863 * coffread.c (coff_symfile_read): Use error instead of error_begin
6864 and return_to_top_level.
6865 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6866
ddfe3c15
AC
68672002-02-01 Andrew Cagney <ac131313@redhat.com>
6868
6869 * language.h (type_error, range_error): Make string parameter
6870 constant.
6871 * language.c (warning_pre_print): Delete extern declaration.
6872 * dwarfread.c (warning_pre_print): Ditto.
6873 * language.c (type_error, range_error): Rewrite to use verror and
6874 vwarning instead of warning_begin.
6875
03ac34d5
MS
68762002-02-01 Michael Snyder <msnyder@redhat.com>
6877
261c4ca2
MS
6878 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6879 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 6880
e00d1dc8
AC
68812002-02-01 Andrew Cagney <ac131313@redhat.com>
6882
6883 * command.h (NO_FUNCTION): Delete macro.
6884 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6885 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6886 * tracepoint.c (_initialize_tracepoint): Ditto.
6887 * cli/cli-decode.c (add_set_cmd): Ditto.
6888 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 6889
76b79d6e
DJ
68902002-02-01 Daniel Jacobowitz <drow@mvista.com>
6891
6892 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6893 Update ``this'' pointer when calling virtual functions.
6894
799f9e91
MS
68952002-02-01 Michael Snyder <msnyder@redhat.com>
6896
c7bd442c 6897 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
6898 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6899
3cf384d4
DJ
69002002-02-01 Daniel Jacobowitz <drow@mvista.com>
6901
6902 * regformats/reg-arm.dat: New file.
6903 * regformats/reg-i386.dat: New file.
6904 * regformats/reg-ia64.dat: New file.
6905 * regformats/reg-m68k.dat: New file.
6906 * regformats/reg-mips.dat: New file.
6907 * regformats/reg-ppc.dat: New file.
6908 * regformats/reg-sh.dat: New file.
6909 * regformats/regdef.h: New file.
6910 * regformats/regdat.sh: New file.
6911
0defa245
RE
69122002-02-01 Richard Earnshaw <reanrsha@arm.com>
6913
6914 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6915 (arm_frame_args_address, arm_frame_locals_address): New functions.
6916 (arm_frame_num_args): New function.
6917 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6918 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6919 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6920
405f26e6
MS
69212002-01-31 Michael Snyder <msnyder@redhat.com>
6922
502fd408
MS
6923 * breakpoint.c (break_at_finish_command): Export.
6924 (break_at_finish_at_depth_command): Export.
6925 (tbreak_at_finish_command): Export.
6926 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6927 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6928 "tbreak" commands, which are HPPA specific.
6929
7d35e135
MS
6930 * printcmd.c (disassemble_command): Remove an ancient
6931 artifact of an old merge.
6932
aaa38bb5 6933 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
6934 Define enum constant values for overlay mode.
6935 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
6936 (overlay_is_mapped, overlay_auto_command,
6937 overlay_manual_command): Ditto.
d874f1e2 6938
aaa38bb5
AJ
6939 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6940 breakpoint_here_p, breakpoint_inserted_here_p,
6941 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
6942 describe_other_breakpoints, check_duplicates, clear_command):
6943 Coding standard fixes.
6944
8add0441 6945 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 6946 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
6947 code: check bfd SEC_READONLY flag for section.
6948
e351066e
AC
69492002-01-31 Andrew Cagney <ac131313@redhat.com>
6950
7d35e135 6951 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 6952
8a48e967
DJ
69532002-01-30 Daniel Jacobowitz <drow@mvista.com>
6954
6955 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6956 data symbols, since we search based on textlow and texthigh.
6957 (find_pc_sect_symtab): Likewise.
6958
f5a96129
AC
69592002-01-30 Andrew Cagney <ac131313@redhat.com>
6960
6961 * defs.h (vwarning): Declare.
f5a96129
AC
6962 * utils.c (vwarning): New function.
6963 (warning): Call vwarning.
6964 (warning_begin): Delete function.
6965
6966 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6967 the warning message.
6968 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6969 warning_begin.
6970
cefd4ef5
MS
69712002-01-30 Michael Snyder <msnyder@redhat.com>
6972
1a703748
MS
6973 * NEWS: Mention "set trust-readonly-sections" command.
6974 Mention generate-core-file command.
cefd4ef5 6975
3a11626d
MS
69762002-01-15 Michael Snyder <msnyder@redhat.com>
6977
6978 * target.c: New command, "set trust-readonly-sections on".
6979 (do_xfer_memory): Honor the suggestion to trust readonly sections
6980 by reading them from the object file instead of from the target.
6981 (initialize_targets): Register command "set trust-readonly-sections".
6982
d1c7e53b
AC
69832002-01-29 Andrew Cagney <ac131313@redhat.com>
6984
6985 * parse.c (target_map_name_to_register): Simplify, search regs and
6986 pseudo-regs using a single loop.
6987
e2c9a72c
AC
69882002-01-30 Andrew Cagney <ac131313@redhat.com>
6989
6990 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6991
69824b4e
MK
69922002-01-15 Rodney Brown <rbrown64@csc.com.au>
6993
6994 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6995 * config/i386/i386v42mp.mh: Add i387-nat.o .
6996 * i386v4-nat.c: Include i387-nat.h.
6997 (supply_fpregset): Use i387_supply_fsave.
6998 (fill_fpregset): Use i387_fill_fsave.
6999
6eb69eab
RE
70002002-01-30 Richard Earnshaw <rearnsha@arm.com>
7001
7002 * arm-tdep.c (arm_call_dummy_words): Define.
7003 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7004 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7005 (CALL_DUMMY_WORDS): Define.
7006 (arm_call_dummy_words): Declare.
7007 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7008 (arm_linux_call_dummy_words): Declare.
7009
9852326a
AS
70102002-01-30 Andreas Schwab <schwab@suse.de>
7011
7012 * m68klinux-nat.c: Fix last change to use regcache_collect
7013 instead of referencing registers[] directly.
7014
977a3030
AC
70152002-01-29 Andrew Cagney <ac131313@redhat.com>
7016
7017 * parse.c (target_map_name_to_register): Delete code wrapped in
7018 #ifdef REGISTER_NAME_ALIAS_HOOK.
7019
2076c72b
MS
70202002-01-28 Michael Snyder <msnyder@redhat.com>
7021
7022 * regcache.c (legacy_read_register_gen): Need to be able to
7023 read pseudo-register as well as real register.
7024 (legacy_write_register_gen): Ditto.
7025
8fcc723b
AC
70262002-01-28 Andrew Cagney <ac131313@redhat.com>
7027
7028 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7029 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7030 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7031 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7032 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7033 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7034 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7035 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7036 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7037 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7038 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7039 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7040 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7041 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7042 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7043 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7044 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7045 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7046 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7047 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7048
afe64c1a
AC
70492002-01-28 Andrew Cagney <ac131313@redhat.com>
7050
7051 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7052 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7053 (initialize_current_architecture): Update target_byte_order using
7054 information from BFD.
aaa38bb5 7055 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
7056 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7057
75bc7ddf
AC
70582002-01-28 Andrew Cagney <ac131313@redhat.com>
7059
7060 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7061 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7062
7063 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7064 #ifdef INVALID_FLOAT.
7065 * infcmd.c (do_registers_info): Ditto.
7066 * values.c (unpack_double): Ditto. Add comment.
7067
7068 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7069 already commented out.
7070
0280a90a
AS
70712002-01-26 Andreas Schwab <schwab@suse.de>
7072
7073 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7074 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7075 registers and add support for PTRACE_GETREGS.
7076
7072a954
AC
70772002-01-24 Andrew Cagney <ac131313@redhat.com>
7078
7079 GDB 5.1.1 released from 5.1 branch.
7080 * NEWS: Add 5.1.1 news.
7081 * README: Sync with 5.1 branch.
7082
86f902e0
FF
70832002-01-23 Fred Fish <fnf@redhat.com>
7084
7085 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7086 stabstring on initial malloc. Reallocing will copy it for us,
7087 if necessary.
7088
8af51c36
EZ
70892002-01-23 Elena Zannoni <ezannoni@redhat.com>
7090
aaa38bb5 7091 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
7092 (HFILES_NO_SRCDIR): Remove hpread.h.
7093 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7094 (hpread.o): Update dependencies.
7095 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7096
7097 * hp-psymtab-read.c: Remove file.
7098 * hp-symtab-read.c: Remove file.
7099 * hpread.h: Remove file.
7100
7101 * hpread.c: Merge all contents of hp-psymtab-read.c,
7102 hp-symtab-read.c and hpread.h into this file, as it was prior to
7103 January 1999.
7104
7105 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 7106 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
7107 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7108 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7109
dc5cfeb6
EZ
71102002-01-23 Elena Zannoni <ezannoni@redhat.com>
7111
7112 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7113 fill_gregset): Call gdbarch_tdep() just once, assign result to
7114 variable and use that, instead of calling the function several
7115 times.
7116
ea87b71b
AO
71172002-01-24 Alexandre Oliva <aoliva@redhat.com>
7118
7119 * configure.host: Accept sparcv9 as alias for sparc64.
7120 * configure.tgt: Likewise.
7121
13fc0c2f
KB
71222002-01-22 Kevin Buettner <kevinb@redhat.com>
7123
7124 * solib-aix5.c (build_so_list_from_mapfile)
7125 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7126 arguments is not reversed.
7127 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7128 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 7129
7bd872fe
EZ
71302002-01-22 Elena Zannoni <ezannoni@redhat.com>
7131
7132 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7133 modified version of obsolete sh_fetch_pseudo_register.
7134 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7135 (sh4_register_read): New function.
7136 (sh_pseudo_register_write): New function. Renamed and modified
7137 version of obsolete sh_store_pseudo_register.
7138 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7139 (sh4_register_write): New function.
7140 (sh_gdbarch_init): Remove setting of gdbarch function
7141 fetch_pseudo_register and store_pseudo_register. Remove setting of
7142 register_convert_to_raw, register_convert_to_virtual,
7143 register_convertible.
7144 (sh_sh4_register_convertible): Delete. No longer needed. All is
7145 taken care by architecture specific functions
7146 register_read/register_write.
7147 (sh_sh4_register_convert_to_virtual): Make static.
7148 (sh_sh4_register_convert_to_raw): Ditto.
7149
069e84fd
AC
71502002-01-22 Andrew Cagney <ac131313@redhat.com>
7151
7152 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7153 (floatformat_is_nan, floatformat_mantissa): Ditto.
7154
7155 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7156 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7157 builtin_type_ieee_double_little,
7158 builtin_type_ieee_double_littlebyte_bigword,
7159 builtin_type_m68881_ext, builtin_type_i960_ext,
7160 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7161 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7162 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7163 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7164
211a4f69
CV
71652002-01-22 Corinna Vinschen <vinschen@redhat.com>
7166
7167 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7168 parameter. Set frameless flag if it exists and depended of
7169 whether the scanned function is frameless or not.
7170 (xstormy16_skip_prologue): If function is frameless, return
7171 result of xstormy16_scan_prologue().
7172 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7173 call.
7174
f81353e4
EZ
71752002-01-21 Elena Zannoni <ezannoni@redhat.com>
7176
7177 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7178 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7179 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7180 sh_sh4_register_byte, sh_sh4_register_raw_size,
7181 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7182 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7183 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7184 sh_store_pseudo_register, sh_do_pseudo_register): Call
7185 gdbarch_tdep() just once, assign result to variable and use that,
7186 instead of calling the function several times.
7187
63c73a17
MK
71882002-01-20 Mark Kettenis <kettenis@gnu.org>
7189
7190 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7191 macros instead of LAST_FPU_CTRL_REGNUM.
7192 (store_register): Likewise.
7193
39ad761d
JB
71942002-01-21 Jim Blandy <jimb@redhat.com>
7195
7196 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7197 is up-to-date before running the program, not just when a program
7198 exits.
7199
3d74b771
FF
72002002-01-21 Fred Fish <fnf@redhat.com>
7201
7202 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7203 when we have found all instructions we are looking for.
7204
966fbf70
RE
72052002-01-21 Richard Earnshaw <rearnsha@arm.com>
7206
7207 * arm-tdep.c (arm_register_name): New function.
7208 (arm_registers_names): Make static.
7209 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7210 (arm_register_name): Declare.
7211 (REGISTER_NAME): Use it.
7212
c3b4394c
RE
72132002-01-21 Richard Earnshaw <rearnsha@arm.com>
7214 Kevin Buettner <kevinb@redhat.com>
7215
7216 Convert arm targets to new FRAME interface.
7217 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7218 (arm_frame_find_save_regs): Delete.
7219 (arm_frame_init_saved_regs): New.
7220 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7221 Allocate extra_info as required. Convert all uses of fsr.regs
7222 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7223 to use extra_info.
7224 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7225 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7226 (check_prologue_cache, save_prologue_cache): Likewise.
7227 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7228 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7229 (FRAME_FIND_SAVED_REGS): Delete.
7230 (arm_frame_find_saved_regs): Delete prototype.
7231 (arm_frame_init_saved_regs): New prototype.
7232 (FRAME_INIT_SAVED_REGS): Define.
7233
61d99182
AC
72342002-01-20 Andrew Cagney <ac131313@redhat.com>
7235
7236 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7237
6aaea291
AC
72382002-01-20 Andrew Cagney <ac131313@redhat.com>
7239
7240 From Jeff Law <law@redhat.com>:
7241 * infttrace.c: Include <sys/pstat.h>.
7242 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7243 exec file if the ttrace equivalent fails.
7244
15f698d2
AC
72452002-01-20 Andrew Cagney <ac131313@redhat.com>
7246
7247 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7248 (closeLogFile): Ditto.
7249
f86ddd7c
MC
72502002-01-20 Michael Chastain <mec@shout.net>
7251
7252 * top.c (print_gdb_version): Bump copyright year to 2002.
7253
904507ce
AC
72542002-01-20 Andrew Cagney <ac131313@redhat.com>
7255
7256 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7257 Zannoni and Eli Zaretskii.
7258
d7f0b9ce
DJ
72592002-01-20 Daniel Jacobowitz <drow@mvista.com>
7260
7261 * buildsym.c: Update copyright years.
7262 * c-typeprint.c: Likewise.
7263 * dwarf2read.c: Likewise.
7264 * f-typeprint.c: Likewise.
7265 * gdbtypes.c: Likewise.
7266 * gdbtypes.h: Likewise.
7267 * hp-symtab-read.c: Likewise.
7268 * hpread.c: Likewise.
7269 * mdebugread.c: Likewise.
7270 * p-typeprint.c: Likewise.
7271
3fd3d7d2
AC
72722002-01-20 Andrew Cagney <ac131313@redhat.com>
7273
7274 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7275 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7276 byte-order selectable.
7277 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7278 * arch-utils.c: Ditto.
7279 (set_endian): Ditto.
7280 (set_endian_from_file): Ditto.
7281 * gdbserver/low-sim.c (create_inferior): Ditto.
7282 * gdbarch.sh: Ditto.
7283 * gdbarch.h: Re-generate.
aaa38bb5
AJ
7284 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7285 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7286 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7287 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7288 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7289 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7290 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
7291 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7292 macro definition.
7293 * config/mips/tm-wince.h: Remove #undef of macro
7294 TARGET_BYTE_ORDER_SELECTABLE.
7295 * config/sh/tm-wince.h: Ditto.
7296
b02dede2
DJ
72972002-01-20 Daniel Jacobowitz <drow@mvista.com>
7298
7299 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7300 member function fields. Add accessor macro
7301 TYPE_FN_FIELD_ARTIFICIAL.
7302 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7303 * c-typeprint.c (c_type_print_base): Skip artificial member
7304 functions.
7305
c3643761
DJ
73062002-01-20 Daniel Jacobowitz <drow@mvista.com>
7307
7308 * f-typeprint.c: Delete unused function f_type_print_args.
7309 * p-typeprint.c: Delete unused function pascal_type_print_args.
7310
8176bb6d
DJ
73112002-01-20 Daniel Jacobowitz <drow@mvista.com>
7312
7313 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7314 comment. Add ``artificial'' to ``union field_location''.
7315
7316 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7317
7318 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7319 * mdebugread.c (parse_symbol): Likewise.
7320 * stabsread.c (define_symbol): Likewise.
7321 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7322 initializing TYPE_FIELD_BITPOS to n (obsolete).
7323 (hpread_doc_function_type): Likewise.
7324 * hpread.c (hpread_function_type): Likewise.
7325
7fd60527
AC
73262002-01-20 Andrew Cagney <ac131313@redhat.com>
7327
7328 * configure.in (host_makefile_frag): Only require a host makefile
7329 fragment when a native build.
7330 * configure: Re-generate.
7331
c2f05ac9
AC
73322002-01-20 Andrew Cagney <ac131313@redhat.com>
7333
7334 * doublest.h (floatformat_from_type): Declare.
7335 * doublest.c (floatformat_from_type): New function.
7336 (convert_typed_floating): Use.
7337
7338 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7339 call to function floatformat_from_type.
7340
7341 * gdbarch.sh (IEEE_FLOAT): Delete.
7342 * gdbarch.h, gdbarch.c: Re-generate.
7343 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7344 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7345 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7346 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7347 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7348 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7349 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7350 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7351 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7352 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7353 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
7354 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7355
7356 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7357 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7358 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7359 * sh-tdep.c (sh_gdbarch_init): Ditto.
7360 * mips-tdep.c (mips_gdbarch_init): Ditto.
7361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7362 * cris-tdep.c (cris_gdbarch_init): Ditto.
7363
abf22e64
AJ
73642002-01-20 Jiri Smid <smid@suse.cz>
7365
7366 * configure.host, configure.tgt: Support x86-64.
7367 * NEWS: Note new target x86-64.
7368
b7c4cbf8
AJ
7369 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7370 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7371 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7372 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7373 x86-64-linux-nat.o): Fix dependencies.
7374
82600034
AC
73752002-01-19 Andrew Cagney <ac131313@redhat.com>
7376
7377 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7378 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7379 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7380 * config/sparc/xm-sun4os4.h: Delete file.
7381 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 7382
bbe5c628
AC
73832002-01-19 Andrew Cagney <ac131313@redhat.com>
7384
7385 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7386 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7387 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7388 * config/i386/i386lynx.mh (XM_FILE): Delete.
7389 * config/rs6000/xm-rs6000ly.h: Delete file.
7390 * config/sparc/xm-sparclynx.h: Delete file.
7391 * config/m68k/xm-m68klynx.h: Delete file.
7392 * config/i386/xm-i386lynx.h: Delete file.
7393 * config/xm-lynx.h: Delete file.
7394 * config/djgpp/fnchange.lst: Update.
7395
f8453e34
JT
73962002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7397
7398 * alpha-tdep.c (alpha_register_byte): New function.
7399 (alpha_register_raw_size): Ditto.
7400 (alpha_register_virtual_size): Ditto.
7401 (alpha_skip_prologue_internal): Renamed from
7402 alpha_skip_prologue.
7403 (alpha_skip_prologue): New version that calls
7404 alpha_skip_prologue_internal.
7405 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7406 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7407 second argument from alpha_skip_prologue.
7408 (REGISTER_BYTE): Use alpha_register_byte.
7409 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7410 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7411 (FRAMELESS_FUNCTION_INVOCATION): Use
7412 generic_frameless_function_invocation_not.
7413 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7414 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7415
52d9e613
AC
74162002-01-19 Andrew Cagney <ac131313@redhat.com>
7417
7418 * config/mips/xm-news-mips.h: Delete file.
7419 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7420
7421 * config/m88k/xm-m88k.h: Delete file.
7422 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7423 * config/m88k/xm-delta88v4.h: Ditto.
7424 * config/m88k/xm-delta88.h: Ditto.
7425
7426 * config/alpha/xm-fbsd.h: Delete file.
7427 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7428
7429 * config/sparc/xm-sparc.h: Delete file.
7430 * Makefile.in (xm-sun4os4.h): Delete dependency.
7431 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7432 * config/sparc/xm-sun4os4.h: Ditto.
7433 * config/sparc/xm-linux.h: Ditto.
7434
7435 * config/i386/xm-windows.h: Delete file.
7436
2d1b2124
AC
74372002-01-19 Andrew Cagney <ac131313@redhat.com>
7438
7439 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7440 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7441
ee1f65f0
JT
74422002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7443
7444 * alpha-tdep.c (alpha_call_dummy_words): New.
7445 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7446 (CALL_DUMMY_P): Define.
7447 (CALL_DUMMY_WORDS): Define.
7448 (SIZEOF_CALL_DUMMY_WORDS): Define.
7449
98081e55
PB
74502002-01-19 Per Bothner <per@bothner.com>
7451
7452 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7453 isn't NULL, which can happen with some gcj-3.x-produced code.
7454
0d056799
JT
74552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7456
7457 * alpha-tdep.c (alpha_register_virtual_type): New function.
7458 (alpha_init_frame_pc_first): Ditto.
7459 (alpha_fix_call_dummy): Ditto.
7460 (alpha_store_struct_return): Ditto.
7461 (alpha_extract_struct_value_address): Ditto.
7462 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7463 alpha_register_virtual_type.
7464 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7465 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7466 alpha_extract_struct_value_address.
7467 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7468 (INIT_FRAME_PC): Use init_frame_pc_noop.
7469 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7470
4604bcad
MK
74712002-01-19 Mark Kettenis <kettenis@gnu.org>
7472
7473 * i386gnu-nat.c: Include "i386-tdep.h".
7474 (fetch_fpregs): Simplify code dealing with uninitialized floating
7475 point states such that it doesn't require FP7_REGNUM.
7476
140f9984
JT
74772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7478
abf22e64
AJ
7479 * alpha-tdep.c (frame_extra_info): New.
7480 (alpha_find_saved_regs): Make static. Use
140f9984
JT
7481 frame->extra_info.
7482 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
7483 (alpha_frame_saved_pc): Use frame->extra_info.
7484 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7485 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
7486 (init_extra_frame_info): Rename to...
7487 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 7488 (alpha_print_extra_frame_info): New function.
140f9984
JT
7489 (alpha_frame_locals_address): Ditto.
7490 (alpha_frame_args_address): Ditto.
abf22e64 7491 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
7492 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7493 alpha_frame_args_address.
abf22e64 7494 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 7495 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
7496 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7497 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
7498 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7499 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7500
d734c450
JT
75012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7502
7503 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7504 (alpha_cannot_fetch_register): Ditto.
7505 (alpha_cannot_store_register): Ditto.
7506 (alpha_register_convertible): Ditto.
7507 (alpha_use_struct_convention): Ditto.
7508 * config/alpha/tm-alpha.h: Update copyright years.
7509 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7510 (INNER_THAN): Use core_addr_lessthan.
7511 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7512 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7513 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7514 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7515 (FRAME_CHAIN): Remove unnecessary cast.
7516
b4ceaee6
AC
75172002-01-18 Andrew Cagney <ac131313@redhat.com>
7518
7519 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7520 obsolete.
7521
0a65a603
AC
75222002-01-18 Andrew Cagney <ac131313@redhat.com>
7523
7524 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7525 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7526 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7527 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7528 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7529 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7530 * x86-64-linux-nat.c: Ditto.
7531
636a6dfc
JT
75322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7533
abf22e64 7534 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
7535 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7536 (REGISTER_NAME): Define.
7537
acceddb6
JT
75382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7539
7540 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7541
ec32e4be
JT
75422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * alpha-tdep.c: Update copyright years.
7545 (alpha_next_pc): New function.
7546 (alpha_software_single_step): Ditto.
7547 * config/alpha/tm-alpha.h: Add prototype for
7548 alpha_software_single_step.
7549
e771a871
JT
75502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7551
7552 * alphabsd-nat.c: Update copyright years.
7553 (fill_gregset): Use regcache_collect.
7554 (fill_fpregset): Likewise.
7555 (fetch_inferior_registers): Only fetch integer registers
7556 if requested to do so.
7557 (store_inferior_registers): Only store integer registers
7558 if requested to do so.
7559
7708fa01
AC
75602002-01-17 Andrew Cagney <ac131313@redhat.com>
7561
7562 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7563 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7564 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7565 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7566 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7567 * config/arm/linux.mh (XDEPFILES): Delete.
7568 * config/arm/nbsd.mh (XDEPFILES): Delete.
7569 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7570 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7571 * config/i386/i386m3.mh (XDEPFILES): Delete.
7572 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7573 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7574 * config/i386/fbsd.mh (XDEPFILES): Delete.
7575 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7576 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7577 * config/i386/i386v4.mh (XDEPFILES): Delete.
7578 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7579 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7580 * config/i386/i386aix.mh (XDEPFILES): Delete.
7581 * config/i386/go32.mh (XDEPFILES): Delete.
7582 * config/i386/cygwin.mh (XDEPFILES): Delete.
7583 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7584 * config/i386/i386mach.mh (XDEPFILES): Delete.
7585 * config/i386/i386v32.mh (XDEPFILES): Delete.
7586 * config/i386/linux.mh (XDEPFILES): Delete.
7587 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7588 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7589 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7590 * config/i386/i386sco.mh (XDEPFILES): Delete.
7591 * config/i386/i386v.mh (XDEPFILES): Delete.
7592 * config/i386/nbsd.mh (XDEPFILES): Delete.
7593 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7594 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7595 * config/i386/symmetry.mh (XDEPFILES): Delete.
7596 * config/i386/obsd.mh (XDEPFILES): Delete.
7597 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7598 * config/ia64/linux.mh (XDEPFILES): Delete.
7599 * config/ia64/aix.mh (XDEPFILES): Delete.
7600 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7601 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7602 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7603 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7604 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7605 * config/m68k/linux.mh (XDEPFILES): Delete.
7606 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7607 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7608 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7609 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7610 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7611 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7612 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7613 * config/m88k/delta88.mh (XDEPFILES): Delete.
7614 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7615 * config/m88k/m88k.mh (XDEPFILES): Delete.
7616 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7617 * config/mips/linux.mh (XDEPFILES): Delete.
7618 * config/mips/irix6.mh (XDEPFILES): Delete.
7619 * config/mips/irix5.mh (XDEPFILES): Delete.
7620 * config/mips/irix4.mh (XDEPFILES): Delete.
7621 * config/mips/irix3.mh (XDEPFILES): Delete.
7622 * config/mips/decstation.mh (XDEPFILES): Delete.
7623 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7624 (NATDEPFILES): Move core-aout.o to here.
7625 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7626 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7627 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7628 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7629 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7630 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7631 * config/pa/hpux11.mh (XDEPFILES): Delete.
7632 * config/powerpc/aix.mh (XDEPFILES): Delete.
7633 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7634 * config/powerpc/linux.mh (XDEPFILES): Delete.
7635 * config/romp/rtbsd.mh: Rename XDEPFILES.
7636 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7637 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7638 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7639 * config/s390/s390.mh (XDEPFILES): Delete.
7640 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7641 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7642 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7643 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7644 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7645 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7646 * config/sparc/linux.mh (XDEPFILES): Delete.
7647 * config/vax/vaxult.mh (XDEPFILES): Delete.
7648 * config/vax/vaxult2.mh (XDEPFILES): Delete.
7649 * Makefile.in (DEPFILES): Remove XDEPFILES.
7650
375fc983
AC
76512002-01-17 Andrew Cagney <ac131313@redhat.com>
7652
7653 * utils.c (internal_verror): Fix comments, default is yes not no.
7654 Update queries to match. Default to quit and dump core.
7655
8926118c
AC
76562002-01-17 Andrew Cagney <ac131313@redhat.com>
7657
7658 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
7659 copyright.
7660 * defs.h, event-top.c, gdbcmd.h: Ditto.
7661 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7662 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7663 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7664 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7665 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7666 * mi/mi-main.c:Ditto.
7667
7668 * stack.c, symfile.c: Update copyright.
7669
45b7b345
DJ
76702002-01-17 Daniel Jacobowitz <drow@mvista.com>
7671
db728ff7
DJ
7672 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7673 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7674 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7675 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 7676
db728ff7
DJ
76772002-01-17 Daniel Jacobowitz <drow@mvista.com>
7678
7679 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7680 * gdbserver/low-lynx.c (myattach): Likewise.
7681 * gdbserver/low-nbsd.c (myattach): Likewise.
7682 * gdbserver/low-sim.c (myattach): Likewise.
7683 * gdbserver/low-sparc.c (myattach): Likewise.
7684 * gdbserver/low-sun3.c (myattach): Likewise.
7685
7686 * gdbserver/low-linux.c (myattach): New function.
45b7b345 7687
db728ff7 7688 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
7689 (main): Handle "--attach".
7690
8de3c354
AC
76912002-01-16 Andrew Cagney <ac131313@redhat.com>
7692
7693 * MAINTAINERS (language support): Daniel Jacobwitz is C++
7694 maintainer.
7695
b0129042
DJ
76962002-01-15 Daniel Jacobowitz <drow@mvista.com>
7697
7698 * c-typeprint.c (is_type_conversion_operator): Add additional
7699 check for non-conversion operators.
7700
ba8679fb 77012002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
7702
7703 * linux-proc.c: Add "info proc" command, a la procfs.c.
7704 (read_mapping): New function, abstract and re-use code.
7705 (linux_find_memory_regions): Use new func read_mapping.
7706 (linux_info_proc_cmd): New function, implement "info proc".
7707 (_initialize_linux_proc): Add new command "info proc".
7708
e4f9b4d5
MS
77092002-01-15 Michael Snyder <msnyder@redhat.com>
7710
7711 * symfile.c (generic_load): Use bfd_map_over_sections method
7712 instead of manipulating bfd structure members directly.
7713 (add_section_size_callback): New function, bfd sections callback
7714 used by generic_load.
7715 (load_sections_callback): New function, bfd sections callback
7716 used by generic_load.
7717
08cf96df
EZ
77182002-01-15 Elena Zannoni <ezannoni@redhat.com>
7719
abf22e64 7720 [Based on work by Jim Blandy]
08cf96df
EZ
7721 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7722 (builtin_type_vec128): Export.
7723 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7724 types.
7725 (builtin_type_vec128): New builtin type for 128 bit vector
7726 registers.
7727 (build_gdbtypes): Initialize builtin_type_v16qi and
7728 builtin_type_v8hi. Create the vec128 register builtin type
7729 structure.
7730 (build_builtin_type_vec128): New function.
abf22e64 7731 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
7732 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7733 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7734 AltiVec register to new builtin type.
7735
d7242108
DJ
77362001-01-15 Daniel Jacobowitz <drow@mvista.com>
7737
7738 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7739 to make_cv_type.
7740
4ee3352d
AC
77412002-01-14 Andrew Cagney <ac131313@redhat.com>
7742
7743 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7744 CLEAN_UP_REGISTER_VALUE.
7745 * regcache.c (supply_register): Update only call.
7746
f015b2e7
AC
77472002-01-14 Andrew Cagney <ac131313@redhat.com>
7748
7749 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7750 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7751 a29k-*-vxworks* targets as obsolete.
7752
356ae49d
MS
77532002-01-14 Michael Snyder <msnyder@redhat.com>
7754
7755 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7756 until we can resolve portability issues.
7757 * gregset.h: Remove references to fpxregs.
7758 * gcore.c (gcore_command): Initialize note_sec to NULL.
7759
ade8f45e
AC
77602002-01-13 Andrew Cagney <ac131313@redhat.com>
7761
7762 * signals.c (target_signal_to_name): Rewrite. Only use
7763 signals[].name when in bounds and non-NULL.
abf22e64 7764
89c49e7a
AC
77652002-01-13 Andrew Cagney <ac131313@redhat.com>
7766
7767 From Petr Ledvina <ledvinap@kae.zcu.cz>:
7768 * signals.c (target_signal_to_name): Verify that SIG is within the
7769 bounds of the signals array.
7770
4daa9f9f
AC
77712002-01-13 Andrew Cagney <ac131313@redhat.com>
7772
7773 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7774
ba4bbdcb
KS
77752002-01-13 Keith Seitz <keiths@redhat.com>
7776
7777 * stack.c (print_frame_info_base): Print the frame's pc
7778 only if when print_frame_info_listing_hook is not defined.
7779
575bbeb6
KS
77802002-01-13 Keith Seitz <keiths@redhat.com>
7781
7782 * varobj.c (varobj_set_value): Make sure that there were no
7783 errors evaluating the object before attempting to set its
7784 value.
7785 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7786 so this offset adjustment is no longer necessary.
7787 (create_child): Don't set the error flag if the child is
7788 a CPLUS_FAKE_CHILD.
7789 (value_of_child): If value_fetch_lazy fails, return NULL
7790 so that callers will be notified that an error occurred.
7791 (c_value_of_variable): Delay check of variable's validity
7792 until later. We actually want all structs and unions to have
7793 the value "{...}".
7794 Do not return "???" for variables which could not be evaluated.
7795 This error condition must be returned to the caller so that it
7796 can get the error condition from gdb.
7797 (cplus_name_of_child): Adjust index for vptr before figuring
7798 out the name of the child.
7799 (cplus_value_of_child): If a child's (real) parent is not valid,
7800 don't even bother trying to give a value for it. Just return
7801 an error. Change all instances in this function.
7802 (cplus_type_of_child): If our parent is one of the "fake"
7803 parents, we need to get at the type of the real parent, and
7804 derive the child's true type using this information.
7805
b76898ab
AC
78062002-01-13 Andrew Cagney <ac131313@redhat.com>
7807
7808 From 2002-01-09 John Marshall <johnm@falch.net>:
7809 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7810 sources.redhat.com, and tweak some related URLs which had
7811 suffered from linkrot.
7812
b6649e88
AC
78132002-01-13 Andrew Cagney <ac131313@redhat.com>
7814
7815 From Jeff law:
7816 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7817 structures passed in registers.
7818
82cc5033
EZ
78192002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7820
7821 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7822 white space which prevented compilation. Reported by DSK
7823 <dsk@student.unsw.edu.au>.
7824
ba5f2f8a
MS
78252002-01-11 Michael Snyder <msnyder@redhat.com>
7826
fbd35540
MS
7827 * symfile.c (build_section_addr_info_from_section_tab):
7828 Use bfd access method instead of manipulating bfd directly.
7829 (syms_from_objfile): Ditto.
7830 (simple_overlay_update_1): Ditto.
7831 (simple_overlay_update): Ditto.
7832 (generic_load): Ditto.
7833 (overlay_unmapped_address): FIXME comment, bfd access methods.
7834 (sections_overlap): FIXME comment, bfd access methods.
7835 (pc_in_mapped_range): FIXME comment, bfd access methods.
7836 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7837 (section_is_mapped): FIXME comment, bfd access methods.
7838 (section_is_overlay): FIXME comment, bfd access methods.
7839
ba5f2f8a
MS
7840 * symfile.c (generic_load): Whitespace and long line cleanups.
7841 Remove duplicate variable, change several local variables to
7842 more appropriate data types.
7843 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7844
17df2af6
AC
78452002-01-12 Andrew Cagney <ac131313@redhat.com>
7846
7847 From Peter Schauer:
7848 * language.c (longest_local_hex_string_custom): Use phex_nz to
7849 convert NUM to a hex string.
7850
ec920329
EZ
78512002-01-12 Elena Zannoni <ezannoni@redhat.com>
7852
7853 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7854 the function.
538a76d6 7855 Update Copyright year.
ec920329 7856
3abd2e01
AC
78572002-01-12 Andrew Cagney <ac131313@redhat.com>
7858
7859 * language.c (longest_raw_hex_string): Delete unused function.
7860
b21b22e0
PS
78612002-01-11 Petr Sorfa <petrs@caldera.com>
7862
7863 * MAINTAINERS (write-after-approval): Add myself.
7864 * dwarf2read.c (read_tag_string_type): Handling of
7865 DW_AT_byte_size.
7866 (read_tag_string_type): FORTRAN fix to prevent propagation of
7867 first string size.
7868 (set_cu_language): Handling of DW_LANG_Fortran95
7869
747fe712
RE
78702002-01-11 Richard Earnshaw <rearnsha@arm.com>
7871
7872 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7873 GETPID(inferior_ptid).
7874 (store_inferior_registers): Likewise.
7875
f1bea926
JM
78762002-01-10 Jason Merrill <jason@redhat.com>
7877
7878 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7879 Fix DW_OP_minus.
7880
ae940673
AC
78812002-01-10 Andrew Cagney <ac131313@redhat.com>
7882
7883 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7884 and bfd/elf32-sh-nbsd.c.
7885
00546b04
MS
78862002-01-10 Michael Snyder <msnyder@redhat.com>
7887
352ed7b4
MS
7888 * NEWS: Mention --pid and corefile/proc-id behavior change.
7889
c18be923
MS
7890 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7891 * gcore.c: Include cli/cli-decode.h instead of command.h.
7892
00546b04
MS
7893 * main.c (captured_main): Add new command line option "--pid".
7894 If the second command line argument (following the symbol-file)
7895 begins with a digit, try to attach to it before trying to open
7896 it as a corefile.
7897 (print_gdb_help): Document the "--pid" argument.
7898
db60ec62
EZ
78992002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7900
7901 * completer.c (command_completer): New function.
7902
7903 * completer.h <command_completer>: Add prototype.
7904
7905 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7906 completer for the "help" command.
7907
39c22d1a
JM
79082002-01-09 Jason Merrill <jason@redhat.com>
7909
7910 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7911
c564377f
MS
79122002-01-09 Michael Snyder <msnyder@redhat.com>
7913
975aec09
MS
7914 * i386-linux-nat.c (fill_fpxregset): Make global.
7915 (store_fpxregset): Ditto.
7916
db4a10fa
MS
7917 * gregset.h (gdb_fpxregset_t): Define.
7918 (supply_fpxregset): Prototype.
7919 (fill_fpxregset): Prototype.
7920
c564377f
MS
7921 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7922
c3d45d70
RE
79232002-01-09 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7926 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7927 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7928
fcc87af1
AC
79292002-01-09 Andrew Cagney <ac131313@redhat.com>
7930
7931 * MAINTAINERS: Update target maintainer rules so that any
7932 Maintainer can approve a tested patch for a maintenance-only
7933 target.
7934
dd96c05b
RE
79352002-01-09 Richard Earnshaw <rearnsha@arm.com>
7936
d4297db9 7937 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 7938
d4297db9 7939 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
7940 IN_SIGTRAMP.
7941
145fdc6e
MS
79422002-01-08 Michael Snyder <msnyder@redhat.com>
7943
7944 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7945 real name of the executable, rather than the /proc name.
7946
be4d1333
MS
79472002-01-03 Michael Snyder <msnyder@redhat.com>
7948
7949 Implement a "generate-core-file" command in gdb, save target state.
7950 * gcore.c: New file. Implement new command 'generate-core-file'.
7951 Save a corefile image of the current state of the inferior.
7952 * linux-proc.c: Add linux-specific code for saving corefiles.
7953 * target.h (struct target_ops): Add new target vectors for saving
7954 corefiles; to_find_memory_regions and to_make_corefile_notes.
7955 (target_find_memory_regions): New macro.
7956 (target_make_corefile_notes): New macro.
7957 * target.c (update_current_target): Inherit new target methods.
7958 (dummy_find_memory_regions): New place-holder method.
7959 (dummy_make_corefile_notes): New place-holder method.
7960 (init_dummy_target): Initialize new dummy target vectors.
7961 * exec.c (exec_set_find_memory_regions): New function.
7962 Allow the exec_ops vector for memory regions to be taken over.
7963 (exec_make_note_section): New function, target vector method.
7964 * defs.h (exec_set_find_memory_regions): Export prototype.
7965 * procfs.c (proc_find_memory_regions): New function, corefile method.
7966 (procfs_make_note_section): New function, corefile method.
7967 (init_procfs_ops): Set new target vector pointers.
7968 (find_memory_regions_callback): New function.
7969 (procfs_do_thread_registers): New function.
7970 (procfs_corefile_thread_callback): New function.
7971 * sol-thread.c (sol_find_memory_regions): New function.
7972 (sol_make_note_section): New function.
7973 (init_sol_thread_ops): Initialize new target vectors.
7974 * inftarg.c (inftarg_set_find_memory_regions): New function.
7975 Allow to_find_memory_regions vector to be taken over.
7976 (inftarg_set_make_corefile_notes): New function.
7977 Allow to_make_corefile_notes vector to be taken over.
7978 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7979 interface layer if not target_has_execution (may be a corefile).
7980 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7981 * config/sparc/sun4sol2.mh: Ditto.
7982 * config/alpha/alpha-linux.mh: Ditto.
7983 * config/arm/linux.mh: Ditto.
7984 * config/i386/x86-64linux.mh: Ditto.
7985 * config/ia64/linux.mh: Ditto.
7986 * config/m68k/linux.mh: Ditto.
7987 * config/mips/linux.mh: Ditto.
7988 * config/powerpc/linux.mh: Ditto.
7989 * config/sparc/linux.mh: Ditto.
7990
c6b92abd
MS
79912002-01-07 Michael Snyder <msnyder@redhat.com>
7992
7993 * arm-linux-nat.c: Remove references to regcache.c internal data
7994 (registers[] and register_valid[]).
7995
4b09dc8c
MS
79962002-01-07 Michael Snyder <msnyder@redhat.com>
7997
abf22e64
AJ
7998 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7999 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
8000 symbol file and shlibs.
8001 * Makefile.in: Add rule for linux-proc.o.
8002 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8003 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8004 * config/arm/linux.mh: Ditto.
8005 * config/i386/linux.mh: Ditto.
8006 * config/i386/x86-64linux.mh: Ditto.
8007 * config/ia64/linux.mh: Ditto.
8008 * config/m68k/linux.mh: Ditto.
8009 * config/mips/linux.mh: Ditto.
8010 * config/powerpc/linux.mh: Ditto.
8011 * config/sparc/linux.mh: Ditto.
8012
c25b74ac
PM
80132002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8014
8015 * win32-nat.c: Add i386-tdep.h dependency.
8016
94cd915f
MS
80172002-01-07 Michael Snyder <msnyder@redhat.com>
8018
c7cccb76
MS
8019 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8020 instead of bfd_get_arch_size. Don't bail out just because
8021 there's no exec_bfd.
abf22e64 8022
34c0bd93
MS
8023 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8024 * p-valprint.c (pascal_object_print_value): Ditto.
8025 * somread.c (som_symtab_read): Ditto.
8026 * symfile.c (simple_free_overlay_region_table): Ditto.
8027 * valops.c (value_assign): Ditto.
8028
21c1c920
MS
8029 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8030 use tilde_expand and strerror for opening save-tracepoints file.
8031
5bbd998e
MS
8032 * thread-db.c (thread_db_new_objfile): Indendation fix.
8033
94cd915f
MS
8034 * infptrace.c (GDB_MAX_ALLOCA): New define.
8035 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 8036 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
8037 can be overridden with whatever value is appropriate to the host).
8038 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8039 alloca to allocate potentially large buffer.
8040 * rs6000-nat.c (child_xfer_memory): Ditto.
8041 * symm-nat.c (child_xfer_memory): Ditto.
8042 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8043
494e8a93
JSC
80442002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8045
8046 From Nick Clifton <nickc@redhat.com>
8047 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8048
d0e1d48e
MS
80492002-01-07 Michael Snyder <msnyder@redhat.com>
8050
abf22e64 8051 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
8052 Don't use exec_bfd if it's NULL.
8053
290b2c7a
MK
80542002-01-06 Mark Kettenis <kettenis@gnu.org>
8055
abf22e64 8056 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 8057
aef21287
AC
80582002-01-06 Andrew Cagney <ac131313@redhat.com>
8059
8060 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8061 * gnu-nat.c: Ditto.
8062
30efa627
AC
80632002-01-06 Andrew Cagney <ac131313@redhat.com>
8064
8065 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8066 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8067 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8068 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8069 z8k-coff have not been multi-arched. Update z8k-coff build
8070 status.
8071
9b4ff276
AC
80722002-01-06 Andrew Cagney <ac131313@redhat.com>
8073
8074 * MAINTAINERS: Mark a29k target as obsolete.
8075 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8076 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8077 comments.
8078 * NEWS: Note that a29k targets are obsolete.
8079 * a29k-tdep.c: Mark as obsolete.
8080 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8081 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8082 a29k-*-vxworks* targets as obsolete.
8083 * remote-adapt.c: Obsolete.
8084 * remote-eb.c: Obsolete.
8085 * remote-mm.c: Obsolete.
8086 * remote-udi.c: Obsolete.
8087 * config/a29k/a29k-udi.mt: Obsolete.
8088 * config/a29k/a29k.mt: Obsolete.
8089 * config/a29k/tm-a29k.h: Obsolete.
8090 * config/a29k/tm-vx29k.h: Obsolete.
8091 * config/a29k/vx29k.mt: Obsolete.
8092
a9011d31
AC
80932002-01-05 Andrew Cagney <ac131313@redhat.com>
8094
8095 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8096 with BFD_ENDIAN_BIG.
8097
9299404e
AC
80982002-01-05 Andrew Cagney <ac131313@redhat.com>
8099
8100 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8101 * configure, config.in: Re-generate.
8102 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8103 * defs.h: Do not include <endian.h>.
8104
7e89e357
JT
81052002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8106
8107 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8108 * config.in: Regenerate.
8109 * configure.in: Update copyright years.
8110 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8111 * configure: Regenerate.
8112 * i386bsd-nat.c: Update copyright years.
8113 (fill_gregset): Use regcache_collect.
8114 (fetch_inferior_registers): Only fetch integer registers
8115 if requested to do so. Add support for XMM registers
8116 using PT_GETXMMREGS.
8117 (store_inferior_registers): Only store integer registers
8118 if requested to do so. Add support for XMM registers
8119 using PT_SETXMMREGS.
8120 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8121 (store_inferior_registers): Remove.
8122 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8123 (fetch_elfcore_registers): New function.
8124 (i386nbsd_elfcore_fns): New.
8125 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8126 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8127 i386bsd-nat.o.
8128 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8129 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8130 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8131 * config/i386/tm-nbsd.h: Update copyright years.
8132 (HAVE_SSE_REGS): Define.
8133 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8134 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8135 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8136 (SIGCONTEXT_PC_OFFSET): Remove.
8137 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8138
a752853e
AC
81392002-01-05 Andrew Cagney <ac131313@redhat.com>
8140
8141 * configure.tgt: Remove powerpc-*-macos* target.
8142 * config/m68k/xm-mpw.h: Delete file.
8143 * config/xm-mpw.h: Delete file.
8144 * ser-mac.c: Delete file.
8145 * mpw-make.sed: Delete file.
8146 * mpw-config.in: Delete file.
8147 * mac-xdep.c: Delete file.
8148 * mac-gdb.r: Delete file.
8149 * mac-defs.h: Delete file.
8150 * mac-nat.c: Delete file.
8151 * config/powerpc/macos.mh: Delete file.
8152 * config/powerpc/macos.mt: Delete file.
8153 * config/powerpc/nm-macos.h: Delete file.
8154 * config/powerpc/tm-macos.h: Delete file.
8155 * source.c (openp, open_source_file): Remove obsolete code.
8156 * top.c (gdb_readline): Ditto.
8157 * utils.c (query): Ditto.
8158 * event-top.c (display_gdb_prompt): Ditto.
8159 * Makefile.in (ser-mac.o): Delete obsolete target.
8160 * NEWS: Update.
8161
d7449b42
AC
81622002-01-04 Andrew Cagney <ac131313@redhat.com>
8163
8164 * defs.h (BIG_ENDIAN): Delete macro definition.
8165 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8166 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8167 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8168 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8169 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8170 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8171 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8172 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8173 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8174 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8175 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8176 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8177 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8178 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8179 * gdbarch.c: Re-generate.
8180
356374e8
DJ
81812002-01-04 Daniel Jacobowitz <drow@mvista.com>
8182
8183 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8184 for core files.
8185
a2b8f8f8
JT
81862002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8189
12466af9
AC
81902002-01-04 Andrew Cagney <ac131313@redhat.com>
8191
8192 * value.h (value_ptr): Delete typedef.
8193
3549ab40
JT
81942002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8195
8196 * i386nbsd-nat.c: Update copyright years.
8197 Include i386-tdep.h.
8198
fedbd091
EZ
81992002-01-04 Elena Zannoni <ezannoni@redhat.com>
8200
8201 * stabsread.c: Update copyright years.
8202
8203 From Debashis Mahata <debashis.mahata@wipro.com>:
8204 (read_struct_fields): Deal with Sun C compiler erroneous stab
8205 output for structs and unions.
fec8b34f 8206 Fix PR gdb/269.
fedbd091 8207
eb43544b
DJ
82082002-01-04 Daniel Jacobowitz <drow@mvista.com>
8209
8210 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8211 prototype.
8212
1514d34e
DJ
82132002-01-04 Daniel Jacobowitz <drow@mvista.com>
8214
8215 * cp-abi.c: Fix whitespace.
8216 (baseclass_offset): New wrapper function.
8217 * cp-abi.h (baseclass_offset): Add prototype.
8218 (struct cp_abi_ops): Add baseclass_offset pointer.
8219
8220 * valops.c (vb_match): Move to...
8221 * gnu-v2-abi.c (vb_match): here.
8222 * valops.c (baseclass_offset): Move to...
8223 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8224
8225 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8226
8227 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8228 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8229 * hpacc-abi.c (init_hpacc_ops): Likewise.
8230
7f8c9282
DJ
82312002-01-04 Daniel Jacobowitz <drow@mvista.com>
8232
8233 * valops.c (find_overload_match): Accept obj as a
8234 reference parameter. Update it before returning.
8235 * value.h (find_overload_match): Update prototype.
8236 * eval.c (evaluate_subexp_standard): Pass object to
8237 find_overload_match by reference.
8238
f23631e4
AC
82392002-01-03 Andrew Cagney <ac131313@redhat.com>
8240
8241 * valarith.c: Replace value_ptr with struct value pointer. Remove
8242 register attribute from value declarations.
8243 * valops.c: Ditto.
8244 * value.h: Ditto.
8245 * scm-lang.c (scm_lookup_name): Ditto.
8246
79e10fab 82472002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 8248
79e10fab
AC
8249 Abstract the functionality of iterating over mapped memory
8250 regions into a general purpose iterator function.
abf22e64 8251 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
8252 iterator for memory sections.
8253 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8254 (solib_mappings_callback): New function, callback for above.
8255 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8256 (info_mappings_callback): New function, callback for above.
8257
8258 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8259
c5ad026a
MK
82602002-01-01 Mark Kettenis <kettenis@gnu.org>
8261
d2a7c97a
MK
8262 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8263 * i386-tdep.c: Include "elf-bfd.h".
8264 (process_note_abi_tag_sections): New function.
8265 (i386_gdbarch_init): Add code to recognize various OS/ABI
8266 combinations.
8267
c5ad026a
MK
8268 * maint.c (_initialize_maint_cmds): Add missing \ in
8269 string-literal.
8270
a1a5b71e 8271For older changes see ChangeLog-2001
c906108c
SS
8272\f
8273Local Variables:
8274mode: change-log
8275left-margin: 8
8276fill-column: 74
8277version-control: never
8278End:
This page took 0.639067 seconds and 4 git commands to generate.