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