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