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