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