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