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