1 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3 * rs6000-nat.c (ppc-tdep.h): Include.
4 (fetch_registers, store_register): Don't access registers[]
5 directly. Instead, use supply_register() or
6 regcache_collect() as appropriate.
7 (find_toc_address): Format hex address with local_hex_string().
9 2002-07-25 Andrew Cagney <ac131313@redhat.com>
11 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
14 2002-07-24 Tom Tromey <tromey@redhat.com>
16 * jv-exp.y: Marked all strings with _().
17 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
19 (MethodInvocation, CastExpression, parse_number, yyerror,
20 java_type_from_name, push_expression_name, yylex): Typo fixes.
22 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
24 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
25 (tee_file_flush, tee_file_write, tee_file_fputs)
26 (tee_file_isatty): New.
27 * ui-file.h (tee_file_new): Add prototype.
29 2002-07-24 Aidan Skinner <aidan@velvet.net>
31 * ada-lang.c: Change k&r style function definitions to prototyped
33 * ada-typeprint.c: Change k&r style function definitions to prototyped
35 * ada-valprint.c: Change k&r style function definitions to prototyped
38 2002-07-24 Andrew Cagney <cagney@redhat.com>
40 * README: Remove reference to remote-bug.
41 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
43 (m88k-nat.o): Delete rule.
44 (m88k-tdep.o): Delete rule.
45 (remote-bug.o): Delete rule.
46 * MAINTAINERS: Mark as obsolete.
47 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
48 * m88k-tdep.c: Make file obsolete.
49 * config/m88k/m88k.mh: Ditto.
50 * config/m88k/delta88v4.mh: Ditto.
51 * config/m88k/delta88v4.mt: Ditto.
52 * config/m88k/delta88.mt: Ditto.
53 * config/m88k/delta88.mh: Ditto.
54 * remote-bug.c: Ditto.
55 * config/m88k/tm-delta88.h: Ditto.
56 * config/m88k/nm-delta88v4.h: Ditto.
57 * config/m88k/xm-delta88.h: Ditto.
58 * config/m88k/xm-dgux.h: Ditto.
59 * config/m88k/tm-m88k.h: Ditto.
60 * config/m88k/nm-m88k.h: Ditto.
61 * config/m88k/tm-delta88v4.h: Ditto.
64 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
65 and m88*-*-* obsolete.
66 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
69 2002-07-24 Andrew Cagney <cagney@redhat.com>
71 * findvar.c (extract_unsigned_integer): Make `addr' parameter
72 constant. Same for local pointer variables.
73 (extract_signed_integer): Ditto.
74 * defs.h (extract_unsigned_integer): Update.
75 (extract_signed_integer): Update.
77 2002-07-24 Kevin Buettner <kevinb@redhat.com>
79 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
80 * gdbserver/configure: Regenerate.
81 * gdbserver/config.in: Regenerate.
83 2002-07-24 Andrew Cagney <cagney@redhat.com>
85 * regcache.c (regcache_raw_write): Change buf parameter to a
86 constant void pointer.
87 (regcache_raw_read): Change buf parameter to a void pointer.
88 (legacy_write_register_gen): Change myaddr parameter a constant
90 (supply_register): Change val parameter to a const void pointer.
91 * regcache.h (regcache_raw_write): Update declaration.
92 (regcache_raw_read): Update declaration.
93 (supply_register): Update declaration.
95 2002-07-24 Tom Tromey <tromey@redhat.com>
97 * defs.h (gdb_readline_wrapper): Declare.
98 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
99 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
100 * top.c (gdb_readline_wrapper): New function.
101 (command_line_input): Use it.
103 2002-07-24 Andrew Cagney <cagney@redhat.com>
105 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
106 regcache_read and regcache_write.
107 (regcache_raw_read_as_address): Replace regcache_read_as_address.
108 * regcache.c: Update.
109 * sh-tdep.c (sh64_push_arguments): Update comment.
110 (sh_pseudo_register_read): Update.
111 (sh_pseudo_register_write): Update.
112 (sh4_register_read): Update.
113 (sh4_register_write): Update.
114 (sh64_pseudo_register_read): Update.
115 (sh64_pseudo_register_write): Update.
116 (sh64_register_read): Update.
117 (sh64_register_write): Update.
118 * i386-tdep.c (i386_extract_return_value): Update.
119 (i386_extract_struct_value_address): Update.
120 (i386_extract_return_value): Update.
121 * blockframe.c (generic_read_register_dummy): Update.
122 (generic_call_dummy_register_unwind): Update
123 * infrun.c (write_inferior_status_register): Update.
125 2002-07-23 Jim Blandy <jimb@redhat.com>
127 * parser-defs.h (expression_context_pc): Make this extern.
128 (Thanks to Michael Snyder.)
130 2002-07-23 Andrew Cagney <ac131313@redhat.com>
132 GDB 5.2.1 released from 5.2 branch.
133 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
134 * README: Update to mention 5.2.1.
136 2002-07-23 Mark Salter <msalter@redhat.com>
138 * remote.c (remote_read_bytes): Fix check for error.
140 2002-07-22 Kevin Buettner <kevinb@redhat.com>
142 * aix-thread.c (language.h): Include.
143 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
144 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
145 Print newlines at end of debug messages.
146 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
147 (pdc_write_data): Use local_hex_string() instead of %llx formats.
149 2002-07-22 Kevin Buettner <kevinb@redhat.com>
151 * aix-thread.c (ppc-tdep.h): Include.
152 (special_register_p): New function.
153 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
154 (store_regs_user_thread): Use register number information from
155 gdbarch_tdep struct instead of hardcoded offsets relative to
156 FIRST_UISA_SP_REGNUM.
157 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
158 special_register_p() instead of using FPLAST_REGNUM and
159 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
160 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
161 will be MQ's register number.
163 2002-07-22 Michael Snyder <msnyder@redhat.com>
165 * aix-thread.c (ops): Rename to aix_thread_ops.
166 (base_ops): Rename to base_target.
167 (ops_attach): Rename to aix_thread_attach.
168 (ops_detach): Rename to aix_thread_detach.
169 (ops_resume): Rename to aix_thread_detach.
170 (ops_wait): Rename to aix_thread_wait.
171 (ops_kill): Rename to aix_thread_kill.
172 (init_ops): Rename to init_aix_thread_ops.
173 (ops_fetch_register): Rename to aix_thread_fetch_register.
174 (ops_store_register): Rename to aix_thread_store_register.
175 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
176 (ops_thread_alive): Rename to aix_thread_thread_alive.
177 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
178 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
179 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
180 (fetch_regs_lib): Rename to fetch_regs_user_thread.
181 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
182 (store_regs_lib): Rename to store_regs_user_thread.
183 (store_regs_kern): Rename to store_regs_kernel_thread.
185 2002-07-22 Michael Snyder <msnyder@redhat.com>
187 * aix-thread.c (ops_prepare_to_store): Eliminate.
188 (init_ops): Don't initialize ops.prepare_to_store.
189 (store_regs_kern): Pre-fetch register buffers from child,
190 because some registers may not be in the cache. Copy
191 regs from register cache only if they are cached.
192 (store_regs_lib): Copy regs from register cache only
194 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
197 2002-07-22 Kevin Buettner <kevinb@redhat.com>
199 * aix-thread.c (gdb_assert.h): Include.
200 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
201 register sizes (from register cache) match size of buffer holding
203 (fill_sprs32): Change parameter types to match those in the ptrace()
205 (store_regs_lib): Likewise, but for 32-bit temporary variables.
206 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
208 2002-07-22 Michael Snyder <msnyder@redhat.com>
210 * aix-thread.c (supply_sprs64): Cosmetic change.
211 (supply_sprs32): Cosmetic change.
212 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
213 (fill_sprs64): Use regcache_collect instead of read_register.
214 (store_regs_lib): Use regcache_collect instead of
215 read_register. Use fill_sprs32 instead of fill_sprs64,
216 if debugging a 32-bit architecture.
217 (store_regs_kern): Use fill_gprs64 etc. to pull the values
218 out of the register cache, instead of passing a pointer into
219 the register cache directly to ptrace. Use regcache_collect
220 insteaad of read_register.
221 (ops_prepare_to_store): Use target_read_registers instead
222 of read_register_bytes.
224 2002-07-20 Aidan Skinner <aidan@velvet.net>
226 * MAINTAINERS: Add self under write after approval.
228 2002-07-20 Aidan Skinner <aidan@velvet.net>
230 * ada-tasks.c: Change k&r style function definitions to prototyped
233 2002-07-19 Andrew Cagney <ac131313@redhat.com>
235 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
236 * x86-64-tdep.c: Include "objfiles.h".
237 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
238 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
240 2002-07-17 Michal Ludvig <michal@suse.cz>
242 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
243 (update_context): Initialise cfa variable.
245 2002-07-17 Michael Snyder <msnyder@redhat.com>
247 * aix-thread.c: Shorten some long lines.
248 Bring comments into line with code spec.
250 2002-07-18 Joel Brobecker <brobecker@gnat.com>
252 * infrun.c: Re-indent using gdb_indent.sh.
254 2002-07-18 Joel Brobecker <brobecker@gnat.com>
256 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
257 Leave the indentation temporarily untouched, to minimize the diffs.
259 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
261 * stabsread.c: Make os9k sections of the code obsolete,
263 * stabsread.h: Make os9k sections of the code obsolete.
265 2002-07-18 Michal Ludvig <mludvig@suse.cz>
267 * linux-low.c (regsets_store_inferior_registers): Add free()
268 at the end of a loop to prevent memory leak.
269 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
270 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
271 * config/sparc/tm-sp64linux.h: Make the rest of #endif
273 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
275 2002-07-17 Jim Blandy <jimb@redhat.com>
277 * macrocmd.c (info_macro_command): Remove newline from error
280 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
282 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
283 (sh_gdbarch_init): Use it for sh-dsp.
285 2002-07-16 Kevin Buettner <kevinb@redhat.com>
287 * dwarf2read.c (read_initial_length): Handle older, non-standard,
288 64-bit DWARF2 format.
290 2002-07-16 Joel Brobecker <brobecker@gnat.com>
292 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
293 <sys/proc.h> when not available.
295 2002-07-16 Andrew Cagney <ac131313@redhat.com>
297 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
298 * stabsread.c: Make os9k sections of the code obsolete.
299 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
300 * config/i386/i386os9k.mt: Make file obsolete.
301 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
302 (COMMON_OBS): Remove os9kread.o
303 (SFILES): Remove os9kread.c.
304 (os9kread.o, remote-os9k.o): Make target obsolete.
305 * remote-os9k.c: Make file obsolete.
306 * os9kread.c: Make file obsolete.
309 2002-07-16 Andrew Cagney <ac131313@redhat.com>
311 * NEWS: Mention that the FR30 has been made obsolete.
312 * fr30-tdep.c: Make file obsolete.
313 * config/fr30/tm-fr30.h: Ditto.
314 * config/fr30/fr30.mt: Ditto.
315 * configure.tgt: Make fr30-*-elf obsolete.
316 * MAINTAINERS: Make fr30-elf obsolete.
318 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
320 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
321 found is not inside a section.
323 2002-07-15 Kevin Buettner <kevinb@redhat.com>
325 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
327 (pdc_realloc): Use xrealloc() instead of realloc().
329 2002-07-15 Kevin Buettner <kevinb@redhat.com>
331 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
332 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
333 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
336 2002-07-15 Kevin Buettner <kevinb@redhat.com>
338 * aix-thread.c (ptrace_check): Eliminate goto.
339 (sync_threadlists): Eliminate gotos. Also, fix array overrun
342 2002-07-15 Kevin Buettner <kevinb@redhat.com>
344 * aix-thread.c (gdbcmd.h): Include.
345 (DEBUG, DBG, DBG2, dbg): Eliminate.
346 (debug_aix_thread): New static global.
347 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
348 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
349 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
350 invocations to DBG and DBG2 macros to test against
351 ``debug_aix_thread'' and call fprintf_unfiltered().
352 (_initialize_aix_thread): Add new command "set debug aix-thread".
354 2002-07-15 Andrew Cagney <ac131313@redhat.com>
356 From Gerhard Tonn <TON@de.ibm.com>:
357 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
358 instead of supply_register.
360 2002-07-15 Andrew Cagney <ac131313@redhat.com>
362 * dwarf2cfi.c: Include "gdb_assert.h".
363 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
365 (update_context): Do not use __func__. Add missing ``break''.
366 (update_context): Do not use __func__.
368 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
370 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
371 and its setting. Set gdbarch instruction printing functions
372 directly. For non-rs6000 case use new function
373 gdb_print_insn_powerpc.
374 (gdb_print_insn_powerpc): New function.
376 2002-07-13 Andrew Cagney <ac131313@redhat.com>
378 * NEWS: Mention that the d30v has been marked obsolete.
379 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
380 * configure.tgt: Mark d30v-*-* as obsolete.
381 * d30v-tdep.c: Mark file as obsolete.
382 * config/d30v/d30v.mt: Ditto.
383 * config/d30v/tm-d30v.h: Ditto.
385 2002-07-13 Aidan Skinner <aidan@velvet.net>
387 * ada-tasks.c (add_task_entry): replace calls to
388 malloc() with xmalloc
389 * ada-tasks.c (init_task_list): replace calls to free with xfree()
391 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
392 ada_finish_decode_line_1, all_sals_for_line
393 ada_breakpoint_rewrite): replace calls to free() with xfree()
395 2002-07-12 Kevin Buettner <kevinb@redhat.com>
397 From Nicholas Duffek (with minor changes by Martin Hunt,
398 Louis Hamilton, and Kevin Buettner):
399 * aix-thread.c: New file.
401 2002-07-12 Petr Sorfa <petrs@caldera.com>
403 * dwarf2read.c (dwarf2_invalid_attrib_class): New
404 complaint for invalid attribute class or form.
405 (read_func_scope): DW_AT_frame_base
406 better handling of DW_AT_block*.
407 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
408 better handling of DW_AT_block*.
409 (read_common_block): DW_AT_location
410 better handling of DW_AT_block*.
411 (read_partial_die): DW_AT_location better handling
413 (new_symbol): DW_AT_external better handling of
414 DW_AT_block*. Proper initialization of variable
416 (attr_form_is_block): New function that returns true
417 if the attribute's form is of DW_FORM_block*.
419 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
421 * valops.c (find_method_list): Remove comment about
422 removed STATIC_MEMFUNCP argument.
423 (value_find_oload_method_list): Likewise.
425 2002-07-12 Kevin Buettner <kevinb@redhat.com>
427 From Nicholas Duffek:
428 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
429 target_new_objfile_hook.
431 2002-07-12 Kevin Buettner <kevinb@redhat.com>
433 From Nicholas Duffek:
434 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
437 2002-07-12 Andrew Cagney <cagney@redhat.com>
439 * MAINTAINERS: Mention --enable-sim-build-warnings.
440 (m68hc11-elf): Disable sim build warnings.
441 (m32r-elf): Mark as broken obsolete candidate.
442 (x86_64-linux-gnu): Mark as buildable with -Werror.
443 (arm-elf): Change -w to ``,'' which enables warnings but not
446 2002-07-12 Andrew Cagney <ac131313@redhat.com>
448 * bcache.h: Update copyright.
449 (struct bstring, struct bcache): Move definition to "bcache.c".
450 Replaced by opaque declaration.
451 (bcache_xfree): Replace free_bcache.
452 (bcache_xmalloc, bcache_memory_used): Declare.
454 * bcache.c: Update copyright.
455 (struct bstring, struct bcache): Moved to here from "bcache.h".
457 (bcache_xmalloc, bcache_memory_used): New functions.
458 (bcache_xfree): Replace function free_bcache.
460 * Makefile.in (objfiles.o): Add $(bcache_h).
461 (objfiles_h): Remove $(bcache_h).
462 (symfile.o): Add $(bcache_h).
464 * symmisc.c: Update copyright.
465 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
466 (print_objfile_statistics): Use bcache_memory_used.
468 * symfile.c: Include "bcache.h".
469 (reread_symbols): Use bcache_xfree.
470 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
471 (add_psymbol_to_list): Pass psymbol_cache by value.
472 (add_psymbol_with_dem_name_to_list): Ditto.
474 * objfiles.h: Update copyright.
475 (struct bcache): Declare opaque. Do not include "bcache.h".
476 (struct objfile): Change psymbol_cache and macro_cache to ``struct
478 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
480 * objfiles.c: Include "bcache.h". Update copyright.
481 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
483 (free_objfile): Use bcache_xfree.
485 2002-07-11 Grace Sainsbury <graces@redhat.com>
487 * monitor.c (monitor_fetch_register): Make name a constant.
488 (monitor_store_register): Same.
490 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
492 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
493 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
494 (finish_block) For non-function blocks, hash the symbol table. For
495 function blocks, mark the symbol table as unhashed.
496 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
497 (msymbol_hash_iw): Likewise.
498 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
500 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
501 (lookup_minimal_symbol): Likewise for both.
502 * symtab.h (struct block): Add `hashtable' flag. Comment the
504 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
505 (ALL_BLOCK_SYMBOLS): Update.
506 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
507 (struct symbol): Add `hash_next' pointer.
508 * symtab.c (lookup_block_symbol): Search using the hash table when
510 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
511 (search_symbols, find_addr_symbol): Likewise.
513 * dstread.c (process_dst_block): Clear hashtable bit for new block.
514 (read_dst_symtab): Likewise.
515 * jv-lang.c (get_java_class_symtab): Likewise.
516 * mdebugread.c: Include "gdb_assert.h".
517 (shrink_block): Assert that the block being modified is not hashed.
518 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
519 * symmisc.c (free_symtab_block): Walk the hash table when freeing
521 (dump_symtab): Recognize hashed blocks.
522 * printcmd.c (print_frame_args): Assert that function blocks do not
523 have hashed symbol tables.
524 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
525 (fill_in_ada_prototype, debug_print_block): Likewise.
526 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
528 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
530 * stack.c (print_frame): Use result of frame_address_in_block()
531 instead of fi->pc when evaluating symbols.
532 (backtrace_command_1): Ditto.
534 2002-07-11 Andrew Cagney <cagney@redhat.com>
536 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
539 * arm-tdep.c (arm_register_name): Make return type constant.
541 2002-07-10 Andrew Cagney <ac131313@redhat.com>
543 * win32-nat.c (has_detach_ability): Convert to strict ISO C
545 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
546 * s390-tdep.c (s390_fp_regnum): Ditto.
547 (s390_read_fp): Ditto.
548 (s390_pop_frame): Ditto.
549 (_initialize_s390_tdep): Ditto.
550 * remote.c (get_remote_state): Ditto.
551 * procfs.c (mappingflags): Ditto.
552 * memattr.c (_initialize_mem): Ditto.
553 * mcore-tdep.c (mcore_pop_frame): Ditto.
554 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
555 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
556 * language.c (set_case_str): Ditto.
557 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
558 * frv-tdep.c (new_variant): Ditto.
559 (frv_stopped_data_address): Ditto.
560 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
561 (context_alloc): Ditto.
562 (frame_state_alloc): Ditto.
563 (unwind_tmp_obstack_init): Ditto.
564 (unwind_tmp_obstack_free): Ditto.
565 (cfi_read_fp): Ditto.
566 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
567 (cris_pop_frame): Ditto.
568 * c-lang.c (scanning_macro_expansion): Ditto.
569 (finished_macro_expansion): Ditto.
570 (c_preprocess_and_parse): Ditto.
572 * gdbarch.h, gdbarch.c: Regenerate.
573 * config/mn10200/tm-mn10200.h: Adjust indentation.
574 * target.c: Adjust indentation.
575 * symtab.h: Adjust indentation.
576 * stabsread.h: Adjust indentation.
577 * remote-es.c: Adjust indentation.
578 * os9kread.c: Adjust indentation.
580 2002-07-10 Andrew Cagney <ac131313@redhat.com>
582 * wince.c (_initialize_wince): Rename _initialize_inftarg.
583 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
585 2002-07-10 Grace Sainsbury <graces@redhat.com>
587 * NEWS: Mention m68k, mcore multi-arching.
588 * MAINTAINERS: Change status of m68k, mcore to reflect
591 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
593 * valops.c (find_overload_match): Free oload_syms.
595 2002-07-09 Joel Brobecker <brobecker@gnat.com>
597 Define HAVE_SYS_PROC_H if sys/proc.h exists
598 * configure.in: Add check for sys/proc.h
599 * config.in: Regenerate.
600 * configure: Regenerate.
602 2002-07-09 Grace Sainsbury <graces@redhat.com>
604 * config/m68k/tm-m68k.h: Remove macros wrapped in
607 2002-07-09 David O'Brien <obrien@FreeBSD.org>
609 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
610 (perror_with_name, remote_close, remote_open, expect, play): Static.
612 2002-07-08 Andrew Cagney <ac131313@redhat.com>
614 * config.in, configure: Regenerate.
616 2002-07-08 Mark Kettenis <kettenis@gnu.org>
618 * dwarf2cfi.c: Include "gcore.h".
619 (execute_stack_op): Fix implementation of the
620 DW_OP_deref and DW_OP_deref_size operators by letting do their
621 lookup in the target.
623 2002-07-07 Mark Kettenis <kettenis@gnu.org>
625 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
626 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
629 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
631 Fix PR gdb/595, gdb/602
632 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
633 Don't call value_cast, just read the vtable pointer; update comments
636 2002-07-05 Grace Sainsbury <graces@redhat.com>
638 * config/mcore/tm-mcore.h: Remove file.
639 * config/mcore/mcore.mt: Remove definition of TM_FILE
640 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
642 2002-07-05 Mark Kettenis <kettenis@gnu.org>
644 * i386bsd-tdep.c: Include "gdb_string.h".
646 2002-07-04 Grace Sainsbury <graces@redhat.com>
648 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
649 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
651 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
652 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
653 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
654 (RETVAL_REGNUM): Move macros from tm-mcore.h
655 (mcore_reg_struct_has_addr): New function.
656 (mcore_gdbarch_init): Added initializations for the macros removed
659 2002-07-04 Mark Kettenis <kettenis@gnu.org>
661 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
662 traditonal string branding within the ELF header.
664 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
666 * symtab.c (remove_params): New function.
667 (make_symbol_overload_list): Use it instead of cplus_demangle.
668 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
670 2002-07-04 Mark Kettenis <kettenis@gnu.org>
672 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
674 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
676 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
677 and tdep->sigtramp_end.
678 * i386obsd-nat.c: New file.
679 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
681 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
682 Don't call get_current_frame().
684 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
686 * i386-nat.c (child_post_startup_inferior): New function
687 calling i386_cleanup_dregs if
688 I386_USE_GENERIC_WATCHPOINTS is defined.
689 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
690 conditional to acknowledge that i386-nat.c has its
691 own child_post_startup_inferior function.
693 2002-07-04 Mark Kettenis <kettenis@gnu.org>
695 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
696 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
697 instead of MAX_REGISTER_RAW_SIZE.
698 (i386_extract_return_value, i386_extract_struct_value_address):
699 Convert to use regcache.
700 (i386_gdbarch_init): Set max_register_raw_size and
701 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
702 Set extract_return_value and extract_struct_value_address instead
703 of their deprecated variants.
705 Convert i386 target to generic dummy frames.
706 * i386-tdep.c: Include "symfile.h".
707 (i386_frameless_signal_p): Consider a function to be frameless if
708 the pc points at the first instruction of the function.
709 (i386_frame_chain): Handle (generic) call dummies.
710 (i386_frame_saved_pc): Likewise.
711 (i386_frame_init_saved_regs): Remove code dealing with call
712 dummies on the stack.
713 (i386_push_dummy_frame): Removed.
714 (i386_call_dummy_words): Removed.
715 (i386_fix_call_dummy): Removed.
716 (i386_push_return_address): New function.
717 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
718 parameter, and don't call get_current_frame.
719 (i386_pop_frame): New function.
720 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
721 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
722 entry_point_address, set call_dummy_breakpoint_offset to 0, set
723 call_dummy_length to 0, set call_dummy_words to NULL, set
724 sizeof_call_dummy_words to 0, set fix_call_dummy to
725 generic_fix_call_dummy, set pc_in_call_dummy to
726 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
727 generic_push_dummy_frame, set push_return_address to
728 i386_push_return_address and set frame_chain_valid to
729 generic_file_frame_chain_valid.
731 2002-07-04 Michal Ludvig <mludvig@suse.cz>
733 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
734 byte offsets instead of an array of indexes.
735 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
737 2002-07-03 Andrew Cagney <ac131313@redhat.com>
739 * gdbarch.sh (struct regcache): Add opaque declaration.
740 (EXTRACT_RETURN_VALUE): New architecture method.
741 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
742 * gdbarch.h, gdbarch.c: Regenerate.
743 * arch-utils.c (legacy_extract_return_value): New function.
744 * arch-utils.h (legacy_extract_return_value): Declare.
745 * values.c (value_being_returned): Re-enable code handling
746 EXTRACT_STRUCT_VALUE_ADDRESS. Move
747 deprecated_grub_regcache_for_registers call to block handling
748 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
749 (EXTRACT_RETURN_VALUE): Do not define.
751 2002-07-03 Grace Sainsbury <graces@redhat.com>
753 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
754 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
755 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
756 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
757 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
758 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
759 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
760 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
761 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
762 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
763 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
764 argument so the function fits the prototype in the architecture
766 (mcore_pop_frame): Remove argument so the function fits the
767 prototype. Use get_current_frame instead of the argument.
768 (mcore_push_arguments): Change type of struct_return so the
769 function can be used in the architecture vector.
770 (mcore_store_struct_return): Add.
771 (mcore_frame_init_saved_regs): Add.
772 (mcore_gdbarch_init): Add function calls to replace the macros
773 removed from tm-mcore.h
775 2002-07-03 Andrew Cagney <ac131313@redhat.com>
777 * infcmd.c (print_return_value): Remove compatibility code calling
778 deprecated_grub_regcache_for_registers.
780 * values.c: Include "regcache.h".
781 (value_being_returned): Update. Use
782 deprecated_grub_regcache_for_registers to extract the register
784 * value.h (value_being_returned): Change ``retbuf'' parameter to a
786 * Makefile.in (values.o): Add dependency on $(regcache_h).
788 * inferior.h (run_stack_dummy): Change type of second parameter to
789 a ``struct regcache''.
790 * valops.c (hand_function_call): Change type of retbuf to ``struct
791 regcache''. Allocate using regcache_xmalloc, clean using
792 make_cleanup_regcache_xfree.
793 * infcmd.c (run_stack_dummy): Update. Use
794 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
796 * regcache.c (do_regcache_xfree): New function.
797 (make_cleanup_regcache_xfree): New function.
798 * regcache.h (make_cleanup_regcache_xfree): Declare.
800 2002-07-03 Martin M. Hunt <hunt@redhat.com>
802 * event-top.c (command_line_handler): Don't read past
805 2002-07-03 Martin M. Hunt <hunt@redhat.com>
807 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
809 (varobj_create): Store frame_id for root.
810 (varobj_gen_name): Use xasprintf.
811 (varobj_update): Save and restore frame using get_frame_id() and
813 (create_child): Use xasprintf.
814 (new_root_variable): Initialize frame_id.
815 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
816 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
817 to prevent memory leak.
819 2002-07-03 Andrew Cagney <ac131313@redhat.com>
821 * valops.c (hand_function_call): Move declaration of retbuf to
822 start of function, allocate using malloc, add a cleanup but before
823 the inf_status cleanup, cleanup the buffer. Rename local variable
824 old_chain to inf_status_cleanup.
826 2002-07-03 Martin M. Hunt <hunt@redhat.com>
828 * top.c (execute_command): Use cmd_func() and cmd_func_p().
830 * cli/cli-decode.c (cmd_func_p): New function.
831 (cmd_func): New function.
833 * command.h: Add cmd_func() and cmd_func_p().
835 2002-07-03 Grace Sainsbury <graces@redhat.com>
837 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
838 (REGISTER_SIZE): Remove.
839 (MAX_REGISTER_RAW_SIZE): Remove.
840 (REGISTER_VIRTUAL_TYPE): Remove.
841 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
842 (REGISTER_NAME): Remove.
843 (USE_GENERIC_DUMMY_FRAMES): Remove.
844 (CALL_DUMMY): Remove.
845 (CALL_DUMMY_START_OFFSET): Remove.
846 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
847 (CALL_DUMMY_LOCATION): Remove.
848 (FIX_CALL_DUMMY): Remove.
849 (CALL_DUMMY_ADDRESS): Remove.
850 (SIZEOF_CALL_DUMMY_WORDS): Remove.
851 (SAVE_DUMMY_FRAME_TOS): Remove.
852 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
853 (mcore_register_virtual_type): New function.
854 (mcore_register_byte): New function.
855 (mcore_register_size): New function.
856 (mcore_register_name): New function.
857 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
858 macros removed from tm-mcore.h.
859 (mcore_dump_tdep): Add.
860 (_initialize_mcore_tdep): Add gdbarch_register call.
862 2002-07-03 Mark Kettenis <kettenis@gnu.org>
864 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
865 frameless_look_for_prologue, such that we actually call this
868 2002-07-02 Joel Brobecker <brobecker@gnat.com>
870 * frame.h (frame_address_in_block): New function.
872 * blockframe.c (frame_address_in_block): New function extracted
873 from get_frame_block().
874 (get_frame_block): Use frame_address_in_block().
875 (block_innermost_frame): Use frame_address_in_block() to match
876 the frame pc address against the block boundaries rather than
877 the frame pc directly. This prevents a failure when a frame pc
878 is actually a return-address pointing immediately after the end
881 2002-07-02 Grace Sainsbury <graces@redhat.com>
883 * MAINTAINERS: Add self under write after approval.
885 2002-07-02 Grace Sainsbury <graces@redhat.com>
887 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
888 used in architecture vector. The default is
889 m68k_local_breakpoint_from_pc.
890 (m68k_local_breakpoint_from_pc): Add.
891 (enum): Add register numbers from tm-m68k.h.
892 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
894 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
895 GDB_MULTI_ARCH_PARTIAL.
896 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
897 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
899 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
900 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
901 to enum in m68k-tdep.c
903 2002-07-02 Joel Brobecker <brobecker@gnat.com>
905 * solib-osf.c (open_map): Compute the list of shared libraries
906 loaded by the inferior, rather than the list of libraries loaded
907 by GDB itself. Otherwise, GDB ends up reading the symbols from
908 the wrong shared libraries...
910 2002-07-02 Mark Kettenis <kettenis@gnu.org>
912 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
913 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
915 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
917 (FRAMELESS_SIGNAL): Remove function.
918 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
919 i386_linux_saved_pc_after_call): Removed.
920 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
921 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
922 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
924 * i386-tdep.c (i386_frameless_signal_p): New function.
925 (i386_frame_chain): Deal with frameless signals.
926 (i386_sigtramp_saved_sp): New function.
927 (i386_frame_saved_pc): Deal with frameless signals.
928 (i386_saved_pc_after_call): Make sure the correct value is
929 returned just after entry into a sigtramp.
930 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
931 i386fbsd4_sc_sp_offset): New variables.
932 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
933 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
934 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
935 similiar to what we already did for sc_pc_offset.
936 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
939 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
941 2002-07-02 Michal Ludvig <mludvig@suse.cz>
943 * config/i386/tm-x86-64linux.h: New.
944 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
946 * config/i386/nm-x86-64.h: Rename to ...
947 * config/i386/nm-x86-64linux.h: ... this one.
948 * config/i386/x86-64linux.mh: Reflect the above change.
950 2002-07-01 Mark Kettenis <kettenis@gnu.org>
952 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
953 with sigcontext_addr. Add sc_sp_offset.
954 (i386bsd_sigtramp_saved_pc): Remove prototype.
955 (i386bsd_sicontext_addr): Add prototype.
956 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
957 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
958 (i386_svr4_sigtramp_saved_pc): Removed.
959 (i386_svr4_sigcontext_addr): New function.
960 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
961 Initialize tdep->sigcontext_addr instead. Initialize
962 tdep->sc_pc_offset and tdep->sc_sp_offset.
963 (i386_gdbarch_init): Likewise.
964 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
966 (i386bsd_sigtramp_saved_pc): Remove function.
967 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
968 Initialize tdep->sigcontext_addr instead. Initialize
970 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
971 of tdep->sigtramp_saved_pc.
972 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
973 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
976 * i386-tdep.c (i386_frameless_function_invocation,
977 i386_frame_num_args, i386_frame_init_saved_regs,
978 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
979 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
980 i386_extract_return_value, i386_store_return_value,
981 i386_extract_struct_value_address, i386_register_virtual_type,
982 i386_register_convertible, i386_register_convert_to_virtual,
983 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
984 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
987 2002-07-01 Mark Kettenis <kettenis@gnu.org>
989 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
991 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
992 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
993 this macro. Include "value.h".
995 2002-06-30 Aidan Skinner <aidan@velvet.net>
997 * ada-exp.tab.c: remove as it's a generated file
998 * ada-lex.c: remove as it's a generated file
1000 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1002 * config/i386/tm-i386.h (struct frame_info, struct
1003 frame_saved_regs, struct value, struct type): Remove forward
1006 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1007 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1008 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1009 (FILL_FPXREGSET): Define.
1011 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1013 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1014 i[3456]86-*-netbsd* case.
1015 * config/i386/tm-obsd.h: Removed.
1016 * config/i386/obsd.mt: Removed.
1017 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1019 (MH_CFLAGS): Add -DYYDEBUG=0.
1021 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1022 i386nbsd_sc_pc_offset on OpenBSD too.
1024 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1025 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1026 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1028 * i386bsd-tdep.c: Include "arch-utils.h".
1029 (i386bsd_aout_in_solib_call_trampoline): New function.
1030 (i386bsd_init_abi): Set in_solib_call_trampoline to
1031 i386bsd_aout_in_solib_call_trampoline.
1032 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1033 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1035 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1037 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1038 (struct obstack, struct bcache): Add opaque declarations.
1039 * Makefile.in (macrotab_h): Update
1041 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1043 * blockframe.c (generic_find_dummy_frame): Change return type to
1044 ``struct regcache''.
1045 (struct dummy_frame): Replace field ``registers'' with regcache, a
1046 struct regcache object.
1047 (generic_find_dummy_frame): Update.
1048 (generic_push_dummy_frame): Update. Use regcache_xfree,
1049 regcache_xmalloc and regcache_cpy.
1050 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1052 (deprecated_generic_find_dummy_frame): Update.
1053 (generic_read_register_dummy): Update. Use
1054 regcache_read_as_address.
1055 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1056 (generic_get_saved_register): Update. Use regcache_read.
1058 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1060 * Makefile.in (objfiles_h): Add $(bcache_h).
1061 * objfiles.h: Include "bcache.h".
1063 * Makefile.in (symtab_h): Remove $(bcache_h).
1064 * symtab.h: Do not include "bcache.h".
1066 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1068 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1069 generic_func_frame_chain_valid.
1071 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1073 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1074 * config/i386/tm-fbsd.h: Likewise.
1076 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1078 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1079 generic_unwind_get_saved_register.
1081 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1083 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1084 * regcache.c (supply_register): Add missing argument to
1085 register_buffer call.
1087 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1089 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1090 Solaris /bin/grep does not not like it. From Peter Schauer.
1092 2002-06-26 Tom Tromey <tromey@redhat.com>
1094 * command.h (add_setshow_cmd): Declare.
1095 (add_setshow_cmd_full): Declare.
1096 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1097 returns void. Use add_setshow_cmd_full.
1098 (add_setshow_cmd_full): New function.
1099 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1100 (add_setshow_boolean_cmd): Likewise.
1102 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1104 * config/vax/tm-vax.h: Protect from multiple inclusion.
1105 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1106 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1107 * config/vax/tm-vaxbsd.h: ...here. New file.
1108 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1110 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1112 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1113 (BELIEVE_PCC_PROMOTION): Remove.
1114 (AP_REGNUM): Move to...
1115 * config/vax/nm-vax.h: ...here.
1116 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1117 (vax_breakpoint_from_pc): New function.
1118 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1119 and gdbarch_believe_pcc_promotion.
1121 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1123 * Makefile.in (vax_tdep_h): Define.
1124 (vax-tdep.o): Use $(vax_tdep_h).
1125 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1126 (vax_dump_tdep): New function.
1127 (_initialize_vax_tdep): Register vax_dump_tdep.
1128 * vax-tdep.h: Include osabi.h.
1129 (struct gdbarch_tdep): New.
1131 2002-06-26 Andrew Cagney <cagney@redhat.com>
1133 * frame.h (deprecated_generic_find_dummy_frame): Rename
1134 generic_find_dummy_frame.
1135 * blockframe.c (generic_find_dummy_frame): Make static.
1136 (deprecated_generic_find_dummy_frame): New function.
1137 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1138 generic_find_dummy_frame with deprecated_find_dummy_frame.
1139 (sh64_nofp_frame_init_saved_regs): Ditto.
1140 (sh_fp_frame_init_saved_regs): Ditto.
1141 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1142 (s390_frame_chain): Ditto.
1143 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1145 2002-06-26 Grace Sainsbury <graces@redhat.com>
1147 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1148 gdbarch vector are at the top.
1150 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1151 (FRAME_ARGS_ADDRESS): Remove.
1152 (FRAME_LOCALS_ADDRESS): Remove.
1153 (FRAME_NUM_ARGS): Remove.
1154 (FRAME_ARGS_SKIP): Remove.
1155 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1156 (m68k_gdbarch_init): Add gdbarch initializations for macros
1157 undefined in tm-m68k.h
1159 2002-06-26 Grace Sainsbury <graces@redhat.com>
1161 * monitor.h: Add the function regname to monitor_ops
1162 structure. This way NUM_REGS does not have to be a constant.
1163 * monitor.c (monitor_fetch_register): Added support for regname
1164 function. The function is called if the array regnames is NULL.
1165 (monitor_store_register): Same.
1166 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1168 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1169 cpu32bug_cmds.regname to point to new function.
1170 * abug-rom.c (abug_regname): Same as above.
1171 (init_abug_cmds): Same.
1172 * dbug-rom.c (dbug_regname): Same as above.
1173 (init_dbug_cmds): Same.
1174 * remote-est.c (est_regname): Same.
1175 (init_est_cmds): Same.
1176 * rom68k-rom.c (rom68k_regname): Same.
1177 (init_rom68k_cmds): Same.
1179 2002-06-25 Tom Tromey <tromey@redhat.com>
1181 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1183 2002-06-25 Andrew Cagney <cagney@redhat.com>
1185 * infrun.c (stop_registers): Change variable's type to ``struct
1187 (xmalloc_inferior_status): Delete function.
1188 (free_inferior_status): Delete function.
1189 (normal_stop): Use regcache_cpy.
1190 (struct inferior_status): Change type of fields ``stop_registers''
1191 and ``registers'' to ``struct regcache''.
1192 (write_inferior_status_register): Use regcache_write.
1193 (save_inferior_status): Instead of calling
1194 xmalloc_inferior_status, allocate the inf_status buffer directly.
1195 Use regcache_dup_no_passthrough and regcache_dup to save the
1197 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1198 Replace the stop_registers regcache instead of overriding it. Use
1199 regcache_xfree. Instead of calling free_inferior_status, xfree
1200 the buffer directly.
1201 (discard_inferior_status): Use regcache_xfree. Instead of calling
1202 free_inferior_status, xfree the buffer directly.
1203 (build_infrun): Use regcache_xmalloc.
1204 (_initialize_infrun): Delete redundant call to build_infrun.
1206 * Makefile.in (infcmd.o): Add $(regcache_h).
1208 * infcmd.c: Include "regcache.h".
1209 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1210 obtain the address of `stop_registers' register buffer.
1211 (print_return_value): Ditto.
1213 * inferior.h (struct regcache): Add opaque declaration.
1214 (stop_registers): Change variable's declared type to ``struct
1217 2002-06-24 Tom Tromey <tromey@redhat.com>
1219 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1220 * target.c (initialize_targets): Fixed typo in
1221 trust-readonly-sections `show' documentation.
1223 * main.c: Marked all strings with _().
1225 2002-06-24 Don Howard <dhoward@redhat.com>
1227 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1228 that means max CORE_ADDR+1.
1229 (lookup_mem_region): Ditto.
1230 (mem_info_command): Ditto.
1232 2002-06-24 Grace Sainsbury <graces@redhat.com>
1234 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1235 (REGISTER_BYTES_OK): Remove.
1236 (REGISTER_BYTES): Remove.
1237 (STORE_STRUCT_RETURN): Remove.
1238 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1239 (STORE_RETURN_VALUE): Remove.
1240 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1241 (FRAME_CHAIN): Remove.
1242 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1243 (FRAME_SAVED_PC): Remove.
1244 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1245 (m68k_store_struct_return): Add.
1246 (m68k_deprecated_extract_return_value): Add.
1247 (m68k_deprecated_extract_struct_value_address): Add.
1248 (m68k_store_return_value): Add.
1249 (m68k_frame_chain): Add.
1250 (m68k_frameless_function_invocation): Add.
1251 (m68k_frame_saved_pc): Add.
1252 (m68k_gdbarch_init): added set_gdbarch calls for new
1253 functions and deleted macros.
1255 2002-06-23 Tom Tromey <tromey@redhat.com>
1257 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1258 (ALLDEPFILES): Likewise.
1259 (udiheaders): Removed.
1260 (udip2soc.o): Likewise.
1261 (udi2go32.o): Likewise.
1263 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1265 2002-06-22 Andrew Cagney <ac131313@redhat.com>
1267 * infrun.c (_initialize_infrun): Delete unnecessary call to
1270 * regcache.h: Update comments describing the regcache_cpy family
1272 (regcache_save, regcache_restore): Delete declaration.
1273 (regcache_save_no_passthrough): Delete declaration.
1274 (regcache_restore_no_passthrough): Delete declaration.
1275 * regcache.c (regcache_save): Delete function.
1276 (regcache_save_no_passthrough): Delete function.
1277 (regcache_restore): Delete function.
1278 (regcache_restore_no_passthrough): Delete function.
1280 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1282 * config/m68k/tm-m68k.h: Fix typo.
1283 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1284 (m68k_frame_init_saved_regs): Declare.
1286 2002-06-21 Jim Blandy <jimb@redhat.com>
1288 Remove some vestiges of Harris 88k support.
1289 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1290 register numbering quirk.
1291 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1292 odd symbols occurring in Harris 88k ELF targets.
1294 2002-06-21 Tom Tromey <tromey@redhat.com>
1296 * gdb_locale.h: New file.
1297 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1298 (defs_h): Added gdb_locale.h.
1299 * configure, config.in: Rebuilt.
1300 * configure.in (PACKAGE): Define.
1301 * defs.h: Include gdb_locale.h.
1302 * main.c (captured_main): Call setlocale, bindtextdomain,
1305 2002-06-21 Dave Brolley <brolley@redhat.com>
1307 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1308 * config/frv/frv.mt: New file.
1309 * config/frv/tm-frv.h: New file.
1310 * configure.tgt: Support frv-*-*.
1311 * Makefile.in (frv-tdep.o): New target.
1312 * frv-tdep.c: New file.
1313 * NEWS: Mention frv.
1315 2002-06-21 Dave Brolley <brolley@redhat.com>
1317 * MAINTAINERS: Add self to "Write After Approval" list.
1319 2002-06-21 Grace Sainsbury <graces@redhat.com>
1321 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1322 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1323 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1324 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1325 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1327 * m68k-tdep.c: Include arch-utils.h
1328 (m68k_register_raw_size): Add.
1329 (m68k_register_virtual_size): Add.
1330 (m68k_register_virtual_type): Add.
1331 (m68k_register_name): Add.
1332 (m68k_stack_align): Add.
1333 (m68k_register_byte): Add.
1334 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1337 2002-06-21 Grace Sainsbury <graces@redhat.com>
1339 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1340 m68k_find_saved_regs.
1341 (m68k_pop_frame): Removed saved_regs structure, and replaced
1342 references to it with frame->saved_regs.
1343 (m68k_gdbarch_init): Added function calls to initialize the
1345 (m68k_fix_call_dummy): Add.
1346 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1347 (CALL_DUMMY): Remove.
1348 (CALL_DUMMY_LENGTH): Remove.
1349 (CALL_DUMMY_START_OFFSET): Remove.
1350 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1351 (FIX_CALL_DUMMY): Remove.
1352 (PUSH_DUMMY_FRAME): Remove.
1353 (POP_FRAME): Remove.
1355 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1357 * parse.c (parse_fprintf): New function used to avoid calls to
1358 fprintf in bison parser generated debug code.
1359 * parser-defs.h: Declaration of new parse_fprintf function.
1360 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1361 Set YYDEBUG to 1 by default.
1362 Set YYFPRINTF as parse_fprintf.
1364 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1366 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1368 (pointer_encoding, enum ptr_encoding): New.
1369 (execute_cfa_program): Take care about pointer encoding.
1370 (dwarf2_build_frame_info): Only call parse_frame_info for
1371 .debug_frame and .eh_frame.
1372 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1373 fixed augmentation handling, added relative addressing,
1374 ignore duplicate FDEs. Added comments.
1375 * dwarf2cfi.c: Reindented.
1377 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1379 * event-top.c (command_handler): Don't use space_at_cmd_start
1380 unless there is sbrk() on the host. Assign time and space data
1381 to union fields of the appropriate length.
1383 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1385 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1386 x86_64_register_name. Return type changed to 'const char *'.
1387 (x86_64_register_name2nr): Rename to x86_64_register_number.
1388 (x86_64_gdbarch_init): Update to reflect the change.
1389 * x86-64-tdep.h: Ditto.
1390 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1391 (supply_fpregset): Ditto.
1393 2002-06-19 Andrew Cagney <cagney@redhat.com>
1395 * regcache.h: Update copyright.
1396 (struct regcache, struct gdbarch): Add opaque declarations.
1397 (current_regcache): Declare global variable.
1398 (regcache_read, regcache_write): Add gdbarch parameter.
1399 (regcache_save, regcache_save_no_passthrough)
1400 (regcache_restore, regcache_restore_no_passthrough)
1401 (regcache_dup, regcache_dup_no_passthrough)
1402 (regcache_cpy, regcache_cpy_no_passthrough)
1403 (deprecated_grub_regcache_for_registers)
1404 (deprecated_grub_regcache_for_register_valid)
1405 (regcache_valid_p): Add function declarations.
1407 * regcache.c: Update copyright.
1408 (regcache_descr_handle): New global variable.
1409 (struct regcache_descr): Define.
1410 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1411 (regcache_descr, xfree_regcache_descr): New functions.
1412 (struct regcache): Define.
1413 (regcache_xmalloc, regcache_xfree): New functions.
1414 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1415 (regcache_dup, regcache_dup_no_passthrough): New functions.
1416 (regcache_valid_p, regcache_read_as_address): New functions.
1417 (deprecated_grub_regcache_for_registers): New function.
1418 (deprecated_grub_regcache_for_register_valid): New function.
1419 (current_regcache): New global variable.
1420 (register_buffer): Add regcache parameter. Update calls.
1421 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1422 (read_register_gen, write_register_gen): Update register_buffer
1423 call. Test for legacy_p instead of gdbarch_register_read_p or
1424 gdbarch_register_write_p.
1425 (regcache_collect): Update register_buffer call.
1426 (build_regcache): Rewrite. Use deprecated grub functions.
1427 (regcache_save, regcache_save_no_passthrough): New functions.
1428 (regcache_restore, regcache_restore_no_passthrough): New
1430 (_initialize_regcache): Create the regcache_data_handle. Swap
1431 current_regcache global variable.
1433 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1434 parameter to regcache_read and regcache_write calls.
1435 (sh4_register_read): Ditto.
1436 (sh64_pseudo_register_read): Ditto.
1437 (sh64_register_read): Ditto.
1438 (sh_pseudo_register_write): Ditto.
1439 (sh4_register_write): Ditto.
1440 (sh64_pseudo_register_write): Ditto.
1441 (sh64_register_write): Ditto.
1443 * defs.h (XCALLOC): Define.
1445 2002-06-19 Grace Sainsbury <graces@redhat.com>
1447 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1448 * m68k-tdep.c (m68k_gdbarch_init): Added.
1449 (m68k_dump_tdep): Added.
1451 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1453 * ada-lang.c (fill_in_ada_prototype): Update comment.
1455 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1457 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1459 (mips_abi_string, mips_abi_strings): New.
1460 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1461 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1462 tdep->mips_abi_string. Honor mips_abi_string. Default to
1463 O32 if no ABI is found.
1464 (mips_dump_tdep): Use mips_abi_strings.
1465 (mips_abi_update): New function.
1466 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1467 ``set mips abi'' and ``show mips abi''. Check the size of
1470 2002-06-19 Andrew Cagney <cagney@redhat.com>
1472 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1475 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1477 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1478 current frame using only the first stack size adjustment. All
1479 subsequent size adjustments are not considered to be part of
1480 the "static" part of the current frame.
1481 Compute the address of the saved registers relative to the
1482 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1483 in use in this frame.
1485 2002-06-18 Don Howard <dhoward@redhat.com>
1487 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1488 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1489 suggesting this solution.
1491 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1493 * config/romp/xm-rtbsd.h: Delete file.
1494 * config/romp/rtbsd.mh: Delete file.
1496 2002-06-18 Keith Seitz <keiths@redhat.com>
1498 * breakpoint.c (condition_command): Post breakpoint_modify
1499 when a condition is added to an existing breakpoint.
1500 (commands_command): Likewise for commands.
1501 (set_ignore_count): Likewise for ignore counts.
1502 If no tty, do not simply return, still need to send event
1504 (ignore_command): Only print a newline if the command came
1506 Don't call breakpoints_changed, since this is now properly
1507 handled by set_ignore_count.
1509 2002-06-18 Andrew Cagney <cagney@redhat.com>
1511 * MAINTAINERS: Note that cris-elf target can be compiled with
1513 * cris-tdep.c (cris_register_name): Make return type constant.
1514 (cris_breakpoint_from_pc): Ditto.
1516 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1518 * frame.h (struct frame_info): Change type of context to
1521 2002-06-17 Andrew Cagney <cagney@redhat.com>
1523 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1525 * gdbarch.h, gdbarch.c: Regenerate.
1526 * config/mips/tm-mips.h (mips_register_name): Update.
1527 * i386-tdep.h (i386_register_name): Update.
1528 * mips-tdep.c (mips_register_name): Update
1529 * alpha-tdep.c (alpha_register_name): Update.
1530 * arch-utils.c (legacy_register_name): Update.
1531 * arch-utils.h (legacy_register_name): Update.
1532 * avr-tdep.c (avr_register_name): Update.
1533 * ia64-tdep.c (ia64_register_name): Update.
1534 * i386-tdep.c (i386_register_name): Update.
1535 * sparc-tdep.c (sparc32_register_name): Update.
1536 (sparc64_register_name): Update.
1537 (sparclite_register_name): Update.
1538 (sparclet_register_name): Update.
1539 * sh-tdep.c (sh_generic_register_name): Update.
1540 (sh_sh_register_name): Update.
1541 (sh_sh3_register_name): Update.
1542 (sh_sh3e_register_name): Update.
1543 (sh_sh_dsp_register_name): Update.
1544 (sh_sh3_dsp_register_name): Update.
1545 (sh_sh4_register_name): Update.
1546 (sh_sh64_register_name): Update.
1547 * s390-tdep.c (s390_register_name): Update.
1548 * rs6000-tdep.c (rs6000_register_name): Update.
1549 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1550 (ns32k_register_name_32382): Update.
1551 * d10v-tdep.c (d10v_ts2_register_name): Update.
1552 (d10v_ts3_register_name): Update.
1553 * xstormy16-tdep.c (xstormy16_register_name): Update.
1554 * vax-tdep.c (vax_register_name): Update.
1555 * v850-tdep.c (v850_register_name): Update.
1556 * m68hc11-tdep.c (m68hc11_register_name): Update.
1557 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1558 (am33_register_name): Update.
1560 2002-06-17 Grace Sainsbury <graces@redhat.com>
1562 * m68k-tdep.c: Reindented.
1564 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1566 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1567 list of predefined types.
1569 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1571 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1572 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1573 REGISTER_CONVERT_TO_RAW): Remove defines.
1574 (i386_register_virtual_type, i386_register_convertible,
1575 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1577 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1578 macros mentioned above.
1580 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1581 (i386lynx_saved_pc_after_call): Remove prototype.
1582 * i386ly-tdep.c: Include "i386-tdep.h".
1583 (i386lynx_saved_pc_after_call): Make static. Use
1584 read_memory_nobpt instead of read_memory. Use
1585 read_memory_unsigned_integer instead of read_memory_integer.
1586 (i386lynx_init_abi): New function.
1587 (i386lynx_coff_osabi_sniffer): New function.
1588 (_initialize_i386bsd_tdep): New function.
1590 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1591 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1592 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1593 (i386_fix_call_dummy): Remove prototype.
1594 * i386-tdep.c (i386_call_dummy_words): New variable.
1595 (i386_gdbarch_init): Adjust for removal of the
1596 macros mentioned above.
1598 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1600 * command.h (add_setshow_auto_boolean_cmd): Replace
1601 add_set_auto_boolean_cmd.
1602 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1603 add_set_auto_boolean_cmd.
1604 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1605 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1606 mask-address'' command.
1607 (show_mask_address): Add cmd parameter.
1608 * remote.c (add_packet_config_cmd): Update. Change type of
1609 set_func and show_func to cmd_sfunc_ftype.
1610 (_initialize_remote): Update `set remote Z-packet'
1611 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1612 (show_remote_protocol_e_packet_cmd): Ditto.
1613 (show_remote_protocol_E_packet_cmd): Ditto.
1614 (show_remote_protocol_P_packet_cmd): Ditto.
1615 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1616 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1617 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1618 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1619 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1620 (show_remote_protocol_Z_packet_cmd): Ditto.
1621 (show_remote_protocol_binary_download_cmd): Ditto.
1622 (show_remote_cmd): Pass NULL to all of above.
1624 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1626 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1627 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1628 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1629 POP_FRAME): Remove defines.
1630 (i386_push_arguments, i386_store_struct_return,
1631 i386_extract_return_value, i386_store_return_value,
1632 i386_extract_struct_value_address, i386_push_dummy_frame,
1633 i386_pop_frame): Renove prototypes.
1634 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1635 macros mentioned above.
1637 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1639 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1640 add_set_boolean_cmd.
1641 (add_setshow_cmd): New function.
1642 * command.h (add_setshow_boolean_cmd): Replace
1643 add_set_boolean_cmd.
1644 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1645 and ``set rdiromatzero''.
1646 * maint.c (_initialize_maint_cmds): Update commented out code.
1647 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1648 * target.c (initialize_targets): Update `set
1649 trust-readonly-sections'.
1650 * remote.c (_initialize_remote): Update `set remotebreak'.
1652 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1654 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1655 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1656 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1657 fit into multi-arch framework.
1658 (i386_breakpoint_from_pc): New function.
1659 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1662 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1663 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1664 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1665 (i386_frameless_function_invocation, i386_frame_num_args,
1666 i386_frame_init_saved_regs): Remove prototypes.
1667 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1668 macros mentioned above.
1670 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1672 * cli/cli-decode.c (set_cmd_cfunc): Update.
1673 (set_cmd_sfunc): Update.
1674 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1675 (set_cmd_sfunc, set_cmd_cfunc): Update.
1676 * cli/cli-decode.h: Update.
1678 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1680 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1681 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1683 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1685 * defs.h (auto_boolean): Declare enum.
1686 * command.h (cmd_auto_boolean): Delete enum.
1687 * mips-tdep.c (mask_address_var): Update.
1688 (mips_mask_address_p): Update.
1689 (show_mask_address): Update.
1690 * remote.c (struct packet_config): Update.
1691 (update_packet_config): Update.
1692 (show_packet_config_cmd): Update.
1693 (packet_ok): Update.
1694 (add_packet_config_cmd): Update.
1695 (_initialize_remote):
1696 * command.h: Update.
1697 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1698 (do_setshow_command): Update.
1699 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1700 * cli/cli-decode.h: Update.
1702 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1704 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1705 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1706 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1707 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1708 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1709 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1711 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1712 list of DJGPP COFF targets.
1714 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1715 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1716 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1717 (FP0_REGNUM): Remove define.
1718 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1719 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1720 (i386_register_virtual_size): Remove protoype.
1721 * i386-tdep.c (i386_register_virtual_size): Removed.
1722 (i386_extract_return_value, i386_store_return_value): Use
1723 FP0_REGNUM instead of NUM_FREGS to determine whether the
1724 floating-point registers are available.
1725 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1726 Adjust for removal of macros mentioned above.
1728 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1730 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1732 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1734 (supply_gregset, fill_gregset): Remove use of register keyword and
1735 remove declaration for regmap. Use I386_NUM_GREGS instead of
1736 NUM_REGS and NUM_FREGS.
1737 (FPREGSET_FSAVE_OFFSET): Remove.
1738 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1739 NUM_FREGS to determine whether the floating-point registers are
1742 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1743 gnu_store_registers): Replace usage of NUM_GREGS with
1746 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1747 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1748 usage of NUM_GREGS with I386_NUM_GREGS.
1750 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1752 * i386bsd-nat.c: Include "i386-tdep.h".
1753 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1756 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1757 and associated comment. They no longer make any sense, since we
1758 don't use this file anymore on Linux.
1760 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1761 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1762 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1763 elements in these arrays.
1764 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1767 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1769 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1770 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1772 2002-06-14 Andrew Cagney <cagney@redhat.com>
1774 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1775 EXTRACT_RETURN_VALUE.
1776 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1777 EXTRACT_STRUCT_VALUE_ADDRESS.
1778 * gdbarch.h, gdbarch.c: Regenerate.
1780 * values.c (value_being_returned): Handle
1781 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1782 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1784 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1785 * arm-tdep.c (arm_gdbarch_init): Update.
1786 * avr-tdep.c (avr_gdbarch_init): Update.
1787 * cris-tdep.c (cris_gdbarch_init): Update.
1788 * d10v-tdep.c (d10v_gdbarch_init): Update.
1789 * ia64-tdep.c (ia64_gdbarch_init): Update.
1790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1792 * s390-tdep.c (s390_gdbarch_init): Update.
1793 * sh-tdep.c (sh_gdbarch_init): Update.
1794 * s390-tdep.c (s390_gdbarch_init): Update.
1795 * sparc-tdep.c (sparc_gdbarch_init): Update.
1796 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1797 * v850-tdep.c (v850_gdbarch_init): Update.
1798 * vax-tdep.c (vax_gdbarch_init): Update.
1799 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1800 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1802 * config/arc/tm-arc.h: Update.
1803 * config/d30v/tm-d30v.h: Update.
1804 * config/fr30/tm-fr30.h: Update.
1805 * config/h8300/tm-h8300.h: Update.
1806 * config/h8500/tm-h8500.h: Update.
1807 * config/i386/tm-i386.h: Update.
1808 * config/i386/tm-ptx.h: Update.
1809 * config/i386/tm-symmetry.h: Update.
1810 * config/i960/tm-i960.h: Update.
1811 * config/m32r/tm-m32r.h: Update.
1812 * config/m68k/tm-delta68.h: Update.
1813 * config/m68k/tm-linux.h: Update.
1814 * config/m68k/tm-m68k.h: Update.
1815 * config/m88k/tm-m88k.h: Update.
1816 * config/mcore/tm-mcore.h: Update.
1817 * config/mips/tm-mips.h: Update.
1818 * config/mn10200/tm-mn10200.h: Update.
1819 * config/pa/tm-hppa.h: Update.
1820 * config/pa/tm-hppa64.h: Update.
1821 * config/sparc/tm-sp64.h: Update.
1822 * config/sparc/tm-sparc.h: Update.
1823 * config/sparc/tm-sparclet.h: Update.
1824 * config/z8k/tm-z8k.h: Update.
1826 2002-06-14 Andrew Cagney <cagney@redhat.com>
1828 * Makefile.in (i386_linux_tdep_h): Define.
1829 (i386_tdep_h, i387_tdep_h): Define.
1830 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1831 $(i386_tdep_h) and $(i387_tdep_h).
1832 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1834 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1836 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1837 Already covered by the default.
1839 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1840 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1841 (i386_gdbarch_init): Initialize long_double_format and long_double
1844 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1845 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1847 * config/i386/i386sol2.mh: ... here.
1848 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1849 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1850 (SIGCONTEXT_PC_OFFSET): Remove define.
1851 (IN_SIGTRAMP): Remove define.
1852 * i386-sol2-tdep.c: New file.
1854 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1855 * config/i386/tm-i386nw.h: Removed.
1857 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1858 USE_STRUCT_CONVENTION): Remove defines.
1859 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1860 (get_longjmp_target): Remove prototype.
1861 (IN_SIGTRAMP): Remove define.
1862 (i386bsd_in_sigtramp): Remove prototype.
1863 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1864 function. Update comment accordingly
1865 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1866 (FRAME_SAVED_PC): Remove define.
1867 (i386bsd_frame_saved_pc): Remove prototype.
1868 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1869 GET_LONGJMP_TARGET): Remove defines.
1870 (get_longjmp_target): Remove prototype.
1871 (IN_SIGTRAMP): Remove define.
1872 (i386bsd_in_sigtramp): Remove prototype.
1873 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1874 function. Update comment accordingly
1875 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1876 (FRAME_SAVED_PC): Remove define.
1877 (i386bsd_frame_saved_pc): Remove prototype.
1878 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1880 (USE_STRUCT_CONVENTION): Remove prototype.
1881 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1883 (_initialize_i386bsd_nat): Revise logic to determine some
1884 constants at compile time when compiling a native GDB. Warn if
1885 things don't match up with what we expect.
1886 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1888 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1889 to use date stored in `struct gdbarch_tdep'.
1890 (i386bsd_sigcontext_offset): Remove varaible.
1891 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1892 stored in `struct gdbarch_tdep'.
1893 (i386bsd_frame_saved_pc): Make static.
1894 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1895 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1896 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1897 i386fbsd4_sc_pc_offset): New variables.
1898 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1899 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1901 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1903 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1904 Modify the value of i386fbsd_sigtramp_start and
1905 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1906 i386fbsd_sigtramp_end.
1907 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1910 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1911 define to i386-linux-tdep.h.
1912 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1913 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1915 (i386_linux_register_name, i386_linux_register_byte,
1916 i386_linux_register_raw_size): Remove prototypes.
1917 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1918 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1919 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1920 TARGET_WRITE_PC): Remove defines.
1921 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1922 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1923 i386_linux_write_pc): Remove prototypes.
1924 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1925 (get_longjmp_target): Remove prototype.
1926 * i386-linux-tdep.h: New file.
1927 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1928 * i386-linux-tdep.c: Include "i386-tdep.h" and
1929 "i386-linux-tdep.h".
1930 (i386_linux_register_name, i386_linux_register_byte,
1931 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1932 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1934 (i386_linux_init_abi): New function.
1935 (_initialize_i386_linux_tdep): New function.
1937 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1938 (i386_saved_pc_after_call): Remove prototype.
1939 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1940 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1941 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1942 (i386_register_name, i386_stab_reg_to_regnum,
1943 i386_dwarf_reg_to_regnum): Remove prototypes.
1944 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1945 SIZEOF_SSE_REGS): Remove defines.
1946 (REGISTER_BYTES): Remove define.
1947 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1948 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1949 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1950 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1951 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1952 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1953 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1954 (get_longjmp_target): Remove prototype.
1955 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1956 (sigtramp_saved_pc): Remove define.
1957 (i386v4_sigtramp_saved_pc): Remove prototype.
1958 * config/i386/tm-go32.h (FRAME_CHAIN,
1959 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1960 (i386go32_frame_saved_pc): Remove prototype.
1961 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1962 (get_longjmp_target): Remove prototype.
1963 * i386-tdep.h: Include "osabi.h".
1964 (enum i386_abi): Removed.
1965 (enum struct_return): New enum.
1966 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1967 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1968 sc_pc_offset members.
1969 (i386_gdbarch_register_os_abi): Remove prototype.
1970 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1971 I386_SSE_NUM_REGS): New defines.
1972 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1973 I386_SSE_SIZEOF_REGS): New defines.
1974 (i386_register_name, i386_register_byte, i386_register_raw_size):
1976 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1977 (i386bsd_sigtramp_saved_pc): New prototype.
1978 * i386-tdep.c: Don't include "elf-bfd.h".
1979 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1980 i386_frame_chain, i386_saved_pc_after_call): Make static.
1981 (i386_frame_saved_pc): Rewrite to call architecture dependent
1982 function to deal with signal handlers. Make static.
1983 (i386go32_frame_saved_pc): Removed.
1984 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1986 (i386_get_longjmp_target): New function.
1987 (default_struct_convention, pcc_struct_convention,
1988 reg_struct_convention, valid_conventions, struct_convention): New
1990 (i386_use_struct_convention): New function.
1991 (i386v4_sigtramp_saved_pc): Renamed to
1992 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1993 (i386_pc_in_sigtramp): New function.
1994 (i386_abi_names): Removed.
1995 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1996 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1998 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1999 i386_gdbarch_register_os_abi): Removed.
2000 (struct i386_abi_handler): Removed.
2001 (i386_abi_handler_list): Removed.
2002 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2004 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2005 i386_nw_init_abi): New functions.
2006 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2007 Use set_gdbarch_xxx() calls instead of relying on macros for a
2009 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2010 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2011 Register the various architecture variants defined in this file.
2013 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2015 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2016 (struct main_type): Remove arg_types member. Update comments for
2018 (TYPE_ARG_TYPES): Remove.
2019 (TYPE_FN_FIELD_ARGS): Update.
2020 (smash_to_method_type): Update prototype.
2022 * c-typeprint.c (cp_type_print_method_args): Take method type
2023 instead of argument list. Use new argument layout. Simplify.
2024 (c_type_print_args): Use new argument layout. Simplify.
2025 (c_type_print_base): Update call to cp_type_print_method_args.
2026 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2027 argument; use die->type instead. Update call to
2028 smash_to_method_type.
2029 (read_structure_scope): Update call to dwarf2_add_member_fn.
2030 * gdbtypes.c (allocate_stub_method): Update comment.
2031 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2032 Use new argument layout.
2033 (check_stub_method): Use new argument layout. Don't count
2034 void as an argument.
2035 (print_arg_types): Update comments. Use new argument layout.
2036 (recursive_dump_type): Don't print arg_types member.
2037 * hpread.c (hpread_read_struct_type): Use new argument layout.
2038 (fixup_class_method_type): Likewise.
2039 (hpread_type_lookup): Likewise.
2040 * stabsread.c (read_type): Update calls to read_args and
2041 smash_to_method_type.
2042 (read_args): Use new argument layout. Simplify.
2043 * valops.c (typecmp): Use new argument layout. Update parameters
2044 and comments. Simplify.
2045 (hand_function_call): Use new argument layout.
2046 (search_struct_method): Update call to typecmp.
2047 (find_overload_match): Use new argument layout.
2049 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2051 * NEWS: Mention multithreaded debug support for gdbserver.
2053 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2055 * MAINTAINERS: Mention NEWS.
2057 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2059 * gdbserver/regcache.c: Add comment.
2061 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2063 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2064 (struct mips_objfile_private, compare_pdr_entries): New.
2065 (non_heuristic_proc_desc): Read the ".pdr" section if it
2068 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2070 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2071 (arm_debug): New static variable.
2072 (_initialize_arm_tdep): Add ``set debug arm'' command.
2074 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2076 * Makefile.in (sim_arm_h): Define.
2077 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2078 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2079 (arm_register_sim_regno): New function, map an internal REGNUM
2080 onto a simulator register number.
2081 (arm_gdbarch_init): Set register_sim_regno.
2083 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2085 * MAINTAINERS: Add self.
2087 2002-06-11 Jim Blandy <jimb@redhat.com>
2089 * source.c (source_info): Mention whether the symtab has
2090 information about preprocessor macros.
2092 Call the command `info macro', not `show macro'.
2093 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2095 (_initialize_macrocmd): Register `info_macro_command' in
2096 `infolist', not `showlist'.
2098 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2100 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2101 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2102 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2103 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2104 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2106 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2107 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2108 (_initialize_mips_tdep): Remove dead code.
2109 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2110 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2111 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2112 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2113 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2114 MIPS_LAST_FP_ARG_REGNUM): Remove.
2116 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2118 * gdbserver/thread-db.c: New file.
2119 * gdbserver/proc-service.c: New file.
2120 * gdbserver/acinclude.m4: New file.
2121 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2122 proc-service.o, and thread-db.o.
2123 (linux-low.o): Add USE_THREAD_DB.
2124 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2125 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2126 * gdbserver/aclocal.m4: Regenerated.
2127 * gdbserver/config.in: Regenerated.
2128 * gdbserver/configure: Regenerated.
2129 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2130 thread_db.h, and linux/elf.h headrs.
2131 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2132 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2133 Check for -lthread_db and thread support.
2134 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2135 PowerPC, and SuperH.
2136 * gdbserver/i387-fp.c: Constify arguments.
2137 * gdbserver/i387-fp.h: Likewise.
2138 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2139 `struct inferior_info'. Remove PID member. Use generic inferior
2140 list header. All uses updated.
2141 (inferiors, signal_pid): Removed.
2142 (all_threads): New variable.
2143 (get_thread): Define.
2144 (add_inferior_to_list): New function.
2145 (for_each_inferior): New function.
2146 (change_inferior_id): New function.
2147 (add_inferior): Removed.
2148 (remove_inferior): New function.
2149 (add_thread): New function.
2150 (free_one_thread): New function.
2151 (remove_thread): New function.
2152 (clear_inferiors): Use for_each_inferior and free_one_thread.
2153 (find_inferior): New function.
2154 (find_inferior_id): New function.
2155 (inferior_target_data): Update argument type.
2156 (set_inferior_target_data): Likewise.
2157 (inferior_regcache_data): Likewise.
2158 (set_inferior_regcache_data): Likewise.
2159 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2160 (all_processes, stopping_threads, using_thrads)
2161 (struct pending_signals, debug_threads, pid_of): New.
2162 (inferior_pid): Replace with macro.
2163 (struct inferior_linux_data): Remove.
2164 (get_stop_pc, add_process): New functions.
2165 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2166 Use add_process and add_thread.
2167 (linux_attach_lwp): New function, based on old linux_attach. Use
2168 add_process and add_thread. Set stop_expected for new threads.
2169 (linux_attach): New function.
2170 (linux_kill_one_process): New function.
2171 (linux_kill): Kill all LWPs.
2172 (linux_thread_alive): Use find_inferior_id.
2173 (check_removed_breakpoints, status_pending_p): New functions.
2174 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2175 Update. Use WNOHANG. Wait for cloned processes also. Update process
2176 struct for the found process.
2177 (linux_wait_for_event): New function.
2178 (linux_wait): Use it. Support LWPs.
2179 (send_sigstop, wait_for_sigstop, stop_all_processes)
2180 (linux_resume_one_process, linux_continue_one_process): New functions.
2181 (linux_resume): Support LWPs.
2182 (REGISTER_RAW_SIZE): Remove.
2183 (fetch_register): Use register_size instead. Call supply_register.
2184 (usr_store_inferior_registers): Likewise. Call collect_register.
2186 (regsets_fetch_inferior_registers): Improve error message.
2187 (regsets_store_inferior_registers): Add debugging.
2188 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2189 (unstopped_p, linux_signal_pid): New functions.
2190 (linux_target_ops): Add linux_signal_pid.
2191 (linux_init_signals): New function.
2192 (initialize_low): Call it. Initialize using_threads.
2193 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2195 (get_regcache): Fetch registers lazily. Add fetch argument
2196 and update all callers.
2197 (regcache_invalidate_one, regcache_invalidate): New
2199 (new_register_cache): Renamed from create_register_cache.
2200 Return the new regcache.
2201 (free_register_cache): Change argument to a void *.
2202 (registers_to_string, registers_from_string): Call get_regcache
2203 with fetch flag set.
2204 (register_data): Make static. Pass fetch flag to get_regcache.
2205 (supply_register): Call get_regcache with fetch flag clear.
2206 (collect_register): Call get_regcache with fetch flag set.
2207 (collect_register_as_string): New function.
2208 * gdbserver/regcache.h: Update.
2209 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2211 Handle input interrupts while waiting for an ACK.
2212 (input_interrupt): Use signal_pid method.
2213 (getpkt): Flush after debug output and use stderr.
2214 (outreg): Use collect_register_as_string.
2215 (new_thread_notify, dead_thread_notify): New functions.
2216 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2218 (look_up_one_symbol): Flush after debug output.
2219 * gdbserver/server.c (step_thread, server_waiting): New variables.
2220 (start_inferior): Don't use signal_pid. Update call to mywait.
2221 (attach_inferior): Update call to mywait.
2222 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2223 (main): Don't fetch/store registers explicitly. Use
2224 set_desired_inferior. Support proposed ``Hs'' packet. Update
2226 * gdbserver/server.h: Update.
2227 (struct inferior_list, struct_inferior_list_entry): New.
2228 * gdbserver/target.c (set_desired_inferior): New.
2229 (write_inferior_memory): Constify.
2230 (mywait): New function.
2231 * gdbserver/target.h: Update.
2232 (struct target_ops): New signal_pid method.
2233 (mywait): Removed macro, added prototype.
2235 * gdbserver/linux-low.h (regset_func): Removed.
2236 (regset_fill_func, regset_store_func): New.
2237 (enum regset_type): New.
2238 (struct regset_info): Add type field. Use new operation types.
2239 (struct linux_target_ops): stop_pc renamed to get_pc.
2240 Add decr_pc_after_break and breakpoint_at.
2241 (get_process, get_thread_proess, get_process_thread)
2242 (strut process_info, all_processes, linux_attach_lwp)
2243 (thread_db_init): New.
2245 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2246 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2247 (the_low_target): Add new members.
2248 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2249 (i386_store_fpxregset): Constify.
2250 (target_regsets): Add new kind identifier.
2251 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2252 (i386_set_pc): Add debugging.
2253 (i386_breakpoint_at): New function.
2254 (the_low_target): Add new members.
2255 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2256 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2257 (mips_breakpoint_at): New.
2258 (the_low_target): Add new members.
2259 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2260 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2261 (the_low_target): Add new members.
2262 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2263 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2264 (the_low_target): Add new members.
2265 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2268 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2270 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2271 (unwind_tmp_obstack_free, parse_frame_info)
2272 (update_context, cfi_read_fp, cfi_write_fp)
2273 (cfi_frame_chain, cfi_init_extra_frame_info)
2274 (cfi_virtual_frame_pointer): Use the above function.
2275 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2277 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2279 * v850-tdep.c (v850_type_is_scalar): New function.
2280 (v850_use_struct_convention): Match current gcc implementation
2281 as close as possible.
2282 (v850_push_arguments): Fix stack_offset handling. Don't write
2283 struct_addr into register. This is done by v850_store_struct_return.
2284 (v850_extract_return_value): Care for structs.
2285 (v850_store_return_value): Ditto.
2286 (v850_store_struct_return): Actually write address.
2288 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2290 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2291 without debug information too.
2293 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2295 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2296 Make multi-arch pure.
2297 * gdbarch.h, gdbarch.c: Re-generate.
2298 * arm-tdep.c (arm_print_float_info): Update.
2299 * arch-utils.h (default_print_float_info): Update.
2300 * arch-utils.c (default_print_float_info): Update.
2301 * infcmd.c (float_info): Update call.
2303 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2305 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2306 the front of the initialize list.
2308 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2310 * infrun.c (struct inferior_status): Replace fields
2311 selected_frame_address and selected_level with field
2313 (save_inferior_status): Update. Use get_frame_id.
2314 (struct restore_selected_frame_args): Delete.
2315 (restore_selected_frame): Update. Use frame_find_by_id.
2316 (restore_inferior_status): Update.
2318 * breakpoint.h (struct breakpoint): Change type of
2319 watchpoint_frame to frame_id.
2320 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2321 call to get_current_frame.
2322 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2324 (watchpoint_check): Use frame_find_by_id.
2326 * frame.h (record_selected_frame): Delete declaration.
2327 * stack.c (record_selected_frame): Delete function.
2329 * frame.h (struct frame_id): Define.
2330 (get_frame_id): Declare.
2331 (frame_find_by_id): Declare.
2332 * frame.c (frame_find_by_id): New function.
2333 (get_frame_id): New function.
2335 2002-06-10 Andrey Volkov <avolkov@transas.com>
2337 * ser-e7kpc.c: Fix duplicated define and call of
2338 _initialize_ser_e7000pc
2340 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2342 * signals/signals.c (target_signal_from_host): Fix #ifdef
2344 (do_target_signal_to_host): Likewise.
2346 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2348 * mips-tdep.c (mips_find_abi_section): New function.
2349 (mips_gdbarch_init): Call it.
2351 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2353 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2354 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2355 after Andrew's 2002-06-08 gdbarch change.
2357 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2359 * i386-linux-nat.c (suppy_gregset): Don't supply
2360 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2362 (fill_gregset): Don't fetch it under the same circumstances.
2364 2002-06-09 Andrew Cagney <cagney@redhat.com>
2366 * Makefile.in (callback_h): Define.
2367 (remote_sim_h): Update path to remote-sim.h.
2368 (remote-rdp.o): Add $(callback_h).
2369 (remote-sim.o): Use $(callback_h).
2370 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2371 * remote-rdp.c: Include "gdb/callback.h".
2373 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2375 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2376 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2378 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2380 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2381 * rdi-share/serpardr.c: Ditto.
2382 * rdi-share/unixcomm.c: Ditto.
2383 * rdi-share/serdrv.c: Ditto.
2384 * rdi-share/hostchan.h: Ditto.
2385 * rdi-share/hostchan.c: Ditto.
2386 * rdi-share/host.h: Ditto.
2387 * rdi-share/devsw.c: Ditto.
2389 * objfiles.h: Change type of obj_private to void pointer.
2390 * pa64solib.c: Update copyright. Don't include "assert.h", use
2391 strcmp instead of STREQ, use LONGEST, do not use PTR
2392 * somsolib.c: Ditto.
2394 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2395 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2396 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2398 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2400 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2401 (default_get_saved_register): Delete function.
2402 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2403 generic_unwind_get_saved_register.
2404 * gdbarch.h, gdbarch.c: Re-generate.
2406 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2408 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2409 generic_func_frame_chain_valid.
2410 * gdbarch.h, gdbarch.c: Re-generate.
2411 * blockframe.c (generic_func_frame_chain_valid): Only check
2412 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2413 passing FP to PC_IN_CALL_DUMMY.
2416 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2418 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2419 (register_gdbarch_data): Initialize init_p.
2420 (gdbarch_data): Initialize data pointer using the init function.
2421 (init_gdbarch_data): Delete function.
2422 (gdbarch_update_p): Update.
2423 (initialize_non_multiarch): Update.
2424 (struct gdbarch): Add field initialized_p.
2425 * gdbarch.h, gdbarch.c: Re-generate.
2427 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2429 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2430 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2431 better do the things actually here.
2432 * x86-64-tdep.c (x86_64_register_name2nr): New.
2433 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2434 (x86_64_gdbarch_init): Respect the above change.
2435 * x86-64-tdep.h (x86_64_register_name2nr)
2436 (x86_64_register_nr2name): Add prototypes.
2437 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2439 2002-06-06 Michael Snyder <msnyder@redhat.com>
2441 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2442 Delete extra braces and re-indent.
2443 (d10v_store_return_value): Char return values
2444 must be shifted over by one byte in R0.
2445 (d10v_extract_return_value): Delete extra braces, re-indent.
2447 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2449 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2450 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2451 (d10v_integer_to_address): Rewrite.
2452 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2453 the d10v specific functions which take care of converting to the
2456 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2458 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2459 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2461 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2463 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2465 * config/tm-linux.h: Ditto.
2466 * config/alpha/tm-alphalinux.h: Ditto.
2467 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2468 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2469 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2470 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2471 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2472 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2473 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2474 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2475 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2476 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2477 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2478 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2479 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2480 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2481 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2482 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2483 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2484 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2485 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2486 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2487 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2488 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2489 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2490 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2491 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2492 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2493 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2494 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2495 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2496 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2497 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2498 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2499 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2500 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2501 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2502 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2503 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2505 2002-05-04 Aidan Skinner <aidan@velvet.net>
2507 * ada-exp.tab.c: New file
2508 * ada-exp.y: New file
2509 * ada-lang.c: New file
2510 * ada-lang.h: New file
2511 * ada-lex.c: New file
2512 * ada-lex.l: New file
2513 * ada-tasks.c: New file
2514 * ada-typeprint.c: New file
2515 * ada-valprint.c: New file
2517 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2519 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2520 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2522 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2524 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2525 insetead of ppc-linux-tdep.o.
2526 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2527 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2529 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2531 2002-05-07 Christian Groessler <chris@groessler.org>
2532 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2533 bit register contents for little endian hosts.
2535 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2537 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2540 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2542 * gdbarch.h: Regenerate.
2544 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2546 * MAINTAINERS: Add everyone to write-after-approval list.
2548 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2550 * stack.c (frame_info): Use frame_register_unwind instead of
2551 saved_regs. Mention when the SP is on the stack or in a register.
2553 * frame.h (frame_register_unwind_ftype): Define. Document.
2554 (struct frame_info): Add field register_unwind and
2555 register_unwind_cache.
2556 (frame_register_unwind): Declare.
2557 (generic_unwind_get_saved_register): Declare.
2559 * frame.c (frame_register_unwind): New function.
2560 (generic_unwind_get_saved_register): New function.
2562 * blockframe.c (generic_call_dummy_register_unwind): New function.
2563 (frame_saved_regs_register_unwind): New function.
2564 (set_unwind_by_pc): New function.
2565 (create_new_frame): New function.
2566 (get_prev_frame): New function.
2568 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2570 * a29k-share/: Delete directory.
2571 * remote-vx29k.c: Delete file.
2573 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2575 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2576 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2578 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2580 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2581 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2584 (sparcnbsd-tdep.o): New dependency lists.
2585 * NEWS: Note new UltraSPARC NetBSD native configuration.
2586 * configure.host (sparc64-*-netbsd*): New host.
2587 * configure.tgt (sparc-*-netbsdelf*)
2588 (sparc-*-netbsd*): Set gdb_target to nbsd.
2589 (sparc64-*-netbsd*): New target.
2590 * sparc64nbsd-nat.c: New file.
2591 * sparcnbsd-nat.c: New file.
2592 * sparcnbsd-tdep.c: New file.
2593 * sparcnbsd-tdep.h: New file.
2594 * config/sparc/nbsd.mt: New file.
2595 * config/sparc/nbsd64.mh: New file.
2596 * config/sparc/nbsd64.mt: New file.
2597 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2598 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2600 * config/sparc/nbsdaout.mt: Remove.
2601 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2602 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2604 * config/sparc/nbsdelf.mt: Remove.
2605 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2606 sparc-nat.c compatiblity defines.
2607 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2608 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2609 * config/sparc/tm-nbsd64.h: New file.
2610 * config/sparc/tm-nbsdaout.h: Remove.
2611 * config/sparc/xm-nbsd.h: Remove.
2613 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2615 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2616 * sparc-tdep.c: Include osabi.h.
2617 (gdbarch_tdep): Add osabi member.
2618 (_initialize_sparc_tdep): Use gdbarch_register.
2619 (sparc_gdbarch_init): Use generic OS ABI framework.
2620 (sparc_dump_tdep): New function.
2622 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2624 * corefile.c (do_captured_read_memory_integer): Return non-zero
2626 (safe_read_memory_integer): Copy result of memory read when
2627 status is non-zero. Also, add comments.
2629 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2631 * Makefile.in (ppc_tdep_h): Define.
2634 (rs6000-tdep.o): Use $(ppc_tdep_h).
2637 (ppcnbsd-tdep.o): New dependency lists.
2638 * ppc-tdep.h: Use generic OS ABI framework.
2639 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2640 (ppc_linux_init_abi): New functions.
2641 (ppc_sysv_abi_broken_use_struct_convention)
2642 (ppc_sysv_abi_use_struct_convention)
2643 (ppc_sysv_abi_push_arguments): Move to...
2644 * ppc-sysv-tdep.c: ...here.
2645 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2646 * rs6000-tdep.c (process_note_abi_tag_sections)
2647 (get_elfosabi): Remove.
2648 (rs6000_gdbarch_init): Use generic OS ABI framework.
2649 (rs6000_dump_tdep): New function.
2650 (_initialize_rs6000_tdep): Use gdbarch_register.
2651 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2652 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2653 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2654 of ppc-linux-tdep.o.
2655 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2656 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2657 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2658 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2659 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2660 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2662 2002-05-29 Jim Blandy <jimb@redhat.com>
2664 * macroscope.c (default_macro_scope): Put `void' in empty argument
2667 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2669 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2670 * arch-utils.c: Include "sim-regno.h".
2671 * gdbarch.sh: Don't include "sim-regno.h".
2672 * gdbarch.h, gdbarch.c: Regenerate.
2673 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2675 * arch-utils.h (legacy_register_sim_regno): To here.
2676 * remote-sim.c (legacy_register_sim_regno): Move function from
2678 * arch-utils.c (legacy_register_sim_regno): To here.
2680 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2682 * sim-regno.h: New file.
2683 * Makefile.in (sim_regno_h): Define.
2684 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2685 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2686 (legacy_register_sim_regno): New function.
2687 (one2one_register_sim_regno): New function.
2688 (gdbsim_fetch_register): Rewrite.
2689 (gdbsim_store_register): Only store a register when
2690 REGISTER_SIM_REGNO is valid.
2691 * d10v-tdep.c: Include "sim-regno.h".
2692 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2693 (d10v_ts3_register_sim_regno): Ditto.
2694 * gdbarch.sh: Include "sim-regno.h".
2695 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2696 * gdbarch.h, gdbarch.c: Regenerate.
2697 * arch-utils.h (default_register_sim_regno): Delete declaration.
2698 * arch-utils.c (default_register_sim_regno): Delete function.
2700 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2702 * ppcnbsd-nat.c: Rewrite.
2703 * ppcnbsd-tdep.c: New file.
2704 * ppcnbsd-tdep.h: New file.
2705 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2706 solib.o, and solib-svr4.o.
2707 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2708 nbsd-tdep.o, and corelow.o.
2710 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2712 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2713 `tr' and `sed'. Mention that `broken' targets are not expected to
2716 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2718 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2719 Let PC point right after the prologue before looking up symbols.
2721 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2723 * i386-tdep.c (i386_register_virtual_type): Return
2724 builtin_type_vec128i for SSE registers.
2726 * gdbtypes.h (builtin_type_vec128i): Declare.
2728 * gdbtypes.c (build_builtin_type_vec128i): New function.
2729 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2730 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2731 (build_gdbtypes): Initialize new builtin vector types.
2732 (_initialize_gdbtypes): Register new vector types with gdbarch.
2734 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2736 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2737 since it has been multi-arch'd.
2738 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2739 Move Alpha and VAX multi-arch news entries to same section
2740 as other multi-arch news.
2742 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2744 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2745 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2746 static. Rename some register numbers to put them in ns32k-tdep
2748 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2749 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2751 (_initialize_ns32k_tdep): Use gdbarch_register.
2752 * ns32k-tdep.h: New file.
2753 * ns32knbsd-tdep.c: New file.
2754 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2755 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2756 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2757 REGISTER_BYTES, REGISTER_BYTE): Remove.
2758 * config/ns32k/tm-ns32k.h: New file.
2759 * config/ns32k/tm-umax.h: Remove.
2761 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2763 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2764 ns32k_store_struct_return, ns32k_extract_return_value,
2765 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2767 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2768 ns32k_saved_pc_after_call.
2769 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2770 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2771 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2772 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2773 ns32k_extract_struct_value_address.
2775 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2777 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2778 ns32k_fix_call_dummy): New.
2779 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2780 ns32k_call_dummy_words.
2781 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2782 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2783 CALL_DUMMY_NARGS): Remove.
2784 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2786 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2788 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2789 ns32k_frame_saved_pc, ns32k_frame_args_address,
2790 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2791 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2792 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2793 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2794 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2795 (BREAKPOINT): Remove..
2796 (FRAME_CHAIN): Define as ns32k_frame_chain.
2797 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2798 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2799 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2800 (FRAME_FIND_SAVED_REGS): Remove.
2801 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2802 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2803 (POP_FRAME): Define as ns32k_pop_frame.
2805 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2807 * ns32k-tdep.c (ns32k_register_byte_32082,
2808 ns32k_register_byte_32382, ns32k_register_raw_size,
2809 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2811 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2812 ns32k_register_byte_32382.
2813 * config/ns32k/tm-umax.h: Update copyright years.
2814 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2815 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2816 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2817 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2818 (ns32k_get_enter_addr): Fix prototype.
2820 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2822 * ns32k-tdep.c: Update copyright years.
2823 (ns32k_register_name_32082): New function.
2824 (ns32k_register_name_32382): Ditto.
2825 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2826 (REGISTER_NAME): Define as ns32k_register_name_32382.
2827 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2828 (REGISTER_NAME): Define as ns32k_register_name_32082.
2830 2002-05-24 Jim Blandy <jimb@redhat.com>
2832 * dwarf2read.c (free_line_header): Use xfree, not free.
2834 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2836 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2837 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2839 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2841 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2843 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2845 From Ross Alexander at NEC Europe:
2846 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2848 2002-05-23 Michael Snyder <msnyder@redhat.com>
2850 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2851 for input, rather than parse_and_eval_address.
2853 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2855 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2856 * Makefile.in (sim_d10v_h): Update definition.
2858 2002-05-24 Andrew Cagney <cagney@redhat.com>
2860 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2861 change `2002-05-22 Michael Snyder' below.
2862 (d10v_push_arguments): Ditto.
2863 (d10v_extract_return_value): Ditto.
2865 2002-05-23 Jim Blandy <jimb@redhat.com>
2867 * macrotab.c (check_for_redefinition): Don't complain if the new
2868 definition is the same as the previous one. Take more arguments
2869 to allow the comparison.
2870 (macro_define_object, macro_define_function): Pass more arguments
2871 to check_for_redefinition.
2873 2002-05-22 Michael Snyder <msnyder@redhat.com>
2875 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2876 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2877 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2878 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2879 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2880 Add a temp variable to save a call (and a memory read).
2881 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2882 if possible (so that PC_IN_CALL_DUMMY will work).
2884 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2886 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2888 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2890 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2892 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2893 (dwarf2_build_frame_info): Add offset to fde->initial_location
2894 so that frames of shared libraries are mapped correctly.
2895 (execute_stack_op): Change type of 'result' from ULONGEST to
2898 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2900 * config/alpha/tm-nbsd.h: Include solib.h.
2902 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2904 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2905 assumptions about the host's byte order.
2907 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2909 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2911 * alphanbsd-tdep.c: Include solib-svr4.h.
2912 * shnbsd-tdep.c: Ditto.
2914 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2916 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2917 nbsd-tdep.h to dependency list.
2918 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2919 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2920 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2921 nbsdaout.mh and nbsdelf.mh consistently.
2922 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2923 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2924 nbsdaout.mt and nbsdelf.mh consistently.
2925 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2926 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2927 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2928 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2929 a.out shared library stuff from here...
2930 * config/nm-nbsdaout.h: ...to here.
2931 * config/tm-nbsd.h: Remove.
2932 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2933 * config/arm/nbsd.mh: Remove.
2934 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2936 * config/arm/nbsdaout.mh: New file.
2937 * config/arm/nbsdelf.mh: New file.
2938 * config/arm/nm-nbsdaout.h: New file.
2939 * config/i386/nbsd.mh: Remove.
2940 * config/i386/nbsd.mt: Remove.
2941 * config/i386/nbsdaout.mh: New file.
2942 * config/i386/nbsdaout.mt: New file.
2943 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2944 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2945 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2946 i386_register_u_addr): Remove.
2947 * config/i386/nm-nbsdaout.h: New file.
2948 * config/i386/nm-nbsdelf.h: Remove.
2949 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2950 (USE_STRUCT_CONVENTION): Remove.
2951 * config/i386/tm-nbsdaout.h: New file.
2952 * config/i386/tm-nbsdelf.h: Remove.
2953 * config/m68k/nbsd.mh: Remove.
2954 * config/m68k/nbsd.mt: Remove.
2955 * config/m68k/nbsdaout.mh: New file.
2956 * config/m68k/nbsdaout.mt: New file.
2957 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2958 * config/m68k/nm-nbsdaout.h: New file.
2959 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2960 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2961 * config/ns32k/nbsd.mh: Remove.
2962 * config/ns32k/nbsd.mt: Remove.
2963 * config/ns32k/nbsdaout.mh: New file.
2964 * config/ns32k/nbsdaout.mt: New file.
2965 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2966 * config/ns32k/nm-nbsdaout.h: New file.
2967 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2968 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2969 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2970 (SVR4_SHARED_LIBS): Remove.
2971 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2972 * config/sparc/nbsd.mh: Remove.
2973 * config/sparc/nbsd.mt: Remove.
2974 * config/sparc/nbsdaout.mh: New file.
2975 * config/sparc/nbsdaout.mt: New file.
2976 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2977 * config/sparc/nbsdelf.mt: New file.
2978 * config/sparc/nm-nbsdaout.h: New file.
2979 * config/sparc/nm-nbsdelf.h: Remove.
2980 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2981 * config/sparc/tm-nbsdaout.h: New file.
2983 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2985 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2987 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2989 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2991 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2993 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2995 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2997 * NEWS: Note new MIPS NetBSD native configuration.
2998 * configure.host (mips*-*-netbsd*): New host.
2999 * configure.tgt (mips*-*-netbsd*): New target.
3000 * mipsnbsd-nat.c: New file.
3001 * mipsnbsd-tdep.c: New file.
3002 * mipsnbsd-tdep.h: New file.
3003 * config/mips/nbsd.mh: New file.
3004 * config/mips/nbsd.mt: New file.
3005 * config/mips/nm-nbsd.h: New file.
3006 * config/mips/tm-nbsd.h: New file.
3008 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3010 * Makefile.in (SFILES): Add osabi.c.
3011 (COMMON_OBS): Add osabi.o.
3012 (osabi.o): New dependency list.
3013 * osabi.c: New file.
3014 * osabi.h: New file.
3015 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3017 * Makefile.in (alpha_tdep_h): Define and use instead of
3019 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3020 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3022 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3023 * alpha-tdep.h: Include osabi.h.
3024 (alpha_abi): Remove.
3025 (gdbarch_tdep): Use generic OS ABI framework.
3026 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3027 gdbarch_register_osabi.
3028 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3029 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3030 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3032 * Makefile.in (sh_tdep_h): Add osabi.h.
3033 * sh-tdep.h (sh_osabi): Remove.
3034 (gdbarch_tdep): Use generic OS ABI framework.
3035 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3036 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3037 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3038 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3040 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3041 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3042 gdbarch_register_osabi.
3043 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3044 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3045 (get_elfosabi): Rename to...
3046 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3047 ABI framework support routines.
3048 (arm_gdbarch_init): Use generic OS ABI framework.
3049 (arm_dump_tdep): Likewise.
3050 (_initialize_arm_tdep): Likewise.
3051 * arm-tdep.h: Include osabi.h.
3053 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3055 (arm_gdbarch_register_os_abi): Remove prototype.
3056 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3057 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3059 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3060 * mips-tdep.c: Include osabi.h.
3061 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3064 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3066 * h8300-tdep.c: Fix formatting.
3068 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3070 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3071 printing vector registers.
3073 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3075 From Fernando Nasser:
3076 * remote.c (remote_async_open_1): Re-throw the exception when the
3078 (remote_cisco_open): Ditto.
3079 (remote_open_1): Ditto.
3081 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3083 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3084 (remote_start_remote): Add uiout parameter. Pass through to
3085 remote_start_remote_dummy.
3086 (remote_open_1): Use catch_exception instead of catch_errors.
3087 (remote_async_open_1): Ditto.
3088 (remote_cisco_open): Ditto.
3090 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3092 * remote.c (remote_start_remote): Replace PTR with void pointer.
3093 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3096 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3098 * gdb_indent.sh: Allow the script to be run in the sim directory.
3100 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3102 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3103 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3105 * corelow.c (core_open): Only call set_gdbarch_from_file if
3108 2002-05-17 Andrey Volkov <avolkov@transas.com>
3110 * h8300-tdep.c: Add support of EXR register
3111 * config/h8300/tm-h8300.h: Ditto.
3113 2002-05-17 Andrey Volkov <avolkov@transas.com>
3115 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3117 2002-05-17 Andrey Volkov <avolkov@transas.com>
3119 * h8300-tdep.c: Change literal regnums to REGNO.
3121 2002-05-17 Jim Blandy <jimb@redhat.com>
3123 * NEWS: Note addition of macro support.
3125 Expand preprocessor macros in C expressions.
3126 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3127 (scan_macro_expansion, scanning_macro_expansion,
3128 finished_macro_expansion): New function declarations.
3129 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3130 variable declarations.
3131 * parser-defs.h (expression_context_pc): New declaration.
3132 * parse.c (expression_context_pc): New variable.
3133 (parse_exp_1): Set expression_context_pc, as well as
3134 expression_context_block.
3135 * c-exp.y (yylex): If we're not already reading the result of a
3136 macro expansion, try to macro-expand the next token. When we're
3137 done scanning a macro expansion, switch back to the mainline text.
3138 Commas and `if's in a macro's expansion don't terminate the input.
3139 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3140 (macro_original_text, macro_expanded_text,
3141 expression_macro_lookup_func, expression_macro_lookup_baton): New
3143 (scan_macro_expansion, scanning_macro_expansion,
3144 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3145 c_preprocess_and_parse): New functions.
3146 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3147 c_preprocess_and_parse, instead of c_parse.
3148 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3149 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3151 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3153 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3154 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3155 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3157 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3159 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3161 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3163 * Makefile.in (sh_tdep_h): Define and use.
3164 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3165 register enum): Move to...
3166 * * sh-tdep.h: ...here.
3167 * sh-tdep.c: Include sh-tdep.h.
3168 * sh3-rom.c: Likewise.
3169 * shnbsd-tdep.c: Likewise.
3171 2002-05-16 Michael Snyder <msnyder@redhat.com>
3173 * arm-tdep.c: Spelling fix in comment.
3175 2002-05-16 Jim Blandy <jimb@redhat.com>
3177 Add commands for manually expanding macros and showing their
3179 * macrocmd.c, macroscope.c, macroscope.h: New files.
3180 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3181 (macroscope_h): New variable.
3182 (HFILES_NO_SRCDIR): Add macroscope.h.
3183 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3184 (macroscope.o, macrocmd.o): New rules.
3186 Teach the Dwarf 2 reader to read macro information.
3187 * dwarf2read.c: #include "macrotab.h".
3188 (dwarf_macinfo_buffer): New variable.
3189 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3191 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3192 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3193 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3194 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3195 dwarf2_macro_spaces_in_definition): New complaints.
3196 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3197 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3198 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3199 the partial symbol table.
3200 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3201 from what's recorded in the partial symbol table.
3202 (read_file_scope): If the compilation unit has a
3203 `DW_AT_macro_info' attribute, read its macro information.
3204 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3206 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3209 * ser-tcp.c: Don't include <netinet/udp.h>.
3211 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3213 * MAINTAINERS: Update my email address.
3215 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
3217 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3218 include file of the same name.
3220 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3222 * configure.tgt: Mark v850 as multi-arched.
3223 * config/v850/tm-v850.h: Remove file.
3224 * config/v850/v850.mt: Eliminate TM_FILE.
3226 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3228 * v850-tdep.c: Full multi-arch.
3229 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3230 Define GDB_MULTI_ARCH to 2.
3232 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3234 * p-exp.y (current_type): New static variable.
3235 Carries the type of the expression at the position that is parsed.
3236 (push_current_type, pop_current_type): Two new functions. Used
3237 to store/restore current_type in expression on specific tokens.
3238 (search_field): New static variable. Set to one after parsing a point
3239 as at that point only a FIELDNAME token should be searched.
3240 (FIELDNAME): New token. After a point only a token belonging to
3241 current_type type definition is allowed.
3242 (all over token rules): reset and change current_type according
3244 (exp '[' rule): insert implicit array index field if
3245 exp is a pascal string type.
3247 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3249 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3250 frame info. Use frame_info's saved_regs instead of matching member
3251 in extra_frame_info throughout.
3252 (v850_frame_init_saved_regs): New function.
3253 (v850_init_extra_frame_info): Move most functionality into
3254 v850_frame_init_saved_regs().
3255 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3256 (v850_frame_find_saved_regs): Remove declaration.
3257 (FRAME_FIND_SAVED_REGS): Remove definition.
3258 (v850_frame_init_saved_regs): Add declaration.
3259 (FRAME_INIT_SAVED_REGS): Add definition.
3261 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3263 * v850-tdep.c: Begin multi-arch'ing v850.
3264 (v850_target_architecture_hook): Remove function.
3265 (v850_gdbarch_init): New function. Add code previously in
3266 v850_target_architecture_hook().
3267 (_initialize_v850_tdep): Don't set target_architecture_hook.
3268 Call register_gdbarch_init() instead.
3270 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3272 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3273 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3274 (fixup_class_method_type): Likewise.
3276 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3278 From Martin Pool <mbp@samba.org>:
3279 * gdbserver/server.c (gdbserver_usage): New function.
3282 2002-05-15 Jim Blandy <jimb@redhat.com>
3284 Add macro structures to GDB's symbol tables. Nobody puts anything
3286 * symtab.h (struct symtab): New member: `macro_table'.
3287 * buildsym.h (pending_macros): New global variable.
3288 * buildsym.c: #include "macrotab.h".
3289 (buildsym_init): Initialize `pending_macros'.
3290 (end_symtab): If we found macro information while reading a CU's
3291 debugging info, do build a symtab structure for it. Make the
3292 symtab point to the macro information, and clear the
3293 `pending_macros' pointer which held it while we were reading the
3295 (really_free_pendings): Free any pending macro table.
3296 * objfiles.h (struct objfile): New member: `macro_cache'.
3297 * objfiles.c (allocate_objfile): Set allocate and free functions
3298 for the macro cache's objstack.
3299 (free_objfile): Empty the macro cache's obstack.
3300 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3301 set new allocate and free functions for it.
3302 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3303 free functions for the macro cache's objstack. (Why is this
3304 function building its own objfile?)
3305 * symmisc.c (print_objfile_statistics): Print statistics on the
3307 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3309 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3311 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3312 (REGISTER_U_ADDR): Delete definition.
3313 (arm_register_u_addr): Delete declaration.
3315 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3317 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3318 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3320 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3322 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3325 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3327 * regcache.c (register_valid): Revise comments refering to "Not
3328 available" and "unavailable".
3329 * frame.c (frame_register_read): Ditto.
3330 * findvar.c (value_of_register): Ditto.
3332 2002-05-15 Andrew Cagney <cagney@redhat.com>
3334 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3335 (remote-sim.o): Update dependencies.
3336 (d10v-tdep.o): Specify dependencies.
3337 (sim_d10v_h): Define.
3339 2002-05-14 Jim Blandy <jimb@redhat.com>
3341 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3342 * macrotab.c (macro_lookup_inclusion, find_definition,
3343 new_macro_table): Same.
3345 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3346 not `! strcmp ()'. This is a dubious improvement.
3347 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3349 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3350 although it's not necessary, to avoid a warning.
3352 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3354 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3355 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3356 TYPE_INSTANCE_FLAGS.
3357 (struct main_type): New.
3358 (struct type): Move most members to struct main_type. Change
3359 cv_type and as_type to new type_chain member. Add instance_flags.
3360 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3361 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3362 (finish_cv_type): Remove prototype.
3363 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3365 (alloc_type_instance): New function.
3366 (smash_type): New function.
3367 (make_pointer_type, make_reference_type, make_function_type)
3368 (smash_to_member_type, smash_to_method_type): Call smash_type.
3369 (make_qualified_type): New function.
3370 (make_type_with_address_space): Call make_qualified_type.
3371 (make_cv_type): Likewise.
3372 (finish_cv_type): Remove unnecessary function.
3373 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3374 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3375 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3376 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3377 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3378 * hpread.c (hpread_read_struct_type): Likewise.
3379 * stabsread.c (read_struct_type): Likewise.
3381 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3383 * configure.tgt: Add a catch all sh* target, for cases like
3384 sh[2,3,4]-elf and sh-hms.
3386 2002-05-14 Keith Seitz <keiths@redhat.com>
3388 * event-loop.c (create_file_handler): Don't do anything but
3389 update data when we are given a fd which we are already
3392 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3394 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3395 (update_context): Use __func__ in warnings.
3397 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3399 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3400 and tcp_close to net_open and net_close.
3401 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3402 using UDP if requested. Don't try to disable Nagle on UDP
3404 * remote.c (remote_serial_open): New function. Warn about UDP.
3405 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3407 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3409 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3411 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3413 * configure.tgt: Remove sh-hms target.
3414 * MAINTAINERS: Don't list sh-hms as a separate target.
3416 2002-05-13 Jim Blandy <jimb@redhat.com>
3418 Add first preprocessor macro-expansion files.
3419 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3420 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3421 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3422 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3423 (COMMON_OBS): Add macrotab.o, macroexp.o.
3424 (macroexp.o, macrotab.o): New rules.
3426 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3428 * config/m88k/tm-m88k.h: Update copyright.
3429 (m88k_target_write_pc): Declare
3430 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3431 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3432 (SHIFT_INST_REGS): Update definition.
3433 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3434 using old definition of TARGET_WRITE_PC.
3435 * regcache.c (generic_target_write_pc): Delete code handling
3437 * gdbarch.sh (NNPC_REGNUM): Delete.
3438 * gdbarch.h, gdbarch.c: Regenerate.
3440 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3442 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3445 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3447 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3448 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3449 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3451 * c-typeprint.c (cp_type_print_method_args): Likewise.
3452 (c_type_print_args): Likewise.
3453 * d10v-tdep.c (d10v_push_arguments): Likewise.
3454 (d10v_extract_return_value): Likewise.
3455 * expprint.c (print_subexp): Likewise.
3456 * gdbtypes.c (lookup_primitive_typename): Likewise.
3457 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3458 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3459 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3460 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3461 (TYPE_VECTOR): Likewise.
3462 * hpread.c (hpread_read_struct_type)
3463 (fix_static_member_physnames, fixup_class_method_type)
3464 (hpread_type_lookup): Likewise.
3465 * mdebugread.c (parse_symbol, parse_type): Likewise.
3466 * p-lang.c (is_pascal_string_type): Likewise.
3467 * valops.c (hand_function_call): Likewise.
3468 * x86-64-tdep.c (classify_argument): Likewise.
3470 * hpread.c (hpread_read_function_type)
3471 (hpread_read_doc_function_type): Call replace_type.
3472 * dstread.c (create_new_type): Delete.
3473 (decode_dst_structure, process_dst_function): Call alloc_type.
3474 Use type access macros.
3476 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3478 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3479 the're not supported by the current architecture.
3480 (i387_fill_fxsave): Likewise.
3482 2002-05-12 Fred Fish <fnf@redhat.com>
3484 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3485 sect_index_xxx members to index the first slot in section_offsets
3486 if all of the section_offsets are zero.
3488 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3490 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3491 checked in with last change.
3493 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3495 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3496 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3499 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3501 * Makefile.in: Update dependencies.
3503 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3505 * language.c (local_hex_string_custom): Simplify. Do not depend
3506 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3508 * memattr.c (mem_info_command): Replace calls to
3509 longest_local_hex_string and longest_local_hex_string_custom.
3510 * buildsym.c (make_blockvector): Ditto.
3511 * solib.c (info_sharedlibrary_command): Ditto.
3512 * tracepoint.c (tracepoints_info): Ditto.
3513 * symtab.c (print_msymbol_info): Ditto.
3515 * language.c (local_hex_string): Delete.
3516 (local_hex_string_custom): Delete.
3517 (longest_local_hex_string): Rename to local_hex_string.
3518 (longest_local_hex_string_custom): Rename to
3519 local_hex_string_custom.
3520 * language.h (local_hex_string): Change parameter type to LONGEST.
3521 (local_hex_string_custom): Ditto.
3522 (longest_local_hex_string): Delete declaration.
3523 (longest_local_hex_string_custom): Ditto.
3525 * solib.c: Update copyright.
3526 * memattr.c: Update copyright.
3528 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3530 * arch-utils.h (legacy_register_to_value): Declare.
3531 (legacy_value_to_register): Declare.
3532 (legacy_convert_register_p): Declare.
3533 * arch-utils.c (legacy_register_to_value): New function.
3534 (legacy_value_to_register): New function.
3535 (legacy_convert_register_p): New function.
3537 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3538 (VALUE_TO_REGISTER): Define.
3539 (CONVERT_REGISTER_P): Define.
3540 * gdbarch.h, gdbarch.c: Regenerate.
3542 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3544 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3547 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3548 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3550 * Makefile.in: Update dependencies for valops.c.
3551 * valops.c: Include "gdb_assert.h".
3552 (typecmp): Skip THIS parameter to methods.
3553 (find_method_list): Remove static_memfuncp argument,
3554 update callers. Check for stub methods.
3555 (find_value_oload_method_list): Don't set *static_memfuncp.
3556 (find_overload_match): Don't check for stub methods. Assert
3557 that methods are not stubbed. Handle static methods.
3558 (value_find_oload_method_list): Remove static_memfuncp argument.
3559 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3560 to the argument list for static stub methods.
3561 * value.h (value_find_oload_method_list): Update prototype.
3563 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3565 * arch-utils.h (generic_register_size): Declare.
3566 (generic_register_raw_size, generic_register_virtual_size): Delete
3568 * arch-utils.c (generic_register_raw_size): Delete.
3569 (generic_register_size): New function.
3570 (generic_register_virtual_size): Delete.
3572 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3573 default generic_register_size.
3574 * gdbarch.h, gdbarch.c: Re-generate.
3576 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3577 register_virtual_size.
3578 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3579 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3581 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3583 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3584 * gdbarch.h, gdbarch.c: Regenerate.
3585 * gnu-v3-abi.c: Update copyright.
3586 (vtable_address_point_offset): Update.
3587 (gnuv3_rtti_type): Update.
3588 (gnuv3_baseclass_offset): Update.
3589 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3590 (init_fetch_link_map_offsets): Update.
3591 * remote.c (get_remote_state): Update.
3593 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3595 * TODO: Remove value_headof/value_from_vtable_info comment.
3596 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3597 * values.c (value_headof, value_from_vtable_info): Delete.
3598 * value.h (value_from_vtable_info): Delete prototype.
3600 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3602 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3603 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3605 (gdb_assert_h): Define.
3606 (gdb_wait_h): Define.
3607 (gdb_regex_h): Define.
3609 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3611 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3612 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3614 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3616 * nbsd-tdep.c: Fix comment.
3618 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3620 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3621 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3622 (nbsd-tdep.o): New dependency list.
3623 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3625 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3626 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3627 * nbsd-tdep.c: New file.
3628 * nbsd-tdep.h: New file.
3629 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3631 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3632 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3633 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3634 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3636 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3638 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3639 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3640 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3641 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3642 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3643 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3645 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3647 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3648 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3649 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3650 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3651 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3652 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3653 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3655 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3657 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3658 fetch_elfcore_registers to...
3659 * i386nbsd-tdep.c: ...here.
3660 (i386nbsd_use_struct_convention): Rename to...
3661 (i386nbsd_aout_use_struct_convention): ...this.
3662 (i386nbsd_supply_reg): New function.
3663 (i386nbsd_fill_reg): New function.
3664 (fetch_core_registers): Use i386nbsd_supply_reg.
3665 (fetch_elfcore_registers): Likewise.
3666 (_initialize_i386nbsd_tdep): New function.
3667 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3668 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3669 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3670 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3671 (i386nbsd_aout_use_struct_convention): ...this.
3673 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3675 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3676 (store_inferior_registers): Use shnbsd_fill_reg.
3677 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3678 sh_nbsd_supply_register): Collapse into...
3679 (shnbsd_supply_reg): ...this.
3680 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3681 (shnbsd_fill_reg): ...this.
3682 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3683 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3684 (fetch_core_registers): Use shnbsd_supply_reg.
3685 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3686 (sh_nbsd_core_fns): Rename to...
3687 (shnbsd_core_fns): ...this.
3688 (sh_nbsd_elfcore_fns): Rename to...
3689 (shnbsd_elfcore_fns): ...this.
3690 (sh_nbsd_init_abi): Rename to...
3691 (shnbsd_init_abi): ...this.
3692 (_initialize_sh_nbsd_tdep): Rename to...
3693 (_initialize_shnbsd_tdep): ...this.
3694 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3695 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3696 sh_nbsd_fill_register): Remove prototypes.
3697 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3701 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3702 (i387-nat.o): Delete dependency list.
3703 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3704 (x86-64-linux-nat.o): Likewise.
3705 * i387-nat.c: Delete file, moving contents to...
3706 * i387-tdep.c: ...here.
3707 * i387-nat.h: Rename...
3708 * i387-tdep.h: ...to this.
3709 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3710 * i386-linux-nat.c: Likewise.
3711 * i386bsd-nat.c: Likewise.
3712 * i386gnu-nat.c: Likewise.
3713 * i386nbsd-nat.c: Likewise.
3714 * i386v4-nat.c: Likewise.
3715 * x86-64-linux-nat.c: Likewise.
3716 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3717 * config/i386/go32.mh (NATDEPFILES): Likewise.
3718 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3719 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3720 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3721 * config/i386/linux.mh (NATDEPFILES): Likewise.
3722 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3723 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3724 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3725 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3727 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3729 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3730 (alphanbsd-nat.o): Remove dependency list.
3731 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3732 * alphanbsd-nat.c: Delete. Contents moved to...
3733 * alphanbsd-tdep.c: ...here.
3734 (_initialize_alphanbsd_tdep): Register core functions.
3735 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3737 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3739 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3740 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3741 (alphanbsd-nat.o): Likewise.
3742 (alphabsd-tdep.o): New dependency list.
3743 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3744 (fill_gregset): Use alphabsd_fill_reg.
3745 (supply_fpregset): Use alphabsd_supply_fpreg.
3746 (fill_fpregset): Use alphabsd_fill_fpreg.
3747 (fetch_inferior_registers): Use struct reg and struct fpreg
3748 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3749 and alphabsd_supply_fpreg.
3750 (store_inferior_registers): Use struct reg and struct fpreg
3751 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3752 and alphabsd_fill_fpreg.
3753 * alphabsd-tdep.c: New file.
3754 * alphabsd-tdep.h: New file.
3755 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3756 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3757 alphabsd_supply_fpreg.
3758 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3759 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3761 2002-05-11 Eric Christopher <echristo@redhat.com>
3763 * mips-tdep.c (mips_double_register_type): Fix thinko.
3764 (mips_single_register_type): Ditto.
3765 * MAINTAINERS: Add self.
3767 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3769 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3770 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3771 right thing on architectures with different endianness and/or
3774 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3776 From Christian Limpach <chris@Pin.LU>
3777 * configure.in: Change sed expression which comments out
3778 NATDEPFILES to also comment out continuation lines.
3779 * configure: Regenerate.
3781 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3783 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3786 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3788 * sh-tdep.c: Include correct file.
3790 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3792 New support for sh64-elf (sh5) target.
3794 * configure.tgt: For sh64-elf target, default to sh-elf.
3796 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3797 (struct gdbarch_tdep): Add new fields for new registers and ABI
3800 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3801 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3802 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3803 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3804 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3805 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3806 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3807 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3808 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3809 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3810 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3811 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3812 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3813 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3814 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3815 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3816 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3817 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3818 sign_extend, sh64_nofp_frame_init_saved_regs,
3819 sh64_init_extra_frame_info, sh64_get_saved_register,
3820 sh64_extract_struct_value_address, sh64_pop_frame,
3821 sh64_push_arguments, sh64_extract_return_value,
3822 sh64_store_return_value, sh64_show_media_regs,
3823 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3824 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3825 sh_sh64_register_virtual_type,
3826 sh_sh64_register_convert_to_virtual,
3827 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3828 sh64_register_read, sh64_pseudo_register_write,
3829 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3830 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3831 sh64_do_pseudo_register, sh_compact_do_registers_info,
3832 sh64_do_registers_info, sh_gdbarch_init): New functions.
3834 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3836 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3838 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3840 * linespec.c (decode_line_1): Check for a double quote after
3841 a filename correctly.
3843 2002-05-10 Jim Blandy <jimb@redhat.com>
3845 Properly track the size of the current objfile's .debug_line section.
3846 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3847 (DWARF_LINE_SIZE): New macro.
3848 (dwarf2_build_psymtabs_hard): Record the line section's size in
3849 the partial symbol table.
3850 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3853 2002-05-10 Petr Sorfa <petrs@caldera.com>
3855 * ia64-tdep.c: Handle breakpoints on L instruction type
3856 in MLX instruction bundle by moving the breakpoint to
3857 the third slot (X instruction type) as L holds only data.
3859 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3861 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3862 (process_one_symbol): Complain about discarding local symbols
3863 due to a misplaced N_LBRAC entry.
3865 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3867 From Daniel Berlin <dan@cgsoftware.com>
3868 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3869 decrease the depth we are at, in the case of templates.
3871 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3873 * mips-tdep.c (mips_float_register_type): New function.
3874 (mips_double_register_type): New function.
3875 (mips_print_register): Use them.
3876 (do_fp_register_row): Likewise.
3878 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3880 * signals/signals.c (signals): Remove conditional compilation around
3881 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3882 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3884 2002-05-09 Michael Snyder <msnyder@redhat.com>
3886 * remote-rdp.c (remote_rdp_can_run): Remove.
3888 2002-05-09 Tom Tromey <tromey@redhat.com>
3890 * jv-valprint.c (java_val_print): Handle `char' as a special case
3893 2002-05-09 Michael Snyder <msnyder@redhat.com>
3895 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3896 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3897 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3898 str r(0123),[sp,#nn].
3899 (arm_skip_prologue): Ditto. Also make disassembly
3900 order-independent by placing it in a loop.
3902 2002-05-06 Michael Snyder <msnyder@redhat.com>
3904 * stabsread.c (read_type): Add recognition for new attribute:
3905 "@V;" means that an array type is actually a vector.
3906 This is analogous to the vector flag that's been added to dwarf2.
3908 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3910 * i386-tdep.h (i386_abi): New enum.
3911 (struct gdbarch_tdep): Replace os_ident member with abi.
3912 (i386_gdbarch_register_os_abi): New prototype.
3913 * i386-tdep.c (i386_abi_names): New array.
3914 (process_note_abi_tag_sections): Removed.
3915 (process_note_sections): New function.
3916 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3917 (struct i386_abi_handler): New struct.
3918 (i386_abi_handler_list): New variable.
3919 (i386_gdbarch_register_os_abi): New function.
3920 (i386_gdbarch_init): Adapt for the changes given above.
3922 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3924 * gregset.h: Say "GNU/Linux".
3926 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3928 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3929 (build_gdbtypes): Build builtin_type_v2_float.
3930 (_initialize_gdbtypes): Register new builtin type.
3932 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3934 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3935 (clear_gdbarch_swap): New function.
3936 (initialize_non_multiarch): Call.
3937 (gdbarch_update_p): Before calling init(), swap out and clear the
3938 existing architecture.
3939 * gdbarch.c: Regenerate.
3941 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3943 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3946 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3948 * sh-nbsd-nat.c: Rename to...
3949 * shnbsd-nat.c: ...this.
3950 * sh-nbsd-tdep.c: Rename to...
3951 * shnbsd-tdep.c: ...this.
3952 * sh-nbsd-tdep.h: Rename to...
3953 * shnbsd-tdep.h: ...this.
3954 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3955 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3957 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3959 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3960 concatenation for command help messages.
3962 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3964 * NEWS: Note new sh*-*-netbsdelf* configuration.
3965 * configure.host: Set gdb_host_cpu to sh for all sh*.
3966 (sh*-*-netbsdelf*): New host.
3967 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3968 (sh*-*-netbsdelf*): New target.
3969 * sh-nbsd-nat.c: New file.
3970 * sh-nbsd-tdep.c: New file.
3971 * sh-nbsd-tdep.h: New file.
3972 * config/sh/nbsd.mh: New file.
3973 * config/sh/nbsd.mt: New file.
3974 * config/sh/nm-nbsd.h: New file.
3975 * config/sh/tm-nbsd.h: New file.
3977 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3979 * sh-tdep.c (sh_osabi_names): Declare.
3980 (process_note_abi_tag_sections): New function.
3981 (get_elfosabi): Ditto.
3982 (sh_gdbarch_register_os_abi): Ditto.
3983 (sh_dump_tdep): Ditto.
3984 _initialize_sh_tdep): Use gdbarch_register to register
3985 sh_gdbarch_init and sh_dump_tdep.
3986 * config/sh/tm-sh.h (sh_osabi): Declare.
3987 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3989 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3991 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3992 (thumb_scan_prologue): Ditto.
3993 (arm_find_callers_reg): Ditto.
3994 (arm_frame_chain): Ditto.
3995 (arm_init_extra_frame_info): Ditto.
3996 (arm_frame_saved_pc): Ditto.
3997 (arm_pop_frame): Ditto.
3998 (arm_push_return_address): New function.
3999 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4000 call_dummy_location, call_dummy_breakpoint_offset_p,
4001 call_dummy_breakpoint_offset, call_dummy_p,
4002 call_dummy_stack_adjust_p, call_dummy_words,
4003 sizeof_call_dummy_words, call_dummy_start_offset,
4004 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4005 call_dummy_address, push_return_address and push_dummy_frame for
4006 generic dummy frames.
4008 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4011 size computation for alloca.
4012 (sh_fp_frame_init_saved_regs): Likewise.
4014 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4016 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4017 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4018 * arm-tdep.c (arm_store_return_value): Use them.
4019 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4020 * remote-rdp.c (remote_rdp_fetch_register): Use
4021 ARM_MAX_REGISTER_RAW_SIZE.
4022 (remote_rdp_store_register): Likewise.
4024 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4026 * dwarf2cfi.c: Code cleanup, removed unused variables,
4027 added default labels to switch {} statements.
4028 * x86-64-tdep.c: Ditto.
4029 * x86-64-linux-nat.c: Ditto.
4031 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4033 * solib.h: Protect against multiple inclusion.
4035 2002-05-06 Jim Blandy <jimb@redhat.com>
4037 Add first preprocessor macro-expansion files.
4038 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4039 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4040 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4041 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4042 (COMMON_OBS): Add macrotab.o, macroexp.o.
4043 (macroexp.o, macrotab.o): New rules.
4045 Separate the job of reading the line number info statement program
4046 header (...expialidocious) out into its own function.
4047 * dwarf2read.c (struct line_head, struct filenames, struct
4048 directories): Replace with...
4049 (struct line_header): New structure, containing the full
4050 contents of the statement program header, including the
4051 include directory and file name tables.
4052 (read_file_scope): If we have line number info, instead of just
4053 calling dwarf_decode_lines to do all the work, call
4054 dwarf_decode_line_header first to get a `struct line_header'
4055 containing the data in the statement program header, and then
4056 pass that to dwarf_decode_lines, which will pick up where that
4057 left off. Be sure to clean up the `struct line_header' object.
4058 (dwarf_decode_line_header, free_line_header, add_include_dir,
4059 add_file_name): New functions.
4060 (dwarf_decode_lines): Move all the code to read the statement
4061 program header into dwarf_decode_line_header. Take the line
4062 header it built as the first argument, instead of the offset to
4063 the compilation unit's line number info. Use the new `struct
4064 line_header' type instead of the old structures. No need to do
4065 cleanups here now, since we don't allocate anything.
4066 (dwarf2_statement_list_fits_in_line_number_section,
4067 dwarf2_line_header_too_long): New complaints.
4069 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4071 * gdbtypes.c (init_vector_type): New function.
4072 (build_builtin_type_vec128): Simplify the representation of SIMD
4074 (build_gdbtypes): Initialize new builtin vector types.
4075 (_initialize_gdbtypes): Register new vector types with gdbarch.
4076 (builtin_type_v4_float, builtin_type_v4_int32,
4077 builtin_type_v8_int16, builtin_type_v16_int8,
4078 builtin_type_v2_int32, builtin_type_v4_int16,
4079 builtin_type_v8_int8): New (renamed) SIMD types.
4081 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4083 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4084 (i387_fill_fxsave): Likewise.
4086 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4088 * alpha-tdep.c (alpha_extract_return_value): Don't use
4089 non-constant array size in prototype.
4091 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4093 From Brian Taylor <briant at model dot com>:
4094 * ui-out.c (ui_out_field_core_addr): Use the function
4095 longest_local_hex_string_custom'to format addresses > 32 bits
4098 * ui-out.c (ui_out_field_core_addr): Update comment.
4100 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4102 * stack.c (select_and_print_frame): Make static. Delete the
4104 (func_command): Update call.
4105 (select_frame_command): Delete code computing the frame level.
4106 * frame.h (select_and_print_frame): Delete declaration.
4108 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4110 * sparc-tdep.c (sparc_get_saved_register): Comment why
4111 get_prev_frame call is safe.
4113 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4115 * frame.h (select_frame): Delete level parameter.
4116 * stack.c (select_frame): Update. Use frame_relative_level to
4117 obtain the frame's level.
4118 (select_and_print_frame): Update call.
4119 (select_frame_command): Ditto.
4120 (up_silently_base): Ditto.
4121 (down_silently_base): Ditto.
4122 * ocd.c (ocd_start_remote): Ditto.
4123 * remote-rdp.c (remote_rdp_open): Ditto.
4124 * remote-mips.c (mips_initialize): Ditto.
4125 (common_open): Ditto.
4126 * remote-e7000.c (e7000_start_remote): Ditto.
4127 * m3-nat.c (select_thread): Ditto.
4128 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4129 (child_get_current_exception_event): Ditto.
4130 * varobj.c (varobj_create): Ditto.
4131 (varobj_update): Ditto.
4132 (c_value_of_root): Ditto.
4133 * tracepoint.c (finish_tfind_command): Ditto.
4134 * corelow.c (core_open): Ditto.
4135 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4136 * thread.c (info_threads_command): Ditto.
4137 (switch_to_thread): Ditto.
4138 * infrun.c (normal_stop): Ditto.
4139 (restore_selected_frame): Ditto.
4140 (restore_inferior_status): Ditto.
4141 * breakpoint.c (insert_breakpoints): Ditto.
4142 (watchpoint_check): Ditto.
4143 (bpstat_stop_status): Ditto.
4144 (do_enable_breakpoint): Ditto.
4145 * blockframe.c (flush_cached_frames): Ditto.
4146 (reinit_frame_cache): Ditto.
4148 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4150 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4153 2002-05-04 Jim Blandy <jimb@redhat.com>
4155 * gdbtypes.c (replace_type): Doc fix.
4157 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4159 * valprint.c (strcat_longest): Delete commented out function.
4162 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4164 * MAINTAINERS: Mark a29k as deleted.
4165 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4166 Move new configurations to the top.
4167 * configure.tgt: Remove a29k.
4168 * config/a29k/tm-vx29k.h: Delete.
4169 * config/a29k/vx29k.mt: Delete.
4170 * config/a29k/tm-a29k.h: Delete.
4171 * config/a29k/a29k-udi.mt: Delete.
4172 * config/a29k/a29k.mt: Delete.
4173 * a29k-tdep.c: Delete.
4174 * remote-udi.c: Delete.
4175 * remote-mm.c: Delete.
4176 * remote-eb.c: Delete.
4177 * remote-adapt.c: Delete.
4178 * Makefile.in: Remove obsolete code.
4179 * gdbserver/Makefile.in: Ditto.
4180 * config/s390/s390x.mt: Ditto.
4181 * config/s390/s390.mt: Ditto.
4182 * config/sparc/sparclynx.mh: Ditto.
4183 * config/sparc/linux.mh: Ditto.
4184 * config/pa/hppaosf.mh: Ditto.
4185 * config/pa/hppabsd.mh: Ditto.
4186 * config/ns32k/nbsd.mt: Ditto.
4187 * config/mips/vr5000.mt: Ditto.
4188 * config/m68k/sun3os4.mh: Ditto.
4189 * config/m68k/nbsd.mt: Ditto.
4190 * config/m68k/m68klynx.mh: Ditto.
4191 * config/m32r/m32r.mt: Ditto.
4192 * config/i386/x86-64linux.mt: Ditto.
4193 * config/i386/nbsdelf.mt: Ditto.
4194 * config/i386/nbsd.mt: Ditto.
4195 * config/i386/i386lynx.mh: Ditto.
4197 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4199 * target.c (debug_print_register): New function. Handle oversize
4201 (debug_to_fetch_registers): Call.
4202 (debug_to_store_registers): Call.
4204 2002-05-03 Jim Blandy <jimb@redhat.com>
4206 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4207 (read_type): Doc fix.
4208 * gdbtypes.c (replace_type): Doc fix.
4210 * stabsread.c (multiply_defined_struct): New complaint.
4211 (read_struct_type): If the type we were passed isn't empty, or
4212 incomplete, don't read the new struct type into it; complain,
4213 and return the original type unchanged. Take a new `type_code'
4214 argument, which is the type code for the new type.
4215 (read_type): Rather than storing the type's type code here, pass
4216 it as an argument to read_struct_type, and let that take care of
4217 storing it. That way, we don't overwrite the original type code,
4218 so read_struct_type can use it to decide whether we're overwriting
4219 something we shouldn't.
4220 (complain_about_struct_wipeout): New function.
4222 2002-05-03 Andrew Cagney <ac131313@redhat.com>
4224 * gdbarch.sh: Assert that gdbarch is non-NULL.
4225 * gdbarch.c: Regenerate.
4227 2002-05-03 Jason Merrill <jason@redhat.com>
4229 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4232 2002-05-03 Michal Ludvig <mludvig@suse.cz>
4234 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4235 (x86_64_dwarf2gdb_regno_map_length),
4236 (x86_64_dwarf2_reg_to_regnum): Added.
4237 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4238 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4239 (_initialize_x86_64_tdep): Synced with the change above.
4240 (x86_64_skip_prologue): Reformulated message.
4242 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4244 * f-exp.y: Also use new prev_lexptr variable
4245 to improve error reporting. Based on Michael Snyder
4246 2002-04-24 dated patch to c-exp.y.
4247 * jv-exp.y: Likewise.
4248 * m2-exp.y: Likewise.
4250 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
4252 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4253 we are dealing with vectors.
4255 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4257 * config/m68k/tm-nbsd.h: Obvious fix,
4258 correct machine name.
4260 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4262 * p-typeprint.c (pascal_type_print_base): Add support
4263 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4265 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4267 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4268 for fondamental pascal 'char' type.
4270 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4272 * p-lang.h (is_pascal_string_type): Declaration changed,
4273 new sixth argument of type char ** added.
4274 * p-lang.c (is_pascal_string_type): Implementation
4275 changed. Args length_pos, length_size, string_pos, char_size
4276 can now be NULL. New argument arrayname set to the field
4277 name of the char array. Return value set to char array
4278 field index plus one.
4279 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4280 is_pascal_string_type function.
4282 2002-05-02 Andrew Cagney <cagney@redhat.com>
4284 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4285 <cagney@redhat.com> change.
4286 * gdbarch.c: Regenerate.
4288 2002-05-02 Andrew Cagney <cagney@redhat.com>
4290 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4291 before probing for a new one. Detect errorenous gdbarch_init
4293 * gdbarch.c: Regenerate.
4295 2002-05-01 Andrew Cagney <cagney@redhat.com>
4297 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4298 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4299 * config/v850/tm-v850.h: Ditto. Update copyright.
4301 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4303 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4306 2002-04-30 Michael Snyder <msnyder@redhat.com>
4308 * arm-tdep.c: Whitespace clean-ups.
4309 (arm_skip_prologue): Fix thinko; two lines
4310 should have been removed as part of 4/24 change.
4312 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4314 * rs6000-tdep.c: Added comment describing how fpscr register
4315 numbers were chosen.
4317 2002-04-30 Michael Snyder <msnyder@redhat.com>
4319 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4321 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4323 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4324 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4325 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4327 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4329 From Louis Hamilton <hamilton@redhat.com>:
4330 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4331 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4332 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4333 not bfd-private xcoff data, to determine wordsize.
4334 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4336 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4338 GDB 5.2 released from 5.2 branch.
4340 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4342 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4343 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4344 (x86_64_register_info_table): Added comments with register numbers.
4346 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4348 * rs6000-tdep.c (rs6000_extract_return_value,
4349 rs6000_store_return_value): Handle returning vectors.
4350 (rs6000_gdbarch_init): Use
4351 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4352 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4354 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4356 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4357 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4359 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4361 * hpread.c (hpread_psymtab_to_symtab_1,
4362 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4363 with fprintf_unfiltered (gdb_stderr,...).
4365 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4367 * remote-array.c (printf_monitor, write_monitor,
4368 array_insert_breakpoint, array_remove_breakpoint ):
4369 Replace fprintf (stderr,...
4370 with fprintf_unfiltered (gdb_stderr,....
4371 * remote-es.c: Likewise.
4372 * remote-os9k.c: Likewise.
4373 * remote-st.c: Likewise.
4375 2002-04-28 Andreas Schwab <schwab@suse.de>
4377 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4378 linux-proc.o and gcore.o.
4380 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4382 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4383 code without frame pointers.
4385 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4387 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4390 2002-04-26 Ben Elliston <bje@redhat.com>
4392 * target.c (do_xfer_memory): Correct reference to the new option
4393 "trust-readonly-sections".
4395 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4397 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4398 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4399 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4401 (read_array_type): Record the fact that this array type is really a
4402 vector (i.e. are passed in by value).
4404 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4406 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4407 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4408 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4409 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4410 * alpha-linux-tdep.c: Include frame.h.
4411 (alpha_linux_sigcontext_addr): New function.
4412 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4413 alpha_linux_sigcontext_addr.
4414 * alpha-osf1-tdep.c: Include gdbcore.h.
4415 (alpha_osf1_sigcontext_addr): New function.
4416 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4417 alpha_osf1_sigcontext_addr.
4418 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4419 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4421 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4423 * stack.c (selected_frame_level):
4424 (select_frame): Do not set selected_frame_level.
4425 * frame.h (selected_frame_level): Delete declaration.
4427 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4429 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4430 convert_from_func_ptr-addr when AIX / PowerOpen.
4432 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4434 * valops.c (hand_function_call): Call
4435 generic_save_call_dummy_addr.
4436 * frame.h (generic_save_call_dummy_addr): Declare.
4437 * blockframe.c (struct dummy_frame): Add fields call_lo and
4439 (generic_find_dummy_frame): Check for PC in range call_lo to
4440 call_hi instead of entry_point_address.
4441 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4442 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4443 (generic_save_call_dummy_addr): New function.
4445 2002-04-24 David S. Miller <davem@redhat.com>
4447 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4448 sparc_skip_prologue.
4449 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4450 information to find prologue when possible.
4451 (sparc_prologue_frameless_p): Call examine_prologue directly.
4452 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4453 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4455 (SKIP_PROLOGUE): Likewise.
4457 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4459 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4460 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4461 indicate that the condition it was testing is always true.
4462 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4463 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4464 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4466 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4468 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4469 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4470 tdep->jb_pc and tdep->jb_elt_size.
4471 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4472 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4473 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4474 * alpha-nat.c (get_longjmp_target): Remove.
4475 (JB_ELEMENT_SIZE): Ditto.
4477 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4478 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4479 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4480 to alpha_get_longjmp_target.
4481 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4482 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4483 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4485 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4487 * README: Update to GDB 5.2.
4489 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4491 * gdbarch.sh (LC_ALL): Set to `c'.
4493 2002-04-25 Theodore A. Roth <troth@verinet.com>
4495 * avr-tdep.c: Ran through gdb_indent.sh.
4497 2002-04-25 Theodore A. Roth <troth@verinet.com>
4499 * MAINTAINERS: Add myself as AVR maintainer.
4500 * NEWS: Note new target avr.
4502 2002-04-25 Theodore A. Roth <troth@verinet.com>
4504 * Makefile.in: Add support for AVR target.
4505 * configure.tgt: Add support for AVR target.
4506 * avr-tdep.c: New file
4507 * config/avr/avr.mt: New file.
4509 2002-04-25 Theodore A. Roth <troth@verinet.com>
4511 * MAINTAINERS: Add myself to write-after-approval.
4513 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4515 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4516 with fprintf_unfiltered (gdb_stderr,....
4518 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4521 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4523 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4525 * p-exp.y: Also use new prev_lexptr variable
4526 to improve error reporting. Based on Michael Snyder
4527 2002-04-24 dated patch to c-exp.y.
4529 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4531 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4532 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4533 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4535 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4537 (FUNCTION_START_OFFSET): Remove.
4538 (BREAKPOINT): Ditto.
4540 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4542 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4545 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4547 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4548 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4549 alpha_linux_pc_in_sigtramp.
4550 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4551 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4552 alpha_osf1_pc_in_sigtramp.
4553 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4554 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4555 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4556 alphafbsd_pc_in_sigtramp.
4557 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4558 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4559 alphanbsd_pc_in_sigtramp.
4560 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4561 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4563 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4565 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4567 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4569 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4571 (alphanbsd-nat.o): New dependency list.
4572 (alphanbsd-tdep.o): Ditto.
4573 * NEWS: Note new native NetBSD/alpha configuration.
4574 * alphanbsd-nat.c: New file.
4575 * alphanbsd-tdep.c: Ditto.
4576 * configure.host (alpha*-*-netbsd*): New host.
4577 * configure.tgt (alpha*-*-netbsd*): New target.
4578 * config/alpha/nbsd.mh: New file.
4579 * config/alpha/nbsd.mt: Ditto.
4580 * config/alpha/nm-nbsd.h: Ditto.
4581 * config/alpha/tm-nbsd.h: Ditto.
4583 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4585 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4586 (alpha-osf1-tdep.o): New dependency list.
4587 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4588 and skip_sigtramp_frame members.
4589 * alpha-linux-tdep.c: Include gdbcore.h.
4590 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4591 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4592 * alpha-osf1-tdep.c: New file.
4593 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4595 (alpha_frame_past_sigtramp_frame): New function.
4596 (alpha_dynamic_sigtramp_offset): Ditto.
4597 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4598 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4599 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4600 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4601 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4602 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4603 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4604 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4605 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4606 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4607 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4608 to find_solib_trampoline_target.
4609 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4610 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4611 (SKIP_TRAMPOLINE_CODE): Remove.
4612 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4613 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4614 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4615 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4616 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4617 (PROC_SIGTRAMP_MAGIC): Ditto.
4618 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4619 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4620 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4621 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4622 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4624 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4626 * NEWS: Note that Alpha targets are now multi-arch.
4628 2002-04-24 Michael Snyder <msnyder@redhat.com>
4630 * parser-defs.h (prev_lexptr): New external variable.
4631 * parse.c (parse_exp_1): Set prev_lexptr to null before
4632 calling the language-specific parser.
4633 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4634 (yyerror): Use prev_lexptr in error reporting.
4636 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4638 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4639 * gregset.h: If FILL_FPXREGSET is defined, provide
4640 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4641 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4642 is defined, call fill_fpxregset.
4644 2002-04-24 Roland McGrath <roland@frob.com>
4646 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4647 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4648 (supply_gregset, supply_fpregset): New functions.
4650 * gnu-nat.c (gnu_find_memory_regions): New function.
4651 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4652 (gnu_xfer_memory): Add a cast.
4654 2002-04-24 Michael Snyder <msnyder@redhat.com>
4656 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4657 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4658 of argument regs ("str r(0123), [r11, #-nn"]).
4659 (arm_skip_prologue): Better handling for frameless functions.
4660 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4661 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4663 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4665 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4666 NUM_PSEUDO_REGS can be used.
4668 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4670 * arch-utils.h: Update copyright.
4672 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4673 * gdbarch.h, gdbarch.c: Re-generate.
4675 * inferior.h (IN_SIGTRAMP): Delete definition.
4676 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4677 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4679 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4680 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4681 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4682 (find_proc_framesize): Ditto.
4683 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4684 (alpha_init_extra_frame_info): Ditto.
4685 * infrun.c (handle_inferior_event): Ditto.
4686 (handle_inferior_event): Ditto.
4687 (check_sigtramp2): Ditto.
4688 * blockframe.c (create_new_frame): Ditto.
4689 (get_prev_frame): Ditto.
4690 * ppc-linux-tdep.c: Update comments.
4691 * i386-linux-tdep.c: Update comments.
4692 * breakpoint.c (bpstat_what): Update comment.
4694 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4696 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4697 (regsets_store_inferior_registers): Removed cast to int from
4699 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4701 2002-04-24 David S. Miller <davem@redhat.com>
4703 * i960-tdep.c (register_in_window_p): New function.
4704 (i960_find_saved_register): Use it instead of
4705 REGISTER_IN_WINDOW_P.
4706 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4708 * symtab.h (find_stab_function_addr): Kill extern.
4709 * minsyms.c (find_stab_function_addr): Remove from here...
4710 * dbxread.c: ... to here, and mark it static.
4712 2002-04-20 David S. Miller <davem@redhat.com>
4714 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4715 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4717 2002-04-21 David S. Miller <davem@redhat.com>
4719 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4720 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4721 (vx_write_register): Likewise.
4723 2002-04-23 J. Brobecker <brobecker@gnat.com>
4725 * source.c (is_regular_file): New function.
4726 (openp): Check wether file to open is a regular file
4727 to avoid opening directories.
4729 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4731 * findvar.c (extract_signed_integer): Cast printf argument
4732 to suppress format warning.
4733 (extract_unsigned_integer): Likewise.
4734 * infcmd.c (registers_info): Likewise.
4735 * top.c (get_prompt_1): Likewise.
4736 * valops.c (value_assign): Likewise.
4737 * valprint.c (print_decimal): Likewise.
4739 2002-04-22 H.J. Lu (hjl@gnu.org)
4741 * c-exp.y (typebase): Support
4743 [long|long long|short] [signed|unsigned] [int|]
4747 signed [long|long long|short] int
4749 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4751 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4753 * vax-tdep.h: New file.
4754 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4755 Make several routines static.
4756 (vax_get_saved_register): New function.
4757 (vax_gdbarch_init): New function.
4758 (_initialize_vax_tdep): Register vax_gdbarch_init.
4759 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4760 Remove macros now under the control of gdbarch.
4762 2002-04-22 Michael Snyder <msnyder@redhat.com>
4764 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4765 Some whitespace and coding standards tweaks.
4767 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4769 * vax-tdep.c: Include regcache.h.
4770 (vax_call_dummy_words): New.
4771 (sizeof_vax_call_dummy_words): New.
4772 (vax_fix_call_dummy): New function.
4773 (vax_saved_pc_after_call): Ditto.
4774 * config/vax/tm-vax.h: Don't include regcache.h.
4775 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4776 (CALL_DUMMY): Remove.
4777 (CALL_DUMMY_WORDS): Define.
4778 (SIZEOF_CALL_DUMMY_WORDS): Define.
4779 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4781 2002-04-18 Michael Snyder <msnyder@redhat.com>
4783 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4785 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4787 * vax-tdep.c (vax_frame_chain): New function.
4788 (vax_push_dummy_frame): Ditto.
4789 (vax_pop_frame): Ditto.
4790 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4791 (FRAMELESS_FUNCTION_INVOCATION): Use
4792 generic_frameless_function_invocation_not.
4793 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4794 (POP_FRAME): Use vax_pop_frame.
4796 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4798 * vax-tdep.c (vax_store_struct_return): New function.
4799 (vax_extract_return_value): Ditto.
4800 (vax_store_return_value): Ditto.
4801 (vax_extract_struct_value_address): Ditto.
4802 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4803 vax_store_struct_return.
4804 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4805 (STORE_RETURN_VALUE): Use vax_store_return_value.
4806 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4808 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4810 * vax-tdep.c (vax_frame_saved_pc): New function.
4811 (vax_frame_args_address_correct): Ditto.
4812 (vax_frame_args_address): Ditto.
4813 (vax_frame_locals_address): Ditto.
4814 (vax_frame_num_args): Move code to be in proximity to
4815 other frame-related functions.
4816 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4817 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4818 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4819 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4820 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4822 2002-04-22 H.J. Lu (hjl@gnu.org)
4824 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4827 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4829 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4830 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4831 (FRAME_INIT_SAVED_REGS): New macro.
4833 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4835 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4839 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4841 (fetch_osf_core_registers): Likewise.
4842 (supply_gregset): Likewise.
4844 2002-04-22 J. Brobecker <brobecker@gnat.com>
4846 * symfile.h (get_section_index): Define.
4847 * symfile.c (get_section_index): New function.
4848 * mdebugread.c (SC_IS_SBSS): New macro.
4849 (SC_IS_BSS): Return true for the scBss storage class only, as
4850 the scSBss storage class refers to the .sbss section.
4851 (parse_partial_symbols): Discard the symbols which associated
4852 section does not exist.
4853 Make sure to use the .sbss section index for symbols which
4854 storage class is scBss, rather than using the .bss section index.
4856 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4858 * vax-tdep.c: Update copyright years.
4859 (vax_register_name): New function.
4860 (vax_register_byte): Ditto.
4861 (vax_register_raw_size): Ditto.
4862 (vax_register_virtual_size): Ditto.
4863 (vax_register_virtual_type): Ditto.
4864 * config/vax/tm-vax.h: Update copyright years.
4865 (REGISTER_NAMES): Remove.
4866 (REGISTER_NAME): Define.
4867 (REGISTER_BYTE): Use vax_register_byte.
4868 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4869 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4870 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4872 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4874 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4876 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4878 2002-04-21 David S. Miller <davem@redhat.com>
4880 * arch-utils.c (generic_prologue_frameless_p): Kill
4881 SKIP_PROLOGUE_FRAMELESS_P code.
4882 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4884 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4885 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4886 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4888 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4889 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4890 (sparc_gdbarch_init): Pass it to
4891 set_gdbarch_prologue_frameless_p.
4893 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4895 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4896 (alphabsd-nat.o): New dependency list.
4898 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4900 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4902 (alpha-linux-tdep.o): New dependency list.
4903 (alphafbsd-tdep.o): Likewise.
4905 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4907 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4909 * alpha-tdep.c: ...from here.
4910 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4912 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4914 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4915 prototype from here...
4916 * alpha-tdep.h: ...to here.
4918 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4920 * frame.h (selected_frame_level): Document as deprecated.
4921 (frame_relative_level): Declare.
4922 * stack.c (frame_relative_level): New function.
4923 (selected_frame_level): Document as deprecated.
4924 (select_frame): Do not set the selected_frame_level.
4926 * stack.c (frame_info, record_selected_frame): Update.
4927 (frame_command, current_frame_command): Update.
4928 (up_silently_base, up_command, down_silently_base): Update.
4929 (down_command): Update.
4930 * inflow.c (kill_command): Update.
4931 * tracepoint.c (finish_tfind_command): Update.
4932 * corelow.c (core_open): Update.
4933 * thread.c (info_threads_command): Update.
4934 (do_captured_thread_select): Update.
4935 * infcmd.c (finish_command): Update.
4936 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4938 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4940 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4942 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4944 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4947 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4949 * alphafbsd-tdep.c: Update copyright years. Include
4951 (alphafbsd_use_struct_convention): Make static.
4952 (alphafbsd_init_abi): New function.
4953 (_initialize_alphafbsd_tdep): New function.
4954 * config/alpha/tm-fbsd.h: Update copyright years.
4955 (USE_STRUCT_CONVENTION): Remove.
4957 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4959 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4960 an Alpha ABI variant.
4961 (alpha_abi_handler_list): Declare.
4962 (alpha_gdbarch_register_os_abi): New function.
4963 (alpha_gdbarch_init): Give registered ABI variant handlers a
4964 chance to tweak the gdbarch once we have set up defaults.
4965 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4967 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4969 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4970 to standard_coerce_float_to_double.
4971 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4973 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4975 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4976 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4977 from gdbarch_tdep rather than a constant.
4978 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4979 the default text address for all Alpha Unix ABIs.
4980 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4981 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4983 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4985 * alpha-tdep.h: New file. Includes several Alpha target constants
4987 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4988 let gdbarch deal with.
4989 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4990 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4992 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4993 Alpha target register names.
4994 * alphabsd-nat.c: Likewise.
4995 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4996 Alpha target register names. Make serveral routines static.
4997 (alpha_get_saved_register): New function.
4998 (alpha_abi_names): New.
4999 (process_note_abi_tag_sections): New function.
5000 (get_elfosabi): New function.
5001 (alpha_gdbarch_init): New function.
5002 (alpha_dump_tdep): New function.
5003 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5005 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5007 * frame.c (find_saved_register): Delete #ifdef
5008 HAVE_REGISTER_WINDOWS code.
5009 * config/sparc/tm-sparc.h: Update comments.
5010 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5012 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5014 * i960-tdep.c (i960_find_saved_register): New function.
5015 (i960_get_saved_register): New function.
5016 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5017 (i960_get_saved_register): Declare.
5018 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5020 2002-04-20 David S. Miller <davem@redhat.com>
5022 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5024 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5026 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5027 instead of NUM_PSEUDO_REGS.
5029 2002-04-20 David S. Miller <davem@redhat.com>
5031 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5032 GDB_MULTI_ARCH_PARTIAL
5033 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5034 define, let tm-sp64.h do it.
5036 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5038 * frame.c (find_saved_register): Avoid a NULL pointer
5039 dereference and actually walk the frame list.
5041 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5043 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5044 sorted in most most-recent-used order. Document.
5045 * gdbarch.h, gdbarch.c: Regenerate.
5047 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5049 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5050 (add_inferior): Call create_register_cache.
5051 (clear_inferiors): Call free_register_cache.
5052 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5053 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5054 (registers): Remove.
5055 (get_regcache): New function.
5056 (create_register_cache, free_register_cache): New functions.
5057 (set_register_cache): Don't initialize the register cache here.
5058 (registers_to_string, registers_from_string, register_data): Call
5060 * gdbserver/regcache.h: Add prototypes.
5061 * gdbserver/server.h: Likewise.
5063 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5065 * gdbserver/mem-break.c: New file.
5066 * gdbserver/mem-break.h: New file.
5067 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5069 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5071 (clear_inferiors): Free target_data member if set.
5072 (inferior_target_data, set_inferior_target_data): New functions.
5073 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5074 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5075 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5076 (struct inferior_linux_data): New.
5077 (linux_create_inferior): Use set_inferior_target_data.
5078 (linux_attach): Likewise. Call add_inferior.
5079 (linux_wait_for_one_inferior): New function.
5080 (linux_wait): Call it.
5081 (linux_write_memory): Add const.
5082 (initialize_low): Call set_breakpoint_data.
5083 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5085 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5087 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5089 * gdbserver/target.c (read_inferior_memory)
5090 (write_inferior_memory): New functions.
5091 * gdbserver/target.h (read_inferior_memory)
5092 (write_inferior_memory): Change macros to prototypes.
5093 (struct target_ops): Update comments. Add const to write_memory
5096 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5098 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5100 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5101 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5102 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5105 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5108 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5109 (build_builtin_type_vec128): Ditto.
5110 (append_composite_type_field): Fix calculation of type length in
5113 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5115 * config/djgpp/README: Update.
5117 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5120 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5122 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5123 (alpha_setup_arbitrary_frame): ...to this.
5124 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5125 for alpha_setup_arbitrary_frame.
5127 2002-04-18 Andrew Cagney <cagney@redhat.com>
5129 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5130 * gdbarch.h, gdbarch.c: Regenerate.
5132 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5133 * target.h (memory_breakpoint_from_pc): Update declaration.
5134 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5136 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5137 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5138 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5139 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5140 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5141 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5142 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5143 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5144 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5145 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5146 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5147 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5149 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5151 * monitor.c (monitor_insert_breakpoint): Ditto.
5152 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5154 * config/mcore/tm-mcore.h: Update copyright.
5155 * mem-break.c: Ditto.
5156 * xstormy16-tdep.c: Ditto.
5158 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5160 * p-exp.y: Add precedence rule for '^' token.
5161 This removes the shift/reduce conflicts.
5162 Remove the comment concerning these shift/reduce conflicts.
5164 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5166 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5167 (registers_powerpc_nofp): New register set for processors
5168 without floating point unit.
5170 2002-04-18 David S. Miller <davem@redhat.com>
5172 * MAINTAINERS: Add myself to write-after-approval.
5174 2002-04-17 Michael Snyder <msnyder@redhat.com>
5176 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5178 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5180 * rs6000-tdep.c (frame_initial_stack_address): Use
5181 frame_register_read to read the alloca_reg.
5183 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5185 * frame.c (find_saved_register): Find saved registers in the next
5189 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5191 * gdbarch.sh (LANG): Set to ``c''.
5193 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5195 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
5197 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5199 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5202 * hpread.c (hpread_get_lntt): Add declaration.
5203 Also fix PR gdb/391.
5205 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5207 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5208 * aclocal.m4, configure: Re-generate.
5211 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5213 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5214 instead of tm_print_insn.
5216 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5218 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5220 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5222 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5223 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5224 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5226 2002-04-12 Don Howard <dhoward@redhat.com>
5228 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5229 max_user_call_depth.
5230 (init_cmd_lists): Initialize the new value;
5231 * cli/cli-script.c (execute_user_command): Limit the call depth of
5232 user defined commands. This avoids a core-dump when user commands
5233 are infinitly recursive.
5235 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5237 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5238 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5239 from tdep struct instead of DEFAULT_LR_SAVE.
5240 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5241 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5242 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5244 2002-04-12 Michael Snyder <msnyder@redhat.com>
5246 * Remote.c: Spelling fix.
5247 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5248 If no symbol found for "sbrk", try "_sbrk".
5249 (make_output_phdrs): Use bfd_section_name.
5250 (gcore_copy_callback): Use bfd_section_name.
5251 * eval.c: Indentation fix-ups.
5252 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5253 in case it gets applied to an address that is already
5254 in the instruction space.
5255 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5256 * symfile.c: Fix indentation, long lines.
5257 * source.c: White space fix-up.
5259 2002-04-12 Andrew Cagney <cagney@redhat.com>
5261 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5262 * frame.c (frame_register_read): New function. Return non-zero on
5264 (read_relative_register_raw_bytes_for_frame): Delete.
5265 (read_relative_register_raw_bytes): Delete.
5266 * frame.h (frame_register_read): Declare.
5267 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5269 * infcmd.c (do_registers_info): Ditto.
5270 * hppa-tdep.c: Ditto.
5271 * rs6000-tdep.c: Ditto.
5272 * h8500-tdep.c: Ditto.
5273 * mips-tdep.c: Ditto.
5274 * h8300-tdep.c: Ditto.
5275 * z8k-tdep.c: Ditto.
5277 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5279 From Jimi X <jimix@watson.ibm.com>:
5280 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5283 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5285 From Jimi X <jimix@watson.ibm.com>:
5286 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5289 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5291 From Jimi X <jimix@watson.ibm.com>:
5292 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5293 register sets for these processor variants.
5295 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5297 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5298 registers which are allowed to fail to store.
5299 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5300 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5301 (ppc_cannot_store_register): FPSCR may not be storable.
5302 * regformats/reg-ppc.dat: Support FPSCR.
5304 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5306 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5307 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5308 Add fpscr as an invalid/unfetchable register.
5309 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5310 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5311 (fill_fpregset): Add support for register fpscr.
5312 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5313 (fill_gregset): Account for the fact that register ``mq'' might
5315 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5316 (registers_power): Add fpscr to register set at slot 71.
5317 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5318 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5320 2002-04-11 Michael Snyder <msnyder@redhat.com>
5322 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5323 * configure: Regenerate.
5324 * config.in: Regenerate.
5325 * acconfig.h: Add define for _SYSCALL32.
5326 * core-sol2.c: Remove #define _SYSCALL32.
5327 * solib-legacy.c: Remove #define _SYSCALL32.
5329 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5331 * stack.c (select_frame): Cleanup internal error message, do not
5334 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5336 * stack.c (select_frame): Check that selected_frame and the
5337 specified level are as expected.
5338 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5340 * frame.h (struct frame_info): Add field `level'. Update
5342 Work-in-progress PR gdb/464.
5344 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5346 * maint.c (maint_print_section_info): Rename print_section_info.
5347 (print_bfd_section_info, print_objfile_section_info): Update.
5348 * inferior.h (struct gdbarch): Add opaque declaration.
5349 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5350 * gdbarch.h: Regenerate.
5352 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5354 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5355 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5356 (kernel_u_size): Added.
5357 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5358 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5360 2002-04-04 Jim Ingham <jingham@apple.com>
5362 * valarith.c (find_size_for_pointer_math): New function, either returns
5363 the size for a pointer's target, returns 1 for void *, or errors for
5365 (value_add, value_sub): use find_size_for_pointer_math.
5367 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5369 * linux-low.c (linux_look_up_symbols): New hook.
5370 (linux_target_ops): Add linux_look_up_symbols.
5371 * remote-utils.c (decode_address): New function.
5372 (look_up_one_symbol): New function.
5373 * server.c (handle_query): Call target look_up_symbols hook.
5374 * server.h (look_up_one_symbol): Add prototype.
5375 * target.h (struct target_ops): Add look_up_symbols hook.
5377 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5379 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5380 * ChangeLog: Correct paths in last ChangeLog entry.
5382 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5384 * gdbserver/linux-low.h: Remove obsolete prototypes.
5385 (struct linux_target_ops): New.
5386 (extern the_low_target): New.
5387 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5388 (register_addr): Use the_low_target explicitly.
5389 (fetch_register): Likewise.
5390 (usr_fetch_inferior_registers): Likewise.
5391 (usr_store_inferior_registers): Likewise.
5392 * gdbserver/linux-arm-low.c (num_regs): Remove.
5393 (arm_num_regs): Define.
5394 (arm_regmap): Renamed from regmap, made static.
5395 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5397 (arm_cannot_store_register): Renamed from cannot_store_register,
5399 (the_low_target): New.
5400 * gdbserver/linux-i386-low.c (num_regs): Remove.
5401 (i386_num_regs): Define.
5402 (i386_regmap): Renamed from regmap, made static.
5403 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5405 (i386_cannot_store_register): Renamed from cannot_store_register,
5407 (the_low_target): New.
5408 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5409 (ia64_num_regs): Define.
5410 (ia64_regmap): Renamed from regmap, made static.
5411 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5413 (ia64_cannot_store_register): Renamed from cannot_store_register,
5415 (the_low_target): New.
5416 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5417 (m68k_num_regs): Define.
5418 (m68k_regmap): Renamed from regmap, made static.
5419 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5421 (m68k_cannot_store_register): Renamed from cannot_store_register,
5423 (the_low_target): New.
5424 * gdbserver/linux-mips-low.c (num_regs): Remove.
5425 (mips_num_regs): Define.
5426 (mips_regmap): Renamed from regmap, made static.
5427 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5429 (mips_cannot_store_register): Renamed from cannot_store_register,
5431 (the_low_target): New.
5432 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5433 (ppc_num_regs): Define.
5434 (ppc_regmap): Renamed from regmap, made static.
5435 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5437 (ppc_cannot_store_register): Renamed from cannot_store_register,
5439 (the_low_target): New.
5440 * gdbserver/linux-s390-low.c (num_regs): Remove.
5441 (s390_num_regs): Define.
5442 (s390_regmap): Renamed from regmap, made static.
5443 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5445 (s390_cannot_store_register): Renamed from cannot_store_register,
5447 (the_low_target): New.
5448 * gdbserver/linux-sh-low.c (num_regs): Remove.
5449 (sh_num_regs): Define.
5450 (sh_regmap): Renamed from regmap, made static.
5451 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5453 (sh_cannot_store_register): Renamed from cannot_store_register,
5455 (the_low_target): New.
5456 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5457 (the_low_target): New.
5459 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5461 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5462 override FP_REGNUM with frame->fp. Update copyright.
5463 * parse.c (num_std_regs, std_regs): Delete.
5464 (target_map_name_to_register): Do not search std_regs. Update
5465 function description.
5466 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5467 declarations. Update copyright.
5470 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5472 * gdbserver/Makefile.in: Add stamp-h target.
5473 * gdbserver/configure.in: Create stamp-h.
5474 * gdbserver/configure: Regenerated.
5476 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5478 * gdbserver/inferiors.c: New file.
5479 * gdbserver/target.c: New file.
5480 * gdbserver/target.h: New file.
5481 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5483 * gdbserver/linux-low.c (inferior_pid): New static variable,
5484 moved from server.c.
5485 (linux_create_inferior): Renamed from create_inferior.
5486 Call add_inferior. Return 0 on success instead of a PID.
5487 (linux_attach): Renamed from myattach.
5488 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5489 (linux_thread_alive): Renamed from mythread_alive.
5490 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5492 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5493 (regsets_store_inferior_registers): Correct error message.
5494 Add missing ``return 0''.
5495 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5496 (linux_store_registers): Renamed from store_inferior_registers.
5497 (linux_read_memory): Renamed from read_inferior_memory.
5498 (linux_write_memory): Renamed from write_inferior_memory.
5499 (linux_target_ops): New structure.
5500 (initialize_low): Call set_target_ops ().
5501 * gdbserver/remote-utils.c (unhexify): New function.
5502 (hexify): New function.
5503 (input_interrupt): Send signals to ``signal_pid''.
5504 * gdbserver/server.c (inferior_pid): Remove.
5505 (start_inferior): Update create_inferior call.
5506 (attach_inferior): Call add_inferior.
5507 (handle_query): New function.
5508 (main): Call handle_query for `q' packets.
5509 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5510 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5512 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5514 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5516 * gdbserver/configure.in: Check for <string.h>
5517 * gdbserver/configure: Regenerate.
5518 * gdbserver/config.in: Regenerate.
5519 * gdbserver/gdbreplay.c: Include needed system headers.
5520 (remote_open): Remove strchr prototype.
5521 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5522 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5523 (supply_register_by_name): Likewise.
5524 (collect_register): Change buf argument to void *.
5525 (collect_register_by_name): Likewise.
5526 * gdbserver/regcache.h: Add missing prototypes.
5527 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5528 * gdbserver/server.c (handle_query): New function.
5529 (attached): New static variable, moved out of main.
5530 (main): Quiet longjmp clobber warnings.
5531 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5532 * gdbserver/utils.c (error): Remove NORETURN.
5535 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5537 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5538 after the last symbol in a block.
5540 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5542 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5543 is non zero as a found symbol.
5545 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5547 * findvar.c: Include "builtin-regs.h".
5548 (value_of_register): Call value_of_builtin_reg when applicable.
5549 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5550 (target_map_name_to_register): Call
5551 builtin_reg_map_name_to_regnum.
5552 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5553 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5554 (builtin_regs_h): Define.
5555 (builtin-regs.o): New target.
5556 (findvar.o): Add $(builtin_regs_h).
5557 * builtin-regs.c, builtin-regs.h: New files.
5558 * std-regs.c: New file.
5559 Partial fix for PR gdb/251.
5561 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5563 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5564 it's no longer required.
5566 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5568 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5570 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5572 From Jimi X <jimix@watson.ibm.com>:
5573 * rs6000-tdep.c (rs6000_software_single_step): Use
5574 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5575 and size. Use target_insert_breakpoint() and
5576 target_remove_breakpoint() to insert and remove breakpoints
5577 instead of explicit memory reads and writes.
5579 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5581 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5582 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5583 ELF_OBJECT_FORMAT ifdef.
5585 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5587 From Jimi X <jimix@watson.ibm.com>:
5588 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5590 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5592 From Jimi X <jimix@watson.ibm.com>:
5593 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5594 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5596 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5598 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5599 s/asprintf/xasprintf/.
5600 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5602 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5604 I believe Jeff Law denies responsability for this one:
5605 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5606 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5607 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5608 Work-around for PR gdb/366.
5610 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5612 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5613 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5614 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5616 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5618 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5619 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5622 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5624 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5627 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5629 * README (Reporting Bugs in GDB): Document the bug web page as the
5630 prefered way of submitting bugs.
5633 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5635 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5637 * gdbarch.h, gdbarch.c: Re-generate.
5639 2002-04-07 Andreas Schwab <schwab@suse.de>
5641 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5642 buffer to regcache_collect.
5644 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5646 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5647 * gdbarch.c, gdbarch.h: Re-generate.
5649 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5651 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5652 declaration. Fix -Werror.
5654 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5656 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5657 * gdbarch.c: Regenerate.
5659 2002-04-05 Michael Snyder <msnyder@redhat.com>
5661 * breakpoint.c (clear_command): Rewrite middle section to
5662 combine two loops with identical control conditions.
5663 Add a cleanup to eliminate a memory leak.
5664 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5666 2002-04-05 H.J. Lu (hjl@gnu.org)
5668 * solib-svr4.c (bkpt_names): Add "__start".
5670 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5672 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5673 as test for 64 bit target.
5675 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5677 * h8500-tdep.c (h8500_write_fp): Delete function.
5678 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5679 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5680 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5682 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5683 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5685 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5686 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5687 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5688 (d10v_write_fp): Delete function.
5689 * inferior.h (write_fp, generic_target_write_fp): Delete
5691 * regcache.c (generic_target_write_fp): Delete function.
5692 (write_fp): Delete function.
5693 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5694 * gdbarch.h, gdbarch.c: Regenerate.
5695 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5696 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5697 (sparc64_write_fp): Delete declaration.
5698 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5699 (h8500_write_fp): Delete declaration.
5701 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5703 * sparc-tdep.c (sparc64_write_fp): Delete.
5704 (sparc_push_dummy_frame): Replace write_fp call with code to store
5706 (sparc_gdbarch_init): Do not initialize write_fp.
5708 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5710 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5713 2002-03-29 Jim Blandy <jimb@redhat.com>
5715 * stack.c (get_selected_block): Add new argument `addr_in_block',
5716 used to return the exact code address we used to select the block,
5718 * blockframe.c (get_frame_block, get_current_block): Same.
5719 * frame.h (get_frame_block, get_current_block,
5720 get_selected_block): Update declarations.
5721 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5722 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5724 2002-04-05 Michael Snyder <msnyder@redhat.com>
5726 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5729 2002-04-05 J. Brobecker <brobecker@gnat.com>
5731 * utils.c (xfullpath): New function.
5732 * defs.h (xfullpath): Add declaration.
5733 * source.c (openp): Use xfullpath in place of gdb_realpath to
5734 avoid resolving the basename part of filenames when the
5735 associated file is a symbolic link. This fixes a potential
5736 inconsistency between the filenames known to GDB and the
5737 filenames it prints in the annotations.
5738 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5739 to be able to match a filename with either the real filename, or
5740 the name of any symbolic link to this file.
5741 (lookup_partial_symtab): Ditto.
5743 2002-04-04 Michael Snyder <msnyder@redhat.com>
5745 * breakpoint.c: Add support for hardware breakpoints in overlays.
5746 (overlay_events_enabled): New state variable.
5747 (insert_breakpoints): Use overlay_events_enabled to decide
5748 whether to attempt to set a breakpoint at the overlay load addr.
5749 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5750 (remove_breakpoint): Use overlay_events_enabled to decide
5751 whether breakpoints need to be removed from overlay load addr.
5752 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5753 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5754 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5755 disable_overlay_breakpoints): Update overlay_events_enabled.
5757 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5759 * dwarf2read.c (struct function_range): New.
5760 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5761 (check_cu_functions): New.
5762 (read_file_scope): Initialize global function lists.
5763 Call dwarf_decode_line after processing children.
5764 (read_func_scope): Add to global function list.
5765 (dwarf_decode_lines): Call check_cu_functions everywhere
5766 record_line is called. Call record_line with a linenumber
5767 of 0 to mark sequence ends.
5769 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5771 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5772 change sync with glibc.
5774 2002-04-03 Jim Blandy <jimb@redhat.com>
5776 * configure.in: Call AC_C_INLINE.
5777 * configure: Regenerated.
5779 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5781 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5782 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5784 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5786 * NEWS: Mention gcore support on FreeBSD/i386.
5788 * fbsd-proc.c: New file.
5789 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5790 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5792 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5795 2002-03-29 Jim Blandy <jimb@redhat.com>
5797 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5798 unescaped newlines in string literals, but newer ones don't. So
5801 2002-03-26 Michael Snyder <msnyder@redhat.com>
5802 Andrew Cagney <cagney@redhat.com>
5804 * cli/cli-dump.c: New file. Dump memory to file,
5805 restore file to memory.
5806 * cli/cli-dump.h: New file.
5807 * Makefile.in: Add rules, dependencies for cli-dump.o.
5808 * NEWS: Mention new commands.
5810 2002-03-28 Michael Snyder <msnyder@redhat.com>
5812 * symfile.c (symbol_file_add): Move test for null symbols to later.
5814 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5816 From veksler at il.ibm.com:
5817 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5818 the xstrduped original path.
5821 2002-03-27 Michael Snyder <msnyder@redhat.com>
5823 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5824 * infcmd.c (_initialize_infcmd): Ditto.
5825 * language.c (_initialize_language): Ditto.
5826 * symfile.c (_initialize_symfile): Ditto.
5827 * top.c (_init_main): Ditto.
5828 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5830 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5832 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5833 vector registers handling.
5834 (skip_prologue): Handle new AltiVec instructions. Fill in new
5835 fields of frame data.
5836 (frame_get_saved_regs): Fill in information for AltiVec registers.
5838 2002-03-27 Jim Blandy <jimb@redhat.com>
5840 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5841 a function; leave this macro here to invoke that function.
5842 (symbol_init_mangled_name): Declaration for that function.
5843 * symtab.c (symbol_init_mangled_name): New function.
5845 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5847 * valarith.c: Replace strerror with safe_strerror.
5848 * tracepoint.c: Ditto.
5850 * go32-nat.c: Ditto.
5854 2002-03-27 Andreas Schwab <schwab@suse.de>
5856 * event-top.c (command_line_handler): Remove useless if.
5858 2002-03-27 Andreas Jaeger <aj@suse.de>
5860 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5863 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5865 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5866 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5867 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5868 (x86_64_linux_dr_get_status, supply_gregset),
5869 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5870 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5871 (x86_64_register_info_table): Add.
5872 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5873 (x86_64_register_raw_size, x86_64_register_virtual_type),
5874 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5875 general x86_64_register_info_table.
5876 (i386_gdbarch_init): gdbarch_register_bytes is now set
5877 dynamicaly during initialization.
5878 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5879 * gdbserver/linux-x86-64-low.c: Ditto.
5881 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5883 * gdbserver/server.c (main): Call target_signal_to_host_p
5884 and target_signal_to_host on signals received from the remote.
5885 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5886 target_signal_from_host on signals sent to the remote.
5887 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5888 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5890 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5892 * signals/signals.c: Include "server.h" in gdbserver build.
5893 (target_signal_from_name): Don't use STREQ.
5894 (_initialize_signals): Likewise. Don't include function in
5897 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5899 * signals.c: Moved to...
5900 * signals/signals.c: Here.
5901 * Makefile (signals.o): Update.
5903 2002-03-26 Jeff Law (law@redhat.com)
5905 * somread.c (som_symtab_read): Remove some commented out code and
5906 updated related comments. Do not set the minimal symbol table to
5907 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5908 in a dynamic executable.
5909 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5910 where we are unable to find the minimal symbol for the given
5913 2002-03-25 Jeff Law (law@redhat.com)
5915 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5917 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5919 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5921 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5923 * command.h: Update copyright.
5924 (struct cmd_list_element): Replace definition with opaque
5926 (enum cmd_types): Document that it will eventually be moved to
5928 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5929 (MALLOCED_REPLACEMENT): Delete macro.
5930 * Makefile.in (cli_decode_h): Add $(command_h).
5931 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5932 * top.c: Include "cli/cli-decode.h".
5933 * completer.c: Include "cli/cli-decode.h".
5934 * maint.c: Include "cli/cli-decode.h".
5935 * cli/cli-decode.h: Include "command.h".
5936 (enum command_class): Delete.
5937 (enum cmd_types): Comment out.
5938 (enum cmd_auto_boolean): Delete.
5939 (enum var_types): Delete.
5941 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5943 * cli/cli-decode.c: Include "gdb_assert.h".
5944 (add_set_or_show_cmd): New static function.
5945 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5946 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5947 all fields, such as func, from the set command.
5949 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5951 * MAINTAINERS (sh-elf): Change warning flag to -w.
5953 2002-03-23 Andrew Cagney <cagney@redhat.com>
5955 * defs.h (error): Add printf format attribute.
5956 * thread-db.c (thread_from_lwp): Fix error format string.
5957 * stack.c (parse_frame_specification): Ditto.
5958 * cli/cli-decode.c (undef_cmd_error): Ditto.
5959 * scm-lang.c (scm_lookup_name): Ditto.
5960 * tracepoint.c (trace_error): Ditto.
5961 * remote-utils.c (usage): Ditto.
5962 * remote.c (compare_sections_command): Ditto.
5965 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5967 * gdbtypes.c (append_composite_type_field): New function.
5968 (init_composite_type): New function.
5969 * gdbtypes.h (append_composite_type_field): Declare.
5970 (init_composite_type): Ditto.
5972 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5974 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5976 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5977 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5978 structure returning convention for SYSV ABI case, but not
5979 for GNU/Linux, FreeBSD, or NetBSD.
5981 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5983 * symtab.h (lookup_block_symbol): Add mangled_name argument
5986 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5987 with new mangled_name argument.
5988 * linespec.c (decode_line_1): Likewise.
5989 * valops (value_of_this): Likewise.
5990 * symtab.c (lookup_transparent_type): Likewise.
5991 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5992 (lookup_symbol): If we are given a mangled name, pass it down
5993 to lookup_symbol_aux.
5994 (lookup_block_symbol): If we are given a mangled name to check
5995 against, only return symbols which match it.
5997 2002-03-22 Christopher Faylor <cgf@redhat.com>
5999 * win32-nat.c (child_create_inferior): Check for proper shell to use
6000 here, in case the user changes it on the fly.
6001 (_initialize_inftarg): Remove shell path considerations.
6003 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6005 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6006 for gdbarch_max_register_raw_size and max_register_virtual_size.
6007 Adjust copyright year.
6009 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6011 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6012 in a function to cover the entire beginning of the function
6013 as well if it does not already.
6015 2002-03-21 Tom Rix <trix@redhat.com>
6017 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6018 (rs6000_ptrace64): Renamed from ptrace64.
6020 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6022 * gdbserver/remote-utils.c (remote_open): Don't call
6023 getprotobyname, we're all using TCP here so just use
6025 * gdbserver/gdbreplay.c (remote_open): Ditto.
6027 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6029 * regcache.c (_initialize_regcache): No need to call
6030 build_regcache() at this time; it gets called whenever
6031 the gdbarch changes.
6033 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6035 * sparc-nat.c: Include sys/param.h where possible.
6037 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6040 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6041 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6042 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6044 * stabsread.c (rs6000_builtin_type): Likewise.
6045 (read_sun_floating_type): Likewise.
6047 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6049 * stabsread.c (read_member_functions): Remove skip code for duplicate
6050 constructor/destructor methods. Use standard parsing for these
6051 methods and just do not chain them to the list of methods after
6054 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6056 * coffread.c: Remove redundant static declarations. Replace
6057 occurrences of `PTR' with `void *'.
6058 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6059 * top.h (quit_cover): Likewise.
6060 * defs.h (catch_errors): Likewise.
6062 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6064 * defs.h (XMALLOC): Define.
6065 * gdb-events.sh (XMALLOC): Delete macro.
6066 * gdb-events.c, gdb-events.h: Regenerate.
6067 * gdbarch.sh (XMALLOC): Delete macro.
6068 * gdbarch.c: Regenerate.
6069 * serial.c (XMALLOC): Delete macro.
6070 * ui-file.c (XMALLOC): Ditto.
6071 * ser-unix.h (XMALLOC): Ditto.
6072 * sh-tdep.c (XMALLOC): Ditto.
6073 * ui-out.c (XMALLOC): Ditto.
6074 * utils.c (XMALLOC): Ditto.
6075 * i386-tdep.c (XMALLOC): Ditto.
6076 * gdb-events.c (XMALLOC): Ditto.
6077 * d10v-tdep.c (XMALLOC): Ditto.
6078 * cli-out.c (XMALLOC): Ditto.
6080 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6081 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6082 * ui-file.c, ui-out.c: Ditto.
6084 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6086 * command.h (struct cmd_list_element): Add field context.
6087 (set_cmd_context, get_cmd_context): Declare.
6088 * cli/cli-decode.h: Ditto.
6089 * cli/cli-decode.c (get_cmd_context): New function.
6090 (set_cmd_context): New function.
6091 (add_cmd): Initialize context.
6092 Part of fixing PR gdb/145 and PR gdb/146.
6094 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6096 * cli/cli-decode.c (cmd_type): New function.
6097 * command.h (cmd_type): Declare.
6098 * infrun.c (set_schedlock_func): Call function cmd_type.
6099 * kod.c (kod_set_os): Call cmd_type.
6100 * cris-tdep.c (cris_version_update): Use function cmd_type.
6101 (cris_mode_update, cris_abi_update): Ditto.
6103 * command.h: (execute_cmd_post_hook): Declare.
6104 (execute_cmd_pre_hook): Declare.
6105 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6106 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6107 functions. Execute pre/post hook while ensuring that afterwords
6109 * top.c (execute_command): Use execute_cmd_post_hook, and
6110 execute_cmd_pre_hook to execute pre/post commands.
6111 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6113 (hook_stop_stub): Call execute_cmd_pre_hook.
6115 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6117 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6118 set'' and this leads to a core dump. Move xstrdup of
6119 operating_system to after check that it is not NULL.
6121 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6123 * kod.c (kod_set_os): Remove unnecessary check that
6124 ``command->type'' is set_cmd.
6126 * valprint.c (set_input_radix): Use input_radix.
6127 (set_output_radix): Use output_radix.
6128 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6131 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6133 * value.h (struct value): Delete field ``substring_addr''. Change
6134 aligner fields to force_doublest_align, force_longest_align,
6135 force_core_addr_align and force_pointer_aligh.
6137 * value.h (struct value): Fix typo in above change.
6139 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6141 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6142 to fix internal_error from ``maintenance print architecture''.
6144 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6146 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6147 for gcc versions after gcc-2.8.1.
6149 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6151 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6152 for method resolution. Restore adjustment of ``this'' pointer after
6153 calling value_struct_elt, which was accidentally removed during the
6156 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6158 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6160 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6162 * value.h (value_of_register): Update.
6164 2002-03-14 Richard Henderson <rth@redhat.com>
6166 * configure.in: Detect declaration for canonicalize_file_name.
6167 * utils.c (canonicalize_file_name): Declare, if needed.
6168 (gdb_realpath): Prefer realpath if available and usable.
6169 * config.in, configure: Rebuild.
6171 2002-03-14 Richard Henderson <rth@redhat.com>
6173 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6174 a constant array bound.
6176 * MAINTAINERS: Add myself to write-after-approval.
6178 2002-03-14 Michael Snyder <msnyder@redhat.com>
6180 * symfile.c (syms_from_objfile): Return immediately if no syms.
6181 (symbol_file_add): Return immediately if no syms.
6182 (find_sym_fns): Return immediately if no syms.
6184 2002-03-13 Michal Ludvig <mludvig@suse.cz>
6186 * gdbserver/remote-util.c (remote_open): Print remote-side's
6187 IP address when remote debugging over the network.
6189 2002-03-12 David O'Brien <obrien@FreeBSD.org>
6191 * config/sparc/fbsd.mh: Fix copyright.
6192 * config/sparc/fbsd.mt: Likewise.
6194 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
6196 * MAINTAINERS: Fix typo in name of gdb warnings option.
6197 (x86-64): Fix formating so that this can be parsed by awk.
6199 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6201 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6202 * defs.h: Include "gdb/signals.h".
6203 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6205 2002-03-10 Michal Ludvig <mludvig@suse.cz>
6207 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
6208 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
6211 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6212 Don Howard <dhoward@redhat.com>
6214 * mips-tdep.c (ST0_FR): Define.
6215 (mips2_fp_compat): New function, temporarily disabled.
6216 (mips_read_fp_register_single): New function.
6217 (mips_read_fp_register_double): New function.
6218 (mips_print_register): Use them.
6219 (do_fp_register_row): Likewise.
6221 2002-03-09 Andrew Cagney <ac131313@redhat.com>
6223 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6226 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6228 * stabsread.c (read_member_functions): Fix is_stub test for
6229 static member functions, improve comment.
6231 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6233 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6234 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6235 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6236 commands that set boolean values.
6237 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6238 (arm_rdi_resume): Always initialize PC.
6239 (arm_rdi_open): Don't use rslt as a boolean.
6240 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6241 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6242 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6243 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6245 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
6247 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6248 * configure: Rebuilt.
6250 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6252 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6253 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6255 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6257 * cli/cli-decode.c (set_cmd_completer): New function.
6258 * command.h (set_cmd_completer): Declare.
6259 * cli/cli-decode.h (set_cmd_completer): Ditto.
6261 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6262 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6263 * win32-nat.c (_initialize_inftarg): Ditto.
6264 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6265 * proc-api.c (_initialize_proc_api): Ditto.
6266 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6267 * source.c (_initialize_source): Ditto.
6268 * exec.c (_initialize_exec): Ditto.
6269 * solib.c (_initialize_solib): Ditto.
6270 * top.c (init_main): Ditto.
6271 * tracepoint.c (_initialize_tracepoint): Ditto.
6272 * symfile.c (_initialize_symfile): Ditto.
6273 * printcmd.c (_initialize_printcmd): Ditto.
6274 * infcmd.c (_initialize_infcmd): Ditto.
6275 * corefile.c (_initialize_core): Ditto.
6277 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6279 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6281 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6283 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6285 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6287 * NEWS: Update headings, 5.2 has branched.
6289 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6291 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6292 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6293 (register_addr, REGISTER_RAW_SIZE): Likewise.
6294 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6295 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6297 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6299 * MAINTAINERS (x86-64): Add myself.
6300 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6301 changed value_ptr -> struct value *
6303 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6305 * configure.host (sparc64-*-freebsd): Add.
6306 * configure.tgt: Likewise.
6307 * config/sparc/fbsd.mh: New file.
6308 * config/sparc/fbsd.mt: Likewise.
6309 * config/sparc/nm-fbsd.h: Likewise.
6310 * config/sparc/tm-fbsd.h: Likewise.
6312 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6314 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6315 regformats/reg-s390x.dat.
6317 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6319 * utils.c: Add FIXME explaining true/false problem.
6321 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6323 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6325 2002-02-28 Michael Chastain <mec@shout.net>
6327 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6329 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6331 * gdbserver/linux-s390-low.c: New file.
6332 * regformats/reg-s390.dat: New file.
6333 * regformats/reg-s390x.dat: New file.
6334 * gdbserver/configure.srv: Add S/390.
6335 * gdbserver/Makefile.in: Add S/390.
6336 * configure.tgt: Enable gdbserver for S/390.
6338 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6340 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6341 first line of the doc string for "info dos", except at the end of
6342 the sentence, since the short help stops at the first period.
6344 2002-02-28 Jason Merrill <jason@redhat.com>
6346 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6348 2002-02-27 Fred Fish <fnf@redhat.com>
6350 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6351 comment (dumy -> dummy).
6353 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6355 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6357 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6359 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6361 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6363 * gdbserver/acconfig.h: New file.
6364 * gdbserver/i387-fp.c: New file.
6365 * gdbserver/i387-fp.h: New file.
6366 * gdbserver/linux-x86-64.c: New file.
6367 * regformats/reg-x86-64.dat: New file.
6368 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6369 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6370 * gdbserver/configure.in: Add support for regsets.
6371 * gdbserver/config.in: Regenerate.
6372 * gdbserver/configure: Regenerate.
6373 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6374 * gdbserver/linux-low.h: New file.
6375 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6377 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6378 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6379 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6380 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6381 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6382 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6383 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6384 "i387-fp.h". Add PTRACE_GETREGS and friends.
6385 * gdbserver/regcache.c (supply_register): New function.
6386 (supply_register_by_name): New function.
6387 (collect_register): New function.
6388 (collect_register_by_name): New function.
6390 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6392 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6393 (config.status): Add configure.srv dependency.
6394 (server_h): Add config.h dependency.
6396 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6398 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6399 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6400 * gdbserver/configure.srv: Change i386-*-linux* to use
6403 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6405 * x86-64-tdep.c: Re-indent. Update copyright date.
6407 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6409 From Michal Ludvig <mludvig@suse.cz>:
6410 * x86-64-tdep.c (value.h): Delete.
6411 (gdb_assert.h): Include.
6412 (x86_64_register_convert_to_virtual,
6413 x86_64_register_convert_to_raw ): Add check which lets only
6414 floating-point values to be converted.
6415 (value_push): Delete.
6416 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6417 (i386_gdbarch_init): Number of register_bytes fixed.
6419 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6421 * MAINTAINERS: Add x86-64 target.
6423 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6425 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6426 * osfsolib.c (solib_map_sections): Ditto.
6427 * irix5-nat.c (solib_map_sections): Ditto.
6428 * corelow.c (gdb_check_format): Ditto.
6429 * symfile.c (symfile_bfd_open): Ditto.
6430 * solib.c (solib_map_sections): Ditto.
6433 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6435 * remote.c (_initialize_remote): By default, disable ``e'' and
6436 ``E'' step out-of-range packets.
6438 2002-02-26 Andreas Schwab <schwab@suse.de>
6440 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6441 m68k_linux_frame_saved_pc.
6442 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6444 (SIGCONTEXT_PC_OFFSET): Remove.
6445 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6446 m68k_linux_sigtramp_saved_pc): New functions.
6447 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6448 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6449 (UCONTEXT_PC_OFFSET): Define.
6450 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6451 non-RT and RT signal trampolines.
6453 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6455 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6456 (TARGET_NBPG, STACK_END_ADDR): Delete
6457 (VARIABLES_INSIDE_BLOCK): Delete.
6459 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6461 * utils.c (perror_with_name): Make string parameter constant.
6462 (print_sys_errmsg): Ditto.
6464 * defs.h (perror_with_name): Update.
6465 (print_sys_errmsg): Update.
6468 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6470 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6471 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6473 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6475 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6476 if it already matches the current architecture from the exec file.
6477 Include arch-utils.h for gdbarch_info_init prototype.
6478 * Makefile.in (rs6000-nat.o): Update dependencies.
6480 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6482 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6483 list of exported variables.
6485 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6487 * gdbserver/configure.srv: New file.
6488 * gdbserver/configure.in: Use configure.srv instead
6489 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6491 * gdbserver/configure: Regenerated.
6492 * gdbserver/terminal.h: New file.
6493 * gdbserver/Makefile.in: Update for configure changes. Remove
6494 more unneeded include paths.
6496 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6498 From wiz at danbala:
6499 * config/sparc/tm-sp64.h: Fix grammar and typos.
6502 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6504 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6505 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6506 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6507 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6508 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6509 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6510 * s390-tdep.c: Ditto.
6511 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6512 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6513 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6514 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6515 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6516 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6517 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6518 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6519 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6520 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6523 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6525 * lin-thread.c: Delete file.
6526 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6527 to gdb_proc_service.h.
6528 * configure: Re-generate.
6530 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6531 * serial.c (serial_open): Delete check for "ocd".
6534 * Makefile.in (linux-thread.o): Delete target.
6535 * linux-thread.c: Delete file.
6537 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6538 renamed SH files to be consistent.
6540 * symtab.c (sort_search_symbols): Use xfree.
6542 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6544 * arm-linux-tdep.c (arm_linux_init_abi): Register
6545 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6546 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6547 definition with undef, since we don't want the sysvr4 definition.
6548 (SKIP_TRAMPOLINE_CODE): Likewise.
6550 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6552 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6554 * configure.in: (AC_CHECK_FUNCS) Added test for
6555 canonicalize_file_name Regenerated.
6556 * config.in, configure: Regenerated.
6557 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6558 defined use canonicalize_file_name.
6560 2002-02-23 Michael Chastain <mec@shout.net>
6562 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6564 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6566 * README: Remove references to cygnus.com.
6567 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6568 dot com'' form. Remove references to cygnus.com and sourceware.
6570 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6572 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6573 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6574 1003.1-2001 no longer allows "head -1".
6575 * gdb/Makefile.in (version.c): Likewise.
6576 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6577 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6578 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6580 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6582 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6583 * command.h (cmd_cfunc_eq): Declare.
6584 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6586 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6587 ``struct cmd_list_element *''.
6588 * cli/cli-cmds.c (is_complete_command): Update. Use
6590 * top.c (execute_command): Pass the command to
6591 is_complete_command.
6592 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6594 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6596 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6597 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6598 architecture defines.
6599 * s390-tdep.c (s390_gdbarch_init): Likewise.
6601 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6603 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6604 (arm_linux_push_arguments): Likewise.
6605 (arm_linux_init_abi): Register them. Also register linux-specific
6607 (find_minsym_and_objfile): Use strcmp, not STREQ.
6608 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6609 (arm_linux_call_dummy_words): Delete declaration.
6610 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6611 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6613 (LOWEST_PC): Delete.
6615 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6617 * maint.c (print_section_info): Do not prepend `0x' to filepos
6618 output, it will be handled by local_hex_string_custom.
6620 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6622 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6623 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6624 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6626 2002-02-22 Jim Blandy <jimb@redhat.com>
6628 Indicate that the bcache functions don't change the strings
6630 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6631 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6633 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6635 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6637 2002-02-21 Christopher Faylor <cgf@redhat.com>
6639 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6640 find the complete path to a loaded DLL.
6642 2002-02-21 Fred Fish <fnf@redhat.com>
6644 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6645 that marks the end of the range of a function, enter a line number
6646 entry that has a line number of zero and a PC offset that matches
6647 the end of the function. This starts a range of PC's for which no
6648 line number information is known.
6649 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6650 PC's for which no line number info is found (line number is zero)
6651 then we didn't find any valid line information.
6652 * symtab.h: Document use of zero line number entry.
6654 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6656 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6657 (have_ptrace_getvrregs): Define for run time checks.
6658 (gdb_vrregset_t): New type for Altivec register handling.
6659 (fetch_register, store_register): Fetch/store altivec register
6661 (fetch_altivec_register, store_altivec_register): New functions.
6662 (supply_vrregset, fill_vrregset): New functions.
6663 (fetch_altivec_registers, store_altivec_registers): New functions.
6664 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6667 2002-02-21 Jiri Smid <smid@suse.cz>
6669 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6671 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6673 * Makefile.in (armnbsd-nat.o): Update dependencies.
6674 * armnbsd-nat.c (supply_gregset): New function. Common code to
6675 supply the integer register set.
6676 (supply_fparegset): New function. Similar for FPA registers.
6677 (fetch_regs, fetch_fp_regs): Use them.
6678 (fetch_core_registers): Likewise.
6679 (fetch_elfcore_registers): New function.
6680 (arm_netbsd_elfcore_fns): New core-file type specification.
6681 (_initialize_arm_netbsd_nat): Register it.
6683 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6685 * armnbsd-nat.c: Include gdbcore.h.
6686 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6687 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6688 'void' to declaration, to shut up ARI.
6689 (fetch_core_registers): Make static. Rewrite using supply_register.
6690 (arm_netbsd_core_fns): New core-file type specification.
6691 (_initialize_arm_netbsd_nat): New function.
6693 2002-02-21 Christopher Faylor <cgf@redhat.com>
6695 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6698 2002-02-20 Christopher Faylor <cgf@redhat.com>
6700 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6703 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6705 * jv-exp.y (parse_number): Change type of implicit longs
6706 to builtin_type_uint64.
6708 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6710 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6711 to be an integer instead of a `union wait'.
6713 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6715 * mips-linux-nat.c: Call the operating system GNU/Linux.
6716 * mips-linux-tdep.c: Likewise.
6717 * mips-tdep.c: Likewise.
6719 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6722 * jv-exp.y (parse_number): Handle 64-bit integers.
6724 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6726 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6727 AC_STDC_HEADERS to AC_HEADER_STDC.
6728 * gdbserver/configure: Regenerated.
6730 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6732 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6734 * sparc-tdep.c (get_longjmp_target): Likewise.
6736 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6738 * News: Add news about ARM and Multi-arch. Mention the new target
6741 2002-02-19 Jim Blandy <jimb@redhat.com>
6743 * stabsread.c (error_type_complaint): Improve error message.
6745 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6747 * gdbserver/README: Update documentation.
6748 * gdbserver/configure.in: Update configury to match documentation.
6749 * gdbserver/Makefile.in: Likewise.
6750 * gdbserver/configure: Regenerated.
6751 * gdbserver/aclocal.m4: New file, generated by aclocal.
6752 * gdbserver/config.in: New file, generated by autoheader.
6754 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6756 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6759 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6761 * arm-tdep.h (enum arm_float_model): New enum.
6762 (struct gdbarch_tdep): Add fp_model.
6763 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6764 up floating-point conversions until we know the floating-point model
6765 in use by the inferior. Don't complain about being unable to
6766 determine the ABI of the inferior when we don't have one.
6767 (arm_extract_return_value): Support different floating-point models.
6768 (arm_store_return_value): Likewise.
6769 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6771 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6773 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6775 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6776 of ``current_gdbarch''.
6778 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6780 * armnbsd-nat.c : ANSIfy all function declarations.
6781 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6782 (fetch_inferior_registers): Re-implement in terms of above.
6783 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6784 (store_inferior_registers): Re-implement in terms of above.
6786 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6788 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6790 * arm-linux-tdep.c: Likewise.
6791 * config/arm/tm-linux.h: Likewise.
6793 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6795 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6796 * config/arm/nbsd.mt (TM_FILE): Delete.
6797 * config/arm/tm-nbsd.h: Delete.
6799 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6801 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6802 Initialize CALL_DUMMY_LENGTH.
6804 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6806 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6808 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6809 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6810 defines one thing and that is incorrect for this port.
6811 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6813 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6815 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6817 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6819 * win32-nat.c (display_selector): New function. Displays information
6820 about the information returned by GetThreadSelectorEntry API function.
6821 (display_selectors): New function. Displays the infomation of
6822 the selector given as argument, or of CS, DS ans FS selectors
6823 if no argument is given.
6824 ( _initialize_inftarg): Add "w32" as info prefix command.
6825 Add "info w32 selector" as command calling display_selectors.
6827 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6829 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6830 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6833 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6835 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6837 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6839 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6840 (arm_fix_call_dummy): Call it.
6841 (arm_call_dummy_breakpoint_offset): Delete.
6842 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6843 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6845 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6847 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6848 Default to func_frame_chain_valid.
6849 * gdbarch.h, gdbarch.c: Re-generate.
6850 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6852 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6854 * ppc-linux-nat.c: Update copyright.
6855 (fetch_register, store_register): Add tid parameter, don't compute
6857 (fetch_ppc_registers, store_ppc_registers): Add tid
6858 parameter. Pass it along to callees.
6859 (fetch_inferior_registers, store_inferior_registers): Compute tid
6860 here, and pass it to calleed functions.
6861 (fill_gregset, supply_fpregset): Clean up formatting.
6863 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6865 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6866 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6868 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6870 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6871 * gdbarch.c gdbarch.h: Regenerate.
6872 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6874 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6875 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6876 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6878 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6879 * arm-tdep.c (arm_get_longjmp_target): New function.
6880 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6881 this to a positive value register arm_get_longjmp_target as the
6883 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6884 (arm_linux_init_abi): Set up longjmp description in tdep.
6885 * armnbsd-nat.c (get_longjmp_target): Delete.
6886 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6887 description in tdep.
6888 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6889 (get_longjmp_target): Delete declaration.
6890 (GET_LONGJMP_TARGET): Delete.
6891 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6892 (GET_LONGJMP_TARGET): Delete.
6894 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6896 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6897 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6898 of ``current_gdbarch''.
6900 2002-02-17 Tom Tromey <tromey@redhat.com>
6902 * cli/cli-cmds.c (compare_strings): New function.
6903 (complete_command): Only print each unique item once.
6904 * completer.h (complete_line): Declare.
6905 * completer.c (complete_line): New function.
6906 (line_completion_function): Use it.
6908 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6910 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6911 * gdbarch.h, gdbarch.c: Re-generate.
6913 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6915 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6917 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6919 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6920 * valops.c (value_arg_coerce): Don't take the address of a reference
6921 to convert an argument to a reference.
6923 2002-02-15 Christopher Faylor <cgf@redhat.com>
6925 * win32-nat.c (get_image_name): New function.
6926 (handle_load_dll): Use get_image_name function.
6927 (get_child_debug_event): Avoid registering debug events until possibly
6928 execed process is started.
6929 (child_create_inferior): Allow invocation via shell so that command
6930 line redirection, etc. works ok.
6931 (_initialize_inftarg): Add new command: "set shell" to control whether
6932 a shell is used to start a process.
6934 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6936 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6937 instead of find_register_by_number.
6938 (cannot_store_register): Likewise.
6940 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6942 * dwarf2read.c: Replace fprintf (stderr, ...) by
6943 fprintf_unfiltered (gdb_stderr, ...).
6945 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6947 * gdbserver/gdbserver.1: Document --attach.
6949 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6951 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6953 * arm-tdep.c (arm_default_arm_le_breakpoint)
6954 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6955 (arm_default_thumb_be_breakpoint): New. Initialize them from
6956 traditional breakpoint defines.
6957 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6958 (arm_gdbarch_init): Initialize new breakpoint variables.
6959 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6960 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6961 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6962 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6964 (arm_netbsd_init_abi_common): ... here; new function.
6965 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6966 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6967 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6968 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6970 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6972 * arm-tdep.h (enum arm_abi): New enum.
6973 (struct gdbarch_tdep): New structure.
6974 (LOWEST_PC): Provide a default.
6975 (arm_gdbarch_register_os_abi): Declare new function.
6976 * arm-tdep.c (arm_abi_names): New array.
6977 (process_note_abi_tag_sections): New function.
6978 (get_elfosabi): New function.
6979 (arm_gdbarch_register_os_abi): New function.
6980 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6981 support for that ABI has been built in, then call the appropriate
6982 configuration routine. Use gdbarch_num_regs() to get the number
6984 (arm_dump_tdep): New function.
6985 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6986 place-holder functions.
6987 (_initialize_arm_tdep): Register them.
6988 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6990 * armnbsd-tdep.c: New file.
6991 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6992 * config/arm/nbsd.mt (TDEPFILES): Add it.
6993 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6995 * armnbsd-nat.c: Include regcache.h.
6996 * Makefile.in (armnbsd-nat.o): Update dependency list.
6998 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7000 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7002 * gdbserver/Makefile.in: Fix typos in target rules.
7004 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7006 Fix part of PR gdb/267.
7007 * linespec.c (find_methods): Handle constructors specially for now.
7009 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7011 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7013 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7014 standard_coerce_float_to_double().
7016 2002-02-14 Christopher Faylor <cgf@redhat.com>
7018 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7021 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7023 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7024 find_variant_by_name, because it confuses the multiarch
7025 framework. Return NULL if there isn't an architecture with the
7026 user supplied name, instead of forcing a different one without
7027 recording the change with the multiarch machinery.
7028 (find_variant_by_name): Delete.
7030 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7032 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7033 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7035 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7037 * stack.c (print_frame_info_base): When calling
7038 print_frame_info_listing_hook, set current_source_symtab.
7040 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7042 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7043 and remove unused $(INCLUDE_DIR).
7044 Add regcache.c to OBS.
7045 Add generated register protocol files to clean target.
7046 Update dependencies for new objects, obsolete old target code.
7048 * gdbserver/linux-low.c: Remove all platform-specific code to
7049 new files. Remove various dead code. Update to use regcache
7051 * gdbserver/remote-utils.c (fromhex): Add return statement
7053 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7055 (input_interrupt): Add integer parameter to match prototype
7056 of a signal handler.
7057 (outreg): Use register_data ().
7058 (prepare_resume_reply): Use gdbserver_expedite_regs.
7059 * gdbserver/server.c (main): Dynamically allocate own_buf because
7060 PBUFSIZ is no longer constant. Use registers_to_string () and
7061 registers_from_string ().
7062 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7063 for error (), fatal (), and warning (). Update definition of
7064 PBUFSIZ to use regcache functionality. Add include guard.
7065 * gdbserver/utils.c (fatal): Add missing ``const''.
7066 (warning): New function.
7068 * regformats/regdat.sh: Include "regcache.h" in generated files.
7069 Provide init_registers () function.
7070 * regformats/regdef.h: Add prototype for set_register_cache ().
7073 * gdbserver/linux-arm-low.c: New file.
7074 * gdbserver/linux-i386-low.c: New file.
7075 * gdbserver/linux-ia64-low.c: New file.
7076 * gdbserver/linux-m68k-low.c: New file.
7077 * gdbserver/linux-mips-low.c: New file.
7078 * gdbserver/linux-ppc-low.c: New file.
7079 * gdbserver/linux-sh-low.c: New file.
7081 * gdbserver/regcache.c: New file.
7082 * gdbserver/regcache.h: New file.
7084 * gdbserver/low-linux.c: Removed obsolete file.
7086 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7088 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7089 * config/i386/linux.mt: Likewise.
7090 * config/ia64/linux.mt: Likewise.
7091 * config/m68k/linux.mh: Likewise.
7092 * config/powerpc/linux.mh: Likewise.
7093 * config/mips/linux.mt: Likewise.
7095 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7097 * config/i386/i386lynx.mh: Mark gdbserver variables
7098 as (currently) obsolete for this target.
7099 * config/i386/nbsd.mt: Likewise.
7100 * config/i386/nbsdelf.mt: Likewise.
7101 * config/m32r/m32r.mt: Likewise.
7102 * config/m68k/m68klynx.mh: Likewise.
7103 * config/m68k/nbsd.mt: Likewise.
7104 * config/m68k/sun3os4.mh: Likewise.
7105 * config/mips/vr5000.mt: Likewise.
7106 * config/ns32k/nbsd.mt: Likewise.
7107 * config/pa/hppabsd.mh: Likewise.
7108 * config/pa/hppaosf.mh: Likewise.
7109 * config/powerpc/nbsd.mt: Likewise.
7110 * config/rs6000/rs6000lynx.mh: Likewise.
7111 * config/s390/s390.mt: Likewise.
7112 * config/s390/s390x.mt: Likewise.
7113 * config/sparc/sparclynx.mh: Likewise.
7114 * config/sparc/sun4os4.mh: Likewise.
7115 * config/i386/x86-64linux.mt: Likewise.
7116 * config/sparc/linux.mh: Likewise.
7118 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7120 * configure.tgt: Configure gdbserver only for known working
7121 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7122 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7123 SUBDIRS if it is configured. Update comment for ${nativefile}.
7124 * configure: Regenerated.
7126 2002-02-13 Michael Snyder <msnyder@redhat.com>
7128 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7130 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7131 (default_gcore_mach): Just return 0, work around a problem in bfd.
7132 (default_gcore_target): OK to return NULL if exec_bfd is null.
7133 (make_mem_sec): Use a cast, avoid a warning.
7135 * procfs.c (find_memory_regions_callback): Use a cast instead of
7136 calling host_pointer_to_address (which complains if
7137 sizeof (host pointer) != sizeof (target pointer)).
7138 (procfs_make_note_section): Avoid overflow in psargs string.
7140 * procfs.c (procfs_make_note_section): Make the default
7141 implementation return an error.
7143 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7145 * procfs.c (procfs_make_note_section): Provide a default definition
7146 (for alpha-dec-osf4.0f). Fix typos.
7148 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7150 * linux-proc.c: Add include of regcache.h.
7151 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7153 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7155 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7156 * memattr.c (create_mem_region): Disallow useless empty region.
7157 Regions are half-open intervals, so allow [A..B) [B..C) as
7160 2002-02-13 Michael Chastain <mec@shout.net>
7162 * defs.h: Kill CONST_PTR.
7163 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7164 * c-lang.c (c_builtin_types): Likewise.
7165 * ch-lang.c (ch_builtin_types): Likewise.
7166 * f-lang.c (f_builtin_types): Likewise.
7167 * language.c (unknown_builtin_types): Likewise.
7168 * m2-lang.c (m2_builtin_types): Likewise.
7169 * p-lang.c (pascal_builtin_types): Likewise.
7170 * scm-lang.c (c_builtin_types): Likewise.
7172 2002-02-13 Keith Seitz <keiths@redhat.com>
7174 * arm-tdep.h (arm_get_next_pc): Add declaration.
7176 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
7178 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7179 with other related struct-returning functions.
7180 (arm_extract_struct_value_address): New function.
7181 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7182 initialize float_format, double_format and long_double_format as
7183 appropriate to the endianness of the target.
7184 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7185 (arm_use_struct_convention): Delete declaration.
7186 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7188 2002-02-13 Keith Seitz <keiths@redhat.com>
7190 * defs.h (core_addr_to_string_nz): New function.
7192 2002-02-13 Mark Kettenis <kettenis@gnu.org>
7194 Apply missing bits of 2002-01-15 patch.
7195 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7196 (fill_fpregset): Use i387_fill_fsave.
7198 2002-02-12 Keith Seitz <keiths@redhat.com>
7200 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7201 (core_addr_to_string_nz): New function.
7203 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7205 * arm-linux-nat.c: Really include arm-tdep.h.
7206 * config/arm/tm-linux.h (struct type, struct value): Declare.
7208 2002-02-11 Michael Snyder <msnyder@redhat.com>
7210 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7211 (gcore section): Ifdef for Solaris and Unixware only.
7212 (procfs_do_thread_registers): Unixware needs one lwpstatus
7213 per thread (not one prstatus or pstatus).
7214 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7215 not over all gdb threads. For unixware, call elfcore_write_pstatus
7216 once before iterating over threads.
7218 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7220 * arm-tdep.h: New file.
7221 * arm-tdep.c: Include arm-tdep.h.
7222 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7223 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7224 (arm_print_float_info, arm_register_type, convert_to_extended)
7225 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7226 (arm_extract_return_value, arm_register_name): Make static.
7227 (arm_software_single_step): Similarly. Fix types in declaration.
7228 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7229 (arm_store_return_value, arm_store_struct_return): New functions.
7230 (arm_gdbarch_init): Register the above functions. Also register
7231 call_dummy_start_offset, sizeof_call_dummy_words,
7232 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7233 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
7234 max_register_virtual_size, register_size. Set up
7235 prologue_cache.saved_regs here, rather than ...
7236 (_initialize_arm_tdep): ... here.
7237 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7239 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7240 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7241 (arm_print_float_info, arm_register_type, convert_to_extended)
7242 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7243 (arm_extract_return_value, arm_register_name): Delete declarations.
7244 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7245 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7246 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7247 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7248 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7249 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7250 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7251 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7252 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7253 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7254 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7255 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7257 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7258 * remote-rdi.c remote-rdp.c: Likewise.
7259 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7260 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7261 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7264 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7265 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7266 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7267 from non-ARM_ prefixed definitions.
7268 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7270 * remote-rdi.c remote-rdp.c: Likewise.
7271 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7273 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7275 * arm-tdep.c (arm_frameless_function_invocation)
7276 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7277 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7278 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7279 (arm_pop_frame, arm_get_next_pc): Make static.
7280 (arm_gdbarch_init): Register above in gdbarch structure.
7281 (arm_read_fp): Renamed from arm_target_read_fp.
7282 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7283 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7284 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7285 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7286 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7287 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7288 (arm_pc_is_thumb_dummy): Delete declarations.
7289 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7290 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7291 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7292 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7294 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7296 * symtab.c (compare_search_syms): New function.
7297 (sort_search_symbols): New function.
7298 (search_symbols): Sort symbols after searching rather than
7301 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7303 * NEWS: Linux -> GNU/Linux.
7305 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7307 * gdbarch.sh: For for level one methods, disallow a definition
7308 when partially multi-arched. Add comments explaining rationale.
7309 * gdbarch.h: Re-generate.
7311 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7313 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7316 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7318 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7320 * gdbarch.c: Re-generate.
7322 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7324 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7325 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7328 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7330 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7332 (PUSH_ARGUMENTS): Switch to using predefault.
7333 * gdbarch.c: Regenerate.
7335 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7337 * valops.c (PUSH_ARGUMENTS): Delete definition.
7338 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7339 partial. Default to default_push_arguments.
7340 * gdbarch.h, gdbarch.c: Regenerate.
7342 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7344 * defs.h (throw_exception): Rename return_to_top_level. Update
7346 * utils.c (error_stream, internal_verror, quit): Ditto.
7347 * top.c (throw_exception, catcher): Ditto.
7348 * sparclet-rom.c (sparclet_load): Ditto.
7349 * remote.c (interrupt_query, minitelnet): Ditto.
7350 * remote-sds.c (interrupt_query): Ditto.
7351 * remote-mips.c (mips_error, mips_kill): Ditto.
7352 * ocd.c (interrupt_query): Ditto.
7353 * monitor.c (monitor_interrupt_query): Ditto.
7354 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7355 * target.h: Update comment.
7357 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7359 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7361 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7362 default_double_format.
7363 * gdbarch.h, gdbarch.c: Re-generate.
7364 * findvar.c (floatformat_unknown): Delete variable definition.
7365 * doublest.h (floatformat_unknown): Delete variable declaration.
7367 2002-02-09 Jim Blandy <jimb@redhat.com>
7369 * stabsread.c (read_type): Add code to parse Sun's syntax for
7370 prototyped function types.
7372 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7374 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7375 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7377 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7379 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7380 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7381 now _initialize_xcoffsolib gets called again and overrides the
7382 commands from solib.c in a native configuration.
7384 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7386 * doublest.c (store_typed_floating): Don't try to return a value.
7389 2002-02-08 Jim Blandy <jimb@redhat.com>
7391 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7392 is prototyped and has no arguments, print its argument list as
7395 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7397 * MAINTAINERS (write-after-approval): Add myself.
7398 (paper-trail): I've escaped!
7400 2002-02-08 Christopher Faylor <cgf@redhat.com>
7402 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7404 (_initialize_check_for_gdb_ini): Ditto.
7406 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7408 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7409 xaprintf -> xasprintf.
7411 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7413 * win32-nat.c: Remove use of printf and sprintf functions.
7415 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7417 * arm-tdep.c (arm_frame_chain_valid): Make static.
7418 (arm_push_arguments): Likewise.
7419 (arm_gdbarch_init): New function.
7420 (_initialize_arm_tdep): Call it.
7421 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7422 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7423 (FRAME_CHAIN_VALID): Delete.
7424 (arm_frame_chain_valid): Delete declaration.
7425 (PUSH_ARGUMENTS): Delete.
7426 (arm_push_arguments): Delete declaration.
7427 (CALL_DUMMY_P): Delete.
7429 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7430 Corinna Vinschen <vinschen@redhat.com>
7432 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7433 on builtin float types.
7435 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7437 * utils.c: Include <curses.h> before "bfd.h".
7438 * tui/tui-hooks.c: Likewise.
7439 * tui/tui.c: Likewise.
7440 * tui/tuiCommand.c: Likewise.
7441 * tui/tuiData.c: Likewise.
7442 * tui/tuiDataWin.c: Likewise.
7443 * tui/tuiDisassem.c: Likewise.
7444 * tui/tuiGeneralWin.c: Likewise.
7445 * tui/tuiIO.c: Likewise.
7446 * tui/tuiLayout.c: Likewise.
7447 * tui/tuiRegs.c: Likewise.
7448 * tui/tuiSource.c: Likewise.
7449 * tui/tuiSourceWin.c: Likewise.
7450 * tui/tuiStack.c: Likewise.
7451 * tui/tuiWin.c: Likewise.
7453 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7455 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7456 to include space for pseudoregs as well. Update loops accordingly.
7457 (sh_fp_frame_init_saved_regs): Ditto.
7458 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7460 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7462 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7463 Add Richard Earnshaw to Arm maintainers.
7465 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7467 * defs.h (warning_begin): Delete declaration.
7469 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7472 2002-02-07 Michael Snyder <msnyder@redhat.com>
7474 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7475 Logic bug, remove misplaced else.
7477 2002-02-07 Klee Dienes <klee@apple.com>
7479 * fork-inferior.c (fork_inferior): Add '!' to the list of
7480 characters that need to be quoted when building a string for the
7481 shell. Quote '!' specifically with a backslash, since CSH chokes
7482 when trying to evaluate "str!str".
7484 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7486 * rdi-share/host.h: Only provide a typedef for bool if it is not
7489 2002-02-04 Michael Snyder <msnyder@redhat.com>
7491 * breakpoint.h (enum bptype): Add new overlay event bp type.
7492 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7494 * breakpoint.c (create_internal_breakpoint): New function.
7495 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7496 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7497 (create_thread_event_breakpoint): Ditto.
7498 (create_solib_event_breakpoint): Ditto.
7499 (create_overlay_event_breakpoint): New function.
7500 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7501 (update_breakpoints_after_exec): Delete and re-initialize
7502 overlay event breakpoints after an exec. Add FIXME comment
7503 about longjmp breakpoint.
7504 (print_it_typical): Ignore overlay event breakpoints.
7505 (print_one_breakpoint): Ditto.
7507 (bpstat_what): Do not stop for overlay event breakpoints.
7508 (delete_breakpoint): Don't delete overlay event breakpoints.
7509 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7510 (breakpoint_re_set): Re-create overlay event breakpoint.
7512 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7513 (overlay_manual_command): Disable overlay breakpoints.
7514 (overlay_off_command): Disable overlay breakpoints.
7516 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7518 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7519 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7520 to here from config/tm-arm.h.
7521 (coff_sym_is_thumb): Make static.
7522 (arm_elf_make_msymbol_special): New function.
7523 (arm_coff_make_msymbol_special): New function.
7524 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7525 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7526 (coff_sym_is_thumb): Delete declaration.
7527 (arm_elf_make_msymbol_special): Declare.
7528 (arm_coff_make_msymbol_special): Declare.
7529 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7530 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7532 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7534 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7536 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7538 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7539 * gdbarch.c gdbarch.h: Regenerate.
7540 * arch-utils.c (default_print_float_info): New function.
7541 * arch-utils.h (default_print_float_info): Prototype it.
7542 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7543 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7544 (PRINT_FLOAT_INFO): Document it.
7546 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7547 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7548 (PRINT_FLOAT_INFO): Define.
7550 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7552 * win32-nat.c (_initialize_check_for_gdb_ini):
7553 Add typecast to sprintf argument to suppress a warning.
7555 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7557 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7558 to allow easier handling of pass state.
7559 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7560 that gives exception name and address.
7561 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7562 and set last_sig value to ourstatus->value.sig. Some missing
7564 (child_continue): Correctly report continue_status.
7565 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7566 TARGET_SIGNAL_0 (new default value).
7567 (child_resume): consider sig argument passed to decide if
7568 the exception should be passed to debuggee or not.
7570 2002-02-05 Michael Snyder <msnyder@redhat.com>
7572 * regcache.c (fetch_register): Call target_fetch_register
7573 only if we don't call FETCH_PSEUDO_REGISTER.
7574 (store_register): Call target_store_register only if we
7575 don't call STORE_PSEUDO_REGISTER.
7577 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7579 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7580 ELF_MAKE_MSYMBOL_SPECIAL.
7581 * gdbarch.c, gdbarch.h: Regenerate.
7582 * arch-utils.c (default_make_msymbol_special): New function.
7583 * arch-utils.h (default_make_msymbol_special): Export.
7584 * elfread.c (elf_symtab_read): Compile use of
7585 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7587 * coffread.c (coff_symtab_read): Ditto, for
7588 COFF_MAKE_MSYMBOL_SPECIAL.
7590 2002-02-05 Jim Blandy <jimb@redhat.com>
7592 * solib-svr4.c (svr4_truncate_ptr): New function.
7593 (svr4_relocate_section_addresses): Do the address arithmetic with
7594 the appropriate truncation for target addresses, even when
7595 CORE_ADDR is larger than a target address.
7597 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7599 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7602 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7604 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7607 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7609 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7611 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7613 * gdbserver/linux-low.c: Remove unused include files.
7615 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7617 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7618 (read_inferior_memory): Use it.
7619 (write_inferior_memory): Likewise.
7621 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7623 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7624 grubbing through sys_errlist.
7626 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7628 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7630 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7631 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7633 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7635 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7636 (do_sfunc, set_cmd_sfunc): New functions.
7638 * command.h (struct cmd_list_element): Add field func.
7639 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7640 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7641 * cli/cli-decode.h: Ditto.
7643 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7644 (help_all, help_cmd_list): Ditto.
7645 (find_cmd, complete_on_cmdlist): Ditto.
7646 * top.c (execute_command): Ditto.
7648 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7651 * infcmd.c (notice_args_read): Fix function signature.
7653 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7654 * cli/cli-decode.c (add_set_cmd): Ditto.
7655 * utils.c (initialize_utils): Ditto.
7656 * maint.c (_initialize_maint_cmds): Ditto.
7657 * infrun.c (_initialize_infrun): Ditto.
7658 * demangle.c (_initialize_demangler): Ditto.
7659 * remote.c (add_packet_config_cmd): Ditto.
7660 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7661 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7662 * proc-api.c (_initialize_proc_api): Ditto.
7663 * kod.c (_initialize_kod): Ditto.
7664 * valprint.c (_initialize_valprint): Ditto.
7665 * top.c (init_main): Ditto.
7666 * infcmd.c (_initialize_infcmd): Ditto.
7667 * corefile.c (_initialize_core): Ditto.
7668 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7669 * arch-utils.c (initialize_current_architecture): Ditto.
7670 (_initialize_gdbarch_utils): Ditto.
7671 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7673 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7674 * wince.c (_initialize_inftarg): Ditto.
7675 * symfile.c (_initialize_symfile): Ditto.
7676 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7677 * language.c (_initialize_language): Ditto.
7678 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7680 2002-02-04 Michael Snyder <msnyder@redhat.com>
7682 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7684 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7686 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7687 Add rules for building the register data files.
7689 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7691 * regformats/regdat.sh: Add braces to the definition of
7692 expedite_regs_${arch}.
7694 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7696 * regformats/regdef.h (struct reg): Add comment describing the
7697 requirements for offset and size fields.
7699 2002-02-04 Andreas Schwab <schwab@suse.de>
7701 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7702 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7704 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7706 * gdbarch.sh (copyright): Update years in generated header.
7707 (SMASH_TEXT_ADDRESS): Add rule.
7708 * gdbarch.h, gdbarch.c: Re-generate.
7709 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7710 * dbxread.c: Likewise.
7711 * dwarfread.c: Likewise.
7712 * elfread.c: Likewise.
7713 * somread.c: Likewise.
7715 * arm-tdep.c (arm_smash_text_address): New function.
7716 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7718 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7720 Add support for hardware watchpoints on win32 native.
7721 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7722 CONTEXT_DEBUG_REGISTERS.
7723 (dr variable): New variable. Static array containing a local copy
7725 (debug_registers_changed): New variable. Reflects when debug registers
7726 are changed and need to be written to inferior.
7727 (debug_registers_used): New variable. Reflects when any debug register
7728 was set, used when new threads are created.
7729 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7731 (thread_rec): Set dr array if id is the thread of current_event .
7732 (child_continue, child_resume): Change the debug registers for all
7733 threads if debug_registers_changed.
7734 (child_add_thread): Change the debug registers if debug_registers_used.
7735 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7736 Link nm.h to new nm-cygwin.h file.
7737 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7738 of hardware registers.
7740 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7742 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7743 Restore behavour broken by 2002-01-20 Andrew Cagney
7744 <ac131313@redhat.com> IEEE_FLOAT removal.
7746 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7748 * c-valprint.c (c_val_print): Pass a proper valaddr to
7749 cp_print_class_method.
7750 * valops.c (search_struct_method): If there is only one method
7751 and args is NULL, return that method.
7753 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7755 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7756 accessing tag_name directly.
7758 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7760 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7761 of accessing tag_name directly.
7763 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7766 * gdbtypes.c (replace_type): New function.
7767 * gdbtypes.h (replace_type): Add prototype.
7768 * stabsread.c (read_type): Use replace_type.
7770 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7772 * Makefile.in (memattr.o): Add missing dependencies rule.
7774 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7776 * breakpoint.c (break_at_finish_command): Really export.
7777 (break_at_finish_at_depth_command): Ditto.
7778 (tbreak_at_finish_command): Ditto.
7779 * hppa-tdep.c: Include completer.h.
7780 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7781 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7783 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7785 * utils.c (do_write): New function.
7786 (error_stream): Rewrite combining the code from error_begin and
7788 (verror): Rewrite using error_stream.
7789 (error_begin): Delete function.
7791 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7793 * utils.c (error_begin): Make static.
7794 * defs.h (error_begin): Delete declaration.
7796 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7797 (decode_line_1): Use cplusplus_error instead of error_begin,
7798 cplusplus_hint and return_to_top_level.
7799 * coffread.c (coff_symfile_read): Use error instead of error_begin
7800 and return_to_top_level.
7801 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7803 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7805 * language.h (type_error, range_error): Make string parameter
7807 * language.c (warning_pre_print): Delete extern declaration.
7808 * dwarfread.c (warning_pre_print): Ditto.
7809 * language.c (type_error, range_error): Rewrite to use verror and
7810 vwarning instead of warning_begin.
7812 2002-02-01 Michael Snyder <msnyder@redhat.com>
7814 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7815 (set_ignore_count): Move misplaced comment back where it belongs.
7817 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7819 * command.h (NO_FUNCTION): Delete macro.
7820 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7821 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7822 * tracepoint.c (_initialize_tracepoint): Ditto.
7823 * cli/cli-decode.c (add_set_cmd): Ditto.
7824 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7826 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7828 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7829 Update ``this'' pointer when calling virtual functions.
7831 2002-02-01 Michael Snyder <msnyder@redhat.com>
7833 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7834 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7836 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7838 * regformats/reg-arm.dat: New file.
7839 * regformats/reg-i386.dat: New file.
7840 * regformats/reg-ia64.dat: New file.
7841 * regformats/reg-m68k.dat: New file.
7842 * regformats/reg-mips.dat: New file.
7843 * regformats/reg-ppc.dat: New file.
7844 * regformats/reg-sh.dat: New file.
7845 * regformats/regdef.h: New file.
7846 * regformats/regdat.sh: New file.
7848 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7850 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7851 (arm_frame_args_address, arm_frame_locals_address): New functions.
7852 (arm_frame_num_args): New function.
7853 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7854 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7855 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7857 2002-01-31 Michael Snyder <msnyder@redhat.com>
7859 * breakpoint.c (break_at_finish_command): Export.
7860 (break_at_finish_at_depth_command): Export.
7861 (tbreak_at_finish_command): Export.
7862 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7863 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7864 "tbreak" commands, which are HPPA specific.
7866 * printcmd.c (disassemble_command): Remove an ancient
7867 artifact of an old merge.
7869 * symfile.h (enum overlay_debugging_state):
7870 Define enum constant values for overlay mode.
7871 * symfile.c (overlay_debugging): Use enums instead of literals.
7872 (overlay_is_mapped, overlay_auto_command,
7873 overlay_manual_command): Ditto.
7875 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7876 breakpoint_here_p, breakpoint_inserted_here_p,
7877 breakpoint_thread_match, bpstat_stop_status,
7878 describe_other_breakpoints, check_duplicates, clear_command):
7879 Coding standard fixes.
7881 * target.c (target_xfer_memory): Add spaces, coding standard.
7882 (do_xfer_memory): Add missing line to trust-readonly
7883 code: check bfd SEC_READONLY flag for section.
7885 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7887 * PROBLEMS: Fix typo, 5.1->5.1.1.
7889 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7891 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7892 data symbols, since we search based on textlow and texthigh.
7893 (find_pc_sect_symtab): Likewise.
7895 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7897 * defs.h (vwarning): Declare.
7898 * utils.c (vwarning): New function.
7899 (warning): Call vwarning.
7900 (warning_begin): Delete function.
7902 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7903 the warning message.
7904 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7907 2002-01-30 Michael Snyder <msnyder@redhat.com>
7909 * NEWS: Mention "set trust-readonly-sections" command.
7910 Mention generate-core-file command.
7912 2002-01-15 Michael Snyder <msnyder@redhat.com>
7914 * target.c: New command, "set trust-readonly-sections on".
7915 (do_xfer_memory): Honor the suggestion to trust readonly sections
7916 by reading them from the object file instead of from the target.
7917 (initialize_targets): Register command "set trust-readonly-sections".
7919 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7921 * parse.c (target_map_name_to_register): Simplify, search regs and
7922 pseudo-regs using a single loop.
7924 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7926 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7928 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7930 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7931 * config/i386/i386v42mp.mh: Add i387-nat.o .
7932 * i386v4-nat.c: Include i387-nat.h.
7933 (supply_fpregset): Use i387_supply_fsave.
7934 (fill_fpregset): Use i387_fill_fsave.
7936 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7938 * arm-tdep.c (arm_call_dummy_words): Define.
7939 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7940 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7941 (CALL_DUMMY_WORDS): Define.
7942 (arm_call_dummy_words): Declare.
7943 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7944 (arm_linux_call_dummy_words): Declare.
7946 2002-01-30 Andreas Schwab <schwab@suse.de>
7948 * m68klinux-nat.c: Fix last change to use regcache_collect
7949 instead of referencing registers[] directly.
7951 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7953 * parse.c (target_map_name_to_register): Delete code wrapped in
7954 #ifdef REGISTER_NAME_ALIAS_HOOK.
7956 2002-01-28 Michael Snyder <msnyder@redhat.com>
7958 * regcache.c (legacy_read_register_gen): Need to be able to
7959 read pseudo-register as well as real register.
7960 (legacy_write_register_gen): Ditto.
7962 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7964 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7965 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7966 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7967 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7968 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7969 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7970 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7971 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7972 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7973 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7974 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7975 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7976 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7977 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7978 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7979 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7980 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7981 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7982 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7983 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7985 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7987 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7988 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7989 (initialize_current_architecture): Update target_byte_order using
7990 information from BFD.
7991 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7992 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7994 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7996 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7997 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7999 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8000 #ifdef INVALID_FLOAT.
8001 * infcmd.c (do_registers_info): Ditto.
8002 * values.c (unpack_double): Ditto. Add comment.
8004 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8005 already commented out.
8007 2002-01-26 Andreas Schwab <schwab@suse.de>
8009 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8010 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8011 registers and add support for PTRACE_GETREGS.
8013 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8015 GDB 5.1.1 released from 5.1 branch.
8016 * NEWS: Add 5.1.1 news.
8017 * README: Sync with 5.1 branch.
8019 2002-01-23 Fred Fish <fnf@redhat.com>
8021 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8022 stabstring on initial malloc. Reallocing will copy it for us,
8025 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8027 * Makefile.in (hpread_h): Delete.
8028 (HFILES_NO_SRCDIR): Remove hpread.h.
8029 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8030 (hpread.o): Update dependencies.
8031 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8033 * hp-psymtab-read.c: Remove file.
8034 * hp-symtab-read.c: Remove file.
8035 * hpread.h: Remove file.
8037 * hpread.c: Merge all contents of hp-psymtab-read.c,
8038 hp-symtab-read.c and hpread.h into this file, as it was prior to
8041 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8042 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8043 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8044 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8046 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8048 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8049 fill_gregset): Call gdbarch_tdep() just once, assign result to
8050 variable and use that, instead of calling the function several
8053 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8055 * configure.host: Accept sparcv9 as alias for sparc64.
8056 * configure.tgt: Likewise.
8058 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8060 * solib-aix5.c (build_so_list_from_mapfile)
8061 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8062 arguments is not reversed.
8063 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8064 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8066 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8068 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8069 modified version of obsolete sh_fetch_pseudo_register.
8070 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8071 (sh4_register_read): New function.
8072 (sh_pseudo_register_write): New function. Renamed and modified
8073 version of obsolete sh_store_pseudo_register.
8074 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8075 (sh4_register_write): New function.
8076 (sh_gdbarch_init): Remove setting of gdbarch function
8077 fetch_pseudo_register and store_pseudo_register. Remove setting of
8078 register_convert_to_raw, register_convert_to_virtual,
8079 register_convertible.
8080 (sh_sh4_register_convertible): Delete. No longer needed. All is
8081 taken care by architecture specific functions
8082 register_read/register_write.
8083 (sh_sh4_register_convert_to_virtual): Make static.
8084 (sh_sh4_register_convert_to_raw): Ditto.
8086 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8088 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8089 (floatformat_is_nan, floatformat_mantissa): Ditto.
8091 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8092 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8093 builtin_type_ieee_double_little,
8094 builtin_type_ieee_double_littlebyte_bigword,
8095 builtin_type_m68881_ext, builtin_type_i960_ext,
8096 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8097 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8098 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8099 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8101 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8103 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8104 parameter. Set frameless flag if it exists and depended of
8105 whether the scanned function is frameless or not.
8106 (xstormy16_skip_prologue): If function is frameless, return
8107 result of xstormy16_scan_prologue().
8108 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8111 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8113 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8114 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8115 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8116 sh_sh4_register_byte, sh_sh4_register_raw_size,
8117 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8118 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8119 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8120 sh_store_pseudo_register, sh_do_pseudo_register): Call
8121 gdbarch_tdep() just once, assign result to variable and use that,
8122 instead of calling the function several times.
8124 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8126 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8127 macros instead of LAST_FPU_CTRL_REGNUM.
8128 (store_register): Likewise.
8130 2002-01-21 Jim Blandy <jimb@redhat.com>
8132 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8133 is up-to-date before running the program, not just when a program
8136 2002-01-21 Fred Fish <fnf@redhat.com>
8138 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8139 when we have found all instructions we are looking for.
8141 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8143 * arm-tdep.c (arm_register_name): New function.
8144 (arm_registers_names): Make static.
8145 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8146 (arm_register_name): Declare.
8147 (REGISTER_NAME): Use it.
8149 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8150 Kevin Buettner <kevinb@redhat.com>
8152 Convert arm targets to new FRAME interface.
8153 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8154 (arm_frame_find_save_regs): Delete.
8155 (arm_frame_init_saved_regs): New.
8156 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8157 Allocate extra_info as required. Convert all uses of fsr.regs
8158 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8160 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8161 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8162 (check_prologue_cache, save_prologue_cache): Likewise.
8163 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8164 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8165 (FRAME_FIND_SAVED_REGS): Delete.
8166 (arm_frame_find_saved_regs): Delete prototype.
8167 (arm_frame_init_saved_regs): New prototype.
8168 (FRAME_INIT_SAVED_REGS): Define.
8170 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8172 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8174 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8176 From Jeff Law <law@redhat.com>:
8177 * infttrace.c: Include <sys/pstat.h>.
8178 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8179 exec file if the ttrace equivalent fails.
8181 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8183 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8184 (closeLogFile): Ditto.
8186 2002-01-20 Michael Chastain <mec@shout.net>
8188 * top.c (print_gdb_version): Bump copyright year to 2002.
8190 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8192 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8193 Zannoni and Eli Zaretskii.
8195 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8197 * buildsym.c: Update copyright years.
8198 * c-typeprint.c: Likewise.
8199 * dwarf2read.c: Likewise.
8200 * f-typeprint.c: Likewise.
8201 * gdbtypes.c: Likewise.
8202 * gdbtypes.h: Likewise.
8203 * hp-symtab-read.c: Likewise.
8204 * hpread.c: Likewise.
8205 * mdebugread.c: Likewise.
8206 * p-typeprint.c: Likewise.
8208 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8210 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8211 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8212 byte-order selectable.
8213 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8214 * arch-utils.c: Ditto.
8215 (set_endian): Ditto.
8216 (set_endian_from_file): Ditto.
8217 * gdbserver/low-sim.c (create_inferior): Ditto.
8218 * gdbarch.sh: Ditto.
8219 * gdbarch.h: Re-generate.
8220 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8221 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8222 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8223 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8224 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8225 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8226 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
8227 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8229 * config/mips/tm-wince.h: Remove #undef of macro
8230 TARGET_BYTE_ORDER_SELECTABLE.
8231 * config/sh/tm-wince.h: Ditto.
8233 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8235 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8236 member function fields. Add accessor macro
8237 TYPE_FN_FIELD_ARTIFICIAL.
8238 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8239 * c-typeprint.c (c_type_print_base): Skip artificial member
8242 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8244 * f-typeprint.c: Delete unused function f_type_print_args.
8245 * p-typeprint.c: Delete unused function pascal_type_print_args.
8247 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8249 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8250 comment. Add ``artificial'' to ``union field_location''.
8252 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8254 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8255 * mdebugread.c (parse_symbol): Likewise.
8256 * stabsread.c (define_symbol): Likewise.
8257 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8258 initializing TYPE_FIELD_BITPOS to n (obsolete).
8259 (hpread_doc_function_type): Likewise.
8260 * hpread.c (hpread_function_type): Likewise.
8262 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8264 * configure.in (host_makefile_frag): Only require a host makefile
8265 fragment when a native build.
8266 * configure: Re-generate.
8268 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8270 * doublest.h (floatformat_from_type): Declare.
8271 * doublest.c (floatformat_from_type): New function.
8272 (convert_typed_floating): Use.
8274 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8275 call to function floatformat_from_type.
8277 * gdbarch.sh (IEEE_FLOAT): Delete.
8278 * gdbarch.h, gdbarch.c: Re-generate.
8279 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8280 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8281 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8282 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8283 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8284 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8285 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8286 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8287 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8288 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8289 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8290 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8292 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8293 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8294 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8295 * sh-tdep.c (sh_gdbarch_init): Ditto.
8296 * mips-tdep.c (mips_gdbarch_init): Ditto.
8297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8298 * cris-tdep.c (cris_gdbarch_init): Ditto.
8300 2002-01-20 Jiri Smid <smid@suse.cz>
8302 * configure.host, configure.tgt: Support x86-64.
8303 * NEWS: Note new target x86-64.
8305 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8306 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8307 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8308 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8309 x86-64-linux-nat.o): Fix dependencies.
8311 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8313 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8314 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8315 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8316 * config/sparc/xm-sun4os4.h: Delete file.
8317 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8319 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8321 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8322 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8323 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8324 * config/i386/i386lynx.mh (XM_FILE): Delete.
8325 * config/rs6000/xm-rs6000ly.h: Delete file.
8326 * config/sparc/xm-sparclynx.h: Delete file.
8327 * config/m68k/xm-m68klynx.h: Delete file.
8328 * config/i386/xm-i386lynx.h: Delete file.
8329 * config/xm-lynx.h: Delete file.
8330 * config/djgpp/fnchange.lst: Update.
8332 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8334 * alpha-tdep.c (alpha_register_byte): New function.
8335 (alpha_register_raw_size): Ditto.
8336 (alpha_register_virtual_size): Ditto.
8337 (alpha_skip_prologue_internal): Renamed from
8338 alpha_skip_prologue.
8339 (alpha_skip_prologue): New version that calls
8340 alpha_skip_prologue_internal.
8341 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8342 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8343 second argument from alpha_skip_prologue.
8344 (REGISTER_BYTE): Use alpha_register_byte.
8345 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8346 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8347 (FRAMELESS_FUNCTION_INVOCATION): Use
8348 generic_frameless_function_invocation_not.
8349 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8350 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8352 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8354 * config/mips/xm-news-mips.h: Delete file.
8355 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8357 * config/m88k/xm-m88k.h: Delete file.
8358 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8359 * config/m88k/xm-delta88v4.h: Ditto.
8360 * config/m88k/xm-delta88.h: Ditto.
8362 * config/alpha/xm-fbsd.h: Delete file.
8363 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8365 * config/sparc/xm-sparc.h: Delete file.
8366 * Makefile.in (xm-sun4os4.h): Delete dependency.
8367 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8368 * config/sparc/xm-sun4os4.h: Ditto.
8369 * config/sparc/xm-linux.h: Ditto.
8371 * config/i386/xm-windows.h: Delete file.
8373 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8375 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8376 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8378 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8380 * alpha-tdep.c (alpha_call_dummy_words): New.
8381 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8382 (CALL_DUMMY_P): Define.
8383 (CALL_DUMMY_WORDS): Define.
8384 (SIZEOF_CALL_DUMMY_WORDS): Define.
8386 2002-01-19 Per Bothner <per@bothner.com>
8388 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8389 isn't NULL, which can happen with some gcj-3.x-produced code.
8391 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8393 * alpha-tdep.c (alpha_register_virtual_type): New function.
8394 (alpha_init_frame_pc_first): Ditto.
8395 (alpha_fix_call_dummy): Ditto.
8396 (alpha_store_struct_return): Ditto.
8397 (alpha_extract_struct_value_address): Ditto.
8398 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8399 alpha_register_virtual_type.
8400 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8401 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8402 alpha_extract_struct_value_address.
8403 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8404 (INIT_FRAME_PC): Use init_frame_pc_noop.
8405 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8407 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8409 * i386gnu-nat.c: Include "i386-tdep.h".
8410 (fetch_fpregs): Simplify code dealing with uninitialized floating
8411 point states such that it doesn't require FP7_REGNUM.
8413 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8415 * alpha-tdep.c (frame_extra_info): New.
8416 (alpha_find_saved_regs): Make static. Use
8418 (alpha_frame_init_saved_regs): New function.
8419 (alpha_frame_saved_pc): Use frame->extra_info.
8420 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8421 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8422 (init_extra_frame_info): Rename to...
8423 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8424 (alpha_print_extra_frame_info): New function.
8425 (alpha_frame_locals_address): Ditto.
8426 (alpha_frame_args_address): Ditto.
8427 (alpha_pop_frame): Use frame->extra_info.
8428 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8429 alpha_frame_args_address.
8430 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8431 (alpha_find_saved_regs): Remove prototype.
8432 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8433 (EXTRA_FRAME_INFO): Remove.
8434 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8435 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8437 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8439 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8440 (alpha_cannot_fetch_register): Ditto.
8441 (alpha_cannot_store_register): Ditto.
8442 (alpha_register_convertible): Ditto.
8443 (alpha_use_struct_convention): Ditto.
8444 * config/alpha/tm-alpha.h: Update copyright years.
8445 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8446 (INNER_THAN): Use core_addr_lessthan.
8447 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8448 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8449 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8450 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8451 (FRAME_CHAIN): Remove unnecessary cast.
8453 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8455 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8458 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8460 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8461 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8462 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8463 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8464 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8465 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8466 * x86-64-linux-nat.c: Ditto.
8468 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8470 * alpha-tdep.c (alpha_register_name): New function.
8471 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8472 (REGISTER_NAME): Define.
8474 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8476 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8478 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8480 * alpha-tdep.c: Update copyright years.
8481 (alpha_next_pc): New function.
8482 (alpha_software_single_step): Ditto.
8483 * config/alpha/tm-alpha.h: Add prototype for
8484 alpha_software_single_step.
8486 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8488 * alphabsd-nat.c: Update copyright years.
8489 (fill_gregset): Use regcache_collect.
8490 (fill_fpregset): Likewise.
8491 (fetch_inferior_registers): Only fetch integer registers
8492 if requested to do so.
8493 (store_inferior_registers): Only store integer registers
8494 if requested to do so.
8496 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8498 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8499 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8500 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8501 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8502 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8503 * config/arm/linux.mh (XDEPFILES): Delete.
8504 * config/arm/nbsd.mh (XDEPFILES): Delete.
8505 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8506 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8507 * config/i386/i386m3.mh (XDEPFILES): Delete.
8508 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8509 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8510 * config/i386/fbsd.mh (XDEPFILES): Delete.
8511 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8512 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8513 * config/i386/i386v4.mh (XDEPFILES): Delete.
8514 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8515 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8516 * config/i386/i386aix.mh (XDEPFILES): Delete.
8517 * config/i386/go32.mh (XDEPFILES): Delete.
8518 * config/i386/cygwin.mh (XDEPFILES): Delete.
8519 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8520 * config/i386/i386mach.mh (XDEPFILES): Delete.
8521 * config/i386/i386v32.mh (XDEPFILES): Delete.
8522 * config/i386/linux.mh (XDEPFILES): Delete.
8523 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8524 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8525 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8526 * config/i386/i386sco.mh (XDEPFILES): Delete.
8527 * config/i386/i386v.mh (XDEPFILES): Delete.
8528 * config/i386/nbsd.mh (XDEPFILES): Delete.
8529 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8530 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8531 * config/i386/symmetry.mh (XDEPFILES): Delete.
8532 * config/i386/obsd.mh (XDEPFILES): Delete.
8533 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8534 * config/ia64/linux.mh (XDEPFILES): Delete.
8535 * config/ia64/aix.mh (XDEPFILES): Delete.
8536 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8537 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8538 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8539 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8540 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8541 * config/m68k/linux.mh (XDEPFILES): Delete.
8542 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8543 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8544 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8545 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8546 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8547 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8548 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8549 * config/m88k/delta88.mh (XDEPFILES): Delete.
8550 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8551 * config/m88k/m88k.mh (XDEPFILES): Delete.
8552 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8553 * config/mips/linux.mh (XDEPFILES): Delete.
8554 * config/mips/irix6.mh (XDEPFILES): Delete.
8555 * config/mips/irix5.mh (XDEPFILES): Delete.
8556 * config/mips/irix4.mh (XDEPFILES): Delete.
8557 * config/mips/irix3.mh (XDEPFILES): Delete.
8558 * config/mips/decstation.mh (XDEPFILES): Delete.
8559 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8560 (NATDEPFILES): Move core-aout.o to here.
8561 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8562 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8563 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8564 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8565 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8566 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8567 * config/pa/hpux11.mh (XDEPFILES): Delete.
8568 * config/powerpc/aix.mh (XDEPFILES): Delete.
8569 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8570 * config/powerpc/linux.mh (XDEPFILES): Delete.
8571 * config/romp/rtbsd.mh: Rename XDEPFILES.
8572 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8573 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8574 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8575 * config/s390/s390.mh (XDEPFILES): Delete.
8576 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8577 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8578 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8579 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8580 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8581 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8582 * config/sparc/linux.mh (XDEPFILES): Delete.
8583 * config/vax/vaxult.mh (XDEPFILES): Delete.
8584 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8585 * Makefile.in (DEPFILES): Remove XDEPFILES.
8587 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8589 * utils.c (internal_verror): Fix comments, default is yes not no.
8590 Update queries to match. Default to quit and dump core.
8592 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8594 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8596 * defs.h, event-top.c, gdbcmd.h: Ditto.
8597 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8598 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8599 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8600 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8601 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8602 * mi/mi-main.c:Ditto.
8604 * stack.c, symfile.c: Update copyright.
8606 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8608 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8609 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8610 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8611 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8613 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8615 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8616 * gdbserver/low-lynx.c (myattach): Likewise.
8617 * gdbserver/low-nbsd.c (myattach): Likewise.
8618 * gdbserver/low-sim.c (myattach): Likewise.
8619 * gdbserver/low-sparc.c (myattach): Likewise.
8620 * gdbserver/low-sun3.c (myattach): Likewise.
8622 * gdbserver/low-linux.c (myattach): New function.
8624 * gdbserver/server.c (attach_inferior): New function.
8625 (main): Handle "--attach".
8627 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8629 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8632 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8634 * c-typeprint.c (is_type_conversion_operator): Add additional
8635 check for non-conversion operators.
8637 2002-01-15 Michael Snyder <msnyder@redhat.com>
8639 * linux-proc.c: Add "info proc" command, a la procfs.c.
8640 (read_mapping): New function, abstract and re-use code.
8641 (linux_find_memory_regions): Use new func read_mapping.
8642 (linux_info_proc_cmd): New function, implement "info proc".
8643 (_initialize_linux_proc): Add new command "info proc".
8645 2002-01-15 Michael Snyder <msnyder@redhat.com>
8647 * symfile.c (generic_load): Use bfd_map_over_sections method
8648 instead of manipulating bfd structure members directly.
8649 (add_section_size_callback): New function, bfd sections callback
8650 used by generic_load.
8651 (load_sections_callback): New function, bfd sections callback
8652 used by generic_load.
8654 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8656 [Based on work by Jim Blandy]
8657 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8658 (builtin_type_vec128): Export.
8659 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8661 (builtin_type_vec128): New builtin type for 128 bit vector
8663 (build_gdbtypes): Initialize builtin_type_v16qi and
8664 builtin_type_v8hi. Create the vec128 register builtin type
8666 (build_builtin_type_vec128): New function.
8667 (_initialize_gdbtypes): Register builtin_type_v16qi and
8668 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8669 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8670 AltiVec register to new builtin type.
8672 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8674 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8677 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8679 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8680 CLEAN_UP_REGISTER_VALUE.
8681 * regcache.c (supply_register): Update only call.
8683 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8685 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8686 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8687 a29k-*-vxworks* targets as obsolete.
8689 2002-01-14 Michael Snyder <msnyder@redhat.com>
8691 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8692 until we can resolve portability issues.
8693 * gregset.h: Remove references to fpxregs.
8694 * gcore.c (gcore_command): Initialize note_sec to NULL.
8696 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8698 * signals.c (target_signal_to_name): Rewrite. Only use
8699 signals[].name when in bounds and non-NULL.
8701 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8703 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8704 * signals.c (target_signal_to_name): Verify that SIG is within the
8705 bounds of the signals array.
8707 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8709 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8711 2002-01-13 Keith Seitz <keiths@redhat.com>
8713 * stack.c (print_frame_info_base): Print the frame's pc
8714 only if when print_frame_info_listing_hook is not defined.
8716 2002-01-13 Keith Seitz <keiths@redhat.com>
8718 * varobj.c (varobj_set_value): Make sure that there were no
8719 errors evaluating the object before attempting to set its
8721 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8722 so this offset adjustment is no longer necessary.
8723 (create_child): Don't set the error flag if the child is
8725 (value_of_child): If value_fetch_lazy fails, return NULL
8726 so that callers will be notified that an error occurred.
8727 (c_value_of_variable): Delay check of variable's validity
8728 until later. We actually want all structs and unions to have
8730 Do not return "???" for variables which could not be evaluated.
8731 This error condition must be returned to the caller so that it
8732 can get the error condition from gdb.
8733 (cplus_name_of_child): Adjust index for vptr before figuring
8734 out the name of the child.
8735 (cplus_value_of_child): If a child's (real) parent is not valid,
8736 don't even bother trying to give a value for it. Just return
8737 an error. Change all instances in this function.
8738 (cplus_type_of_child): If our parent is one of the "fake"
8739 parents, we need to get at the type of the real parent, and
8740 derive the child's true type using this information.
8742 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8744 From 2002-01-09 John Marshall <johnm@falch.net>:
8745 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8746 sources.redhat.com, and tweak some related URLs which had
8747 suffered from linkrot.
8749 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8752 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8753 structures passed in registers.
8755 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8757 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8758 white space which prevented compilation. Reported by DSK
8759 <dsk@student.unsw.edu.au>.
8761 2002-01-11 Michael Snyder <msnyder@redhat.com>
8763 * symfile.c (build_section_addr_info_from_section_tab):
8764 Use bfd access method instead of manipulating bfd directly.
8765 (syms_from_objfile): Ditto.
8766 (simple_overlay_update_1): Ditto.
8767 (simple_overlay_update): Ditto.
8768 (generic_load): Ditto.
8769 (overlay_unmapped_address): FIXME comment, bfd access methods.
8770 (sections_overlap): FIXME comment, bfd access methods.
8771 (pc_in_mapped_range): FIXME comment, bfd access methods.
8772 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8773 (section_is_mapped): FIXME comment, bfd access methods.
8774 (section_is_overlay): FIXME comment, bfd access methods.
8776 * symfile.c (generic_load): Whitespace and long line cleanups.
8777 Remove duplicate variable, change several local variables to
8778 more appropriate data types.
8779 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8781 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8784 * language.c (longest_local_hex_string_custom): Use phex_nz to
8785 convert NUM to a hex string.
8787 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8789 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8791 Update Copyright year.
8793 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8795 * language.c (longest_raw_hex_string): Delete unused function.
8797 2002-01-11 Petr Sorfa <petrs@caldera.com>
8799 * MAINTAINERS (write-after-approval): Add myself.
8800 * dwarf2read.c (read_tag_string_type): Handling of
8802 (read_tag_string_type): FORTRAN fix to prevent propagation of
8804 (set_cu_language): Handling of DW_LANG_Fortran95
8806 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8808 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8809 GETPID(inferior_ptid).
8810 (store_inferior_registers): Likewise.
8812 2002-01-10 Jason Merrill <jason@redhat.com>
8814 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8817 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8819 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8820 and bfd/elf32-sh-nbsd.c.
8822 2002-01-10 Michael Snyder <msnyder@redhat.com>
8824 * NEWS: Mention --pid and corefile/proc-id behavior change.
8826 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8827 * gcore.c: Include cli/cli-decode.h instead of command.h.
8829 * main.c (captured_main): Add new command line option "--pid".
8830 If the second command line argument (following the symbol-file)
8831 begins with a digit, try to attach to it before trying to open
8833 (print_gdb_help): Document the "--pid" argument.
8835 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8837 * completer.c (command_completer): New function.
8839 * completer.h <command_completer>: Add prototype.
8841 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8842 completer for the "help" command.
8844 2002-01-09 Jason Merrill <jason@redhat.com>
8846 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8848 2002-01-09 Michael Snyder <msnyder@redhat.com>
8850 * i386-linux-nat.c (fill_fpxregset): Make global.
8851 (store_fpxregset): Ditto.
8853 * gregset.h (gdb_fpxregset_t): Define.
8854 (supply_fpxregset): Prototype.
8855 (fill_fpxregset): Prototype.
8857 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8859 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8861 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8862 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8863 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8865 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8867 * MAINTAINERS: Update target maintainer rules so that any
8868 Maintainer can approve a tested patch for a maintenance-only
8871 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8873 * MAINTAINERS (write-after-approval): Add myself.
8875 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8878 2002-01-08 Michael Snyder <msnyder@redhat.com>
8880 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8881 real name of the executable, rather than the /proc name.
8883 2002-01-03 Michael Snyder <msnyder@redhat.com>
8885 Implement a "generate-core-file" command in gdb, save target state.
8886 * gcore.c: New file. Implement new command 'generate-core-file'.
8887 Save a corefile image of the current state of the inferior.
8888 * linux-proc.c: Add linux-specific code for saving corefiles.
8889 * target.h (struct target_ops): Add new target vectors for saving
8890 corefiles; to_find_memory_regions and to_make_corefile_notes.
8891 (target_find_memory_regions): New macro.
8892 (target_make_corefile_notes): New macro.
8893 * target.c (update_current_target): Inherit new target methods.
8894 (dummy_find_memory_regions): New place-holder method.
8895 (dummy_make_corefile_notes): New place-holder method.
8896 (init_dummy_target): Initialize new dummy target vectors.
8897 * exec.c (exec_set_find_memory_regions): New function.
8898 Allow the exec_ops vector for memory regions to be taken over.
8899 (exec_make_note_section): New function, target vector method.
8900 * defs.h (exec_set_find_memory_regions): Export prototype.
8901 * procfs.c (proc_find_memory_regions): New function, corefile method.
8902 (procfs_make_note_section): New function, corefile method.
8903 (init_procfs_ops): Set new target vector pointers.
8904 (find_memory_regions_callback): New function.
8905 (procfs_do_thread_registers): New function.
8906 (procfs_corefile_thread_callback): New function.
8907 * sol-thread.c (sol_find_memory_regions): New function.
8908 (sol_make_note_section): New function.
8909 (init_sol_thread_ops): Initialize new target vectors.
8910 * inftarg.c (inftarg_set_find_memory_regions): New function.
8911 Allow to_find_memory_regions vector to be taken over.
8912 (inftarg_set_make_corefile_notes): New function.
8913 Allow to_make_corefile_notes vector to be taken over.
8914 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8915 interface layer if not target_has_execution (may be a corefile).
8916 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8917 * config/sparc/sun4sol2.mh: Ditto.
8918 * config/alpha/alpha-linux.mh: Ditto.
8919 * config/arm/linux.mh: Ditto.
8920 * config/i386/x86-64linux.mh: Ditto.
8921 * config/ia64/linux.mh: Ditto.
8922 * config/m68k/linux.mh: Ditto.
8923 * config/mips/linux.mh: Ditto.
8924 * config/powerpc/linux.mh: Ditto.
8925 * config/sparc/linux.mh: Ditto.
8927 2002-01-07 Michael Snyder <msnyder@redhat.com>
8929 * arm-linux-nat.c: Remove references to regcache.c internal data
8930 (registers[] and register_valid[]).
8932 2002-01-07 Michael Snyder <msnyder@redhat.com>
8934 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8935 so that attaching to a pid will automatically read the process's
8936 symbol file and shlibs.
8937 * Makefile.in: Add rule for linux-proc.o.
8938 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8939 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8940 * config/arm/linux.mh: Ditto.
8941 * config/i386/linux.mh: Ditto.
8942 * config/i386/x86-64linux.mh: Ditto.
8943 * config/ia64/linux.mh: Ditto.
8944 * config/m68k/linux.mh: Ditto.
8945 * config/mips/linux.mh: Ditto.
8946 * config/powerpc/linux.mh: Ditto.
8947 * config/sparc/linux.mh: Ditto.
8949 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8951 * win32-nat.c: Add i386-tdep.h dependency.
8953 2002-01-07 Michael Snyder <msnyder@redhat.com>
8955 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8956 instead of bfd_get_arch_size. Don't bail out just because
8957 there's no exec_bfd.
8959 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8960 * p-valprint.c (pascal_object_print_value): Ditto.
8961 * somread.c (som_symtab_read): Ditto.
8962 * symfile.c (simple_free_overlay_region_table): Ditto.
8963 * valops.c (value_assign): Ditto.
8965 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8966 use tilde_expand and strerror for opening save-tracepoints file.
8968 * thread-db.c (thread_db_new_objfile): Indendation fix.
8970 * infptrace.c (GDB_MAX_ALLOCA): New define.
8971 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8972 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8973 can be overridden with whatever value is appropriate to the host).
8974 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8975 alloca to allocate potentially large buffer.
8976 * rs6000-nat.c (child_xfer_memory): Ditto.
8977 * symm-nat.c (child_xfer_memory): Ditto.
8978 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8980 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8982 From Nick Clifton <nickc@redhat.com>
8983 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8985 2002-01-07 Michael Snyder <msnyder@redhat.com>
8987 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8988 Don't use exec_bfd if it's NULL.
8990 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8992 * valops.c (value_arg_coerce): Fix formatting.
8994 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8996 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8999 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9001 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9002 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9003 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9004 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9005 z8k-coff have not been multi-arched. Update z8k-coff build
9008 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9010 * MAINTAINERS: Mark a29k target as obsolete.
9011 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9012 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9014 * NEWS: Note that a29k targets are obsolete.
9015 * a29k-tdep.c: Mark as obsolete.
9016 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9017 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9018 a29k-*-vxworks* targets as obsolete.
9019 * remote-adapt.c: Obsolete.
9020 * remote-eb.c: Obsolete.
9021 * remote-mm.c: Obsolete.
9022 * remote-udi.c: Obsolete.
9023 * config/a29k/a29k-udi.mt: Obsolete.
9024 * config/a29k/a29k.mt: Obsolete.
9025 * config/a29k/tm-a29k.h: Obsolete.
9026 * config/a29k/tm-vx29k.h: Obsolete.
9027 * config/a29k/vx29k.mt: Obsolete.
9029 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9031 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9032 with BFD_ENDIAN_BIG.
9034 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9036 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9037 * configure, config.in: Re-generate.
9038 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9039 * defs.h: Do not include <endian.h>.
9041 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9043 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9044 * config.in: Regenerate.
9045 * configure.in: Update copyright years.
9046 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9047 * configure: Regenerate.
9048 * i386bsd-nat.c: Update copyright years.
9049 (fill_gregset): Use regcache_collect.
9050 (fetch_inferior_registers): Only fetch integer registers
9051 if requested to do so. Add support for XMM registers
9052 using PT_GETXMMREGS.
9053 (store_inferior_registers): Only store integer registers
9054 if requested to do so. Add support for XMM registers
9055 using PT_SETXMMREGS.
9056 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9057 (store_inferior_registers): Remove.
9058 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9059 (fetch_elfcore_registers): New function.
9060 (i386nbsd_elfcore_fns): New.
9061 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9062 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9064 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9065 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9066 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9067 * config/i386/tm-nbsd.h: Update copyright years.
9068 (HAVE_SSE_REGS): Define.
9069 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9070 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9071 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9072 (SIGCONTEXT_PC_OFFSET): Remove.
9073 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9075 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9077 * configure.tgt: Remove powerpc-*-macos* target.
9078 * config/m68k/xm-mpw.h: Delete file.
9079 * config/xm-mpw.h: Delete file.
9080 * ser-mac.c: Delete file.
9081 * mpw-make.sed: Delete file.
9082 * mpw-config.in: Delete file.
9083 * mac-xdep.c: Delete file.
9084 * mac-gdb.r: Delete file.
9085 * mac-defs.h: Delete file.
9086 * mac-nat.c: Delete file.
9087 * config/powerpc/macos.mh: Delete file.
9088 * config/powerpc/macos.mt: Delete file.
9089 * config/powerpc/nm-macos.h: Delete file.
9090 * config/powerpc/tm-macos.h: Delete file.
9091 * source.c (openp, open_source_file): Remove obsolete code.
9092 * top.c (gdb_readline): Ditto.
9093 * utils.c (query): Ditto.
9094 * event-top.c (display_gdb_prompt): Ditto.
9095 * Makefile.in (ser-mac.o): Delete obsolete target.
9098 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9100 * defs.h (BIG_ENDIAN): Delete macro definition.
9101 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9102 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9103 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9104 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9105 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9106 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9107 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9108 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9109 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9110 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9111 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9112 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9113 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9114 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9115 * gdbarch.c: Re-generate.
9117 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9119 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9122 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9124 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9126 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9128 * value.h (value_ptr): Delete typedef.
9130 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9132 * i386nbsd-nat.c: Update copyright years.
9133 Include i386-tdep.h.
9135 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9137 * stabsread.c: Update copyright years.
9139 From Debashis Mahata <debashis.mahata@wipro.com>:
9140 (read_struct_fields): Deal with Sun C compiler erroneous stab
9141 output for structs and unions.
9144 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9146 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9149 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9151 * cp-abi.c: Fix whitespace.
9152 (baseclass_offset): New wrapper function.
9153 * cp-abi.h (baseclass_offset): Add prototype.
9154 (struct cp_abi_ops): Add baseclass_offset pointer.
9156 * valops.c (vb_match): Move to...
9157 * gnu-v2-abi.c (vb_match): here.
9158 * valops.c (baseclass_offset): Move to...
9159 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9161 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9163 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9164 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9165 * hpacc-abi.c (init_hpacc_ops): Likewise.
9167 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9169 * valops.c (find_overload_match): Accept obj as a
9170 reference parameter. Update it before returning.
9171 * value.h (find_overload_match): Update prototype.
9172 * eval.c (evaluate_subexp_standard): Pass object to
9173 find_overload_match by reference.
9175 2002-01-03 Andrew Cagney <ac131313@redhat.com>
9177 * valarith.c: Replace value_ptr with struct value pointer. Remove
9178 register attribute from value declarations.
9181 * scm-lang.c (scm_lookup_name): Ditto.
9183 2002-01-03 Michael Snyder <msnyder@redhat.com>
9185 Abstract the functionality of iterating over mapped memory
9186 regions into a general purpose iterator function.
9187 * procfs.c (iterate_over_mappings): New function, general purpose
9188 iterator for memory sections.
9189 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9190 (solib_mappings_callback): New function, callback for above.
9191 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9192 (info_mappings_callback): New function, callback for above.
9194 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9196 2002-01-01 Mark Kettenis <kettenis@gnu.org>
9198 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9199 * i386-tdep.c: Include "elf-bfd.h".
9200 (process_note_abi_tag_sections): New function.
9201 (i386_gdbarch_init): Add code to recognize various OS/ABI
9204 * maint.c (_initialize_maint_cmds): Add missing \ in
9207 For older changes see ChangeLog-2001
9213 version-control: never