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