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